* aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.
Signed-off-by: Dmitry Eremin-Solenikov dbaryshkov@gmail.com --- aclocal.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4 index 783dbc492b5c..772f68e8eb9d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -650,7 +650,7 @@ AC_DEFUN([NETTLE_CHECK_IFUNC], [AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([for ifunc support], nettle_cv_link_ifunc, - AC_LINK_IFELSE([AC_LANG_PROGRAM([ + [AC_LINK_IFELSE([AC_LANG_PROGRAM([ static int foo_imp(int x) { @@ -671,7 +671,7 @@ int foo (int x) __attribute__ ((ifunc("foo_resolv")));
])], [nettle_cv_link_ifunc=yes], -[nettle_cv_link_ifunc=no])) +[nettle_cv_link_ifunc=no])]) AH_TEMPLATE([HAVE_LINK_IFUNC], [Define if compiler and linker supports __attribute__ ifunc]) if test "x$nettle_cv_link_ifunc" = xyes ; then AC_DEFINE(HAVE_LINK_IFUNC)
Dmitry Eremin-Solenikov dbaryshkov@gmail.com writes:
- aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.
Thanks, applied. What concrete errors did the incorrect quoting cause?
Regards, /Niels
вс, 17 июн. 2018 г. в 20:32, Niels Möller nisse@lysator.liu.se:
Dmitry Eremin-Solenikov dbaryshkov@gmail.com writes:
- aclocal.m4 (NETTLE_CHECK_IFUNC): fix quoting so that AC_LINK_IFELSE/AC_TRY_LINK is defined outside of this test.
Thanks, applied. What concrete errors did the incorrect quoting cause?
Failure of the test on second (and following) configure runs if config.cache was enabled:
configure: loading cache config.cache checking build system type... (cached) x86_64-unknown-linux-gnu checking host system type... (cached) x86_64-unknown-linux-gnu [skipped] checking whether g++ accepts -g... (cached) yes checking if LD -Wl,--version-script works... ../nettle/configure: line 4023: ac_fn_c_try_link: command not found ../nettle/configure: line 4051: ac_fn_c_try_link: command not found no
nettle-bugs@lists.lysator.liu.se