summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2006-09-18 23:37:25 +0000
committerJason Parker <jparker@digium.com>2006-09-18 23:37:25 +0000
commit3334bdebb702429a600b152d9b87db3c70a3e106 (patch)
treeef21441ab6e67095b098a22b566cf41feafa3478
parent465adf2bf165ad6b27cd2659ad731ff1d24dfed5 (diff)
This was silly. Nowhere else do we use [ or [[
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xconfigure21
-rw-r--r--configure.ac19
2 files changed, 9 insertions, 31 deletions
diff --git a/configure b/configure
index cf5665c06..0fdbf8f9c 100755
--- a/configure
+++ b/configure
@@ -29669,28 +29669,15 @@ fi
if test ! x"${CURL}" = xNo; then
# check for version
- 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
+ if test 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
diff --git a/configure.ac b/configure.ac
index f6c066802..c5988b406 100644
--- a/configure.ac
+++ b/configure.ac
@@ -960,20 +960,11 @@ PBX_CURL=0
AC_PATH_TOOL([CURL], [curl-config], No)
if test ! x"${CURL}" = xNo; then
# check for version
- 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
- AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
- fi
- else
- if [[[ 0x`curl-config --vernum` -ge 0x70907 ]]]; then
- CURL_INCLUDE=$(${CURL} --cflags)
- CURL_LIB=$(${CURL} --libs)
- PBX_CURL=1
- AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
- fi
+ if test 0x`curl-config --vernum` -ge 0x70907 ; then
+ CURL_INCLUDE=$(${CURL} --cflags)
+ CURL_LIB=$(${CURL} --libs)
+ PBX_CURL=1
+ AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.])
fi
fi
AC_SUBST(PBX_CURL)