2 # Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc.
4 # This file is free software; as a special exception the author gives
5 # unlimited permission to copy and/or distribute it, with or without
6 # modifications, as long as this notice is preserved.
8 # This file is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 exec_prefix=@exec_prefix@
15 includedir=@includedir@
17 isubdirafter="@GPG_ERROR_CONFIG_ISUBDIRAFTER@"
25 Usage: gpg-error-config [OPTIONS]
27 [--mt] (must be the first option)
37 if test $# -eq 0; then
41 while test $# -gt 0; do
44 optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
56 output="$output $prefix"
59 output="$output $exec_prefix"
62 echo "@PACKAGE_VERSION@"
66 if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then
67 output="$output -I$includedir"
69 # Note: -idirafter is a gcc extension. It is only used on
70 # systems where gcc is the only compiler we support.
71 for i in $isubdirafter; do
72 output="$output -idirafter ${includedir}/${i}"
74 output="$output @GPG_ERROR_CONFIG_CFLAGS@"
75 if test $mt = yes ; then
76 output="$output @GPG_ERROR_CONFIG_MT_CFLAGS@"
81 /usr/lib|/usr/lib64|/lib|/lib64) ;;
83 output="$output -L$libdir"
86 output="$output @GPG_ERROR_CONFIG_LIBS@"
87 if test $mt = yes ; then
88 output="$output @GPG_ERROR_CONFIG_MT_LIBS@"
92 echo "@GPG_ERROR_CONFIG_HOST@"