(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:
Roland McGrath 1996-01-12 19:38:19 +00:00
parent a7485241d5
commit f42abbab26
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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