#!/bin/sh
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# T2 SDE: package/.../lua/lua-config
|
|
# Copyright (C) 2006 The T2 SDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
# GNU General Public License can be found in the file COPYING.
|
|
# --- T2-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
version="@version@"
|
|
prefix="@prefix@"
|
|
libdir="@libdir@"
|
|
includedir="@includedir@"
|
|
pkglibdir="@pkglibdir@"
|
|
pkgdatadir="@pkgdatadir@"
|
|
LIBS="@LIBS@"
|
|
CFLAGS="@CFLAGS@"
|
|
|
|
usage()
|
|
{
|
|
cat <<EOF
|
|
Usage: lua-config [OPTIONS]
|
|
Options:
|
|
[--prefix]
|
|
[--version]
|
|
[--libdir]
|
|
[--includedir]
|
|
[--libs]
|
|
[--cflags]
|
|
[--pkglibdir]
|
|
[--pkgdatadir]
|
|
EOF
|
|
exit $1
|
|
}
|
|
|
|
if test $# -eq 0 ; then
|
|
usage 1 1>&2
|
|
fi
|
|
|
|
while test $# -gt 0 ; do
|
|
case $1 in
|
|
--version) echo $version ;;
|
|
--prefix) echo $prefix ;;
|
|
--cflags) echo $CFLAGS ;;
|
|
--libdir) echo $libdir ;;
|
|
--includedir) echo $includedir ;;
|
|
--libs) echo $LIBS ;;
|
|
--pkglibdir) echo $pkglibdir ;;
|
|
--pkgdatadir) echo $pkgdatadir ;;
|
|
*)
|
|
usage 1 1>&2
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|