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