X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fgen%2Fadacurses-config.in;h=03f8100240358c963f3cea372a581a5b7c52584f;hp=7e33ec92043bce76bb18fd7f694ca33f52b551ce;hb=093902b4199bbc1d9afec433759e48344c06ed1a;hpb=fde8fd6531cc2063d86dc04a230cd3eef135ab3c diff --git a/Ada95/gen/adacurses-config.in b/Ada95/gen/adacurses-config.in index 7e33ec92..03f81002 100644 --- a/Ada95/gen/adacurses-config.in +++ b/Ada95/gen/adacurses-config.in @@ -1,7 +1,7 @@ #! /bin/sh -# $Id: adacurses-config.in,v 1.5 2009/01/11 00:08:19 tom Exp $ +# $Id: adacurses-config.in,v 1.11 2016/11/05 20:48:35 tom Exp $ ############################################################################## -# Copyright (c) 2007,2009 Free Software Foundation, Inc. # +# Copyright (c) 2007-2012,2016 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -40,25 +40,43 @@ ADA_OBJECTS=@ADA_OBJECTS@ VERSION=@NCURSES_MAJOR@.@NCURSES_MINOR@.@NCURSES_PATCH@ -CFLAGS="-I$ADA_INCLUDE -aO$ADA_OBJECTS" +CFLAGS="-aI$ADA_INCLUDE -aO$ADA_OBJECTS" LIBS="-L$ADA_OBJECTS -lAdaCurses" +THIS="adacurses" +THIS_CFG="$THIS@DFT_ARG_SUFFIX@-config" + 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 -i -largs $LIBS" - ;; - *) - echo 'Usage: adacurses@DFT_ARG_SUFFIX@-config [--version | --cflags | --libs]' >&2 - exit 1 - ;; + 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" + ;; + x--help) + cat <&2 + exit 1 + ;; esac