#!/bin/sh
-
+# $Id: yaz-config.in,v 1.6 2000-10-02 12:31:43 adam Exp $
yazprefix=@prefix@
-echo_cflags=no
-echo_libs=no
-echo_help=no
-echo_tabs=no
+yaz_echo_cflags=no
+yaz_echo_libs=no
+yaz_echo_help=no
+yaz_echo_tabs=no
-yazlibs=@LIBS@
+yazlibs="@LIBS@"
YAZVERSION=@VERSION@
usage()
}
#if test $# -eq 0; then
-# echo_help=yes
+# yaz_echo_help=yes
#fi
while test $# -gt 0; do
exit 0
;;
--cflags)
- echo_cflags=yes
+ yaz_echo_cflags=yes
;;
--libs)
- echo_libs=yes
+ yaz_echo_libs=yes
;;
--tabs)
- echo_tabs=yes
+ yaz_echo_tabs=yes
;;
- *)
- echo_help=yes
+ -*)
+ yaz_echo_help=yes
;;
esac
shift
YAZBIN=$yazprefix/bin
if test "$yazprefix" = "/usr"; then
- YAZLIB="-L$yazprefix/lib $YAZLIB"
-else
YAZLIB="-lyaz $yazlibs"
+else
+ YAZLIB="-L$yazprefix/lib -lyaz $yazlibs"
fi
if test "$yazprefix" = "/usr"; then
YAZINC=
YAZINC=-I$yazprefix/include
fi
-if test "$echo_help" = "yes"; then
+if test "$yaz_echo_help" = "yes"; then
usage 1 1>&2
fi
-if test "$echo_cflags" = "yes"; then
+if test "$yaz_echo_cflags" = "yes"; then
echo $YAZINC
fi
-if test "$echo_libs" = "yes"; then
+if test "$yaz_echo_libs" = "yes"; then
echo $YAZLIB
fi
-if test "$echo_tabs" = "yes"; then
+if test "$yaz_echo_tabs" = "yes"; then
echo $YAZTAB
fi