root/main/trunk/gs2build/configure @ 32003

Revision 28328, 241.3 KB (checked in by ak19, 6 years ago)

Repeating the changes made to greenstone configure files in gs2build and build-src configure files. Updating configure for mac (leopard), which only likes if stmts that use test and not the square brackets

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