1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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
This commit is contained in:
Daniel Stenberg 2002-01-16 14:20:06 +00:00
parent ea811fee52
commit 6e9d1617c6

View File

@ -16,6 +16,7 @@ Usage: curl-config [OPTION]
Available values for OPTION include: Available values for OPTION include:
--cc compiler
--cflags pre-processor and compiler flags --cflags pre-processor and compiler flags
--feature newline separated list of enabled features --feature newline separated list of enabled features
--help display this help and exit --help display this help and exit
@ -42,6 +43,10 @@ while test $# -gt 0; do
esac esac
case "$1" in case "$1" in
--cc)
echo @CC@
;;
--prefix) --prefix)
echo $prefix echo $prefix
;; ;;