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