summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2004-08-13 13:18:33 +0200
committerJoe Orton <jorton@apache.org>2004-08-13 13:18:33 +0200
commitd32d0e376cf4d75f9a64e66d2b707acb21ae09ac (patch)
tree3c93755304d13edbc866eed0b72db8b5a2b6631d /configure.in
parent* configure.in, acinclude.m4: Substitute AP[RU]_CONFIG with location (diff)
downloadapache2-d32d0e376cf4d75f9a64e66d2b707acb21ae09ac.tar.xz
apache2-d32d0e376cf4d75f9a64e66d2b707acb21ae09ac.zip
* configure.in: Define AP_HAVE_DESIGNATED_INITIALIZER via ap_config.h
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
Diffstat (limited to 'configure.in')
-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