aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-15 21:41:40 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-15 21:41:40 +0000
commit7df99fe12da474b3824a57f8cd054bb54ea045d1 (patch)
tree828662c9d632c243b3e36854a48928ac6cf12c3b /configure
parente63bd04ff0d26d72233e09f24a972d35f752b0fe (diff)
update configure script with new curl version test
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37680 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 17 insertions, 3 deletions
diff --git a/configure b/configure
index f5c7e50ee..4c4218448 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 37284 .
+# From configure.ac Revision: 37678 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.60.
#
@@ -27468,13 +27468,27 @@ fi
if test ! x"${CURL}" = xNo; then
# check for version
- CURLLIB=$(${CURL} --libs)
- PBX_CURL=1
+ if test $PBX_OSTYPE = "SunOS"; then
+ if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
+ CURLLIB=$(${CURL} --libs)
+ PBX_CURL=1
cat >>confdefs.h <<\_ACEOF
#define HAVE_CURL 1
_ACEOF
+ fi
+ else
+ if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
+ CURLLIB=$(${CURL} --libs)
+ PBX_CURL=1
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CURL 1
+_ACEOF
+
+ fi
+ fi
fi