summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-02-14 18:13:16 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-02-14 18:13:16 +0000
commitc5e7d839d56357f4b0ce763125eeec9e3fcc08b8 (patch)
tree7cd0fafd02f7e276f2700646968812a356e1c3c5 /curl-config.in
parente3ade3ccb564dc3d252c4c79666733aa950680fb (diff)
downloadcurl-c5e7d839d56357f4b0ce763125eeec9e3fcc08b8.tar.gz
Don't bother adding a library path of /usr/lib in curl-config --libs
Diffstat (limited to 'curl-config.in')
-rw-r--r--curl-config.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/curl-config.in b/curl-config.in
index 9f4513969..c5d046e10 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2001 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2001 - 2007, 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
@@ -181,10 +181,15 @@ while test $# -gt 0; do
;;
--libs)
+ if test "X@libdir@" != "X/usr/lib"; then
+ CURLLIBDIR="-L@libdir@ "
+ else
+ CURLLIBDIR=""
+ fi
if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
- echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@
+ echo ${CURLLIBDIR}-lcurl @LDFLAGS@ @LIBS@
else
- echo -L@libdir@ -lcurl @LDFLAGS@
+ echo ${CURLLIBDIR}-lcurl @LDFLAGS@
fi
;;