source: main/trunk/greenstone2/build-src/configure@ 35306

Last change on this file since 35306 was 35306, checked in by davidb, 3 years ago

Making javac default now source/target 1.6, rather than 1.4. This change was in response to 'javah' being deprecated. JNI is now down with 'javac -h' and to do that, you need to have at least a JDK 1.6 installed

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