source: main/trunk/greenstone2/configure@ 22597

Last change on this file since 22597 was 22378, checked in by sjm84, 14 years ago

Greenstone 2 now compiles and installs on 64-bit linux machines

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