aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 23:59:23 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-18 23:59:23 +0000
commit4560e87bd10254d2d695d65a18f35db6996fe985 (patch)
treed7fed805868cbb9500e7ddc7978cfa89bb93d52a /configure
parent360679cc3cede66499f631ff5062ecc96e30965a (diff)
This totally worked when I tested it...
Reverting for now.. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43245 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 17 insertions, 4 deletions
diff --git a/configure b/configure
index 0fdbf8f9c..cf5665c06 100755
--- a/configure
+++ b/configure
@@ -29669,15 +29669,28 @@ fi
if test ! x"${CURL}" = xNo; then
# check for version
- if test 0x`curl-config --vernum` -ge 0x70907 ; then
- CURL_INCLUDE=$(${CURL} --cflags)
- CURL_LIB=$(${CURL} --libs)
- PBX_CURL=1
+ if test "${host_os}" = "SunOS"; then
+ if [ 0x`curl-config --vernum` -ge 0x70907 ]; then
+ CURL_INCLUDE=$(${CURL} --cflags)
+ CURL_LIB=$(${CURL} --libs)
+ PBX_CURL=1
cat >>confdefs.h <<\_ACEOF
#define HAVE_CURL 1
_ACEOF
+ fi
+ else
+ if [[ 0x`curl-config --vernum` -ge 0x70907 ]]; then
+ CURL_INCLUDE=$(${CURL} --cflags)
+ CURL_LIB=$(${CURL} --libs)
+ PBX_CURL=1
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_CURL 1
+_ACEOF
+
+ fi
fi
fi