]> granicus.if.org Git - apache/commitdiff
* configure.in: Define AP_HAVE_DESIGNATED_INITIALIZER via ap_config.h
authorJoe Orton <jorton@apache.org>
Fri, 13 Aug 2004 11:18:33 +0000 (11:18 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 13 Aug 2004 11:18:33 +0000 (11:18 +0000)
so third-party modules don't have to pick up NOTEST_CPPFLAGS to avoid
gcc warnings from http_config.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104642 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index 702bbd131e9a2070ada2c339ba6fdab0ea867a3d..3a6988d6851c1086f725d7b679a1aa88d09a090f 100644 (file)
@@ -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