source: main/trunk/greenstone2/common-src/indexers/mg/configure@ 25169

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