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