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

Last change on this file since 26656 was 26656, checked in by davidb, 11 years ago

Support for cross-compilation added. In addition to the CrossOS check, this particular set of changes focus on flags that assist cross-compilation with JNI

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