source: main/trunk/greenstone2/configure@ 23356

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

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

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