configure revision 1.2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52 for libnbcompat noversion.
4#
5# Report bugs to <lib-bug-people@netbsd.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12# Avoid depending upon Character Ranges.
13as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16as_cr_digits='0123456789'
17as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19# Sed expression to map a string onto a valid variable name.
20as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22# Sed expression to map a string onto a valid CPP name.
23as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25# Be Bourne compatible
26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27  emulate sh
28  NULLCMD=:
29elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30  set -o posix
31fi
32
33# Name of the executable.
34as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36if expr a : '\(a\)' >/dev/null 2>&1; then
37  as_expr=expr
38else
39  as_expr=false
40fi
41
42rm -f conf$$ conf$$.exe conf$$.file
43echo >conf$$.file
44if ln -s conf$$.file conf$$ 2>/dev/null; then
45  # We could just check for DJGPP; but this test a) works b) is more generic
46  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47  if test -f conf$$.exe; then
48    # Don't use ln at all; we don't have any links
49    as_ln_s='cp -p'
50  else
51    as_ln_s='ln -s'
52  fi
53elif ln conf$$.file conf$$ 2>/dev/null; then
54  as_ln_s=ln
55else
56  as_ln_s='cp -p'
57fi
58rm -f conf$$ conf$$.exe conf$$.file
59
60as_executable_p="test -f"
61
62# Support unset when possible.
63if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64  as_unset=unset
65else
66  as_unset=false
67fi
68
69# NLS nuisances.
70$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79# IFS
80# We need space, tab and new line, in precisely that order.
81as_nl='
82'
83IFS=" 	$as_nl"
84
85# CDPATH.
86$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88# Name of the host.
89# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90# so uname gets run too.
91ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93exec 6>&1
94
95#
96# Initializations.
97#
98ac_default_prefix=/usr/local
99cross_compiling=no
100subdirs=
101MFLAGS= MAKEFLAGS=
102SHELL=${CONFIG_SHELL-/bin/sh}
103
104# Maximum number of lines to put in a shell here document.
105# This variable seems obsolete.  It should probably be removed, and
106# only ac_max_sed_lines should be used.
107: ${ac_max_here_lines=38}
108
109# Factoring default headers for most tests.
110ac_includes_default="\
111#include <stdio.h>
112#if HAVE_SYS_TYPES_H
113# include <sys/types.h>
114#endif
115#if HAVE_SYS_STAT_H
116# include <sys/stat.h>
117#endif
118#if STDC_HEADERS
119# include <stdlib.h>
120# include <stddef.h>
121#else
122# if HAVE_STDLIB_H
123#  include <stdlib.h>
124# endif
125#endif
126#if HAVE_STRING_H
127# if !STDC_HEADERS && HAVE_MEMORY_H
128#  include <memory.h>
129# endif
130# include <string.h>
131#endif
132#if HAVE_STRINGS_H
133# include <strings.h>
134#endif
135#if HAVE_INTTYPES_H
136# include <inttypes.h>
137#else
138# if HAVE_STDINT_H
139#  include <stdint.h>
140# endif
141#endif
142#if HAVE_UNISTD_H
143# include <unistd.h>
144#endif"
145
146# Initialize some variables set by options.
147ac_init_help=
148ac_init_version=false
149# The variables have the same names as the options, with
150# dashes changed to underlines.
151cache_file=/dev/null
152exec_prefix=NONE
153no_create=
154no_recursion=
155prefix=NONE
156program_prefix=NONE
157program_suffix=NONE
158program_transform_name=s,x,x,
159silent=
160site=
161srcdir=
162verbose=
163x_includes=NONE
164x_libraries=NONE
165
166# Installation directory options.
167# These are left unexpanded so users can "make install exec_prefix=/foo"
168# and all the variables that are supposed to be based on exec_prefix
169# by default will actually change.
170# Use braces instead of parens because sh, perl, etc. also accept them.
171bindir='${exec_prefix}/bin'
172sbindir='${exec_prefix}/sbin'
173libexecdir='${exec_prefix}/libexec'
174datadir='${prefix}/share'
175sysconfdir='${prefix}/etc'
176sharedstatedir='${prefix}/com'
177localstatedir='${prefix}/var'
178libdir='${exec_prefix}/lib'
179includedir='${prefix}/include'
180oldincludedir='/usr/include'
181infodir='${prefix}/info'
182mandir='${prefix}/man'
183
184# Identity of this package.
185PACKAGE_NAME='libnbcompat'
186PACKAGE_TARNAME='libnbcompat'
187PACKAGE_VERSION='noversion'
188PACKAGE_STRING='libnbcompat noversion'
189PACKAGE_BUGREPORT='lib-bug-people@netbsd.org'
190
191ac_prev=
192for ac_option
193do
194  # If the previous option needs an argument, assign it.
195  if test -n "$ac_prev"; then
196    eval "$ac_prev=\$ac_option"
197    ac_prev=
198    continue
199  fi
200
201  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203  # Accept the important Cygnus configure options, so we can diagnose typos.
204
205  case $ac_option in
206
207  -bindir | --bindir | --bindi | --bind | --bin | --bi)
208    ac_prev=bindir ;;
209  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210    bindir=$ac_optarg ;;
211
212  -build | --build | --buil | --bui | --bu)
213    ac_prev=build_alias ;;
214  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215    build_alias=$ac_optarg ;;
216
217  -cache-file | --cache-file | --cache-fil | --cache-fi \
218  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219    ac_prev=cache_file ;;
220  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222    cache_file=$ac_optarg ;;
223
224  --config-cache | -C)
225    cache_file=config.cache ;;
226
227  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228    ac_prev=datadir ;;
229  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230  | --da=*)
231    datadir=$ac_optarg ;;
232
233  -disable-* | --disable-*)
234    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235    # Reject names that are not valid shell variable names.
236    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238   { (exit 1); exit 1; }; }
239    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240    eval "enable_$ac_feature=no" ;;
241
242  -enable-* | --enable-*)
243    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244    # Reject names that are not valid shell variable names.
245    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247   { (exit 1); exit 1; }; }
248    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249    case $ac_option in
250      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251      *) ac_optarg=yes ;;
252    esac
253    eval "enable_$ac_feature='$ac_optarg'" ;;
254
255  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257  | --exec | --exe | --ex)
258    ac_prev=exec_prefix ;;
259  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261  | --exec=* | --exe=* | --ex=*)
262    exec_prefix=$ac_optarg ;;
263
264  -gas | --gas | --ga | --g)
265    # Obsolete; use --with-gas.
266    with_gas=yes ;;
267
268  -help | --help | --hel | --he | -h)
269    ac_init_help=long ;;
270  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271    ac_init_help=recursive ;;
272  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273    ac_init_help=short ;;
274
275  -host | --host | --hos | --ho)
276    ac_prev=host_alias ;;
277  -host=* | --host=* | --hos=* | --ho=*)
278    host_alias=$ac_optarg ;;
279
280  -includedir | --includedir | --includedi | --included | --include \
281  | --includ | --inclu | --incl | --inc)
282    ac_prev=includedir ;;
283  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284  | --includ=* | --inclu=* | --incl=* | --inc=*)
285    includedir=$ac_optarg ;;
286
287  -infodir | --infodir | --infodi | --infod | --info | --inf)
288    ac_prev=infodir ;;
289  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290    infodir=$ac_optarg ;;
291
292  -libdir | --libdir | --libdi | --libd)
293    ac_prev=libdir ;;
294  -libdir=* | --libdir=* | --libdi=* | --libd=*)
295    libdir=$ac_optarg ;;
296
297  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298  | --libexe | --libex | --libe)
299    ac_prev=libexecdir ;;
300  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301  | --libexe=* | --libex=* | --libe=*)
302    libexecdir=$ac_optarg ;;
303
304  -localstatedir | --localstatedir | --localstatedi | --localstated \
305  | --localstate | --localstat | --localsta | --localst \
306  | --locals | --local | --loca | --loc | --lo)
307    ac_prev=localstatedir ;;
308  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311    localstatedir=$ac_optarg ;;
312
313  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314    ac_prev=mandir ;;
315  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316    mandir=$ac_optarg ;;
317
318  -nfp | --nfp | --nf)
319    # Obsolete; use --without-fp.
320    with_fp=no ;;
321
322  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323  | --no-cr | --no-c)
324    no_create=yes ;;
325
326  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328    no_recursion=yes ;;
329
330  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332  | --oldin | --oldi | --old | --ol | --o)
333    ac_prev=oldincludedir ;;
334  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337    oldincludedir=$ac_optarg ;;
338
339  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340    ac_prev=prefix ;;
341  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342    prefix=$ac_optarg ;;
343
344  -program-prefix | --program-prefix | --program-prefi | --program-pref \
345  | --program-pre | --program-pr | --program-p)
346    ac_prev=program_prefix ;;
347  -program-prefix=* | --program-prefix=* | --program-prefi=* \
348  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349    program_prefix=$ac_optarg ;;
350
351  -program-suffix | --program-suffix | --program-suffi | --program-suff \
352  | --program-suf | --program-su | --program-s)
353    ac_prev=program_suffix ;;
354  -program-suffix=* | --program-suffix=* | --program-suffi=* \
355  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356    program_suffix=$ac_optarg ;;
357
358  -program-transform-name | --program-transform-name \
359  | --program-transform-nam | --program-transform-na \
360  | --program-transform-n | --program-transform- \
361  | --program-transform | --program-transfor \
362  | --program-transfo | --program-transf \
363  | --program-trans | --program-tran \
364  | --progr-tra | --program-tr | --program-t)
365    ac_prev=program_transform_name ;;
366  -program-transform-name=* | --program-transform-name=* \
367  | --program-transform-nam=* | --program-transform-na=* \
368  | --program-transform-n=* | --program-transform-=* \
369  | --program-transform=* | --program-transfor=* \
370  | --program-transfo=* | --program-transf=* \
371  | --program-trans=* | --program-tran=* \
372  | --progr-tra=* | --program-tr=* | --program-t=*)
373    program_transform_name=$ac_optarg ;;
374
375  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376  | -silent | --silent | --silen | --sile | --sil)
377    silent=yes ;;
378
379  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380    ac_prev=sbindir ;;
381  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382  | --sbi=* | --sb=*)
383    sbindir=$ac_optarg ;;
384
385  -sharedstatedir | --sharedstatedir | --sharedstatedi \
386  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387  | --sharedst | --shareds | --shared | --share | --shar \
388  | --sha | --sh)
389    ac_prev=sharedstatedir ;;
390  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393  | --sha=* | --sh=*)
394    sharedstatedir=$ac_optarg ;;
395
396  -site | --site | --sit)
397    ac_prev=site ;;
398  -site=* | --site=* | --sit=*)
399    site=$ac_optarg ;;
400
401  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402    ac_prev=srcdir ;;
403  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404    srcdir=$ac_optarg ;;
405
406  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407  | --syscon | --sysco | --sysc | --sys | --sy)
408    ac_prev=sysconfdir ;;
409  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411    sysconfdir=$ac_optarg ;;
412
413  -target | --target | --targe | --targ | --tar | --ta | --t)
414    ac_prev=target_alias ;;
415  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416    target_alias=$ac_optarg ;;
417
418  -v | -verbose | --verbose | --verbos | --verbo | --verb)
419    verbose=yes ;;
420
421  -version | --version | --versio | --versi | --vers | -V)
422    ac_init_version=: ;;
423
424  -with-* | --with-*)
425    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426    # Reject names that are not valid shell variable names.
427    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428      { echo "$as_me: error: invalid package name: $ac_package" >&2
429   { (exit 1); exit 1; }; }
430    ac_package=`echo $ac_package| sed 's/-/_/g'`
431    case $ac_option in
432      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433      *) ac_optarg=yes ;;
434    esac
435    eval "with_$ac_package='$ac_optarg'" ;;
436
437  -without-* | --without-*)
438    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439    # Reject names that are not valid shell variable names.
440    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441      { echo "$as_me: error: invalid package name: $ac_package" >&2
442   { (exit 1); exit 1; }; }
443    ac_package=`echo $ac_package | sed 's/-/_/g'`
444    eval "with_$ac_package=no" ;;
445
446  --x)
447    # Obsolete; use --with-x.
448    with_x=yes ;;
449
450  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451  | --x-incl | --x-inc | --x-in | --x-i)
452    ac_prev=x_includes ;;
453  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455    x_includes=$ac_optarg ;;
456
457  -x-libraries | --x-libraries | --x-librarie | --x-librari \
458  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459    ac_prev=x_libraries ;;
460  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462    x_libraries=$ac_optarg ;;
463
464  -*) { echo "$as_me: error: unrecognized option: $ac_option
465Try \`$0 --help' for more information." >&2
466   { (exit 1); exit 1; }; }
467    ;;
468
469  *=*)
470    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471    # Reject names that are not valid shell variable names.
472    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474   { (exit 1); exit 1; }; }
475    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476    eval "$ac_envvar='$ac_optarg'"
477    export $ac_envvar ;;
478
479  *)
480    # FIXME: should be removed in autoconf 3.0.
481    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485    ;;
486
487  esac
488done
489
490if test -n "$ac_prev"; then
491  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492  { echo "$as_me: error: missing argument to $ac_option" >&2
493   { (exit 1); exit 1; }; }
494fi
495
496# Be sure to have absolute paths.
497for ac_var in exec_prefix prefix
498do
499  eval ac_val=$`echo $ac_var`
500  case $ac_val in
501    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503   { (exit 1); exit 1; }; };;
504  esac
505done
506
507# Be sure to have absolute paths.
508for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509              localstatedir libdir includedir oldincludedir infodir mandir
510do
511  eval ac_val=$`echo $ac_var`
512  case $ac_val in
513    [\\/$]* | ?:[\\/]* ) ;;
514    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515   { (exit 1); exit 1; }; };;
516  esac
517done
518
519# There might be people who depend on the old broken behavior: `$host'
520# used to hold the argument of --host etc.
521build=$build_alias
522host=$host_alias
523target=$target_alias
524
525# FIXME: should be removed in autoconf 3.0.
526if test "x$host_alias" != x; then
527  if test "x$build_alias" = x; then
528    cross_compiling=maybe
529    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530    If a cross compiler is detected then cross compile mode will be used." >&2
531  elif test "x$build_alias" != "x$host_alias"; then
532    cross_compiling=yes
533  fi
534fi
535
536ac_tool_prefix=
537test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539test "$silent" = yes && exec 6>/dev/null
540
541# Find the source files, if location was not specified.
542if test -z "$srcdir"; then
543  ac_srcdir_defaulted=yes
544  # Try the directory containing this script, then its parent.
545  ac_prog=$0
546  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548  srcdir=$ac_confdir
549  if test ! -r $srcdir/$ac_unique_file; then
550    srcdir=..
551  fi
552else
553  ac_srcdir_defaulted=no
554fi
555if test ! -r $srcdir/$ac_unique_file; then
556  if test "$ac_srcdir_defaulted" = yes; then
557    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558   { (exit 1); exit 1; }; }
559  else
560    { echo "$as_me: error: cannot find sources in $srcdir" >&2
561   { (exit 1); exit 1; }; }
562  fi
563fi
564srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565ac_env_build_alias_set=${build_alias+set}
566ac_env_build_alias_value=$build_alias
567ac_cv_env_build_alias_set=${build_alias+set}
568ac_cv_env_build_alias_value=$build_alias
569ac_env_host_alias_set=${host_alias+set}
570ac_env_host_alias_value=$host_alias
571ac_cv_env_host_alias_set=${host_alias+set}
572ac_cv_env_host_alias_value=$host_alias
573ac_env_target_alias_set=${target_alias+set}
574ac_env_target_alias_value=$target_alias
575ac_cv_env_target_alias_set=${target_alias+set}
576ac_cv_env_target_alias_value=$target_alias
577ac_env_CC_set=${CC+set}
578ac_env_CC_value=$CC
579ac_cv_env_CC_set=${CC+set}
580ac_cv_env_CC_value=$CC
581ac_env_CFLAGS_set=${CFLAGS+set}
582ac_env_CFLAGS_value=$CFLAGS
583ac_cv_env_CFLAGS_set=${CFLAGS+set}
584ac_cv_env_CFLAGS_value=$CFLAGS
585ac_env_LDFLAGS_set=${LDFLAGS+set}
586ac_env_LDFLAGS_value=$LDFLAGS
587ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588ac_cv_env_LDFLAGS_value=$LDFLAGS
589ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590ac_env_CPPFLAGS_value=$CPPFLAGS
591ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593ac_env_CPP_set=${CPP+set}
594ac_env_CPP_value=$CPP
595ac_cv_env_CPP_set=${CPP+set}
596ac_cv_env_CPP_value=$CPP
597
598#
599# Report the --help message.
600#
601if test "$ac_init_help" = "long"; then
602  # Omit some internal or obsolete options to make the list less imposing.
603  # This message is too long to be a string in the A/UX 3.1 sh.
604  cat <<EOF
605\`configure' configures libnbcompat noversion to adapt to many kinds of systems.
606
607Usage: $0 [OPTION]... [VAR=VALUE]...
608
609To assign environment variables (e.g., CC, CFLAGS...), specify them as
610VAR=VALUE.  See below for descriptions of some of the useful variables.
611
612Defaults for the options are specified in brackets.
613
614Configuration:
615  -h, --help              display this help and exit
616      --help=short        display options specific to this package
617      --help=recursive    display the short help of all the included packages
618  -V, --version           display version information and exit
619  -q, --quiet, --silent   do not print \`checking...' messages
620      --cache-file=FILE   cache test results in FILE [disabled]
621  -C, --config-cache      alias for \`--cache-file=config.cache'
622  -n, --no-create         do not create output files
623      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
624
625EOF
626
627  cat <<EOF
628Installation directories:
629  --prefix=PREFIX         install architecture-independent files in PREFIX
630                          [$ac_default_prefix]
631  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
632                          [PREFIX]
633
634By default, \`make install' will install all the files in
635\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
636an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637for instance \`--prefix=\$HOME'.
638
639For better control, use the options below.
640
641Fine tuning of the installation directories:
642  --bindir=DIR           user executables [EPREFIX/bin]
643  --sbindir=DIR          system admin executables [EPREFIX/sbin]
644  --libexecdir=DIR       program executables [EPREFIX/libexec]
645  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
646  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
647  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
648  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
649  --libdir=DIR           object code libraries [EPREFIX/lib]
650  --includedir=DIR       C header files [PREFIX/include]
651  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
652  --infodir=DIR          info documentation [PREFIX/info]
653  --mandir=DIR           man documentation [PREFIX/man]
654EOF
655
656  cat <<\EOF
657EOF
658fi
659
660if test -n "$ac_init_help"; then
661  case $ac_init_help in
662     short | recursive ) echo "Configuration of libnbcompat noversion:";;
663   esac
664  cat <<\EOF
665
666Some influential environment variables:
667  CC          C compiler command
668  CFLAGS      C compiler flags
669  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
670              nonstandard directory <lib dir>
671  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
672              headers in a nonstandard directory <include dir>
673  CPP         C preprocessor
674
675Use these variables to override the choices made by `configure' or to help
676it to find libraries and programs with nonstandard names/locations.
677
678Report bugs to <lib-bug-people@netbsd.org>.
679EOF
680fi
681
682if test "$ac_init_help" = "recursive"; then
683  # If there are subdirs, report their specific --help.
684  ac_popdir=`pwd`
685  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
686    cd $ac_subdir
687    # A "../" for each directory in /$ac_subdir.
688    ac_dots=`echo $ac_subdir |
689             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
690
691    case $srcdir in
692    .) # No --srcdir option.  We are building in place.
693      ac_sub_srcdir=$srcdir ;;
694    [\\/]* | ?:[\\/]* ) # Absolute path.
695      ac_sub_srcdir=$srcdir/$ac_subdir ;;
696    *) # Relative path.
697      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
698    esac
699
700    # Check for guested configure; otherwise get Cygnus style configure.
701    if test -f $ac_sub_srcdir/configure.gnu; then
702      echo
703      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
704    elif test -f $ac_sub_srcdir/configure; then
705      echo
706      $SHELL $ac_sub_srcdir/configure  --help=recursive
707    elif test -f $ac_sub_srcdir/configure.ac ||
708           test -f $ac_sub_srcdir/configure.in; then
709      echo
710      $ac_configure --help
711    else
712      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
713    fi
714    cd $ac_popdir
715  done
716fi
717
718test -n "$ac_init_help" && exit 0
719if $ac_init_version; then
720  cat <<\EOF
721libnbcompat configure noversion
722generated by GNU Autoconf 2.52
723
724Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
725Free Software Foundation, Inc.
726This configure script is free software; the Free Software Foundation
727gives unlimited permission to copy, distribute and modify it.
728EOF
729  exit 0
730fi
731exec 5>config.log
732cat >&5 <<EOF
733This file contains any messages produced by compilers while
734running configure, to aid debugging if configure makes a mistake.
735
736It was created by libnbcompat $as_me noversion, which was
737generated by GNU Autoconf 2.52.  Invocation command line was
738
739  $ $0 $@
740
741EOF
742{
743cat <<_ASUNAME
744## ---------- ##
745## Platform.  ##
746## ---------- ##
747
748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
749uname -m = `(uname -m) 2>/dev/null || echo unknown`
750uname -r = `(uname -r) 2>/dev/null || echo unknown`
751uname -s = `(uname -s) 2>/dev/null || echo unknown`
752uname -v = `(uname -v) 2>/dev/null || echo unknown`
753
754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
755/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
756
757/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
758/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
760hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
761/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
762/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
763/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
764
765PATH = $PATH
766
767_ASUNAME
768} >&5
769
770cat >&5 <<EOF
771## ------------ ##
772## Core tests.  ##
773## ------------ ##
774
775EOF
776
777# Keep a trace of the command line.
778# Strip out --no-create and --no-recursion so they do not pile up.
779# Also quote any args containing shell meta-characters.
780ac_configure_args=
781ac_sep=
782for ac_arg
783do
784  case $ac_arg in
785  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786  | --no-cr | --no-c) ;;
787  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792    ac_sep=" " ;;
793  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794     ac_sep=" " ;;
795  esac
796  # Get rid of the leading space.
797done
798
799# When interrupted or exit'd, cleanup temporary files, and complete
800# config.log.  We remove comments because anyway the quotes in there
801# would cause problems or look ugly.
802trap 'exit_status=$?
803  # Save into config.log some information that might help in debugging.
804  echo >&5
805  echo "## ----------------- ##" >&5
806  echo "## Cache variables.  ##" >&5
807  echo "## ----------------- ##" >&5
808  echo >&5
809  # The following way of writing the cache mishandles newlines in values,
810{
811  (set) 2>&1 |
812    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
813    *ac_space=\ *)
814      sed -n \
815        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
816    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
817      ;;
818    *)
819      sed -n \
820        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
821      ;;
822    esac;
823} >&5
824  sed "/^$/d" confdefs.h >conftest.log
825  if test -s conftest.log; then
826    echo >&5
827    echo "## ------------ ##" >&5
828    echo "## confdefs.h.  ##" >&5
829    echo "## ------------ ##" >&5
830    echo >&5
831    cat conftest.log >&5
832  fi
833  (echo; echo) >&5
834  test "$ac_signal" != 0 &&
835    echo "$as_me: caught signal $ac_signal" >&5
836  echo "$as_me: exit $exit_status" >&5
837  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
838    exit $exit_status
839     ' 0
840for ac_signal in 1 2 13 15; do
841  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
842done
843ac_signal=0
844
845# confdefs.h avoids OS command line length limits that DEFS can exceed.
846rm -rf conftest* confdefs.h
847# AIX cpp loses on an empty file, so make sure it contains at least a newline.
848echo >confdefs.h
849
850# Let the site file select an alternate cache file if it wants to.
851# Prefer explicitly selected file to automatically selected ones.
852if test -z "$CONFIG_SITE"; then
853  if test "x$prefix" != xNONE; then
854    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855  else
856    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857  fi
858fi
859for ac_site_file in $CONFIG_SITE; do
860  if test -r "$ac_site_file"; then
861    { echo "$as_me:861: loading site script $ac_site_file" >&5
862echo "$as_me: loading site script $ac_site_file" >&6;}
863    cat "$ac_site_file" >&5
864    . "$ac_site_file"
865  fi
866done
867
868if test -r "$cache_file"; then
869  # Some versions of bash will fail to source /dev/null (special
870  # files actually), so we avoid doing that.
871  if test -f "$cache_file"; then
872    { echo "$as_me:872: loading cache $cache_file" >&5
873echo "$as_me: loading cache $cache_file" >&6;}
874    case $cache_file in
875      [\\/]* | ?:[\\/]* ) . $cache_file;;
876      *)                      . ./$cache_file;;
877    esac
878  fi
879else
880  { echo "$as_me:880: creating cache $cache_file" >&5
881echo "$as_me: creating cache $cache_file" >&6;}
882  >$cache_file
883fi
884
885# Check that the precious variables saved in the cache have kept the same
886# value.
887ac_cache_corrupted=false
888for ac_var in `(set) 2>&1 |
889               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
890  eval ac_old_set=\$ac_cv_env_${ac_var}_set
891  eval ac_new_set=\$ac_env_${ac_var}_set
892  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
893  eval ac_new_val="\$ac_env_${ac_var}_value"
894  case $ac_old_set,$ac_new_set in
895    set,)
896      { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
897echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
898      ac_cache_corrupted=: ;;
899    ,set)
900      { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5
901echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
902      ac_cache_corrupted=: ;;
903    ,);;
904    *)
905      if test "x$ac_old_val" != "x$ac_new_val"; then
906        { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5
907echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
908        { echo "$as_me:908:   former value:  $ac_old_val" >&5
909echo "$as_me:   former value:  $ac_old_val" >&2;}
910        { echo "$as_me:910:   current value: $ac_new_val" >&5
911echo "$as_me:   current value: $ac_new_val" >&2;}
912        ac_cache_corrupted=:
913      fi;;
914  esac
915  # Pass precious variables to config.status.  It doesn't matter if
916  # we pass some twice (in addition to the command line arguments).
917  if test "$ac_new_set" = set; then
918    case $ac_new_val in
919    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
920      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
921      ac_configure_args="$ac_configure_args '$ac_arg'"
922      ;;
923    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
924       ;;
925    esac
926  fi
927done
928if $ac_cache_corrupted; then
929  { echo "$as_me:929: error: changes in the environment can compromise the build" >&5
930echo "$as_me: error: changes in the environment can compromise the build" >&2;}
931  { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
932echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
933   { (exit 1); exit 1; }; }
934fi
935
936ac_ext=c
937ac_cpp='$CPP $CPPFLAGS'
938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
940ac_compiler_gnu=$ac_cv_c_compiler_gnu
941
942case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943  *c*,-n*) ECHO_N= ECHO_C='
944' ECHO_T='	' ;;
945  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
947esac
948echo "#! $SHELL" >conftest.sh
949echo  "exit 0"   >>conftest.sh
950chmod +x conftest.sh
951if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952  (PATH=".;."; conftest.sh) 2>&5
953  ac_status=$?
954  echo "$as_me:954: \$? = $ac_status" >&5
955  (exit $ac_status); }; then
956  ac_path_separator=';'
957else
958  ac_path_separator=:
959fi
960PATH_SEPARATOR="$ac_path_separator"
961rm -f conftest.sh
962
963ac_config_headers="$ac_config_headers config.h"
964
965ac_config_files="$ac_config_files defs.mk"
966
967ac_ext=c
968ac_cpp='$CPP $CPPFLAGS'
969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971ac_compiler_gnu=$ac_cv_c_compiler_gnu
972if test -n "$ac_tool_prefix"; then
973  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
974set dummy ${ac_tool_prefix}gcc; ac_word=$2
975echo "$as_me:975: checking for $ac_word" >&5
976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
977if test "${ac_cv_prog_CC+set}" = set; then
978  echo $ECHO_N "(cached) $ECHO_C" >&6
979else
980  if test -n "$CC"; then
981  ac_cv_prog_CC="$CC" # Let the user override the test.
982else
983  ac_save_IFS=$IFS; IFS=$ac_path_separator
984ac_dummy="$PATH"
985for ac_dir in $ac_dummy; do
986  IFS=$ac_save_IFS
987  test -z "$ac_dir" && ac_dir=.
988  $as_executable_p "$ac_dir/$ac_word" || continue
989ac_cv_prog_CC="${ac_tool_prefix}gcc"
990echo "$as_me:990: found $ac_dir/$ac_word" >&5
991break
992done
993
994fi
995fi
996CC=$ac_cv_prog_CC
997if test -n "$CC"; then
998  echo "$as_me:998: result: $CC" >&5
999echo "${ECHO_T}$CC" >&6
1000else
1001  echo "$as_me:1001: result: no" >&5
1002echo "${ECHO_T}no" >&6
1003fi
1004
1005fi
1006if test -z "$ac_cv_prog_CC"; then
1007  ac_ct_CC=$CC
1008  # Extract the first word of "gcc", so it can be a program name with args.
1009set dummy gcc; ac_word=$2
1010echo "$as_me:1010: checking for $ac_word" >&5
1011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1013  echo $ECHO_N "(cached) $ECHO_C" >&6
1014else
1015  if test -n "$ac_ct_CC"; then
1016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1017else
1018  ac_save_IFS=$IFS; IFS=$ac_path_separator
1019ac_dummy="$PATH"
1020for ac_dir in $ac_dummy; do
1021  IFS=$ac_save_IFS
1022  test -z "$ac_dir" && ac_dir=.
1023  $as_executable_p "$ac_dir/$ac_word" || continue
1024ac_cv_prog_ac_ct_CC="gcc"
1025echo "$as_me:1025: found $ac_dir/$ac_word" >&5
1026break
1027done
1028
1029fi
1030fi
1031ac_ct_CC=$ac_cv_prog_ac_ct_CC
1032if test -n "$ac_ct_CC"; then
1033  echo "$as_me:1033: result: $ac_ct_CC" >&5
1034echo "${ECHO_T}$ac_ct_CC" >&6
1035else
1036  echo "$as_me:1036: result: no" >&5
1037echo "${ECHO_T}no" >&6
1038fi
1039
1040  CC=$ac_ct_CC
1041else
1042  CC="$ac_cv_prog_CC"
1043fi
1044
1045if test -z "$CC"; then
1046  if test -n "$ac_tool_prefix"; then
1047  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1048set dummy ${ac_tool_prefix}cc; ac_word=$2
1049echo "$as_me:1049: checking for $ac_word" >&5
1050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1051if test "${ac_cv_prog_CC+set}" = set; then
1052  echo $ECHO_N "(cached) $ECHO_C" >&6
1053else
1054  if test -n "$CC"; then
1055  ac_cv_prog_CC="$CC" # Let the user override the test.
1056else
1057  ac_save_IFS=$IFS; IFS=$ac_path_separator
1058ac_dummy="$PATH"
1059for ac_dir in $ac_dummy; do
1060  IFS=$ac_save_IFS
1061  test -z "$ac_dir" && ac_dir=.
1062  $as_executable_p "$ac_dir/$ac_word" || continue
1063ac_cv_prog_CC="${ac_tool_prefix}cc"
1064echo "$as_me:1064: found $ac_dir/$ac_word" >&5
1065break
1066done
1067
1068fi
1069fi
1070CC=$ac_cv_prog_CC
1071if test -n "$CC"; then
1072  echo "$as_me:1072: result: $CC" >&5
1073echo "${ECHO_T}$CC" >&6
1074else
1075  echo "$as_me:1075: result: no" >&5
1076echo "${ECHO_T}no" >&6
1077fi
1078
1079fi
1080if test -z "$ac_cv_prog_CC"; then
1081  ac_ct_CC=$CC
1082  # Extract the first word of "cc", so it can be a program name with args.
1083set dummy cc; ac_word=$2
1084echo "$as_me:1084: checking for $ac_word" >&5
1085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1086if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1087  echo $ECHO_N "(cached) $ECHO_C" >&6
1088else
1089  if test -n "$ac_ct_CC"; then
1090  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1091else
1092  ac_save_IFS=$IFS; IFS=$ac_path_separator
1093ac_dummy="$PATH"
1094for ac_dir in $ac_dummy; do
1095  IFS=$ac_save_IFS
1096  test -z "$ac_dir" && ac_dir=.
1097  $as_executable_p "$ac_dir/$ac_word" || continue
1098ac_cv_prog_ac_ct_CC="cc"
1099echo "$as_me:1099: found $ac_dir/$ac_word" >&5
1100break
1101done
1102
1103fi
1104fi
1105ac_ct_CC=$ac_cv_prog_ac_ct_CC
1106if test -n "$ac_ct_CC"; then
1107  echo "$as_me:1107: result: $ac_ct_CC" >&5
1108echo "${ECHO_T}$ac_ct_CC" >&6
1109else
1110  echo "$as_me:1110: result: no" >&5
1111echo "${ECHO_T}no" >&6
1112fi
1113
1114  CC=$ac_ct_CC
1115else
1116  CC="$ac_cv_prog_CC"
1117fi
1118
1119fi
1120if test -z "$CC"; then
1121  # Extract the first word of "cc", so it can be a program name with args.
1122set dummy cc; ac_word=$2
1123echo "$as_me:1123: checking for $ac_word" >&5
1124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1125if test "${ac_cv_prog_CC+set}" = set; then
1126  echo $ECHO_N "(cached) $ECHO_C" >&6
1127else
1128  if test -n "$CC"; then
1129  ac_cv_prog_CC="$CC" # Let the user override the test.
1130else
1131  ac_prog_rejected=no
1132  ac_save_IFS=$IFS; IFS=$ac_path_separator
1133ac_dummy="$PATH"
1134for ac_dir in $ac_dummy; do
1135  IFS=$ac_save_IFS
1136  test -z "$ac_dir" && ac_dir=.
1137  $as_executable_p "$ac_dir/$ac_word" || continue
1138if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1139  ac_prog_rejected=yes
1140  continue
1141fi
1142ac_cv_prog_CC="cc"
1143echo "$as_me:1143: found $ac_dir/$ac_word" >&5
1144break
1145done
1146
1147if test $ac_prog_rejected = yes; then
1148  # We found a bogon in the path, so make sure we never use it.
1149  set dummy $ac_cv_prog_CC
1150  shift
1151  if test $# != 0; then
1152    # We chose a different compiler from the bogus one.
1153    # However, it has the same basename, so the bogon will be chosen
1154    # first if we set CC to just the basename; use the full file name.
1155    shift
1156    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1157    shift
1158    ac_cv_prog_CC="$@"
1159  fi
1160fi
1161fi
1162fi
1163CC=$ac_cv_prog_CC
1164if test -n "$CC"; then
1165  echo "$as_me:1165: result: $CC" >&5
1166echo "${ECHO_T}$CC" >&6
1167else
1168  echo "$as_me:1168: result: no" >&5
1169echo "${ECHO_T}no" >&6
1170fi
1171
1172fi
1173if test -z "$CC"; then
1174  if test -n "$ac_tool_prefix"; then
1175  for ac_prog in cl
1176  do
1177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1179echo "$as_me:1179: checking for $ac_word" >&5
1180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181if test "${ac_cv_prog_CC+set}" = set; then
1182  echo $ECHO_N "(cached) $ECHO_C" >&6
1183else
1184  if test -n "$CC"; then
1185  ac_cv_prog_CC="$CC" # Let the user override the test.
1186else
1187  ac_save_IFS=$IFS; IFS=$ac_path_separator
1188ac_dummy="$PATH"
1189for ac_dir in $ac_dummy; do
1190  IFS=$ac_save_IFS
1191  test -z "$ac_dir" && ac_dir=.
1192  $as_executable_p "$ac_dir/$ac_word" || continue
1193ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1194echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1195break
1196done
1197
1198fi
1199fi
1200CC=$ac_cv_prog_CC
1201if test -n "$CC"; then
1202  echo "$as_me:1202: result: $CC" >&5
1203echo "${ECHO_T}$CC" >&6
1204else
1205  echo "$as_me:1205: result: no" >&5
1206echo "${ECHO_T}no" >&6
1207fi
1208
1209    test -n "$CC" && break
1210  done
1211fi
1212if test -z "$CC"; then
1213  ac_ct_CC=$CC
1214  for ac_prog in cl
1215do
1216  # Extract the first word of "$ac_prog", so it can be a program name with args.
1217set dummy $ac_prog; ac_word=$2
1218echo "$as_me:1218: checking for $ac_word" >&5
1219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1221  echo $ECHO_N "(cached) $ECHO_C" >&6
1222else
1223  if test -n "$ac_ct_CC"; then
1224  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1225else
1226  ac_save_IFS=$IFS; IFS=$ac_path_separator
1227ac_dummy="$PATH"
1228for ac_dir in $ac_dummy; do
1229  IFS=$ac_save_IFS
1230  test -z "$ac_dir" && ac_dir=.
1231  $as_executable_p "$ac_dir/$ac_word" || continue
1232ac_cv_prog_ac_ct_CC="$ac_prog"
1233echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1234break
1235done
1236
1237fi
1238fi
1239ac_ct_CC=$ac_cv_prog_ac_ct_CC
1240if test -n "$ac_ct_CC"; then
1241  echo "$as_me:1241: result: $ac_ct_CC" >&5
1242echo "${ECHO_T}$ac_ct_CC" >&6
1243else
1244  echo "$as_me:1244: result: no" >&5
1245echo "${ECHO_T}no" >&6
1246fi
1247
1248  test -n "$ac_ct_CC" && break
1249done
1250
1251  CC=$ac_ct_CC
1252fi
1253
1254fi
1255
1256test -z "$CC" && { { echo "$as_me:1256: error: no acceptable cc found in \$PATH" >&5
1257echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1258   { (exit 1); exit 1; }; }
1259
1260# Provide some information about the compiler.
1261echo "$as_me:1261:" \
1262     "checking for C compiler version" >&5
1263ac_compiler=`set X $ac_compile; echo $2`
1264{ (eval echo "$as_me:1264: \"$ac_compiler --version </dev/null >&5\"") >&5
1265  (eval $ac_compiler --version </dev/null >&5) 2>&5
1266  ac_status=$?
1267  echo "$as_me:1267: \$? = $ac_status" >&5
1268  (exit $ac_status); }
1269{ (eval echo "$as_me:1269: \"$ac_compiler -v </dev/null >&5\"") >&5
1270  (eval $ac_compiler -v </dev/null >&5) 2>&5
1271  ac_status=$?
1272  echo "$as_me:1272: \$? = $ac_status" >&5
1273  (exit $ac_status); }
1274{ (eval echo "$as_me:1274: \"$ac_compiler -V </dev/null >&5\"") >&5
1275  (eval $ac_compiler -V </dev/null >&5) 2>&5
1276  ac_status=$?
1277  echo "$as_me:1277: \$? = $ac_status" >&5
1278  (exit $ac_status); }
1279
1280cat >conftest.$ac_ext <<_ACEOF
1281#line 1281 "configure"
1282#include "confdefs.h"
1283
1284int
1285main ()
1286{
1287
1288  ;
1289  return 0;
1290}
1291_ACEOF
1292ac_clean_files_save=$ac_clean_files
1293ac_clean_files="$ac_clean_files a.out a.exe"
1294# Try to create an executable without -o first, disregard a.out.
1295# It will help us diagnose broken compilers, and finding out an intuition
1296# of exeext.
1297echo "$as_me:1297: checking for C compiler default output" >&5
1298echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1299ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1300if { (eval echo "$as_me:1300: \"$ac_link_default\"") >&5
1301  (eval $ac_link_default) 2>&5
1302  ac_status=$?
1303  echo "$as_me:1303: \$? = $ac_status" >&5
1304  (exit $ac_status); }; then
1305  # Find the output, starting from the most likely.  This scheme is
1306# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1307# resort.
1308for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1309                ls a.out conftest 2>/dev/null;
1310                ls a.* conftest.* 2>/dev/null`; do
1311  case $ac_file in
1312    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1313    a.out ) # We found the default executable, but exeext='' is most
1314            # certainly right.
1315            break;;
1316    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1317          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1318          export ac_cv_exeext
1319          break;;
1320    * ) break;;
1321  esac
1322done
1323else
1324  echo "$as_me: failed program was:" >&5
1325cat conftest.$ac_ext >&5
1326{ { echo "$as_me:1326: error: C compiler cannot create executables" >&5
1327echo "$as_me: error: C compiler cannot create executables" >&2;}
1328   { (exit 77); exit 77; }; }
1329fi
1330
1331ac_exeext=$ac_cv_exeext
1332echo "$as_me:1332: result: $ac_file" >&5
1333echo "${ECHO_T}$ac_file" >&6
1334
1335# Check the compiler produces executables we can run.  If not, either
1336# the compiler is broken, or we cross compile.
1337echo "$as_me:1337: checking whether the C compiler works" >&5
1338echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1339# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1340# If not cross compiling, check that we can run a simple program.
1341if test "$cross_compiling" != yes; then
1342  if { ac_try='./$ac_file'
1343  { (eval echo "$as_me:1343: \"$ac_try\"") >&5
1344  (eval $ac_try) 2>&5
1345  ac_status=$?
1346  echo "$as_me:1346: \$? = $ac_status" >&5
1347  (exit $ac_status); }; }; then
1348    cross_compiling=no
1349  else
1350    if test "$cross_compiling" = maybe; then
1351	cross_compiling=yes
1352    else
1353	{ { echo "$as_me:1353: error: cannot run C compiled programs.
1354If you meant to cross compile, use \`--host'." >&5
1355echo "$as_me: error: cannot run C compiled programs.
1356If you meant to cross compile, use \`--host'." >&2;}
1357   { (exit 1); exit 1; }; }
1358    fi
1359  fi
1360fi
1361echo "$as_me:1361: result: yes" >&5
1362echo "${ECHO_T}yes" >&6
1363
1364rm -f a.out a.exe conftest$ac_cv_exeext
1365ac_clean_files=$ac_clean_files_save
1366# Check the compiler produces executables we can run.  If not, either
1367# the compiler is broken, or we cross compile.
1368echo "$as_me:1368: checking whether we are cross compiling" >&5
1369echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1370echo "$as_me:1370: result: $cross_compiling" >&5
1371echo "${ECHO_T}$cross_compiling" >&6
1372
1373echo "$as_me:1373: checking for executable suffix" >&5
1374echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1375if { (eval echo "$as_me:1375: \"$ac_link\"") >&5
1376  (eval $ac_link) 2>&5
1377  ac_status=$?
1378  echo "$as_me:1378: \$? = $ac_status" >&5
1379  (exit $ac_status); }; then
1380  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1381# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1382# work properly (i.e., refer to `conftest.exe'), while it won't with
1383# `rm'.
1384for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1385  case $ac_file in
1386    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1388          export ac_cv_exeext
1389          break;;
1390    * ) break;;
1391  esac
1392done
1393else
1394  { { echo "$as_me:1394: error: cannot compute EXEEXT: cannot compile and link" >&5
1395echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1396   { (exit 1); exit 1; }; }
1397fi
1398
1399rm -f conftest$ac_cv_exeext
1400echo "$as_me:1400: result: $ac_cv_exeext" >&5
1401echo "${ECHO_T}$ac_cv_exeext" >&6
1402
1403rm -f conftest.$ac_ext
1404EXEEXT=$ac_cv_exeext
1405ac_exeext=$EXEEXT
1406echo "$as_me:1406: checking for object suffix" >&5
1407echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1408if test "${ac_cv_objext+set}" = set; then
1409  echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411  cat >conftest.$ac_ext <<_ACEOF
1412#line 1412 "configure"
1413#include "confdefs.h"
1414
1415int
1416main ()
1417{
1418
1419  ;
1420  return 0;
1421}
1422_ACEOF
1423rm -f conftest.o conftest.obj
1424if { (eval echo "$as_me:1424: \"$ac_compile\"") >&5
1425  (eval $ac_compile) 2>&5
1426  ac_status=$?
1427  echo "$as_me:1427: \$? = $ac_status" >&5
1428  (exit $ac_status); }; then
1429  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1430  case $ac_file in
1431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1432    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1433       break;;
1434  esac
1435done
1436else
1437  echo "$as_me: failed program was:" >&5
1438cat conftest.$ac_ext >&5
1439{ { echo "$as_me:1439: error: cannot compute OBJEXT: cannot compile" >&5
1440echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1441   { (exit 1); exit 1; }; }
1442fi
1443
1444rm -f conftest.$ac_cv_objext conftest.$ac_ext
1445fi
1446echo "$as_me:1446: result: $ac_cv_objext" >&5
1447echo "${ECHO_T}$ac_cv_objext" >&6
1448OBJEXT=$ac_cv_objext
1449ac_objext=$OBJEXT
1450echo "$as_me:1450: checking whether we are using the GNU C compiler" >&5
1451echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1452if test "${ac_cv_c_compiler_gnu+set}" = set; then
1453  echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455  cat >conftest.$ac_ext <<_ACEOF
1456#line 1456 "configure"
1457#include "confdefs.h"
1458
1459int
1460main ()
1461{
1462#ifndef __GNUC__
1463       choke me
1464#endif
1465
1466  ;
1467  return 0;
1468}
1469_ACEOF
1470rm -f conftest.$ac_objext
1471if { (eval echo "$as_me:1471: \"$ac_compile\"") >&5
1472  (eval $ac_compile) 2>&5
1473  ac_status=$?
1474  echo "$as_me:1474: \$? = $ac_status" >&5
1475  (exit $ac_status); } &&
1476         { ac_try='test -s conftest.$ac_objext'
1477  { (eval echo "$as_me:1477: \"$ac_try\"") >&5
1478  (eval $ac_try) 2>&5
1479  ac_status=$?
1480  echo "$as_me:1480: \$? = $ac_status" >&5
1481  (exit $ac_status); }; }; then
1482  ac_compiler_gnu=yes
1483else
1484  echo "$as_me: failed program was:" >&5
1485cat conftest.$ac_ext >&5
1486ac_compiler_gnu=no
1487fi
1488rm -f conftest.$ac_objext conftest.$ac_ext
1489ac_cv_c_compiler_gnu=$ac_compiler_gnu
1490
1491fi
1492echo "$as_me:1492: result: $ac_cv_c_compiler_gnu" >&5
1493echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1494GCC=`test $ac_compiler_gnu = yes && echo yes`
1495ac_test_CFLAGS=${CFLAGS+set}
1496ac_save_CFLAGS=$CFLAGS
1497CFLAGS="-g"
1498echo "$as_me:1498: checking whether $CC accepts -g" >&5
1499echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1500if test "${ac_cv_prog_cc_g+set}" = set; then
1501  echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503  cat >conftest.$ac_ext <<_ACEOF
1504#line 1504 "configure"
1505#include "confdefs.h"
1506
1507int
1508main ()
1509{
1510
1511  ;
1512  return 0;
1513}
1514_ACEOF
1515rm -f conftest.$ac_objext
1516if { (eval echo "$as_me:1516: \"$ac_compile\"") >&5
1517  (eval $ac_compile) 2>&5
1518  ac_status=$?
1519  echo "$as_me:1519: \$? = $ac_status" >&5
1520  (exit $ac_status); } &&
1521         { ac_try='test -s conftest.$ac_objext'
1522  { (eval echo "$as_me:1522: \"$ac_try\"") >&5
1523  (eval $ac_try) 2>&5
1524  ac_status=$?
1525  echo "$as_me:1525: \$? = $ac_status" >&5
1526  (exit $ac_status); }; }; then
1527  ac_cv_prog_cc_g=yes
1528else
1529  echo "$as_me: failed program was:" >&5
1530cat conftest.$ac_ext >&5
1531ac_cv_prog_cc_g=no
1532fi
1533rm -f conftest.$ac_objext conftest.$ac_ext
1534fi
1535echo "$as_me:1535: result: $ac_cv_prog_cc_g" >&5
1536echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1537if test "$ac_test_CFLAGS" = set; then
1538  CFLAGS=$ac_save_CFLAGS
1539elif test $ac_cv_prog_cc_g = yes; then
1540  if test "$GCC" = yes; then
1541    CFLAGS="-g -O2"
1542  else
1543    CFLAGS="-g"
1544  fi
1545else
1546  if test "$GCC" = yes; then
1547    CFLAGS="-O2"
1548  else
1549    CFLAGS=
1550  fi
1551fi
1552# Some people use a C++ compiler to compile C.  Since we use `exit',
1553# in C++ we need to declare it.  In case someone uses the same compiler
1554# for both compiling C and C++ we need to have the C++ compiler decide
1555# the declaration of exit, since it's the most demanding environment.
1556cat >conftest.$ac_ext <<_ACEOF
1557#ifndef __cplusplus
1558  choke me
1559#endif
1560_ACEOF
1561rm -f conftest.$ac_objext
1562if { (eval echo "$as_me:1562: \"$ac_compile\"") >&5
1563  (eval $ac_compile) 2>&5
1564  ac_status=$?
1565  echo "$as_me:1565: \$? = $ac_status" >&5
1566  (exit $ac_status); } &&
1567         { ac_try='test -s conftest.$ac_objext'
1568  { (eval echo "$as_me:1568: \"$ac_try\"") >&5
1569  (eval $ac_try) 2>&5
1570  ac_status=$?
1571  echo "$as_me:1571: \$? = $ac_status" >&5
1572  (exit $ac_status); }; }; then
1573  for ac_declaration in \
1574   ''\
1575   '#include <stdlib.h>' \
1576   'extern "C" void std::exit (int) throw (); using std::exit;' \
1577   'extern "C" void std::exit (int); using std::exit;' \
1578   'extern "C" void exit (int) throw ();' \
1579   'extern "C" void exit (int);' \
1580   'void exit (int);'
1581do
1582  cat >conftest.$ac_ext <<_ACEOF
1583#line 1583 "configure"
1584#include "confdefs.h"
1585#include <stdlib.h>
1586$ac_declaration
1587int
1588main ()
1589{
1590exit (42);
1591  ;
1592  return 0;
1593}
1594_ACEOF
1595rm -f conftest.$ac_objext
1596if { (eval echo "$as_me:1596: \"$ac_compile\"") >&5
1597  (eval $ac_compile) 2>&5
1598  ac_status=$?
1599  echo "$as_me:1599: \$? = $ac_status" >&5
1600  (exit $ac_status); } &&
1601         { ac_try='test -s conftest.$ac_objext'
1602  { (eval echo "$as_me:1602: \"$ac_try\"") >&5
1603  (eval $ac_try) 2>&5
1604  ac_status=$?
1605  echo "$as_me:1605: \$? = $ac_status" >&5
1606  (exit $ac_status); }; }; then
1607  :
1608else
1609  echo "$as_me: failed program was:" >&5
1610cat conftest.$ac_ext >&5
1611continue
1612fi
1613rm -f conftest.$ac_objext conftest.$ac_ext
1614  cat >conftest.$ac_ext <<_ACEOF
1615#line 1615 "configure"
1616#include "confdefs.h"
1617$ac_declaration
1618int
1619main ()
1620{
1621exit (42);
1622  ;
1623  return 0;
1624}
1625_ACEOF
1626rm -f conftest.$ac_objext
1627if { (eval echo "$as_me:1627: \"$ac_compile\"") >&5
1628  (eval $ac_compile) 2>&5
1629  ac_status=$?
1630  echo "$as_me:1630: \$? = $ac_status" >&5
1631  (exit $ac_status); } &&
1632         { ac_try='test -s conftest.$ac_objext'
1633  { (eval echo "$as_me:1633: \"$ac_try\"") >&5
1634  (eval $ac_try) 2>&5
1635  ac_status=$?
1636  echo "$as_me:1636: \$? = $ac_status" >&5
1637  (exit $ac_status); }; }; then
1638  break
1639else
1640  echo "$as_me: failed program was:" >&5
1641cat conftest.$ac_ext >&5
1642fi
1643rm -f conftest.$ac_objext conftest.$ac_ext
1644done
1645rm -f conftest*
1646if test -n "$ac_declaration"; then
1647  echo '#ifdef __cplusplus' >>confdefs.h
1648  echo $ac_declaration      >>confdefs.h
1649  echo '#endif'             >>confdefs.h
1650fi
1651
1652else
1653  echo "$as_me: failed program was:" >&5
1654cat conftest.$ac_ext >&5
1655fi
1656rm -f conftest.$ac_objext conftest.$ac_ext
1657ac_ext=c
1658ac_cpp='$CPP $CPPFLAGS'
1659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662
1663ac_ext=c
1664ac_cpp='$CPP $CPPFLAGS'
1665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667ac_compiler_gnu=$ac_cv_c_compiler_gnu
1668echo "$as_me:1668: checking how to run the C preprocessor" >&5
1669echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1670# On Suns, sometimes $CPP names a directory.
1671if test -n "$CPP" && test -d "$CPP"; then
1672  CPP=
1673fi
1674if test -z "$CPP"; then
1675  if test "${ac_cv_prog_CPP+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678      # Double quotes because CPP needs to be expanded
1679    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1680    do
1681      ac_preproc_ok=false
1682for ac_c_preproc_warn_flag in '' yes
1683do
1684  # Use a header file that comes with gcc, so configuring glibc
1685  # with a fresh cross-compiler works.
1686  # On the NeXT, cc -E runs the code through the compiler's parser,
1687  # not just through cpp. "Syntax error" is here to catch this case.
1688  cat >conftest.$ac_ext <<_ACEOF
1689#line 1689 "configure"
1690#include "confdefs.h"
1691#include <assert.h>
1692                     Syntax error
1693_ACEOF
1694if { (eval echo "$as_me:1694: \"$ac_cpp conftest.$ac_ext\"") >&5
1695  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1696  ac_status=$?
1697  egrep -v '^ *\+' conftest.er1 >conftest.err
1698  rm -f conftest.er1
1699  cat conftest.err >&5
1700  echo "$as_me:1700: \$? = $ac_status" >&5
1701  (exit $ac_status); } >/dev/null; then
1702  if test -s conftest.err; then
1703    ac_cpp_err=$ac_c_preproc_warn_flag
1704  else
1705    ac_cpp_err=
1706  fi
1707else
1708  ac_cpp_err=yes
1709fi
1710if test -z "$ac_cpp_err"; then
1711  :
1712else
1713  echo "$as_me: failed program was:" >&5
1714  cat conftest.$ac_ext >&5
1715  # Broken: fails on valid input.
1716continue
1717fi
1718rm -f conftest.err conftest.$ac_ext
1719
1720  # OK, works on sane cases.  Now check whether non-existent headers
1721  # can be detected and how.
1722  cat >conftest.$ac_ext <<_ACEOF
1723#line 1723 "configure"
1724#include "confdefs.h"
1725#include <ac_nonexistent.h>
1726_ACEOF
1727if { (eval echo "$as_me:1727: \"$ac_cpp conftest.$ac_ext\"") >&5
1728  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1729  ac_status=$?
1730  egrep -v '^ *\+' conftest.er1 >conftest.err
1731  rm -f conftest.er1
1732  cat conftest.err >&5
1733  echo "$as_me:1733: \$? = $ac_status" >&5
1734  (exit $ac_status); } >/dev/null; then
1735  if test -s conftest.err; then
1736    ac_cpp_err=$ac_c_preproc_warn_flag
1737  else
1738    ac_cpp_err=
1739  fi
1740else
1741  ac_cpp_err=yes
1742fi
1743if test -z "$ac_cpp_err"; then
1744  # Broken: success on invalid input.
1745continue
1746else
1747  echo "$as_me: failed program was:" >&5
1748  cat conftest.$ac_ext >&5
1749  # Passes both tests.
1750ac_preproc_ok=:
1751break
1752fi
1753rm -f conftest.err conftest.$ac_ext
1754
1755done
1756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1757rm -f conftest.err conftest.$ac_ext
1758if $ac_preproc_ok; then
1759  break
1760fi
1761
1762    done
1763    ac_cv_prog_CPP=$CPP
1764
1765fi
1766  CPP=$ac_cv_prog_CPP
1767else
1768  ac_cv_prog_CPP=$CPP
1769fi
1770echo "$as_me:1770: result: $CPP" >&5
1771echo "${ECHO_T}$CPP" >&6
1772ac_preproc_ok=false
1773for ac_c_preproc_warn_flag in '' yes
1774do
1775  # Use a header file that comes with gcc, so configuring glibc
1776  # with a fresh cross-compiler works.
1777  # On the NeXT, cc -E runs the code through the compiler's parser,
1778  # not just through cpp. "Syntax error" is here to catch this case.
1779  cat >conftest.$ac_ext <<_ACEOF
1780#line 1780 "configure"
1781#include "confdefs.h"
1782#include <assert.h>
1783                     Syntax error
1784_ACEOF
1785if { (eval echo "$as_me:1785: \"$ac_cpp conftest.$ac_ext\"") >&5
1786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1787  ac_status=$?
1788  egrep -v '^ *\+' conftest.er1 >conftest.err
1789  rm -f conftest.er1
1790  cat conftest.err >&5
1791  echo "$as_me:1791: \$? = $ac_status" >&5
1792  (exit $ac_status); } >/dev/null; then
1793  if test -s conftest.err; then
1794    ac_cpp_err=$ac_c_preproc_warn_flag
1795  else
1796    ac_cpp_err=
1797  fi
1798else
1799  ac_cpp_err=yes
1800fi
1801if test -z "$ac_cpp_err"; then
1802  :
1803else
1804  echo "$as_me: failed program was:" >&5
1805  cat conftest.$ac_ext >&5
1806  # Broken: fails on valid input.
1807continue
1808fi
1809rm -f conftest.err conftest.$ac_ext
1810
1811  # OK, works on sane cases.  Now check whether non-existent headers
1812  # can be detected and how.
1813  cat >conftest.$ac_ext <<_ACEOF
1814#line 1814 "configure"
1815#include "confdefs.h"
1816#include <ac_nonexistent.h>
1817_ACEOF
1818if { (eval echo "$as_me:1818: \"$ac_cpp conftest.$ac_ext\"") >&5
1819  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1820  ac_status=$?
1821  egrep -v '^ *\+' conftest.er1 >conftest.err
1822  rm -f conftest.er1
1823  cat conftest.err >&5
1824  echo "$as_me:1824: \$? = $ac_status" >&5
1825  (exit $ac_status); } >/dev/null; then
1826  if test -s conftest.err; then
1827    ac_cpp_err=$ac_c_preproc_warn_flag
1828  else
1829    ac_cpp_err=
1830  fi
1831else
1832  ac_cpp_err=yes
1833fi
1834if test -z "$ac_cpp_err"; then
1835  # Broken: success on invalid input.
1836continue
1837else
1838  echo "$as_me: failed program was:" >&5
1839  cat conftest.$ac_ext >&5
1840  # Passes both tests.
1841ac_preproc_ok=:
1842break
1843fi
1844rm -f conftest.err conftest.$ac_ext
1845
1846done
1847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1848rm -f conftest.err conftest.$ac_ext
1849if $ac_preproc_ok; then
1850  :
1851else
1852  { { echo "$as_me:1852: error: C preprocessor \"$CPP\" fails sanity check" >&5
1853echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1854   { (exit 1); exit 1; }; }
1855fi
1856
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863echo "$as_me:1863: checking for ANSI C header files" >&5
1864echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1865if test "${ac_cv_header_stdc+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  cat >conftest.$ac_ext <<_ACEOF
1869#line 1869 "configure"
1870#include "confdefs.h"
1871#include <stdlib.h>
1872#include <stdarg.h>
1873#include <string.h>
1874#include <float.h>
1875
1876_ACEOF
1877if { (eval echo "$as_me:1877: \"$ac_cpp conftest.$ac_ext\"") >&5
1878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1879  ac_status=$?
1880  egrep -v '^ *\+' conftest.er1 >conftest.err
1881  rm -f conftest.er1
1882  cat conftest.err >&5
1883  echo "$as_me:1883: \$? = $ac_status" >&5
1884  (exit $ac_status); } >/dev/null; then
1885  if test -s conftest.err; then
1886    ac_cpp_err=$ac_c_preproc_warn_flag
1887  else
1888    ac_cpp_err=
1889  fi
1890else
1891  ac_cpp_err=yes
1892fi
1893if test -z "$ac_cpp_err"; then
1894  ac_cv_header_stdc=yes
1895else
1896  echo "$as_me: failed program was:" >&5
1897  cat conftest.$ac_ext >&5
1898  ac_cv_header_stdc=no
1899fi
1900rm -f conftest.err conftest.$ac_ext
1901
1902if test $ac_cv_header_stdc = yes; then
1903  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1904  cat >conftest.$ac_ext <<_ACEOF
1905#line 1905 "configure"
1906#include "confdefs.h"
1907#include <string.h>
1908
1909_ACEOF
1910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1911  egrep "memchr" >/dev/null 2>&1; then
1912  :
1913else
1914  ac_cv_header_stdc=no
1915fi
1916rm -f conftest*
1917
1918fi
1919
1920if test $ac_cv_header_stdc = yes; then
1921  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1922  cat >conftest.$ac_ext <<_ACEOF
1923#line 1923 "configure"
1924#include "confdefs.h"
1925#include <stdlib.h>
1926
1927_ACEOF
1928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929  egrep "free" >/dev/null 2>&1; then
1930  :
1931else
1932  ac_cv_header_stdc=no
1933fi
1934rm -f conftest*
1935
1936fi
1937
1938if test $ac_cv_header_stdc = yes; then
1939  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1940  if test "$cross_compiling" = yes; then
1941  :
1942else
1943  cat >conftest.$ac_ext <<_ACEOF
1944#line 1944 "configure"
1945#include "confdefs.h"
1946#include <ctype.h>
1947#if ((' ' & 0x0FF) == 0x020)
1948# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1949# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1950#else
1951# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1952                     || ('j' <= (c) && (c) <= 'r') \
1953                     || ('s' <= (c) && (c) <= 'z'))
1954# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1955#endif
1956
1957#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1958int
1959main ()
1960{
1961  int i;
1962  for (i = 0; i < 256; i++)
1963    if (XOR (islower (i), ISLOWER (i))
1964        || toupper (i) != TOUPPER (i))
1965      exit(2);
1966  exit (0);
1967}
1968_ACEOF
1969rm -f conftest$ac_exeext
1970if { (eval echo "$as_me:1970: \"$ac_link\"") >&5
1971  (eval $ac_link) 2>&5
1972  ac_status=$?
1973  echo "$as_me:1973: \$? = $ac_status" >&5
1974  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1975  { (eval echo "$as_me:1975: \"$ac_try\"") >&5
1976  (eval $ac_try) 2>&5
1977  ac_status=$?
1978  echo "$as_me:1978: \$? = $ac_status" >&5
1979  (exit $ac_status); }; }; then
1980  :
1981else
1982  echo "$as_me: program exited with status $ac_status" >&5
1983echo "$as_me: failed program was:" >&5
1984cat conftest.$ac_ext >&5
1985ac_cv_header_stdc=no
1986fi
1987rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1988fi
1989fi
1990fi
1991echo "$as_me:1991: result: $ac_cv_header_stdc" >&5
1992echo "${ECHO_T}$ac_cv_header_stdc" >&6
1993if test $ac_cv_header_stdc = yes; then
1994
1995cat >>confdefs.h <<\EOF
1996#define STDC_HEADERS 1
1997EOF
1998
1999fi
2000
2001# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2002
2003for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2004                  inttypes.h stdint.h unistd.h
2005do
2006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2007echo "$as_me:2007: checking for $ac_header" >&5
2008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2009if eval "test \"\${$as_ac_Header+set}\" = set"; then
2010  echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012  cat >conftest.$ac_ext <<_ACEOF
2013#line 2013 "configure"
2014#include "confdefs.h"
2015$ac_includes_default
2016#include <$ac_header>
2017_ACEOF
2018rm -f conftest.$ac_objext
2019if { (eval echo "$as_me:2019: \"$ac_compile\"") >&5
2020  (eval $ac_compile) 2>&5
2021  ac_status=$?
2022  echo "$as_me:2022: \$? = $ac_status" >&5
2023  (exit $ac_status); } &&
2024         { ac_try='test -s conftest.$ac_objext'
2025  { (eval echo "$as_me:2025: \"$ac_try\"") >&5
2026  (eval $ac_try) 2>&5
2027  ac_status=$?
2028  echo "$as_me:2028: \$? = $ac_status" >&5
2029  (exit $ac_status); }; }; then
2030  eval "$as_ac_Header=yes"
2031else
2032  echo "$as_me: failed program was:" >&5
2033cat conftest.$ac_ext >&5
2034eval "$as_ac_Header=no"
2035fi
2036rm -f conftest.$ac_objext conftest.$ac_ext
2037fi
2038echo "$as_me:2038: result: `eval echo '${'$as_ac_Header'}'`" >&5
2039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2040if test `eval echo '${'$as_ac_Header'}'` = yes; then
2041  cat >>confdefs.h <<EOF
2042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2043EOF
2044
2045fi
2046done
2047
2048echo "$as_me:2048: checking for size_t" >&5
2049echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2050if test "${ac_cv_type_size_t+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  cat >conftest.$ac_ext <<_ACEOF
2054#line 2054 "configure"
2055#include "confdefs.h"
2056$ac_includes_default
2057int
2058main ()
2059{
2060if ((size_t *) 0)
2061  return 0;
2062if (sizeof (size_t))
2063  return 0;
2064  ;
2065  return 0;
2066}
2067_ACEOF
2068rm -f conftest.$ac_objext
2069if { (eval echo "$as_me:2069: \"$ac_compile\"") >&5
2070  (eval $ac_compile) 2>&5
2071  ac_status=$?
2072  echo "$as_me:2072: \$? = $ac_status" >&5
2073  (exit $ac_status); } &&
2074         { ac_try='test -s conftest.$ac_objext'
2075  { (eval echo "$as_me:2075: \"$ac_try\"") >&5
2076  (eval $ac_try) 2>&5
2077  ac_status=$?
2078  echo "$as_me:2078: \$? = $ac_status" >&5
2079  (exit $ac_status); }; }; then
2080  ac_cv_type_size_t=yes
2081else
2082  echo "$as_me: failed program was:" >&5
2083cat conftest.$ac_ext >&5
2084ac_cv_type_size_t=no
2085fi
2086rm -f conftest.$ac_objext conftest.$ac_ext
2087fi
2088echo "$as_me:2088: result: $ac_cv_type_size_t" >&5
2089echo "${ECHO_T}$ac_cv_type_size_t" >&6
2090if test $ac_cv_type_size_t = yes; then
2091  :
2092else
2093
2094cat >>confdefs.h <<EOF
2095#define size_t unsigned
2096EOF
2097
2098fi
2099
2100echo "$as_me:2100: checking for stddef.h" >&5
2101echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
2102if test "${ac_cv_header_stddef_h+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  cat >conftest.$ac_ext <<_ACEOF
2106#line 2106 "configure"
2107#include "confdefs.h"
2108#include <stddef.h>
2109_ACEOF
2110if { (eval echo "$as_me:2110: \"$ac_cpp conftest.$ac_ext\"") >&5
2111  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2112  ac_status=$?
2113  egrep -v '^ *\+' conftest.er1 >conftest.err
2114  rm -f conftest.er1
2115  cat conftest.err >&5
2116  echo "$as_me:2116: \$? = $ac_status" >&5
2117  (exit $ac_status); } >/dev/null; then
2118  if test -s conftest.err; then
2119    ac_cpp_err=$ac_c_preproc_warn_flag
2120  else
2121    ac_cpp_err=
2122  fi
2123else
2124  ac_cpp_err=yes
2125fi
2126if test -z "$ac_cpp_err"; then
2127  ac_cv_header_stddef_h=yes
2128else
2129  echo "$as_me: failed program was:" >&5
2130  cat conftest.$ac_ext >&5
2131  ac_cv_header_stddef_h=no
2132fi
2133rm -f conftest.err conftest.$ac_ext
2134fi
2135echo "$as_me:2135: result: $ac_cv_header_stddef_h" >&5
2136echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
2137
2138echo "$as_me:2138: checking for sys/types.h" >&5
2139echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
2140if test "${ac_cv_header_sys_types_h+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  cat >conftest.$ac_ext <<_ACEOF
2144#line 2144 "configure"
2145#include "confdefs.h"
2146#include <sys/types.h>
2147_ACEOF
2148if { (eval echo "$as_me:2148: \"$ac_cpp conftest.$ac_ext\"") >&5
2149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2150  ac_status=$?
2151  egrep -v '^ *\+' conftest.er1 >conftest.err
2152  rm -f conftest.er1
2153  cat conftest.err >&5
2154  echo "$as_me:2154: \$? = $ac_status" >&5
2155  (exit $ac_status); } >/dev/null; then
2156  if test -s conftest.err; then
2157    ac_cpp_err=$ac_c_preproc_warn_flag
2158  else
2159    ac_cpp_err=
2160  fi
2161else
2162  ac_cpp_err=yes
2163fi
2164if test -z "$ac_cpp_err"; then
2165  ac_cv_header_sys_types_h=yes
2166else
2167  echo "$as_me: failed program was:" >&5
2168  cat conftest.$ac_ext >&5
2169  ac_cv_header_sys_types_h=no
2170fi
2171rm -f conftest.err conftest.$ac_ext
2172fi
2173echo "$as_me:2173: result: $ac_cv_header_sys_types_h" >&5
2174echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
2175
2176for ac_func in errx fgetln setprogname
2177do
2178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2179echo "$as_me:2179: checking for $ac_func" >&5
2180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2181if eval "test \"\${$as_ac_var+set}\" = set"; then
2182  echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184  cat >conftest.$ac_ext <<_ACEOF
2185#line 2185 "configure"
2186#include "confdefs.h"
2187/* System header to define __stub macros and hopefully few prototypes,
2188    which can conflict with char $ac_func (); below.  */
2189#include <assert.h>
2190/* Override any gcc2 internal prototype to avoid an error.  */
2191#ifdef __cplusplus
2192extern "C"
2193#endif
2194/* We use char because int might match the return type of a gcc2
2195   builtin and then its argument prototype would still apply.  */
2196char $ac_func ();
2197char (*f) ();
2198
2199int
2200main ()
2201{
2202/* The GNU C library defines this for functions which it implements
2203    to always fail with ENOSYS.  Some functions are actually named
2204    something starting with __ and the normal name is an alias.  */
2205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2206choke me
2207#else
2208f = $ac_func;
2209#endif
2210
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215rm -f conftest.$ac_objext conftest$ac_exeext
2216if { (eval echo "$as_me:2216: \"$ac_link\"") >&5
2217  (eval $ac_link) 2>&5
2218  ac_status=$?
2219  echo "$as_me:2219: \$? = $ac_status" >&5
2220  (exit $ac_status); } &&
2221         { ac_try='test -s conftest$ac_exeext'
2222  { (eval echo "$as_me:2222: \"$ac_try\"") >&5
2223  (eval $ac_try) 2>&5
2224  ac_status=$?
2225  echo "$as_me:2225: \$? = $ac_status" >&5
2226  (exit $ac_status); }; }; then
2227  eval "$as_ac_var=yes"
2228else
2229  echo "$as_me: failed program was:" >&5
2230cat conftest.$ac_ext >&5
2231eval "$as_ac_var=no"
2232fi
2233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2234fi
2235echo "$as_me:2235: result: `eval echo '${'$as_ac_var'}'`" >&5
2236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2237if test `eval echo '${'$as_ac_var'}'` = yes; then
2238  cat >>confdefs.h <<EOF
2239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2240EOF
2241
2242fi
2243done
2244
2245echo "$as_me:2245: checking for library containing fparseln" >&5
2246echo $ECHO_N "checking for library containing fparseln... $ECHO_C" >&6
2247if test "${ac_cv_search_fparseln+set}" = set; then
2248  echo $ECHO_N "(cached) $ECHO_C" >&6
2249else
2250  ac_func_search_save_LIBS=$LIBS
2251ac_cv_search_fparseln=no
2252cat >conftest.$ac_ext <<_ACEOF
2253#line 2253 "configure"
2254#include "confdefs.h"
2255
2256/* Override any gcc2 internal prototype to avoid an error.  */
2257#ifdef __cplusplus
2258extern "C"
2259#endif
2260/* We use char because int might match the return type of a gcc2
2261   builtin and then its argument prototype would still apply.  */
2262char fparseln ();
2263int
2264main ()
2265{
2266fparseln ();
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271rm -f conftest.$ac_objext conftest$ac_exeext
2272if { (eval echo "$as_me:2272: \"$ac_link\"") >&5
2273  (eval $ac_link) 2>&5
2274  ac_status=$?
2275  echo "$as_me:2275: \$? = $ac_status" >&5
2276  (exit $ac_status); } &&
2277         { ac_try='test -s conftest$ac_exeext'
2278  { (eval echo "$as_me:2278: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:2281: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283  ac_cv_search_fparseln="none required"
2284else
2285  echo "$as_me: failed program was:" >&5
2286cat conftest.$ac_ext >&5
2287fi
2288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2289if test "$ac_cv_search_fparseln" = no; then
2290  for ac_lib in util; do
2291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2292    cat >conftest.$ac_ext <<_ACEOF
2293#line 2293 "configure"
2294#include "confdefs.h"
2295
2296/* Override any gcc2 internal prototype to avoid an error.  */
2297#ifdef __cplusplus
2298extern "C"
2299#endif
2300/* We use char because int might match the return type of a gcc2
2301   builtin and then its argument prototype would still apply.  */
2302char fparseln ();
2303int
2304main ()
2305{
2306fparseln ();
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext conftest$ac_exeext
2312if { (eval echo "$as_me:2312: \"$ac_link\"") >&5
2313  (eval $ac_link) 2>&5
2314  ac_status=$?
2315  echo "$as_me:2315: \$? = $ac_status" >&5
2316  (exit $ac_status); } &&
2317         { ac_try='test -s conftest$ac_exeext'
2318  { (eval echo "$as_me:2318: \"$ac_try\"") >&5
2319  (eval $ac_try) 2>&5
2320  ac_status=$?
2321  echo "$as_me:2321: \$? = $ac_status" >&5
2322  (exit $ac_status); }; }; then
2323  ac_cv_search_fparseln="-l$ac_lib"
2324break
2325else
2326  echo "$as_me: failed program was:" >&5
2327cat conftest.$ac_ext >&5
2328fi
2329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2330  done
2331fi
2332LIBS=$ac_func_search_save_LIBS
2333fi
2334echo "$as_me:2334: result: $ac_cv_search_fparseln" >&5
2335echo "${ECHO_T}$ac_cv_search_fparseln" >&6
2336if test "$ac_cv_search_fparseln" != no; then
2337  test "$ac_cv_search_fparseln" = "none required" || LIBS="$ac_cv_search_fparseln $LIBS"
2338  cat >>confdefs.h <<\EOF
2339#define HAVE_FPARSELN 1
2340EOF
2341
2342fi
2343
2344cat >confcache <<\_ACEOF
2345# This file is a shell script that caches the results of configure
2346# tests run on this system so they can be shared between configure
2347# scripts and configure runs, see configure's option --config-cache.
2348# It is not useful on other systems.  If it contains results you don't
2349# want to keep, you may remove or edit it.
2350#
2351# config.status only pays attention to the cache file if you give it
2352# the --recheck option to rerun configure.
2353#
2354# `ac_cv_env_foo' variables (set or unset) will be overriden when
2355# loading this file, other *unset* `ac_cv_foo' will be assigned the
2356# following values.
2357
2358_ACEOF
2359
2360# The following way of writing the cache mishandles newlines in values,
2361# but we know of no workaround that is simple, portable, and efficient.
2362# So, don't put newlines in cache variables' values.
2363# Ultrix sh set writes to stderr and can't be redirected directly,
2364# and sets the high bit in the cache file unless we assign to the vars.
2365{
2366  (set) 2>&1 |
2367    case `(ac_space=' '; set | grep ac_space) 2>&1` in
2368    *ac_space=\ *)
2369      # `set' does not quote correctly, so add quotes (double-quote
2370      # substitution turns \\\\ into \\, and sed turns \\ into \).
2371      sed -n \
2372        "s/'/'\\\\''/g;
2373    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2374      ;;
2375    *)
2376      # `set' quotes correctly as required by POSIX, so do not add quotes.
2377      sed -n \
2378        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2379      ;;
2380    esac;
2381} |
2382  sed '
2383     t clear
2384     : clear
2385     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2386     t end
2387     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2388     : end' >>confcache
2389if cmp -s $cache_file confcache; then :; else
2390  if test -w $cache_file; then
2391    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2392    cat confcache >$cache_file
2393  else
2394    echo "not updating unwritable cache $cache_file"
2395  fi
2396fi
2397rm -f confcache
2398
2399test "x$prefix" = xNONE && prefix=$ac_default_prefix
2400# Let make expand exec_prefix.
2401test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2402
2403# VPATH may cause trouble with some makes, so we remove $(srcdir),
2404# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2405# trailing colons and then remove the whole line if VPATH becomes empty
2406# (actually we leave an empty line to preserve line numbers).
2407if test "x$srcdir" = x.; then
2408  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
2409s/:*\$(srcdir):*/:/;
2410s/:*\${srcdir}:*/:/;
2411s/:*@srcdir@:*/:/;
2412s/^\([^=]*=[ 	]*\):*/\1/;
2413s/:*$//;
2414s/^[^=]*=[ 	]*$//;
2415}'
2416fi
2417
2418DEFS=-DHAVE_CONFIG_H
2419
2420: ${CONFIG_STATUS=./config.status}
2421ac_clean_files_save=$ac_clean_files
2422ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2423{ echo "$as_me:2423: creating $CONFIG_STATUS" >&5
2424echo "$as_me: creating $CONFIG_STATUS" >&6;}
2425cat >$CONFIG_STATUS <<_ACEOF
2426#! $SHELL
2427# Generated automatically by configure.
2428# Run this file to recreate the current configuration.
2429# Compiler output produced by configure, useful for debugging
2430# configure, is in config.log if it exists.
2431
2432debug=false
2433SHELL=\${CONFIG_SHELL-$SHELL}
2434ac_cs_invocation="\$0 \$@"
2435
2436_ACEOF
2437
2438cat >>$CONFIG_STATUS <<\_ACEOF
2439# Be Bourne compatible
2440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2441  emulate sh
2442  NULLCMD=:
2443elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2444  set -o posix
2445fi
2446
2447# Name of the executable.
2448as_me=`echo "$0" |sed 's,.*[\\/],,'`
2449
2450if expr a : '\(a\)' >/dev/null 2>&1; then
2451  as_expr=expr
2452else
2453  as_expr=false
2454fi
2455
2456rm -f conf$$ conf$$.exe conf$$.file
2457echo >conf$$.file
2458if ln -s conf$$.file conf$$ 2>/dev/null; then
2459  # We could just check for DJGPP; but this test a) works b) is more generic
2460  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2461  if test -f conf$$.exe; then
2462    # Don't use ln at all; we don't have any links
2463    as_ln_s='cp -p'
2464  else
2465    as_ln_s='ln -s'
2466  fi
2467elif ln conf$$.file conf$$ 2>/dev/null; then
2468  as_ln_s=ln
2469else
2470  as_ln_s='cp -p'
2471fi
2472rm -f conf$$ conf$$.exe conf$$.file
2473
2474as_executable_p="test -f"
2475
2476# Support unset when possible.
2477if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2478  as_unset=unset
2479else
2480  as_unset=false
2481fi
2482
2483# NLS nuisances.
2484$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2485$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2486$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2487$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2488$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2489$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2490$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2491$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2492
2493# IFS
2494# We need space, tab and new line, in precisely that order.
2495as_nl='
2496'
2497IFS=" 	$as_nl"
2498
2499# CDPATH.
2500$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2501
2502exec 6>&1
2503
2504_ACEOF
2505
2506# Files that config.status was made for.
2507if test -n "$ac_config_files"; then
2508  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2509fi
2510
2511if test -n "$ac_config_headers"; then
2512  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2513fi
2514
2515if test -n "$ac_config_links"; then
2516  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2517fi
2518
2519if test -n "$ac_config_commands"; then
2520  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2521fi
2522
2523cat >>$CONFIG_STATUS <<\EOF
2524
2525ac_cs_usage="\
2526\`$as_me' instantiates files from templates according to the
2527current configuration.
2528
2529Usage: $0 [OPTIONS] [FILE]...
2530
2531  -h, --help       print this help, then exit
2532  -V, --version    print version number, then exit
2533  -d, --debug      don't remove temporary files
2534      --recheck    update $as_me by reconfiguring in the same conditions
2535  --file=FILE[:TEMPLATE]
2536                   instantiate the configuration file FILE
2537  --header=FILE[:TEMPLATE]
2538                   instantiate the configuration header FILE
2539
2540Configuration files:
2541$config_files
2542
2543Configuration headers:
2544$config_headers
2545
2546Report bugs to <bug-autoconf@gnu.org>."
2547EOF
2548
2549cat >>$CONFIG_STATUS <<EOF
2550ac_cs_version="\\
2551libnbcompat config.status noversion
2552configured by $0, generated by GNU Autoconf 2.52,
2553  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2554
2555Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2556Free Software Foundation, Inc.
2557This config.status script is free software; the Free Software Foundation
2558gives unlimited permission to copy, distribute and modify it."
2559srcdir=$srcdir
2560EOF
2561
2562cat >>$CONFIG_STATUS <<\EOF
2563# If no file are specified by the user, then we need to provide default
2564# value.  By we need to know if files were specified by the user.
2565ac_need_defaults=:
2566while test $# != 0
2567do
2568  case $1 in
2569  --*=*)
2570    ac_option=`expr "x$1" : 'x\([^=]*\)='`
2571    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2572    shift
2573    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2574    shift
2575    ;;
2576  -*);;
2577  *) # This is not an option, so the user has probably given explicit
2578     # arguments.
2579     ac_need_defaults=false;;
2580  esac
2581
2582  case $1 in
2583  # Handling of the options.
2584EOF
2585cat >>$CONFIG_STATUS <<EOF
2586  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2587    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2588    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2589EOF
2590cat >>$CONFIG_STATUS <<\EOF
2591  --version | --vers* | -V )
2592    echo "$ac_cs_version"; exit 0 ;;
2593  --he | --h)
2594    # Conflict between --help and --header
2595    { { echo "$as_me:2595: error: ambiguous option: $1
2596Try \`$0 --help' for more information." >&5
2597echo "$as_me: error: ambiguous option: $1
2598Try \`$0 --help' for more information." >&2;}
2599   { (exit 1); exit 1; }; };;
2600  --help | --hel | -h )
2601    echo "$ac_cs_usage"; exit 0 ;;
2602  --debug | --d* | -d )
2603    debug=: ;;
2604  --file | --fil | --fi | --f )
2605    shift
2606    CONFIG_FILES="$CONFIG_FILES $1"
2607    ac_need_defaults=false;;
2608  --header | --heade | --head | --hea )
2609    shift
2610    CONFIG_HEADERS="$CONFIG_HEADERS $1"
2611    ac_need_defaults=false;;
2612
2613  # This is an error.
2614  -*) { { echo "$as_me:2614: error: unrecognized option: $1
2615Try \`$0 --help' for more information." >&5
2616echo "$as_me: error: unrecognized option: $1
2617Try \`$0 --help' for more information." >&2;}
2618   { (exit 1); exit 1; }; } ;;
2619
2620  *) ac_config_targets="$ac_config_targets $1" ;;
2621
2622  esac
2623  shift
2624done
2625
2626exec 5>>config.log
2627cat >&5 << _ACEOF
2628
2629## ----------------------- ##
2630## Running config.status.  ##
2631## ----------------------- ##
2632
2633This file was extended by $as_me (libnbcompat noversion) 2.52, executed with
2634  CONFIG_FILES    = $CONFIG_FILES
2635  CONFIG_HEADERS  = $CONFIG_HEADERS
2636  CONFIG_LINKS    = $CONFIG_LINKS
2637  CONFIG_COMMANDS = $CONFIG_COMMANDS
2638  > $ac_cs_invocation
2639on `(hostname || uname -n) 2>/dev/null | sed 1q`
2640
2641_ACEOF
2642EOF
2643
2644cat >>$CONFIG_STATUS <<\EOF
2645for ac_config_target in $ac_config_targets
2646do
2647  case "$ac_config_target" in
2648  # Handling of arguments.
2649  "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;;
2650  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2651  *) { { echo "$as_me:2651: error: invalid argument: $ac_config_target" >&5
2652echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2653   { (exit 1); exit 1; }; };;
2654  esac
2655done
2656
2657# If the user did not use the arguments to specify the items to instantiate,
2658# then the envvar interface is used.  Set only those that are not.
2659# We use the long form for the default assignment because of an extremely
2660# bizarre bug on SunOS 4.1.3.
2661if $ac_need_defaults; then
2662  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2663  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2664fi
2665
2666# Create a temporary directory, and hook for its removal unless debugging.
2667$debug ||
2668{
2669  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2670  trap '{ (exit 1); exit 1; }' 1 2 13 15
2671}
2672
2673# Create a (secure) tmp directory for tmp files.
2674: ${TMPDIR=/tmp}
2675{
2676  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2677  test -n "$tmp" && test -d "$tmp"
2678}  ||
2679{
2680  tmp=$TMPDIR/cs$$-$RANDOM
2681  (umask 077 && mkdir $tmp)
2682} ||
2683{
2684   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2685   { (exit 1); exit 1; }
2686}
2687
2688EOF
2689
2690cat >>$CONFIG_STATUS <<EOF
2691
2692#
2693# CONFIG_FILES section.
2694#
2695
2696# No need to generate the scripts if there are no CONFIG_FILES.
2697# This happens for instance when ./config.status config.h
2698if test -n "\$CONFIG_FILES"; then
2699  # Protect against being on the right side of a sed subst in config.status.
2700  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2701   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2702s,@SHELL@,$SHELL,;t t
2703s,@exec_prefix@,$exec_prefix,;t t
2704s,@prefix@,$prefix,;t t
2705s,@program_transform_name@,$program_transform_name,;t t
2706s,@bindir@,$bindir,;t t
2707s,@sbindir@,$sbindir,;t t
2708s,@libexecdir@,$libexecdir,;t t
2709s,@datadir@,$datadir,;t t
2710s,@sysconfdir@,$sysconfdir,;t t
2711s,@sharedstatedir@,$sharedstatedir,;t t
2712s,@localstatedir@,$localstatedir,;t t
2713s,@libdir@,$libdir,;t t
2714s,@includedir@,$includedir,;t t
2715s,@oldincludedir@,$oldincludedir,;t t
2716s,@infodir@,$infodir,;t t
2717s,@mandir@,$mandir,;t t
2718s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2719s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2720s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2721s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2722s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2723s,@build_alias@,$build_alias,;t t
2724s,@host_alias@,$host_alias,;t t
2725s,@target_alias@,$target_alias,;t t
2726s,@ECHO_C@,$ECHO_C,;t t
2727s,@ECHO_N@,$ECHO_N,;t t
2728s,@ECHO_T@,$ECHO_T,;t t
2729s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2730s,@DEFS@,$DEFS,;t t
2731s,@LIBS@,$LIBS,;t t
2732s,@CC@,$CC,;t t
2733s,@CFLAGS@,$CFLAGS,;t t
2734s,@LDFLAGS@,$LDFLAGS,;t t
2735s,@CPPFLAGS@,$CPPFLAGS,;t t
2736s,@ac_ct_CC@,$ac_ct_CC,;t t
2737s,@EXEEXT@,$EXEEXT,;t t
2738s,@OBJEXT@,$OBJEXT,;t t
2739s,@CPP@,$CPP,;t t
2740CEOF
2741
2742EOF
2743
2744  cat >>$CONFIG_STATUS <<\EOF
2745  # Split the substitutions into bite-sized pieces for seds with
2746  # small command number limits, like on Digital OSF/1 and HP-UX.
2747  ac_max_sed_lines=48
2748  ac_sed_frag=1 # Number of current file.
2749  ac_beg=1 # First line for current file.
2750  ac_end=$ac_max_sed_lines # Line after last line for current file.
2751  ac_more_lines=:
2752  ac_sed_cmds=
2753  while $ac_more_lines; do
2754    if test $ac_beg -gt 1; then
2755      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2756    else
2757      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2758    fi
2759    if test ! -s $tmp/subs.frag; then
2760      ac_more_lines=false
2761    else
2762      # The purpose of the label and of the branching condition is to
2763      # speed up the sed processing (if there are no `@' at all, there
2764      # is no need to browse any of the substitutions).
2765      # These are the two extra sed commands mentioned above.
2766      (echo ':t
2767  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2768      if test -z "$ac_sed_cmds"; then
2769  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2770      else
2771  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2772      fi
2773      ac_sed_frag=`expr $ac_sed_frag + 1`
2774      ac_beg=$ac_end
2775      ac_end=`expr $ac_end + $ac_max_sed_lines`
2776    fi
2777  done
2778  if test -z "$ac_sed_cmds"; then
2779    ac_sed_cmds=cat
2780  fi
2781fi # test -n "$CONFIG_FILES"
2782
2783EOF
2784cat >>$CONFIG_STATUS <<\EOF
2785for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2786  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2787  case $ac_file in
2788  - | *:- | *:-:* ) # input from stdin
2789        cat >$tmp/stdin
2790        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2791        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2792  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2793        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2794  * )   ac_file_in=$ac_file.in ;;
2795  esac
2796
2797  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2798  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2799         X"$ac_file" : 'X\(//\)[^/]' \| \
2800         X"$ac_file" : 'X\(//\)$' \| \
2801         X"$ac_file" : 'X\(/\)' \| \
2802         .     : '\(.\)' 2>/dev/null ||
2803echo X"$ac_file" |
2804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2805  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2806  	  /^X\(\/\/\)$/{ s//\1/; q; }
2807  	  /^X\(\/\).*/{ s//\1/; q; }
2808  	  s/.*/./; q'`
2809  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2810    { case "$ac_dir" in
2811  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2812  *)                      as_incr_dir=.;;
2813esac
2814as_dummy="$ac_dir"
2815for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2816  case $as_mkdir_dir in
2817    # Skip DOS drivespec
2818    ?:) as_incr_dir=$as_mkdir_dir ;;
2819    *)
2820      as_incr_dir=$as_incr_dir/$as_mkdir_dir
2821      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2822    ;;
2823  esac
2824done; }
2825
2826    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2827    # A "../" for each directory in $ac_dir_suffix.
2828    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2829  else
2830    ac_dir_suffix= ac_dots=
2831  fi
2832
2833  case $srcdir in
2834  .)  ac_srcdir=.
2835      if test -z "$ac_dots"; then
2836         ac_top_srcdir=.
2837      else
2838         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2839      fi ;;
2840  [\\/]* | ?:[\\/]* )
2841      ac_srcdir=$srcdir$ac_dir_suffix;
2842      ac_top_srcdir=$srcdir ;;
2843  *) # Relative path.
2844    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2845    ac_top_srcdir=$ac_dots$srcdir ;;
2846  esac
2847
2848  if test x"$ac_file" != x-; then
2849    { echo "$as_me:2849: creating $ac_file" >&5
2850echo "$as_me: creating $ac_file" >&6;}
2851    rm -f "$ac_file"
2852  fi
2853  # Let's still pretend it is `configure' which instantiates (i.e., don't
2854  # use $as_me), people would be surprised to read:
2855  #    /* config.h.  Generated automatically by config.status.  */
2856  configure_input="Generated automatically from `echo $ac_file_in |
2857                                                 sed 's,.*/,,'` by configure."
2858
2859  # First look for the input files in the build tree, otherwise in the
2860  # src tree.
2861  ac_file_inputs=`IFS=:
2862    for f in $ac_file_in; do
2863      case $f in
2864      -) echo $tmp/stdin ;;
2865      [\\/$]*)
2866         # Absolute (can't be DOS-style, as IFS=:)
2867         test -f "$f" || { { echo "$as_me:2867: error: cannot find input file: $f" >&5
2868echo "$as_me: error: cannot find input file: $f" >&2;}
2869   { (exit 1); exit 1; }; }
2870         echo $f;;
2871      *) # Relative
2872         if test -f "$f"; then
2873           # Build tree
2874           echo $f
2875         elif test -f "$srcdir/$f"; then
2876           # Source tree
2877           echo $srcdir/$f
2878         else
2879           # /dev/null tree
2880           { { echo "$as_me:2880: error: cannot find input file: $f" >&5
2881echo "$as_me: error: cannot find input file: $f" >&2;}
2882   { (exit 1); exit 1; }; }
2883         fi;;
2884      esac
2885    done` || { (exit 1); exit 1; }
2886EOF
2887cat >>$CONFIG_STATUS <<EOF
2888  sed "$ac_vpsub
2889$extrasub
2890EOF
2891cat >>$CONFIG_STATUS <<\EOF
2892:t
2893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2894s,@configure_input@,$configure_input,;t t
2895s,@srcdir@,$ac_srcdir,;t t
2896s,@top_srcdir@,$ac_top_srcdir,;t t
2897" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2898  rm -f $tmp/stdin
2899  if test x"$ac_file" != x-; then
2900    mv $tmp/out $ac_file
2901  else
2902    cat $tmp/out
2903    rm -f $tmp/out
2904  fi
2905
2906done
2907EOF
2908cat >>$CONFIG_STATUS <<\EOF
2909
2910#
2911# CONFIG_HEADER section.
2912#
2913
2914# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2915# NAME is the cpp macro being defined and VALUE is the value it is being given.
2916#
2917# ac_d sets the value in "#define NAME VALUE" lines.
2918ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2919ac_dB='[ 	].*$,\1#\2'
2920ac_dC=' '
2921ac_dD=',;t'
2922# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2923ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2924ac_uB='$,\1#\2define\3'
2925ac_uC=' '
2926ac_uD=',;t'
2927
2928for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2929  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2930  case $ac_file in
2931  - | *:- | *:-:* ) # input from stdin
2932        cat >$tmp/stdin
2933        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2934        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2935  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2936        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2937  * )   ac_file_in=$ac_file.in ;;
2938  esac
2939
2940  test x"$ac_file" != x- && { echo "$as_me:2940: creating $ac_file" >&5
2941echo "$as_me: creating $ac_file" >&6;}
2942
2943  # First look for the input files in the build tree, otherwise in the
2944  # src tree.
2945  ac_file_inputs=`IFS=:
2946    for f in $ac_file_in; do
2947      case $f in
2948      -) echo $tmp/stdin ;;
2949      [\\/$]*)
2950         # Absolute (can't be DOS-style, as IFS=:)
2951         test -f "$f" || { { echo "$as_me:2951: error: cannot find input file: $f" >&5
2952echo "$as_me: error: cannot find input file: $f" >&2;}
2953   { (exit 1); exit 1; }; }
2954         echo $f;;
2955      *) # Relative
2956         if test -f "$f"; then
2957           # Build tree
2958           echo $f
2959         elif test -f "$srcdir/$f"; then
2960           # Source tree
2961           echo $srcdir/$f
2962         else
2963           # /dev/null tree
2964           { { echo "$as_me:2964: error: cannot find input file: $f" >&5
2965echo "$as_me: error: cannot find input file: $f" >&2;}
2966   { (exit 1); exit 1; }; }
2967         fi;;
2968      esac
2969    done` || { (exit 1); exit 1; }
2970  # Remove the trailing spaces.
2971  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
2972
2973EOF
2974
2975# Transform confdefs.h into two sed scripts, `conftest.defines' and
2976# `conftest.undefs', that substitutes the proper values into
2977# config.h.in to produce config.h.  The first handles `#define'
2978# templates, and the second `#undef' templates.
2979# And first: Protect against being on the right side of a sed subst in
2980# config.status.  Protect against being in an unquoted here document
2981# in config.status.
2982rm -f conftest.defines conftest.undefs
2983# Using a here document instead of a string reduces the quoting nightmare.
2984# Putting comments in sed scripts is not portable.
2985#
2986# `end' is used to avoid that the second main sed command (meant for
2987# 0-ary CPP macros) applies to n-ary macro definitions.
2988# See the Autoconf documentation for `clear'.
2989cat >confdef2sed.sed <<\EOF
2990s/[\\&,]/\\&/g
2991s,[\\$`],\\&,g
2992t clear
2993: clear
2994s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
2995t end
2996s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2997: end
2998EOF
2999# If some macros were called several times there might be several times
3000# the same #defines, which is useless.  Nevertheless, we may not want to
3001# sort them, since we want the *last* AC-DEFINE to be honored.
3002uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3003sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3004rm -f confdef2sed.sed
3005
3006# This sed command replaces #undef with comments.  This is necessary, for
3007# example, in the case of _POSIX_SOURCE, which is predefined and required
3008# on some systems where configure will not decide to define it.
3009cat >>conftest.undefs <<\EOF
3010s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3011EOF
3012
3013# Break up conftest.defines because some shells have a limit on the size
3014# of here documents, and old seds have small limits too (100 cmds).
3015echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3016echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3017echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3018echo '  :' >>$CONFIG_STATUS
3019rm -f conftest.tail
3020while grep . conftest.defines >/dev/null
3021do
3022  # Write a limited-size here document to $tmp/defines.sed.
3023  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3024  # Speed up: don't consider the non `#define' lines.
3025  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
3026  # Work around the forget-to-reset-the-flag bug.
3027  echo 't clr' >>$CONFIG_STATUS
3028  echo ': clr' >>$CONFIG_STATUS
3029  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3030  echo 'CEOF
3031  sed -f $tmp/defines.sed $tmp/in >$tmp/out
3032  rm -f $tmp/in
3033  mv $tmp/out $tmp/in
3034' >>$CONFIG_STATUS
3035  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3036  rm -f conftest.defines
3037  mv conftest.tail conftest.defines
3038done
3039rm -f conftest.defines
3040echo '  fi # egrep' >>$CONFIG_STATUS
3041echo >>$CONFIG_STATUS
3042
3043# Break up conftest.undefs because some shells have a limit on the size
3044# of here documents, and old seds have small limits too (100 cmds).
3045echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3046rm -f conftest.tail
3047while grep . conftest.undefs >/dev/null
3048do
3049  # Write a limited-size here document to $tmp/undefs.sed.
3050  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3051  # Speed up: don't consider the non `#undef'
3052  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
3053  # Work around the forget-to-reset-the-flag bug.
3054  echo 't clr' >>$CONFIG_STATUS
3055  echo ': clr' >>$CONFIG_STATUS
3056  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3057  echo 'CEOF
3058  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3059  rm -f $tmp/in
3060  mv $tmp/out $tmp/in
3061' >>$CONFIG_STATUS
3062  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3063  rm -f conftest.undefs
3064  mv conftest.tail conftest.undefs
3065done
3066rm -f conftest.undefs
3067
3068cat >>$CONFIG_STATUS <<\EOF
3069  # Let's still pretend it is `configure' which instantiates (i.e., don't
3070  # use $as_me), people would be surprised to read:
3071  #    /* config.h.  Generated automatically by config.status.  */
3072  if test x"$ac_file" = x-; then
3073    echo "/* Generated automatically by configure.  */" >$tmp/config.h
3074  else
3075    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
3076  fi
3077  cat $tmp/in >>$tmp/config.h
3078  rm -f $tmp/in
3079  if test x"$ac_file" != x-; then
3080    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3081      { echo "$as_me:3081: $ac_file is unchanged" >&5
3082echo "$as_me: $ac_file is unchanged" >&6;}
3083    else
3084      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3085         X"$ac_file" : 'X\(//\)[^/]' \| \
3086         X"$ac_file" : 'X\(//\)$' \| \
3087         X"$ac_file" : 'X\(/\)' \| \
3088         .     : '\(.\)' 2>/dev/null ||
3089echo X"$ac_file" |
3090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3091  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3092  	  /^X\(\/\/\)$/{ s//\1/; q; }
3093  	  /^X\(\/\).*/{ s//\1/; q; }
3094  	  s/.*/./; q'`
3095      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3096        { case "$ac_dir" in
3097  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3098  *)                      as_incr_dir=.;;
3099esac
3100as_dummy="$ac_dir"
3101for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3102  case $as_mkdir_dir in
3103    # Skip DOS drivespec
3104    ?:) as_incr_dir=$as_mkdir_dir ;;
3105    *)
3106      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3107      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3108    ;;
3109  esac
3110done; }
3111
3112      fi
3113      rm -f $ac_file
3114      mv $tmp/config.h $ac_file
3115    fi
3116  else
3117    cat $tmp/config.h
3118    rm -f $tmp/config.h
3119  fi
3120done
3121EOF
3122
3123cat >>$CONFIG_STATUS <<\EOF
3124
3125{ (exit 0); exit 0; }
3126EOF
3127chmod +x $CONFIG_STATUS
3128ac_clean_files=$ac_clean_files_save
3129
3130# configure is writing to config.log, and then calls config.status.
3131# config.status does its own redirection, appending to config.log.
3132# Unfortunately, on DOS this fails, as config.log is still kept open
3133# by configure, so config.status won't be able to write to it; its
3134# output is simply discarded.  So we exec the FD to /dev/null,
3135# effectively closing config.log, so it can be properly (re)opened and
3136# appended to by config.status.  When coming back to configure, we
3137# need to make the FD available again.
3138if test "$no_create" != yes; then
3139  ac_cs_success=:
3140  exec 5>/dev/null
3141  $SHELL $CONFIG_STATUS || ac_cs_success=false
3142  exec 5>>config.log
3143  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3144  # would make configure fail if this is the last instruction.
3145  $ac_cs_success || { (exit 1); exit 1; }
3146fi
3147
3148