root/main/trunk/greenstone2/common-src/indexers/mgpp/configure @ 25170

Revision 25170, 216.6 KB (checked in by jmt12, 7 years ago)

Propagating ARCH_DEP_FLAGS. It appears that you need to at least reissue the AC_SUBST command even for variables that have been exported in 'higher' configures

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