From: Guy Harris Date: Tue, 23 Jan 2018 04:51:51 +0000 (-0800) Subject: Use AC_RUN_LOG when testing the dependency-generating flag. X-Git-Tag: tcpdump-4.99-bp~1388 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/08a89b549f73c54732478eaf716a36cb3e7bf7a6 Use AC_RUN_LOG when testing the dependency-generating flag. --- diff --git a/aclocal.m4 b/aclocal.m4 index bd72a0a7..401a06f4 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -371,8 +371,7 @@ AC_DEFUN(AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT, if test ! -z "$ac_lbl_dependency_flag"; then AC_LANG_CONFTEST( [AC_LANG_SOURCE([[int main(void) { return 0; }]])]) - echo "$CC" $ac_lbl_dependency_flag conftest.c >&5 - if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then + if AC_RUN_LOG([eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1"]); then AC_MSG_RESULT([yes, with $ac_lbl_dependency_flag]) DEPENDENCY_CFLAG="$ac_lbl_dependency_flag" MKDEP='${srcdir}/mkdep'