summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorWouter Van Rooy <wouter.van.rooy@vasco.com>2013-04-16 15:40:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-04-16 16:07:41 +0200
commit68e7fb499d93ffcad8b7407c07689c8a5b1628b2 (patch)
treeb3e26ba8845279d103064fb5595e97f9a3b80e8e /curl-config.in
parentd9569720dd67ba34be18fd0c9898d9002adedd40 (diff)
downloadcurl-68e7fb499d93ffcad8b7407c07689c8a5b1628b2.tar.gz
curl-config: don't output static libs when they are disabled
Curl-config outputs static libraries even when they are disabled in configure. This causes problems with the build of pycurl.
Diffstat (limited to 'curl-config.in')
-rw-r--r--curl-config.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/curl-config.in b/curl-config.in
index c95518d56..e0fa03c2d 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -155,7 +155,12 @@ while test $# -gt 0; do
;;
--static-libs)
- echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
+ if test "X@ENABLE_STATIC@" != "Xno" ; then
+ echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
+ else
+ echo "curl was built with static libraries disabled" >&2
+ exit 1
+ fi
;;
--configure)