mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
(AC_LANG_C, AC_LANG_CPLUSPLUS): Remove CFLAGS and CXXFLAGS from ac_cpp.
This commit is contained in:
parent
2dfb452420
commit
ce6b54c083
@ -601,13 +601,15 @@ dnl
|
||||
dnl
|
||||
define(AC_LANG_C,
|
||||
[define([AC_LANG],[C])AC_PROVIDE([$0])ac_ext=c
|
||||
ac_cpp='${CPP} $CFLAGS'
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='${CPP}'
|
||||
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
||||
])dnl
|
||||
dnl
|
||||
define(AC_LANG_CPLUSPLUS,
|
||||
[define([AC_LANG],[CPLUSPLUS])AC_PROVIDE([$0])ac_ext=C
|
||||
ac_cpp='${CXXCPP} $CXXFLAGS'
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='${CXXCPP}'
|
||||
ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
||||
])dnl
|
||||
dnl
|
||||
|
@ -601,13 +601,15 @@ dnl
|
||||
dnl
|
||||
define(AC_LANG_C,
|
||||
[define([AC_LANG],[C])AC_PROVIDE([$0])ac_ext=c
|
||||
ac_cpp='${CPP} $CFLAGS'
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='${CPP}'
|
||||
ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
||||
])dnl
|
||||
dnl
|
||||
define(AC_LANG_CPLUSPLUS,
|
||||
[define([AC_LANG],[CPLUSPLUS])AC_PROVIDE([$0])ac_ext=C
|
||||
ac_cpp='${CXXCPP} $CXXFLAGS'
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='${CXXCPP}'
|
||||
ac_compile='${CXX-gcc} $CXXFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
|
||||
])dnl
|
||||
dnl
|
||||
|
Loading…
Reference in New Issue
Block a user