source: main/trunk/greenstone2/configure@ 31162

Last change on this file since 31162 was 31162, checked in by ak19, 7 years ago

To get yaz to compile on GS2 El Capitan, need gs2's toplevel configure script to source devel.bash if gnome-lib needed to e compiled from source.

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