2004-05-22 00:05:20 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
ustr='Usage: yate-config [--cflags] [--includes] [--c-all]
|
2007-01-20 10:14:11 +00:00
|
|
|
[--ldflags] [--libs] [--ld-all] [--ld-nostrip] [--ld-strip]
|
2005-11-07 03:09:23 +00:00
|
|
|
[--config] [--modules] [--scripts] [--skins]
|
|
|
|
[--version]'
|
2004-05-22 00:05:20 +00:00
|
|
|
if [ "$#" = 0 ]; then
|
|
|
|
echo "$ustr"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
prefix="@prefix@"
|
|
|
|
exec_prefix="@exec_prefix@"
|
|
|
|
moddir="@libdir@/yate"
|
|
|
|
confdir="@sysconfdir@/yate"
|
2005-01-29 18:34:34 +00:00
|
|
|
s1="@MODULE_CPPFLAGS@"
|
2004-05-22 00:05:20 +00:00
|
|
|
s2="-I@includedir@/yate"
|
2007-01-20 10:14:11 +00:00
|
|
|
s3="@MODULE_LDFLAGS@"
|
|
|
|
s4="@MODULE_SYMBOLS@"
|
|
|
|
s5="-lyate"
|
2004-05-22 00:05:20 +00:00
|
|
|
|
|
|
|
while [ "$#" != 0 ]; do
|
|
|
|
case "$1" in
|
|
|
|
--version)
|
|
|
|
echo "@PACKAGE_VERSION@"
|
|
|
|
;;
|
|
|
|
--cflags)
|
|
|
|
echo "$s1"
|
|
|
|
;;
|
|
|
|
--includes)
|
|
|
|
echo "$s2"
|
|
|
|
;;
|
|
|
|
--c-all)
|
|
|
|
echo "$s1 $s2"
|
|
|
|
;;
|
|
|
|
--ldflags)
|
2007-01-20 10:14:11 +00:00
|
|
|
echo "$s3 $s4"
|
2004-05-22 00:05:20 +00:00
|
|
|
;;
|
2005-04-20 11:42:19 +00:00
|
|
|
--libs)
|
2007-01-20 10:14:11 +00:00
|
|
|
echo "$s5"
|
2004-05-22 00:05:20 +00:00
|
|
|
;;
|
|
|
|
--ld-all)
|
2007-01-20 10:14:11 +00:00
|
|
|
echo "$s3 $s4 $s5"
|
|
|
|
;;
|
|
|
|
--ld-nostrip)
|
|
|
|
echo "$s3 $s5"
|
|
|
|
;;
|
|
|
|
--ld-strip)
|
|
|
|
echo "$s4"
|
2004-05-22 00:05:20 +00:00
|
|
|
;;
|
|
|
|
--config)
|
|
|
|
echo "$confdir"
|
|
|
|
;;
|
2005-11-07 03:09:23 +00:00
|
|
|
--skins)
|
2005-11-07 03:51:17 +00:00
|
|
|
echo "$moddir/modules/skin"
|
2005-11-07 03:09:23 +00:00
|
|
|
;;
|
2004-05-22 00:05:20 +00:00
|
|
|
--modules)
|
2005-11-07 03:09:23 +00:00
|
|
|
echo "$moddir/modules"
|
|
|
|
;;
|
|
|
|
--scripts)
|
|
|
|
echo "$moddir/scripts"
|
2004-05-22 00:05:20 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "I didn't understand: $1" >&2
|
|
|
|
echo "$ustr" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|