From f587dfff2d8c17a58370d63be934ff0a2939da41 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 13 Dec 2015 09:52:43 +0100 Subject: [PATCH] build: let AC_SEARCH_LIBS modify LIBS Users is expected to be able to modify CFLAGS and LDFLAGS. We don't care about other variables like LIBS. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 3e3461d4..d3bf3c13 100644 --- a/configure.ac +++ b/configure.ac @@ -160,6 +160,9 @@ AC_REPLACE_FUNCS([strlcpy # Optional functions AC_CHECK_FUNCS([setresuid setresgid]) +CFLAGS="$_save_CFLAGS" +LIBS="$_save_LIBS" + # Check for res_init. On OSX, res_init is a symbol in libsystem_info # and a macro in resolv.h. We need to ensure we test with resolv.h. m4_pushdef([AC_LANG_CALL(C)], [ @@ -170,9 +173,6 @@ AC_SEARCH_LIBS([res_init], resolv bind, [Define to indicate that res_init() exists])) m4_popdef([AC_LANG_CALL(C)]) -CFLAGS="$_save_CFLAGS" -LIBS="$_save_LIBS" - AC_CACHE_SAVE ## Unit tests wich check -- 2.39.5