summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 702bbd131e..3a6988d685 100644
--- a/configure.in
+++ b/configure.in
@@ -296,8 +296,9 @@ AC_HEADER_SYS_WAIT
dnl ## Check for typedefs, structures, and compiler characteristics.
AC_C_CONST
-if test "$ac_cv_prog_gcc" = "yes"; then
- APR_ADDTO(NOTEST_CPPFLAGS,-DAP_HAVE_DESIGNATED_INITIALIZER)
+if test "x$GCC" = "xyes"; then
+ AC_DEFINE([AP_HAVE_DESIGNATED_INITIALIZER], 1,
+ [Define if the compiler supports designated initializers])
fi
dnl ## Check for library functions