root/gsdl/trunk/build-src/configure @ 18375

Revision 18214, 237.6 KB (checked in by mdewsnip, 11 years ago)

Removed --with-gdbm option and no longer checks for GDBM library existing, because we know we have it.

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