#! /bin/sh
#
# mifluz-config.  Generated from mifluz-config.in by configure. 
#
# Part of the ht://Dig package   <http://www.htdig.org/>
# Copyright (c) 2001 The ht://Dig Group
# For copyright details, see the file COPYING in your distribution
# or the GNU General Public License version 2 or later
# <http://www.gnu.org/copyleft/gpl.html>
#

prefix="/usr/local"
exec_prefix="${prefix}"
bindir="${exec_prefix}/bin"
datadir="${prefix}/share"
includedir="${prefix}/include"
infodir="/usr/local/share/info"
libdir="${exec_prefix}/lib"
libexecdir="${exec_prefix}/libexec"
localstatedir="/usr/local/var"
mandir="/usr/local/man"
sbindir="${exec_prefix}/sbin"
sharedstatedir="${prefix}/com"
sysconfdir="${prefix}/etc"

usage()
{
    cat <<EOF
Usage: mifluz-config [OPTION]...

Print configuration information for the mifluz library.

Known values for OPTION are:

  --bindir            The directory for installing executables that users run.
  --datadir           The directory for installing read-only 
                        architecture-independent data.
  --exec-prefix       The installation prefix for architecture-dependent files.
  --includedir        The directory for installing C header files.
  --infodir           The directory for installing documentation in 
                        Info format.
  --libdir            The directory for installing object code libraries.
  --libexecdir        The directory for installing executables that 
                        other programs run.
  --localstatedir     The directory for installing modifiable 
                        single-machine data.
  --mandir            The top-level directory for installing documentation 
                        in man format.
  --prefix            The common installation prefix for all files.
  --sbindir           The directory for installing executables that system
                        administrators run.
  --sharedstatedir    The directory for installing modifiable 
                        architecture-independent data.
  --sysconfdir        The directory for installing read-only 
                        single-machine data.
  --libs	      Print library linking information.
  --cflags	      Print pre-processor and compiler flags.
  --help	      Display this help and exit.
  --version	      Output version information.
EOF

    exit $1
}

if test $# -eq 0; then
    usage 1
fi

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case "$1" in
    --bindir)
	echo "${exec_prefix}/bin"
	;;

    --datadir)
	echo "${prefix}/share"
	;;

    --exec-prefix)
	echo "${prefix}"
	;;

    --includedir)
	echo "${prefix}/include"
	;;

    --infodir)
	echo "/usr/local/share/info"
	;;

    --libdir)
	echo "${exec_prefix}/lib"
	;;

    --libexecdir)
	echo "${exec_prefix}/libexec"
	;;

    --localstatedir)
	echo "/usr/local/var"
	;;

    --mandir)
	echo "/usr/local/man"
	;;

    --prefix)
	echo "/usr/local"
	;;

    --sbindir)
	echo "${exec_prefix}/sbin"
	;;

    --sharedstatedir)
	echo "${prefix}/com"
	;;

    --sysconfdir)
	echo "${prefix}/etc"
	;;

    --libs)
        echo "-L${exec_prefix}/lib -lmifluz"
       	;;

    --cflags)
       	echo "-I${prefix}/include"
       	;;

    --help)
	usage 0
	;;

    --version)
	echo 0.26.0
	exit 0
	;;

    *)
	usage
	exit 1
	;;
    esac
    shift
done

exit 0
