From: Joe Orton Date: Fri, 13 Aug 2004 11:18:33 +0000 (+0000) Subject: * configure.in: Define AP_HAVE_DESIGNATED_INITIALIZER via ap_config.h X-Git-Tag: STRIKER_2_1_0_RC1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d32d0e376cf4d75f9a64e66d2b707acb21ae09ac;p=apache * 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 --- 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