root/main/trunk/greenstone2/configure @ 21330

Revision 21330, 237.8 KB (checked in by ak19, 10 years ago)

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

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