r1098 - in trunk/varnish-cache: . bin/varnishd bin/varnishncsa bin/varnishstat

des at projects.linpro.no des at projects.linpro.no
Wed Sep 20 10:37:35 CEST 2006


Author: des
Date: 2006-09-20 10:37:35 +0200 (Wed, 20 Sep 2006)
New Revision: 1098

Modified:
   trunk/varnish-cache/bin/varnishd/Makefile.am
   trunk/varnish-cache/bin/varnishncsa/Makefile.am
   trunk/varnish-cache/bin/varnishstat/Makefile.am
   trunk/varnish-cache/configure.ac
Log:
Trust autoconf to dtrt wrt libraries.
Prefer libthr to libpthread if it's available (i.e. on FreeBSD 6 and newer)

Modified: trunk/varnish-cache/bin/varnishd/Makefile.am
===================================================================
--- trunk/varnish-cache/bin/varnishd/Makefile.am	2006-09-20 07:51:04 UTC (rev 1097)
+++ trunk/varnish-cache/bin/varnishd/Makefile.am	2006-09-20 08:37:35 UTC (rev 1098)
@@ -62,17 +62,4 @@
 varnishd_LDADD = \
 	$(top_builddir)/lib/libcompat/libcompat.a \
 	$(top_builddir)/lib/libvarnish/libvarnish.la \
-	$(top_builddir)/lib/libvcl/libvcl.la \
-	-lpthread
-
-if NEED_LIBDL
-varnishd_LDADD += -ldl
-endif
-
-if NEED_LIBMD
-varnishd_LDADD += -lmd
-endif
-
-if NEED_LIBRT
-varnishd_LDADD += -lrt
-endif
+	$(top_builddir)/lib/libvcl/libvcl.la

Modified: trunk/varnish-cache/bin/varnishncsa/Makefile.am
===================================================================
--- trunk/varnish-cache/bin/varnishncsa/Makefile.am	2006-09-20 07:51:04 UTC (rev 1097)
+++ trunk/varnish-cache/bin/varnishncsa/Makefile.am	2006-09-20 08:37:35 UTC (rev 1098)
@@ -14,7 +14,3 @@
 	$(top_builddir)/lib/libcompat/libcompat.a \
 	$(top_builddir)/lib/libvarnish/libvarnish.la \
 	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la
-
-if NEED_LIBRT
-varnishncsa_LDADD += -lrt
-endif

Modified: trunk/varnish-cache/bin/varnishstat/Makefile.am
===================================================================
--- trunk/varnish-cache/bin/varnishstat/Makefile.am	2006-09-20 07:51:04 UTC (rev 1097)
+++ trunk/varnish-cache/bin/varnishstat/Makefile.am	2006-09-20 08:37:35 UTC (rev 1098)
@@ -13,9 +13,5 @@
 varnishstat_LDADD = \
 	$(top_builddir)/lib/libcompat/libcompat.a \
 	$(top_builddir)/lib/libvarnish/libvarnish.la \
-	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la  \
+	$(top_builddir)/lib/libvarnishapi/libvarnishapi.la \
 	-lcurses
-
-if NEED_LIBRT
-varnishstat_LDADD += -lrt
-endif

Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac	2006-09-20 07:51:04 UTC (rev 1097)
+++ trunk/varnish-cache/configure.ac	2006-09-20 08:37:35 UTC (rev 1098)
@@ -35,6 +35,10 @@
 AC_PROG_MAKE_SET
 
 # Checks for libraries.
+AC_CHECK_LIB(rt, clock_gettime)
+AC_CHECK_LIB(dl, dlopen)
+#AC_SEARCH_LIBS(initscr, [curses ncurses])
+AC_SEARCH_LIBS(pthread_create, [thr pthread c_r])
 
 # Checks for header files.
 AC_HEADER_STDC
@@ -75,21 +79,6 @@
 AC_CHECK_FUNCS([strndup])
 AC_CHECK_FUNCS([vis strvis strvisx])
 
-# On some systems, clock_gettime is in librt rather than libc
-AC_CHECK_LIB(rt, clock_gettime, need_librt=yes)
-AM_CONDITIONAL(NEED_LIBRT, test x$need_librt = xyes)
-
-# Check if dlopen() requires libdl
-AC_CHECK_LIB(dl, dlopen, need_libdl=yes)
-AM_CONDITIONAL(NEED_LIBDL, test x$need_libdl = xyes)
-
-# Check for the presence of RSA's MD5 implementation (libmd on *BSD)
-AC_CHECK_HEADERS([md5.h])
-if test x$ac_cv_header_md5_h = xyes ; then
-	AC_CHECK_LIB(md, MD5Init, need_libmd=yes)
-fi
-AM_CONDITIONAL(NEED_LIBMD, test x$need_libmd = xyes)
-
 # Check which mechanism to use for the acceptor
 AC_CHECK_FUNCS([kqueue])
 AC_CHECK_FUNCS([epoll_ctl])




More information about the varnish-commit mailing list