From: Roland McGrath Date: Fri, 12 Jan 1996 19:38:19 +0000 (+0000) Subject: (AC_TRY_CPP): Use "" instead of '' when setting ac_try; we need one level X-Git-Tag: fsf-origin~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42abbab265d7d7b1f18b99fedad76056f7ee1f2;p=thirdparty%2Fautoconf.git (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. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 4e6f98ac0..780a8a4c6 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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 that breaks under sh -x, which writes compile commands starting 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_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 4e6f98ac0..780a8a4c6 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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 that breaks under sh -x, which writes compile commands starting 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_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then