#!/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 <&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