183cbb37nwhitehorn#!@SHELL@
22b5579cbapt# $Id: dialog-config.in,v 1.6 2012/10/06 14:29:45 tom Exp $
383cbb37nwhitehorn##############################################################################
42b5579cbapt# Copyright (c) 2007-2011,2012 Thomas E. Dickey                              #
583cbb37nwhitehorn#                                                                            #
683cbb37nwhitehorn# Permission is hereby granted, free of charge, to any person obtaining a    #
783cbb37nwhitehorn# copy of this software and associated documentation files (the "Software"), #
883cbb37nwhitehorn# to deal in the Software without restriction, including without limitation  #
983cbb37nwhitehorn# the rights to use, copy, modify, merge, publish, distribute, distribute    #
1083cbb37nwhitehorn# with modifications, sublicense, and/or sell copies of the Software, and to #
1183cbb37nwhitehorn# permit persons to whom the Software is furnished to do so, subject to the  #
1283cbb37nwhitehorn# following conditions:                                                      #
1383cbb37nwhitehorn#                                                                            #
1483cbb37nwhitehorn# The above copyright notice and this permission notice shall be included in #
1583cbb37nwhitehorn# all copies or substantial portions of the Software.                        #
1683cbb37nwhitehorn#                                                                            #
1783cbb37nwhitehorn# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
1883cbb37nwhitehorn# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
1983cbb37nwhitehorn# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
2083cbb37nwhitehorn# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
2183cbb37nwhitehorn# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
2283cbb37nwhitehorn# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
2383cbb37nwhitehorn# DEALINGS IN THE SOFTWARE.                                                  #
2483cbb37nwhitehorn#                                                                            #
2583cbb37nwhitehorn# Except as contained in this notice, the name(s) of the above copyright     #
2683cbb37nwhitehorn# holders shall not be used in advertising or otherwise to promote the sale, #
2783cbb37nwhitehorn# use or other dealings in this Software without prior written               #
2883cbb37nwhitehorn# authorization.                                                             #
2983cbb37nwhitehorn##############################################################################
3083cbb37nwhitehorn
3183cbb37nwhitehornprefix="@prefix@"
3283cbb37nwhitehornexec_prefix="@exec_prefix@"
332b5579cbaptdatarootdir="@datarootdir@"
3483cbb37nwhitehorn
3583cbb37nwhitehornbindir="@bindir@"
3683cbb37nwhitehornlibdir="@libdir@"
3783cbb37nwhitehorndatadir="@datadir@"
3883cbb37nwhitehornmandir="@mandir@"
3983cbb37nwhitehorn
409904759nwhitehornTHIS="@PACKAGE@"
4183cbb37nwhitehorn
4283cbb37nwhitehorntest $# = 0 && exec @SHELL@ $0 --error
4383cbb37nwhitehorn
4483cbb37nwhitehornwhile test $# -gt 0; do
4583cbb37nwhitehorn	case "$1" in
4683cbb37nwhitehorn	-*=*)
4783cbb37nwhitehorn		ARG=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
4883cbb37nwhitehorn		;;
4983cbb37nwhitehorn	*)
5083cbb37nwhitehorn		ARG=
5183cbb37nwhitehorn		;;
5283cbb37nwhitehorn	esac
5383cbb37nwhitehorn
5483cbb37nwhitehorn	case "$1" in
5583cbb37nwhitehorn	# basic configuration
5683cbb37nwhitehorn	--prefix=*)
5783cbb37nwhitehorn		prefix="$ARG"
5883cbb37nwhitehorn		test -z "$exec_prefix" && exec_prefix="$ARG"
5983cbb37nwhitehorn		;;
6083cbb37nwhitehorn	--prefix)
6183cbb37nwhitehorn		echo "$prefix"
6283cbb37nwhitehorn		;;
6383cbb37nwhitehorn	--exec-prefix=*)
6483cbb37nwhitehorn		exec_prefix="$ARG"
6583cbb37nwhitehorn		;;
6683cbb37nwhitehorn	--exec-prefix)
6783cbb37nwhitehorn		echo "$exec_prefix"
6883cbb37nwhitehorn		;;
6983cbb37nwhitehorn	# compile/link
7083cbb37nwhitehorn	--cflags)
7183cbb37nwhitehorn		INCS=
7283cbb37nwhitehorn		if test "${prefix}/include" != /usr/include ; then
7383cbb37nwhitehorn			INCS="-I${prefix}/include"
7483cbb37nwhitehorn		fi
7583cbb37nwhitehorn		sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
7683cbb37nwhitehorn			$INCS
7783cbb37nwhitehornENDECHO
7883cbb37nwhitehorn		;;
7983cbb37nwhitehorn	--libs)
8083cbb37nwhitehorn		sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
8183cbb37nwhitehorn			-L${exec_prefix}/lib -l${THIS} @LIBS@
8283cbb37nwhitehornENDECHO
8383cbb37nwhitehorn		;;
8483cbb37nwhitehorn	# identification
8583cbb37nwhitehorn	--version)
8683cbb37nwhitehorn		echo "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@"
8783cbb37nwhitehorn		;;
8883cbb37nwhitehorn	--abi-version)
8983cbb37nwhitehorn		echo "@VERSION@" | sed -e 's/:/./g'
9083cbb37nwhitehorn		;;
9183cbb37nwhitehorn	# locations
9283cbb37nwhitehorn	--bindir)
9383cbb37nwhitehorn		echo "${bindir}"
9483cbb37nwhitehorn		;;
9583cbb37nwhitehorn	--datadir)
9683cbb37nwhitehorn		echo "${datadir}"
9783cbb37nwhitehorn		;;
9883cbb37nwhitehorn	--libdir)
9983cbb37nwhitehorn		echo "${libdir}"
10083cbb37nwhitehorn		;;
10183cbb37nwhitehorn	--mandir)
10283cbb37nwhitehorn		echo "${mandir}"
10383cbb37nwhitehorn		;;
10483cbb37nwhitehorn	# general info
10583cbb37nwhitehorn	--help)
10683cbb37nwhitehorn		cat <<ENDHELP
10783cbb37nwhitehornUsage: ${THIS}-config [options]
10883cbb37nwhitehorn
10983cbb37nwhitehornOptions:
11083cbb37nwhitehorn  --prefix           echos the package-prefix of ${THIS}
11183cbb37nwhitehorn  --prefix=ARG       sets the package-prefix of ${THIS}
11283cbb37nwhitehorn  --exec-prefix      echos the executable-prefix of ${THIS}
11383cbb37nwhitehorn  --exec-prefix=ARG  sets the executable-prefix of ${THIS}
11483cbb37nwhitehorn
11583cbb37nwhitehorn  --cflags           echos the C compiler flags needed to compile with ${THIS}
11683cbb37nwhitehorn  --libs             echos the libraries needed to link with ${THIS}
11783cbb37nwhitehorn
11883cbb37nwhitehorn  --version          echos the release+patchdate version of ${THIS}
11983cbb37nwhitehorn  --abi-version      echos the ABI version of ${THIS}
12083cbb37nwhitehorn
12183cbb37nwhitehorn  --bindir           echos the directory containing ${THIS} programs
12283cbb37nwhitehorn  --datadir          echos the directory containing ${THIS} data
12383cbb37nwhitehorn  --libdir           echos the directory containing ${THIS} libraries
12483cbb37nwhitehorn  --mandir           echos the directory containing ${THIS} manpages
12583cbb37nwhitehorn
12683cbb37nwhitehorn  --help             prints this message
12783cbb37nwhitehornENDHELP
12883cbb37nwhitehorn		;;
12983cbb37nwhitehorn	--error|*)
13083cbb37nwhitehorn		@SHELL@ $0 --help 1>&2
13183cbb37nwhitehorn		exit 1
13283cbb37nwhitehorn		;;
13383cbb37nwhitehorn	esac
13483cbb37nwhitehorn	shift
13583cbb37nwhitehorndone
13683cbb37nwhitehorn# vile:shmode
137