[asterisk-commits] tilghman: trunk r192132 - /trunk/autoconf/ast_ext_tool_check.m4

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 4 13:43:03 CDT 2009


Author: tilghman
Date: Mon May  4 13:42:56 2009
New Revision: 192132

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192132
Log:
Pass libraries in LIBS, not LDFLAGS.
(closes issue #14671)
 Reported by: Chainsaw
 Patches: 
       asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch uploaded by Chainsaw (license 723)

Modified:
    trunk/autoconf/ast_ext_tool_check.m4

Modified: trunk/autoconf/ast_ext_tool_check.m4
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/autoconf/ast_ext_tool_check.m4?view=diff&rev=192132&r1=192131&r2=192132
==============================================================================
--- trunk/autoconf/ast_ext_tool_check.m4 (original)
+++ trunk/autoconf/ast_ext_tool_check.m4 Mon May  4 13:42:56 2009
@@ -20,8 +20,8 @@
 		fi
 		CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
 
-		saved_ldflags="${LDFLAGS}"
-		LDFLAGS="${$1_LIB}"
+		saved_libs="${LIBS}"
+		LIBS="${$1_LIB}"
 
 		AC_LINK_IFELSE(
 		    [ AC_LANG_PROGRAM( [ $5 ],
@@ -33,7 +33,7 @@
 		    []
 		)
 		CPPFLAGS="${saved_cppflags}"
-		LDFLAGS="${saved_ldflags}"
+		LIBS="${saved_libs}"
 	    else
 		PBX_$1=1
 		AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 libraries.])




More information about the asterisk-commits mailing list