blob: b7e9a0e4f3297820a18676e4b3871fd26a27cfc4 [file] [log] [blame]
#! /bin/sh
# $Id: adacurses-config.in,v 1.2 2007/04/07 21:06:50 tom Exp $
#
# This script will return the option to add to `gnatmake' for using
# AdaCurses.
#
prefix="/usr/local"
exec_prefix="${prefix}"
libdir="${exec_prefix}/lib"
VERSION="5.7.20081102"
CFLAGS="-I$libdir/adacurses -L$libdir/adacurses"
LIBS="-L$prefix/lib -lAdaCurses"
case "x$1" in
x--version)
echo AdaCurses $VERSION
;;
x--cflags)
echo $CFLAGS
;;
x--libs)
echo $LIBS
;;
x)
# if no parameter is given, give what gnatmake needs
echo $CFLAGS -largs $LIBS
;;
*)
echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2
exit 1
;;
esac