From: Rainer Jung Date: Sat, 3 Jan 2009 00:58:11 +0000 (+0000) Subject: We need to link only ab against libm (because of X-Git-Tag: 2.3.1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7567264bca73ad9ec13c185595039a65b970614c;p=thirdparty%2Fapache%2Fhttpd.git We need to link only ab against libm (because of sqrt()). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730881 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 2718b2434c1..d4c245b600c 100644 --- a/configure.in +++ b/configure.in @@ -390,7 +390,13 @@ dnl ## Check for typedefs, structures, and compiler characteristics. AC_C_CONST dnl ## Check for library functions +dnl ## sqrt() only needed in support/ab.c +saved_LIBS="$LIBS" +LIBS="" AC_SEARCH_LIBS(sqrt, m) +MATH_LIBS="$LIBS" +APACHE_SUBST(MATH_LIBS) +LIBS="$saved_LIBS" dnl See Comment #Spoon diff --git a/support/Makefile.in b/support/Makefile.in index 670e465d9dc..3425ffe7a6e 100644 --- a/support/Makefile.in +++ b/support/Makefile.in @@ -50,7 +50,7 @@ htdbm: $(htdbm_OBJECTS) $(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD) ab_OBJECTS = ab.lo -ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS) +ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS) $(MATH_LIBS) ab: $(ab_OBJECTS) $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD)