[asterisk-commits] russell: trunk r108740 - in /trunk: acinclude.m4 configure
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 14 12:05:12 CDT 2008
Author: russell
Date: Fri Mar 14 12:05:11 2008
New Revision: 108740
URL: http://svn.digium.com/view/asterisk?view=rev&rev=108740
Log:
Do a link test in AST_EXT_TOOL_CHECK() to ensure we have all the required libs
reported by the tool.
(closes issue #12067, reported by Juggie, patched by me)
Modified:
trunk/acinclude.m4
trunk/configure
Modified: trunk/acinclude.m4
URL: http://svn.digium.com/view/asterisk/trunk/acinclude.m4?view=diff&rev=108740&r1=108739&r2=108740
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Fri Mar 14 12:05:11 2008
@@ -230,7 +230,10 @@
fi
CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}"
- AC_COMPILE_IFELSE(
+ saved_ldflags="${LDFLAGS}"
+ LDFLAGS="${$1_LIB}"
+
+ AC_LINK_IFELSE(
[ AC_LANG_PROGRAM( [ $5 ],
[ $6; ]
)],
@@ -240,6 +243,7 @@
[]
)
CPPFLAGS="${saved_cppflags}"
+ LDFLAGS="${saved_ldflags}"
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