|
|
|
@ -1,19 +1,24 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
|
exec_prefix=@exec_prefix@
|
|
|
|
|
exec_prefix_set=no
|
|
|
|
|
libs=""
|
|
|
|
|
output_libs=no
|
|
|
|
|
|
|
|
|
|
usage="\
|
|
|
|
|
Usage: libart-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
|
|
|
|
|
Usage: libart2-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
|
|
|
|
|
|
|
|
|
|
if test $# -eq 0; then
|
|
|
|
|
echo "${usage}" 1>&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if ! which pkg-config >/dev/null; then
|
|
|
|
|
echo "pkg-config not found on your system" 1>&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
prefix=`pkg-config --variable=prefix libart-2.0`
|
|
|
|
|
exec_prefix=`pkg-config --variable=exec_prefix libart-2.0`
|
|
|
|
|
exec_prefix_set=no
|
|
|
|
|
libs=""
|
|
|
|
|
output_libs=no
|
|
|
|
|
|
|
|
|
|
while test $# -gt 0; do
|
|
|
|
|
case "$1" in
|
|
|
|
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
@ -38,14 +43,13 @@ while test $# -gt 0; do
|
|
|
|
|
echo $exec_prefix
|
|
|
|
|
;;
|
|
|
|
|
--version)
|
|
|
|
|
echo @LIBART_VERSION@
|
|
|
|
|
echo `pkg-config --modversion libart-2.0`
|
|
|
|
|
;;
|
|
|
|
|
--cflags)
|
|
|
|
|
includes=-I@includedir@/libart-2.0
|
|
|
|
|
echo $includes
|
|
|
|
|
echo `pkg-config --cflags-only-I libart-2.0`
|
|
|
|
|
;;
|
|
|
|
|
--libs)
|
|
|
|
|
libs="$libs -L@libdir@ -lart_lgpl_2"
|
|
|
|
|
libs=`pkg-config --libs libart-2.0`
|
|
|
|
|
output_libs=yes
|
|
|
|
|
;;
|
|
|
|
|
--static)
|
|
|
|
@ -62,4 +66,3 @@ done
|
|
|
|
|
if test $output_libs = yes ; then
|
|
|
|
|
echo $libs
|
|
|
|
|
fi
|
|
|
|
|
|