aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-27 00:10:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-27 00:10:56 +0000
commit4beb867cdefb13fc0a6620b086e3eaf2d332d2e2 (patch)
tree6c73c3f9955eded955bfd14fd19bee03186523f5 /acinclude.m4
parentd87a3b0d918ac6925cc5f0b32261b5cf35c802e0 (diff)
only define HAVE_SOMELIB if somelib's header file was found as well
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22703 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index b038d9fbf..1741d8d4f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -20,8 +20,7 @@ esac
PBX_LIB$1=0
if test "${USE_$1}" != "no"; then
- AC_CHECK_LIB([$1], [$2], AC_DEFINE_UNQUOTED([HAVE_$4], 1,
- [Define to indicate the $5 library]), [], -L${$1_DIR}/lib $6)
+ AC_CHECK_LIB([$1], [$2], [], [], -L${$1_DIR}/lib $6)
if test "${ac_cv_lib_$1_$2}" = "yes"; then
$1_LIB="-l$1 $6"
@@ -51,6 +50,7 @@ if test "${USE_$1}" != "no"; then
PBX_LIB$1=0
else
PBX_LIB$1=1
+ AC_DEFINE_UNQUOTED([HAVE_$4], 1, [Define to indicate the $5 library])
fi
elif test ! -z "${$1_MANDATORY}";
then