summaryrefslogtreecommitdiffstats
path: root/curl-7.15.0-curl_config-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'curl-7.15.0-curl_config-version.patch')
-rw-r--r--curl-7.15.0-curl_config-version.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/curl-7.15.0-curl_config-version.patch b/curl-7.15.0-curl_config-version.patch
new file mode 100644
index 0000000..c1a4fb3
--- /dev/null
+++ b/curl-7.15.0-curl_config-version.patch
@@ -0,0 +1,12 @@
+--- curl-7.15.0/configure.ac.ver 2005-11-30 13:33:54.360624896 +0100
++++ curl-7.15.0/configure.ac 2005-11-30 13:34:14.009637792 +0100
+@@ -43,7 +43,8 @@
+
+ dnl
+ dnl we extract the numerical version for curl-config only
+-VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
++VERSIONNUM=`$SED -rne 's/^#define LIBCURL_VERSION_(MAJOR|MINOR|PATCH) ([^ ]*)$/\2/p' ${srcdir}/include/curl/curlver.h | xargs -n1 printf %02x; echo`
++
+ AC_SUBST(VERSIONNUM)
+
+ dnl Solaris pkgadd support definitions