blob: b7e9a0e4f3297820a18676e4b3871fd26a27cfc4 [file] [log] [blame]
Amit Daniel Kachhap44549432011-07-20 14:21:22 +05301#! /bin/sh
2# $Id: adacurses-config.in,v 1.2 2007/04/07 21:06:50 tom Exp $
3#
4# This script will return the option to add to `gnatmake' for using
5# AdaCurses.
6#
7
8prefix="/usr/local"
9exec_prefix="${prefix}"
10libdir="${exec_prefix}/lib"
11
12VERSION="5.7.20081102"
13
14CFLAGS="-I$libdir/adacurses -L$libdir/adacurses"
15LIBS="-L$prefix/lib -lAdaCurses"
16
17case "x$1" in
18 x--version)
19 echo AdaCurses $VERSION
20 ;;
21 x--cflags)
22 echo $CFLAGS
23 ;;
24 x--libs)
25 echo $LIBS
26 ;;
27 x)
28 # if no parameter is given, give what gnatmake needs
29 echo $CFLAGS -largs $LIBS
30 ;;
31 *)
32 echo 'Usage: adacurses-config [--version | --cflags | --libs]' >&2
33 exit 1
34 ;;
35esac