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
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
esac
case "$1" in
+ --cc)
+ echo @CC@
+ ;;
+
--prefix)
echo $prefix
;;