2 # $Id: dialog-config.in,v 1.5 2011/01/06 09:38:03 tom Exp $
3 ##############################################################################
4 # Copyright (c) 2007,2011 Thomas E. Dickey #
6 # Permission is hereby granted, free of charge, to any person obtaining a #
7 # copy of this software and associated documentation files (the "Software"), #
8 # to deal in the Software without restriction, including without limitation #
9 # the rights to use, copy, modify, merge, publish, distribute, distribute #
10 # with modifications, sublicense, and/or sell copies of the Software, and to #
11 # permit persons to whom the Software is furnished to do so, subject to the #
12 # following conditions: #
14 # The above copyright notice and this permission notice shall be included in #
15 # all copies or substantial portions of the Software. #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
20 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
23 # DEALINGS IN THE SOFTWARE. #
25 # Except as contained in this notice, the name(s) of the above copyright #
26 # holders shall not be used in advertising or otherwise to promote the sale, #
27 # use or other dealings in this Software without prior written #
29 ##############################################################################
32 exec_prefix="@exec_prefix@"
41 test $# = 0 && exec @SHELL@ $0 --error
43 while test $# -gt 0; do
46 ARG=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
57 test -z "$exec_prefix" && exec_prefix="$ARG"
71 if test "${prefix}/include" != /usr/include ; then
72 INCS="-I${prefix}/include"
74 sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
79 sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
80 -L${exec_prefix}/lib -l${THIS} @LIBS@
85 echo "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@"
88 echo "@VERSION@" | sed -e 's/:/./g'
106 Usage: ${THIS}-config [options]
109 --prefix echos the package-prefix of ${THIS}
110 --prefix=ARG sets the package-prefix of ${THIS}
111 --exec-prefix echos the executable-prefix of ${THIS}
112 --exec-prefix=ARG sets the executable-prefix of ${THIS}
114 --cflags echos the C compiler flags needed to compile with ${THIS}
115 --libs echos the libraries needed to link with ${THIS}
117 --version echos the release+patchdate version of ${THIS}
118 --abi-version echos the ABI version of ${THIS}
120 --bindir echos the directory containing ${THIS} programs
121 --datadir echos the directory containing ${THIS} data
122 --libdir echos the directory containing ${THIS} libraries
123 --mandir echos the directory containing ${THIS} manpages
125 --help prints this message
129 @SHELL@ $0 --help 1>&2