]> granicus.if.org Git - libexpat/commitdiff
Makefile.in: Respect CXXFLAGS if given
authorSebastian Pipping <sebastian@pipping.org>
Sun, 15 May 2016 11:50:06 +0000 (13:50 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 15 May 2016 11:50:06 +0000 (13:50 +0200)
expat/configure.ac

index 7e968c46de3a4b17a8c2b3328569b93b0abf4a58..3b2c99e448e35e586a9729e3c8464195e344e47b 100644 (file)
@@ -77,7 +77,9 @@ if test "$GCC" = yes ; then
     AC_TRY_LINK( , ,
                    AC_MSG_RESULT(yes),
                    AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS")
+    if test "x$CXXFLAGS" = x ; then
     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
+    fi
 fi
 
 dnl Checks for header files.