]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[RT#35643] fixed -lrt in LIBS
authorFrancis Dupont <fdupont@isc.org>
Thu, 3 Apr 2014 07:24:53 +0000 (09:24 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 3 Apr 2014 07:24:53 +0000 (09:24 +0200)
configure
configure.in

index 074391866cd8f26a2c30690943038c7397c24ba5..fc0e639d3e48e7b0a9ab18d1bb57fa924c65e1f0 100755 (executable)
--- a/configure
+++ b/configure
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
-  have_clock_gt=yes
+  have_clock_gt=rt
 fi
 
 fi
 
-if test "$have_clock_gt" = "yes"; then
+if test "$have_clock_gt" != "no"; then
 
 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
 
 fi
 
+if test "$have_clock_gt" = "rt"; then
+       LIBS="-lrt $LIBS"
+fi
+
 #
 # was --with-libxml2 specified?
 #
index bd24b28031159b1367ab01a857c55c07fc8b22cf..c967b4b4ba6eaad1ec80c25622840bbe42f1273b 100644 (file)
@@ -1962,13 +1962,17 @@ AC_SUBST(PKCS11_TEST)
 have_clock_gt=no
 AC_CHECK_FUNC(clock_gettime,have_clock_gt=yes,)
 if test "$have_clock_gt" = "no"; then
-       AC_CHECK_LIB(rt,clock_gettime,have_clock_gt=yes,)
+       AC_CHECK_LIB(rt,clock_gettime,have_clock_gt=rt,)
 fi
 
-if test "$have_clock_gt" = "yes"; then
+if test "$have_clock_gt" != "no"; then
        AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if clock_gettime is available.])
 fi
 
+if test "$have_clock_gt" = "rt"; then
+       LIBS="-lrt $LIBS"
+fi
+
 #
 # was --with-libxml2 specified?
 #