+++ /dev/null
-#!/bin/sh
-# $Id: yaz-config.in,v 1.6 2000-10-02 12:31:43 adam Exp $
-yazprefix=@prefix@
-yaz_echo_cflags=no
-yaz_echo_libs=no
-yaz_echo_help=no
-yaz_echo_tabs=no
-
-yazlibs="@LIBS@"
-YAZVERSION=@VERSION@
-
-usage()
-{
- cat <<EOF
-Usage: yaz-config [OPTIONS] [LIBRARIES]
-Options:
- [--prefix[=DIR]]
- [--version]
- [--libs]
- [--cflags]
- [--tabs]
-EOF
- exit $1
-}
-
-#if test $# -eq 0; then
-# yaz_echo_help=yes
-#fi
-
-while test $# -gt 0; do
- case "$1" in
- -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- case $1 in
- --prefix=*)
- yazprefix=$optarg
- ;;
- --prefix)
- echo $yazprefix
- exit 0
- ;;
- --version)
- echo $YAZVERSION
- exit 0
- ;;
- --cflags)
- yaz_echo_cflags=yes
- ;;
- --libs)
- yaz_echo_libs=yes
- ;;
- --tabs)
- yaz_echo_tabs=yes
- ;;
- -*)
- yaz_echo_help=yes
- ;;
- esac
- shift
-done
-
-YAZTAB=$yazprefix/share/yaz/tab
-YAZBIN=$yazprefix/bin
-
-if test "$yazprefix" = "/usr"; then
- YAZLIB="-lyaz $yazlibs"
-else
- YAZLIB="-L$yazprefix/lib -lyaz $yazlibs"
-fi
-if test "$yazprefix" = "/usr"; then
- YAZINC=
-else
- YAZINC=-I$yazprefix/include
-fi
-
-if test "$yaz_echo_help" = "yes"; then
- usage 1 1>&2
-fi
-if test "$yaz_echo_cflags" = "yes"; then
- echo $YAZINC
-fi
-if test "$yaz_echo_libs" = "yes"; then
- echo $YAZLIB
-fi
-if test "$yaz_echo_tabs" = "yes"; then
- echo $YAZTAB
-fi