aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Makefile
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-13 15:17:41 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-13 15:17:41 +0000
commit25c6087b37e8003d9f8a813d28028ec8e62b207c (patch)
treee357e04c8a5a5db1e6f0ea9e1f38d424771c14c9 /apps/Makefile
parent0cd39650cfff979e95bd98c57af757f47783589c (diff)
Fix so that asterisk continues to build if libcurl is not present or the correct
version. bug #3982. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5463 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/Makefile')
-rwxr-xr-xapps/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 2f6a875dc..5d8691088 100755
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -57,12 +57,14 @@ APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ]; then
APPS+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
-ifneq (${CURLLIBS},)
- APPS+=app_curl.so
- ifeq (${OSARCH},OpenBSD)
- CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
- endif
-endif
+ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
+ ifneq (${CURLLIBS},)
+ APPS+=app_curl.so
+ ifeq (${OSARCH},OpenBSD)
+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
+ endif
+ endif
+endif
CFLAGS+=-fPIC
#
# If you have MySQL 4.1 or later you can use ODBC