diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-25 17:22:38 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-25 17:22:38 +0000 |
commit | 4755015ee7fa650ecf995a4832d3e498e0376288 (patch) | |
tree | 51ad93257e0f6257f58ceaa198acb5444f22abfb /acinclude.m4 | |
parent | 6f82474a89b6feb3a06ca841e881f3f353d987b6 (diff) |
if an external library is found, but the associated header file is not, just
move on without including support for this library. However, if --with-lib
is explicitly specified, then error out noting the situation.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22415 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 57037b3ff..b038d9fbf 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -38,19 +38,26 @@ if test "${USE_$1}" != "no"; then fi fi if test "x${$4_HEADER_FOUND}" = "x0" ; then - echo " ***" - echo " *** It appears that you do not have the $5 development package installed." - echo " *** Please install it to include $5 support, or re-run configure" - echo " *** with the argument --without-$1" - exit 1 + if test ! -z "${$1_MANDATORY}" ; + then + echo " ***" + echo " *** It appears that you do not have the $1 development package installed." + echo " *** Please install it to include $5 support, or re-run configure" + echo " *** without explicitly specifying --with-$1" + exit 1 + fi + $1_LIB="" + $1_INCLUDE="" + PBX_LIB$1=0 + else + PBX_LIB$1=1 fi - PBX_LIB$1=1 elif test ! -z "${$1_MANDATORY}"; then echo "***" echo "*** The $5 installation on this system appears to be broken." echo "*** Either correct the installation, or run configure" - echo "*** including --without-$1" + echo "*** without explicity specifying --with-$1" exit 1 fi fi |