mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	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: https://origsvn.digium.com/svn/asterisk/trunk@22415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										21
									
								
								acinclude.m4
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								acinclude.m4
									
									
									
									
									
								
							| @@ -38,19 +38,26 @@ if test "${USE_$1}" != "no"; then | |||||||
| 	 fi | 	 fi | ||||||
|       fi |       fi | ||||||
|       if test "x${$4_HEADER_FOUND}" = "x0" ; then |       if test "x${$4_HEADER_FOUND}" = "x0" ; then | ||||||
|         echo " ***" |          if test ! -z "${$1_MANDATORY}" ; | ||||||
|         echo " *** It appears that you do not have the $5 development package installed." |          then | ||||||
|         echo " *** Please install it to include $5 support, or re-run configure" |             echo " ***" | ||||||
|         echo " *** with the argument --without-$1" |             echo " *** It appears that you do not have the $1 development package installed." | ||||||
|         exit 1 |             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 |       fi | ||||||
|       PBX_LIB$1=1  |  | ||||||
|    elif test ! -z "${$1_MANDATORY}"; |    elif test ! -z "${$1_MANDATORY}"; | ||||||
|    then |    then | ||||||
|       echo "***" |       echo "***" | ||||||
|       echo "*** The $5 installation on this system appears to be broken." |       echo "*** The $5 installation on this system appears to be broken." | ||||||
|       echo "*** Either correct the installation, or run configure" |       echo "*** Either correct the installation, or run configure" | ||||||
|       echo "*** including --without-$1" |       echo "*** without explicity specifying --with-$1" | ||||||
|       exit 1 |       exit 1 | ||||||
|    fi |    fi | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user