diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-05-20 12:51:02 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-05-20 12:51:02 +0000 |
commit | 1cd0553a0424534b5f0bbaea6cabea27093b1c53 (patch) | |
tree | 0cf46bc4cd677f2b9837628e1e2448db788c3f44 /libextra/libgnutls-extra-config.in | |
parent | 39cf561d917cc880f51673b2f7650f83bfa23736 (diff) | |
download | gnutls-1cd0553a0424534b5f0bbaea6cabea27093b1c53.tar.gz |
*** empty log message ***
Diffstat (limited to 'libextra/libgnutls-extra-config.in')
-rwxr-xr-x | libextra/libgnutls-extra-config.in | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/libextra/libgnutls-extra-config.in b/libextra/libgnutls-extra-config.in new file mode 100755 index 0000000000..ace4422c02 --- /dev/null +++ b/libextra/libgnutls-extra-config.in @@ -0,0 +1,90 @@ +#!/bin/sh + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +exec_prefix_set=no + +gnutls_libs="@LIBGNUTLS_EXTRA_LIBS@" +gnutls_cflags="@LIBGNUTLS_EXTRA_CFLAGS@" + +usage() +{ + cat <<EOF +Usage: libgnutls-config [OPTIONS] +Options: + [--prefix[=DIR]] + [--exec-prefix[=DIR]] + [--version] + [--libs] + [--cflags] +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 + --prefix=*) + prefix=$optarg + if test $exec_prefix_set = no ; then + exec_prefix=$optarg + fi + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo "@VERSION@" + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$echo_prefix" = "yes"; then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes"; then + echo $exec_prefix +fi + +if test "$echo_cflags" = "yes"; then + if test "@includedir@" != "/usr/include" ; then + includes="-I@includedir@" + for i in $gnutls_cflags ; do + if test "$i" = "-I@includedir@" ; then + includes="" + fi + done + fi + echo $includes $gnutls_cflags +fi + +if test "$echo_libs" = "yes"; then + echo ${gnutls_libs} +fi |