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

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