summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-05-29 23:41:20 +0000
committerSterling Hughes <sterling@php.net>2001-05-29 23:41:20 +0000
commitff24feec81c142a456e6de77ad4808317614533e (patch)
tree86edcacf57cfc9bb301059c9daf87b7c0614f1e2
parentab766fbd372cbbd7aeaa45c237629e1010206d28 (diff)
downloadphp-git-ff24feec81c142a456e6de77ad4808317614533e.tar.gz
curl-config gives a new tool, how cool.
# I'm a poet and I didn't even no it :)
-rw-r--r--ext/curl/config.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/config.m4 b/ext/curl/config.m4
index a25bcdf23b..d677363b24 100644
--- a/ext/curl/config.m4
+++ b/ext/curl/config.m4
@@ -31,7 +31,7 @@ if test "$PHP_CURL" != "no"; then
fi
curl_version_full=`$CURL_CONFIG --version`
- curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+ curl_version=`$CURL_CONFIG --vernum`
if test "$curl_version" -ge 70800; then
AC_MSG_RESULT($curl_version_full)
CURL_LIBS=`$CURL_CONFIG --libs`