mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
(AC_TRY_CPP): Use "" instead of '' when setting ac_try; we need one level
of expansion there for $ac_cpp, then AC_TRY_EVAL does one more for its the expansion of $ac_cpp.
This commit is contained in:
parent
a7485241d5
commit
f42abbab26
@ -1447,7 +1447,7 @@ dnl Capture the stderr of cpp. eval is necessary to expand ac_cpp.
|
|||||||
dnl We used to copy stderr to stdout and capture it in a variable, but
|
dnl We used to copy stderr to stdout and capture it in a variable, but
|
||||||
dnl that breaks under sh -x, which writes compile commands starting
|
dnl that breaks under sh -x, which writes compile commands starting
|
||||||
dnl with ` +' to stderr in eval and subshells.
|
dnl with ` +' to stderr in eval and subshells.
|
||||||
ac_try='$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out'
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
AC_TRY_EVAL(ac_try)
|
AC_TRY_EVAL(ac_try)
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
|
@ -1447,7 +1447,7 @@ dnl Capture the stderr of cpp. eval is necessary to expand ac_cpp.
|
|||||||
dnl We used to copy stderr to stdout and capture it in a variable, but
|
dnl We used to copy stderr to stdout and capture it in a variable, but
|
||||||
dnl that breaks under sh -x, which writes compile commands starting
|
dnl that breaks under sh -x, which writes compile commands starting
|
||||||
dnl with ` +' to stderr in eval and subshells.
|
dnl with ` +' to stderr in eval and subshells.
|
||||||
ac_try='$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out'
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
AC_TRY_EVAL(ac_try)
|
AC_TRY_EVAL(ac_try)
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user