Makefile.in: Respect CXXFLAGS if given

This commit is contained in:
Sebastian Pipping 2016-05-15 13:50:06 +02:00
parent d10262c9ef
commit 4ae8aed082

View File

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