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