This was silly. Nowhere else do we use [ or [[
authorJason Parker <jparker@digium.com>
Mon, 18 Sep 2006 23:37:25 +0000 (23:37 +0000)
committerJason Parker <jparker@digium.com>
Mon, 18 Sep 2006 23:37:25 +0000 (23:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43244 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure
configure.ac

index cf5665c..0fdbf8f 100755 (executable)
--- a/configure
+++ b/configure
 
 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
 
index f6c0668..c5988b4 100644 (file)
@@ -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)