#!/bin/sh
# This file is part of the YAZ toolkit.
# Copyright (C) 1995-2008 Index Data

yaz_echo_help=no

usage()
{
    cat <<EOF
Usage: yaz-config [OPTIONS] [LIBRARIES]
Options:
	[--prefix[=DIR]]
	[--version]
	[--libs]
	[--lalibs]
	[--cflags]
	[--comp]
        [-V]
Libraries:
	threads icu server
EOF
	exit $1
}

while test $# -gt 0; do
    case "$1" in
	-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
	*) optarg= ;;
    esac
    
    case $1 in
	--prefix)
 	    echo "/usr"
	    exit 0
	    ;;
        -V)
	    echo "fbf20beaa0ae8e4b90cb107d05656272e912ef9a"
	    exit 0
            ;;
	--version)
 	    echo "5.37.0"
	    exit 0
	    ;;
	--cflags)
 	    echo "-I/usr/include  -DYAZ_POSIX_THREADS=1 -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2   -DYAZ_HAVE_ICU=1"
	    ;;
	--libs)
 	    echo "-L/usr/lib64 -lyaz  -lexslt -lxslt -lxml2  -lpthread -licui18n -licuuc"
	    ;;
	--lalibs)
 	    echo "/usr/lib64/libyaz.la  -lexslt -lxslt -lxml2  -lpthread -licui18n -licuuc"
	    ;;
	--comp)
 	    echo "/usr/bin/yaz-asncomp"
	    ;;
	-*)
	    yaz_echo_help=yes
	    ;;
    esac
    shift
done
if test "$yaz_echo_help" = "yes"; then
    usage 1 1>&2
fi
# Local Variables:
# mode:shell-script
# sh-indentation: 2
# sh-basic-offset: 4
# End:
