summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-05-25 23:59:38 +0200
committerYang Tse <yangsita@gmail.com>2012-05-26 00:01:00 +0200
commita379a4c1637cfe266bfa95c2c878f9cc06ce2f6a (patch)
tree885db05c5c1562a9b2d0323d86eff865ec490611 /curl-config.in
parentb061fed981c97bef78679f193173ab55a4dce91e (diff)
downloadcurl-a379a4c1637cfe266bfa95c2c878f9cc06ce2f6a.tar.gz
Fix libcurl.pc and curl-config generation for static MingW* cross builds
Diffstat (limited to 'curl-config.in')
-rw-r--r--curl-config.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/curl-config.in b/curl-config.in
index 3d02a0337..a3ca8b55f 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2001 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2001 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -24,6 +24,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
+cppflag_curl_staticlib=@CPPFLAG_CURL_STATICLIB@
usage()
{
@@ -128,10 +129,15 @@ while test $# -gt 0; do
;;
--cflags)
+ if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
+ CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB "
+ else
+ CPPFLAG_CURL_STATICLIB=""
+ fi
if test "X@includedir@" = "X/usr/include"; then
- echo ""
+ echo "$(CPPFLAG_CURL_STATICLIB)"
else
- echo "-I@includedir@"
+ echo "$(CPPFLAG_CURL_STATICLIB)-I@includedir@"
fi
;;