Imported Debian patch 1.3.11-1
[debian/mtx] / 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="mtx.c"
275 ac_default_prefix=/usr/local
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os TARGET CPU CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA USE_OBJCOPY CPP EGREP LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 System types:
836   --build=BUILD     configure for building on BUILD [guessed]
837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838   --target=TARGET   configure for building compilers for TARGET [HOST]
839 _ACEOF
840 fi
841
842 if test -n "$ac_init_help"; then
843
844   cat <<\_ACEOF
845
846 Some influential environment variables:
847   CC          C compiler command
848   CFLAGS      C compiler flags
849   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
850               nonstandard directory <lib dir>
851   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
852               headers in a nonstandard directory <include dir>
853   CPP         C preprocessor
854
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
857
858 _ACEOF
859 fi
860
861 if test "$ac_init_help" = "recursive"; then
862   # If there are subdirs, report their specific --help.
863   ac_popdir=`pwd`
864   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865     test -d $ac_dir || continue
866     ac_builddir=.
867
868 if test "$ac_dir" != .; then
869   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870   # A "../" for each directory in $ac_dir_suffix.
871   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872 else
873   ac_dir_suffix= ac_top_builddir=
874 fi
875
876 case $srcdir in
877   .)  # No --srcdir option.  We are building in place.
878     ac_srcdir=.
879     if test -z "$ac_top_builddir"; then
880        ac_top_srcdir=.
881     else
882        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883     fi ;;
884   [\\/]* | ?:[\\/]* )  # Absolute path.
885     ac_srcdir=$srcdir$ac_dir_suffix;
886     ac_top_srcdir=$srcdir ;;
887   *) # Relative path.
888     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889     ac_top_srcdir=$ac_top_builddir$srcdir ;;
890 esac
891
892 # Do not use `cd foo && pwd` to compute absolute paths, because
893 # the directories may not exist.
894 case `pwd` in
895 .) ac_abs_builddir="$ac_dir";;
896 *)
897   case "$ac_dir" in
898   .) ac_abs_builddir=`pwd`;;
899   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
900   *) ac_abs_builddir=`pwd`/"$ac_dir";;
901   esac;;
902 esac
903 case $ac_abs_builddir in
904 .) ac_abs_top_builddir=${ac_top_builddir}.;;
905 *)
906   case ${ac_top_builddir}. in
907   .) ac_abs_top_builddir=$ac_abs_builddir;;
908   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
909   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
910   esac;;
911 esac
912 case $ac_abs_builddir in
913 .) ac_abs_srcdir=$ac_srcdir;;
914 *)
915   case $ac_srcdir in
916   .) ac_abs_srcdir=$ac_abs_builddir;;
917   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
918   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
919   esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_top_srcdir=$ac_top_srcdir;;
923 *)
924   case $ac_top_srcdir in
925   .) ac_abs_top_srcdir=$ac_abs_builddir;;
926   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
927   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
928   esac;;
929 esac
930
931     cd $ac_dir
932     # Check for guested configure; otherwise get Cygnus style configure.
933     if test -f $ac_srcdir/configure.gnu; then
934       echo
935       $SHELL $ac_srcdir/configure.gnu  --help=recursive
936     elif test -f $ac_srcdir/configure; then
937       echo
938       $SHELL $ac_srcdir/configure  --help=recursive
939     elif test -f $ac_srcdir/configure.ac ||
940            test -f $ac_srcdir/configure.in; then
941       echo
942       $ac_configure --help
943     else
944       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945     fi
946     cd $ac_popdir
947   done
948 fi
949
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952   cat <<\_ACEOF
953
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958   exit 0
959 fi
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
964
965 It was created by $as_me, which was
966 generated by GNU Autoconf 2.59.  Invocation command line was
967
968   $ $0 $@
969
970 _ACEOF
971 {
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
976
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994 _ASUNAME
995
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
998 do
999   IFS=$as_save_IFS
1000   test -z "$as_dir" && as_dir=.
1001   echo "PATH: $as_dir"
1002 done
1003
1004 } >&5
1005
1006 cat >&5 <<_ACEOF
1007
1008
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1012
1013 _ACEOF
1014
1015
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1027 do
1028   for ac_arg
1029   do
1030     case $ac_arg in
1031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033     | -silent | --silent | --silen | --sile | --sil)
1034       continue ;;
1035     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037     esac
1038     case $ac_pass in
1039     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040     2)
1041       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042       if test $ac_must_keep_next = true; then
1043         ac_must_keep_next=false # Got value, back to normal.
1044       else
1045         case $ac_arg in
1046           *=* | --config-cache | -C | -disable-* | --disable-* \
1047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049           | -with-* | --with-* | -without-* | --without-* | --x)
1050             case "$ac_configure_args0 " in
1051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052             esac
1053             ;;
1054           -* ) ac_must_keep_next=true ;;
1055         esac
1056       fi
1057       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058       # Get rid of the leading space.
1059       ac_sep=" "
1060       ;;
1061     esac
1062   done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log.  We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073   # Save into config.log some information that might help in debugging.
1074   {
1075     echo
1076
1077     cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082     echo
1083     # The following way of writing the cache mishandles newlines in values,
1084 {
1085   (set) 2>&1 |
1086     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087     *ac_space=\ *)
1088       sed -n \
1089         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091       ;;
1092     *)
1093       sed -n \
1094         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095       ;;
1096     esac;
1097 }
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105     echo
1106     for ac_var in $ac_subst_vars
1107     do
1108       eval ac_val=$`echo $ac_var`
1109       echo "$ac_var='"'"'$ac_val'"'"'"
1110     done | sort
1111     echo
1112
1113     if test -n "$ac_subst_files"; then
1114       cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119       echo
1120       for ac_var in $ac_subst_files
1121       do
1122         eval ac_val=$`echo $ac_var`
1123         echo "$ac_var='"'"'$ac_val'"'"'"
1124       done | sort
1125       echo
1126     fi
1127
1128     if test -s confdefs.h; then
1129       cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134       echo
1135       sed "/^$/d" confdefs.h | sort
1136       echo
1137     fi
1138     test "$ac_signal" != 0 &&
1139       echo "$as_me: caught signal $ac_signal"
1140     echo "$as_me: exit $exit_status"
1141   } >&5
1142   rm -f core *.core &&
1143   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144     exit $exit_status
1145      ' 0
1146 for ac_signal in 1 2 13 15; do
1147   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1150
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1155
1156 # Predefined preprocessor variables.
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1181
1182
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186   if test "x$prefix" != xNONE; then
1187     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188   else
1189     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190   fi
1191 fi
1192 for ac_site_file in $CONFIG_SITE; do
1193   if test -r "$ac_site_file"; then
1194     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196     sed 's/^/| /' "$ac_site_file" >&5
1197     . "$ac_site_file"
1198   fi
1199 done
1200
1201 if test -r "$cache_file"; then
1202   # Some versions of bash will fail to source /dev/null (special
1203   # files actually), so we avoid doing that.
1204   if test -f "$cache_file"; then
1205     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207     case $cache_file in
1208       [\\/]* | ?:[\\/]* ) . $cache_file;;
1209       *)                      . ./$cache_file;;
1210     esac
1211   fi
1212 else
1213   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215   >$cache_file
1216 fi
1217
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224   eval ac_new_set=\$ac_env_${ac_var}_set
1225   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226   eval ac_new_val="\$ac_env_${ac_var}_value"
1227   case $ac_old_set,$ac_new_set in
1228     set,)
1229       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231       ac_cache_corrupted=: ;;
1232     ,set)
1233       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235       ac_cache_corrupted=: ;;
1236     ,);;
1237     *)
1238       if test "x$ac_old_val" != "x$ac_new_val"; then
1239         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242 echo "$as_me:   former value:  $ac_old_val" >&2;}
1243         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244 echo "$as_me:   current value: $ac_new_val" >&2;}
1245         ac_cache_corrupted=:
1246       fi;;
1247   esac
1248   # Pass precious variables to config.status.
1249   if test "$ac_new_set" = set; then
1250     case $ac_new_val in
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     *) ac_arg=$ac_var=$ac_new_val ;;
1254     esac
1255     case " $ac_configure_args " in
1256       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258     esac
1259   fi
1260 done
1261 if $ac_cache_corrupted; then
1262   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266    { (exit 1); exit 1; }; }
1267 fi
1268
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293           ac_config_headers="$ac_config_headers config.h"
1294
1295
1296 ac_aux_dir=
1297 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1298   if test -f $ac_dir/install-sh; then
1299     ac_aux_dir=$ac_dir
1300     ac_install_sh="$ac_aux_dir/install-sh -c"
1301     break
1302   elif test -f $ac_dir/install.sh; then
1303     ac_aux_dir=$ac_dir
1304     ac_install_sh="$ac_aux_dir/install.sh -c"
1305     break
1306   elif test -f $ac_dir/shtool; then
1307     ac_aux_dir=$ac_dir
1308     ac_install_sh="$ac_aux_dir/shtool install -c"
1309     break
1310   fi
1311 done
1312 if test -z "$ac_aux_dir"; then
1313   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1314 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1315    { (exit 1); exit 1; }; }
1316 fi
1317 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1318 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1319 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1320
1321 # Make sure we can run config.sub.
1322 $ac_config_sub sun4 >/dev/null 2>&1 ||
1323   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1324 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1325    { (exit 1); exit 1; }; }
1326
1327 echo "$as_me:$LINENO: checking build system type" >&5
1328 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1329 if test "${ac_cv_build+set}" = set; then
1330   echo $ECHO_N "(cached) $ECHO_C" >&6
1331 else
1332   ac_cv_build_alias=$build_alias
1333 test -z "$ac_cv_build_alias" &&
1334   ac_cv_build_alias=`$ac_config_guess`
1335 test -z "$ac_cv_build_alias" &&
1336   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1337 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1338    { (exit 1); exit 1; }; }
1339 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1340   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1342    { (exit 1); exit 1; }; }
1343
1344 fi
1345 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1346 echo "${ECHO_T}$ac_cv_build" >&6
1347 build=$ac_cv_build
1348 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351
1352
1353 echo "$as_me:$LINENO: checking host system type" >&5
1354 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1355 if test "${ac_cv_host+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_host_alias=$host_alias
1359 test -z "$ac_cv_host_alias" &&
1360   ac_cv_host_alias=$ac_cv_build_alias
1361 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1362   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1363 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1364    { (exit 1); exit 1; }; }
1365
1366 fi
1367 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1368 echo "${ECHO_T}$ac_cv_host" >&6
1369 host=$ac_cv_host
1370 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1371 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1372 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1373
1374
1375 echo "$as_me:$LINENO: checking target system type" >&5
1376 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1377 if test "${ac_cv_target+set}" = set; then
1378   echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380   ac_cv_target_alias=$target_alias
1381 test "x$ac_cv_target_alias" = "x" &&
1382   ac_cv_target_alias=$ac_cv_host_alias
1383 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1384   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1385 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1386    { (exit 1); exit 1; }; }
1387
1388 fi
1389 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1390 echo "${ECHO_T}$ac_cv_target" >&6
1391 target=$ac_cv_target
1392 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1393 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1394 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1395
1396
1397 # The aliases save the names the user supplied, while $host etc.
1398 # will get canonicalized.
1399 test -n "$target_alias" &&
1400   test "$program_prefix$program_suffix$program_transform_name" = \
1401     NONENONEs,x,x, &&
1402   program_prefix=${target_alias}-
1403
1404
1405 case "$host_os" in
1406   *linux*) cat >>confdefs.h <<\_ACEOF
1407 #define LINUX 1
1408 _ACEOF
1409
1410         TARGET=linux
1411     ;;
1412   *solaris*) cat >>confdefs.h <<\_ACEOF
1413 #define SOLARIS 1
1414 _ACEOF
1415
1416         TARGET=solarissparc
1417         ;;
1418   *sunos*)  TARGET=solarissparc
1419          ;;
1420   *freebsd*) TARGET=freebsd86
1421         ;;
1422   *aix*) TARGET=aix
1423        ;;
1424   *irix*) TARGET=sgi
1425       ;;
1426   *hp*) TARGET=hpux
1427      ;;
1428   *HP*) TARGET=hpux
1429      ;;
1430   *sequent*) cat >>confdefs.h <<\_ACEOF
1431 #define SEQUENT 1
1432 _ACEOF
1433
1434         ;;
1435   *MINGW*) TARGET=mingw
1436      ;;
1437   *MinGW*) TARGET=mingw
1438      ;;
1439   *mingw*) TARGET=mingw
1440      ;;
1441   *) TARGET=$host_os
1442      ;;
1443 esac
1444
1445 case "$host_cpu" in
1446   # force us down to '386 if we're on some other machine.
1447  *?86*) host_cpu='i386'
1448         CPU=386
1449         ;;
1450   *) CPU=$host_cpu;
1451        ;;
1452 esac
1453
1454
1455
1456
1457 ac_ext=c
1458 ac_cpp='$CPP $CPPFLAGS'
1459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   if test -n "$CC"; then
1471   ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1475 do
1476   IFS=$as_save_IFS
1477   test -z "$as_dir" && as_dir=.
1478   for ac_exec_ext in '' $ac_executable_extensions; do
1479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482     break 2
1483   fi
1484 done
1485 done
1486
1487 fi
1488 fi
1489 CC=$ac_cv_prog_CC
1490 if test -n "$CC"; then
1491   echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1493 else
1494   echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 fi
1499 if test -z "$ac_cv_prog_CC"; then
1500   ac_ct_CC=$CC
1501   # Extract the first word of "gcc", so it can be a program name with args.
1502 set dummy gcc; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   if test -n "$ac_ct_CC"; then
1509   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514   IFS=$as_save_IFS
1515   test -z "$as_dir" && as_dir=.
1516   for ac_exec_ext in '' $ac_executable_extensions; do
1517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518     ac_cv_prog_ac_ct_CC="gcc"
1519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520     break 2
1521   fi
1522 done
1523 done
1524
1525 fi
1526 fi
1527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528 if test -n "$ac_ct_CC"; then
1529   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1530 echo "${ECHO_T}$ac_ct_CC" >&6
1531 else
1532   echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1534 fi
1535
1536   CC=$ac_ct_CC
1537 else
1538   CC="$ac_cv_prog_CC"
1539 fi
1540
1541 if test -z "$CC"; then
1542   if test -n "$ac_tool_prefix"; then
1543   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1544 set dummy ${ac_tool_prefix}cc; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_CC+set}" = set; then
1548   echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550   if test -n "$CC"; then
1551   ac_cv_prog_CC="$CC" # Let the user override the test.
1552 else
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556   IFS=$as_save_IFS
1557   test -z "$as_dir" && as_dir=.
1558   for ac_exec_ext in '' $ac_executable_extensions; do
1559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560     ac_cv_prog_CC="${ac_tool_prefix}cc"
1561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562     break 2
1563   fi
1564 done
1565 done
1566
1567 fi
1568 fi
1569 CC=$ac_cv_prog_CC
1570 if test -n "$CC"; then
1571   echo "$as_me:$LINENO: result: $CC" >&5
1572 echo "${ECHO_T}$CC" >&6
1573 else
1574   echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1576 fi
1577
1578 fi
1579 if test -z "$ac_cv_prog_CC"; then
1580   ac_ct_CC=$CC
1581   # Extract the first word of "cc", so it can be a program name with args.
1582 set dummy cc; ac_word=$2
1583 echo "$as_me:$LINENO: checking for $ac_word" >&5
1584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1586   echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588   if test -n "$ac_ct_CC"; then
1589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1590 else
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 for as_dir in $PATH
1593 do
1594   IFS=$as_save_IFS
1595   test -z "$as_dir" && as_dir=.
1596   for ac_exec_ext in '' $ac_executable_extensions; do
1597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598     ac_cv_prog_ac_ct_CC="cc"
1599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600     break 2
1601   fi
1602 done
1603 done
1604
1605 fi
1606 fi
1607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1608 if test -n "$ac_ct_CC"; then
1609   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1610 echo "${ECHO_T}$ac_ct_CC" >&6
1611 else
1612   echo "$as_me:$LINENO: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1614 fi
1615
1616   CC=$ac_ct_CC
1617 else
1618   CC="$ac_cv_prog_CC"
1619 fi
1620
1621 fi
1622 if test -z "$CC"; then
1623   # Extract the first word of "cc", so it can be a program name with args.
1624 set dummy cc; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   if test -n "$CC"; then
1631   ac_cv_prog_CC="$CC" # Let the user override the test.
1632 else
1633   ac_prog_rejected=no
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   for ac_exec_ext in '' $ac_executable_extensions; do
1640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1642        ac_prog_rejected=yes
1643        continue
1644      fi
1645     ac_cv_prog_CC="cc"
1646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647     break 2
1648   fi
1649 done
1650 done
1651
1652 if test $ac_prog_rejected = yes; then
1653   # We found a bogon in the path, so make sure we never use it.
1654   set dummy $ac_cv_prog_CC
1655   shift
1656   if test $# != 0; then
1657     # We chose a different compiler from the bogus one.
1658     # However, it has the same basename, so the bogon will be chosen
1659     # first if we set CC to just the basename; use the full file name.
1660     shift
1661     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1662   fi
1663 fi
1664 fi
1665 fi
1666 CC=$ac_cv_prog_CC
1667 if test -n "$CC"; then
1668   echo "$as_me:$LINENO: result: $CC" >&5
1669 echo "${ECHO_T}$CC" >&6
1670 else
1671   echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1673 fi
1674
1675 fi
1676 if test -z "$CC"; then
1677   if test -n "$ac_tool_prefix"; then
1678   for ac_prog in cl
1679   do
1680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$CC"; then
1688   ac_cv_prog_CC="$CC" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704 fi
1705 fi
1706 CC=$ac_cv_prog_CC
1707 if test -n "$CC"; then
1708   echo "$as_me:$LINENO: result: $CC" >&5
1709 echo "${ECHO_T}$CC" >&6
1710 else
1711   echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1713 fi
1714
1715     test -n "$CC" && break
1716   done
1717 fi
1718 if test -z "$CC"; then
1719   ac_ct_CC=$CC
1720   for ac_prog in cl
1721 do
1722   # Extract the first word of "$ac_prog", so it can be a program name with args.
1723 set dummy $ac_prog; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   if test -n "$ac_ct_CC"; then
1730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   for ac_exec_ext in '' $ac_executable_extensions; do
1738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739     ac_cv_prog_ac_ct_CC="$ac_prog"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   test -n "$ac_ct_CC" && break
1758 done
1759
1760   CC=$ac_ct_CC
1761 fi
1762
1763 fi
1764
1765
1766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&5
1768 echo "$as_me: error: no acceptable C compiler found in \$PATH
1769 See \`config.log' for more details." >&2;}
1770    { (exit 1); exit 1; }; }
1771
1772 # Provide some information about the compiler.
1773 echo "$as_me:$LINENO:" \
1774      "checking for C compiler version" >&5
1775 ac_compiler=`set X $ac_compile; echo $2`
1776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1777   (eval $ac_compiler --version </dev/null >&5) 2>&5
1778   ac_status=$?
1779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780   (exit $ac_status); }
1781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1782   (eval $ac_compiler -v </dev/null >&5) 2>&5
1783   ac_status=$?
1784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785   (exit $ac_status); }
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1787   (eval $ac_compiler -V </dev/null >&5) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }
1791
1792 cat >conftest.$ac_ext <<_ACEOF
1793 /* confdefs.h.  */
1794 _ACEOF
1795 cat confdefs.h >>conftest.$ac_ext
1796 cat >>conftest.$ac_ext <<_ACEOF
1797 /* end confdefs.h.  */
1798
1799 int
1800 main ()
1801 {
1802
1803   ;
1804   return 0;
1805 }
1806 _ACEOF
1807 ac_clean_files_save=$ac_clean_files
1808 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1809 # Try to create an executable without -o first, disregard a.out.
1810 # It will help us diagnose broken compilers, and finding out an intuition
1811 # of exeext.
1812 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1813 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1814 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1815 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1816   (eval $ac_link_default) 2>&5
1817   ac_status=$?
1818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819   (exit $ac_status); }; then
1820   # Find the output, starting from the most likely.  This scheme is
1821 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1822 # resort.
1823
1824 # Be careful to initialize this variable, since it used to be cached.
1825 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1826 ac_cv_exeext=
1827 # b.out is created by i960 compilers.
1828 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1829 do
1830   test -f "$ac_file" || continue
1831   case $ac_file in
1832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1833         ;;
1834     conftest.$ac_ext )
1835         # This is the source file.
1836         ;;
1837     [ab].out )
1838         # We found the default executable, but exeext='' is most
1839         # certainly right.
1840         break;;
1841     *.* )
1842         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1843         # FIXME: I believe we export ac_cv_exeext for Libtool,
1844         # but it would be cool to find out if it's true.  Does anybody
1845         # maintain Libtool? --akim.
1846         export ac_cv_exeext
1847         break;;
1848     * )
1849         break;;
1850   esac
1851 done
1852 else
1853   echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: C compiler cannot create executables
1859 See \`config.log' for more details." >&2;}
1860    { (exit 77); exit 77; }; }
1861 fi
1862
1863 ac_exeext=$ac_cv_exeext
1864 echo "$as_me:$LINENO: result: $ac_file" >&5
1865 echo "${ECHO_T}$ac_file" >&6
1866
1867 # Check the compiler produces executables we can run.  If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1870 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1871 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1872 # If not cross compiling, check that we can run a simple program.
1873 if test "$cross_compiling" != yes; then
1874   if { ac_try='./$ac_file'
1875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876   (eval $ac_try) 2>&5
1877   ac_status=$?
1878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879   (exit $ac_status); }; }; then
1880     cross_compiling=no
1881   else
1882     if test "$cross_compiling" = maybe; then
1883         cross_compiling=yes
1884     else
1885         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1886 If you meant to cross compile, use \`--host'.
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&2;}
1891    { (exit 1); exit 1; }; }
1892     fi
1893   fi
1894 fi
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1897
1898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1899 ac_clean_files=$ac_clean_files_save
1900 # Check the compiler produces executables we can run.  If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1904 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1905 echo "${ECHO_T}$cross_compiling" >&6
1906
1907 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1910   (eval $ac_link) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; then
1914   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1915 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1916 # work properly (i.e., refer to `conftest.exe'), while it won't with
1917 # `rm'.
1918 for ac_file in conftest.exe conftest conftest.*; do
1919   test -f "$ac_file" || continue
1920   case $ac_file in
1921     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1922     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923           export ac_cv_exeext
1924           break;;
1925     * ) break;;
1926   esac
1927 done
1928 else
1929   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1932 See \`config.log' for more details." >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 rm -f conftest$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1938 echo "${ECHO_T}$ac_cv_exeext" >&6
1939
1940 rm -f conftest.$ac_ext
1941 EXEEXT=$ac_cv_exeext
1942 ac_exeext=$EXEEXT
1943 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1944 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1945 if test "${ac_cv_objext+set}" = set; then
1946   echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948   cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h.  */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h.  */
1954
1955 int
1956 main ()
1957 {
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.o conftest.obj
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965   (eval $ac_compile) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }; then
1969   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1970   case $ac_file in
1971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1972     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973        break;;
1974   esac
1975 done
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1983 See \`config.log' for more details." >&2;}
1984    { (exit 1); exit 1; }; }
1985 fi
1986
1987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1988 fi
1989 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1990 echo "${ECHO_T}$ac_cv_objext" >&6
1991 OBJEXT=$ac_cv_objext
1992 ac_objext=$OBJEXT
1993 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1994 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1995 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008 #ifndef __GNUC__
2009        choke me
2010 #endif
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018   (eval $ac_compile) 2>conftest.er1
2019   ac_status=$?
2020   grep -v '^ *+' conftest.er1 >conftest.err
2021   rm -f conftest.er1
2022   cat conftest.err >&5
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); } &&
2025          { ac_try='test -z "$ac_c_werror_flag"
2026                          || test ! -s conftest.err'
2027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028   (eval $ac_try) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; } &&
2032          { ac_try='test -s conftest.$ac_objext'
2033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034   (eval $ac_try) 2>&5
2035   ac_status=$?
2036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037   (exit $ac_status); }; }; then
2038   ac_compiler_gnu=yes
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_compiler_gnu=no
2044 fi
2045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051 GCC=`test $ac_compiler_gnu = yes && echo yes`
2052 ac_test_CFLAGS=${CFLAGS+set}
2053 ac_save_CFLAGS=$CFLAGS
2054 CFLAGS="-g"
2055 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057 if test "${ac_cv_prog_cc_g+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070
2071   ;
2072   return 0;
2073 }
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"
2085                          || test ! -s conftest.err'
2086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087   (eval $ac_try) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; } &&
2091          { ac_try='test -s conftest.$ac_objext'
2092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093   (eval $ac_try) 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }; }; then
2097   ac_cv_prog_cc_g=yes
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102 ac_cv_prog_cc_g=no
2103 fi
2104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2108 if test "$ac_test_CFLAGS" = set; then
2109   CFLAGS=$ac_save_CFLAGS
2110 elif test $ac_cv_prog_cc_g = yes; then
2111   if test "$GCC" = yes; then
2112     CFLAGS="-g -O2"
2113   else
2114     CFLAGS="-g"
2115   fi
2116 else
2117   if test "$GCC" = yes; then
2118     CFLAGS="-O2"
2119   else
2120     CFLAGS=
2121   fi
2122 fi
2123 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2124 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2125 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   ac_cv_prog_cc_stdc=no
2129 ac_save_CC=$CC
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158
2159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2160    function prototypes and stuff, but not '\xHH' hex character constants.
2161    These don't provoke an error unfortunately, instead are silently treated
2162    as 'x'.  The following induces an error, until -std1 is added to get
2163    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2164    array size at least.  It's necessary to write '\x00'==0 to get something
2165    that's true only with -std1.  */
2166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2167
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2172 int argc;
2173 char **argv;
2174 int
2175 main ()
2176 {
2177 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX                   -qlanglvl=ansi
2185 # Ultrix and OSF/1      -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2188 # SVR4                  -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 do
2191   CC="$ac_save_CC $ac_arg"
2192   rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>conftest.er1
2195   ac_status=$?
2196   grep -v '^ *+' conftest.er1 >conftest.err
2197   rm -f conftest.er1
2198   cat conftest.err >&5
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); } &&
2201          { ac_try='test -z "$ac_c_werror_flag"
2202                          || test ! -s conftest.err'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; } &&
2208          { ac_try='test -s conftest.$ac_objext'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; }; then
2214   ac_cv_prog_cc_stdc=$ac_arg
2215 break
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 fi
2221 rm -f conftest.err conftest.$ac_objext
2222 done
2223 rm -f conftest.$ac_ext conftest.$ac_objext
2224 CC=$ac_save_CC
2225
2226 fi
2227
2228 case "x$ac_cv_prog_cc_stdc" in
2229   x|xno)
2230     echo "$as_me:$LINENO: result: none needed" >&5
2231 echo "${ECHO_T}none needed" >&6 ;;
2232   *)
2233     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2234 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2235     CC="$CC $ac_cv_prog_cc_stdc" ;;
2236 esac
2237
2238 # Some people use a C++ compiler to compile C.  Since we use `exit',
2239 # in C++ we need to declare it.  In case someone uses the same compiler
2240 # for both compiling C and C++ we need to have the C++ compiler decide
2241 # the declaration of exit, since it's the most demanding environment.
2242 cat >conftest.$ac_ext <<_ACEOF
2243 #ifndef __cplusplus
2244   choke me
2245 #endif
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>conftest.er1
2250   ac_status=$?
2251   grep -v '^ *+' conftest.er1 >conftest.err
2252   rm -f conftest.er1
2253   cat conftest.err >&5
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -z "$ac_c_werror_flag"
2257                          || test ! -s conftest.err'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   for ac_declaration in \
2270    '' \
2271    'extern "C" void std::exit (int) throw (); using std::exit;' \
2272    'extern "C" void std::exit (int); using std::exit;' \
2273    'extern "C" void exit (int) throw ();' \
2274    'extern "C" void exit (int);' \
2275    'void exit (int);'
2276 do
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283 $ac_declaration
2284 #include <stdlib.h>
2285 int
2286 main ()
2287 {
2288 exit (42);
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 rm -f conftest.$ac_objext
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295   (eval $ac_compile) 2>conftest.er1
2296   ac_status=$?
2297   grep -v '^ *+' conftest.er1 >conftest.err
2298   rm -f conftest.er1
2299   cat conftest.err >&5
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -z "$ac_c_werror_flag"
2303                          || test ! -s conftest.err'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; } &&
2309          { ac_try='test -s conftest.$ac_objext'
2310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311   (eval $ac_try) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; }; then
2315   :
2316 else
2317   echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 continue
2321 fi
2322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323   cat >conftest.$ac_ext <<_ACEOF
2324 /* confdefs.h.  */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h.  */
2329 $ac_declaration
2330 int
2331 main ()
2332 {
2333 exit (42);
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 rm -f conftest.$ac_objext
2339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340   (eval $ac_compile) 2>conftest.er1
2341   ac_status=$?
2342   grep -v '^ *+' conftest.er1 >conftest.err
2343   rm -f conftest.er1
2344   cat conftest.err >&5
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -z "$ac_c_werror_flag"
2348                          || test ! -s conftest.err'
2349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350   (eval $ac_try) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   break
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 fi
2366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367 done
2368 rm -f conftest*
2369 if test -n "$ac_declaration"; then
2370   echo '#ifdef __cplusplus' >>confdefs.h
2371   echo $ac_declaration      >>confdefs.h
2372   echo '#endif'             >>confdefs.h
2373 fi
2374
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 ac_ext=c
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386
2387 # Find a good install program.  We prefer a C program (faster),
2388 # so one script is as good as another.  But avoid the broken or
2389 # incompatible versions:
2390 # SysV /etc/install, /usr/sbin/install
2391 # SunOS /usr/etc/install
2392 # IRIX /sbin/install
2393 # AIX /bin/install
2394 # AmigaOS /C/install, which installs bootblocks on floppy discs
2395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398 # OS/2's system install, which has a completely different semantic
2399 # ./install, which can be erroneously created by make from ./install.sh.
2400 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2401 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2402 if test -z "$INSTALL"; then
2403 if test "${ac_cv_path_install+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   # Account for people who put trailing slashes in PATH elements.
2412 case $as_dir/ in
2413   ./ | .// | /cC/* | \
2414   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2415   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2416   /usr/ucb/* ) ;;
2417   *)
2418     # OSF1 and SCO ODT 3.0 have their own names for install.
2419     # Don't use installbsd from OSF since it installs stuff as root
2420     # by default.
2421     for ac_prog in ginstall scoinst install; do
2422       for ac_exec_ext in '' $ac_executable_extensions; do
2423         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2424           if test $ac_prog = install &&
2425             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426             # AIX install.  It has an incompatible calling convention.
2427             :
2428           elif test $ac_prog = install &&
2429             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430             # program-specific install script used by HP pwplus--don't use.
2431             :
2432           else
2433             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434             break 3
2435           fi
2436         fi
2437       done
2438     done
2439     ;;
2440 esac
2441 done
2442
2443
2444 fi
2445   if test "${ac_cv_path_install+set}" = set; then
2446     INSTALL=$ac_cv_path_install
2447   else
2448     # As a last resort, use the slow shell script.  We don't cache a
2449     # path for INSTALL within a source directory, because that will
2450     # break other packages using the cache if that directory is
2451     # removed, or if the path is relative.
2452     INSTALL=$ac_install_sh
2453   fi
2454 fi
2455 echo "$as_me:$LINENO: result: $INSTALL" >&5
2456 echo "${ECHO_T}$INSTALL" >&6
2457
2458 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2459 # It thinks the first close brace ends the variable substitution.
2460 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2461
2462 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2463
2464 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2465
2466 # Extract the first word of "objcopy", so it can be a program name with args.
2467 set dummy objcopy; ac_word=$2
2468 echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470 if test "${ac_cv_prog_USE_OBJCOPY+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$USE_OBJCOPY"; then
2474   ac_cv_prog_USE_OBJCOPY="$USE_OBJCOPY" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483     ac_cv_prog_USE_OBJCOPY="yes"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489
2490   test -z "$ac_cv_prog_USE_OBJCOPY" && ac_cv_prog_USE_OBJCOPY="no"
2491 fi
2492 fi
2493 USE_OBJCOPY=$ac_cv_prog_USE_OBJCOPY
2494 if test -n "$USE_OBJCOPY"; then
2495   echo "$as_me:$LINENO: result: $USE_OBJCOPY" >&5
2496 echo "${ECHO_T}$USE_OBJCOPY" >&6
2497 else
2498   echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2500 fi
2501
2502
2503
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2513   CPP=
2514 fi
2515 if test -z "$CPP"; then
2516   if test "${ac_cv_prog_CPP+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519       # Double quotes because CPP needs to be expanded
2520     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2521     do
2522       ac_preproc_ok=false
2523 for ac_c_preproc_warn_flag in '' yes
2524 do
2525   # Use a header file that comes with gcc, so configuring glibc
2526   # with a fresh cross-compiler works.
2527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528   # <limits.h> exists even on freestanding compilers.
2529   # On the NeXT, cc -E runs the code through the compiler's parser,
2530   # not just through cpp. "Syntax error" is here to catch this case.
2531   cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537 #ifdef __STDC__
2538 # include <limits.h>
2539 #else
2540 # include <assert.h>
2541 #endif
2542                      Syntax error
2543 _ACEOF
2544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2546   ac_status=$?
2547   grep -v '^ *+' conftest.er1 >conftest.err
2548   rm -f conftest.er1
2549   cat conftest.err >&5
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); } >/dev/null; then
2552   if test -s conftest.err; then
2553     ac_cpp_err=$ac_c_preproc_warn_flag
2554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2555   else
2556     ac_cpp_err=
2557   fi
2558 else
2559   ac_cpp_err=yes
2560 fi
2561 if test -z "$ac_cpp_err"; then
2562   :
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567   # Broken: fails on valid input.
2568 continue
2569 fi
2570 rm -f conftest.err conftest.$ac_ext
2571
2572   # OK, works on sane cases.  Now check whether non-existent headers
2573   # can be detected and how.
2574   cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 #include <ac_nonexistent.h>
2581 _ACEOF
2582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } >/dev/null; then
2590   if test -s conftest.err; then
2591     ac_cpp_err=$ac_c_preproc_warn_flag
2592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2593   else
2594     ac_cpp_err=
2595   fi
2596 else
2597   ac_cpp_err=yes
2598 fi
2599 if test -z "$ac_cpp_err"; then
2600   # Broken: success on invalid input.
2601 continue
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606   # Passes both tests.
2607 ac_preproc_ok=:
2608 break
2609 fi
2610 rm -f conftest.err conftest.$ac_ext
2611
2612 done
2613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2614 rm -f conftest.err conftest.$ac_ext
2615 if $ac_preproc_ok; then
2616   break
2617 fi
2618
2619     done
2620     ac_cv_prog_CPP=$CPP
2621
2622 fi
2623   CPP=$ac_cv_prog_CPP
2624 else
2625   ac_cv_prog_CPP=$CPP
2626 fi
2627 echo "$as_me:$LINENO: result: $CPP" >&5
2628 echo "${ECHO_T}$CPP" >&6
2629 ac_preproc_ok=false
2630 for ac_c_preproc_warn_flag in '' yes
2631 do
2632   # Use a header file that comes with gcc, so configuring glibc
2633   # with a fresh cross-compiler works.
2634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2635   # <limits.h> exists even on freestanding compilers.
2636   # On the NeXT, cc -E runs the code through the compiler's parser,
2637   # not just through cpp. "Syntax error" is here to catch this case.
2638   cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 #ifdef __STDC__
2645 # include <limits.h>
2646 #else
2647 # include <assert.h>
2648 #endif
2649                      Syntax error
2650 _ACEOF
2651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } >/dev/null; then
2659   if test -s conftest.err; then
2660     ac_cpp_err=$ac_c_preproc_warn_flag
2661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2662   else
2663     ac_cpp_err=
2664   fi
2665 else
2666   ac_cpp_err=yes
2667 fi
2668 if test -z "$ac_cpp_err"; then
2669   :
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674   # Broken: fails on valid input.
2675 continue
2676 fi
2677 rm -f conftest.err conftest.$ac_ext
2678
2679   # OK, works on sane cases.  Now check whether non-existent headers
2680   # can be detected and how.
2681   cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687 #include <ac_nonexistent.h>
2688 _ACEOF
2689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2691   ac_status=$?
2692   grep -v '^ *+' conftest.er1 >conftest.err
2693   rm -f conftest.er1
2694   cat conftest.err >&5
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } >/dev/null; then
2697   if test -s conftest.err; then
2698     ac_cpp_err=$ac_c_preproc_warn_flag
2699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2700   else
2701     ac_cpp_err=
2702   fi
2703 else
2704   ac_cpp_err=yes
2705 fi
2706 if test -z "$ac_cpp_err"; then
2707   # Broken: success on invalid input.
2708 continue
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713   # Passes both tests.
2714 ac_preproc_ok=:
2715 break
2716 fi
2717 rm -f conftest.err conftest.$ac_ext
2718
2719 done
2720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2721 rm -f conftest.err conftest.$ac_ext
2722 if $ac_preproc_ok; then
2723   :
2724 else
2725   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2728 See \`config.log' for more details." >&2;}
2729    { (exit 1); exit 1; }; }
2730 fi
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739 echo "$as_me:$LINENO: checking for egrep" >&5
2740 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2741 if test "${ac_cv_prog_egrep+set}" = set; then
2742   echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2745     then ac_cv_prog_egrep='grep -E'
2746     else ac_cv_prog_egrep='egrep'
2747     fi
2748 fi
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2750 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2751  EGREP=$ac_cv_prog_egrep
2752
2753
2754 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2755 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2756 if test "${ac_cv_header_stdc+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765 #include <stdlib.h>
2766 #include <stdarg.h>
2767 #include <string.h>
2768 #include <float.h>
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_c_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_header_stdc=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_cv_header_stdc=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808
2809 if test $ac_cv_header_stdc = yes; then
2810   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2811   cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817 #include <string.h>
2818
2819 _ACEOF
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821   $EGREP "memchr" >/dev/null 2>&1; then
2822   :
2823 else
2824   ac_cv_header_stdc=no
2825 fi
2826 rm -f conftest*
2827
2828 fi
2829
2830 if test $ac_cv_header_stdc = yes; then
2831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2832   cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <stdlib.h>
2839
2840 _ACEOF
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842   $EGREP "free" >/dev/null 2>&1; then
2843   :
2844 else
2845   ac_cv_header_stdc=no
2846 fi
2847 rm -f conftest*
2848
2849 fi
2850
2851 if test $ac_cv_header_stdc = yes; then
2852   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2853   if test "$cross_compiling" = yes; then
2854   :
2855 else
2856   cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862 #include <ctype.h>
2863 #if ((' ' & 0x0FF) == 0x020)
2864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2866 #else
2867 # define ISLOWER(c) \
2868                    (('a' <= (c) && (c) <= 'i') \
2869                      || ('j' <= (c) && (c) <= 'r') \
2870                      || ('s' <= (c) && (c) <= 'z'))
2871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2872 #endif
2873
2874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2875 int
2876 main ()
2877 {
2878   int i;
2879   for (i = 0; i < 256; i++)
2880     if (XOR (islower (i), ISLOWER (i))
2881         || toupper (i) != TOUPPER (i))
2882       exit(2);
2883   exit (0);
2884 }
2885 _ACEOF
2886 rm -f conftest$ac_exeext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888   (eval $ac_link) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; }; then
2897   :
2898 else
2899   echo "$as_me: program exited with status $ac_status" >&5
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 ( exit $ac_status )
2904 ac_cv_header_stdc=no
2905 fi
2906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2907 fi
2908 fi
2909 fi
2910 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2911 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2912 if test $ac_cv_header_stdc = yes; then
2913
2914 cat >>confdefs.h <<\_ACEOF
2915 #define STDC_HEADERS 1
2916 _ACEOF
2917
2918 fi
2919
2920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2931                   inttypes.h stdint.h unistd.h
2932 do
2933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2934 echo "$as_me:$LINENO: checking for $ac_header" >&5
2935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 $ac_includes_default
2946
2947 #include <$ac_header>
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_c_werror_flag"
2959                          || test ! -s conftest.err'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; } &&
2965          { ac_try='test -s conftest.$ac_objext'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; }; then
2971   eval "$as_ac_Header=yes"
2972 else
2973   echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 eval "$as_ac_Header=no"
2977 fi
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 fi
2980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2983   cat >>confdefs.h <<_ACEOF
2984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2985 _ACEOF
2986
2987 fi
2988
2989 done
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021 for ac_header in \
3022         unistd.h \
3023         stdlib.h \
3024         errno.h \
3025         fcntl.h \
3026         stdarg.h \
3027         string.h \
3028         scsi/scsi.h \
3029         scsi/scsi_ioctl.h \
3030         scsi/sg.h \
3031         sys/gscdds.h \
3032         camlib.h \
3033         cam/cam_ccb.h \
3034         cam/scsi/scsi_message.h \
3035         sys/fsid.h \
3036         sys/fstyp.h \
3037         sys/stat.h \
3038         sys/types.h \
3039         sys/mnttab.h \
3040         sys/param.h \
3041         sys/time.h \
3042         sys/scsi/impl/uscsi.h \
3043         sys/scsi.h \
3044         sys/scsi_ctl.h \
3045         sys/ioctl.h \
3046         sys/mtio.h \
3047         sys/param.h \
3048         dslib.h \
3049         du/defs.h \
3050         ddk/ntddscsi.h
3051 do
3052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3054   echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 fi
3059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3061 else
3062   # Is the header compilable?
3063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071 $ac_includes_default
3072 #include <$ac_header>
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076   (eval $ac_compile) 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag"
3084                          || test ! -s conftest.err'
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); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092   (eval $ac_try) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; }; then
3096   ac_header_compiler=yes
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 ac_header_compiler=no
3102 fi
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3105 echo "${ECHO_T}$ac_header_compiler" >&6
3106
3107 # Is the header present?
3108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116 #include <$ac_header>
3117 _ACEOF
3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } >/dev/null; then
3126   if test -s conftest.err; then
3127     ac_cpp_err=$ac_c_preproc_warn_flag
3128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   ac_header_preproc=yes
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141   ac_header_preproc=no
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3145 echo "${ECHO_T}$ac_header_preproc" >&6
3146
3147 # So?  What about this header?
3148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3149   yes:no: )
3150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3154     ac_header_preproc=yes
3155     ;;
3156   no:yes:* )
3157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3169     (
3170       cat <<\_ASBOX
3171 ## ------------------------------------------ ##
3172 ## Report this to the AC_PACKAGE_NAME lists.  ##
3173 ## ------------------------------------------ ##
3174 _ASBOX
3175     ) |
3176       sed "s/^/$as_me: WARNING:     /" >&2
3177     ;;
3178 esac
3179 echo "$as_me:$LINENO: checking for $ac_header" >&5
3180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   eval "$as_ac_Header=\$ac_header_preproc"
3185 fi
3186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3188
3189 fi
3190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3191   cat >>confdefs.h <<_ACEOF
3192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3193 _ACEOF
3194
3195 fi
3196
3197 done
3198
3199
3200 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3202 if test "${ac_cv_c_const+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h.  */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h.  */
3211
3212 int
3213 main ()
3214 {
3215 /* FIXME: Include the comments suggested by Paul. */
3216 #ifndef __cplusplus
3217   /* Ultrix mips cc rejects this.  */
3218   typedef int charset[2];
3219   const charset x;
3220   /* SunOS 4.1.1 cc rejects this.  */
3221   char const *const *ccp;
3222   char **p;
3223   /* NEC SVR4.0.2 mips cc rejects this.  */
3224   struct point {int x, y;};
3225   static struct point const zero = {0,0};
3226   /* AIX XL C 1.02.0.0 rejects this.
3227      It does not let you subtract one const X* pointer from another in
3228      an arm of an if-expression whose if-part is not a constant
3229      expression */
3230   const char *g = "string";
3231   ccp = &g + (g ? g-g : 0);
3232   /* HPUX 7.0 cc rejects these. */
3233   ++ccp;
3234   p = (char**) ccp;
3235   ccp = (char const *const *) p;
3236   { /* SCO 3.2v4 cc rejects this.  */
3237     char *t;
3238     char const *s = 0 ? (char *) 0 : (char const *) 0;
3239
3240     *t++ = 0;
3241   }
3242   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3243     int x[] = {25, 17};
3244     const int *foo = &x[0];
3245     ++foo;
3246   }
3247   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3248     typedef const int *iptr;
3249     iptr p = 0;
3250     ++p;
3251   }
3252   { /* AIX XL C 1.02.0.0 rejects this saying
3253        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3254     struct s { int j; const int *ap[3]; };
3255     struct s *b; b->j = 5;
3256   }
3257   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3258     const int foo = 10;
3259   }
3260 #endif
3261
3262   ;
3263   return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268   (eval $ac_compile) 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -z "$ac_c_werror_flag"
3276                          || test ! -s conftest.err'
3277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278   (eval $ac_try) 2>&5
3279   ac_status=$?
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); }; } &&
3282          { ac_try='test -s conftest.$ac_objext'
3283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284   (eval $ac_try) 2>&5
3285   ac_status=$?
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); }; }; then
3288   ac_cv_c_const=yes
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 ac_cv_c_const=no
3294 fi
3295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3296 fi
3297 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3298 echo "${ECHO_T}$ac_cv_c_const" >&6
3299 if test $ac_cv_c_const = no; then
3300
3301 cat >>confdefs.h <<\_ACEOF
3302 #define const
3303 _ACEOF
3304
3305 fi
3306
3307 echo "$as_me:$LINENO: checking for size_t" >&5
3308 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3309 if test "${ac_cv_type_size_t+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318 $ac_includes_default
3319 int
3320 main ()
3321 {
3322 if ((size_t *) 0)
3323   return 0;
3324 if (sizeof (size_t))
3325   return 0;
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332   (eval $ac_compile) 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } &&
3339          { ac_try='test -z "$ac_c_werror_flag"
3340                          || test ! -s conftest.err'
3341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342   (eval $ac_try) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_cv_type_size_t=yes
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 ac_cv_type_size_t=no
3358 fi
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3362 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3363 if test $ac_cv_type_size_t = yes; then
3364   :
3365 else
3366
3367 cat >>confdefs.h <<_ACEOF
3368 #define size_t unsigned
3369 _ACEOF
3370
3371 fi
3372
3373 echo "$as_me:$LINENO: checking for pid_t" >&5
3374 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3375 if test "${ac_cv_type_pid_t+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384 $ac_includes_default
3385 int
3386 main ()
3387 {
3388 if ((pid_t *) 0)
3389   return 0;
3390 if (sizeof (pid_t))
3391   return 0;
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398   (eval $ac_compile) 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -z "$ac_c_werror_flag"
3406                          || test ! -s conftest.err'
3407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408   (eval $ac_try) 2>&5
3409   ac_status=$?
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); }; } &&
3412          { ac_try='test -s conftest.$ac_objext'
3413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414   (eval $ac_try) 2>&5
3415   ac_status=$?
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); }; }; then
3418   ac_cv_type_pid_t=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 ac_cv_type_pid_t=no
3424 fi
3425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426 fi
3427 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3428 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3429 if test $ac_cv_type_pid_t = yes; then
3430   :
3431 else
3432
3433 cat >>confdefs.h <<_ACEOF
3434 #define pid_t int
3435 _ACEOF
3436
3437 fi
3438
3439 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3440 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3441 if test "${ac_cv_header_time+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #include <sys/types.h>
3451 #include <sys/time.h>
3452 #include <time.h>
3453
3454 int
3455 main ()
3456 {
3457 if ((struct tm *) 0)
3458 return 0;
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465   (eval $ac_compile) 2>conftest.er1
3466   ac_status=$?
3467   grep -v '^ *+' conftest.er1 >conftest.err
3468   rm -f conftest.er1
3469   cat conftest.err >&5
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); } &&
3472          { ac_try='test -z "$ac_c_werror_flag"
3473                          || test ! -s conftest.err'
3474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475   (eval $ac_try) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }; } &&
3479          { ac_try='test -s conftest.$ac_objext'
3480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481   (eval $ac_try) 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; }; then
3485   ac_cv_header_time=yes
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 ac_cv_header_time=no
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3495 echo "${ECHO_T}$ac_cv_header_time" >&6
3496 if test $ac_cv_header_time = yes; then
3497
3498 cat >>confdefs.h <<\_ACEOF
3499 #define TIME_WITH_SYS_TIME 1
3500 _ACEOF
3501
3502 fi
3503
3504 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3505 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3506 if test "${ac_cv_struct_tm+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h.  */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h.  */
3515 #include <sys/types.h>
3516 #include <time.h>
3517
3518 int
3519 main ()
3520 {
3521 struct tm *tp; tp->tm_sec;
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528   (eval $ac_compile) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_c_werror_flag"
3536                          || test ! -s conftest.err'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; } &&
3542          { ac_try='test -s conftest.$ac_objext'
3543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544   (eval $ac_try) 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; }; then
3548   ac_cv_struct_tm=time.h
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 ac_cv_struct_tm=sys/time.h
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3558 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3559 if test $ac_cv_struct_tm = sys/time.h; then
3560
3561 cat >>confdefs.h <<\_ACEOF
3562 #define TM_IN_SYS_TIME 1
3563 _ACEOF
3564
3565 fi
3566
3567 echo "$as_me:$LINENO: checking for int" >&5
3568 echo $ECHO_N "checking for int... $ECHO_C" >&6
3569 if test "${ac_cv_type_int+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578 $ac_includes_default
3579 int
3580 main ()
3581 {
3582 if ((int *) 0)
3583   return 0;
3584 if (sizeof (int))
3585   return 0;
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592   (eval $ac_compile) 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } &&
3599          { ac_try='test -z "$ac_c_werror_flag"
3600                          || test ! -s conftest.err'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; } &&
3606          { ac_try='test -s conftest.$ac_objext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_type_int=yes
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 ac_cv_type_int=no
3618 fi
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3622 echo "${ECHO_T}$ac_cv_type_int" >&6
3623
3624 echo "$as_me:$LINENO: checking size of int" >&5
3625 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3626 if test "${ac_cv_sizeof_int+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   if test "$ac_cv_type_int" = yes; then
3630   # The cast to unsigned long works around a bug in the HP C Compiler
3631   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3632   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3633   # This bug is HP SR number 8606223364.
3634   if test "$cross_compiling" = yes; then
3635   # Depending upon the size, compute the lo and hi bounds.
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642 $ac_includes_default
3643 int
3644 main ()
3645 {
3646 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3647 test_array [0] = 0
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655   (eval $ac_compile) 2>conftest.er1
3656   ac_status=$?
3657   grep -v '^ *+' conftest.er1 >conftest.err
3658   rm -f conftest.er1
3659   cat conftest.err >&5
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); } &&
3662          { ac_try='test -z "$ac_c_werror_flag"
3663                          || test ! -s conftest.err'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; } &&
3669          { ac_try='test -s conftest.$ac_objext'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   ac_lo=0 ac_mid=0
3676   while :; do
3677     cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683 $ac_includes_default
3684 int
3685 main ()
3686 {
3687 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3688 test_array [0] = 0
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696   (eval $ac_compile) 2>conftest.er1
3697   ac_status=$?
3698   grep -v '^ *+' conftest.er1 >conftest.err
3699   rm -f conftest.er1
3700   cat conftest.err >&5
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703          { ac_try='test -z "$ac_c_werror_flag"
3704                          || test ! -s conftest.err'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; } &&
3710          { ac_try='test -s conftest.$ac_objext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   ac_hi=$ac_mid; break
3717 else
3718   echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 ac_lo=`expr $ac_mid + 1`
3722                     if test $ac_lo -le $ac_mid; then
3723                       ac_lo= ac_hi=
3724                       break
3725                     fi
3726                     ac_mid=`expr 2 '*' $ac_mid + 1`
3727 fi
3728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3729   done
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h.  */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h.  */
3740 $ac_includes_default
3741 int
3742 main ()
3743 {
3744 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3745 test_array [0] = 0
3746
3747   ;
3748   return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753   (eval $ac_compile) 2>conftest.er1
3754   ac_status=$?
3755   grep -v '^ *+' conftest.er1 >conftest.err
3756   rm -f conftest.er1
3757   cat conftest.err >&5
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } &&
3760          { ac_try='test -z "$ac_c_werror_flag"
3761                          || test ! -s conftest.err'
3762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }; } &&
3767          { ac_try='test -s conftest.$ac_objext'
3768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769   (eval $ac_try) 2>&5
3770   ac_status=$?
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); }; }; then
3773   ac_hi=-1 ac_mid=-1
3774   while :; do
3775     cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 $ac_includes_default
3782 int
3783 main ()
3784 {
3785 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3786 test_array [0] = 0
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794   (eval $ac_compile) 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag"
3802                          || test ! -s conftest.err'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; } &&
3808          { ac_try='test -s conftest.$ac_objext'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; }; then
3814   ac_lo=$ac_mid; break
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_hi=`expr '(' $ac_mid ')' - 1`
3820                        if test $ac_mid -le $ac_hi; then
3821                          ac_lo= ac_hi=
3822                          break
3823                        fi
3824                        ac_mid=`expr 2 '*' $ac_mid`
3825 fi
3826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3827   done
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 ac_lo= ac_hi=
3833 fi
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 fi
3836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3837 # Binary search between lo and hi bounds.
3838 while test "x$ac_lo" != "x$ac_hi"; do
3839   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 $ac_includes_default
3847 int
3848 main ()
3849 {
3850 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3851 test_array [0] = 0
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859   (eval $ac_compile) 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } &&
3866          { ac_try='test -z "$ac_c_werror_flag"
3867                          || test ! -s conftest.err'
3868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869   (eval $ac_try) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); }; } &&
3873          { ac_try='test -s conftest.$ac_objext'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; }; then
3879   ac_hi=$ac_mid
3880 else
3881   echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_lo=`expr '(' $ac_mid ')' + 1`
3885 fi
3886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887 done
3888 case $ac_lo in
3889 ?*) ac_cv_sizeof_int=$ac_lo;;
3890 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3891 See \`config.log' for more details." >&5
3892 echo "$as_me: error: cannot compute sizeof (int), 77
3893 See \`config.log' for more details." >&2;}
3894    { (exit 1); exit 1; }; } ;;
3895 esac
3896 else
3897   if test "$cross_compiling" = yes; then
3898   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3899 See \`config.log' for more details." >&5
3900 echo "$as_me: error: cannot run test program while cross compiling
3901 See \`config.log' for more details." >&2;}
3902    { (exit 1); exit 1; }; }
3903 else
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 $ac_includes_default
3911 long longval () { return (long) (sizeof (int)); }
3912 unsigned long ulongval () { return (long) (sizeof (int)); }
3913 #include <stdio.h>
3914 #include <stdlib.h>
3915 int
3916 main ()
3917 {
3918
3919   FILE *f = fopen ("conftest.val", "w");
3920   if (! f)
3921     exit (1);
3922   if (((long) (sizeof (int))) < 0)
3923     {
3924       long i = longval ();
3925       if (i != ((long) (sizeof (int))))
3926         exit (1);
3927       fprintf (f, "%ld\n", i);
3928     }
3929   else
3930     {
3931       unsigned long i = ulongval ();
3932       if (i != ((long) (sizeof (int))))
3933         exit (1);
3934       fprintf (f, "%lu\n", i);
3935     }
3936   exit (ferror (f) || fclose (f) != 0);
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 rm -f conftest$ac_exeext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3944   (eval $ac_link) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   ac_cv_sizeof_int=`cat conftest.val`
3954 else
3955   echo "$as_me: program exited with status $ac_status" >&5
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 ( exit $ac_status )
3960 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3961 See \`config.log' for more details." >&5
3962 echo "$as_me: error: cannot compute sizeof (int), 77
3963 See \`config.log' for more details." >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 fi
3969 rm -f conftest.val
3970 else
3971   ac_cv_sizeof_int=0
3972 fi
3973 fi
3974 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3975 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3976 cat >>confdefs.h <<_ACEOF
3977 #define SIZEOF_INT $ac_cv_sizeof_int
3978 _ACEOF
3979
3980
3981 echo "$as_me:$LINENO: checking for long" >&5
3982 echo $ECHO_N "checking for long... $ECHO_C" >&6
3983 if test "${ac_cv_type_long+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 $ac_includes_default
3993 int
3994 main ()
3995 {
3996 if ((long *) 0)
3997   return 0;
3998 if (sizeof (long))
3999   return 0;
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006   (eval $ac_compile) 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } &&
4013          { ac_try='test -z "$ac_c_werror_flag"
4014                          || test ! -s conftest.err'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; } &&
4020          { ac_try='test -s conftest.$ac_objext'
4021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022   (eval $ac_try) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; }; then
4026   ac_cv_type_long=yes
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_cv_type_long=no
4032 fi
4033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4036 echo "${ECHO_T}$ac_cv_type_long" >&6
4037
4038 echo "$as_me:$LINENO: checking size of long" >&5
4039 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4040 if test "${ac_cv_sizeof_long+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   if test "$ac_cv_type_long" = yes; then
4044   # The cast to unsigned long works around a bug in the HP C Compiler
4045   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4046   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4047   # This bug is HP SR number 8606223364.
4048   if test "$cross_compiling" = yes; then
4049   # Depending upon the size, compute the lo and hi bounds.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 $ac_includes_default
4057 int
4058 main ()
4059 {
4060 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4061 test_array [0] = 0
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4069   (eval $ac_compile) 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag"
4077                          || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest.$ac_objext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   ac_lo=0 ac_mid=0
4090   while :; do
4091     cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097 $ac_includes_default
4098 int
4099 main ()
4100 {
4101 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4102 test_array [0] = 0
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110   (eval $ac_compile) 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -z "$ac_c_werror_flag"
4118                          || test ! -s conftest.err'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; } &&
4124          { ac_try='test -s conftest.$ac_objext'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; }; then
4130   ac_hi=$ac_mid; break
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_lo=`expr $ac_mid + 1`
4136                     if test $ac_lo -le $ac_mid; then
4137                       ac_lo= ac_hi=
4138                       break
4139                     fi
4140                     ac_mid=`expr 2 '*' $ac_mid + 1`
4141 fi
4142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4143   done
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 $ac_includes_default
4155 int
4156 main ()
4157 {
4158 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4159 test_array [0] = 0
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167   (eval $ac_compile) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"
4175                          || test ! -s conftest.err'
4176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177   (eval $ac_try) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   ac_hi=-1 ac_mid=-1
4188   while :; do
4189     cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 $ac_includes_default
4196 int
4197 main ()
4198 {
4199 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4200 test_array [0] = 0
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208   (eval $ac_compile) 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } &&
4215          { ac_try='test -z "$ac_c_werror_flag"
4216                          || test ! -s conftest.err'
4217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218   (eval $ac_try) 2>&5
4219   ac_status=$?
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); }; } &&
4222          { ac_try='test -s conftest.$ac_objext'
4223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224   (eval $ac_try) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; }; then
4228   ac_lo=$ac_mid; break
4229 else
4230   echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 ac_hi=`expr '(' $ac_mid ')' - 1`
4234                        if test $ac_mid -le $ac_hi; then
4235                          ac_lo= ac_hi=
4236                          break
4237                        fi
4238                        ac_mid=`expr 2 '*' $ac_mid`
4239 fi
4240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241   done
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246 ac_lo= ac_hi=
4247 fi
4248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 # Binary search between lo and hi bounds.
4252 while test "x$ac_lo" != "x$ac_hi"; do
4253   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4254   cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 $ac_includes_default
4261 int
4262 main ()
4263 {
4264 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4265 test_array [0] = 0
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273   (eval $ac_compile) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag"
4281                          || test ! -s conftest.err'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; } &&
4287          { ac_try='test -s conftest.$ac_objext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ac_hi=$ac_mid
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ac_lo=`expr '(' $ac_mid ')' + 1`
4299 fi
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 done
4302 case $ac_lo in
4303 ?*) ac_cv_sizeof_long=$ac_lo;;
4304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4305 See \`config.log' for more details." >&5
4306 echo "$as_me: error: cannot compute sizeof (long), 77
4307 See \`config.log' for more details." >&2;}
4308    { (exit 1); exit 1; }; } ;;
4309 esac
4310 else
4311   if test "$cross_compiling" = yes; then
4312   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4313 See \`config.log' for more details." >&5
4314 echo "$as_me: error: cannot run test program while cross compiling
4315 See \`config.log' for more details." >&2;}
4316    { (exit 1); exit 1; }; }
4317 else
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 $ac_includes_default
4325 long longval () { return (long) (sizeof (long)); }
4326 unsigned long ulongval () { return (long) (sizeof (long)); }
4327 #include <stdio.h>
4328 #include <stdlib.h>
4329 int
4330 main ()
4331 {
4332
4333   FILE *f = fopen ("conftest.val", "w");
4334   if (! f)
4335     exit (1);
4336   if (((long) (sizeof (long))) < 0)
4337     {
4338       long i = longval ();
4339       if (i != ((long) (sizeof (long))))
4340         exit (1);
4341       fprintf (f, "%ld\n", i);
4342     }
4343   else
4344     {
4345       unsigned long i = ulongval ();
4346       if (i != ((long) (sizeof (long))))
4347         exit (1);
4348       fprintf (f, "%lu\n", i);
4349     }
4350   exit (ferror (f) || fclose (f) != 0);
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest$ac_exeext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358   (eval $ac_link) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   ac_cv_sizeof_long=`cat conftest.val`
4368 else
4369   echo "$as_me: program exited with status $ac_status" >&5
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ( exit $ac_status )
4374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4375 See \`config.log' for more details." >&5
4376 echo "$as_me: error: cannot compute sizeof (long), 77
4377 See \`config.log' for more details." >&2;}
4378    { (exit 1); exit 1; }; }
4379 fi
4380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 fi
4383 rm -f conftest.val
4384 else
4385   ac_cv_sizeof_long=0
4386 fi
4387 fi
4388 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4389 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4390 cat >>confdefs.h <<_ACEOF
4391 #define SIZEOF_LONG $ac_cv_sizeof_long
4392 _ACEOF
4393
4394
4395 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4396 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4397 if test "${ac_cv_c_bigendian+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   # See if sys/param.h defines the BYTE_ORDER macro.
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h.  */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h.  */
4407 #include <sys/types.h>
4408 #include <sys/param.h>
4409
4410 int
4411 main ()
4412 {
4413 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4414  bogus endian macros
4415 #endif
4416
4417   ;
4418   return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423   (eval $ac_compile) 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } &&
4430          { ac_try='test -z "$ac_c_werror_flag"
4431                          || test ! -s conftest.err'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; } &&
4437          { ac_try='test -s conftest.$ac_objext'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; }; then
4443   # It does; now see whether it defined to BIG_ENDIAN or not.
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 #include <sys/types.h>
4451 #include <sys/param.h>
4452
4453 int
4454 main ()
4455 {
4456 #if BYTE_ORDER != BIG_ENDIAN
4457  not big endian
4458 #endif
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466   (eval $ac_compile) 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag"
4474                          || test ! -s conftest.err'
4475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476   (eval $ac_try) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; } &&
4480          { ac_try='test -s conftest.$ac_objext'
4481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482   (eval $ac_try) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; }; then
4486   ac_cv_c_bigendian=yes
4487 else
4488   echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ac_cv_c_bigendian=no
4492 fi
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494 else
4495   echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 # It does not; compile a test program.
4499 if test "$cross_compiling" = yes; then
4500   # try to guess the endianness by grepping values into an object file
4501   ac_cv_c_bigendian=unknown
4502   cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h.  */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h.  */
4508 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4509 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4510 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4511 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4512 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4513 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4514 int
4515 main ()
4516 {
4517  _ascii (); _ebcdic ();
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524   (eval $ac_compile) 2>conftest.er1
4525   ac_status=$?
4526   grep -v '^ *+' conftest.er1 >conftest.err
4527   rm -f conftest.er1
4528   cat conftest.err >&5
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -z "$ac_c_werror_flag"
4532                          || test ! -s conftest.err'
4533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534   (eval $ac_try) 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; } &&
4538          { ac_try='test -s conftest.$ac_objext'
4539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540   (eval $ac_try) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; }; then
4544   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4545   ac_cv_c_bigendian=yes
4546 fi
4547 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4548   if test "$ac_cv_c_bigendian" = unknown; then
4549     ac_cv_c_bigendian=no
4550   else
4551     # finding both strings is unlikely to happen, but who knows?
4552     ac_cv_c_bigendian=unknown
4553   fi
4554 fi
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 fi
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561 else
4562   cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 int
4569 main ()
4570 {
4571   /* Are we little or big endian?  From Harbison&Steele.  */
4572   union
4573   {
4574     long l;
4575     char c[sizeof (long)];
4576   } u;
4577   u.l = 1;
4578   exit (u.c[sizeof (long) - 1] == 1);
4579 }
4580 _ACEOF
4581 rm -f conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583   (eval $ac_link) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   ac_cv_c_bigendian=no
4593 else
4594   echo "$as_me: program exited with status $ac_status" >&5
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ( exit $ac_status )
4599 ac_cv_c_bigendian=yes
4600 fi
4601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4602 fi
4603 fi
4604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4607 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4608 case $ac_cv_c_bigendian in
4609   yes)
4610
4611 cat >>confdefs.h <<\_ACEOF
4612 #define WORDS_BIGENDIAN 1
4613 _ACEOF
4614  ;;
4615   no)
4616      ;;
4617   *)
4618     { { echo "$as_me:$LINENO: error: unknown endianness
4619 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4620 echo "$as_me: error: unknown endianness
4621 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4622    { (exit 1); exit 1; }; } ;;
4623 esac
4624
4625
4626
4627
4628
4629 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4630 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4631 if test "${ac_cv_type_signal+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640 #include <sys/types.h>
4641 #include <signal.h>
4642 #ifdef signal
4643 # undef signal
4644 #endif
4645 #ifdef __cplusplus
4646 extern "C" void (*signal (int, void (*)(int)))(int);
4647 #else
4648 void (*signal ()) ();
4649 #endif
4650
4651 int
4652 main ()
4653 {
4654 int i;
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661   (eval $ac_compile) 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } &&
4668          { ac_try='test -z "$ac_c_werror_flag"
4669                          || test ! -s conftest.err'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; } &&
4675          { ac_try='test -s conftest.$ac_objext'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; }; then
4681   ac_cv_type_signal=void
4682 else
4683   echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ac_cv_type_signal=int
4687 fi
4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4691 echo "${ECHO_T}$ac_cv_type_signal" >&6
4692
4693 cat >>confdefs.h <<_ACEOF
4694 #define RETSIGTYPE $ac_cv_type_signal
4695 _ACEOF
4696
4697
4698
4699 for ac_func in vprintf
4700 do
4701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4702 echo "$as_me:$LINENO: checking for $ac_func" >&5
4703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_var+set}\" = set"; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4715 #define $ac_func innocuous_$ac_func
4716
4717 /* System header to define __stub macros and hopefully few prototypes,
4718     which can conflict with char $ac_func (); below.
4719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720     <limits.h> exists even on freestanding compilers.  */
4721
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727
4728 #undef $ac_func
4729
4730 /* Override any gcc2 internal prototype to avoid an error.  */
4731 #ifdef __cplusplus
4732 extern "C"
4733 {
4734 #endif
4735 /* We use char because int might match the return type of a gcc2
4736    builtin and then its argument prototype would still apply.  */
4737 char $ac_func ();
4738 /* The GNU C library defines this for functions which it implements
4739     to always fail with ENOSYS.  Some functions are actually named
4740     something starting with __ and the normal name is an alias.  */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742 choke me
4743 #else
4744 char (*f) () = $ac_func;
4745 #endif
4746 #ifdef __cplusplus
4747 }
4748 #endif
4749
4750 int
4751 main ()
4752 {
4753 return f != $ac_func;
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 rm -f conftest.$ac_objext conftest$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760   (eval $ac_link) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -z "$ac_c_werror_flag"
4768                          || test ! -s conftest.err'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; } &&
4774          { ac_try='test -s conftest$ac_exeext'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; }; then
4780   eval "$as_ac_var=yes"
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 eval "$as_ac_var=no"
4786 fi
4787 rm -f conftest.err conftest.$ac_objext \
4788       conftest$ac_exeext conftest.$ac_ext
4789 fi
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4792 if test `eval echo '${'$as_ac_var'}'` = yes; then
4793   cat >>confdefs.h <<_ACEOF
4794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4795 _ACEOF
4796
4797 echo "$as_me:$LINENO: checking for _doprnt" >&5
4798 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4799 if test "${ac_cv_func__doprnt+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802   cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4810 #define _doprnt innocuous__doprnt
4811
4812 /* System header to define __stub macros and hopefully few prototypes,
4813     which can conflict with char _doprnt (); below.
4814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815     <limits.h> exists even on freestanding compilers.  */
4816
4817 #ifdef __STDC__
4818 # include <limits.h>
4819 #else
4820 # include <assert.h>
4821 #endif
4822
4823 #undef _doprnt
4824
4825 /* Override any gcc2 internal prototype to avoid an error.  */
4826 #ifdef __cplusplus
4827 extern "C"
4828 {
4829 #endif
4830 /* We use char because int might match the return type of a gcc2
4831    builtin and then its argument prototype would still apply.  */
4832 char _doprnt ();
4833 /* The GNU C library defines this for functions which it implements
4834     to always fail with ENOSYS.  Some functions are actually named
4835     something starting with __ and the normal name is an alias.  */
4836 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4837 choke me
4838 #else
4839 char (*f) () = _doprnt;
4840 #endif
4841 #ifdef __cplusplus
4842 }
4843 #endif
4844
4845 int
4846 main ()
4847 {
4848 return f != _doprnt;
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855   (eval $ac_link) 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } &&
4862          { ac_try='test -z "$ac_c_werror_flag"
4863                          || test ! -s conftest.err'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; } &&
4869          { ac_try='test -s conftest$ac_exeext'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; }; then
4875   ac_cv_func__doprnt=yes
4876 else
4877   echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880 ac_cv_func__doprnt=no
4881 fi
4882 rm -f conftest.err conftest.$ac_objext \
4883       conftest$ac_exeext conftest.$ac_ext
4884 fi
4885 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4886 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4887 if test $ac_cv_func__doprnt = yes; then
4888
4889 cat >>confdefs.h <<\_ACEOF
4890 #define HAVE_DOPRNT 1
4891 _ACEOF
4892
4893 fi
4894
4895 fi
4896 done
4897
4898
4899
4900
4901           ac_config_files="$ac_config_files Makefile"
4902 cat >confcache <<\_ACEOF
4903 # This file is a shell script that caches the results of configure
4904 # tests run on this system so they can be shared between configure
4905 # scripts and configure runs, see configure's option --config-cache.
4906 # It is not useful on other systems.  If it contains results you don't
4907 # want to keep, you may remove or edit it.
4908 #
4909 # config.status only pays attention to the cache file if you give it
4910 # the --recheck option to rerun configure.
4911 #
4912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4914 # following values.
4915
4916 _ACEOF
4917
4918 # The following way of writing the cache mishandles newlines in values,
4919 # but we know of no workaround that is simple, portable, and efficient.
4920 # So, don't put newlines in cache variables' values.
4921 # Ultrix sh set writes to stderr and can't be redirected directly,
4922 # and sets the high bit in the cache file unless we assign to the vars.
4923 {
4924   (set) 2>&1 |
4925     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4926     *ac_space=\ *)
4927       # `set' does not quote correctly, so add quotes (double-quote
4928       # substitution turns \\\\ into \\, and sed turns \\ into \).
4929       sed -n \
4930         "s/'/'\\\\''/g;
4931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4932       ;;
4933     *)
4934       # `set' quotes correctly as required by POSIX, so do not add quotes.
4935       sed -n \
4936         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4937       ;;
4938     esac;
4939 } |
4940   sed '
4941      t clear
4942      : clear
4943      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4944      t end
4945      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4946      : end' >>confcache
4947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4948   if test -w $cache_file; then
4949     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4950     cat confcache >$cache_file
4951   else
4952     echo "not updating unwritable cache $cache_file"
4953   fi
4954 fi
4955 rm -f confcache
4956
4957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4958 # Let make expand exec_prefix.
4959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4960
4961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4963 # trailing colons and then remove the whole line if VPATH becomes empty
4964 # (actually we leave an empty line to preserve line numbers).
4965 if test "x$srcdir" = x.; then
4966   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4967 s/:*\$(srcdir):*/:/;
4968 s/:*\${srcdir}:*/:/;
4969 s/:*@srcdir@:*/:/;
4970 s/^\([^=]*=[     ]*\):*/\1/;
4971 s/:*$//;
4972 s/^[^=]*=[       ]*$//;
4973 }'
4974 fi
4975
4976 DEFS=-DHAVE_CONFIG_H
4977
4978 ac_libobjs=
4979 ac_ltlibobjs=
4980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4981   # 1. Remove the extension, and $U if already installed.
4982   ac_i=`echo "$ac_i" |
4983          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4984   # 2. Add them.
4985   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4986   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4987 done
4988 LIBOBJS=$ac_libobjs
4989
4990 LTLIBOBJS=$ac_ltlibobjs
4991
4992
4993
4994 : ${CONFIG_STATUS=./config.status}
4995 ac_clean_files_save=$ac_clean_files
4996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4999 cat >$CONFIG_STATUS <<_ACEOF
5000 #! $SHELL
5001 # Generated by $as_me.
5002 # Run this file to recreate the current configuration.
5003 # Compiler output produced by configure, useful for debugging
5004 # configure, is in config.log if it exists.
5005
5006 debug=false
5007 ac_cs_recheck=false
5008 ac_cs_silent=false
5009 SHELL=\${CONFIG_SHELL-$SHELL}
5010 _ACEOF
5011
5012 cat >>$CONFIG_STATUS <<\_ACEOF
5013 ## --------------------- ##
5014 ## M4sh Initialization.  ##
5015 ## --------------------- ##
5016
5017 # Be Bourne compatible
5018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5019   emulate sh
5020   NULLCMD=:
5021   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5022   # is contrary to our usage.  Disable this feature.
5023   alias -g '${1+"$@"}'='"$@"'
5024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5025   set -o posix
5026 fi
5027 DUALCASE=1; export DUALCASE # for MKS sh
5028
5029 # Support unset when possible.
5030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5031   as_unset=unset
5032 else
5033   as_unset=false
5034 fi
5035
5036
5037 # Work around bugs in pre-3.0 UWIN ksh.
5038 $as_unset ENV MAIL MAILPATH
5039 PS1='$ '
5040 PS2='> '
5041 PS4='+ '
5042
5043 # NLS nuisances.
5044 for as_var in \
5045   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5046   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5047   LC_TELEPHONE LC_TIME
5048 do
5049   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5050     eval $as_var=C; export $as_var
5051   else
5052     $as_unset $as_var
5053   fi
5054 done
5055
5056 # Required to use basename.
5057 if expr a : '\(a\)' >/dev/null 2>&1; then
5058   as_expr=expr
5059 else
5060   as_expr=false
5061 fi
5062
5063 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5064   as_basename=basename
5065 else
5066   as_basename=false
5067 fi
5068
5069
5070 # Name of the executable.
5071 as_me=`$as_basename "$0" ||
5072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5073          X"$0" : 'X\(//\)$' \| \
5074          X"$0" : 'X\(/\)$' \| \
5075          .     : '\(.\)' 2>/dev/null ||
5076 echo X/"$0" |
5077     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5078           /^X\/\(\/\/\)$/{ s//\1/; q; }
5079           /^X\/\(\/\).*/{ s//\1/; q; }
5080           s/.*/./; q'`
5081
5082
5083 # PATH needs CR, and LINENO needs CR and PATH.
5084 # Avoid depending upon Character Ranges.
5085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5088 as_cr_digits='0123456789'
5089 as_cr_alnum=$as_cr_Letters$as_cr_digits
5090
5091 # The user is always right.
5092 if test "${PATH_SEPARATOR+set}" != set; then
5093   echo "#! /bin/sh" >conf$$.sh
5094   echo  "exit 0"   >>conf$$.sh
5095   chmod +x conf$$.sh
5096   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5097     PATH_SEPARATOR=';'
5098   else
5099     PATH_SEPARATOR=:
5100   fi
5101   rm -f conf$$.sh
5102 fi
5103
5104
5105   as_lineno_1=$LINENO
5106   as_lineno_2=$LINENO
5107   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5108   test "x$as_lineno_1" != "x$as_lineno_2" &&
5109   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5110   # Find who we are.  Look in the path if we contain no path at all
5111   # relative or not.
5112   case $0 in
5113     *[\\/]* ) as_myself=$0 ;;
5114     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5120 done
5121
5122        ;;
5123   esac
5124   # We did not find ourselves, most probably we were run as `sh COMMAND'
5125   # in which case we are not to be found in the path.
5126   if test "x$as_myself" = x; then
5127     as_myself=$0
5128   fi
5129   if test ! -f "$as_myself"; then
5130     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5131 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5132    { (exit 1); exit 1; }; }
5133   fi
5134   case $CONFIG_SHELL in
5135   '')
5136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141   for as_base in sh bash ksh sh5; do
5142          case $as_dir in
5143          /*)
5144            if ("$as_dir/$as_base" -c '
5145   as_lineno_1=$LINENO
5146   as_lineno_2=$LINENO
5147   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5148   test "x$as_lineno_1" != "x$as_lineno_2" &&
5149   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5150              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5151              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5152              CONFIG_SHELL=$as_dir/$as_base
5153              export CONFIG_SHELL
5154              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5155            fi;;
5156          esac
5157        done
5158 done
5159 ;;
5160   esac
5161
5162   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5163   # uniformly replaced by the line number.  The first 'sed' inserts a
5164   # line-number line before each line; the second 'sed' does the real
5165   # work.  The second script uses 'N' to pair each line-number line
5166   # with the numbered line, and appends trailing '-' during
5167   # substitution so that $LINENO is not a special case at line end.
5168   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5169   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5170   sed '=' <$as_myself |
5171     sed '
5172       N
5173       s,$,-,
5174       : loop
5175       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5176       t loop
5177       s,-$,,
5178       s,^['$as_cr_digits']*\n,,
5179     ' >$as_me.lineno &&
5180   chmod +x $as_me.lineno ||
5181     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5182 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5183    { (exit 1); exit 1; }; }
5184
5185   # Don't try to exec as it changes $[0], causing all sort of problems
5186   # (the dirname of $[0] is not the place where we might find the
5187   # original and so on.  Autoconf is especially sensible to this).
5188   . ./$as_me.lineno
5189   # Exit status is that of the last command.
5190   exit
5191 }
5192
5193
5194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5195   *c*,-n*) ECHO_N= ECHO_C='
5196 ' ECHO_T='      ' ;;
5197   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5198   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5199 esac
5200
5201 if expr a : '\(a\)' >/dev/null 2>&1; then
5202   as_expr=expr
5203 else
5204   as_expr=false
5205 fi
5206
5207 rm -f conf$$ conf$$.exe conf$$.file
5208 echo >conf$$.file
5209 if ln -s conf$$.file conf$$ 2>/dev/null; then
5210   # We could just check for DJGPP; but this test a) works b) is more generic
5211   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5212   if test -f conf$$.exe; then
5213     # Don't use ln at all; we don't have any links
5214     as_ln_s='cp -p'
5215   else
5216     as_ln_s='ln -s'
5217   fi
5218 elif ln conf$$.file conf$$ 2>/dev/null; then
5219   as_ln_s=ln
5220 else
5221   as_ln_s='cp -p'
5222 fi
5223 rm -f conf$$ conf$$.exe conf$$.file
5224
5225 if mkdir -p . 2>/dev/null; then
5226   as_mkdir_p=:
5227 else
5228   test -d ./-p && rmdir ./-p
5229   as_mkdir_p=false
5230 fi
5231
5232 as_executable_p="test -f"
5233
5234 # Sed expression to map a string onto a valid CPP name.
5235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5236
5237 # Sed expression to map a string onto a valid variable name.
5238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5239
5240
5241 # IFS
5242 # We need space, tab and new line, in precisely that order.
5243 as_nl='
5244 '
5245 IFS="   $as_nl"
5246
5247 # CDPATH.
5248 $as_unset CDPATH
5249
5250 exec 6>&1
5251
5252 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5253 # report actual input values of CONFIG_FILES etc. instead of their
5254 # values after options handling.  Logging --version etc. is OK.
5255 exec 5>>config.log
5256 {
5257   echo
5258   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5259 ## Running $as_me. ##
5260 _ASBOX
5261 } >&5
5262 cat >&5 <<_CSEOF
5263
5264 This file was extended by $as_me, which was
5265 generated by GNU Autoconf 2.59.  Invocation command line was
5266
5267   CONFIG_FILES    = $CONFIG_FILES
5268   CONFIG_HEADERS  = $CONFIG_HEADERS
5269   CONFIG_LINKS    = $CONFIG_LINKS
5270   CONFIG_COMMANDS = $CONFIG_COMMANDS
5271   $ $0 $@
5272
5273 _CSEOF
5274 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5275 echo >&5
5276 _ACEOF
5277
5278 # Files that config.status was made for.
5279 if test -n "$ac_config_files"; then
5280   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5281 fi
5282
5283 if test -n "$ac_config_headers"; then
5284   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5285 fi
5286
5287 if test -n "$ac_config_links"; then
5288   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5289 fi
5290
5291 if test -n "$ac_config_commands"; then
5292   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5293 fi
5294
5295 cat >>$CONFIG_STATUS <<\_ACEOF
5296
5297 ac_cs_usage="\
5298 \`$as_me' instantiates files from templates according to the
5299 current configuration.
5300
5301 Usage: $0 [OPTIONS] [FILE]...
5302
5303   -h, --help       print this help, then exit
5304   -V, --version    print version number, then exit
5305   -q, --quiet      do not print progress messages
5306   -d, --debug      don't remove temporary files
5307       --recheck    update $as_me by reconfiguring in the same conditions
5308   --file=FILE[:TEMPLATE]
5309                    instantiate the configuration file FILE
5310   --header=FILE[:TEMPLATE]
5311                    instantiate the configuration header FILE
5312
5313 Configuration files:
5314 $config_files
5315
5316 Configuration headers:
5317 $config_headers
5318
5319 Report bugs to <bug-autoconf@gnu.org>."
5320 _ACEOF
5321
5322 cat >>$CONFIG_STATUS <<_ACEOF
5323 ac_cs_version="\\
5324 config.status
5325 configured by $0, generated by GNU Autoconf 2.59,
5326   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5327
5328 Copyright (C) 2003 Free Software Foundation, Inc.
5329 This config.status script is free software; the Free Software Foundation
5330 gives unlimited permission to copy, distribute and modify it."
5331 srcdir=$srcdir
5332 INSTALL="$INSTALL"
5333 _ACEOF
5334
5335 cat >>$CONFIG_STATUS <<\_ACEOF
5336 # If no file are specified by the user, then we need to provide default
5337 # value.  By we need to know if files were specified by the user.
5338 ac_need_defaults=:
5339 while test $# != 0
5340 do
5341   case $1 in
5342   --*=*)
5343     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5344     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5345     ac_shift=:
5346     ;;
5347   -*)
5348     ac_option=$1
5349     ac_optarg=$2
5350     ac_shift=shift
5351     ;;
5352   *) # This is not an option, so the user has probably given explicit
5353      # arguments.
5354      ac_option=$1
5355      ac_need_defaults=false;;
5356   esac
5357
5358   case $ac_option in
5359   # Handling of the options.
5360 _ACEOF
5361 cat >>$CONFIG_STATUS <<\_ACEOF
5362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5363     ac_cs_recheck=: ;;
5364   --version | --vers* | -V )
5365     echo "$ac_cs_version"; exit 0 ;;
5366   --he | --h)
5367     # Conflict between --help and --header
5368     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5369 Try \`$0 --help' for more information." >&5
5370 echo "$as_me: error: ambiguous option: $1
5371 Try \`$0 --help' for more information." >&2;}
5372    { (exit 1); exit 1; }; };;
5373   --help | --hel | -h )
5374     echo "$ac_cs_usage"; exit 0 ;;
5375   --debug | --d* | -d )
5376     debug=: ;;
5377   --file | --fil | --fi | --f )
5378     $ac_shift
5379     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5380     ac_need_defaults=false;;
5381   --header | --heade | --head | --hea )
5382     $ac_shift
5383     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5384     ac_need_defaults=false;;
5385   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5386   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5387     ac_cs_silent=: ;;
5388
5389   # This is an error.
5390   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5391 Try \`$0 --help' for more information." >&5
5392 echo "$as_me: error: unrecognized option: $1
5393 Try \`$0 --help' for more information." >&2;}
5394    { (exit 1); exit 1; }; } ;;
5395
5396   *) ac_config_targets="$ac_config_targets $1" ;;
5397
5398   esac
5399   shift
5400 done
5401
5402 ac_configure_extra_args=
5403
5404 if $ac_cs_silent; then
5405   exec 6>/dev/null
5406   ac_configure_extra_args="$ac_configure_extra_args --silent"
5407 fi
5408
5409 _ACEOF
5410 cat >>$CONFIG_STATUS <<_ACEOF
5411 if \$ac_cs_recheck; then
5412   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5413   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5414 fi
5415
5416 _ACEOF
5417
5418
5419
5420
5421
5422 cat >>$CONFIG_STATUS <<\_ACEOF
5423 for ac_config_target in $ac_config_targets
5424 do
5425   case "$ac_config_target" in
5426   # Handling of arguments.
5427   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5428   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5429   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5431    { (exit 1); exit 1; }; };;
5432   esac
5433 done
5434
5435 # If the user did not use the arguments to specify the items to instantiate,
5436 # then the envvar interface is used.  Set only those that are not.
5437 # We use the long form for the default assignment because of an extremely
5438 # bizarre bug on SunOS 4.1.3.
5439 if $ac_need_defaults; then
5440   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5441   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5442 fi
5443
5444 # Have a temporary directory for convenience.  Make it in the build tree
5445 # simply because there is no reason to put it here, and in addition,
5446 # creating and moving files from /tmp can sometimes cause problems.
5447 # Create a temporary directory, and hook for its removal unless debugging.
5448 $debug ||
5449 {
5450   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5451   trap '{ (exit 1); exit 1; }' 1 2 13 15
5452 }
5453
5454 # Create a (secure) tmp directory for tmp files.
5455
5456 {
5457   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5458   test -n "$tmp" && test -d "$tmp"
5459 }  ||
5460 {
5461   tmp=./confstat$$-$RANDOM
5462   (umask 077 && mkdir $tmp)
5463 } ||
5464 {
5465    echo "$me: cannot create a temporary directory in ." >&2
5466    { (exit 1); exit 1; }
5467 }
5468
5469 _ACEOF
5470
5471 cat >>$CONFIG_STATUS <<_ACEOF
5472
5473 #
5474 # CONFIG_FILES section.
5475 #
5476
5477 # No need to generate the scripts if there are no CONFIG_FILES.
5478 # This happens for instance when ./config.status config.h
5479 if test -n "\$CONFIG_FILES"; then
5480   # Protect against being on the right side of a sed subst in config.status.
5481   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5482    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5483 s,@SHELL@,$SHELL,;t t
5484 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5485 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5486 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5487 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5488 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5489 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5490 s,@exec_prefix@,$exec_prefix,;t t
5491 s,@prefix@,$prefix,;t t
5492 s,@program_transform_name@,$program_transform_name,;t t
5493 s,@bindir@,$bindir,;t t
5494 s,@sbindir@,$sbindir,;t t
5495 s,@libexecdir@,$libexecdir,;t t
5496 s,@datadir@,$datadir,;t t
5497 s,@sysconfdir@,$sysconfdir,;t t
5498 s,@sharedstatedir@,$sharedstatedir,;t t
5499 s,@localstatedir@,$localstatedir,;t t
5500 s,@libdir@,$libdir,;t t
5501 s,@includedir@,$includedir,;t t
5502 s,@oldincludedir@,$oldincludedir,;t t
5503 s,@infodir@,$infodir,;t t
5504 s,@mandir@,$mandir,;t t
5505 s,@build_alias@,$build_alias,;t t
5506 s,@host_alias@,$host_alias,;t t
5507 s,@target_alias@,$target_alias,;t t
5508 s,@DEFS@,$DEFS,;t t
5509 s,@ECHO_C@,$ECHO_C,;t t
5510 s,@ECHO_N@,$ECHO_N,;t t
5511 s,@ECHO_T@,$ECHO_T,;t t
5512 s,@LIBS@,$LIBS,;t t
5513 s,@build@,$build,;t t
5514 s,@build_cpu@,$build_cpu,;t t
5515 s,@build_vendor@,$build_vendor,;t t
5516 s,@build_os@,$build_os,;t t
5517 s,@host@,$host,;t t
5518 s,@host_cpu@,$host_cpu,;t t
5519 s,@host_vendor@,$host_vendor,;t t
5520 s,@host_os@,$host_os,;t t
5521 s,@target@,$target,;t t
5522 s,@target_cpu@,$target_cpu,;t t
5523 s,@target_vendor@,$target_vendor,;t t
5524 s,@target_os@,$target_os,;t t
5525 s,@TARGET@,$TARGET,;t t
5526 s,@CPU@,$CPU,;t t
5527 s,@CC@,$CC,;t t
5528 s,@CFLAGS@,$CFLAGS,;t t
5529 s,@LDFLAGS@,$LDFLAGS,;t t
5530 s,@CPPFLAGS@,$CPPFLAGS,;t t
5531 s,@ac_ct_CC@,$ac_ct_CC,;t t
5532 s,@EXEEXT@,$EXEEXT,;t t
5533 s,@OBJEXT@,$OBJEXT,;t t
5534 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5535 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5536 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5537 s,@USE_OBJCOPY@,$USE_OBJCOPY,;t t
5538 s,@CPP@,$CPP,;t t
5539 s,@EGREP@,$EGREP,;t t
5540 s,@LIBOBJS@,$LIBOBJS,;t t
5541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5542 CEOF
5543
5544 _ACEOF
5545
5546   cat >>$CONFIG_STATUS <<\_ACEOF
5547   # Split the substitutions into bite-sized pieces for seds with
5548   # small command number limits, like on Digital OSF/1 and HP-UX.
5549   ac_max_sed_lines=48
5550   ac_sed_frag=1 # Number of current file.
5551   ac_beg=1 # First line for current file.
5552   ac_end=$ac_max_sed_lines # Line after last line for current file.
5553   ac_more_lines=:
5554   ac_sed_cmds=
5555   while $ac_more_lines; do
5556     if test $ac_beg -gt 1; then
5557       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5558     else
5559       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5560     fi
5561     if test ! -s $tmp/subs.frag; then
5562       ac_more_lines=false
5563     else
5564       # The purpose of the label and of the branching condition is to
5565       # speed up the sed processing (if there are no `@' at all, there
5566       # is no need to browse any of the substitutions).
5567       # These are the two extra sed commands mentioned above.
5568       (echo ':t
5569   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5570       if test -z "$ac_sed_cmds"; then
5571         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5572       else
5573         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5574       fi
5575       ac_sed_frag=`expr $ac_sed_frag + 1`
5576       ac_beg=$ac_end
5577       ac_end=`expr $ac_end + $ac_max_sed_lines`
5578     fi
5579   done
5580   if test -z "$ac_sed_cmds"; then
5581     ac_sed_cmds=cat
5582   fi
5583 fi # test -n "$CONFIG_FILES"
5584
5585 _ACEOF
5586 cat >>$CONFIG_STATUS <<\_ACEOF
5587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5589   case $ac_file in
5590   - | *:- | *:-:* ) # input from stdin
5591         cat >$tmp/stdin
5592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5596   * )   ac_file_in=$ac_file.in ;;
5597   esac
5598
5599   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5600   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5602          X"$ac_file" : 'X\(//\)[^/]' \| \
5603          X"$ac_file" : 'X\(//\)$' \| \
5604          X"$ac_file" : 'X\(/\)' \| \
5605          .     : '\(.\)' 2>/dev/null ||
5606 echo X"$ac_file" |
5607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5609           /^X\(\/\/\)$/{ s//\1/; q; }
5610           /^X\(\/\).*/{ s//\1/; q; }
5611           s/.*/./; q'`
5612   { if $as_mkdir_p; then
5613     mkdir -p "$ac_dir"
5614   else
5615     as_dir="$ac_dir"
5616     as_dirs=
5617     while test ! -d "$as_dir"; do
5618       as_dirs="$as_dir $as_dirs"
5619       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5621          X"$as_dir" : 'X\(//\)[^/]' \| \
5622          X"$as_dir" : 'X\(//\)$' \| \
5623          X"$as_dir" : 'X\(/\)' \| \
5624          .     : '\(.\)' 2>/dev/null ||
5625 echo X"$as_dir" |
5626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5628           /^X\(\/\/\)$/{ s//\1/; q; }
5629           /^X\(\/\).*/{ s//\1/; q; }
5630           s/.*/./; q'`
5631     done
5632     test ! -n "$as_dirs" || mkdir $as_dirs
5633   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5635    { (exit 1); exit 1; }; }; }
5636
5637   ac_builddir=.
5638
5639 if test "$ac_dir" != .; then
5640   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5641   # A "../" for each directory in $ac_dir_suffix.
5642   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5643 else
5644   ac_dir_suffix= ac_top_builddir=
5645 fi
5646
5647 case $srcdir in
5648   .)  # No --srcdir option.  We are building in place.
5649     ac_srcdir=.
5650     if test -z "$ac_top_builddir"; then
5651        ac_top_srcdir=.
5652     else
5653        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5654     fi ;;
5655   [\\/]* | ?:[\\/]* )  # Absolute path.
5656     ac_srcdir=$srcdir$ac_dir_suffix;
5657     ac_top_srcdir=$srcdir ;;
5658   *) # Relative path.
5659     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5660     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5661 esac
5662
5663 # Do not use `cd foo && pwd` to compute absolute paths, because
5664 # the directories may not exist.
5665 case `pwd` in
5666 .) ac_abs_builddir="$ac_dir";;
5667 *)
5668   case "$ac_dir" in
5669   .) ac_abs_builddir=`pwd`;;
5670   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5671   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5672   esac;;
5673 esac
5674 case $ac_abs_builddir in
5675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5676 *)
5677   case ${ac_top_builddir}. in
5678   .) ac_abs_top_builddir=$ac_abs_builddir;;
5679   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5680   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5681   esac;;
5682 esac
5683 case $ac_abs_builddir in
5684 .) ac_abs_srcdir=$ac_srcdir;;
5685 *)
5686   case $ac_srcdir in
5687   .) ac_abs_srcdir=$ac_abs_builddir;;
5688   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5689   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5690   esac;;
5691 esac
5692 case $ac_abs_builddir in
5693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5694 *)
5695   case $ac_top_srcdir in
5696   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5697   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5698   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5699   esac;;
5700 esac
5701
5702
5703   case $INSTALL in
5704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5705   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5706   esac
5707
5708   if test x"$ac_file" != x-; then
5709     { echo "$as_me:$LINENO: creating $ac_file" >&5
5710 echo "$as_me: creating $ac_file" >&6;}
5711     rm -f "$ac_file"
5712   fi
5713   # Let's still pretend it is `configure' which instantiates (i.e., don't
5714   # use $as_me), people would be surprised to read:
5715   #    /* config.h.  Generated by config.status.  */
5716   if test x"$ac_file" = x-; then
5717     configure_input=
5718   else
5719     configure_input="$ac_file.  "
5720   fi
5721   configure_input=$configure_input"Generated from `echo $ac_file_in |
5722                                      sed 's,.*/,,'` by configure."
5723
5724   # First look for the input files in the build tree, otherwise in the
5725   # src tree.
5726   ac_file_inputs=`IFS=:
5727     for f in $ac_file_in; do
5728       case $f in
5729       -) echo $tmp/stdin ;;
5730       [\\/$]*)
5731          # Absolute (can't be DOS-style, as IFS=:)
5732          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5733 echo "$as_me: error: cannot find input file: $f" >&2;}
5734    { (exit 1); exit 1; }; }
5735          echo "$f";;
5736       *) # Relative
5737          if test -f "$f"; then
5738            # Build tree
5739            echo "$f"
5740          elif test -f "$srcdir/$f"; then
5741            # Source tree
5742            echo "$srcdir/$f"
5743          else
5744            # /dev/null tree
5745            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5746 echo "$as_me: error: cannot find input file: $f" >&2;}
5747    { (exit 1); exit 1; }; }
5748          fi;;
5749       esac
5750     done` || { (exit 1); exit 1; }
5751 _ACEOF
5752 cat >>$CONFIG_STATUS <<_ACEOF
5753   sed "$ac_vpsub
5754 $extrasub
5755 _ACEOF
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5757 :t
5758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5759 s,@configure_input@,$configure_input,;t t
5760 s,@srcdir@,$ac_srcdir,;t t
5761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5762 s,@top_srcdir@,$ac_top_srcdir,;t t
5763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5764 s,@builddir@,$ac_builddir,;t t
5765 s,@abs_builddir@,$ac_abs_builddir,;t t
5766 s,@top_builddir@,$ac_top_builddir,;t t
5767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5768 s,@INSTALL@,$ac_INSTALL,;t t
5769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5770   rm -f $tmp/stdin
5771   if test x"$ac_file" != x-; then
5772     mv $tmp/out $ac_file
5773   else
5774     cat $tmp/out
5775     rm -f $tmp/out
5776   fi
5777
5778 done
5779 _ACEOF
5780 cat >>$CONFIG_STATUS <<\_ACEOF
5781
5782 #
5783 # CONFIG_HEADER section.
5784 #
5785
5786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5788 #
5789 # ac_d sets the value in "#define NAME VALUE" lines.
5790 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5791 ac_dB='[         ].*$,\1#\2'
5792 ac_dC=' '
5793 ac_dD=',;t'
5794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5795 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5796 ac_uB='$,\1#\2define\3'
5797 ac_uC=' '
5798 ac_uD=',;t'
5799
5800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5801   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5802   case $ac_file in
5803   - | *:- | *:-:* ) # input from stdin
5804         cat >$tmp/stdin
5805         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5806         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5807   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5808         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5809   * )   ac_file_in=$ac_file.in ;;
5810   esac
5811
5812   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5813 echo "$as_me: creating $ac_file" >&6;}
5814
5815   # First look for the input files in the build tree, otherwise in the
5816   # src tree.
5817   ac_file_inputs=`IFS=:
5818     for f in $ac_file_in; do
5819       case $f in
5820       -) echo $tmp/stdin ;;
5821       [\\/$]*)
5822          # Absolute (can't be DOS-style, as IFS=:)
5823          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5824 echo "$as_me: error: cannot find input file: $f" >&2;}
5825    { (exit 1); exit 1; }; }
5826          # Do quote $f, to prevent DOS paths from being IFS'd.
5827          echo "$f";;
5828       *) # Relative
5829          if test -f "$f"; then
5830            # Build tree
5831            echo "$f"
5832          elif test -f "$srcdir/$f"; then
5833            # Source tree
5834            echo "$srcdir/$f"
5835          else
5836            # /dev/null tree
5837            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5838 echo "$as_me: error: cannot find input file: $f" >&2;}
5839    { (exit 1); exit 1; }; }
5840          fi;;
5841       esac
5842     done` || { (exit 1); exit 1; }
5843   # Remove the trailing spaces.
5844   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5845
5846 _ACEOF
5847
5848 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5849 # `conftest.undefs', that substitutes the proper values into
5850 # config.h.in to produce config.h.  The first handles `#define'
5851 # templates, and the second `#undef' templates.
5852 # And first: Protect against being on the right side of a sed subst in
5853 # config.status.  Protect against being in an unquoted here document
5854 # in config.status.
5855 rm -f conftest.defines conftest.undefs
5856 # Using a here document instead of a string reduces the quoting nightmare.
5857 # Putting comments in sed scripts is not portable.
5858 #
5859 # `end' is used to avoid that the second main sed command (meant for
5860 # 0-ary CPP macros) applies to n-ary macro definitions.
5861 # See the Autoconf documentation for `clear'.
5862 cat >confdef2sed.sed <<\_ACEOF
5863 s/[\\&,]/\\&/g
5864 s,[\\$`],\\&,g
5865 t clear
5866 : clear
5867 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5868 t end
5869 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5870 : end
5871 _ACEOF
5872 # If some macros were called several times there might be several times
5873 # the same #defines, which is useless.  Nevertheless, we may not want to
5874 # sort them, since we want the *last* AC-DEFINE to be honored.
5875 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5876 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5877 rm -f confdef2sed.sed
5878
5879 # This sed command replaces #undef with comments.  This is necessary, for
5880 # example, in the case of _POSIX_SOURCE, which is predefined and required
5881 # on some systems where configure will not decide to define it.
5882 cat >>conftest.undefs <<\_ACEOF
5883 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5884 _ACEOF
5885
5886 # Break up conftest.defines because some shells have a limit on the size
5887 # of here documents, and old seds have small limits too (100 cmds).
5888 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5889 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5890 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5891 echo '  :' >>$CONFIG_STATUS
5892 rm -f conftest.tail
5893 while grep . conftest.defines >/dev/null
5894 do
5895   # Write a limited-size here document to $tmp/defines.sed.
5896   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5897   # Speed up: don't consider the non `#define' lines.
5898   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
5899   # Work around the forget-to-reset-the-flag bug.
5900   echo 't clr' >>$CONFIG_STATUS
5901   echo ': clr' >>$CONFIG_STATUS
5902   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5903   echo 'CEOF
5904   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5905   rm -f $tmp/in
5906   mv $tmp/out $tmp/in
5907 ' >>$CONFIG_STATUS
5908   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5909   rm -f conftest.defines
5910   mv conftest.tail conftest.defines
5911 done
5912 rm -f conftest.defines
5913 echo '  fi # grep' >>$CONFIG_STATUS
5914 echo >>$CONFIG_STATUS
5915
5916 # Break up conftest.undefs because some shells have a limit on the size
5917 # of here documents, and old seds have small limits too (100 cmds).
5918 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5919 rm -f conftest.tail
5920 while grep . conftest.undefs >/dev/null
5921 do
5922   # Write a limited-size here document to $tmp/undefs.sed.
5923   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5924   # Speed up: don't consider the non `#undef'
5925   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5926   # Work around the forget-to-reset-the-flag bug.
5927   echo 't clr' >>$CONFIG_STATUS
5928   echo ': clr' >>$CONFIG_STATUS
5929   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5930   echo 'CEOF
5931   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5932   rm -f $tmp/in
5933   mv $tmp/out $tmp/in
5934 ' >>$CONFIG_STATUS
5935   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5936   rm -f conftest.undefs
5937   mv conftest.tail conftest.undefs
5938 done
5939 rm -f conftest.undefs
5940
5941 cat >>$CONFIG_STATUS <<\_ACEOF
5942   # Let's still pretend it is `configure' which instantiates (i.e., don't
5943   # use $as_me), people would be surprised to read:
5944   #    /* config.h.  Generated by config.status.  */
5945   if test x"$ac_file" = x-; then
5946     echo "/* Generated by configure.  */" >$tmp/config.h
5947   else
5948     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5949   fi
5950   cat $tmp/in >>$tmp/config.h
5951   rm -f $tmp/in
5952   if test x"$ac_file" != x-; then
5953     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5954       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5955 echo "$as_me: $ac_file is unchanged" >&6;}
5956     else
5957       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5959          X"$ac_file" : 'X\(//\)[^/]' \| \
5960          X"$ac_file" : 'X\(//\)$' \| \
5961          X"$ac_file" : 'X\(/\)' \| \
5962          .     : '\(.\)' 2>/dev/null ||
5963 echo X"$ac_file" |
5964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5965           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5966           /^X\(\/\/\)$/{ s//\1/; q; }
5967           /^X\(\/\).*/{ s//\1/; q; }
5968           s/.*/./; q'`
5969       { if $as_mkdir_p; then
5970     mkdir -p "$ac_dir"
5971   else
5972     as_dir="$ac_dir"
5973     as_dirs=
5974     while test ! -d "$as_dir"; do
5975       as_dirs="$as_dir $as_dirs"
5976       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5978          X"$as_dir" : 'X\(//\)[^/]' \| \
5979          X"$as_dir" : 'X\(//\)$' \| \
5980          X"$as_dir" : 'X\(/\)' \| \
5981          .     : '\(.\)' 2>/dev/null ||
5982 echo X"$as_dir" |
5983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5985           /^X\(\/\/\)$/{ s//\1/; q; }
5986           /^X\(\/\).*/{ s//\1/; q; }
5987           s/.*/./; q'`
5988     done
5989     test ! -n "$as_dirs" || mkdir $as_dirs
5990   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5992    { (exit 1); exit 1; }; }; }
5993
5994       rm -f $ac_file
5995       mv $tmp/config.h $ac_file
5996     fi
5997   else
5998     cat $tmp/config.h
5999     rm -f $tmp/config.h
6000   fi
6001 done
6002 _ACEOF
6003
6004 cat >>$CONFIG_STATUS <<\_ACEOF
6005
6006 { (exit 0); exit 0; }
6007 _ACEOF
6008 chmod +x $CONFIG_STATUS
6009 ac_clean_files=$ac_clean_files_save
6010
6011
6012 # configure is writing to config.log, and then calls config.status.
6013 # config.status does its own redirection, appending to config.log.
6014 # Unfortunately, on DOS this fails, as config.log is still kept open
6015 # by configure, so config.status won't be able to write to it; its
6016 # output is simply discarded.  So we exec the FD to /dev/null,
6017 # effectively closing config.log, so it can be properly (re)opened and
6018 # appended to by config.status.  When coming back to configure, we
6019 # need to make the FD available again.
6020 if test "$no_create" != yes; then
6021   ac_cs_success=:
6022   ac_config_status_args=
6023   test "$silent" = yes &&
6024     ac_config_status_args="$ac_config_status_args --quiet"
6025   exec 5>/dev/null
6026   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6027   exec 5>>config.log
6028   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6029   # would make configure fail if this is the last instruction.
6030   $ac_cs_success || { (exit 1); exit 1; }
6031 fi
6032