]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2356] set the saved LIBS correctly
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 31 Oct 2012 21:56:34 +0000 (14:56 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 31 Oct 2012 21:56:34 +0000 (14:56 -0700)
examples/m4/ax_isc_bind10.m4

index cfb9aaaf35784bd3a5419819e73a1bb15bf446de..7df18c5ca949915ebc121d41c03d0c53072e23f2 100644 (file)
@@ -73,6 +73,7 @@ AC_MSG_CHECKING([for BIND 10 common library])
 BIND10_COMMON_LIB="-lb10-util -lb10-exceptions"
 LDFLAGS_SAVED="$LDFLAGS"
 LDFLAGS_CHECK_COMMON="$LDFLAGS $BIND10_LDFLAGS"
+LIBS_SAVED="$LIBS"
 LIBS="$LIBS $BIND10_COMMON_LIB"
 for d in $bind10_lib_dirs
 do
@@ -94,7 +95,7 @@ else
 fi
 
 # restore LIBS once at this point
-LIBS="$LIBS_SAVES"
+LIBS="$LIBS_SAVED"
 
 AC_SUBST(BIND10_LDFLAGS)
 AC_SUBST(BIND10_COMMON_LIB)
@@ -111,7 +112,7 @@ isc::dns::RRType rrtype(1);
 ], [BIND10_DNS_LIB="-lb10-dns++"
     AC_MSG_RESULT(yes)],
    [AC_MSG_RESULT(no)])
-LIBS="$LIBS_SAVES"
+LIBS="$LIBS_SAVED"
 AC_SUBST(BIND10_DNS_LIB)
 
 # Restore other flags