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.
13 exec_prefix=@exec_prefix@
15 # Make sure that no weird locale setting messes up our sed regexps etc.
20 # NPTH's own cflags and libs
21 cflags="-I@includedir@ @NPTH_CONFIG_CFLAGS@"
22 libs="-L@libdir@ @NPTH_CONFIG_LIBS@"
29 Usage: npth-config [OPTIONS]
31 [--thread={${thread_modules}}]
43 if test $# -eq 0; then
47 while test $# -gt 0; do
50 optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
59 # For compatibility reasons with old M4 macros, we ignore
63 output="$output $prefix"
68 output="$output $exec_prefix"
78 echo "@NPTH_CONFIG_API_VERSION@"
82 echo "@NPTH_CONFIG_HOST@"
90 -I/usr/include|-I/include)
95 if test x"$j" = x"$i" ; then
102 if test $skip = no ; then
106 output="$output $result"
117 for j in $result ; do
118 if test x"$j" = x"$i" ; then
125 if test $skip = no ; then
129 output="$output $result"