Documentation notes update/.
[ocaml-ancient.git] / mmalloc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="mmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833 _ACEOF
834 fi
835
836 if test -n "$ac_init_help"; then
837
838   cat <<\_ACEOF
839
840 Some influential environment variables:
841   CC          C compiler command
842   CFLAGS      C compiler flags
843   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
844               nonstandard directory <lib dir>
845   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
846               headers in a nonstandard directory <include dir>
847   CPP         C preprocessor
848
849 Use these variables to override the choices made by `configure' or to help
850 it to find libraries and programs with nonstandard names/locations.
851
852 _ACEOF
853 fi
854
855 if test "$ac_init_help" = "recursive"; then
856   # If there are subdirs, report their specific --help.
857   ac_popdir=`pwd`
858   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
859     test -d $ac_dir || continue
860     ac_builddir=.
861
862 if test "$ac_dir" != .; then
863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
864   # A "../" for each directory in $ac_dir_suffix.
865   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
866 else
867   ac_dir_suffix= ac_top_builddir=
868 fi
869
870 case $srcdir in
871   .)  # No --srcdir option.  We are building in place.
872     ac_srcdir=.
873     if test -z "$ac_top_builddir"; then
874        ac_top_srcdir=.
875     else
876        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
877     fi ;;
878   [\\/]* | ?:[\\/]* )  # Absolute path.
879     ac_srcdir=$srcdir$ac_dir_suffix;
880     ac_top_srcdir=$srcdir ;;
881   *) # Relative path.
882     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
883     ac_top_srcdir=$ac_top_builddir$srcdir ;;
884 esac
885
886 # Do not use `cd foo && pwd` to compute absolute paths, because
887 # the directories may not exist.
888 case `pwd` in
889 .) ac_abs_builddir="$ac_dir";;
890 *)
891   case "$ac_dir" in
892   .) ac_abs_builddir=`pwd`;;
893   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
894   *) ac_abs_builddir=`pwd`/"$ac_dir";;
895   esac;;
896 esac
897 case $ac_abs_builddir in
898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
899 *)
900   case ${ac_top_builddir}. in
901   .) ac_abs_top_builddir=$ac_abs_builddir;;
902   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
903   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
904   esac;;
905 esac
906 case $ac_abs_builddir in
907 .) ac_abs_srcdir=$ac_srcdir;;
908 *)
909   case $ac_srcdir in
910   .) ac_abs_srcdir=$ac_abs_builddir;;
911   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
912   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
913   esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
917 *)
918   case $ac_top_srcdir in
919   .) ac_abs_top_srcdir=$ac_abs_builddir;;
920   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
921   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
922   esac;;
923 esac
924
925     cd $ac_dir
926     # Check for guested configure; otherwise get Cygnus style configure.
927     if test -f $ac_srcdir/configure.gnu; then
928       echo
929       $SHELL $ac_srcdir/configure.gnu  --help=recursive
930     elif test -f $ac_srcdir/configure; then
931       echo
932       $SHELL $ac_srcdir/configure  --help=recursive
933     elif test -f $ac_srcdir/configure.ac ||
934            test -f $ac_srcdir/configure.in; then
935       echo
936       $ac_configure --help
937     else
938       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939     fi
940     cd "$ac_popdir"
941   done
942 fi
943
944 test -n "$ac_init_help" && exit 0
945 if $ac_init_version; then
946   cat <<\_ACEOF
947
948 Copyright (C) 2003 Free Software Foundation, Inc.
949 This configure script is free software; the Free Software Foundation
950 gives unlimited permission to copy, distribute and modify it.
951 _ACEOF
952   exit 0
953 fi
954 exec 5>config.log
955 cat >&5 <<_ACEOF
956 This file contains any messages produced by compilers while
957 running configure, to aid debugging if configure makes a mistake.
958
959 It was created by $as_me, which was
960 generated by GNU Autoconf 2.59.  Invocation command line was
961
962   $ $0 $@
963
964 _ACEOF
965 {
966 cat <<_ASUNAME
967 ## --------- ##
968 ## Platform. ##
969 ## --------- ##
970
971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976
977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
978 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
979
980 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
981 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
983 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
984 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
985 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
986 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
987
988 _ASUNAME
989
990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
991 for as_dir in $PATH
992 do
993   IFS=$as_save_IFS
994   test -z "$as_dir" && as_dir=.
995   echo "PATH: $as_dir"
996 done
997
998 } >&5
999
1000 cat >&5 <<_ACEOF
1001
1002
1003 ## ----------- ##
1004 ## Core tests. ##
1005 ## ----------- ##
1006
1007 _ACEOF
1008
1009
1010 # Keep a trace of the command line.
1011 # Strip out --no-create and --no-recursion so they do not pile up.
1012 # Strip out --silent because we don't want to record it for future runs.
1013 # Also quote any args containing shell meta-characters.
1014 # Make two passes to allow for proper duplicate-argument suppression.
1015 ac_configure_args=
1016 ac_configure_args0=
1017 ac_configure_args1=
1018 ac_sep=
1019 ac_must_keep_next=false
1020 for ac_pass in 1 2
1021 do
1022   for ac_arg
1023   do
1024     case $ac_arg in
1025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027     | -silent | --silent | --silen | --sile | --sil)
1028       continue ;;
1029     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1030       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1031     esac
1032     case $ac_pass in
1033     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034     2)
1035       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1036       if test $ac_must_keep_next = true; then
1037         ac_must_keep_next=false # Got value, back to normal.
1038       else
1039         case $ac_arg in
1040           *=* | --config-cache | -C | -disable-* | --disable-* \
1041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1043           | -with-* | --with-* | -without-* | --without-* | --x)
1044             case "$ac_configure_args0 " in
1045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1046             esac
1047             ;;
1048           -* ) ac_must_keep_next=true ;;
1049         esac
1050       fi
1051       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052       # Get rid of the leading space.
1053       ac_sep=" "
1054       ;;
1055     esac
1056   done
1057 done
1058 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1059 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060
1061 # When interrupted or exit'd, cleanup temporary files, and complete
1062 # config.log.  We remove comments because anyway the quotes in there
1063 # would cause problems or look ugly.
1064 # WARNING: Be sure not to use single quotes in there, as some shells,
1065 # such as our DU 5.0 friend, will then `close' the trap.
1066 trap 'exit_status=$?
1067   # Save into config.log some information that might help in debugging.
1068   {
1069     echo
1070
1071     cat <<\_ASBOX
1072 ## ---------------- ##
1073 ## Cache variables. ##
1074 ## ---------------- ##
1075 _ASBOX
1076     echo
1077     # The following way of writing the cache mishandles newlines in values,
1078 {
1079   (set) 2>&1 |
1080     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1081     *ac_space=\ *)
1082       sed -n \
1083         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1084           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1085       ;;
1086     *)
1087       sed -n \
1088         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089       ;;
1090     esac;
1091 }
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ----------------- ##
1096 ## Output variables. ##
1097 ## ----------------- ##
1098 _ASBOX
1099     echo
1100     for ac_var in $ac_subst_vars
1101     do
1102       eval ac_val=$`echo $ac_var`
1103       echo "$ac_var='"'"'$ac_val'"'"'"
1104     done | sort
1105     echo
1106
1107     if test -n "$ac_subst_files"; then
1108       cat <<\_ASBOX
1109 ## ------------- ##
1110 ## Output files. ##
1111 ## ------------- ##
1112 _ASBOX
1113       echo
1114       for ac_var in $ac_subst_files
1115       do
1116         eval ac_val=$`echo $ac_var`
1117         echo "$ac_var='"'"'$ac_val'"'"'"
1118       done | sort
1119       echo
1120     fi
1121
1122     if test -s confdefs.h; then
1123       cat <<\_ASBOX
1124 ## ----------- ##
1125 ## confdefs.h. ##
1126 ## ----------- ##
1127 _ASBOX
1128       echo
1129       sed "/^$/d" confdefs.h | sort
1130       echo
1131     fi
1132     test "$ac_signal" != 0 &&
1133       echo "$as_me: caught signal $ac_signal"
1134     echo "$as_me: exit $exit_status"
1135   } >&5
1136   rm -f core *.core &&
1137   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1138     exit $exit_status
1139      ' 0
1140 for ac_signal in 1 2 13 15; do
1141   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1142 done
1143 ac_signal=0
1144
1145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1146 rm -rf conftest* confdefs.h
1147 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1148 echo >confdefs.h
1149
1150 # Predefined preprocessor variables.
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_NAME "$PACKAGE_NAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_STRING "$PACKAGE_STRING"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1174 _ACEOF
1175
1176
1177 # Let the site file select an alternate cache file if it wants to.
1178 # Prefer explicitly selected file to automatically selected ones.
1179 if test -z "$CONFIG_SITE"; then
1180   if test "x$prefix" != xNONE; then
1181     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182   else
1183     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1184   fi
1185 fi
1186 for ac_site_file in $CONFIG_SITE; do
1187   if test -r "$ac_site_file"; then
1188     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1189 echo "$as_me: loading site script $ac_site_file" >&6;}
1190     sed 's/^/| /' "$ac_site_file" >&5
1191     . "$ac_site_file"
1192   fi
1193 done
1194
1195 if test -r "$cache_file"; then
1196   # Some versions of bash will fail to source /dev/null (special
1197   # files actually), so we avoid doing that.
1198   if test -f "$cache_file"; then
1199     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1200 echo "$as_me: loading cache $cache_file" >&6;}
1201     case $cache_file in
1202       [\\/]* | ?:[\\/]* ) . $cache_file;;
1203       *)                      . ./$cache_file;;
1204     esac
1205   fi
1206 else
1207   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1208 echo "$as_me: creating cache $cache_file" >&6;}
1209   >$cache_file
1210 fi
1211
1212 # Check that the precious variables saved in the cache have kept the same
1213 # value.
1214 ac_cache_corrupted=false
1215 for ac_var in `(set) 2>&1 |
1216                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1217   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1218   eval ac_new_set=\$ac_env_${ac_var}_set
1219   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1220   eval ac_new_val="\$ac_env_${ac_var}_value"
1221   case $ac_old_set,$ac_new_set in
1222     set,)
1223       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1224 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1225       ac_cache_corrupted=: ;;
1226     ,set)
1227       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1229       ac_cache_corrupted=: ;;
1230     ,);;
1231     *)
1232       if test "x$ac_old_val" != "x$ac_new_val"; then
1233         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1234 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1235         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1236 echo "$as_me:   former value:  $ac_old_val" >&2;}
1237         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1238 echo "$as_me:   current value: $ac_new_val" >&2;}
1239         ac_cache_corrupted=:
1240       fi;;
1241   esac
1242   # Pass precious variables to config.status.
1243   if test "$ac_new_set" = set; then
1244     case $ac_new_val in
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     *) ac_arg=$ac_var=$ac_new_val ;;
1248     esac
1249     case " $ac_configure_args " in
1250       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1251       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1252     esac
1253   fi
1254 done
1255 if $ac_cache_corrupted; then
1256   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1257 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1258   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1259 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1260    { (exit 1); exit 1; }; }
1261 fi
1262
1263 ac_ext=c
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293 if test -n "$ac_tool_prefix"; then
1294   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1295 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1296 echo "$as_me:$LINENO: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_CC+set}" = set; then
1299   echo $ECHO_N "(cached) $ECHO_C" >&6
1300 else
1301   if test -n "$CC"; then
1302   ac_cv_prog_CC="$CC" # Let the user override the test.
1303 else
1304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1305 for as_dir in $PATH
1306 do
1307   IFS=$as_save_IFS
1308   test -z "$as_dir" && as_dir=.
1309   for ac_exec_ext in '' $ac_executable_extensions; do
1310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1311     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1313     break 2
1314   fi
1315 done
1316 done
1317
1318 fi
1319 fi
1320 CC=$ac_cv_prog_CC
1321 if test -n "$CC"; then
1322   echo "$as_me:$LINENO: result: $CC" >&5
1323 echo "${ECHO_T}$CC" >&6
1324 else
1325   echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1327 fi
1328
1329 fi
1330 if test -z "$ac_cv_prog_CC"; then
1331   ac_ct_CC=$CC
1332   # Extract the first word of "gcc", so it can be a program name with args.
1333 set dummy gcc; ac_word=$2
1334 echo "$as_me:$LINENO: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1337   echo $ECHO_N "(cached) $ECHO_C" >&6
1338 else
1339   if test -n "$ac_ct_CC"; then
1340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1341 else
1342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 for as_dir in $PATH
1344 do
1345   IFS=$as_save_IFS
1346   test -z "$as_dir" && as_dir=.
1347   for ac_exec_ext in '' $ac_executable_extensions; do
1348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1349     ac_cv_prog_ac_ct_CC="gcc"
1350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1351     break 2
1352   fi
1353 done
1354 done
1355
1356 fi
1357 fi
1358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1359 if test -n "$ac_ct_CC"; then
1360   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1361 echo "${ECHO_T}$ac_ct_CC" >&6
1362 else
1363   echo "$as_me:$LINENO: result: no" >&5
1364 echo "${ECHO_T}no" >&6
1365 fi
1366
1367   CC=$ac_ct_CC
1368 else
1369   CC="$ac_cv_prog_CC"
1370 fi
1371
1372 if test -z "$CC"; then
1373   if test -n "$ac_tool_prefix"; then
1374   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}cc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   if test -n "$CC"; then
1382   ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   for ac_exec_ext in '' $ac_executable_extensions; do
1390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391     ac_cv_prog_CC="${ac_tool_prefix}cc"
1392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393     break 2
1394   fi
1395 done
1396 done
1397
1398 fi
1399 fi
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402   echo "$as_me:$LINENO: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409 fi
1410 if test -z "$ac_cv_prog_CC"; then
1411   ac_ct_CC=$CC
1412   # Extract the first word of "cc", so it can be a program name with args.
1413 set dummy cc; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   if test -n "$ac_ct_CC"; then
1420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1421 else
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1424 do
1425   IFS=$as_save_IFS
1426   test -z "$as_dir" && as_dir=.
1427   for ac_exec_ext in '' $ac_executable_extensions; do
1428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1429     ac_cv_prog_ac_ct_CC="cc"
1430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1431     break 2
1432   fi
1433 done
1434 done
1435
1436 fi
1437 fi
1438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1439 if test -n "$ac_ct_CC"; then
1440   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1441 echo "${ECHO_T}$ac_ct_CC" >&6
1442 else
1443   echo "$as_me:$LINENO: result: no" >&5
1444 echo "${ECHO_T}no" >&6
1445 fi
1446
1447   CC=$ac_ct_CC
1448 else
1449   CC="$ac_cv_prog_CC"
1450 fi
1451
1452 fi
1453 if test -z "$CC"; then
1454   # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_CC+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   if test -n "$CC"; then
1462   ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else
1464   ac_prog_rejected=no
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468   IFS=$as_save_IFS
1469   test -z "$as_dir" && as_dir=.
1470   for ac_exec_ext in '' $ac_executable_extensions; do
1471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1473        ac_prog_rejected=yes
1474        continue
1475      fi
1476     ac_cv_prog_CC="cc"
1477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478     break 2
1479   fi
1480 done
1481 done
1482
1483 if test $ac_prog_rejected = yes; then
1484   # We found a bogon in the path, so make sure we never use it.
1485   set dummy $ac_cv_prog_CC
1486   shift
1487   if test $# != 0; then
1488     # We chose a different compiler from the bogus one.
1489     # However, it has the same basename, so the bogon will be chosen
1490     # first if we set CC to just the basename; use the full file name.
1491     shift
1492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1493   fi
1494 fi
1495 fi
1496 fi
1497 CC=$ac_cv_prog_CC
1498 if test -n "$CC"; then
1499   echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1501 else
1502   echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1504 fi
1505
1506 fi
1507 if test -z "$CC"; then
1508   if test -n "$ac_tool_prefix"; then
1509   for ac_prog in cl
1510   do
1511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516   echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518   if test -n "$CC"; then
1519   ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   for ac_exec_ext in '' $ac_executable_extensions; do
1527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531   fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539   echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542   echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546     test -n "$CC" && break
1547   done
1548 fi
1549 if test -z "$CC"; then
1550   ac_ct_CC=$CC
1551   for ac_prog in cl
1552 do
1553   # Extract the first word of "$ac_prog", so it can be a program name with args.
1554 set dummy $ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$ac_ct_CC"; then
1561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_ac_ct_CC="$ac_prog"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   test -n "$ac_ct_CC" && break
1589 done
1590
1591   CC=$ac_ct_CC
1592 fi
1593
1594 fi
1595
1596
1597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1598 See \`config.log' for more details." >&5
1599 echo "$as_me: error: no acceptable C compiler found in \$PATH
1600 See \`config.log' for more details." >&2;}
1601    { (exit 1); exit 1; }; }
1602
1603 # Provide some information about the compiler.
1604 echo "$as_me:$LINENO:" \
1605      "checking for C compiler version" >&5
1606 ac_compiler=`set X $ac_compile; echo $2`
1607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1608   (eval $ac_compiler --version </dev/null >&5) 2>&5
1609   ac_status=$?
1610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611   (exit $ac_status); }
1612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1613   (eval $ac_compiler -v </dev/null >&5) 2>&5
1614   ac_status=$?
1615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616   (exit $ac_status); }
1617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1618   (eval $ac_compiler -V </dev/null >&5) 2>&5
1619   ac_status=$?
1620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621   (exit $ac_status); }
1622
1623 cat >conftest.$ac_ext <<_ACEOF
1624 /* confdefs.h.  */
1625 _ACEOF
1626 cat confdefs.h >>conftest.$ac_ext
1627 cat >>conftest.$ac_ext <<_ACEOF
1628 /* end confdefs.h.  */
1629
1630 int
1631 main ()
1632 {
1633
1634   ;
1635   return 0;
1636 }
1637 _ACEOF
1638 ac_clean_files_save=$ac_clean_files
1639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1640 # Try to create an executable without -o first, disregard a.out.
1641 # It will help us diagnose broken compilers, and finding out an intuition
1642 # of exeext.
1643 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1646 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1647   (eval $ac_link_default) 2>&5
1648   ac_status=$?
1649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650   (exit $ac_status); }; then
1651   # Find the output, starting from the most likely.  This scheme is
1652 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1653 # resort.
1654
1655 # Be careful to initialize this variable, since it used to be cached.
1656 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1657 ac_cv_exeext=
1658 # b.out is created by i960 compilers.
1659 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1660 do
1661   test -f "$ac_file" || continue
1662   case $ac_file in
1663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1664         ;;
1665     conftest.$ac_ext )
1666         # This is the source file.
1667         ;;
1668     [ab].out )
1669         # We found the default executable, but exeext='' is most
1670         # certainly right.
1671         break;;
1672     *.* )
1673         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1674         # FIXME: I believe we export ac_cv_exeext for Libtool,
1675         # but it would be cool to find out if it's true.  Does anybody
1676         # maintain Libtool? --akim.
1677         export ac_cv_exeext
1678         break;;
1679     * )
1680         break;;
1681   esac
1682 done
1683 else
1684   echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1688 See \`config.log' for more details." >&5
1689 echo "$as_me: error: C compiler cannot create executables
1690 See \`config.log' for more details." >&2;}
1691    { (exit 77); exit 77; }; }
1692 fi
1693
1694 ac_exeext=$ac_cv_exeext
1695 echo "$as_me:$LINENO: result: $ac_file" >&5
1696 echo "${ECHO_T}$ac_file" >&6
1697
1698 # Check the compiler produces executables we can run.  If not, either
1699 # the compiler is broken, or we cross compile.
1700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1703 # If not cross compiling, check that we can run a simple program.
1704 if test "$cross_compiling" != yes; then
1705   if { ac_try='./$ac_file'
1706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1707   (eval $ac_try) 2>&5
1708   ac_status=$?
1709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710   (exit $ac_status); }; }; then
1711     cross_compiling=no
1712   else
1713     if test "$cross_compiling" = maybe; then
1714         cross_compiling=yes
1715     else
1716         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1717 If you meant to cross compile, use \`--host'.
1718 See \`config.log' for more details." >&5
1719 echo "$as_me: error: cannot run C compiled programs.
1720 If you meant to cross compile, use \`--host'.
1721 See \`config.log' for more details." >&2;}
1722    { (exit 1); exit 1; }; }
1723     fi
1724   fi
1725 fi
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1728
1729 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1730 ac_clean_files=$ac_clean_files_save
1731 # Check the compiler produces executables we can run.  If not, either
1732 # the compiler is broken, or we cross compile.
1733 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1734 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1735 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1736 echo "${ECHO_T}$cross_compiling" >&6
1737
1738 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1739 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1741   (eval $ac_link) 2>&5
1742   ac_status=$?
1743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744   (exit $ac_status); }; then
1745   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1746 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1747 # work properly (i.e., refer to `conftest.exe'), while it won't with
1748 # `rm'.
1749 for ac_file in conftest.exe conftest conftest.*; do
1750   test -f "$ac_file" || continue
1751   case $ac_file in
1752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1753     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1754           export ac_cv_exeext
1755           break;;
1756     * ) break;;
1757   esac
1758 done
1759 else
1760   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1761 See \`config.log' for more details." >&5
1762 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1763 See \`config.log' for more details." >&2;}
1764    { (exit 1); exit 1; }; }
1765 fi
1766
1767 rm -f conftest$ac_cv_exeext
1768 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1769 echo "${ECHO_T}$ac_cv_exeext" >&6
1770
1771 rm -f conftest.$ac_ext
1772 EXEEXT=$ac_cv_exeext
1773 ac_exeext=$EXEEXT
1774 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1775 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1776 if test "${ac_cv_objext+set}" = set; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   cat >conftest.$ac_ext <<_ACEOF
1780 /* confdefs.h.  */
1781 _ACEOF
1782 cat confdefs.h >>conftest.$ac_ext
1783 cat >>conftest.$ac_ext <<_ACEOF
1784 /* end confdefs.h.  */
1785
1786 int
1787 main ()
1788 {
1789
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 rm -f conftest.o conftest.obj
1795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1796   (eval $ac_compile) 2>&5
1797   ac_status=$?
1798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1799   (exit $ac_status); }; then
1800   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1801   case $ac_file in
1802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1803     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1804        break;;
1805   esac
1806 done
1807 else
1808   echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1814 See \`config.log' for more details." >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817
1818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1819 fi
1820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1821 echo "${ECHO_T}$ac_cv_objext" >&6
1822 OBJEXT=$ac_cv_objext
1823 ac_objext=$OBJEXT
1824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1827   echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829   cat >conftest.$ac_ext <<_ACEOF
1830 /* confdefs.h.  */
1831 _ACEOF
1832 cat confdefs.h >>conftest.$ac_ext
1833 cat >>conftest.$ac_ext <<_ACEOF
1834 /* end confdefs.h.  */
1835
1836 int
1837 main ()
1838 {
1839 #ifndef __GNUC__
1840        choke me
1841 #endif
1842
1843   ;
1844   return 0;
1845 }
1846 _ACEOF
1847 rm -f conftest.$ac_objext
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849   (eval $ac_compile) 2>conftest.er1
1850   ac_status=$?
1851   grep -v '^ *+' conftest.er1 >conftest.err
1852   rm -f conftest.er1
1853   cat conftest.err >&5
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); } &&
1856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1858   (eval $ac_try) 2>&5
1859   ac_status=$?
1860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861   (exit $ac_status); }; } &&
1862          { ac_try='test -s conftest.$ac_objext'
1863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864   (eval $ac_try) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }; }; then
1868   ac_compiler_gnu=yes
1869 else
1870   echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_compiler_gnu=no
1874 fi
1875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1877
1878 fi
1879 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1881 GCC=`test $ac_compiler_gnu = yes && echo yes`
1882 ac_test_CFLAGS=${CFLAGS+set}
1883 ac_save_CFLAGS=$CFLAGS
1884 CFLAGS="-g"
1885 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1887 if test "${ac_cv_prog_cc_g+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   cat >conftest.$ac_ext <<_ACEOF
1891 /* confdefs.h.  */
1892 _ACEOF
1893 cat confdefs.h >>conftest.$ac_ext
1894 cat >>conftest.$ac_ext <<_ACEOF
1895 /* end confdefs.h.  */
1896
1897 int
1898 main ()
1899 {
1900
1901   ;
1902   return 0;
1903 }
1904 _ACEOF
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907   (eval $ac_compile) 2>conftest.er1
1908   ac_status=$?
1909   grep -v '^ *+' conftest.er1 >conftest.err
1910   rm -f conftest.er1
1911   cat conftest.err >&5
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); } &&
1914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916   (eval $ac_try) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }; } &&
1920          { ac_try='test -s conftest.$ac_objext'
1921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1922   (eval $ac_try) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; }; then
1926   ac_cv_prog_cc_g=yes
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_cv_prog_cc_g=no
1932 fi
1933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1936 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1937 if test "$ac_test_CFLAGS" = set; then
1938   CFLAGS=$ac_save_CFLAGS
1939 elif test $ac_cv_prog_cc_g = yes; then
1940   if test "$GCC" = yes; then
1941     CFLAGS="-g -O2"
1942   else
1943     CFLAGS="-g"
1944   fi
1945 else
1946   if test "$GCC" = yes; then
1947     CFLAGS="-O2"
1948   else
1949     CFLAGS=
1950   fi
1951 fi
1952 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1953 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   ac_cv_prog_cc_stdc=no
1958 ac_save_CC=$CC
1959 cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h.  */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h.  */
1965 #include <stdarg.h>
1966 #include <stdio.h>
1967 #include <sys/types.h>
1968 #include <sys/stat.h>
1969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1970 struct buf { int x; };
1971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1972 static char *e (p, i)
1973      char **p;
1974      int i;
1975 {
1976   return p[i];
1977 }
1978 static char *f (char * (*g) (char **, int), char **p, ...)
1979 {
1980   char *s;
1981   va_list v;
1982   va_start (v,p);
1983   s = g (p, va_arg (v,int));
1984   va_end (v);
1985   return s;
1986 }
1987
1988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1989    function prototypes and stuff, but not '\xHH' hex character constants.
1990    These don't provoke an error unfortunately, instead are silently treated
1991    as 'x'.  The following induces an error, until -std1 is added to get
1992    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1993    array size at least.  It's necessary to write '\x00'==0 to get something
1994    that's true only with -std1.  */
1995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1996
1997 int test (int i, double x);
1998 struct s1 {int (*f) (int a);};
1999 struct s2 {int (*f) (double a);};
2000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2001 int argc;
2002 char **argv;
2003 int
2004 main ()
2005 {
2006 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 # Don't try gcc -ansi; that turns off useful extensions and
2012 # breaks some systems' header files.
2013 # AIX                   -qlanglvl=ansi
2014 # Ultrix and OSF/1      -std1
2015 # HP-UX 10.20 and later -Ae
2016 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2017 # SVR4                  -Xc -D__EXTENSIONS__
2018 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2019 do
2020   CC="$ac_save_CC $ac_arg"
2021   rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023   (eval $ac_compile) 2>conftest.er1
2024   ac_status=$?
2025   grep -v '^ *+' conftest.er1 >conftest.err
2026   rm -f conftest.er1
2027   cat conftest.err >&5
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); } &&
2030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032   (eval $ac_try) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_cv_prog_cc_stdc=$ac_arg
2043 break
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 fi
2049 rm -f conftest.err conftest.$ac_objext
2050 done
2051 rm -f conftest.$ac_ext conftest.$ac_objext
2052 CC=$ac_save_CC
2053
2054 fi
2055
2056 case "x$ac_cv_prog_cc_stdc" in
2057   x|xno)
2058     echo "$as_me:$LINENO: result: none needed" >&5
2059 echo "${ECHO_T}none needed" >&6 ;;
2060   *)
2061     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2062 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2063     CC="$CC $ac_cv_prog_cc_stdc" ;;
2064 esac
2065
2066 # Some people use a C++ compiler to compile C.  Since we use `exit',
2067 # in C++ we need to declare it.  In case someone uses the same compiler
2068 # for both compiling C and C++ we need to have the C++ compiler decide
2069 # the declaration of exit, since it's the most demanding environment.
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #ifndef __cplusplus
2072   choke me
2073 #endif
2074 _ACEOF
2075 rm -f conftest.$ac_objext
2076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077   (eval $ac_compile) 2>conftest.er1
2078   ac_status=$?
2079   grep -v '^ *+' conftest.er1 >conftest.err
2080   rm -f conftest.er1
2081   cat conftest.err >&5
2082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083   (exit $ac_status); } &&
2084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   for ac_declaration in \
2097    '' \
2098    'extern "C" void std::exit (int) throw (); using std::exit;' \
2099    'extern "C" void std::exit (int); using std::exit;' \
2100    'extern "C" void exit (int) throw ();' \
2101    'extern "C" void exit (int);' \
2102    'void exit (int);'
2103 do
2104   cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110 $ac_declaration
2111 #include <stdlib.h>
2112 int
2113 main ()
2114 {
2115 exit (42);
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122   (eval $ac_compile) 2>conftest.er1
2123   ac_status=$?
2124   grep -v '^ *+' conftest.er1 >conftest.err
2125   rm -f conftest.er1
2126   cat conftest.err >&5
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); } &&
2129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131   (eval $ac_try) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; } &&
2135          { ac_try='test -s conftest.$ac_objext'
2136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137   (eval $ac_try) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; }; then
2141   :
2142 else
2143   echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146 continue
2147 fi
2148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2149   cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155 $ac_declaration
2156 int
2157 main ()
2158 {
2159 exit (42);
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 rm -f conftest.$ac_objext
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166   (eval $ac_compile) 2>conftest.er1
2167   ac_status=$?
2168   grep -v '^ *+' conftest.er1 >conftest.err
2169   rm -f conftest.er1
2170   cat conftest.err >&5
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); } &&
2173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   break
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 fi
2191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 rm -f conftest*
2194 if test -n "$ac_declaration"; then
2195   echo '#ifdef __cplusplus' >>confdefs.h
2196   echo $ac_declaration      >>confdefs.h
2197   echo '#endif'             >>confdefs.h
2198 fi
2199
2200 else
2201   echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 fi
2205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211
2212 if test -n "$ac_tool_prefix"; then
2213   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}ar; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_AR+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test -n "$AR"; then
2221   ac_cv_prog_AR="$AR" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226   IFS=$as_save_IFS
2227   test -z "$as_dir" && as_dir=.
2228   for ac_exec_ext in '' $ac_executable_extensions; do
2229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230     ac_cv_prog_AR="${ac_tool_prefix}ar"
2231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232     break 2
2233   fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 AR=$ac_cv_prog_AR
2240 if test -n "$AR"; then
2241   echo "$as_me:$LINENO: result: $AR" >&5
2242 echo "${ECHO_T}$AR" >&6
2243 else
2244   echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 fi
2249 if test -z "$ac_cv_prog_AR"; then
2250   ac_ct_AR=$AR
2251   # Extract the first word of "ar", so it can be a program name with args.
2252 set dummy ar; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$ac_ct_AR"; then
2259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268     ac_cv_prog_ac_ct_AR="ar"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274
2275 fi
2276 fi
2277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2278 if test -n "$ac_ct_AR"; then
2279   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2280 echo "${ECHO_T}$ac_ct_AR" >&6
2281 else
2282   echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286   AR=$ac_ct_AR
2287 else
2288   AR="$ac_cv_prog_AR"
2289 fi
2290
2291 if test -n "$ac_tool_prefix"; then
2292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_RANLIB+set}" = set; then
2297   echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299   if test -n "$RANLIB"; then
2300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315
2316 fi
2317 fi
2318 RANLIB=$ac_cv_prog_RANLIB
2319 if test -n "$RANLIB"; then
2320   echo "$as_me:$LINENO: result: $RANLIB" >&5
2321 echo "${ECHO_T}$RANLIB" >&6
2322 else
2323   echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$ac_cv_prog_RANLIB"; then
2329   ac_ct_RANLIB=$RANLIB
2330   # Extract the first word of "ranlib", so it can be a program name with args.
2331 set dummy ranlib; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_RANLIB"; then
2338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_ac_ct_RANLIB="ranlib"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2355 fi
2356 fi
2357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2358 if test -n "$ac_ct_RANLIB"; then
2359   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2360 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2361 else
2362   echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366   RANLIB=$ac_ct_RANLIB
2367 else
2368   RANLIB="$ac_cv_prog_RANLIB"
2369 fi
2370
2371
2372
2373 ac_ext=c
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2380 # On Suns, sometimes $CPP names a directory.
2381 if test -n "$CPP" && test -d "$CPP"; then
2382   CPP=
2383 fi
2384 if test -z "$CPP"; then
2385   if test "${ac_cv_prog_CPP+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388       # Double quotes because CPP needs to be expanded
2389     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2390     do
2391       ac_preproc_ok=false
2392 for ac_c_preproc_warn_flag in '' yes
2393 do
2394   # Use a header file that comes with gcc, so configuring glibc
2395   # with a fresh cross-compiler works.
2396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2397   # <limits.h> exists even on freestanding compilers.
2398   # On the NeXT, cc -E runs the code through the compiler's parser,
2399   # not just through cpp. "Syntax error" is here to catch this case.
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 #ifdef __STDC__
2407 # include <limits.h>
2408 #else
2409 # include <assert.h>
2410 #endif
2411                      Syntax error
2412 _ACEOF
2413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2415   ac_status=$?
2416   grep -v '^ *+' conftest.er1 >conftest.err
2417   rm -f conftest.er1
2418   cat conftest.err >&5
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); } >/dev/null; then
2421   if test -s conftest.err; then
2422     ac_cpp_err=$ac_c_preproc_warn_flag
2423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2424   else
2425     ac_cpp_err=
2426   fi
2427 else
2428   ac_cpp_err=yes
2429 fi
2430 if test -z "$ac_cpp_err"; then
2431   :
2432 else
2433   echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436   # Broken: fails on valid input.
2437 continue
2438 fi
2439 rm -f conftest.err conftest.$ac_ext
2440
2441   # OK, works on sane cases.  Now check whether non-existent headers
2442   # can be detected and how.
2443   cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449 #include <ac_nonexistent.h>
2450 _ACEOF
2451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2453   ac_status=$?
2454   grep -v '^ *+' conftest.er1 >conftest.err
2455   rm -f conftest.er1
2456   cat conftest.err >&5
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); } >/dev/null; then
2459   if test -s conftest.err; then
2460     ac_cpp_err=$ac_c_preproc_warn_flag
2461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2462   else
2463     ac_cpp_err=
2464   fi
2465 else
2466   ac_cpp_err=yes
2467 fi
2468 if test -z "$ac_cpp_err"; then
2469   # Broken: success on invalid input.
2470 continue
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475   # Passes both tests.
2476 ac_preproc_ok=:
2477 break
2478 fi
2479 rm -f conftest.err conftest.$ac_ext
2480
2481 done
2482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2483 rm -f conftest.err conftest.$ac_ext
2484 if $ac_preproc_ok; then
2485   break
2486 fi
2487
2488     done
2489     ac_cv_prog_CPP=$CPP
2490
2491 fi
2492   CPP=$ac_cv_prog_CPP
2493 else
2494   ac_cv_prog_CPP=$CPP
2495 fi
2496 echo "$as_me:$LINENO: result: $CPP" >&5
2497 echo "${ECHO_T}$CPP" >&6
2498 ac_preproc_ok=false
2499 for ac_c_preproc_warn_flag in '' yes
2500 do
2501   # Use a header file that comes with gcc, so configuring glibc
2502   # with a fresh cross-compiler works.
2503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2504   # <limits.h> exists even on freestanding compilers.
2505   # On the NeXT, cc -E runs the code through the compiler's parser,
2506   # not just through cpp. "Syntax error" is here to catch this case.
2507   cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513 #ifdef __STDC__
2514 # include <limits.h>
2515 #else
2516 # include <assert.h>
2517 #endif
2518                      Syntax error
2519 _ACEOF
2520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2522   ac_status=$?
2523   grep -v '^ *+' conftest.er1 >conftest.err
2524   rm -f conftest.er1
2525   cat conftest.err >&5
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } >/dev/null; then
2528   if test -s conftest.err; then
2529     ac_cpp_err=$ac_c_preproc_warn_flag
2530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2531   else
2532     ac_cpp_err=
2533   fi
2534 else
2535   ac_cpp_err=yes
2536 fi
2537 if test -z "$ac_cpp_err"; then
2538   :
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543   # Broken: fails on valid input.
2544 continue
2545 fi
2546 rm -f conftest.err conftest.$ac_ext
2547
2548   # OK, works on sane cases.  Now check whether non-existent headers
2549   # can be detected and how.
2550   cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556 #include <ac_nonexistent.h>
2557 _ACEOF
2558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } >/dev/null; then
2566   if test -s conftest.err; then
2567     ac_cpp_err=$ac_c_preproc_warn_flag
2568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2569   else
2570     ac_cpp_err=
2571   fi
2572 else
2573   ac_cpp_err=yes
2574 fi
2575 if test -z "$ac_cpp_err"; then
2576   # Broken: success on invalid input.
2577 continue
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582   # Passes both tests.
2583 ac_preproc_ok=:
2584 break
2585 fi
2586 rm -f conftest.err conftest.$ac_ext
2587
2588 done
2589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2590 rm -f conftest.err conftest.$ac_ext
2591 if $ac_preproc_ok; then
2592   :
2593 else
2594   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2597 See \`config.log' for more details." >&2;}
2598    { (exit 1); exit 1; }; }
2599 fi
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608 echo "$as_me:$LINENO: checking for egrep" >&5
2609 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2610 if test "${ac_cv_prog_egrep+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2614     then ac_cv_prog_egrep='grep -E'
2615     else ac_cv_prog_egrep='egrep'
2616     fi
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2619 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2620  EGREP=$ac_cv_prog_egrep
2621
2622
2623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2625 if test "${ac_cv_header_stdc+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <stdlib.h>
2635 #include <stdarg.h>
2636 #include <string.h>
2637 #include <float.h>
2638
2639 int
2640 main ()
2641 {
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_cv_header_stdc=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_cv_header_stdc=no
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676
2677 if test $ac_cv_header_stdc = yes; then
2678   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2679   cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685 #include <string.h>
2686
2687 _ACEOF
2688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2689   $EGREP "memchr" >/dev/null 2>&1; then
2690   :
2691 else
2692   ac_cv_header_stdc=no
2693 fi
2694 rm -f conftest*
2695
2696 fi
2697
2698 if test $ac_cv_header_stdc = yes; then
2699   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <stdlib.h>
2707
2708 _ACEOF
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710   $EGREP "free" >/dev/null 2>&1; then
2711   :
2712 else
2713   ac_cv_header_stdc=no
2714 fi
2715 rm -f conftest*
2716
2717 fi
2718
2719 if test $ac_cv_header_stdc = yes; then
2720   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2721   if test "$cross_compiling" = yes; then
2722   :
2723 else
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 #include <ctype.h>
2731 #if ((' ' & 0x0FF) == 0x020)
2732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2734 #else
2735 # define ISLOWER(c) \
2736                    (('a' <= (c) && (c) <= 'i') \
2737                      || ('j' <= (c) && (c) <= 'r') \
2738                      || ('s' <= (c) && (c) <= 'z'))
2739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2740 #endif
2741
2742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2743 int
2744 main ()
2745 {
2746   int i;
2747   for (i = 0; i < 256; i++)
2748     if (XOR (islower (i), ISLOWER (i))
2749         || toupper (i) != TOUPPER (i))
2750       exit(2);
2751   exit (0);
2752 }
2753 _ACEOF
2754 rm -f conftest$ac_exeext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2756   (eval $ac_link) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   :
2766 else
2767   echo "$as_me: program exited with status $ac_status" >&5
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ( exit $ac_status )
2772 ac_cv_header_stdc=no
2773 fi
2774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2775 fi
2776 fi
2777 fi
2778 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2779 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2780 if test $ac_cv_header_stdc = yes; then
2781
2782 cat >>confdefs.h <<\_ACEOF
2783 #define STDC_HEADERS 1
2784 _ACEOF
2785
2786 fi
2787
2788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2799                   inttypes.h stdint.h unistd.h
2800 do
2801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2802 echo "$as_me:$LINENO: checking for $ac_header" >&5
2803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813 $ac_includes_default
2814
2815 #include <$ac_header>
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819   (eval $ac_compile) 2>conftest.er1
2820   ac_status=$?
2821   grep -v '^ *+' conftest.er1 >conftest.err
2822   rm -f conftest.er1
2823   cat conftest.err >&5
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); } &&
2826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; } &&
2832          { ac_try='test -s conftest.$ac_objext'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838   eval "$as_ac_Header=yes"
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 eval "$as_ac_Header=no"
2844 fi
2845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2846 fi
2847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2850   cat >>confdefs.h <<_ACEOF
2851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2852 _ACEOF
2853
2854 fi
2855
2856 done
2857
2858
2859
2860
2861 for ac_header in stdlib.h unistd.h
2862 do
2863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2865   echo "$as_me:$LINENO: checking for $ac_header" >&5
2866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 fi
2870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2872 else
2873   # Is the header compilable?
2874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h.  */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h.  */
2882 $ac_includes_default
2883 #include <$ac_header>
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   ac_header_compiler=yes
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 ac_header_compiler=no
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2915 echo "${ECHO_T}$ac_header_compiler" >&6
2916
2917 # Is the header present?
2918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926 #include <$ac_header>
2927 _ACEOF
2928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } >/dev/null; then
2936   if test -s conftest.err; then
2937     ac_cpp_err=$ac_c_preproc_warn_flag
2938     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939   else
2940     ac_cpp_err=
2941   fi
2942 else
2943   ac_cpp_err=yes
2944 fi
2945 if test -z "$ac_cpp_err"; then
2946   ac_header_preproc=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951   ac_header_preproc=no
2952 fi
2953 rm -f conftest.err conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2955 echo "${ECHO_T}$ac_header_preproc" >&6
2956
2957 # So?  What about this header?
2958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2959   yes:no: )
2960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2964     ac_header_preproc=yes
2965     ;;
2966   no:yes:* )
2967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
2970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
2971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
2974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
2975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2979     (
2980       cat <<\_ASBOX
2981 ## ------------------------------------------ ##
2982 ## Report this to the AC_PACKAGE_NAME lists.  ##
2983 ## ------------------------------------------ ##
2984 _ASBOX
2985     ) |
2986       sed "s/^/$as_me: WARNING:     /" >&2
2987     ;;
2988 esac
2989 echo "$as_me:$LINENO: checking for $ac_header" >&5
2990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   eval "$as_ac_Header=\$ac_header_preproc"
2995 fi
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998
2999 fi
3000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3001   cat >>confdefs.h <<_ACEOF
3002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3003 _ACEOF
3004
3005 fi
3006
3007 done
3008
3009
3010 for ac_func in getpagesize
3011 do
3012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3013 echo "$as_me:$LINENO: checking for $ac_func" >&5
3014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3015 if eval "test \"\${$as_ac_var+set}\" = set"; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3026 #define $ac_func innocuous_$ac_func
3027
3028 /* System header to define __stub macros and hopefully few prototypes,
3029     which can conflict with char $ac_func (); below.
3030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031     <limits.h> exists even on freestanding compilers.  */
3032
3033 #ifdef __STDC__
3034 # include <limits.h>
3035 #else
3036 # include <assert.h>
3037 #endif
3038
3039 #undef $ac_func
3040
3041 /* Override any gcc2 internal prototype to avoid an error.  */
3042 #ifdef __cplusplus
3043 extern "C"
3044 {
3045 #endif
3046 /* We use char because int might match the return type of a gcc2
3047    builtin and then its argument prototype would still apply.  */
3048 char $ac_func ();
3049 /* The GNU C library defines this for functions which it implements
3050     to always fail with ENOSYS.  Some functions are actually named
3051     something starting with __ and the normal name is an alias.  */
3052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3053 choke me
3054 #else
3055 char (*f) () = $ac_func;
3056 #endif
3057 #ifdef __cplusplus
3058 }
3059 #endif
3060
3061 int
3062 main ()
3063 {
3064 return f != $ac_func;
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext conftest$ac_exeext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071   (eval $ac_link) 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest$ac_exeext'
3085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   eval "$as_ac_var=yes"
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 eval "$as_ac_var=no"
3096 fi
3097 rm -f conftest.err conftest.$ac_objext \
3098       conftest$ac_exeext conftest.$ac_ext
3099 fi
3100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3102 if test `eval echo '${'$as_ac_var'}'` = yes; then
3103   cat >>confdefs.h <<_ACEOF
3104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3105 _ACEOF
3106
3107 fi
3108 done
3109
3110 echo "$as_me:$LINENO: checking for working mmap" >&5
3111 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3112 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   if test "$cross_compiling" = yes; then
3116   ac_cv_func_mmap_fixed_mapped=no
3117 else
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 $ac_includes_default
3125 /* malloc might have been renamed as rpl_malloc. */
3126 #undef malloc
3127
3128 /* Thanks to Mike Haertel and Jim Avera for this test.
3129    Here is a matrix of mmap possibilities:
3130         mmap private not fixed
3131         mmap private fixed at somewhere currently unmapped
3132         mmap private fixed at somewhere already mapped
3133         mmap shared not fixed
3134         mmap shared fixed at somewhere currently unmapped
3135         mmap shared fixed at somewhere already mapped
3136    For private mappings, we should verify that changes cannot be read()
3137    back from the file, nor mmap's back from the file at a different
3138    address.  (There have been systems where private was not correctly
3139    implemented like the infamous i386 svr4.0, and systems where the
3140    VM page cache was not coherent with the file system buffer cache
3141    like early versions of FreeBSD and possibly contemporary NetBSD.)
3142    For shared mappings, we should conversely verify that changes get
3143    propagated back to all the places they're supposed to be.
3144
3145    Grep wants private fixed already mapped.
3146    The main things grep needs to know about mmap are:
3147    * does it exist and is it safe to write into the mmap'd area
3148    * how to use it (BSD variants)  */
3149
3150 #include <fcntl.h>
3151 #include <sys/mman.h>
3152
3153 #if !STDC_HEADERS && !HAVE_STDLIB_H
3154 char *malloc ();
3155 #endif
3156
3157 /* This mess was copied from the GNU getpagesize.h.  */
3158 #if !HAVE_GETPAGESIZE
3159 /* Assume that all systems that can run configure have sys/param.h.  */
3160 # if !HAVE_SYS_PARAM_H
3161 #  define HAVE_SYS_PARAM_H 1
3162 # endif
3163
3164 # ifdef _SC_PAGESIZE
3165 #  define getpagesize() sysconf(_SC_PAGESIZE)
3166 # else /* no _SC_PAGESIZE */
3167 #  if HAVE_SYS_PARAM_H
3168 #   include <sys/param.h>
3169 #   ifdef EXEC_PAGESIZE
3170 #    define getpagesize() EXEC_PAGESIZE
3171 #   else /* no EXEC_PAGESIZE */
3172 #    ifdef NBPG
3173 #     define getpagesize() NBPG * CLSIZE
3174 #     ifndef CLSIZE
3175 #      define CLSIZE 1
3176 #     endif /* no CLSIZE */
3177 #    else /* no NBPG */
3178 #     ifdef NBPC
3179 #      define getpagesize() NBPC
3180 #     else /* no NBPC */
3181 #      ifdef PAGESIZE
3182 #       define getpagesize() PAGESIZE
3183 #      endif /* PAGESIZE */
3184 #     endif /* no NBPC */
3185 #    endif /* no NBPG */
3186 #   endif /* no EXEC_PAGESIZE */
3187 #  else /* no HAVE_SYS_PARAM_H */
3188 #   define getpagesize() 8192   /* punt totally */
3189 #  endif /* no HAVE_SYS_PARAM_H */
3190 # endif /* no _SC_PAGESIZE */
3191
3192 #endif /* no HAVE_GETPAGESIZE */
3193
3194 int
3195 main ()
3196 {
3197   char *data, *data2, *data3;
3198   int i, pagesize;
3199   int fd;
3200
3201   pagesize = getpagesize ();
3202
3203   /* First, make a file with some known garbage in it. */
3204   data = (char *) malloc (pagesize);
3205   if (!data)
3206     exit (1);
3207   for (i = 0; i < pagesize; ++i)
3208     *(data + i) = rand ();
3209   umask (0);
3210   fd = creat ("conftest.mmap", 0600);
3211   if (fd < 0)
3212     exit (1);
3213   if (write (fd, data, pagesize) != pagesize)
3214     exit (1);
3215   close (fd);
3216
3217   /* Next, try to mmap the file at a fixed address which already has
3218      something else allocated at it.  If we can, also make sure that
3219      we see the same garbage.  */
3220   fd = open ("conftest.mmap", O_RDWR);
3221   if (fd < 0)
3222     exit (1);
3223   data2 = (char *) malloc (2 * pagesize);
3224   if (!data2)
3225     exit (1);
3226   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3227   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3228                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3229     exit (1);
3230   for (i = 0; i < pagesize; ++i)
3231     if (*(data + i) != *(data2 + i))
3232       exit (1);
3233
3234   /* Finally, make sure that changes to the mapped area do not
3235      percolate back to the file as seen by read().  (This is a bug on
3236      some variants of i386 svr4.0.)  */
3237   for (i = 0; i < pagesize; ++i)
3238     *(data2 + i) = *(data2 + i) + 1;
3239   data3 = (char *) malloc (pagesize);
3240   if (!data3)
3241     exit (1);
3242   if (read (fd, data3, pagesize) != pagesize)
3243     exit (1);
3244   for (i = 0; i < pagesize; ++i)
3245     if (*(data + i) != *(data3 + i))
3246       exit (1);
3247   close (fd);
3248   exit (0);
3249 }
3250 _ACEOF
3251 rm -f conftest$ac_exeext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253   (eval $ac_link) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_func_mmap_fixed_mapped=yes
3263 else
3264   echo "$as_me: program exited with status $ac_status" >&5
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ( exit $ac_status )
3269 ac_cv_func_mmap_fixed_mapped=no
3270 fi
3271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3272 fi
3273 fi
3274 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3275 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3276 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3277
3278 cat >>confdefs.h <<\_ACEOF
3279 #define HAVE_MMAP 1
3280 _ACEOF
3281
3282 fi
3283 rm -f conftest.mmap
3284
3285
3286
3287
3288 for ac_header in limits.h stddef.h unistd.h
3289 do
3290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3292   echo "$as_me:$LINENO: checking for $ac_header" >&5
3293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 fi
3297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3299 else
3300   # Is the header compilable?
3301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 $ac_includes_default
3310 #include <$ac_header>
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314   (eval $ac_compile) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } &&
3321          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; } &&
3327          { ac_try='test -s conftest.$ac_objext'
3328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329   (eval $ac_try) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; }; then
3333   ac_header_compiler=yes
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 ac_header_compiler=no
3339 fi
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3342 echo "${ECHO_T}$ac_header_compiler" >&6
3343
3344 # Is the header present?
3345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #include <$ac_header>
3354 _ACEOF
3355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } >/dev/null; then
3363   if test -s conftest.err; then
3364     ac_cpp_err=$ac_c_preproc_warn_flag
3365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3366   else
3367     ac_cpp_err=
3368   fi
3369 else
3370   ac_cpp_err=yes
3371 fi
3372 if test -z "$ac_cpp_err"; then
3373   ac_header_preproc=yes
3374 else
3375   echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378   ac_header_preproc=no
3379 fi
3380 rm -f conftest.err conftest.$ac_ext
3381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3382 echo "${ECHO_T}$ac_header_preproc" >&6
3383
3384 # So?  What about this header?
3385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3386   yes:no: )
3387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3391     ac_header_preproc=yes
3392     ;;
3393   no:yes:* )
3394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3406     (
3407       cat <<\_ASBOX
3408 ## ------------------------------------------ ##
3409 ## Report this to the AC_PACKAGE_NAME lists.  ##
3410 ## ------------------------------------------ ##
3411 _ASBOX
3412     ) |
3413       sed "s/^/$as_me: WARNING:     /" >&2
3414     ;;
3415 esac
3416 echo "$as_me:$LINENO: checking for $ac_header" >&5
3417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   eval "$as_ac_Header=\$ac_header_preproc"
3422 fi
3423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3425
3426 fi
3427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3428   cat >>confdefs.h <<_ACEOF
3429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 _ACEOF
3431
3432 fi
3433
3434 done
3435
3436
3437
3438           ac_config_files="$ac_config_files Makefile"
3439 cat >confcache <<\_ACEOF
3440 # This file is a shell script that caches the results of configure
3441 # tests run on this system so they can be shared between configure
3442 # scripts and configure runs, see configure's option --config-cache.
3443 # It is not useful on other systems.  If it contains results you don't
3444 # want to keep, you may remove or edit it.
3445 #
3446 # config.status only pays attention to the cache file if you give it
3447 # the --recheck option to rerun configure.
3448 #
3449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3451 # following values.
3452
3453 _ACEOF
3454
3455 # The following way of writing the cache mishandles newlines in values,
3456 # but we know of no workaround that is simple, portable, and efficient.
3457 # So, don't put newlines in cache variables' values.
3458 # Ultrix sh set writes to stderr and can't be redirected directly,
3459 # and sets the high bit in the cache file unless we assign to the vars.
3460 {
3461   (set) 2>&1 |
3462     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3463     *ac_space=\ *)
3464       # `set' does not quote correctly, so add quotes (double-quote
3465       # substitution turns \\\\ into \\, and sed turns \\ into \).
3466       sed -n \
3467         "s/'/'\\\\''/g;
3468           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3469       ;;
3470     *)
3471       # `set' quotes correctly as required by POSIX, so do not add quotes.
3472       sed -n \
3473         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3474       ;;
3475     esac;
3476 } |
3477   sed '
3478      t clear
3479      : clear
3480      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3481      t end
3482      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3483      : end' >>confcache
3484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3485   if test -w $cache_file; then
3486     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3487     cat confcache >$cache_file
3488   else
3489     echo "not updating unwritable cache $cache_file"
3490   fi
3491 fi
3492 rm -f confcache
3493
3494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3495 # Let make expand exec_prefix.
3496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3497
3498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3500 # trailing colons and then remove the whole line if VPATH becomes empty
3501 # (actually we leave an empty line to preserve line numbers).
3502 if test "x$srcdir" = x.; then
3503   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3504 s/:*\$(srcdir):*/:/;
3505 s/:*\${srcdir}:*/:/;
3506 s/:*@srcdir@:*/:/;
3507 s/^\([^=]*=[     ]*\):*/\1/;
3508 s/:*$//;
3509 s/^[^=]*=[       ]*$//;
3510 }'
3511 fi
3512
3513 # Transform confdefs.h into DEFS.
3514 # Protect against shell expansion while executing Makefile rules.
3515 # Protect against Makefile macro expansion.
3516 #
3517 # If the first sed substitution is executed (which looks for macros that
3518 # take arguments), then we branch to the quote section.  Otherwise,
3519 # look for a macro that doesn't take arguments.
3520 cat >confdef2opt.sed <<\_ACEOF
3521 t clear
3522 : clear
3523 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3524 t quote
3525 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3526 t quote
3527 d
3528 : quote
3529 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3530 s,\[,\\&,g
3531 s,\],\\&,g
3532 s,\$,$$,g
3533 p
3534 _ACEOF
3535 # We use echo to avoid assuming a particular line-breaking character.
3536 # The extra dot is to prevent the shell from consuming trailing
3537 # line-breaks from the sub-command output.  A line-break within
3538 # single-quotes doesn't work because, if this script is created in a
3539 # platform that uses two characters for line-breaks (e.g., DOS), tr
3540 # would break.
3541 ac_LF_and_DOT=`echo; echo .`
3542 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3543 rm -f confdef2opt.sed
3544
3545
3546 ac_libobjs=
3547 ac_ltlibobjs=
3548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3549   # 1. Remove the extension, and $U if already installed.
3550   ac_i=`echo "$ac_i" |
3551          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3552   # 2. Add them.
3553   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3554   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3555 done
3556 LIBOBJS=$ac_libobjs
3557
3558 LTLIBOBJS=$ac_ltlibobjs
3559
3560
3561
3562 : ${CONFIG_STATUS=./config.status}
3563 ac_clean_files_save=$ac_clean_files
3564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3565 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3566 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3567 cat >$CONFIG_STATUS <<_ACEOF
3568 #! $SHELL
3569 # Generated by $as_me.
3570 # Run this file to recreate the current configuration.
3571 # Compiler output produced by configure, useful for debugging
3572 # configure, is in config.log if it exists.
3573
3574 debug=false
3575 ac_cs_recheck=false
3576 ac_cs_silent=false
3577 SHELL=\${CONFIG_SHELL-$SHELL}
3578 _ACEOF
3579
3580 cat >>$CONFIG_STATUS <<\_ACEOF
3581 ## --------------------- ##
3582 ## M4sh Initialization.  ##
3583 ## --------------------- ##
3584
3585 # Be Bourne compatible
3586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3587   emulate sh
3588   NULLCMD=:
3589   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3590   # is contrary to our usage.  Disable this feature.
3591   alias -g '${1+"$@"}'='"$@"'
3592 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3593   set -o posix
3594 fi
3595 DUALCASE=1; export DUALCASE # for MKS sh
3596
3597 # Support unset when possible.
3598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3599   as_unset=unset
3600 else
3601   as_unset=false
3602 fi
3603
3604
3605 # Work around bugs in pre-3.0 UWIN ksh.
3606 $as_unset ENV MAIL MAILPATH
3607 PS1='$ '
3608 PS2='> '
3609 PS4='+ '
3610
3611 # NLS nuisances.
3612 for as_var in \
3613   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3614   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3615   LC_TELEPHONE LC_TIME
3616 do
3617   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3618     eval $as_var=C; export $as_var
3619   else
3620     $as_unset $as_var
3621   fi
3622 done
3623
3624 # Required to use basename.
3625 if expr a : '\(a\)' >/dev/null 2>&1; then
3626   as_expr=expr
3627 else
3628   as_expr=false
3629 fi
3630
3631 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3632   as_basename=basename
3633 else
3634   as_basename=false
3635 fi
3636
3637
3638 # Name of the executable.
3639 as_me=`$as_basename "$0" ||
3640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3641          X"$0" : 'X\(//\)$' \| \
3642          X"$0" : 'X\(/\)$' \| \
3643          .     : '\(.\)' 2>/dev/null ||
3644 echo X/"$0" |
3645     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3646           /^X\/\(\/\/\)$/{ s//\1/; q; }
3647           /^X\/\(\/\).*/{ s//\1/; q; }
3648           s/.*/./; q'`
3649
3650
3651 # PATH needs CR, and LINENO needs CR and PATH.
3652 # Avoid depending upon Character Ranges.
3653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3656 as_cr_digits='0123456789'
3657 as_cr_alnum=$as_cr_Letters$as_cr_digits
3658
3659 # The user is always right.
3660 if test "${PATH_SEPARATOR+set}" != set; then
3661   echo "#! /bin/sh" >conf$$.sh
3662   echo  "exit 0"   >>conf$$.sh
3663   chmod +x conf$$.sh
3664   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3665     PATH_SEPARATOR=';'
3666   else
3667     PATH_SEPARATOR=:
3668   fi
3669   rm -f conf$$.sh
3670 fi
3671
3672
3673   as_lineno_1=$LINENO
3674   as_lineno_2=$LINENO
3675   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3676   test "x$as_lineno_1" != "x$as_lineno_2" &&
3677   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3678   # Find who we are.  Look in the path if we contain no path at all
3679   # relative or not.
3680   case $0 in
3681     *[\\/]* ) as_myself=$0 ;;
3682     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3688 done
3689
3690        ;;
3691   esac
3692   # We did not find ourselves, most probably we were run as `sh COMMAND'
3693   # in which case we are not to be found in the path.
3694   if test "x$as_myself" = x; then
3695     as_myself=$0
3696   fi
3697   if test ! -f "$as_myself"; then
3698     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3699 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3700    { (exit 1); exit 1; }; }
3701   fi
3702   case $CONFIG_SHELL in
3703   '')
3704     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709   for as_base in sh bash ksh sh5; do
3710          case $as_dir in
3711          /*)
3712            if ("$as_dir/$as_base" -c '
3713   as_lineno_1=$LINENO
3714   as_lineno_2=$LINENO
3715   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3716   test "x$as_lineno_1" != "x$as_lineno_2" &&
3717   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3718              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3719              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3720              CONFIG_SHELL=$as_dir/$as_base
3721              export CONFIG_SHELL
3722              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3723            fi;;
3724          esac
3725        done
3726 done
3727 ;;
3728   esac
3729
3730   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3731   # uniformly replaced by the line number.  The first 'sed' inserts a
3732   # line-number line before each line; the second 'sed' does the real
3733   # work.  The second script uses 'N' to pair each line-number line
3734   # with the numbered line, and appends trailing '-' during
3735   # substitution so that $LINENO is not a special case at line end.
3736   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3737   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3738   sed '=' <$as_myself |
3739     sed '
3740       N
3741       s,$,-,
3742       : loop
3743       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3744       t loop
3745       s,-$,,
3746       s,^['$as_cr_digits']*\n,,
3747     ' >$as_me.lineno &&
3748   chmod +x $as_me.lineno ||
3749     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3750 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3751    { (exit 1); exit 1; }; }
3752
3753   # Don't try to exec as it changes $[0], causing all sort of problems
3754   # (the dirname of $[0] is not the place where we might find the
3755   # original and so on.  Autoconf is especially sensible to this).
3756   . ./$as_me.lineno
3757   # Exit status is that of the last command.
3758   exit
3759 }
3760
3761
3762 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3763   *c*,-n*) ECHO_N= ECHO_C='
3764 ' ECHO_T='      ' ;;
3765   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3766   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3767 esac
3768
3769 if expr a : '\(a\)' >/dev/null 2>&1; then
3770   as_expr=expr
3771 else
3772   as_expr=false
3773 fi
3774
3775 rm -f conf$$ conf$$.exe conf$$.file
3776 echo >conf$$.file
3777 if ln -s conf$$.file conf$$ 2>/dev/null; then
3778   # We could just check for DJGPP; but this test a) works b) is more generic
3779   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3780   if test -f conf$$.exe; then
3781     # Don't use ln at all; we don't have any links
3782     as_ln_s='cp -p'
3783   else
3784     as_ln_s='ln -s'
3785   fi
3786 elif ln conf$$.file conf$$ 2>/dev/null; then
3787   as_ln_s=ln
3788 else
3789   as_ln_s='cp -p'
3790 fi
3791 rm -f conf$$ conf$$.exe conf$$.file
3792
3793 if mkdir -p . 2>/dev/null; then
3794   as_mkdir_p=:
3795 else
3796   test -d ./-p && rmdir ./-p
3797   as_mkdir_p=false
3798 fi
3799
3800 as_executable_p="test -f"
3801
3802 # Sed expression to map a string onto a valid CPP name.
3803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3804
3805 # Sed expression to map a string onto a valid variable name.
3806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3807
3808
3809 # IFS
3810 # We need space, tab and new line, in precisely that order.
3811 as_nl='
3812 '
3813 IFS="   $as_nl"
3814
3815 # CDPATH.
3816 $as_unset CDPATH
3817
3818 exec 6>&1
3819
3820 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3821 # report actual input values of CONFIG_FILES etc. instead of their
3822 # values after options handling.  Logging --version etc. is OK.
3823 exec 5>>config.log
3824 {
3825   echo
3826   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3827 ## Running $as_me. ##
3828 _ASBOX
3829 } >&5
3830 cat >&5 <<_CSEOF
3831
3832 This file was extended by $as_me, which was
3833 generated by GNU Autoconf 2.59.  Invocation command line was
3834
3835   CONFIG_FILES    = $CONFIG_FILES
3836   CONFIG_HEADERS  = $CONFIG_HEADERS
3837   CONFIG_LINKS    = $CONFIG_LINKS
3838   CONFIG_COMMANDS = $CONFIG_COMMANDS
3839   $ $0 $@
3840
3841 _CSEOF
3842 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3843 echo >&5
3844 _ACEOF
3845
3846 # Files that config.status was made for.
3847 if test -n "$ac_config_files"; then
3848   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3849 fi
3850
3851 if test -n "$ac_config_headers"; then
3852   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3853 fi
3854
3855 if test -n "$ac_config_links"; then
3856   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3857 fi
3858
3859 if test -n "$ac_config_commands"; then
3860   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3861 fi
3862
3863 cat >>$CONFIG_STATUS <<\_ACEOF
3864
3865 ac_cs_usage="\
3866 \`$as_me' instantiates files from templates according to the
3867 current configuration.
3868
3869 Usage: $0 [OPTIONS] [FILE]...
3870
3871   -h, --help       print this help, then exit
3872   -V, --version    print version number, then exit
3873   -q, --quiet      do not print progress messages
3874   -d, --debug      don't remove temporary files
3875       --recheck    update $as_me by reconfiguring in the same conditions
3876   --file=FILE[:TEMPLATE]
3877                    instantiate the configuration file FILE
3878
3879 Configuration files:
3880 $config_files
3881
3882 Report bugs to <bug-autoconf@gnu.org>."
3883 _ACEOF
3884
3885 cat >>$CONFIG_STATUS <<_ACEOF
3886 ac_cs_version="\\
3887 config.status
3888 configured by $0, generated by GNU Autoconf 2.59,
3889   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3890
3891 Copyright (C) 2003 Free Software Foundation, Inc.
3892 This config.status script is free software; the Free Software Foundation
3893 gives unlimited permission to copy, distribute and modify it."
3894 srcdir=$srcdir
3895 _ACEOF
3896
3897 cat >>$CONFIG_STATUS <<\_ACEOF
3898 # If no file are specified by the user, then we need to provide default
3899 # value.  By we need to know if files were specified by the user.
3900 ac_need_defaults=:
3901 while test $# != 0
3902 do
3903   case $1 in
3904   --*=*)
3905     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3906     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3907     ac_shift=:
3908     ;;
3909   -*)
3910     ac_option=$1
3911     ac_optarg=$2
3912     ac_shift=shift
3913     ;;
3914   *) # This is not an option, so the user has probably given explicit
3915      # arguments.
3916      ac_option=$1
3917      ac_need_defaults=false;;
3918   esac
3919
3920   case $ac_option in
3921   # Handling of the options.
3922 _ACEOF
3923 cat >>$CONFIG_STATUS <<\_ACEOF
3924   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3925     ac_cs_recheck=: ;;
3926   --version | --vers* | -V )
3927     echo "$ac_cs_version"; exit 0 ;;
3928   --he | --h)
3929     # Conflict between --help and --header
3930     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3931 Try \`$0 --help' for more information." >&5
3932 echo "$as_me: error: ambiguous option: $1
3933 Try \`$0 --help' for more information." >&2;}
3934    { (exit 1); exit 1; }; };;
3935   --help | --hel | -h )
3936     echo "$ac_cs_usage"; exit 0 ;;
3937   --debug | --d* | -d )
3938     debug=: ;;
3939   --file | --fil | --fi | --f )
3940     $ac_shift
3941     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3942     ac_need_defaults=false;;
3943   --header | --heade | --head | --hea )
3944     $ac_shift
3945     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3946     ac_need_defaults=false;;
3947   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3948   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3949     ac_cs_silent=: ;;
3950
3951   # This is an error.
3952   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3953 Try \`$0 --help' for more information." >&5
3954 echo "$as_me: error: unrecognized option: $1
3955 Try \`$0 --help' for more information." >&2;}
3956    { (exit 1); exit 1; }; } ;;
3957
3958   *) ac_config_targets="$ac_config_targets $1" ;;
3959
3960   esac
3961   shift
3962 done
3963
3964 ac_configure_extra_args=
3965
3966 if $ac_cs_silent; then
3967   exec 6>/dev/null
3968   ac_configure_extra_args="$ac_configure_extra_args --silent"
3969 fi
3970
3971 _ACEOF
3972 cat >>$CONFIG_STATUS <<_ACEOF
3973 if \$ac_cs_recheck; then
3974   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3975   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3976 fi
3977
3978 _ACEOF
3979
3980
3981
3982
3983
3984 cat >>$CONFIG_STATUS <<\_ACEOF
3985 for ac_config_target in $ac_config_targets
3986 do
3987   case "$ac_config_target" in
3988   # Handling of arguments.
3989   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3990   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3992    { (exit 1); exit 1; }; };;
3993   esac
3994 done
3995
3996 # If the user did not use the arguments to specify the items to instantiate,
3997 # then the envvar interface is used.  Set only those that are not.
3998 # We use the long form for the default assignment because of an extremely
3999 # bizarre bug on SunOS 4.1.3.
4000 if $ac_need_defaults; then
4001   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4002 fi
4003
4004 # Have a temporary directory for convenience.  Make it in the build tree
4005 # simply because there is no reason to put it here, and in addition,
4006 # creating and moving files from /tmp can sometimes cause problems.
4007 # Create a temporary directory, and hook for its removal unless debugging.
4008 $debug ||
4009 {
4010   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4011   trap '{ (exit 1); exit 1; }' 1 2 13 15
4012 }
4013
4014 # Create a (secure) tmp directory for tmp files.
4015
4016 {
4017   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4018   test -n "$tmp" && test -d "$tmp"
4019 }  ||
4020 {
4021   tmp=./confstat$$-$RANDOM
4022   (umask 077 && mkdir $tmp)
4023 } ||
4024 {
4025    echo "$me: cannot create a temporary directory in ." >&2
4026    { (exit 1); exit 1; }
4027 }
4028
4029 _ACEOF
4030
4031 cat >>$CONFIG_STATUS <<_ACEOF
4032
4033 #
4034 # CONFIG_FILES section.
4035 #
4036
4037 # No need to generate the scripts if there are no CONFIG_FILES.
4038 # This happens for instance when ./config.status config.h
4039 if test -n "\$CONFIG_FILES"; then
4040   # Protect against being on the right side of a sed subst in config.status.
4041   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4042    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4043 s,@SHELL@,$SHELL,;t t
4044 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4045 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4046 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4047 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4048 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4049 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4050 s,@exec_prefix@,$exec_prefix,;t t
4051 s,@prefix@,$prefix,;t t
4052 s,@program_transform_name@,$program_transform_name,;t t
4053 s,@bindir@,$bindir,;t t
4054 s,@sbindir@,$sbindir,;t t
4055 s,@libexecdir@,$libexecdir,;t t
4056 s,@datadir@,$datadir,;t t
4057 s,@sysconfdir@,$sysconfdir,;t t
4058 s,@sharedstatedir@,$sharedstatedir,;t t
4059 s,@localstatedir@,$localstatedir,;t t
4060 s,@libdir@,$libdir,;t t
4061 s,@includedir@,$includedir,;t t
4062 s,@oldincludedir@,$oldincludedir,;t t
4063 s,@infodir@,$infodir,;t t
4064 s,@mandir@,$mandir,;t t
4065 s,@build_alias@,$build_alias,;t t
4066 s,@host_alias@,$host_alias,;t t
4067 s,@target_alias@,$target_alias,;t t
4068 s,@DEFS@,$DEFS,;t t
4069 s,@ECHO_C@,$ECHO_C,;t t
4070 s,@ECHO_N@,$ECHO_N,;t t
4071 s,@ECHO_T@,$ECHO_T,;t t
4072 s,@LIBS@,$LIBS,;t t
4073 s,@CC@,$CC,;t t
4074 s,@CFLAGS@,$CFLAGS,;t t
4075 s,@LDFLAGS@,$LDFLAGS,;t t
4076 s,@CPPFLAGS@,$CPPFLAGS,;t t
4077 s,@ac_ct_CC@,$ac_ct_CC,;t t
4078 s,@EXEEXT@,$EXEEXT,;t t
4079 s,@OBJEXT@,$OBJEXT,;t t
4080 s,@AR@,$AR,;t t
4081 s,@ac_ct_AR@,$ac_ct_AR,;t t
4082 s,@RANLIB@,$RANLIB,;t t
4083 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4084 s,@CPP@,$CPP,;t t
4085 s,@EGREP@,$EGREP,;t t
4086 s,@LIBOBJS@,$LIBOBJS,;t t
4087 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4088 CEOF
4089
4090 _ACEOF
4091
4092   cat >>$CONFIG_STATUS <<\_ACEOF
4093   # Split the substitutions into bite-sized pieces for seds with
4094   # small command number limits, like on Digital OSF/1 and HP-UX.
4095   ac_max_sed_lines=48
4096   ac_sed_frag=1 # Number of current file.
4097   ac_beg=1 # First line for current file.
4098   ac_end=$ac_max_sed_lines # Line after last line for current file.
4099   ac_more_lines=:
4100   ac_sed_cmds=
4101   while $ac_more_lines; do
4102     if test $ac_beg -gt 1; then
4103       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4104     else
4105       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4106     fi
4107     if test ! -s $tmp/subs.frag; then
4108       ac_more_lines=false
4109     else
4110       # The purpose of the label and of the branching condition is to
4111       # speed up the sed processing (if there are no `@' at all, there
4112       # is no need to browse any of the substitutions).
4113       # These are the two extra sed commands mentioned above.
4114       (echo ':t
4115   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4116       if test -z "$ac_sed_cmds"; then
4117         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4118       else
4119         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4120       fi
4121       ac_sed_frag=`expr $ac_sed_frag + 1`
4122       ac_beg=$ac_end
4123       ac_end=`expr $ac_end + $ac_max_sed_lines`
4124     fi
4125   done
4126   if test -z "$ac_sed_cmds"; then
4127     ac_sed_cmds=cat
4128   fi
4129 fi # test -n "$CONFIG_FILES"
4130
4131 _ACEOF
4132 cat >>$CONFIG_STATUS <<\_ACEOF
4133 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4134   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4135   case $ac_file in
4136   - | *:- | *:-:* ) # input from stdin
4137         cat >$tmp/stdin
4138         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4139         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4140   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4141         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4142   * )   ac_file_in=$ac_file.in ;;
4143   esac
4144
4145   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4146   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4148          X"$ac_file" : 'X\(//\)[^/]' \| \
4149          X"$ac_file" : 'X\(//\)$' \| \
4150          X"$ac_file" : 'X\(/\)' \| \
4151          .     : '\(.\)' 2>/dev/null ||
4152 echo X"$ac_file" |
4153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4155           /^X\(\/\/\)$/{ s//\1/; q; }
4156           /^X\(\/\).*/{ s//\1/; q; }
4157           s/.*/./; q'`
4158   { if $as_mkdir_p; then
4159     mkdir -p "$ac_dir"
4160   else
4161     as_dir="$ac_dir"
4162     as_dirs=
4163     while test ! -d "$as_dir"; do
4164       as_dirs="$as_dir $as_dirs"
4165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4167          X"$as_dir" : 'X\(//\)[^/]' \| \
4168          X"$as_dir" : 'X\(//\)$' \| \
4169          X"$as_dir" : 'X\(/\)' \| \
4170          .     : '\(.\)' 2>/dev/null ||
4171 echo X"$as_dir" |
4172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4174           /^X\(\/\/\)$/{ s//\1/; q; }
4175           /^X\(\/\).*/{ s//\1/; q; }
4176           s/.*/./; q'`
4177     done
4178     test ! -n "$as_dirs" || mkdir $as_dirs
4179   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4181    { (exit 1); exit 1; }; }; }
4182
4183   ac_builddir=.
4184
4185 if test "$ac_dir" != .; then
4186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4187   # A "../" for each directory in $ac_dir_suffix.
4188   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4189 else
4190   ac_dir_suffix= ac_top_builddir=
4191 fi
4192
4193 case $srcdir in
4194   .)  # No --srcdir option.  We are building in place.
4195     ac_srcdir=.
4196     if test -z "$ac_top_builddir"; then
4197        ac_top_srcdir=.
4198     else
4199        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4200     fi ;;
4201   [\\/]* | ?:[\\/]* )  # Absolute path.
4202     ac_srcdir=$srcdir$ac_dir_suffix;
4203     ac_top_srcdir=$srcdir ;;
4204   *) # Relative path.
4205     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4206     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4207 esac
4208
4209 # Do not use `cd foo && pwd` to compute absolute paths, because
4210 # the directories may not exist.
4211 case `pwd` in
4212 .) ac_abs_builddir="$ac_dir";;
4213 *)
4214   case "$ac_dir" in
4215   .) ac_abs_builddir=`pwd`;;
4216   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4217   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4218   esac;;
4219 esac
4220 case $ac_abs_builddir in
4221 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4222 *)
4223   case ${ac_top_builddir}. in
4224   .) ac_abs_top_builddir=$ac_abs_builddir;;
4225   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4226   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4227   esac;;
4228 esac
4229 case $ac_abs_builddir in
4230 .) ac_abs_srcdir=$ac_srcdir;;
4231 *)
4232   case $ac_srcdir in
4233   .) ac_abs_srcdir=$ac_abs_builddir;;
4234   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4235   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4236   esac;;
4237 esac
4238 case $ac_abs_builddir in
4239 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4240 *)
4241   case $ac_top_srcdir in
4242   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4243   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4244   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4245   esac;;
4246 esac
4247
4248
4249
4250   # Let's still pretend it is `configure' which instantiates (i.e., don't
4251   # use $as_me), people would be surprised to read:
4252   #    /* config.h.  Generated by config.status.  */
4253   if test x"$ac_file" = x-; then
4254     configure_input=
4255   else
4256     configure_input="$ac_file.  "
4257   fi
4258   configure_input=$configure_input"Generated from `echo $ac_file_in |
4259                                      sed 's,.*/,,'` by configure."
4260
4261   # First look for the input files in the build tree, otherwise in the
4262   # src tree.
4263   ac_file_inputs=`IFS=:
4264     for f in $ac_file_in; do
4265       case $f in
4266       -) echo $tmp/stdin ;;
4267       [\\/$]*)
4268          # Absolute (can't be DOS-style, as IFS=:)
4269          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4270 echo "$as_me: error: cannot find input file: $f" >&2;}
4271    { (exit 1); exit 1; }; }
4272          echo "$f";;
4273       *) # Relative
4274          if test -f "$f"; then
4275            # Build tree
4276            echo "$f"
4277          elif test -f "$srcdir/$f"; then
4278            # Source tree
4279            echo "$srcdir/$f"
4280          else
4281            # /dev/null tree
4282            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4283 echo "$as_me: error: cannot find input file: $f" >&2;}
4284    { (exit 1); exit 1; }; }
4285          fi;;
4286       esac
4287     done` || { (exit 1); exit 1; }
4288
4289   if test x"$ac_file" != x-; then
4290     { echo "$as_me:$LINENO: creating $ac_file" >&5
4291 echo "$as_me: creating $ac_file" >&6;}
4292     rm -f "$ac_file"
4293   fi
4294 _ACEOF
4295 cat >>$CONFIG_STATUS <<_ACEOF
4296   sed "$ac_vpsub
4297 $extrasub
4298 _ACEOF
4299 cat >>$CONFIG_STATUS <<\_ACEOF
4300 :t
4301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4302 s,@configure_input@,$configure_input,;t t
4303 s,@srcdir@,$ac_srcdir,;t t
4304 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4305 s,@top_srcdir@,$ac_top_srcdir,;t t
4306 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4307 s,@builddir@,$ac_builddir,;t t
4308 s,@abs_builddir@,$ac_abs_builddir,;t t
4309 s,@top_builddir@,$ac_top_builddir,;t t
4310 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4311 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4312   rm -f $tmp/stdin
4313   if test x"$ac_file" != x-; then
4314     mv $tmp/out $ac_file
4315   else
4316     cat $tmp/out
4317     rm -f $tmp/out
4318   fi
4319
4320 done
4321 _ACEOF
4322
4323 cat >>$CONFIG_STATUS <<\_ACEOF
4324
4325 { (exit 0); exit 0; }
4326 _ACEOF
4327 chmod +x $CONFIG_STATUS
4328 ac_clean_files=$ac_clean_files_save
4329
4330
4331 # configure is writing to config.log, and then calls config.status.
4332 # config.status does its own redirection, appending to config.log.
4333 # Unfortunately, on DOS this fails, as config.log is still kept open
4334 # by configure, so config.status won't be able to write to it; its
4335 # output is simply discarded.  So we exec the FD to /dev/null,
4336 # effectively closing config.log, so it can be properly (re)opened and
4337 # appended to by config.status.  When coming back to configure, we
4338 # need to make the FD available again.
4339 if test "$no_create" != yes; then
4340   ac_cs_success=:
4341   ac_config_status_args=
4342   test "$silent" = yes &&
4343     ac_config_status_args="$ac_config_status_args --quiet"
4344   exec 5>/dev/null
4345   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4346   exec 5>>config.log
4347   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4348   # would make configure fail if this is the last instruction.
4349   $ac_cs_success || { (exit 1); exit 1; }
4350 fi
4351