if the "action-if-found" is left empty, AC_CHECK_LIB will add a default result
authorRussell Bryant <russell@russellbryant.com>
Sat, 29 Apr 2006 13:32:38 +0000 (13:32 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 29 Apr 2006 13:32:38 +0000 (13:32 +0000)
instead which can break things in the rest of the script (issue #7043)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

acinclude.m4

index 1741d8d..ebd8b99 100644 (file)
@@ -20,7 +20,7 @@ esac
 PBX_LIB$1=0
 
 if test "${USE_$1}" != "no"; then      
-   AC_CHECK_LIB([$1], [$2], [], [], -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"