source: trunk/gsdl3/configure@ 10762

Last change on this file since 10762 was 7724, checked in by kjdon, 20 years ago

regenerated this from configure.ac following changes to that file

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 216.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.58.
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/java/org/greenstone/gsdl3/Library1.java"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subdirs_all="$ac_subdirs_all packages"
313ac_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 PACKAGE VERSION CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS gsdlos subdirs LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_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.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
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
628Try \`$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
651done
652
653if 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; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
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
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
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
680done
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.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if 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
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if 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 ||
716echo 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
726else
727 ac_srcdir_defaulted=no
728fi
729if 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
737fi
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; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CXX_set=${CXX+set}
771ac_env_CXX_value=$CXX
772ac_cv_env_CXX_set=${CXX+set}
773ac_cv_env_CXX_value=$CXX
774ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775ac_env_CXXFLAGS_value=$CXXFLAGS
776ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778ac_env_CPP_set=${CPP+set}
779ac_env_CPP_value=$CPP
780ac_cv_env_CPP_set=${CPP+set}
781ac_cv_env_CPP_value=$CPP
782
783#
784# Report the --help message.
785#
786if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790\`configure' configures this package to adapt to many kinds of systems.
791
792Usage: $0 [OPTION]... [VAR=VALUE]...
793
794To assign environment variables (e.g., CC, CFLAGS...), specify them as
795VAR=VALUE. See below for descriptions of some of the useful variables.
796
797Defaults for the options are specified in brackets.
798
799Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809
810_ACEOF
811
812 cat <<_ACEOF
813Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
818
819By default, \`make install' will install all the files in
820\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822for instance \`--prefix=\$HOME'.
823
824For better control, use the options below.
825
826Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839_ACEOF
840
841 cat <<\_ACEOF
842
843System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
847_ACEOF
848fi
849
850if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861 CXX C++ compiler command
862 CXXFLAGS C++ compiler flags
863 CPP C preprocessor
864
865Use these variables to override the choices made by `configure' or to help
866it to find libraries and programs with nonstandard names/locations.
867
868_ACEOF
869fi
870
871if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
877
878if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882else
883 ac_dir_suffix= ac_top_builddir=
884fi
885
886case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900esac
901case "$ac_dir" in
902.) ac_abs_builddir=$ac_builddir;;
903*)
904 case $ac_builddir in
905 .) ac_abs_builddir="$ac_dir";;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
907 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
908 esac;;
909esac
910case "$ac_dir" in
911.) ac_abs_top_builddir=${ac_top_builddir}.;;
912*)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir="$ac_dir";;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
917 esac;;
918esac
919case "$ac_dir" in
920.) ac_abs_srcdir=$ac_srcdir;;
921*)
922 case $ac_srcdir in
923 .) ac_abs_srcdir="$ac_dir";;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
926 esac;;
927esac
928case "$ac_dir" in
929.) ac_abs_top_srcdir=$ac_top_srcdir;;
930*)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir="$ac_dir";;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
935 esac;;
936esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955fi
956
957test -n "$ac_init_help" && exit 0
958if $ac_init_version; then
959 cat <<\_ACEOF
960
961Copyright (C) 2003 Free Software Foundation, Inc.
962This configure script is free software; the Free Software Foundation
963gives unlimited permission to copy, distribute and modify it.
964_ACEOF
965 exit 0
966fi
967exec 5>config.log
968cat >&5 <<_ACEOF
969This file contains any messages produced by compilers while
970running configure, to aid debugging if configure makes a mistake.
971
972It was created by $as_me, which was
973generated by GNU Autoconf 2.58. Invocation command line was
974
975 $ $0 $@
976
977_ACEOF
978{
979cat <<_ASUNAME
980## --------- ##
981## Platform. ##
982## --------- ##
983
984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985uname -m = `(uname -m) 2>/dev/null || echo unknown`
986uname -r = `(uname -r) 2>/dev/null || echo unknown`
987uname -s = `(uname -s) 2>/dev/null || echo unknown`
988uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992
993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
1001_ASUNAME
1002
1003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004for as_dir in $PATH
1005do
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009done
1010
1011} >&5
1012
1013cat >&5 <<_ACEOF
1014
1015
1016## ----------- ##
1017## Core tests. ##
1018## ----------- ##
1019
1020_ACEOF
1021
1022
1023# Keep a trace of the command line.
1024# Strip out --no-create and --no-recursion so they do not pile up.
1025# Strip out --silent because we don't want to record it for future runs.
1026# Also quote any args containing shell meta-characters.
1027# Make two passes to allow for proper duplicate-argument suppression.
1028ac_configure_args=
1029ac_configure_args0=
1030ac_configure_args1=
1031ac_sep=
1032ac_must_keep_next=false
1033for ac_pass in 1 2
1034do
1035 for ac_arg
1036 do
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 2)
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1060 ;;
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1063 fi
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1067 ;;
1068 esac
1069 done
1070done
1071$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074# When interrupted or exit'd, cleanup temporary files, and complete
1075# config.log. We remove comments because anyway the quotes in there
1076# would cause problems or look ugly.
1077# WARNING: Be sure not to use single quotes in there, as some shells,
1078# such as our DU 5.0 friend, will then `close' the trap.
1079trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1081 {
1082 echo
1083
1084 cat <<\_ASBOX
1085## ---------------- ##
1086## Cache variables. ##
1087## ---------------- ##
1088_ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1091{
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 ;;
1099 *)
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ;;
1103 esac;
1104}
1105 echo
1106
1107 cat <<\_ASBOX
1108## ----------------- ##
1109## Output variables. ##
1110## ----------------- ##
1111_ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1114 do
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1119
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122## ------------- ##
1123## Output files. ##
1124## ------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133 fi
1134
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137## ----------- ##
1138## confdefs.h. ##
1139## ----------- ##
1140_ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1144 fi
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1152 ' 0
1153for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155done
1156ac_signal=0
1157
1158# confdefs.h avoids OS command line length limits that DEFS can exceed.
1159rm -rf conftest* confdefs.h
1160# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161echo >confdefs.h
1162
1163# Predefined preprocessor variables.
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_NAME "$PACKAGE_NAME"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_STRING "$PACKAGE_STRING"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187_ACEOF
1188
1189
1190# Let the site file select an alternate cache file if it wants to.
1191# Prefer explicitly selected file to automatically selected ones.
1192if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 fi
1198fi
1199for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
1204 . "$ac_site_file"
1205 fi
1206done
1207
1208if test -r "$cache_file"; then
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1218 fi
1219else
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1223fi
1224
1225# Check that the precious variables saved in the cache have kept the same
1226# value.
1227ac_cache_corrupted=false
1228for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1244 *)
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1266 fi
1267done
1268if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
1274fi
1275
1276ac_ext=c
1277ac_cpp='$CPP $CPPFLAGS'
1278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300 ac_config_headers="$ac_config_headers config.h"
1301
1302
1303PACKAGE=gsdl3
1304VERSION=0.1
1305
1306cat >>confdefs.h <<_ACEOF
1307#define PACKAGE "$PACKAGE"
1308_ACEOF
1309
1310
1311cat >>confdefs.h <<_ACEOF
1312#define VERSION "$VERSION"
1313_ACEOF
1314
1315
1316
1317
1318
1319cat >>confdefs.h <<\_ACEOF
1320#define PROTOTYPES 1
1321_ACEOF
1322
1323
1324LDFLAGS=
1325if test -z "$CFLAGS"; then
1326CFLAGS=-O2
1327fi
1328
1329
1330ac_ext=c
1331ac_cpp='$CPP $CPPFLAGS'
1332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335if test -n "$ac_tool_prefix"; then
1336 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1337set dummy ${ac_tool_prefix}gcc; ac_word=$2
1338echo "$as_me:$LINENO: checking for $ac_word" >&5
1339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340if test "${ac_cv_prog_CC+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342else
1343 if test -n "$CC"; then
1344 ac_cv_prog_CC="$CC" # Let the user override the test.
1345else
1346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347for as_dir in $PATH
1348do
1349 IFS=$as_save_IFS
1350 test -z "$as_dir" && as_dir=.
1351 for ac_exec_ext in '' $ac_executable_extensions; do
1352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1355 break 2
1356 fi
1357done
1358done
1359
1360fi
1361fi
1362CC=$ac_cv_prog_CC
1363if test -n "$CC"; then
1364 echo "$as_me:$LINENO: result: $CC" >&5
1365echo "${ECHO_T}$CC" >&6
1366else
1367 echo "$as_me:$LINENO: result: no" >&5
1368echo "${ECHO_T}no" >&6
1369fi
1370
1371fi
1372if test -z "$ac_cv_prog_CC"; then
1373 ac_ct_CC=$CC
1374 # Extract the first word of "gcc", so it can be a program name with args.
1375set dummy gcc; ac_word=$2
1376echo "$as_me:$LINENO: checking for $ac_word" >&5
1377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 if test -n "$ac_ct_CC"; then
1382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383else
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 for ac_exec_ext in '' $ac_executable_extensions; do
1390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391 ac_cv_prog_ac_ct_CC="gcc"
1392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 break 2
1394 fi
1395done
1396done
1397
1398fi
1399fi
1400ac_ct_CC=$ac_cv_prog_ac_ct_CC
1401if test -n "$ac_ct_CC"; then
1402 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1403echo "${ECHO_T}$ac_ct_CC" >&6
1404else
1405 echo "$as_me:$LINENO: result: no" >&5
1406echo "${ECHO_T}no" >&6
1407fi
1408
1409 CC=$ac_ct_CC
1410else
1411 CC="$ac_cv_prog_CC"
1412fi
1413
1414if test -z "$CC"; then
1415 if test -n "$ac_tool_prefix"; then
1416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1417set dummy ${ac_tool_prefix}cc; ac_word=$2
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420if test "${ac_cv_prog_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423 if test -n "$CC"; then
1424 ac_cv_prog_CC="$CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_CC="${ac_tool_prefix}cc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437done
1438done
1439
1440fi
1441fi
1442CC=$ac_cv_prog_CC
1443if test -n "$CC"; then
1444 echo "$as_me:$LINENO: result: $CC" >&5
1445echo "${ECHO_T}$CC" >&6
1446else
1447 echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
1449fi
1450
1451fi
1452if test -z "$ac_cv_prog_CC"; then
1453 ac_ct_CC=$CC
1454 # Extract the first word of "cc", so it can be a program name with args.
1455set dummy cc; ac_word=$2
1456echo "$as_me:$LINENO: checking for $ac_word" >&5
1457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460else
1461 if test -n "$ac_ct_CC"; then
1462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463else
1464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465for as_dir in $PATH
1466do
1467 IFS=$as_save_IFS
1468 test -z "$as_dir" && as_dir=.
1469 for ac_exec_ext in '' $ac_executable_extensions; do
1470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471 ac_cv_prog_ac_ct_CC="cc"
1472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 break 2
1474 fi
1475done
1476done
1477
1478fi
1479fi
1480ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481if test -n "$ac_ct_CC"; then
1482 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483echo "${ECHO_T}$ac_ct_CC" >&6
1484else
1485 echo "$as_me:$LINENO: result: no" >&5
1486echo "${ECHO_T}no" >&6
1487fi
1488
1489 CC=$ac_ct_CC
1490else
1491 CC="$ac_cv_prog_CC"
1492fi
1493
1494fi
1495if test -z "$CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497set dummy cc; ac_word=$2
1498echo "$as_me:$LINENO: checking for $ac_word" >&5
1499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500if test "${ac_cv_prog_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503 if test -n "$CC"; then
1504 ac_cv_prog_CC="$CC" # Let the user override the test.
1505else
1506 ac_prog_rejected=no
1507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508for as_dir in $PATH
1509do
1510 IFS=$as_save_IFS
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1515 ac_prog_rejected=yes
1516 continue
1517 fi
1518 ac_cv_prog_CC="cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 break 2
1521 fi
1522done
1523done
1524
1525if test $ac_prog_rejected = yes; then
1526 # We found a bogon in the path, so make sure we never use it.
1527 set dummy $ac_cv_prog_CC
1528 shift
1529 if test $# != 0; then
1530 # We chose a different compiler from the bogus one.
1531 # However, it has the same basename, so the bogon will be chosen
1532 # first if we set CC to just the basename; use the full file name.
1533 shift
1534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1535 fi
1536fi
1537fi
1538fi
1539CC=$ac_cv_prog_CC
1540if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542echo "${ECHO_T}$CC" >&6
1543else
1544 echo "$as_me:$LINENO: result: no" >&5
1545echo "${ECHO_T}no" >&6
1546fi
1547
1548fi
1549if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 for ac_prog in cl
1552 do
1553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
1577fi
1578fi
1579CC=$ac_cv_prog_CC
1580if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
1583else
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588 test -n "$CC" && break
1589 done
1590fi
1591if test -z "$CC"; then
1592 ac_ct_CC=$CC
1593 for ac_prog in cl
1594do
1595 # Extract the first word of "$ac_prog", so it can be a program name with args.
1596set dummy $ac_prog; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$ac_ct_CC"; then
1603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_ac_ct_CC="$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
1619fi
1620fi
1621ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622if test -n "$ac_ct_CC"; then
1623 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624echo "${ECHO_T}$ac_ct_CC" >&6
1625else
1626 echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630 test -n "$ac_ct_CC" && break
1631done
1632
1633 CC=$ac_ct_CC
1634fi
1635
1636fi
1637
1638
1639test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1640See \`config.log' for more details." >&5
1641echo "$as_me: error: no acceptable C compiler found in \$PATH
1642See \`config.log' for more details." >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645# Provide some information about the compiler.
1646echo "$as_me:$LINENO:" \
1647 "checking for C compiler version" >&5
1648ac_compiler=`set X $ac_compile; echo $2`
1649{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1650 (eval $ac_compiler --version </dev/null >&5) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1655 (eval $ac_compiler -v </dev/null >&5) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1659{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1660 (eval $ac_compiler -V </dev/null >&5) 2>&5
1661 ac_status=$?
1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663 (exit $ac_status); }
1664
1665cat >conftest.$ac_ext <<_ACEOF
1666/* confdefs.h. */
1667_ACEOF
1668cat confdefs.h >>conftest.$ac_ext
1669cat >>conftest.$ac_ext <<_ACEOF
1670/* end confdefs.h. */
1671
1672int
1673main ()
1674{
1675
1676 ;
1677 return 0;
1678}
1679_ACEOF
1680ac_clean_files_save=$ac_clean_files
1681ac_clean_files="$ac_clean_files a.out a.exe b.out"
1682# Try to create an executable without -o first, disregard a.out.
1683# It will help us diagnose broken compilers, and finding out an intuition
1684# of exeext.
1685echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1686echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1687ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1688if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1689 (eval $ac_link_default) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }; then
1693 # Find the output, starting from the most likely. This scheme is
1694# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1695# resort.
1696
1697# Be careful to initialize this variable, since it used to be cached.
1698# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1699ac_cv_exeext=
1700# b.out is created by i960 compilers.
1701for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1702do
1703 test -f "$ac_file" || continue
1704 case $ac_file in
1705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1706 ;;
1707 conftest.$ac_ext )
1708 # This is the source file.
1709 ;;
1710 [ab].out )
1711 # We found the default executable, but exeext='' is most
1712 # certainly right.
1713 break;;
1714 *.* )
1715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1716 # FIXME: I believe we export ac_cv_exeext for Libtool,
1717 # but it would be cool to find out if it's true. Does anybody
1718 # maintain Libtool? --akim.
1719 export ac_cv_exeext
1720 break;;
1721 * )
1722 break;;
1723 esac
1724done
1725else
1726 echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1730See \`config.log' for more details." >&5
1731echo "$as_me: error: C compiler cannot create executables
1732See \`config.log' for more details." >&2;}
1733 { (exit 77); exit 77; }; }
1734fi
1735
1736ac_exeext=$ac_cv_exeext
1737echo "$as_me:$LINENO: result: $ac_file" >&5
1738echo "${ECHO_T}$ac_file" >&6
1739
1740# Check the compiler produces executables we can run. If not, either
1741# the compiler is broken, or we cross compile.
1742echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1743echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1744# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1745# If not cross compiling, check that we can run a simple program.
1746if test "$cross_compiling" != yes; then
1747 if { ac_try='./$ac_file'
1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1749 (eval $ac_try) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }; }; then
1753 cross_compiling=no
1754 else
1755 if test "$cross_compiling" = maybe; then
1756 cross_compiling=yes
1757 else
1758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1759If you meant to cross compile, use \`--host'.
1760See \`config.log' for more details." >&5
1761echo "$as_me: error: cannot run C compiled programs.
1762If you meant to cross compile, use \`--host'.
1763See \`config.log' for more details." >&2;}
1764 { (exit 1); exit 1; }; }
1765 fi
1766 fi
1767fi
1768echo "$as_me:$LINENO: result: yes" >&5
1769echo "${ECHO_T}yes" >&6
1770
1771rm -f a.out a.exe conftest$ac_cv_exeext b.out
1772ac_clean_files=$ac_clean_files_save
1773# Check the compiler produces executables we can run. If not, either
1774# the compiler is broken, or we cross compile.
1775echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1776echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1777echo "$as_me:$LINENO: result: $cross_compiling" >&5
1778echo "${ECHO_T}$cross_compiling" >&6
1779
1780echo "$as_me:$LINENO: checking for suffix of executables" >&5
1781echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1783 (eval $ac_link) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1788# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1789# work properly (i.e., refer to `conftest.exe'), while it won't with
1790# `rm'.
1791for ac_file in conftest.exe conftest conftest.*; do
1792 test -f "$ac_file" || continue
1793 case $ac_file in
1794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796 export ac_cv_exeext
1797 break;;
1798 * ) break;;
1799 esac
1800done
1801else
1802 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1803See \`config.log' for more details." >&5
1804echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1805See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807fi
1808
1809rm -f conftest$ac_cv_exeext
1810echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1811echo "${ECHO_T}$ac_cv_exeext" >&6
1812
1813rm -f conftest.$ac_ext
1814EXEEXT=$ac_cv_exeext
1815ac_exeext=$EXEEXT
1816echo "$as_me:$LINENO: checking for suffix of object files" >&5
1817echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1818if test "${ac_cv_objext+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821 cat >conftest.$ac_ext <<_ACEOF
1822/* confdefs.h. */
1823_ACEOF
1824cat confdefs.h >>conftest.$ac_ext
1825cat >>conftest.$ac_ext <<_ACEOF
1826/* end confdefs.h. */
1827
1828int
1829main ()
1830{
1831
1832 ;
1833 return 0;
1834}
1835_ACEOF
1836rm -f conftest.o conftest.obj
1837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; then
1842 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1843 case $ac_file in
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1846 break;;
1847 esac
1848done
1849else
1850 echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1854See \`config.log' for more details." >&5
1855echo "$as_me: error: cannot compute suffix of object files: cannot compile
1856See \`config.log' for more details." >&2;}
1857 { (exit 1); exit 1; }; }
1858fi
1859
1860rm -f conftest.$ac_cv_objext conftest.$ac_ext
1861fi
1862echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1863echo "${ECHO_T}$ac_cv_objext" >&6
1864OBJEXT=$ac_cv_objext
1865ac_objext=$OBJEXT
1866echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1867echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1868if test "${ac_cv_c_compiler_gnu+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 cat >conftest.$ac_ext <<_ACEOF
1872/* confdefs.h. */
1873_ACEOF
1874cat confdefs.h >>conftest.$ac_ext
1875cat >>conftest.$ac_ext <<_ACEOF
1876/* end confdefs.h. */
1877
1878int
1879main ()
1880{
1881#ifndef __GNUC__
1882 choke me
1883#endif
1884
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889rm -f conftest.$ac_objext
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>conftest.er1
1892 ac_status=$?
1893 grep -v '^ *+' conftest.er1 >conftest.err
1894 rm -f conftest.er1
1895 cat conftest.err >&5
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); } &&
1898 { ac_try='test -z "$ac_c_werror_flag"
1899 || test ! -s conftest.err'
1900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901 (eval $ac_try) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907 (eval $ac_try) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 ac_compiler_gnu=yes
1912else
1913 echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916ac_compiler_gnu=no
1917fi
1918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1919ac_cv_c_compiler_gnu=$ac_compiler_gnu
1920
1921fi
1922echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1923echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1924GCC=`test $ac_compiler_gnu = yes && echo yes`
1925ac_test_CFLAGS=${CFLAGS+set}
1926ac_save_CFLAGS=$CFLAGS
1927CFLAGS="-g"
1928echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1929echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1930if test "${ac_cv_prog_cc_g+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 cat >conftest.$ac_ext <<_ACEOF
1934/* confdefs.h. */
1935_ACEOF
1936cat confdefs.h >>conftest.$ac_ext
1937cat >>conftest.$ac_ext <<_ACEOF
1938/* end confdefs.h. */
1939
1940int
1941main ()
1942{
1943
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948rm -f conftest.$ac_objext
1949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950 (eval $ac_compile) 2>conftest.er1
1951 ac_status=$?
1952 grep -v '^ *+' conftest.er1 >conftest.err
1953 rm -f conftest.er1
1954 cat conftest.err >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); } &&
1957 { ac_try='test -z "$ac_c_werror_flag"
1958 || test ! -s conftest.err'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; } &&
1964 { ac_try='test -s conftest.$ac_objext'
1965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966 (eval $ac_try) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; }; then
1970 ac_cv_prog_cc_g=yes
1971else
1972 echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975ac_cv_prog_cc_g=no
1976fi
1977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1980echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981if test "$ac_test_CFLAGS" = set; then
1982 CFLAGS=$ac_save_CFLAGS
1983elif test $ac_cv_prog_cc_g = yes; then
1984 if test "$GCC" = yes; then
1985 CFLAGS="-g -O2"
1986 else
1987 CFLAGS="-g"
1988 fi
1989else
1990 if test "$GCC" = yes; then
1991 CFLAGS="-O2"
1992 else
1993 CFLAGS=
1994 fi
1995fi
1996echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1997echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1998if test "${ac_cv_prog_cc_stdc+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 ac_cv_prog_cc_stdc=no
2002ac_save_CC=$CC
2003cat >conftest.$ac_ext <<_ACEOF
2004/* confdefs.h. */
2005_ACEOF
2006cat confdefs.h >>conftest.$ac_ext
2007cat >>conftest.$ac_ext <<_ACEOF
2008/* end confdefs.h. */
2009#include <stdarg.h>
2010#include <stdio.h>
2011#include <sys/types.h>
2012#include <sys/stat.h>
2013/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2014struct buf { int x; };
2015FILE * (*rcsopen) (struct buf *, struct stat *, int);
2016static char *e (p, i)
2017 char **p;
2018 int i;
2019{
2020 return p[i];
2021}
2022static char *f (char * (*g) (char **, int), char **p, ...)
2023{
2024 char *s;
2025 va_list v;
2026 va_start (v,p);
2027 s = g (p, va_arg (v,int));
2028 va_end (v);
2029 return s;
2030}
2031
2032/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2033 function prototypes and stuff, but not '\xHH' hex character constants.
2034 These don't provoke an error unfortunately, instead are silently treated
2035 as 'x'. The following induces an error, until -std1 is added to get
2036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2037 array size at least. It's necessary to write '\x00'==0 to get something
2038 that's true only with -std1. */
2039int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2040
2041int test (int i, double x);
2042struct s1 {int (*f) (int a);};
2043struct s2 {int (*f) (double a);};
2044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2045int argc;
2046char **argv;
2047int
2048main ()
2049{
2050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055# Don't try gcc -ansi; that turns off useful extensions and
2056# breaks some systems' header files.
2057# AIX -qlanglvl=ansi
2058# Ultrix and OSF/1 -std1
2059# HP-UX 10.20 and later -Ae
2060# HP-UX older versions -Aa -D_HPUX_SOURCE
2061# SVR4 -Xc -D__EXTENSIONS__
2062for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2063do
2064 CC="$ac_save_CC $ac_arg"
2065 rm -f conftest.$ac_objext
2066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2068 ac_status=$?
2069 grep -v '^ *+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
2087 ac_cv_prog_cc_stdc=$ac_arg
2088break
2089else
2090 echo "$as_me: failed program was:" >&5
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093fi
2094rm -f conftest.err conftest.$ac_objext
2095done
2096rm -f conftest.$ac_ext conftest.$ac_objext
2097CC=$ac_save_CC
2098
2099fi
2100
2101case "x$ac_cv_prog_cc_stdc" in
2102 x|xno)
2103 echo "$as_me:$LINENO: result: none needed" >&5
2104echo "${ECHO_T}none needed" >&6 ;;
2105 *)
2106 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2107echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2108 CC="$CC $ac_cv_prog_cc_stdc" ;;
2109esac
2110
2111# Some people use a C++ compiler to compile C. Since we use `exit',
2112# in C++ we need to declare it. In case someone uses the same compiler
2113# for both compiling C and C++ we need to have the C++ compiler decide
2114# the declaration of exit, since it's the most demanding environment.
2115cat >conftest.$ac_ext <<_ACEOF
2116#ifndef __cplusplus
2117 choke me
2118#endif
2119_ACEOF
2120rm -f conftest.$ac_objext
2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>conftest.er1
2123 ac_status=$?
2124 grep -v '^ *+' conftest.er1 >conftest.err
2125 rm -f conftest.er1
2126 cat conftest.err >&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); } &&
2129 { ac_try='test -z "$ac_c_werror_flag"
2130 || test ! -s conftest.err'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132 (eval $ac_try) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2142 for ac_declaration in \
2143 '' \
2144 'extern "C" void std::exit (int) throw (); using std::exit;' \
2145 'extern "C" void std::exit (int); using std::exit;' \
2146 'extern "C" void exit (int) throw ();' \
2147 'extern "C" void exit (int);' \
2148 'void exit (int);'
2149do
2150 cat >conftest.$ac_ext <<_ACEOF
2151/* confdefs.h. */
2152_ACEOF
2153cat confdefs.h >>conftest.$ac_ext
2154cat >>conftest.$ac_ext <<_ACEOF
2155/* end confdefs.h. */
2156$ac_declaration
2157#include <stdlib.h>
2158int
2159main ()
2160{
2161exit (42);
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 :
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193continue
2194fi
2195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196 cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
2202$ac_declaration
2203int
2204main ()
2205{
2206exit (42);
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.$ac_objext
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>conftest.er1
2214 ac_status=$?
2215 grep -v '^ *+' conftest.er1 >conftest.err
2216 rm -f conftest.er1
2217 cat conftest.err >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -z "$ac_c_werror_flag"
2221 || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 break
2234else
2235 echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238fi
2239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240done
2241rm -f conftest*
2242if test -n "$ac_declaration"; then
2243 echo '#ifdef __cplusplus' >>confdefs.h
2244 echo $ac_declaration >>confdefs.h
2245 echo '#endif' >>confdefs.h
2246fi
2247
2248else
2249 echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252fi
2253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254ac_ext=c
2255ac_cpp='$CPP $CPPFLAGS'
2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260ac_ext=cc
2261ac_cpp='$CXXCPP $CPPFLAGS'
2262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2265if test -n "$ac_tool_prefix"; then
2266 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2267 do
2268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2270echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272if test "${ac_cv_prog_CXX+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 if test -n "$CXX"; then
2276 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289done
2290done
2291
2292fi
2293fi
2294CXX=$ac_cv_prog_CXX
2295if test -n "$CXX"; then
2296 echo "$as_me:$LINENO: result: $CXX" >&5
2297echo "${ECHO_T}$CXX" >&6
2298else
2299 echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6
2301fi
2302
2303 test -n "$CXX" && break
2304 done
2305fi
2306if test -z "$CXX"; then
2307 ac_ct_CXX=$CXX
2308 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2309do
2310 # Extract the first word of "$ac_prog", so it can be a program name with args.
2311set dummy $ac_prog; ac_word=$2
2312echo "$as_me:$LINENO: checking for $ac_word" >&5
2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317 if test -n "$ac_ct_CXX"; then
2318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2319else
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CXX="$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331done
2332done
2333
2334fi
2335fi
2336ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2337if test -n "$ac_ct_CXX"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2339echo "${ECHO_T}$ac_ct_CXX" >&6
2340else
2341 echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6
2343fi
2344
2345 test -n "$ac_ct_CXX" && break
2346done
2347test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2348
2349 CXX=$ac_ct_CXX
2350fi
2351
2352
2353# Provide some information about the compiler.
2354echo "$as_me:$LINENO:" \
2355 "checking for C++ compiler version" >&5
2356ac_compiler=`set X $ac_compile; echo $2`
2357{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2358 (eval $ac_compiler --version </dev/null >&5) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2363 (eval $ac_compiler -v </dev/null >&5) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2368 (eval $ac_compiler -V </dev/null >&5) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2372
2373echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2374echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2375if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378 cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
2384
2385int
2386main ()
2387{
2388#ifndef __GNUC__
2389 choke me
2390#endif
2391
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_cxx_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_compiler_gnu=yes
2419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423ac_compiler_gnu=no
2424fi
2425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2426ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2427
2428fi
2429echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2430echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2431GXX=`test $ac_compiler_gnu = yes && echo yes`
2432ac_test_CXXFLAGS=${CXXFLAGS+set}
2433ac_save_CXXFLAGS=$CXXFLAGS
2434CXXFLAGS="-g"
2435echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2436echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2437if test "${ac_cv_prog_cxx_g+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */
2446
2447int
2448main ()
2449{
2450
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_cxx_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 ac_cv_prog_cxx_g=yes
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482ac_cv_prog_cxx_g=no
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2487echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2488if test "$ac_test_CXXFLAGS" = set; then
2489 CXXFLAGS=$ac_save_CXXFLAGS
2490elif test $ac_cv_prog_cxx_g = yes; then
2491 if test "$GXX" = yes; then
2492 CXXFLAGS="-g -O2"
2493 else
2494 CXXFLAGS="-g"
2495 fi
2496else
2497 if test "$GXX" = yes; then
2498 CXXFLAGS="-O2"
2499 else
2500 CXXFLAGS=
2501 fi
2502fi
2503for ac_declaration in \
2504 '' \
2505 'extern "C" void std::exit (int) throw (); using std::exit;' \
2506 'extern "C" void std::exit (int); using std::exit;' \
2507 'extern "C" void exit (int) throw ();' \
2508 'extern "C" void exit (int);' \
2509 'void exit (int);'
2510do
2511 cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
2517$ac_declaration
2518#include <stdlib.h>
2519int
2520main ()
2521{
2522exit (42);
2523 ;
2524 return 0;
2525}
2526_ACEOF
2527rm -f conftest.$ac_objext
2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 :
2550else
2551 echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554continue
2555fi
2556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563$ac_declaration
2564int
2565main ()
2566{
2567exit (42);
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_cxx_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 break
2595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601done
2602rm -f conftest*
2603if test -n "$ac_declaration"; then
2604 echo '#ifdef __cplusplus' >>confdefs.h
2605 echo $ac_declaration >>confdefs.h
2606 echo '#endif' >>confdefs.h
2607fi
2608
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615for ac_prog in gawk mawk nawk awk
2616do
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618set dummy $ac_prog; ac_word=$2
2619echo "$as_me:$LINENO: checking for $ac_word" >&5
2620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621if test "${ac_cv_prog_AWK+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624 if test -n "$AWK"; then
2625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_AWK="$ac_prog"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638done
2639done
2640
2641fi
2642fi
2643AWK=$ac_cv_prog_AWK
2644if test -n "$AWK"; then
2645 echo "$as_me:$LINENO: result: $AWK" >&5
2646echo "${ECHO_T}$AWK" >&6
2647else
2648 echo "$as_me:$LINENO: result: no" >&5
2649echo "${ECHO_T}no" >&6
2650fi
2651
2652 test -n "$AWK" && break
2653done
2654
2655for ac_prog in 'bison -y' byacc
2656do
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658set dummy $ac_prog; ac_word=$2
2659echo "$as_me:$LINENO: checking for $ac_word" >&5
2660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661if test "${ac_cv_prog_YACC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664 if test -n "$YACC"; then
2665 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_YACC="$ac_prog"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679done
2680
2681fi
2682fi
2683YACC=$ac_cv_prog_YACC
2684if test -n "$YACC"; then
2685 echo "$as_me:$LINENO: result: $YACC" >&5
2686echo "${ECHO_T}$YACC" >&6
2687else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690fi
2691
2692 test -n "$YACC" && break
2693done
2694test -n "$YACC" || YACC="yacc"
2695
2696ac_aux_dir=
2697for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2698 if test -f $ac_dir/install-sh; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install-sh -c"
2701 break
2702 elif test -f $ac_dir/install.sh; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/install.sh -c"
2705 break
2706 elif test -f $ac_dir/shtool; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/shtool install -c"
2709 break
2710 fi
2711done
2712if test -z "$ac_aux_dir"; then
2713 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2714echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2715 { (exit 1); exit 1; }; }
2716fi
2717ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2718ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2719ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2720
2721# Make sure we can run config.sub.
2722$ac_config_sub sun4 >/dev/null 2>&1 ||
2723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2724echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2725 { (exit 1); exit 1; }; }
2726
2727echo "$as_me:$LINENO: checking build system type" >&5
2728echo $ECHO_N "checking build system type... $ECHO_C" >&6
2729if test "${ac_cv_build+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2731else
2732 ac_cv_build_alias=$build_alias
2733test -z "$ac_cv_build_alias" &&
2734 ac_cv_build_alias=`$ac_config_guess`
2735test -z "$ac_cv_build_alias" &&
2736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2737echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2738 { (exit 1); exit 1; }; }
2739ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2741echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2742 { (exit 1); exit 1; }; }
2743
2744fi
2745echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2746echo "${ECHO_T}$ac_cv_build" >&6
2747build=$ac_cv_build
2748build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2749build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2750build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2751
2752
2753echo "$as_me:$LINENO: checking host system type" >&5
2754echo $ECHO_N "checking host system type... $ECHO_C" >&6
2755if test "${ac_cv_host+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758 ac_cv_host_alias=$host_alias
2759test -z "$ac_cv_host_alias" &&
2760 ac_cv_host_alias=$ac_cv_build_alias
2761ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2763echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2764 { (exit 1); exit 1; }; }
2765
2766fi
2767echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2768echo "${ECHO_T}$ac_cv_host" >&6
2769host=$ac_cv_host
2770host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2771host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2772host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2773
2774
2775echo "$as_me:$LINENO: checking target system type" >&5
2776echo $ECHO_N "checking target system type... $ECHO_C" >&6
2777if test "${ac_cv_target+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
2780 ac_cv_target_alias=$target_alias
2781test "x$ac_cv_target_alias" = "x" &&
2782 ac_cv_target_alias=$ac_cv_host_alias
2783ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2784 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2785echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2787
2788fi
2789echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2790echo "${ECHO_T}$ac_cv_target" >&6
2791target=$ac_cv_target
2792target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2793target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2794target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2795
2796
2797# The aliases save the names the user supplied, while $host etc.
2798# will get canonicalized.
2799test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2801 NONENONEs,x,x, &&
2802 program_prefix=${target_alias}-
2803# Find a good install program. We prefer a C program (faster),
2804# so one script is as good as another. But avoid the broken or
2805# incompatible versions:
2806# SysV /etc/install, /usr/sbin/install
2807# SunOS /usr/etc/install
2808# IRIX /sbin/install
2809# AIX /bin/install
2810# AmigaOS /C/install, which installs bootblocks on floppy discs
2811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814# OS/2's system install, which has a completely different semantic
2815# ./install, which can be erroneously created by make from ./install.sh.
2816echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2817echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2818if test -z "$INSTALL"; then
2819if test "${ac_cv_path_install+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828case $as_dir/ in
2829 ./ | .// | /cC/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2832 /usr/ucb/* ) ;;
2833 *)
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2843 :
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2847 :
2848 else
2849 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2850 break 3
2851 fi
2852 fi
2853 done
2854 done
2855 ;;
2856esac
2857done
2858
2859
2860fi
2861 if test "${ac_cv_path_install+set}" = set; then
2862 INSTALL=$ac_cv_path_install
2863 else
2864 # As a last resort, use the slow shell script. We don't cache a
2865 # path for INSTALL within a source directory, because that will
2866 # break other packages using the cache if that directory is
2867 # removed, or if the path is relative.
2868 INSTALL=$ac_install_sh
2869 fi
2870fi
2871echo "$as_me:$LINENO: result: $INSTALL" >&5
2872echo "${ECHO_T}$INSTALL" >&6
2873
2874# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875# It thinks the first close brace ends the variable substitution.
2876test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2877
2878test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2879
2880test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2881
2882echo "$as_me:$LINENO: checking whether ln -s works" >&5
2883echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2884LN_S=$as_ln_s
2885if test "$LN_S" = "ln -s"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888else
2889 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2890echo "${ECHO_T}no, using $LN_S" >&6
2891fi
2892
2893echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2895set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2896if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899 cat >conftest.make <<\_ACEOF
2900all:
2901 @echo 'ac_maketemp="$(MAKE)"'
2902_ACEOF
2903# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2904eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2905if test -n "$ac_maketemp"; then
2906 eval ac_cv_prog_make_${ac_make}_set=yes
2907else
2908 eval ac_cv_prog_make_${ac_make}_set=no
2909fi
2910rm -f conftest.make
2911fi
2912if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2913 echo "$as_me:$LINENO: result: yes" >&5
2914echo "${ECHO_T}yes" >&6
2915 SET_MAKE=
2916else
2917 echo "$as_me:$LINENO: result: no" >&5
2918echo "${ECHO_T}no" >&6
2919 SET_MAKE="MAKE=${MAKE-make}"
2920fi
2921
2922if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2924set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2925echo "$as_me:$LINENO: checking for $ac_word" >&5
2926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927if test "${ac_cv_prog_RANLIB+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929else
2930 if test -n "$RANLIB"; then
2931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944done
2945done
2946
2947fi
2948fi
2949RANLIB=$ac_cv_prog_RANLIB
2950if test -n "$RANLIB"; then
2951 echo "$as_me:$LINENO: result: $RANLIB" >&5
2952echo "${ECHO_T}$RANLIB" >&6
2953else
2954 echo "$as_me:$LINENO: result: no" >&5
2955echo "${ECHO_T}no" >&6
2956fi
2957
2958fi
2959if test -z "$ac_cv_prog_RANLIB"; then
2960 ac_ct_RANLIB=$RANLIB
2961 # Extract the first word of "ranlib", so it can be a program name with args.
2962set dummy ranlib; ac_word=$2
2963echo "$as_me:$LINENO: checking for $ac_word" >&5
2964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968 if test -n "$ac_ct_RANLIB"; then
2969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_ac_ct_RANLIB="ranlib"
2979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982done
2983done
2984
2985 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2986fi
2987fi
2988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2989if test -n "$ac_ct_RANLIB"; then
2990 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2991echo "${ECHO_T}$ac_ct_RANLIB" >&6
2992else
2993 echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
2995fi
2996
2997 RANLIB=$ac_ct_RANLIB
2998else
2999 RANLIB="$ac_cv_prog_RANLIB"
3000fi
3001
3002
3003
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011# On Suns, sometimes $CPP names a directory.
3012if test -n "$CPP" && test -d "$CPP"; then
3013 CPP=
3014fi
3015if test -z "$CPP"; then
3016 if test "${ac_cv_prog_CPP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 # Double quotes because CPP needs to be expanded
3020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021 do
3022 ac_preproc_ok=false
3023for ac_c_preproc_warn_flag in '' yes
3024do
3025 # Use a header file that comes with gcc, so configuring glibc
3026 # with a fresh cross-compiler works.
3027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028 # <limits.h> exists even on freestanding compilers.
3029 # On the NeXT, cc -E runs the code through the compiler's parser,
3030 # not just through cpp. "Syntax error" is here to catch this case.
3031 cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
3037#ifdef __STDC__
3038# include <limits.h>
3039#else
3040# include <assert.h>
3041#endif
3042 Syntax error
3043_ACEOF
3044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 else
3056 ac_cpp_err=
3057 fi
3058else
3059 ac_cpp_err=yes
3060fi
3061if test -z "$ac_cpp_err"; then
3062 :
3063else
3064 echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 # Broken: fails on valid input.
3068continue
3069fi
3070rm -f conftest.err conftest.$ac_ext
3071
3072 # OK, works on sane cases. Now check whether non-existent headers
3073 # can be detected and how.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#include <ac_nonexistent.h>
3081_ACEOF
3082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 else
3094 ac_cpp_err=
3095 fi
3096else
3097 ac_cpp_err=yes
3098fi
3099if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3101continue
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 # Passes both tests.
3107ac_preproc_ok=:
3108break
3109fi
3110rm -f conftest.err conftest.$ac_ext
3111
3112done
3113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114rm -f conftest.err conftest.$ac_ext
3115if $ac_preproc_ok; then
3116 break
3117fi
3118
3119 done
3120 ac_cv_prog_CPP=$CPP
3121
3122fi
3123 CPP=$ac_cv_prog_CPP
3124else
3125 ac_cv_prog_CPP=$CPP
3126fi
3127echo "$as_me:$LINENO: result: $CPP" >&5
3128echo "${ECHO_T}$CPP" >&6
3129ac_preproc_ok=false
3130for ac_c_preproc_warn_flag in '' yes
3131do
3132 # Use a header file that comes with gcc, so configuring glibc
3133 # with a fresh cross-compiler works.
3134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135 # <limits.h> exists even on freestanding compilers.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
3144#ifdef __STDC__
3145# include <limits.h>
3146#else
3147# include <assert.h>
3148#endif
3149 Syntax error
3150_ACEOF
3151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null; then
3159 if test -s conftest.err; then
3160 ac_cpp_err=$ac_c_preproc_warn_flag
3161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 else
3163 ac_cpp_err=
3164 fi
3165else
3166 ac_cpp_err=yes
3167fi
3168if test -z "$ac_cpp_err"; then
3169 :
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 # Broken: fails on valid input.
3175continue
3176fi
3177rm -f conftest.err conftest.$ac_ext
3178
3179 # OK, works on sane cases. Now check whether non-existent headers
3180 # can be detected and how.
3181 cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#include <ac_nonexistent.h>
3188_ACEOF
3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 else
3201 ac_cpp_err=
3202 fi
3203else
3204 ac_cpp_err=yes
3205fi
3206if test -z "$ac_cpp_err"; then
3207 # Broken: success on invalid input.
3208continue
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 # Passes both tests.
3214ac_preproc_ok=:
3215break
3216fi
3217rm -f conftest.err conftest.$ac_ext
3218
3219done
3220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221rm -f conftest.err conftest.$ac_ext
3222if $ac_preproc_ok; then
3223 :
3224else
3225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226See \`config.log' for more details." >&5
3227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3230fi
3231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238
3239echo "$as_me:$LINENO: checking for egrep" >&5
3240echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3241if test "${ac_cv_prog_egrep+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3245 then ac_cv_prog_egrep='grep -E'
3246 else ac_cv_prog_egrep='egrep'
3247 fi
3248fi
3249echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3250echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3251 EGREP=$ac_cv_prog_egrep
3252
3253
3254
3255echo "$as_me:$LINENO: checking for AIX" >&5
3256echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3257cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
3263#ifdef _AIX
3264 yes
3265#endif
3266
3267_ACEOF
3268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 $EGREP "yes" >/dev/null 2>&1; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272cat >>confdefs.h <<\_ACEOF
3273#define _ALL_SOURCE 1
3274_ACEOF
3275
3276else
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279fi
3280rm -f conftest*
3281
3282
3283echo "$as_me:$LINENO: checking for library containing strerror" >&5
3284echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3285if test "${ac_cv_search_strerror+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288 ac_func_search_save_LIBS=$LIBS
3289ac_cv_search_strerror=no
3290cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h. */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h. */
3296
3297/* Override any gcc2 internal prototype to avoid an error. */
3298#ifdef __cplusplus
3299extern "C"
3300#endif
3301/* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3303char strerror ();
3304int
3305main ()
3306{
3307strerror ();
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext conftest$ac_exeext
3313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3314 (eval $ac_link) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest$ac_exeext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_search_strerror="none required"
3335else
3336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339fi
3340rm -f conftest.err conftest.$ac_objext \
3341 conftest$ac_exeext conftest.$ac_ext
3342if test "$ac_cv_search_strerror" = no; then
3343 for ac_lib in cposix; do
3344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3345 cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351
3352/* Override any gcc2 internal prototype to avoid an error. */
3353#ifdef __cplusplus
3354extern "C"
3355#endif
3356/* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3358char strerror ();
3359int
3360main ()
3361{
3362strerror ();
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext conftest$ac_exeext
3368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3369 (eval $ac_link) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag"
3377 || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest$ac_exeext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_search_strerror="-l$ac_lib"
3390break
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395fi
3396rm -f conftest.err conftest.$ac_objext \
3397 conftest$ac_exeext conftest.$ac_ext
3398 done
3399fi
3400LIBS=$ac_func_search_save_LIBS
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3403echo "${ECHO_T}$ac_cv_search_strerror" >&6
3404if test "$ac_cv_search_strerror" != no; then
3405 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3406
3407fi
3408
3409echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3410echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3411if test "${ac_cv_header_stdc+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#include <stdlib.h>
3421#include <stdarg.h>
3422#include <string.h>
3423#include <float.h>
3424
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext
3434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_cv_header_stdc=yes
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460ac_cv_header_stdc=no
3461fi
3462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463
3464if test $ac_cv_header_stdc = yes; then
3465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472#include <string.h>
3473
3474_ACEOF
3475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 $EGREP "memchr" >/dev/null 2>&1; then
3477 :
3478else
3479 ac_cv_header_stdc=no
3480fi
3481rm -f conftest*
3482
3483fi
3484
3485if test $ac_cv_header_stdc = yes; then
3486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdlib.h>
3494
3495_ACEOF
3496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 $EGREP "free" >/dev/null 2>&1; then
3498 :
3499else
3500 ac_cv_header_stdc=no
3501fi
3502rm -f conftest*
3503
3504fi
3505
3506if test $ac_cv_header_stdc = yes; then
3507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3508 if test "$cross_compiling" = yes; then
3509 :
3510else
3511 cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517#include <ctype.h>
3518#if ((' ' & 0x0FF) == 0x020)
3519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3521#else
3522# define ISLOWER(c) \
3523 (('a' <= (c) && (c) <= 'i') \
3524 || ('j' <= (c) && (c) <= 'r') \
3525 || ('s' <= (c) && (c) <= 'z'))
3526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3527#endif
3528
3529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3530int
3531main ()
3532{
3533 int i;
3534 for (i = 0; i < 256; i++)
3535 if (XOR (islower (i), ISLOWER (i))
3536 || toupper (i) != TOUPPER (i))
3537 exit(2);
3538 exit (0);
3539}
3540_ACEOF
3541rm -f conftest$ac_exeext
3542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543 (eval $ac_link) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 :
3553else
3554 echo "$as_me: program exited with status $ac_status" >&5
3555echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558( exit $ac_status )
3559ac_cv_header_stdc=no
3560fi
3561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3562fi
3563fi
3564fi
3565echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3566echo "${ECHO_T}$ac_cv_header_stdc" >&6
3567if test $ac_cv_header_stdc = yes; then
3568
3569cat >>confdefs.h <<\_ACEOF
3570#define STDC_HEADERS 1
3571_ACEOF
3572
3573fi
3574
3575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3586 inttypes.h stdint.h unistd.h
3587do
3588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3589echo "$as_me:$LINENO: checking for $ac_header" >&5
3590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3591if eval "test \"\${$as_ac_Header+set}\" = set"; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600$ac_includes_default
3601
3602#include <$ac_header>
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 eval "$as_ac_Header=yes"
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631eval "$as_ac_Header=no"
3632fi
3633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3637if test `eval echo '${'$as_ac_Header'}'` = yes; then
3638 cat >>confdefs.h <<_ACEOF
3639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3640_ACEOF
3641
3642fi
3643
3644done
3645
3646
3647if test "${ac_cv_header_minix_config_h+set}" = set; then
3648 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3649echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3650if test "${ac_cv_header_minix_config_h+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652fi
3653echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3654echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3655else
3656 # Is the header compilable?
3657echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3658echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665$ac_includes_default
3666#include <minix/config.h>
3667_ACEOF
3668rm -f conftest.$ac_objext
3669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -z "$ac_c_werror_flag"
3678 || test ! -s conftest.err'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_header_compiler=yes
3691else
3692 echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695ac_header_compiler=no
3696fi
3697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3699echo "${ECHO_T}$ac_header_compiler" >&6
3700
3701# Is the header present?
3702echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3703echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3704cat >conftest.$ac_ext <<_ACEOF
3705/* confdefs.h. */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */
3710#include <minix/config.h>
3711_ACEOF
3712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } >/dev/null; then
3720 if test -s conftest.err; then
3721 ac_cpp_err=$ac_c_preproc_warn_flag
3722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723 else
3724 ac_cpp_err=
3725 fi
3726else
3727 ac_cpp_err=yes
3728fi
3729if test -z "$ac_cpp_err"; then
3730 ac_header_preproc=yes
3731else
3732 echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 ac_header_preproc=no
3736fi
3737rm -f conftest.err conftest.$ac_ext
3738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3739echo "${ECHO_T}$ac_header_preproc" >&6
3740
3741# So? What about this header?
3742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3743 yes:no: )
3744 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3745echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3747echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3748 ac_header_preproc=yes
3749 ;;
3750 no:yes:* )
3751 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3752echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3754echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3755 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3756echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3758echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3759 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3760echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3761 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3762echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3763 (
3764 cat <<\_ASBOX
3765## ------------------------------------------ ##
3766## Report this to the AC_PACKAGE_NAME lists. ##
3767## ------------------------------------------ ##
3768_ASBOX
3769 ) |
3770 sed "s/^/$as_me: WARNING: /" >&2
3771 ;;
3772esac
3773echo "$as_me:$LINENO: checking for minix/config.h" >&5
3774echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3775if test "${ac_cv_header_minix_config_h+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778 ac_cv_header_minix_config_h=$ac_header_preproc
3779fi
3780echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3781echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3782
3783fi
3784if test $ac_cv_header_minix_config_h = yes; then
3785 MINIX=yes
3786else
3787 MINIX=
3788fi
3789
3790
3791if test "$MINIX" = yes; then
3792
3793cat >>confdefs.h <<\_ACEOF
3794#define _POSIX_SOURCE 1
3795_ACEOF
3796
3797
3798cat >>confdefs.h <<\_ACEOF
3799#define _POSIX_1_SOURCE 2
3800_ACEOF
3801
3802
3803cat >>confdefs.h <<\_ACEOF
3804#define _MINIX 1
3805_ACEOF
3806
3807fi
3808
3809echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3810echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3811if test "${ac_cv_prog_cc_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 ac_cv_prog_cc_stdc=no
3815ac_save_CFLAGS="$CFLAGS"
3816# Don't try gcc -ansi; that turns off useful extensions and
3817# breaks some systems' header files.
3818# AIX -qlanglvl=ansi
3819# Ultrix and OSF/1 -std1
3820# HP-UX -Aa -D_HPUX_SOURCE
3821# SVR4 -Xc
3822for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
3823do
3824 CFLAGS="$ac_save_CFLAGS $ac_arg"
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831#if !defined(__STDC__) || __STDC__ != 1
3832choke me
3833#endif
3834
3835int
3836main ()
3837{
3838int test (int i, double x);
3839struct s1 {int (*f) (int a);};
3840struct s2 {int (*f) (double a);};
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_prog_cc_stdc="$ac_arg"; break
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874done
3875CFLAGS="$ac_save_CFLAGS"
3876
3877fi
3878
3879echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3880echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3881case "x$ac_cv_prog_cc_stdc" in
3882 x|xno) ;;
3883 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
3884esac
3885
3886
3887echo "$as_me:$LINENO: checking for function prototypes" >&5
3888echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3889if test "$ac_cv_prog_cc_stdc" != no; then
3890 echo "$as_me:$LINENO: result: yes" >&5
3891echo "${ECHO_T}yes" >&6
3892 cat >>confdefs.h <<\_ACEOF
3893#define PROTOTYPES 1
3894_ACEOF
3895
3896 U= ANSI2KNR=
3897else
3898 echo "$as_me:$LINENO: result: no" >&5
3899echo "${ECHO_T}no" >&6
3900 U=_ ANSI2KNR=ansi2knr
3901fi
3902
3903echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3904echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3905if test "${ac_cv_c_const+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 cat >conftest.$ac_ext <<_ACEOF
3909/* confdefs.h. */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */
3914
3915int
3916main ()
3917{
3918/* FIXME: Include the comments suggested by Paul. */
3919#ifndef __cplusplus
3920 /* Ultrix mips cc rejects this. */
3921 typedef int charset[2];
3922 const charset x;
3923 /* SunOS 4.1.1 cc rejects this. */
3924 char const *const *ccp;
3925 char **p;
3926 /* NEC SVR4.0.2 mips cc rejects this. */
3927 struct point {int x, y;};
3928 static struct point const zero = {0,0};
3929 /* AIX XL C 1.02.0.0 rejects this.
3930 It does not let you subtract one const X* pointer from another in
3931 an arm of an if-expression whose if-part is not a constant
3932 expression */
3933 const char *g = "string";
3934 ccp = &g + (g ? g-g : 0);
3935 /* HPUX 7.0 cc rejects these. */
3936 ++ccp;
3937 p = (char**) ccp;
3938 ccp = (char const *const *) p;
3939 { /* SCO 3.2v4 cc rejects this. */
3940 char *t;
3941 char const *s = 0 ? (char *) 0 : (char const *) 0;
3942
3943 *t++ = 0;
3944 }
3945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3946 int x[] = {25, 17};
3947 const int *foo = &x[0];
3948 ++foo;
3949 }
3950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3951 typedef const int *iptr;
3952 iptr p = 0;
3953 ++p;
3954 }
3955 { /* AIX XL C 1.02.0.0 rejects this saying
3956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3957 struct s { int j; const int *ap[3]; };
3958 struct s *b; b->j = 5;
3959 }
3960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3961 const int foo = 10;
3962 }
3963#endif
3964
3965 ;
3966 return 0;
3967}
3968_ACEOF
3969rm -f conftest.$ac_objext
3970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -z "$ac_c_werror_flag"
3979 || test ! -s conftest.err'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_c_const=yes
3992else
3993 echo "$as_me: failed program was:" >&5
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
3996ac_cv_c_const=no
3997fi
3998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi
4000echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4001echo "${ECHO_T}$ac_cv_c_const" >&6
4002if test $ac_cv_c_const = no; then
4003
4004cat >>confdefs.h <<\_ACEOF
4005#define const
4006_ACEOF
4007
4008fi
4009
4010echo "$as_me:$LINENO: checking for off_t" >&5
4011echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4012if test "${ac_cv_type_off_t+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 cat >conftest.$ac_ext <<_ACEOF
4016/* confdefs.h. */
4017_ACEOF
4018cat confdefs.h >>conftest.$ac_ext
4019cat >>conftest.$ac_ext <<_ACEOF
4020/* end confdefs.h. */
4021$ac_includes_default
4022int
4023main ()
4024{
4025if ((off_t *) 0)
4026 return 0;
4027if (sizeof (off_t))
4028 return 0;
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_cv_type_off_t=yes
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060ac_cv_type_off_t=no
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063fi
4064echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4065echo "${ECHO_T}$ac_cv_type_off_t" >&6
4066if test $ac_cv_type_off_t = yes; then
4067 :
4068else
4069
4070cat >>confdefs.h <<_ACEOF
4071#define off_t long
4072_ACEOF
4073
4074fi
4075
4076echo "$as_me:$LINENO: checking for size_t" >&5
4077echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4078if test "${ac_cv_type_size_t+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081 cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h. */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */
4087$ac_includes_default
4088int
4089main ()
4090{
4091if ((size_t *) 0)
4092 return 0;
4093if (sizeof (size_t))
4094 return 0;
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099rm -f conftest.$ac_objext
4100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag"
4109 || test ! -s conftest.err'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 (eval $ac_try) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_cv_type_size_t=yes
4122else
4123 echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126ac_cv_type_size_t=no
4127fi
4128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129fi
4130echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4131echo "${ECHO_T}$ac_cv_type_size_t" >&6
4132if test $ac_cv_type_size_t = yes; then
4133 :
4134else
4135
4136cat >>confdefs.h <<_ACEOF
4137#define size_t unsigned
4138_ACEOF
4139
4140fi
4141
4142echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4143echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4144if test "${ac_cv_header_time+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153#include <sys/types.h>
4154#include <sys/time.h>
4155#include <time.h>
4156
4157int
4158main ()
4159{
4160if ((struct tm *) 0)
4161return 0;
4162 ;
4163 return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168 (eval $ac_compile) 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag"
4176 || test ! -s conftest.err'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_header_time=yes
4189else
4190 echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193ac_cv_header_time=no
4194fi
4195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4198echo "${ECHO_T}$ac_cv_header_time" >&6
4199if test $ac_cv_header_time = yes; then
4200
4201cat >>confdefs.h <<\_ACEOF
4202#define TIME_WITH_SYS_TIME 1
4203_ACEOF
4204
4205fi
4206
4207echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4208echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4209if test "${ac_cv_struct_tm+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218#include <sys/types.h>
4219#include <time.h>
4220
4221int
4222main ()
4223{
4224struct tm *tp; tp->tm_sec;
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229rm -f conftest.$ac_objext
4230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231 (eval $ac_compile) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag"
4239 || test ! -s conftest.err'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 (eval $ac_try) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; }; then
4251 ac_cv_struct_tm=time.h
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256ac_cv_struct_tm=sys/time.h
4257fi
4258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4259fi
4260echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4261echo "${ECHO_T}$ac_cv_struct_tm" >&6
4262if test $ac_cv_struct_tm = sys/time.h; then
4263
4264cat >>confdefs.h <<\_ACEOF
4265#define TM_IN_SYS_TIME 1
4266_ACEOF
4267
4268fi
4269
4270
4271if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
4272cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
4278#include <stdio.h>
4279
4280int
4281main ()
4282{
4283 FILE *rubbish = popen("yes", "r");
4284 ;
4285 return 0;
4286}
4287_ACEOF
4288rm -f conftest.$ac_objext
4289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag"
4298 || test ! -s conftest.err'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; } &&
4304 { ac_try='test -s conftest.$ac_objext'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 :
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
4316fi
4317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4318fi
4319
4320
4321
4322echo "$as_me:$LINENO: checking for main in -lg" >&5
4323echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
4324if test "${ac_cv_lib_g_main+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 ac_check_lib_save_LIBS=$LIBS
4328LIBS="-lg $LIBS"
4329cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335
4336
4337int
4338main ()
4339{
4340main ();
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext conftest$ac_exeext
4346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347 (eval $ac_link) 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s 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_lib_g_main=yes
4368else
4369 echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_lib_g_main=no
4373fi
4374rm -f conftest.err conftest.$ac_objext \
4375 conftest$ac_exeext conftest.$ac_ext
4376LIBS=$ac_check_lib_save_LIBS
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
4379echo "${ECHO_T}$ac_cv_lib_g_main" >&6
4380if test $ac_cv_lib_g_main = yes; then
4381 cat >>confdefs.h <<_ACEOF
4382#define HAVE_LIBG 1
4383_ACEOF
4384
4385 LIBS="-lg $LIBS"
4386
4387fi
4388
4389
4390echo "$as_me:$LINENO: checking for main in -lm" >&5
4391echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4392if test "${ac_cv_lib_m_main+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395 ac_check_lib_save_LIBS=$LIBS
4396LIBS="-lm $LIBS"
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h. */
4403
4404
4405int
4406main ()
4407{
4408main ();
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413rm -f conftest.$ac_objext conftest$ac_exeext
4414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_lib_m_main=yes
4436else
4437 echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440ac_cv_lib_m_main=no
4441fi
4442rm -f conftest.err conftest.$ac_objext \
4443 conftest$ac_exeext conftest.$ac_ext
4444LIBS=$ac_check_lib_save_LIBS
4445fi
4446echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4447echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4448if test $ac_cv_lib_m_main = yes; then
4449 cat >>confdefs.h <<_ACEOF
4450#define HAVE_LIBM 1
4451_ACEOF
4452
4453 LIBS="-lm $LIBS"
4454
4455fi
4456
4457
4458echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
4459echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
4460if test "${ac_cv_lib_stdcpp_main+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463 ac_check_lib_save_LIBS=$LIBS
4464LIBS="-lstdc++ $LIBS"
4465cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
4471
4472
4473int
4474main ()
4475{
4476main ();
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext conftest$ac_exeext
4482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483 (eval $ac_link) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest$ac_exeext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_lib_stdcpp_main=yes
4504else
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
4508ac_cv_lib_stdcpp_main=no
4509fi
4510rm -f conftest.err conftest.$ac_objext \
4511 conftest$ac_exeext conftest.$ac_ext
4512LIBS=$ac_check_lib_save_LIBS
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
4515echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
4516if test $ac_cv_lib_stdcpp_main = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518#define HAVE_LIBSTDC__ 1
4519_ACEOF
4520
4521 LIBS="-lstdc++ $LIBS"
4522
4523fi
4524
4525
4526echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
4527echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
4528if test "${ac_cv_lib_crypt_main+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 ac_check_lib_save_LIBS=$LIBS
4532LIBS="-lcrypt $LIBS"
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h. */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h. */
4539
4540
4541int
4542main ()
4543{
4544main ();
4545 ;
4546 return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext conftest$ac_exeext
4550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -z "$ac_c_werror_flag"
4559 || test ! -s conftest.err'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 ac_cv_lib_crypt_main=yes
4572else
4573 echo "$as_me: failed program was:" >&5
4574sed 's/^/| /' conftest.$ac_ext >&5
4575
4576ac_cv_lib_crypt_main=no
4577fi
4578rm -f conftest.err conftest.$ac_objext \
4579 conftest$ac_exeext conftest.$ac_ext
4580LIBS=$ac_check_lib_save_LIBS
4581fi
4582echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
4583echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
4584if test $ac_cv_lib_crypt_main = yes; then
4585 cat >>confdefs.h <<_ACEOF
4586#define HAVE_LIBCRYPT 1
4587_ACEOF
4588
4589 LIBS="-lcrypt $LIBS"
4590
4591fi
4592
4593
4594
4595
4596
4597
4598
4599ac_header_dirent=no
4600for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4601 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4602echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4603echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4604if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h. */
4613#include <sys/types.h>
4614#include <$ac_hdr>
4615
4616int
4617main ()
4618{
4619if ((DIR *) 0)
4620return 0;
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 eval "$as_ac_Header=yes"
4648else
4649 echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652eval "$as_ac_Header=no"
4653fi
4654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655fi
4656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4658if test `eval echo '${'$as_ac_Header'}'` = yes; then
4659 cat >>confdefs.h <<_ACEOF
4660#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4661_ACEOF
4662
4663ac_header_dirent=$ac_hdr; break
4664fi
4665
4666done
4667# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4668if test $ac_header_dirent = dirent.h; then
4669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4670echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4671if test "${ac_cv_search_opendir+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674 ac_func_search_save_LIBS=$LIBS
4675ac_cv_search_opendir=no
4676cat >conftest.$ac_ext <<_ACEOF
4677/* confdefs.h. */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h. */
4682
4683/* Override any gcc2 internal prototype to avoid an error. */
4684#ifdef __cplusplus
4685extern "C"
4686#endif
4687/* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689char opendir ();
4690int
4691main ()
4692{
4693opendir ();
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698rm -f conftest.$ac_objext conftest$ac_exeext
4699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 ac_cv_search_opendir="none required"
4721else
4722 echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725fi
4726rm -f conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728if test "$ac_cv_search_opendir" = no; then
4729 for ac_lib in dir; do
4730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737
4738/* Override any gcc2 internal prototype to avoid an error. */
4739#ifdef __cplusplus
4740extern "C"
4741#endif
4742/* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4744char opendir ();
4745int
4746main ()
4747{
4748opendir ();
4749 ;
4750 return 0;
4751}
4752_ACEOF
4753rm -f conftest.$ac_objext conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_c_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest$ac_exeext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_search_opendir="-l$ac_lib"
4776break
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781fi
4782rm -f conftest.err conftest.$ac_objext \
4783 conftest$ac_exeext conftest.$ac_ext
4784 done
4785fi
4786LIBS=$ac_func_search_save_LIBS
4787fi
4788echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4789echo "${ECHO_T}$ac_cv_search_opendir" >&6
4790if test "$ac_cv_search_opendir" != no; then
4791 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4792
4793fi
4794
4795else
4796 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4797echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4798if test "${ac_cv_search_opendir+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 ac_func_search_save_LIBS=$LIBS
4802ac_cv_search_opendir=no
4803cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
4809
4810/* Override any gcc2 internal prototype to avoid an error. */
4811#ifdef __cplusplus
4812extern "C"
4813#endif
4814/* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816char opendir ();
4817int
4818main ()
4819{
4820opendir ();
4821 ;
4822 return 0;
4823}
4824_ACEOF
4825rm -f conftest.$ac_objext conftest$ac_exeext
4826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -z "$ac_c_werror_flag"
4835 || test ! -s conftest.err'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; } &&
4841 { ac_try='test -s conftest$ac_exeext'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; }; then
4847 ac_cv_search_opendir="none required"
4848else
4849 echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852fi
4853rm -f conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4855if test "$ac_cv_search_opendir" = no; then
4856 for ac_lib in x; do
4857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4858 cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864
4865/* Override any gcc2 internal prototype to avoid an error. */
4866#ifdef __cplusplus
4867extern "C"
4868#endif
4869/* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871char opendir ();
4872int
4873main ()
4874{
4875opendir ();
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880rm -f conftest.$ac_objext conftest$ac_exeext
4881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882 (eval $ac_link) 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } &&
4889 { ac_try='test -z "$ac_c_werror_flag"
4890 || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_search_opendir="-l$ac_lib"
4903break
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908fi
4909rm -f conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911 done
4912fi
4913LIBS=$ac_func_search_save_LIBS
4914fi
4915echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4916echo "${ECHO_T}$ac_cv_search_opendir" >&6
4917if test "$ac_cv_search_opendir" != no; then
4918 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4919
4920fi
4921
4922fi
4923
4924echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4925echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4926if test "${ac_cv_header_stdc+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
4935#include <stdlib.h>
4936#include <stdarg.h>
4937#include <string.h>
4938#include <float.h>
4939
4940int
4941main ()
4942{
4943
4944 ;
4945 return 0;
4946}
4947_ACEOF
4948rm -f conftest.$ac_objext
4949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_header_stdc=yes
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975ac_cv_header_stdc=no
4976fi
4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978
4979if test $ac_cv_header_stdc = yes; then
4980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4981 cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h. */
4987#include <string.h>
4988
4989_ACEOF
4990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 $EGREP "memchr" >/dev/null 2>&1; then
4992 :
4993else
4994 ac_cv_header_stdc=no
4995fi
4996rm -f conftest*
4997
4998fi
4999
5000if test $ac_cv_header_stdc = yes; then
5001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5002 cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008#include <stdlib.h>
5009
5010_ACEOF
5011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "free" >/dev/null 2>&1; then
5013 :
5014else
5015 ac_cv_header_stdc=no
5016fi
5017rm -f conftest*
5018
5019fi
5020
5021if test $ac_cv_header_stdc = yes; then
5022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5023 if test "$cross_compiling" = yes; then
5024 :
5025else
5026 cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h. */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h. */
5032#include <ctype.h>
5033#if ((' ' & 0x0FF) == 0x020)
5034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5036#else
5037# define ISLOWER(c) \
5038 (('a' <= (c) && (c) <= 'i') \
5039 || ('j' <= (c) && (c) <= 'r') \
5040 || ('s' <= (c) && (c) <= 'z'))
5041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5042#endif
5043
5044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5045int
5046main ()
5047{
5048 int i;
5049 for (i = 0; i < 256; i++)
5050 if (XOR (islower (i), ISLOWER (i))
5051 || toupper (i) != TOUPPER (i))
5052 exit(2);
5053 exit (0);
5054}
5055_ACEOF
5056rm -f conftest$ac_exeext
5057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 :
5068else
5069 echo "$as_me: program exited with status $ac_status" >&5
5070echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073( exit $ac_status )
5074ac_cv_header_stdc=no
5075fi
5076rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077fi
5078fi
5079fi
5080echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5081echo "${ECHO_T}$ac_cv_header_stdc" >&6
5082if test $ac_cv_header_stdc = yes; then
5083
5084cat >>confdefs.h <<\_ACEOF
5085#define STDC_HEADERS 1
5086_ACEOF
5087
5088fi
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
5099do
5100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5101if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo "$as_me:$LINENO: checking for $ac_header" >&5
5103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5104if eval "test \"\${$as_ac_Header+set}\" = set"; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106fi
5107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5109else
5110 # Is the header compilable?
5111echo "$as_me:$LINENO: checking $ac_header usability" >&5
5112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5113cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119$ac_includes_default
5120#include <$ac_header>
5121_ACEOF
5122rm -f conftest.$ac_objext
5123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>conftest.er1
5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -z "$ac_c_werror_flag"
5132 || test ! -s conftest.err'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try='test -s conftest.$ac_objext'
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; }; then
5144 ac_header_compiler=yes
5145else
5146 echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149ac_header_compiler=no
5150fi
5151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5153echo "${ECHO_T}$ac_header_compiler" >&6
5154
5155# Is the header present?
5156echo "$as_me:$LINENO: checking $ac_header presence" >&5
5157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5158cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164#include <$ac_header>
5165_ACEOF
5166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5177 else
5178 ac_cpp_err=
5179 fi
5180else
5181 ac_cpp_err=yes
5182fi
5183if test -z "$ac_cpp_err"; then
5184 ac_header_preproc=yes
5185else
5186 echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_header_preproc=no
5190fi
5191rm -f conftest.err conftest.$ac_ext
5192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5193echo "${ECHO_T}$ac_header_preproc" >&6
5194
5195# So? What about this header?
5196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5197 yes:no: )
5198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5202 ac_header_preproc=yes
5203 ;;
5204 no:yes:* )
5205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5217 (
5218 cat <<\_ASBOX
5219## ------------------------------------------ ##
5220## Report this to the AC_PACKAGE_NAME lists. ##
5221## ------------------------------------------ ##
5222_ASBOX
5223 ) |
5224 sed "s/^/$as_me: WARNING: /" >&2
5225 ;;
5226esac
5227echo "$as_me:$LINENO: checking for $ac_header" >&5
5228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5229if eval "test \"\${$as_ac_Header+set}\" = set"; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 eval "$as_ac_Header=\$ac_header_preproc"
5233fi
5234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5236
5237fi
5238if test `eval echo '${'$as_ac_Header'}'` = yes; then
5239 cat >>confdefs.h <<_ACEOF
5240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5241_ACEOF
5242
5243fi
5244
5245done
5246
5247cat >conftest.$ac_ext <<_ACEOF
5248/* confdefs.h. */
5249_ACEOF
5250cat confdefs.h >>conftest.$ac_ext
5251cat >>conftest.$ac_ext <<_ACEOF
5252/* end confdefs.h. */
5253#include <stdio.h>
5254
5255_ACEOF
5256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "fread" >/dev/null 2>&1; then
5258
5259cat >>confdefs.h <<\_ACEOF
5260#define HAVE_FREAD_DECL 1
5261_ACEOF
5262
5263fi
5264rm -f conftest*
5265
5266cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h. */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h. */
5272#include <stdio.h>
5273
5274_ACEOF
5275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "fgetc" >/dev/null 2>&1; then
5277
5278cat >>confdefs.h <<\_ACEOF
5279#define HAVE_FGETC_DECL 1
5280_ACEOF
5281
5282fi
5283rm -f conftest*
5284
5285cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h. */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h. */
5291#include <sys/procfs.h>
5292
5293_ACEOF
5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295 $EGREP "pr_brksize" >/dev/null 2>&1; then
5296
5297cat >>confdefs.h <<\_ACEOF
5298#define HAVE_PR_BRKSIZE 1
5299_ACEOF
5300
5301fi
5302rm -f conftest*
5303
5304
5305# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5306# for constant arguments. Useless!
5307echo "$as_me:$LINENO: checking for working alloca.h" >&5
5308echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5309if test "${ac_cv_working_alloca_h+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 cat >conftest.$ac_ext <<_ACEOF
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
5318#include <alloca.h>
5319int
5320main ()
5321{
5322char *p = (char *) alloca (2 * sizeof (int));
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327rm -f conftest.$ac_objext conftest$ac_exeext
5328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5329 (eval $ac_link) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } &&
5336 { ac_try='test -z "$ac_c_werror_flag"
5337 || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest$ac_exeext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 ac_cv_working_alloca_h=yes
5350else
5351 echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354ac_cv_working_alloca_h=no
5355fi
5356rm -f conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358fi
5359echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5360echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5361if test $ac_cv_working_alloca_h = yes; then
5362
5363cat >>confdefs.h <<\_ACEOF
5364#define HAVE_ALLOCA_H 1
5365_ACEOF
5366
5367fi
5368
5369echo "$as_me:$LINENO: checking for alloca" >&5
5370echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5371if test "${ac_cv_func_alloca_works+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#ifdef __GNUC__
5381# define alloca __builtin_alloca
5382#else
5383# ifdef _MSC_VER
5384# include <malloc.h>
5385# define alloca _alloca
5386# else
5387# if HAVE_ALLOCA_H
5388# include <alloca.h>
5389# else
5390# ifdef _AIX
5391 #pragma alloca
5392# else
5393# ifndef alloca /* predefined by HP cc +Olibcalls */
5394char *alloca ();
5395# endif
5396# endif
5397# endif
5398# endif
5399#endif
5400
5401int
5402main ()
5403{
5404char *p = (char *) alloca (1);
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext conftest$ac_exeext
5410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_func_alloca_works=yes
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436ac_cv_func_alloca_works=no
5437fi
5438rm -f conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440fi
5441echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5442echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5443
5444if test $ac_cv_func_alloca_works = yes; then
5445
5446cat >>confdefs.h <<\_ACEOF
5447#define HAVE_ALLOCA 1
5448_ACEOF
5449
5450else
5451 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5452# that cause trouble. Some versions do not even contain alloca or
5453# contain a buggy version. If you still want to use their alloca,
5454# use ar to extract alloca.o from them instead of compiling alloca.c.
5455
5456ALLOCA=alloca.$ac_objext
5457
5458cat >>confdefs.h <<\_ACEOF
5459#define C_ALLOCA 1
5460_ACEOF
5461
5462
5463echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5464echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5465if test "${ac_cv_os_cray+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
5474#if defined(CRAY) && ! defined(CRAY2)
5475webecray
5476#else
5477wenotbecray
5478#endif
5479
5480_ACEOF
5481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5482 $EGREP "webecray" >/dev/null 2>&1; then
5483 ac_cv_os_cray=yes
5484else
5485 ac_cv_os_cray=no
5486fi
5487rm -f conftest*
5488
5489fi
5490echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5491echo "${ECHO_T}$ac_cv_os_cray" >&6
5492if test $ac_cv_os_cray = yes; then
5493 for ac_func in _getb67 GETB67 getb67; do
5494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5495echo "$as_me:$LINENO: checking for $ac_func" >&5
5496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5497if eval "test \"\${$as_ac_var+set}\" = set"; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500 cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h. */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h. */
5506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5508#define $ac_func innocuous_$ac_func
5509
5510/* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func (); below.
5512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513 <limits.h> exists even on freestanding compilers. */
5514
5515#ifdef __STDC__
5516# include <limits.h>
5517#else
5518# include <assert.h>
5519#endif
5520
5521#undef $ac_func
5522
5523/* Override any gcc2 internal prototype to avoid an error. */
5524#ifdef __cplusplus
5525extern "C"
5526{
5527#endif
5528/* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5530char $ac_func ();
5531/* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5535choke me
5536#else
5537char (*f) () = $ac_func;
5538#endif
5539#ifdef __cplusplus
5540}
5541#endif
5542
5543int
5544main ()
5545{
5546return f != $ac_func;
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551rm -f conftest.$ac_objext conftest$ac_exeext
5552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553 (eval $ac_link) 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } &&
5560 { ac_try='test -z "$ac_c_werror_flag"
5561 || test ! -s conftest.err'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; } &&
5567 { ac_try='test -s conftest$ac_exeext'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 eval "$as_ac_var=yes"
5574else
5575 echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578eval "$as_ac_var=no"
5579fi
5580rm -f conftest.err conftest.$ac_objext \
5581 conftest$ac_exeext conftest.$ac_ext
5582fi
5583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5585if test `eval echo '${'$as_ac_var'}'` = yes; then
5586
5587cat >>confdefs.h <<_ACEOF
5588#define CRAY_STACKSEG_END $ac_func
5589_ACEOF
5590
5591 break
5592fi
5593
5594 done
5595fi
5596
5597echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5598echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5599if test "${ac_cv_c_stack_direction+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 if test "$cross_compiling" = yes; then
5603 ac_cv_c_stack_direction=0
5604else
5605 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h. */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h. */
5611int
5612find_stack_direction ()
5613{
5614 static char *addr = 0;
5615 auto char dummy;
5616 if (addr == 0)
5617 {
5618 addr = &dummy;
5619 return find_stack_direction ();
5620 }
5621 else
5622 return (&dummy > addr) ? 1 : -1;
5623}
5624
5625int
5626main ()
5627{
5628 exit (find_stack_direction () < 0);
5629}
5630_ACEOF
5631rm -f conftest$ac_exeext
5632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 (eval $ac_try) 2>&5
5639 ac_status=$?
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }; }; then
5642 ac_cv_c_stack_direction=1
5643else
5644 echo "$as_me: program exited with status $ac_status" >&5
5645echo "$as_me: failed program was:" >&5
5646sed 's/^/| /' conftest.$ac_ext >&5
5647
5648( exit $ac_status )
5649ac_cv_c_stack_direction=-1
5650fi
5651rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5652fi
5653fi
5654echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5655echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5656
5657cat >>confdefs.h <<_ACEOF
5658#define STACK_DIRECTION $ac_cv_c_stack_direction
5659_ACEOF
5660
5661
5662fi
5663
5664if test $ac_cv_c_compiler_gnu = yes; then
5665 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5666echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
5667if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 ac_pattern="Autoconf.*'x'"
5671 cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677#include <sgtty.h>
5678Autoconf TIOCGETP
5679_ACEOF
5680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5682 ac_cv_prog_gcc_traditional=yes
5683else
5684 ac_cv_prog_gcc_traditional=no
5685fi
5686rm -f conftest*
5687
5688
5689 if test $ac_cv_prog_gcc_traditional = no; then
5690 cat >conftest.$ac_ext <<_ACEOF
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696#include <termio.h>
5697Autoconf TCGETA
5698_ACEOF
5699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5701 ac_cv_prog_gcc_traditional=yes
5702fi
5703rm -f conftest*
5704
5705 fi
5706fi
5707echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5708echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
5709 if test $ac_cv_prog_gcc_traditional = yes; then
5710 CC="$CC -traditional"
5711 fi
5712fi
5713
5714echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5715echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5716if test "${ac_cv_type_signal+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719 cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725#include <sys/types.h>
5726#include <signal.h>
5727#ifdef signal
5728# undef signal
5729#endif
5730#ifdef __cplusplus
5731extern "C" void (*signal (int, void (*)(int)))(int);
5732#else
5733void (*signal ()) ();
5734#endif
5735
5736int
5737main ()
5738{
5739int i;
5740 ;
5741 return 0;
5742}
5743_ACEOF
5744rm -f conftest.$ac_objext
5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag"
5754 || test ! -s conftest.err'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_cv_type_signal=void
5767else
5768 echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771ac_cv_type_signal=int
5772fi
5773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774fi
5775echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5776echo "${ECHO_T}$ac_cv_type_signal" >&6
5777
5778cat >>confdefs.h <<_ACEOF
5779#define RETSIGTYPE $ac_cv_type_signal
5780_ACEOF
5781
5782
5783
5784for ac_func in vprintf
5785do
5786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5787echo "$as_me:$LINENO: checking for $ac_func" >&5
5788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5789if eval "test \"\${$as_ac_var+set}\" = set"; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792 cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5800#define $ac_func innocuous_$ac_func
5801
5802/* System header to define __stub macros and hopefully few prototypes,
5803 which can conflict with char $ac_func (); below.
5804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 <limits.h> exists even on freestanding compilers. */
5806
5807#ifdef __STDC__
5808# include <limits.h>
5809#else
5810# include <assert.h>
5811#endif
5812
5813#undef $ac_func
5814
5815/* Override any gcc2 internal prototype to avoid an error. */
5816#ifdef __cplusplus
5817extern "C"
5818{
5819#endif
5820/* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5822char $ac_func ();
5823/* The GNU C library defines this for functions which it implements
5824 to always fail with ENOSYS. Some functions are actually named
5825 something starting with __ and the normal name is an alias. */
5826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5827choke me
5828#else
5829char (*f) () = $ac_func;
5830#endif
5831#ifdef __cplusplus
5832}
5833#endif
5834
5835int
5836main ()
5837{
5838return f != $ac_func;
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext conftest$ac_exeext
5844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 (eval $ac_try) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 eval "$as_ac_var=yes"
5866else
5867 echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870eval "$as_ac_var=no"
5871fi
5872rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5874fi
5875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5877if test `eval echo '${'$as_ac_var'}'` = yes; then
5878 cat >>confdefs.h <<_ACEOF
5879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5880_ACEOF
5881
5882echo "$as_me:$LINENO: checking for _doprnt" >&5
5883echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5884if test "${ac_cv_func__doprnt+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5895#define _doprnt innocuous__doprnt
5896
5897/* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char _doprnt (); below.
5899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 <limits.h> exists even on freestanding compilers. */
5901
5902#ifdef __STDC__
5903# include <limits.h>
5904#else
5905# include <assert.h>
5906#endif
5907
5908#undef _doprnt
5909
5910/* Override any gcc2 internal prototype to avoid an error. */
5911#ifdef __cplusplus
5912extern "C"
5913{
5914#endif
5915/* We use char because int might match the return type of a gcc2
5916 builtin and then its argument prototype would still apply. */
5917char _doprnt ();
5918/* The GNU C library defines this for functions which it implements
5919 to always fail with ENOSYS. Some functions are actually named
5920 something starting with __ and the normal name is an alias. */
5921#if defined (__stub__doprnt) || defined (__stub____doprnt)
5922choke me
5923#else
5924char (*f) () = _doprnt;
5925#endif
5926#ifdef __cplusplus
5927}
5928#endif
5929
5930int
5931main ()
5932{
5933return f != _doprnt;
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext conftest$ac_exeext
5939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940 (eval $ac_link) 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_c_werror_flag"
5948 || test ! -s conftest.err'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; } &&
5954 { ac_try='test -s conftest$ac_exeext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_func__doprnt=yes
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965ac_cv_func__doprnt=no
5966fi
5967rm -f conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969fi
5970echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5971echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5972if test $ac_cv_func__doprnt = yes; then
5973
5974cat >>confdefs.h <<\_ACEOF
5975#define HAVE_DOPRNT 1
5976_ACEOF
5977
5978fi
5979
5980fi
5981done
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
5995do
5996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5997echo "$as_me:$LINENO: checking for $ac_func" >&5
5998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5999if eval "test \"\${$as_ac_var+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6010#define $ac_func innocuous_$ac_func
6011
6012/* System header to define __stub macros and hopefully few prototypes,
6013 which can conflict with char $ac_func (); below.
6014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6015 <limits.h> exists even on freestanding compilers. */
6016
6017#ifdef __STDC__
6018# include <limits.h>
6019#else
6020# include <assert.h>
6021#endif
6022
6023#undef $ac_func
6024
6025/* Override any gcc2 internal prototype to avoid an error. */
6026#ifdef __cplusplus
6027extern "C"
6028{
6029#endif
6030/* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6032char $ac_func ();
6033/* The GNU C library defines this for functions which it implements
6034 to always fail with ENOSYS. Some functions are actually named
6035 something starting with __ and the normal name is an alias. */
6036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6037choke me
6038#else
6039char (*f) () = $ac_func;
6040#endif
6041#ifdef __cplusplus
6042}
6043#endif
6044
6045int
6046main ()
6047{
6048return f != $ac_func;
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053rm -f conftest.$ac_objext conftest$ac_exeext
6054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -z "$ac_c_werror_flag"
6063 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } &&
6069 { ac_try='test -s conftest$ac_exeext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 eval "$as_ac_var=yes"
6076else
6077 echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080eval "$as_ac_var=no"
6081fi
6082rm -f conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084fi
6085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6087if test `eval echo '${'$as_ac_var'}'` = yes; then
6088 cat >>confdefs.h <<_ACEOF
6089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6090_ACEOF
6091
6092fi
6093done
6094
6095
6096
6097
6098for ac_func in ftruncate strstr strcasecmp
6099do
6100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6101echo "$as_me:$LINENO: checking for $ac_func" >&5
6102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6103if eval "test \"\${$as_ac_var+set}\" = set"; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106 cat >conftest.$ac_ext <<_ACEOF
6107/* confdefs.h. */
6108_ACEOF
6109cat confdefs.h >>conftest.$ac_ext
6110cat >>conftest.$ac_ext <<_ACEOF
6111/* end confdefs.h. */
6112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6114#define $ac_func innocuous_$ac_func
6115
6116/* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func (); below.
6118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 <limits.h> exists even on freestanding compilers. */
6120
6121#ifdef __STDC__
6122# include <limits.h>
6123#else
6124# include <assert.h>
6125#endif
6126
6127#undef $ac_func
6128
6129/* Override any gcc2 internal prototype to avoid an error. */
6130#ifdef __cplusplus
6131extern "C"
6132{
6133#endif
6134/* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136char $ac_func ();
6137/* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6141choke me
6142#else
6143char (*f) () = $ac_func;
6144#endif
6145#ifdef __cplusplus
6146}
6147#endif
6148
6149int
6150main ()
6151{
6152return f != $ac_func;
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157rm -f conftest.$ac_objext conftest$ac_exeext
6158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159 (eval $ac_link) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 eval "$as_ac_var=yes"
6180else
6181 echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184eval "$as_ac_var=no"
6185fi
6186rm -f conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6188fi
6189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6191if test `eval echo '${'$as_ac_var'}'` = yes; then
6192 cat >>confdefs.h <<_ACEOF
6193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6194_ACEOF
6195
6196else
6197 case $LIBOBJS in
6198 "$ac_func.$ac_objext" | \
6199 *" $ac_func.$ac_objext" | \
6200 "$ac_func.$ac_objext "* | \
6201 *" $ac_func.$ac_objext "* ) ;;
6202 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6203esac
6204
6205fi
6206done
6207
6208
6209
6210
6211echo "$as_me:$LINENO: checking for textdomain" >&5
6212echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6213if test "${ac_cv_func_textdomain+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216 cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
6222/* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
6223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6224#define textdomain innocuous_textdomain
6225
6226/* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char textdomain (); below.
6228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 <limits.h> exists even on freestanding compilers. */
6230
6231#ifdef __STDC__
6232# include <limits.h>
6233#else
6234# include <assert.h>
6235#endif
6236
6237#undef textdomain
6238
6239/* Override any gcc2 internal prototype to avoid an error. */
6240#ifdef __cplusplus
6241extern "C"
6242{
6243#endif
6244/* We use char because int might match the return type of a gcc2
6245 builtin and then its argument prototype would still apply. */
6246char textdomain ();
6247/* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250#if defined (__stub_textdomain) || defined (__stub___textdomain)
6251choke me
6252#else
6253char (*f) () = textdomain;
6254#endif
6255#ifdef __cplusplus
6256}
6257#endif
6258
6259int
6260main ()
6261{
6262return f != textdomain;
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267rm -f conftest.$ac_objext conftest$ac_exeext
6268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269 (eval $ac_link) 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest$ac_exeext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 (eval $ac_try) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_func_textdomain=yes
6290else
6291 echo "$as_me: failed program was:" >&5
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
6294ac_cv_func_textdomain=no
6295fi
6296rm -f conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298fi
6299echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6300echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6301if test $ac_cv_func_textdomain = yes; then
6302
6303cat >>confdefs.h <<\_ACEOF
6304#define ENABLE_NLS 1
6305_ACEOF
6306
6307fi
6308
6309
6310ac_ext=cc
6311ac_cpp='$CXXCPP $CPPFLAGS'
6312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6315
6316
6317success=no
6318echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
6319echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
6320
6321
6322cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328#include <vector>
6329
6330int
6331main ()
6332{
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext
6339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_cxx_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 success=yes
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365fi
6366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367
6368if test $success = "no"; then
6369cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
6375#include <vector.h>
6376
6377int
6378main ()
6379{
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385rm -f conftest.$ac_objext
6386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag"
6395 || test ! -s conftest.err'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 success="yes"
6408else
6409 echo "$as_me: failed program was:" >&5
6410sed 's/^/| /' conftest.$ac_ext >&5
6411
6412fi
6413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414fi
6415
6416if test $success = "no"; then
6417cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
6423#include <ospace\\std\\vector>
6424
6425int
6426main ()
6427{
6428
6429 ;
6430 return 0;
6431}
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435 (eval $ac_compile) 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -z "$ac_cxx_werror_flag"
6443 || test ! -s conftest.err'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; } &&
6449 { ac_try='test -s conftest.$ac_objext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 success="yes"
6456else
6457 echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460fi
6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6462fi
6463
6464if test $success = yes; then
6465echo "$as_me:$LINENO: result: \"no\"" >&5
6466echo "${ECHO_T}\"no\"" >&6
6467else
6468echo "$as_me:$LINENO: result: \"yes\"" >&5
6469echo "${ECHO_T}\"yes\"" >&6
6470{ { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
6471echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
6472 { (exit 1); exit 1; }; }
6473fi
6474
6475gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
6476# check for running bash under cygwin
6477 if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
6478 then
6479 gsdlos=windows
6480 fi
6481
6482
6483# ---------------------------------------------------------------------------
6484ac_configure_args="$ac_configure_args --host=$host --target=$target"
6485
6486
6487subdirs="$subdirs packages"
6488
6489
6490 ac_config_files="$ac_config_files packages/Makefile docs/Makefile src/java/Makefile Makefile"
6491cat >confcache <<\_ACEOF
6492# This file is a shell script that caches the results of configure
6493# tests run on this system so they can be shared between configure
6494# scripts and configure runs, see configure's option --config-cache.
6495# It is not useful on other systems. If it contains results you don't
6496# want to keep, you may remove or edit it.
6497#
6498# config.status only pays attention to the cache file if you give it
6499# the --recheck option to rerun configure.
6500#
6501# `ac_cv_env_foo' variables (set or unset) will be overridden when
6502# loading this file, other *unset* `ac_cv_foo' will be assigned the
6503# following values.
6504
6505_ACEOF
6506
6507# The following way of writing the cache mishandles newlines in values,
6508# but we know of no workaround that is simple, portable, and efficient.
6509# So, don't put newlines in cache variables' values.
6510# Ultrix sh set writes to stderr and can't be redirected directly,
6511# and sets the high bit in the cache file unless we assign to the vars.
6512{
6513 (set) 2>&1 |
6514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6515 *ac_space=\ *)
6516 # `set' does not quote correctly, so add quotes (double-quote
6517 # substitution turns \\\\ into \\, and sed turns \\ into \).
6518 sed -n \
6519 "s/'/'\\\\''/g;
6520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6521 ;;
6522 *)
6523 # `set' quotes correctly as required by POSIX, so do not add quotes.
6524 sed -n \
6525 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6526 ;;
6527 esac;
6528} |
6529 sed '
6530 t clear
6531 : clear
6532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6533 t end
6534 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6535 : end' >>confcache
6536if diff $cache_file confcache >/dev/null 2>&1; then :; else
6537 if test -w $cache_file; then
6538 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6539 cat confcache >$cache_file
6540 else
6541 echo "not updating unwritable cache $cache_file"
6542 fi
6543fi
6544rm -f confcache
6545
6546test "x$prefix" = xNONE && prefix=$ac_default_prefix
6547# Let make expand exec_prefix.
6548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6549
6550# VPATH may cause trouble with some makes, so we remove $(srcdir),
6551# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6552# trailing colons and then remove the whole line if VPATH becomes empty
6553# (actually we leave an empty line to preserve line numbers).
6554if test "x$srcdir" = x.; then
6555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6556s/:*\$(srcdir):*/:/;
6557s/:*\${srcdir}:*/:/;
6558s/:*@srcdir@:*/:/;
6559s/^\([^=]*=[ ]*\):*/\1/;
6560s/:*$//;
6561s/^[^=]*=[ ]*$//;
6562}'
6563fi
6564
6565DEFS=-DHAVE_CONFIG_H
6566
6567ac_libobjs=
6568ac_ltlibobjs=
6569for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6570 # 1. Remove the extension, and $U if already installed.
6571 ac_i=`echo "$ac_i" |
6572 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6573 # 2. Add them.
6574 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6575 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6576done
6577LIBOBJS=$ac_libobjs
6578
6579LTLIBOBJS=$ac_ltlibobjs
6580
6581
6582
6583: ${CONFIG_STATUS=./config.status}
6584ac_clean_files_save=$ac_clean_files
6585ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6586{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6587echo "$as_me: creating $CONFIG_STATUS" >&6;}
6588cat >$CONFIG_STATUS <<_ACEOF
6589#! $SHELL
6590# Generated by $as_me.
6591# Run this file to recreate the current configuration.
6592# Compiler output produced by configure, useful for debugging
6593# configure, is in config.log if it exists.
6594
6595debug=false
6596ac_cs_recheck=false
6597ac_cs_silent=false
6598SHELL=\${CONFIG_SHELL-$SHELL}
6599_ACEOF
6600
6601cat >>$CONFIG_STATUS <<\_ACEOF
6602## --------------------- ##
6603## M4sh Initialization. ##
6604## --------------------- ##
6605
6606# Be Bourne compatible
6607if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6608 emulate sh
6609 NULLCMD=:
6610 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6611 # is contrary to our usage. Disable this feature.
6612 alias -g '${1+"$@"}'='"$@"'
6613elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6614 set -o posix
6615fi
6616DUALCASE=1; export DUALCASE # for MKS sh
6617
6618# Support unset when possible.
6619if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6620 as_unset=unset
6621else
6622 as_unset=false
6623fi
6624
6625
6626# Work around bugs in pre-3.0 UWIN ksh.
6627$as_unset ENV MAIL MAILPATH
6628PS1='$ '
6629PS2='> '
6630PS4='+ '
6631
6632# NLS nuisances.
6633for as_var in \
6634 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6635 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6636 LC_TELEPHONE LC_TIME
6637do
6638 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6639 eval $as_var=C; export $as_var
6640 else
6641 $as_unset $as_var
6642 fi
6643done
6644
6645# Required to use basename.
6646if expr a : '\(a\)' >/dev/null 2>&1; then
6647 as_expr=expr
6648else
6649 as_expr=false
6650fi
6651
6652if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6653 as_basename=basename
6654else
6655 as_basename=false
6656fi
6657
6658
6659# Name of the executable.
6660as_me=`$as_basename "$0" ||
6661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6662 X"$0" : 'X\(//\)$' \| \
6663 X"$0" : 'X\(/\)$' \| \
6664 . : '\(.\)' 2>/dev/null ||
6665echo X/"$0" |
6666 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6667 /^X\/\(\/\/\)$/{ s//\1/; q; }
6668 /^X\/\(\/\).*/{ s//\1/; q; }
6669 s/.*/./; q'`
6670
6671
6672# PATH needs CR, and LINENO needs CR and PATH.
6673# Avoid depending upon Character Ranges.
6674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6677as_cr_digits='0123456789'
6678as_cr_alnum=$as_cr_Letters$as_cr_digits
6679
6680# The user is always right.
6681if test "${PATH_SEPARATOR+set}" != set; then
6682 echo "#! /bin/sh" >conf$$.sh
6683 echo "exit 0" >>conf$$.sh
6684 chmod +x conf$$.sh
6685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6686 PATH_SEPARATOR=';'
6687 else
6688 PATH_SEPARATOR=:
6689 fi
6690 rm -f conf$$.sh
6691fi
6692
6693
6694 as_lineno_1=$LINENO
6695 as_lineno_2=$LINENO
6696 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6697 test "x$as_lineno_1" != "x$as_lineno_2" &&
6698 test "x$as_lineno_3" = "x$as_lineno_2" || {
6699 # Find who we are. Look in the path if we contain no path at all
6700 # relative or not.
6701 case $0 in
6702 *[\\/]* ) as_myself=$0 ;;
6703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6709done
6710
6711 ;;
6712 esac
6713 # We did not find ourselves, most probably we were run as `sh COMMAND'
6714 # in which case we are not to be found in the path.
6715 if test "x$as_myself" = x; then
6716 as_myself=$0
6717 fi
6718 if test ! -f "$as_myself"; then
6719 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6720echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6721 { (exit 1); exit 1; }; }
6722 fi
6723 case $CONFIG_SHELL in
6724 '')
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for as_base in sh bash ksh sh5; do
6731 case $as_dir in
6732 /*)
6733 if ("$as_dir/$as_base" -c '
6734 as_lineno_1=$LINENO
6735 as_lineno_2=$LINENO
6736 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6737 test "x$as_lineno_1" != "x$as_lineno_2" &&
6738 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6739 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6740 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6741 CONFIG_SHELL=$as_dir/$as_base
6742 export CONFIG_SHELL
6743 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6744 fi;;
6745 esac
6746 done
6747done
6748;;
6749 esac
6750
6751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6752 # uniformly replaced by the line number. The first 'sed' inserts a
6753 # line-number line before each line; the second 'sed' does the real
6754 # work. The second script uses 'N' to pair each line-number line
6755 # with the numbered line, and appends trailing '-' during
6756 # substitution so that $LINENO is not a special case at line end.
6757 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6758 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6759 sed '=' <$as_myself |
6760 sed '
6761 N
6762 s,$,-,
6763 : loop
6764 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6765 t loop
6766 s,-$,,
6767 s,^['$as_cr_digits']*\n,,
6768 ' >$as_me.lineno &&
6769 chmod +x $as_me.lineno ||
6770 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6771echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6772 { (exit 1); exit 1; }; }
6773
6774 # Don't try to exec as it changes $[0], causing all sort of problems
6775 # (the dirname of $[0] is not the place where we might find the
6776 # original and so on. Autoconf is especially sensible to this).
6777 . ./$as_me.lineno
6778 # Exit status is that of the last command.
6779 exit
6780}
6781
6782
6783case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6784 *c*,-n*) ECHO_N= ECHO_C='
6785' ECHO_T=' ' ;;
6786 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6787 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6788esac
6789
6790if expr a : '\(a\)' >/dev/null 2>&1; then
6791 as_expr=expr
6792else
6793 as_expr=false
6794fi
6795
6796rm -f conf$$ conf$$.exe conf$$.file
6797echo >conf$$.file
6798if ln -s conf$$.file conf$$ 2>/dev/null; then
6799 # We could just check for DJGPP; but this test a) works b) is more generic
6800 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6801 if test -f conf$$.exe; then
6802 # Don't use ln at all; we don't have any links
6803 as_ln_s='cp -p'
6804 else
6805 as_ln_s='ln -s'
6806 fi
6807elif ln conf$$.file conf$$ 2>/dev/null; then
6808 as_ln_s=ln
6809else
6810 as_ln_s='cp -p'
6811fi
6812rm -f conf$$ conf$$.exe conf$$.file
6813
6814if mkdir -p . 2>/dev/null; then
6815 as_mkdir_p=:
6816else
6817 test -d ./-p && rmdir ./-p
6818 as_mkdir_p=false
6819fi
6820
6821as_executable_p="test -f"
6822
6823# Sed expression to map a string onto a valid CPP name.
6824as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6825
6826# Sed expression to map a string onto a valid variable name.
6827as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6828
6829
6830# IFS
6831# We need space, tab and new line, in precisely that order.
6832as_nl='
6833'
6834IFS=" $as_nl"
6835
6836# CDPATH.
6837$as_unset CDPATH
6838
6839exec 6>&1
6840
6841# Open the log real soon, to keep \$[0] and so on meaningful, and to
6842# report actual input values of CONFIG_FILES etc. instead of their
6843# values after options handling. Logging --version etc. is OK.
6844exec 5>>config.log
6845{
6846 echo
6847 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6848## Running $as_me. ##
6849_ASBOX
6850} >&5
6851cat >&5 <<_CSEOF
6852
6853This file was extended by $as_me, which was
6854generated by GNU Autoconf 2.58. Invocation command line was
6855
6856 CONFIG_FILES = $CONFIG_FILES
6857 CONFIG_HEADERS = $CONFIG_HEADERS
6858 CONFIG_LINKS = $CONFIG_LINKS
6859 CONFIG_COMMANDS = $CONFIG_COMMANDS
6860 $ $0 $@
6861
6862_CSEOF
6863echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6864echo >&5
6865_ACEOF
6866
6867# Files that config.status was made for.
6868if test -n "$ac_config_files"; then
6869 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6870fi
6871
6872if test -n "$ac_config_headers"; then
6873 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6874fi
6875
6876if test -n "$ac_config_links"; then
6877 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6878fi
6879
6880if test -n "$ac_config_commands"; then
6881 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6882fi
6883
6884cat >>$CONFIG_STATUS <<\_ACEOF
6885
6886ac_cs_usage="\
6887\`$as_me' instantiates files from templates according to the
6888current configuration.
6889
6890Usage: $0 [OPTIONS] [FILE]...
6891
6892 -h, --help print this help, then exit
6893 -V, --version print version number, then exit
6894 -q, --quiet do not print progress messages
6895 -d, --debug don't remove temporary files
6896 --recheck update $as_me by reconfiguring in the same conditions
6897 --file=FILE[:TEMPLATE]
6898 instantiate the configuration file FILE
6899 --header=FILE[:TEMPLATE]
6900 instantiate the configuration header FILE
6901
6902Configuration files:
6903$config_files
6904
6905Configuration headers:
6906$config_headers
6907
6908Report bugs to <[email protected]>."
6909_ACEOF
6910
6911cat >>$CONFIG_STATUS <<_ACEOF
6912ac_cs_version="\\
6913config.status
6914configured by $0, generated by GNU Autoconf 2.58,
6915 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6916
6917Copyright (C) 2003 Free Software Foundation, Inc.
6918This config.status script is free software; the Free Software Foundation
6919gives unlimited permission to copy, distribute and modify it."
6920srcdir=$srcdir
6921INSTALL="$INSTALL"
6922_ACEOF
6923
6924cat >>$CONFIG_STATUS <<\_ACEOF
6925# If no file are specified by the user, then we need to provide default
6926# value. By we need to know if files were specified by the user.
6927ac_need_defaults=:
6928while test $# != 0
6929do
6930 case $1 in
6931 --*=*)
6932 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6933 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6934 ac_shift=:
6935 ;;
6936 -*)
6937 ac_option=$1
6938 ac_optarg=$2
6939 ac_shift=shift
6940 ;;
6941 *) # This is not an option, so the user has probably given explicit
6942 # arguments.
6943 ac_option=$1
6944 ac_need_defaults=false;;
6945 esac
6946
6947 case $ac_option in
6948 # Handling of the options.
6949_ACEOF
6950cat >>$CONFIG_STATUS <<\_ACEOF
6951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6952 ac_cs_recheck=: ;;
6953 --version | --vers* | -V )
6954 echo "$ac_cs_version"; exit 0 ;;
6955 --he | --h)
6956 # Conflict between --help and --header
6957 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6958Try \`$0 --help' for more information." >&5
6959echo "$as_me: error: ambiguous option: $1
6960Try \`$0 --help' for more information." >&2;}
6961 { (exit 1); exit 1; }; };;
6962 --help | --hel | -h )
6963 echo "$ac_cs_usage"; exit 0 ;;
6964 --debug | --d* | -d )
6965 debug=: ;;
6966 --file | --fil | --fi | --f )
6967 $ac_shift
6968 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6969 ac_need_defaults=false;;
6970 --header | --heade | --head | --hea )
6971 $ac_shift
6972 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6973 ac_need_defaults=false;;
6974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6976 ac_cs_silent=: ;;
6977
6978 # This is an error.
6979 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6980Try \`$0 --help' for more information." >&5
6981echo "$as_me: error: unrecognized option: $1
6982Try \`$0 --help' for more information." >&2;}
6983 { (exit 1); exit 1; }; } ;;
6984
6985 *) ac_config_targets="$ac_config_targets $1" ;;
6986
6987 esac
6988 shift
6989done
6990
6991ac_configure_extra_args=
6992
6993if $ac_cs_silent; then
6994 exec 6>/dev/null
6995 ac_configure_extra_args="$ac_configure_extra_args --silent"
6996fi
6997
6998_ACEOF
6999cat >>$CONFIG_STATUS <<_ACEOF
7000if \$ac_cs_recheck; then
7001 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7002 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7003fi
7004
7005_ACEOF
7006
7007
7008
7009
7010
7011cat >>$CONFIG_STATUS <<\_ACEOF
7012for ac_config_target in $ac_config_targets
7013do
7014 case "$ac_config_target" in
7015 # Handling of arguments.
7016 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
7017 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
7018 "src/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/java/Makefile" ;;
7019 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7020 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7022echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7023 { (exit 1); exit 1; }; };;
7024 esac
7025done
7026
7027# If the user did not use the arguments to specify the items to instantiate,
7028# then the envvar interface is used. Set only those that are not.
7029# We use the long form for the default assignment because of an extremely
7030# bizarre bug on SunOS 4.1.3.
7031if $ac_need_defaults; then
7032 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7033 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7034fi
7035
7036# Have a temporary directory for convenience. Make it in the build tree
7037# simply because there is no reason to put it here, and in addition,
7038# creating and moving files from /tmp can sometimes cause problems.
7039# Create a temporary directory, and hook for its removal unless debugging.
7040$debug ||
7041{
7042 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7043 trap '{ (exit 1); exit 1; }' 1 2 13 15
7044}
7045
7046# Create a (secure) tmp directory for tmp files.
7047
7048{
7049 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7050 test -n "$tmp" && test -d "$tmp"
7051} ||
7052{
7053 tmp=./confstat$$-$RANDOM
7054 (umask 077 && mkdir $tmp)
7055} ||
7056{
7057 echo "$me: cannot create a temporary directory in ." >&2
7058 { (exit 1); exit 1; }
7059}
7060
7061_ACEOF
7062
7063cat >>$CONFIG_STATUS <<_ACEOF
7064
7065#
7066# CONFIG_FILES section.
7067#
7068
7069# No need to generate the scripts if there are no CONFIG_FILES.
7070# This happens for instance when ./config.status config.h
7071if test -n "\$CONFIG_FILES"; then
7072 # Protect against being on the right side of a sed subst in config.status.
7073 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7074 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7075s,@SHELL@,$SHELL,;t t
7076s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7077s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7078s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7079s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7080s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7081s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7082s,@exec_prefix@,$exec_prefix,;t t
7083s,@prefix@,$prefix,;t t
7084s,@program_transform_name@,$program_transform_name,;t t
7085s,@bindir@,$bindir,;t t
7086s,@sbindir@,$sbindir,;t t
7087s,@libexecdir@,$libexecdir,;t t
7088s,@datadir@,$datadir,;t t
7089s,@sysconfdir@,$sysconfdir,;t t
7090s,@sharedstatedir@,$sharedstatedir,;t t
7091s,@localstatedir@,$localstatedir,;t t
7092s,@libdir@,$libdir,;t t
7093s,@includedir@,$includedir,;t t
7094s,@oldincludedir@,$oldincludedir,;t t
7095s,@infodir@,$infodir,;t t
7096s,@mandir@,$mandir,;t t
7097s,@build_alias@,$build_alias,;t t
7098s,@host_alias@,$host_alias,;t t
7099s,@target_alias@,$target_alias,;t t
7100s,@DEFS@,$DEFS,;t t
7101s,@ECHO_C@,$ECHO_C,;t t
7102s,@ECHO_N@,$ECHO_N,;t t
7103s,@ECHO_T@,$ECHO_T,;t t
7104s,@LIBS@,$LIBS,;t t
7105s,@PACKAGE@,$PACKAGE,;t t
7106s,@VERSION@,$VERSION,;t t
7107s,@CFLAGS@,$CFLAGS,;t t
7108s,@CC@,$CC,;t t
7109s,@LDFLAGS@,$LDFLAGS,;t t
7110s,@CPPFLAGS@,$CPPFLAGS,;t t
7111s,@ac_ct_CC@,$ac_ct_CC,;t t
7112s,@EXEEXT@,$EXEEXT,;t t
7113s,@OBJEXT@,$OBJEXT,;t t
7114s,@CXX@,$CXX,;t t
7115s,@CXXFLAGS@,$CXXFLAGS,;t t
7116s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7117s,@AWK@,$AWK,;t t
7118s,@YACC@,$YACC,;t t
7119s,@build@,$build,;t t
7120s,@build_cpu@,$build_cpu,;t t
7121s,@build_vendor@,$build_vendor,;t t
7122s,@build_os@,$build_os,;t t
7123s,@host@,$host,;t t
7124s,@host_cpu@,$host_cpu,;t t
7125s,@host_vendor@,$host_vendor,;t t
7126s,@host_os@,$host_os,;t t
7127s,@target@,$target,;t t
7128s,@target_cpu@,$target_cpu,;t t
7129s,@target_vendor@,$target_vendor,;t t
7130s,@target_os@,$target_os,;t t
7131s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7132s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7133s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7134s,@LN_S@,$LN_S,;t t
7135s,@SET_MAKE@,$SET_MAKE,;t t
7136s,@RANLIB@,$RANLIB,;t t
7137s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7138s,@CPP@,$CPP,;t t
7139s,@EGREP@,$EGREP,;t t
7140s,@U@,$U,;t t
7141s,@ANSI2KNR@,$ANSI2KNR,;t t
7142s,@ALLOCA@,$ALLOCA,;t t
7143s,@LIBOBJS@,$LIBOBJS,;t t
7144s,@gsdlos@,$gsdlos,;t t
7145s,@subdirs@,$subdirs,;t t
7146s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7147CEOF
7148
7149_ACEOF
7150
7151 cat >>$CONFIG_STATUS <<\_ACEOF
7152 # Split the substitutions into bite-sized pieces for seds with
7153 # small command number limits, like on Digital OSF/1 and HP-UX.
7154 ac_max_sed_lines=48
7155 ac_sed_frag=1 # Number of current file.
7156 ac_beg=1 # First line for current file.
7157 ac_end=$ac_max_sed_lines # Line after last line for current file.
7158 ac_more_lines=:
7159 ac_sed_cmds=
7160 while $ac_more_lines; do
7161 if test $ac_beg -gt 1; then
7162 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7163 else
7164 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7165 fi
7166 if test ! -s $tmp/subs.frag; then
7167 ac_more_lines=false
7168 else
7169 # The purpose of the label and of the branching condition is to
7170 # speed up the sed processing (if there are no `@' at all, there
7171 # is no need to browse any of the substitutions).
7172 # These are the two extra sed commands mentioned above.
7173 (echo ':t
7174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7175 if test -z "$ac_sed_cmds"; then
7176 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7177 else
7178 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7179 fi
7180 ac_sed_frag=`expr $ac_sed_frag + 1`
7181 ac_beg=$ac_end
7182 ac_end=`expr $ac_end + $ac_max_sed_lines`
7183 fi
7184 done
7185 if test -z "$ac_sed_cmds"; then
7186 ac_sed_cmds=cat
7187 fi
7188fi # test -n "$CONFIG_FILES"
7189
7190_ACEOF
7191cat >>$CONFIG_STATUS <<\_ACEOF
7192for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7194 case $ac_file in
7195 - | *:- | *:-:* ) # input from stdin
7196 cat >$tmp/stdin
7197 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7199 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7201 * ) ac_file_in=$ac_file.in ;;
7202 esac
7203
7204 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7205 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7207 X"$ac_file" : 'X\(//\)[^/]' \| \
7208 X"$ac_file" : 'X\(//\)$' \| \
7209 X"$ac_file" : 'X\(/\)' \| \
7210 . : '\(.\)' 2>/dev/null ||
7211echo X"$ac_file" |
7212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7214 /^X\(\/\/\)$/{ s//\1/; q; }
7215 /^X\(\/\).*/{ s//\1/; q; }
7216 s/.*/./; q'`
7217 { if $as_mkdir_p; then
7218 mkdir -p "$ac_dir"
7219 else
7220 as_dir="$ac_dir"
7221 as_dirs=
7222 while test ! -d "$as_dir"; do
7223 as_dirs="$as_dir $as_dirs"
7224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7226 X"$as_dir" : 'X\(//\)[^/]' \| \
7227 X"$as_dir" : 'X\(//\)$' \| \
7228 X"$as_dir" : 'X\(/\)' \| \
7229 . : '\(.\)' 2>/dev/null ||
7230echo X"$as_dir" |
7231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7233 /^X\(\/\/\)$/{ s//\1/; q; }
7234 /^X\(\/\).*/{ s//\1/; q; }
7235 s/.*/./; q'`
7236 done
7237 test ! -n "$as_dirs" || mkdir $as_dirs
7238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7240 { (exit 1); exit 1; }; }; }
7241
7242 ac_builddir=.
7243
7244if test "$ac_dir" != .; then
7245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7246 # A "../" for each directory in $ac_dir_suffix.
7247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7248else
7249 ac_dir_suffix= ac_top_builddir=
7250fi
7251
7252case $srcdir in
7253 .) # No --srcdir option. We are building in place.
7254 ac_srcdir=.
7255 if test -z "$ac_top_builddir"; then
7256 ac_top_srcdir=.
7257 else
7258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7259 fi ;;
7260 [\\/]* | ?:[\\/]* ) # Absolute path.
7261 ac_srcdir=$srcdir$ac_dir_suffix;
7262 ac_top_srcdir=$srcdir ;;
7263 *) # Relative path.
7264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7266esac
7267case "$ac_dir" in
7268.) ac_abs_builddir=$ac_builddir;;
7269*)
7270 case $ac_builddir in
7271 .) ac_abs_builddir="$ac_dir";;
7272 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
7273 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
7274 esac;;
7275esac
7276case "$ac_dir" in
7277.) ac_abs_top_builddir=${ac_top_builddir}.;;
7278*)
7279 case ${ac_top_builddir}. in
7280 .) ac_abs_top_builddir="$ac_dir";;
7281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7282 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
7283 esac;;
7284esac
7285case "$ac_dir" in
7286.) ac_abs_srcdir=$ac_srcdir;;
7287*)
7288 case $ac_srcdir in
7289 .) ac_abs_srcdir="$ac_dir";;
7290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7291 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
7292 esac;;
7293esac
7294case "$ac_dir" in
7295.) ac_abs_top_srcdir=$ac_top_srcdir;;
7296*)
7297 case $ac_top_srcdir in
7298 .) ac_abs_top_srcdir="$ac_dir";;
7299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7300 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
7301 esac;;
7302esac
7303
7304
7305 case $INSTALL in
7306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7307 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7308 esac
7309
7310 if test x"$ac_file" != x-; then
7311 { echo "$as_me:$LINENO: creating $ac_file" >&5
7312echo "$as_me: creating $ac_file" >&6;}
7313 rm -f "$ac_file"
7314 fi
7315 # Let's still pretend it is `configure' which instantiates (i.e., don't
7316 # use $as_me), people would be surprised to read:
7317 # /* config.h. Generated by config.status. */
7318 if test x"$ac_file" = x-; then
7319 configure_input=
7320 else
7321 configure_input="$ac_file. "
7322 fi
7323 configure_input=$configure_input"Generated from `echo $ac_file_in |
7324 sed 's,.*/,,'` by configure."
7325
7326 # First look for the input files in the build tree, otherwise in the
7327 # src tree.
7328 ac_file_inputs=`IFS=:
7329 for f in $ac_file_in; do
7330 case $f in
7331 -) echo $tmp/stdin ;;
7332 [\\/$]*)
7333 # Absolute (can't be DOS-style, as IFS=:)
7334 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7335echo "$as_me: error: cannot find input file: $f" >&2;}
7336 { (exit 1); exit 1; }; }
7337 echo "$f";;
7338 *) # Relative
7339 if test -f "$f"; then
7340 # Build tree
7341 echo "$f"
7342 elif test -f "$srcdir/$f"; then
7343 # Source tree
7344 echo "$srcdir/$f"
7345 else
7346 # /dev/null tree
7347 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7348echo "$as_me: error: cannot find input file: $f" >&2;}
7349 { (exit 1); exit 1; }; }
7350 fi;;
7351 esac
7352 done` || { (exit 1); exit 1; }
7353_ACEOF
7354cat >>$CONFIG_STATUS <<_ACEOF
7355 sed "$ac_vpsub
7356$extrasub
7357_ACEOF
7358cat >>$CONFIG_STATUS <<\_ACEOF
7359:t
7360/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7361s,@configure_input@,$configure_input,;t t
7362s,@srcdir@,$ac_srcdir,;t t
7363s,@abs_srcdir@,$ac_abs_srcdir,;t t
7364s,@top_srcdir@,$ac_top_srcdir,;t t
7365s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7366s,@builddir@,$ac_builddir,;t t
7367s,@abs_builddir@,$ac_abs_builddir,;t t
7368s,@top_builddir@,$ac_top_builddir,;t t
7369s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7370s,@INSTALL@,$ac_INSTALL,;t t
7371" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7372 rm -f $tmp/stdin
7373 if test x"$ac_file" != x-; then
7374 mv $tmp/out $ac_file
7375 else
7376 cat $tmp/out
7377 rm -f $tmp/out
7378 fi
7379
7380done
7381_ACEOF
7382cat >>$CONFIG_STATUS <<\_ACEOF
7383
7384#
7385# CONFIG_HEADER section.
7386#
7387
7388# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7389# NAME is the cpp macro being defined and VALUE is the value it is being given.
7390#
7391# ac_d sets the value in "#define NAME VALUE" lines.
7392ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7393ac_dB='[ ].*$,\1#\2'
7394ac_dC=' '
7395ac_dD=',;t'
7396# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7397ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7398ac_uB='$,\1#\2define\3'
7399ac_uC=' '
7400ac_uD=',;t'
7401
7402for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7403 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7404 case $ac_file in
7405 - | *:- | *:-:* ) # input from stdin
7406 cat >$tmp/stdin
7407 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7409 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7410 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7411 * ) ac_file_in=$ac_file.in ;;
7412 esac
7413
7414 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7415echo "$as_me: creating $ac_file" >&6;}
7416
7417 # First look for the input files in the build tree, otherwise in the
7418 # src tree.
7419 ac_file_inputs=`IFS=:
7420 for f in $ac_file_in; do
7421 case $f in
7422 -) echo $tmp/stdin ;;
7423 [\\/$]*)
7424 # Absolute (can't be DOS-style, as IFS=:)
7425 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7426echo "$as_me: error: cannot find input file: $f" >&2;}
7427 { (exit 1); exit 1; }; }
7428 # Do quote $f, to prevent DOS paths from being IFS'd.
7429 echo "$f";;
7430 *) # Relative
7431 if test -f "$f"; then
7432 # Build tree
7433 echo "$f"
7434 elif test -f "$srcdir/$f"; then
7435 # Source tree
7436 echo "$srcdir/$f"
7437 else
7438 # /dev/null tree
7439 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7440echo "$as_me: error: cannot find input file: $f" >&2;}
7441 { (exit 1); exit 1; }; }
7442 fi;;
7443 esac
7444 done` || { (exit 1); exit 1; }
7445 # Remove the trailing spaces.
7446 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7447
7448_ACEOF
7449
7450# Transform confdefs.h into two sed scripts, `conftest.defines' and
7451# `conftest.undefs', that substitutes the proper values into
7452# config.h.in to produce config.h. The first handles `#define'
7453# templates, and the second `#undef' templates.
7454# And first: Protect against being on the right side of a sed subst in
7455# config.status. Protect against being in an unquoted here document
7456# in config.status.
7457rm -f conftest.defines conftest.undefs
7458# Using a here document instead of a string reduces the quoting nightmare.
7459# Putting comments in sed scripts is not portable.
7460#
7461# `end' is used to avoid that the second main sed command (meant for
7462# 0-ary CPP macros) applies to n-ary macro definitions.
7463# See the Autoconf documentation for `clear'.
7464cat >confdef2sed.sed <<\_ACEOF
7465s/[\\&,]/\\&/g
7466s,[\\$`],\\&,g
7467t clear
7468: clear
7469s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7470t end
7471s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7472: end
7473_ACEOF
7474# If some macros were called several times there might be several times
7475# the same #defines, which is useless. Nevertheless, we may not want to
7476# sort them, since we want the *last* AC-DEFINE to be honored.
7477uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7478sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7479rm -f confdef2sed.sed
7480
7481# This sed command replaces #undef with comments. This is necessary, for
7482# example, in the case of _POSIX_SOURCE, which is predefined and required
7483# on some systems where configure will not decide to define it.
7484cat >>conftest.undefs <<\_ACEOF
7485s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7486_ACEOF
7487
7488# Break up conftest.defines because some shells have a limit on the size
7489# of here documents, and old seds have small limits too (100 cmds).
7490echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7491echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7492echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7493echo ' :' >>$CONFIG_STATUS
7494rm -f conftest.tail
7495while grep . conftest.defines >/dev/null
7496do
7497 # Write a limited-size here document to $tmp/defines.sed.
7498 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7499 # Speed up: don't consider the non `#define' lines.
7500 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7501 # Work around the forget-to-reset-the-flag bug.
7502 echo 't clr' >>$CONFIG_STATUS
7503 echo ': clr' >>$CONFIG_STATUS
7504 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7505 echo 'CEOF
7506 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7507 rm -f $tmp/in
7508 mv $tmp/out $tmp/in
7509' >>$CONFIG_STATUS
7510 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7511 rm -f conftest.defines
7512 mv conftest.tail conftest.defines
7513done
7514rm -f conftest.defines
7515echo ' fi # grep' >>$CONFIG_STATUS
7516echo >>$CONFIG_STATUS
7517
7518# Break up conftest.undefs because some shells have a limit on the size
7519# of here documents, and old seds have small limits too (100 cmds).
7520echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7521rm -f conftest.tail
7522while grep . conftest.undefs >/dev/null
7523do
7524 # Write a limited-size here document to $tmp/undefs.sed.
7525 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7526 # Speed up: don't consider the non `#undef'
7527 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7528 # Work around the forget-to-reset-the-flag bug.
7529 echo 't clr' >>$CONFIG_STATUS
7530 echo ': clr' >>$CONFIG_STATUS
7531 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7532 echo 'CEOF
7533 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7534 rm -f $tmp/in
7535 mv $tmp/out $tmp/in
7536' >>$CONFIG_STATUS
7537 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7538 rm -f conftest.undefs
7539 mv conftest.tail conftest.undefs
7540done
7541rm -f conftest.undefs
7542
7543cat >>$CONFIG_STATUS <<\_ACEOF
7544 # Let's still pretend it is `configure' which instantiates (i.e., don't
7545 # use $as_me), people would be surprised to read:
7546 # /* config.h. Generated by config.status. */
7547 if test x"$ac_file" = x-; then
7548 echo "/* Generated by configure. */" >$tmp/config.h
7549 else
7550 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7551 fi
7552 cat $tmp/in >>$tmp/config.h
7553 rm -f $tmp/in
7554 if test x"$ac_file" != x-; then
7555 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7556 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7557echo "$as_me: $ac_file is unchanged" >&6;}
7558 else
7559 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7560$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7561 X"$ac_file" : 'X\(//\)[^/]' \| \
7562 X"$ac_file" : 'X\(//\)$' \| \
7563 X"$ac_file" : 'X\(/\)' \| \
7564 . : '\(.\)' 2>/dev/null ||
7565echo X"$ac_file" |
7566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7568 /^X\(\/\/\)$/{ s//\1/; q; }
7569 /^X\(\/\).*/{ s//\1/; q; }
7570 s/.*/./; q'`
7571 { if $as_mkdir_p; then
7572 mkdir -p "$ac_dir"
7573 else
7574 as_dir="$ac_dir"
7575 as_dirs=
7576 while test ! -d "$as_dir"; do
7577 as_dirs="$as_dir $as_dirs"
7578 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7580 X"$as_dir" : 'X\(//\)[^/]' \| \
7581 X"$as_dir" : 'X\(//\)$' \| \
7582 X"$as_dir" : 'X\(/\)' \| \
7583 . : '\(.\)' 2>/dev/null ||
7584echo X"$as_dir" |
7585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7587 /^X\(\/\/\)$/{ s//\1/; q; }
7588 /^X\(\/\).*/{ s//\1/; q; }
7589 s/.*/./; q'`
7590 done
7591 test ! -n "$as_dirs" || mkdir $as_dirs
7592 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7593echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7594 { (exit 1); exit 1; }; }; }
7595
7596 rm -f $ac_file
7597 mv $tmp/config.h $ac_file
7598 fi
7599 else
7600 cat $tmp/config.h
7601 rm -f $tmp/config.h
7602 fi
7603done
7604_ACEOF
7605
7606cat >>$CONFIG_STATUS <<\_ACEOF
7607
7608{ (exit 0); exit 0; }
7609_ACEOF
7610chmod +x $CONFIG_STATUS
7611ac_clean_files=$ac_clean_files_save
7612
7613
7614# configure is writing to config.log, and then calls config.status.
7615# config.status does its own redirection, appending to config.log.
7616# Unfortunately, on DOS this fails, as config.log is still kept open
7617# by configure, so config.status won't be able to write to it; its
7618# output is simply discarded. So we exec the FD to /dev/null,
7619# effectively closing config.log, so it can be properly (re)opened and
7620# appended to by config.status. When coming back to configure, we
7621# need to make the FD available again.
7622if test "$no_create" != yes; then
7623 ac_cs_success=:
7624 ac_config_status_args=
7625 test "$silent" = yes &&
7626 ac_config_status_args="$ac_config_status_args --quiet"
7627 exec 5>/dev/null
7628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7629 exec 5>>config.log
7630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7631 # would make configure fail if this is the last instruction.
7632 $ac_cs_success || { (exit 1); exit 1; }
7633fi
7634
7635#
7636# CONFIG_SUBDIRS section.
7637#
7638if test "$no_recursion" != yes; then
7639
7640 # Remove --cache-file and --srcdir arguments so they do not pile up.
7641 ac_sub_configure_args=
7642 ac_prev=
7643 for ac_arg in $ac_configure_args; do
7644 if test -n "$ac_prev"; then
7645 ac_prev=
7646 continue
7647 fi
7648 case $ac_arg in
7649 -cache-file | --cache-file | --cache-fil | --cache-fi \
7650 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7651 ac_prev=cache_file ;;
7652 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7653 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7654 | --c=*)
7655 ;;
7656 --config-cache | -C)
7657 ;;
7658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7659 ac_prev=srcdir ;;
7660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7661 ;;
7662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7663 ac_prev=prefix ;;
7664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7665 ;;
7666 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7667 esac
7668 done
7669
7670 # Always prepend --prefix to ensure using the same prefix
7671 # in subdir configurations.
7672 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7673
7674 ac_popdir=`pwd`
7675 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7676
7677 # Do not complain, so a configure script can configure whichever
7678 # parts of a large source tree are present.
7679 test -d $srcdir/$ac_dir || continue
7680
7681 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7682echo "$as_me: configuring in $ac_dir" >&6;}
7683 { if $as_mkdir_p; then
7684 mkdir -p "$ac_dir"
7685 else
7686 as_dir="$ac_dir"
7687 as_dirs=
7688 while test ! -d "$as_dir"; do
7689 as_dirs="$as_dir $as_dirs"
7690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7692 X"$as_dir" : 'X\(//\)[^/]' \| \
7693 X"$as_dir" : 'X\(//\)$' \| \
7694 X"$as_dir" : 'X\(/\)' \| \
7695 . : '\(.\)' 2>/dev/null ||
7696echo X"$as_dir" |
7697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7699 /^X\(\/\/\)$/{ s//\1/; q; }
7700 /^X\(\/\).*/{ s//\1/; q; }
7701 s/.*/./; q'`
7702 done
7703 test ! -n "$as_dirs" || mkdir $as_dirs
7704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7706 { (exit 1); exit 1; }; }; }
7707
7708 ac_builddir=.
7709
7710if test "$ac_dir" != .; then
7711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7712 # A "../" for each directory in $ac_dir_suffix.
7713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7714else
7715 ac_dir_suffix= ac_top_builddir=
7716fi
7717
7718case $srcdir in
7719 .) # No --srcdir option. We are building in place.
7720 ac_srcdir=.
7721 if test -z "$ac_top_builddir"; then
7722 ac_top_srcdir=.
7723 else
7724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7725 fi ;;
7726 [\\/]* | ?:[\\/]* ) # Absolute path.
7727 ac_srcdir=$srcdir$ac_dir_suffix;
7728 ac_top_srcdir=$srcdir ;;
7729 *) # Relative path.
7730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7732esac
7733case "$ac_dir" in
7734.) ac_abs_builddir=$ac_builddir;;
7735*)
7736 case $ac_builddir in
7737 .) ac_abs_builddir="$ac_dir";;
7738 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
7739 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
7740 esac;;
7741esac
7742case "$ac_dir" in
7743.) ac_abs_top_builddir=${ac_top_builddir}.;;
7744*)
7745 case ${ac_top_builddir}. in
7746 .) ac_abs_top_builddir="$ac_dir";;
7747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7748 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
7749 esac;;
7750esac
7751case "$ac_dir" in
7752.) ac_abs_srcdir=$ac_srcdir;;
7753*)
7754 case $ac_srcdir in
7755 .) ac_abs_srcdir="$ac_dir";;
7756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7757 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
7758 esac;;
7759esac
7760case "$ac_dir" in
7761.) ac_abs_top_srcdir=$ac_top_srcdir;;
7762*)
7763 case $ac_top_srcdir in
7764 .) ac_abs_top_srcdir="$ac_dir";;
7765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7766 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
7767 esac;;
7768esac
7769
7770
7771 cd $ac_dir
7772
7773 # Check for guested configure; otherwise get Cygnus style configure.
7774 if test -f $ac_srcdir/configure.gnu; then
7775 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7776 elif test -f $ac_srcdir/configure; then
7777 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7778 elif test -f $ac_srcdir/configure.in; then
7779 ac_sub_configure=$ac_configure
7780 else
7781 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7782echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7783 ac_sub_configure=
7784 fi
7785
7786 # The recursion is here.
7787 if test -n "$ac_sub_configure"; then
7788 # Make the cache file name correct relative to the subdirectory.
7789 case $cache_file in
7790 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7791 *) # Relative path.
7792 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7793 esac
7794
7795 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7796echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7797 # The eval makes quoting arguments work.
7798 eval $ac_sub_configure $ac_sub_configure_args \
7799 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7800 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7801echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7802 { (exit 1); exit 1; }; }
7803 fi
7804
7805 cd $ac_popdir
7806 done
7807fi
7808
7809
7810echo "-------------------------------------"
7811echo "Greenstone 3 successfully configured."
7812echo ""
Note: See TracBrowser for help on using the repository browser.