104 lines
3.2 KiB
Plaintext
104 lines
3.2 KiB
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
package="pbs"
|
||
|
version="2.1.8"
|
||
|
|
||
|
prefix="/usr"
|
||
|
exec_prefix="/usr"
|
||
|
bindir="/usr/bin"
|
||
|
sbindir="/usr/sbin"
|
||
|
libexecdir="/usr/libexec"
|
||
|
datadir="/usr/share"
|
||
|
sysconfdir="/etc"
|
||
|
sharedstatedir="/usr/com"
|
||
|
localstatedir="/var"
|
||
|
infodir="/usr/share/info"
|
||
|
mandir="/usr/share/man"
|
||
|
includedir="/usr/include/torque"
|
||
|
libs="-ltorque"
|
||
|
|
||
|
if test "$#" -eq 0; then
|
||
|
cat <<EOF
|
||
|
Usage: $package-config OPTIONS
|
||
|
Options:
|
||
|
--prefix=DIR) : \$prefix
|
||
|
--package) : \$package
|
||
|
--version) : \$version
|
||
|
--cflags) : -I\$includedir
|
||
|
--libs) : \$libs
|
||
|
--help) print all the options (not just these)
|
||
|
EOF
|
||
|
fi
|
||
|
|
||
|
o=""
|
||
|
h=""
|
||
|
for i in "$@"; do
|
||
|
case $i in
|
||
|
--prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;
|
||
|
--prefix) o="$o $prefix" ;;
|
||
|
--package) o="$o $package" ;;
|
||
|
--version) o="$o $version" ;;
|
||
|
--cflags) if test "_$includedir" != "_/usr/include"
|
||
|
then o="$o -I$includedir" ; fi
|
||
|
;;
|
||
|
--libs) o="$o $libs" ;;
|
||
|
--exec_prefix|--eprefix) o="$o $exec_prefix" ;;
|
||
|
--bindir) o="$o $bindir" ;;
|
||
|
--sbindir) o="$o $sbindir" ;;
|
||
|
--libexecdir) o="$o $libexecdir" ;;
|
||
|
--datadir) o="$o $datadir" ;;
|
||
|
--datainc) o="$o -I$datadir" ;;
|
||
|
--datalib) o="$o -L$datadir" ;;
|
||
|
--sysconfdir) o="$o $sysconfdir" ;;
|
||
|
--sharedstatedir) o="$o $sharedstatedir" ;;
|
||
|
--localstatedir) o="$o $localstatedir" ;;
|
||
|
--infodir) o="$o $infodir" ;;
|
||
|
--mandir) o="$o $mandir" ;;
|
||
|
--includedir) o="$o $includedir" ;;
|
||
|
--data) o="$o -I$datadir/$package" ;;
|
||
|
--pkgdatadir) o="$o $datadir/$package" ;;
|
||
|
--pkgdatainc) o="$o -I$datadir/$package" ;;
|
||
|
--pkgdatalib) o="$o -L$datadir/$package" ;;
|
||
|
--pkglibinc) o="$o -I$libinc/$package" ;;
|
||
|
--pkglibadd) o="$o -L$libadd/$package" ;;
|
||
|
--pkgincludedir) o="$o $includedir/$package" ;;
|
||
|
--help) h="1" ;;
|
||
|
-?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*)
|
||
|
v=`echo $i | sed -e s://:\$:g`
|
||
|
v=`eval "echo $v"`
|
||
|
o="$o $v" ;;
|
||
|
esac
|
||
|
done
|
||
|
|
||
|
o=`eval "echo $o"`
|
||
|
o=`eval "echo $o"`
|
||
|
eval "echo $o"
|
||
|
|
||
|
if test ! -z "$h" ; then
|
||
|
cat <<EOF
|
||
|
--prefix=xxx) (what is that for anyway?)
|
||
|
--prefix) \$prefix $prefix
|
||
|
--package) \$package $package
|
||
|
--version) \$version $version
|
||
|
--cflags) -I\$includedir unless it is /usr/include
|
||
|
--libs) -l\$PACKAGE \$LIBS
|
||
|
--exec_prefix) or...
|
||
|
--eprefix) \$exec_prefix $exec_prefix
|
||
|
--bindir) \$bindir $bindir
|
||
|
--sbindir) \$sbindir $sbindir
|
||
|
--libexecdir) \$libexecdir $libexecdir
|
||
|
--datadir) \$datadir $datadir
|
||
|
--sysconfdir) \$sysconfdir $sysconfdir
|
||
|
--sharedstatedir) \$sharedstatedir$sharedstatedir
|
||
|
--localstatedir) \$localstatedir $localstatedir
|
||
|
--infodir) \$infodir $infodir
|
||
|
--mandir) \$mandir $mandir
|
||
|
--data) -I\$datadir/\$package
|
||
|
--pkgdatadir) \$datadir/\$package
|
||
|
--pkgincludedir) \$includedir/\$package
|
||
|
--help) generated by ac_create_generic_config.m4
|
||
|
-I//varname and other inc-targets like --pkgdatainc supported
|
||
|
-L//varname and other lib-targets, e.g. --pkgdatalib or --libadd
|
||
|
EOF
|
||
|
fi
|