summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-16 14:20:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-16 14:20:06 +0000
commit6e9d1617c665dd49b2e46979e59b76363b89ecf3 (patch)
tree56975928ac3d920e8c55ff02084edbaac799fc0b /curl-config.in
parentea811fee5202ee506b22470eae5111e6d99ea1e7 (diff)
downloadcurl-6e9d1617c665dd49b2e46979e59b76363b89ecf3.tar.gz
added support for --cc to output the compiler name. This makes it possible
to compile libcurl stuff without any prior knowledge: cc=`curl-config --cc` cflags=`curl-config --cflags` libs=`curl-config --libs` $cc $flags $libs -o example example.c Or if you prefer, the oh-so-cool single-line version: `curl-config --cc --cflags --libs` -o example example.c
Diffstat (limited to 'curl-config.in')
-rw-r--r--curl-config.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/curl-config.in b/curl-config.in
index ca880c8b7..a28fbb8ab 100644
--- a/curl-config.in
+++ b/curl-config.in
@@ -16,6 +16,7 @@ Usage: curl-config [OPTION]
Available values for OPTION include:
+ --cc compiler
--cflags pre-processor and compiler flags
--feature newline separated list of enabled features
--help display this help and exit
@@ -42,6 +43,10 @@ while test $# -gt 0; do
esac
case "$1" in
+ --cc)
+ echo @CC@
+ ;;
+
--prefix)
echo $prefix
;;