From d32d0e376cf4d75f9a64e66d2b707acb21ae09ac Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 13 Aug 2004 11:18:33 +0000 Subject: [PATCH] * 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 --- configure.in | 5 +++-- 1 file 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 -- 2.50.1