haiku/src/libs/pdflib/pdflib-config.in
Ingo Weinhold 338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00

99 lines
2.3 KiB
Bash

#!/bin/sh
#
# Return information about the local PDFlib installation
#
# $Id$
# installation directories
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
bindir=@bindir@
usage()
{
cat <<EOF
Print information on PDFlib's version, configuration, and use.
Usage: pdflib-config [options]
Options:
--bindings # available PDFlib language bindings
--libdir # directory where PDFlib library is installed
--includedir # directory where PDFlib header is installed
--version # complete PDFlib version string
--majorversion # PDFlib major version number
--minorversion # PDFlib minor version number
--revision # PDFlib revision version number
--libversion # PDFlib's libtool interface number (not
# necessarily the shared library file name suffix!)
--pdi # whether or not PDF import library (PDI) is available
--ldflags # options required for linking against PDFlib
--libs # same as --ldflags
--cflags # options required for compiling PDFlib applications
--includes # same as --cflags
--all # print a summary of all PDFlib configure options
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--bindings)
echo @BINDINGS@
;;
--libdir)
echo $libdir
;;
--includedir)
echo $includedir
;;
--version)
echo @VERSION@
;;
--majorversion)
echo @PDFLIB_MAJOR@
;;
--minorversion)
echo @PDFLIB_MINOR@
;;
--pdi)
echo @WITH_PDI@
;;
--revision)
echo @PDFLIB_REVISION@
;;
--libversion)
echo @PDFLIB_LTCURRENT@:@PDFLIB_LTREVISION@:@PDFLIB_LTAGE@
;;
--libs|--ldflags)
echo -L@libdir@ -l@PDFLIBNAME@ @EXTERNALLIBS@
;;
--cflags|--includes)
echo -I@includedir@
;;
--all)
echo "PDFlib @VERSION@"
echo "bindings: @BINDINGS@"
echo "includedir: $includedir"
echo "libdir: $libdir"
echo "libversion: @PDFLIB_LTCURRENT@:@PDFLIB_LTREVISION@:@PDFLIB_LTAGE@"
echo "pdi: @WITH_PDI@"
echo "ldflags: -L@libdir@ -l@PDFLIBNAME@ @EXTERNALLIBS@"
echo "cflags: -I@includedir@"
;;
*)
usage 1 1>&2
;;
esac
shift
done