diff options
author | Jason Parker <jparker@digium.com> | 2006-12-05 20:44:12 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2006-12-05 20:44:12 +0000 |
commit | 7b52b8fbd9191f69a5ec66f64a0e34c98e5c2a0d (patch) | |
tree | f92ad81157396f459be39324f1c7aaf4b7e5fc64 | |
parent | fe53552f410cf6f47c43d27900185dc79f3b66ef (diff) |
Merged revisions 48279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r48279 | qwell | 2006-12-05 14:42:52 -0600 (Tue, 05 Dec 2006) | 4 lines
Fix curl version number testing to be much more friendly to non-bash shells.
Issue 8508, patch by me. This *SHOULD* be POSIX compliant now..
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | configure.ac | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac index f86d9965b..ac6505a5f 100644 --- a/configure.ac +++ b/configure.ac @@ -932,22 +932,13 @@ if test "${USE_CURL}" != "no"; then 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 - fi - fi + if test $(printf "%d" 0x$(curl-config --vernum)) -ge $(printf "%d" 0x070907); 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 fi AC_CONFIG_FILES([build_tools/menuselect-deps makeopts channels/h323/Makefile]) |