root/main/trunk/greenstone2/build-src/configure @ 22058

Revision 22058, 239.0 KB (checked in by ak19, 10 years ago)

Changes to makefiles to 1. incorporate USE_GDBM and USE_JDBM flags (and USE_SQLITE) in most places so that the DEFINES variable is set at all times. This is necessary to ensure that all classes that contain objects with gdbm and jdbm members are of a consistent size. Else we've had experience with Greenstone crashing with memory errors (to do with the similar ENABLE_indexer flags). 2. ENABLE_JDBM is now USE_JDBM. 3. Not everything works now. It still compiles the default way, but the disable-gdbm flag is causing trouble when compiling argdb in recpt since it uses that.

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