Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 1 | #! /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 | |
| 8 | prefix="@prefix@" |
| 9 | exec_prefix="@exec_prefix@" |
| 10 | libdir="@libdir@" |
| 11 | |
| 12 | VERSION="@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@" |
| 13 | |
| 14 | CFLAGS="-I$libdir/adacurses -L$libdir/adacurses" |
| 15 | LIBS="-L$prefix/lib -lAdaCurses" |
| 16 | |
| 17 | case "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 | ;; |
| 35 | esac |