#!/bin/sh
# openlayer-config autogenerated by cbuild script from the OpenLayer library
version=2.1\(SVN\)
prefix=/usr
cflags="-I$prefix/include -I$prefix/include/OpenLayer "
libs="-lopenlayer -lagl -lpng   -lz `allegro-config --libs` -lGL -lGLU"

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

Known values for OPTION are:

  --libs                print library linking information
  --cflags              print pre-processor and compiler flags
  --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
    --version)
        echo $version
        ;;
    --cflags)
        echo $cflags
        ;;

    --libs)
        echo $libs
        ;;
    esac
    shift
done
