source: main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mgpp/configure@ 23508

Last change on this file since 23508 was 23508, checked in by sjm84, 13 years ago

Committing 64 bit changes into the branch

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