]> git.ipfire.org Git - thirdparty/sarg.git/blame - configure
Removed Pedro Orso's e-mail as per his request
[thirdparty/sarg.git] / configure
CommitLineData
25697a35
GS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
1164c474 3# Generated by GNU Autoconf 2.63 for sarg 2.2.7.
25697a35 4#
0743911c 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1164c474 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=:
1164c474 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
1164c474
FM
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'
f8ed23e3 54 else
1164c474
FM
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'
f8ed23e3 67 fi
1164c474
FM
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
1164c474 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.
1164c474
FM
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 ||
1164c474 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
1164c474 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=:
1164c474 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=:
1164c474 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
1164c474
FM
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.
1164c474
FM
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" ||
1164c474 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
1164c474
FM
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'
1164c474 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
1164c474 554 test -d "$1/.";
0743911c
FM
555 else
556 case $1 in
1164c474 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'
c814928f
FM
597PACKAGE_VERSION='2.2.7'
598PACKAGE_STRING='sarg 2.2.7'
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
1164c474 638ac_subst_vars='LTLIBOBJS
f8ed23e3 639LIBOBJS
1164c474
FM
640IMAGEDIR
641FONTDIR
642LANGDIR
643SARGPHPDIR
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=''
1164c474
FM
702ac_user_opts='
703enable_option_checking
704with_gcc
705with_gnu_ld
706enable_rpath
707with_libiconv_prefix
708enable_largefile
709enable_sargphp
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
1164c474
FM
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-*)
1164c474 829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
25697a35 830 # Reject names that are not valid shell variable names.
1164c474
FM
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; }; }
1164c474
FM
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-*)
1164c474 856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
25697a35 857 # Reject names that are not valid shell variable names.
1164c474
FM
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; }; }
1164c474
FM
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-*)
1164c474 1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
25697a35 1062 # Reject names that are not valid shell variable names.
1164c474
FM
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; }; }
1164c474
FM
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-*)
1164c474 1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
25697a35 1079 # Reject names that are not valid shell variable names.
1164c474
FM
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; }; }
1164c474
FM
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
1164c474 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 &&
1164c474 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.
1164c474 1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
25697a35 1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164c474 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'`
1164c474 1139 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
25697a35
GS
1140 { (exit 1); exit 1; }; }
1141fi
1142
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474 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 .` ||
1164c474 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" ||
1164c474 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.
1164c474
FM
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 .."
1164c474 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=`(
1164c474 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
c814928f 1276\`configure' configures sarg 2.2.7 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
1164c474 1298 [$ac_default_prefix]
25697a35 1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1164c474 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:
1164c474
FM
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
c814928f 1341 short | recursive ) echo "Configuration of sarg 2.2.7:";;
2357ef77 1342 esac
25697a35
GS
1343 cat <<\_ACEOF
1344
1345Optional Features:
1164c474 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
7bbc1de4
FM
1351 --enable-sargphp=sargphpdir
1352 Select sargphpdir as the directory to install sarg-php into
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
1164c474
FM
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*)
1164c474 1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
0743911c 1399 # A ".." for each directory in $ac_dir_suffix.
1164c474 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
1164c474 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
c814928f 1445sarg configure 2.2.7
1164c474 1446generated by GNU Autoconf 2.63
25697a35 1447
0743911c 1448Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1164c474 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
c814928f 1459It was created by sarg $as_me 2.2.7, which was
1164c474 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=.
1164c474 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 *\'*)
1164c474 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 #(
1164c474
FM
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) ;; #(
1164c474 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
1164c474 1618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0743911c 1619 esac
1164c474 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
1164c474 1635 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
0743911c 1636 esac
1164c474 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 &&
1164c474
FM
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.
1164c474
FM
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
1164c474 1700 ac_site_file1=$CONFIG_SITE
0743911c 1701elif test "x$prefix" != xNONE; then
1164c474
FM
1702 ac_site_file1=$prefix/share/config.site
1703 ac_site_file2=$prefix/etc/config.site
0743911c 1704else
1164c474
FM
1705 ac_site_file1=$ac_default_prefix/share/config.site
1706 ac_site_file2=$ac_default_prefix/etc/config.site
25697a35 1707fi
1164c474 1708for ac_site_file in "$ac_site_file1" "$ac_site_file2"
0743911c 1709do
1164c474 1710 test "x$ac_site_file" = xNONE && continue
25697a35 1711 if test -r "$ac_site_file"; then
1164c474
FM
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
1164c474
FM
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
1164c474
FM
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,)
1164c474
FM
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)
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474
FM
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
1164c474
FM
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 ||
1164c474
FM
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
1164c474
FM
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
1164c474 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 &&
1164c474
FM
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` ||
1164c474
FM
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
1164c474
FM
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*-*-*) ;;
1164c474
FM
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
1164c474
FM
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
1164c474 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` ||
1164c474
FM
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
1164c474
FM
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*-*-*) ;;
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
1990 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1991$as_echo "$CC" >&6; }
25697a35 1992else
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
2030 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031$as_echo "$ac_ct_CC" >&6; }
25697a35 2032else
1164c474
FM
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:)
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
2083 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2084$as_echo "$CC" >&6; }
25697a35 2085else
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
2140 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2141$as_echo "$CC" >&6; }
25697a35 2142else
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
2182 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2183$as_echo "$CC" >&6; }
25697a35 2184else
1164c474
FM
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
1164c474
FM
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
1164c474 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"
1164c474 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
1164c474
FM
2226 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227$as_echo "$ac_ct_CC" >&6; }
25697a35 2228else
1164c474
FM
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:)
1164c474
FM
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
1164c474
FM
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
1164c474 2257$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
25697a35 2258See \`config.log' for more details." >&2;}
1164c474 2259 { (exit 1); exit 1; }; }; }
25697a35
GS
2260
2261# Provide some information about the compiler.
1164c474
FM
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
1164c474
FM
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=$?
1164c474 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
1164c474
FM
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=$?
1164c474 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
1164c474
FM
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=$?
1164c474 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
1164c474 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.
1164c474
FM
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
1164c474 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
1164c474
FM
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=$?
1164c474 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
1164c474 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
1164c474
FM
2383{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2384$as_echo "$ac_file" >&6; }
0743911c 2385if test -z "$ac_file"; then
1164c474 2386 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
1164c474
FM
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
1164c474 2393$as_echo "$as_me: error: C compiler cannot create executables
25697a35 2394See \`config.log' for more details." >&2;}
1164c474 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.
1164c474
FM
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
1164c474
FM
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=$?
1164c474 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
1164c474
FM
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
1164c474 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;}
1164c474 2431 { (exit 1); exit 1; }; }; }
25697a35
GS
2432 fi
2433 fi
2434fi
1164c474
FM
2435{ $as_echo "$as_me:$LINENO: result: yes" >&5
2436$as_echo "yes" >&6; }
25697a35 2437
1164c474 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.
1164c474
FM
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
1164c474
FM
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
1164c474
FM
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=$?
1164c474 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
1164c474 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
1164c474
FM
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
1164c474 2478$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
25697a35 2479See \`config.log' for more details." >&2;}
1164c474 2480 { (exit 1); exit 1; }; }; }
25697a35
GS
2481fi
2482
2483rm -f conftest$ac_cv_exeext
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474
FM
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=$?
1164c474 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
1164c474 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
1164c474 2531 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
1164c474
FM
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
1164c474 2538$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
25697a35 2539See \`config.log' for more details." >&2;}
1164c474 2540 { (exit 1); exit 1; }; }; }
25697a35
GS
2541fi
2542
2543rm -f conftest.$ac_cv_objext conftest.$ac_ext
2544fi
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474
FM
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
1164c474 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
1164c474 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
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474
FM
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
1164c474 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
1164c474 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
1164c474
FM
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
1164c474 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
1164c474 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
1164c474
FM
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
1164c474 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
1164c474 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
1164c474
FM
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
1164c474
FM
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
1164c474 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
1164c474
FM
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
1164c474 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
1164c474 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)
1164c474
FM
2870 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2871$as_echo "none needed" >&6; } ;;
0743911c 2872 xno)
1164c474
FM
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"
1164c474
FM
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
4782357f 2893CFLAGS="${CFLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter"
05b90947 2894
25697a35 2895
1164c474
FM
2896{ $as_echo "$as_me:$LINENO: checking for implicit-function-declaration error flag in gcc" >&5
2897$as_echo_n "checking for implicit-function-declaration error flag in gcc... " >&6; }
4782357f
FM
2898saved_CFLAGS="${CFLAGS}"
2899CFLAGS="${CFLAGS} -Werror=implicit-function-declaration"
2900
2901cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h. */
2907
2908_ACEOF
2909rm -f conftest.$ac_objext
2910if { (ac_try="$ac_compile"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
1164c474
FM
2915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
4782357f
FM
2917 (eval "$ac_compile") 2>conftest.er1
2918 ac_status=$?
2919 grep -v '^ *+' conftest.er1 >conftest.err
2920 rm -f conftest.er1
2921 cat conftest.err >&5
1164c474 2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782357f
FM
2923 (exit $ac_status); } && {
2924 test -z "$ac_c_werror_flag" ||
2925 test ! -s conftest.err
2926 } && test -s conftest.$ac_objext; then
2927 have_implicit_function_declaration="yes"
2928else
1164c474 2929 $as_echo "$as_me: failed program was:" >&5
4782357f
FM
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 have_implicit_function_declaration="no"
2933fi
2934
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1164c474
FM
2936{ $as_echo "$as_me:$LINENO: result: $have_implicit_function_declaration" >&5
2937$as_echo "$have_implicit_function_declaration" >&6; }
4782357f
FM
2938if test "$have_implicit_function_declaration" == "no" ; then
2939 CFLAGS="${saved_CFLAGS}"
2940fi
2941
1164c474
FM
2942{ $as_echo "$as_me:$LINENO: checking for format error flag in gcc" >&5
2943$as_echo_n "checking for format error flag in gcc... " >&6; }
4782357f
FM
2944saved_CFLAGS="${CFLAGS}"
2945CFLAGS="${CFLAGS} -Werror=format"
2946cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952
2953_ACEOF
2954rm -f conftest.$ac_objext
2955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
1164c474
FM
2960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961$as_echo "$ac_try_echo") >&5
4782357f
FM
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
1164c474 2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782357f
FM
2968 (exit $ac_status); } && {
2969 test -z "$ac_c_werror_flag" ||
2970 test ! -s conftest.err
2971 } && test -s conftest.$ac_objext; then
2972 have_error_format="yes"
2973else
1164c474 2974 $as_echo "$as_me: failed program was:" >&5
4782357f
FM
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 have_error_format="no"
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1164c474
FM
2981{ $as_echo "$as_me:$LINENO: result: $have_error_format" >&5
2982$as_echo "$have_error_format" >&6; }
4782357f
FM
2983if test "$have_implicit_function_declaration" == "no" ; then
2984 CFLAGS="${saved_CFLAGS}"
2985fi
2986
25697a35
GS
2987case "$host" in
2988 *-solaris*)
2989 LDFLAGS="${LDFLAGS} -lsocket -lnsl"
2990 CFLAGS="-DSOLARIS ${CFLAGS}"
2991 ;;
2992esac
2993
2994#dnl Checks for programs.
2995#AC_PROG_CC
2996
2997
2998
2999
3000
3001
25697a35
GS
3002ac_header_dirent=no
3003for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1164c474
FM
3004 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3005{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3006$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
0743911c 3007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 3008 $as_echo_n "(cached) " >&6
25697a35
GS
3009else
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016#include <sys/types.h>
3017#include <$ac_hdr>
3018
3019int
3020main ()
3021{
3022if ((DIR *) 0)
3023return 0;
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext
0743911c
FM
3029if { (ac_try="$ac_compile"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
1164c474
FM
3034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3035$as_echo "$ac_try_echo") >&5
0743911c 3036 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
1164c474 3041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
25697a35
GS
3046 eval "$as_ac_Header=yes"
3047else
1164c474 3048 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
0743911c 3051 eval "$as_ac_Header=no"
25697a35 3052fi
0743911c
FM
3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35 3055fi
1164c474
FM
3056ac_res=`eval 'as_val=${'$as_ac_Header'}
3057 $as_echo "$as_val"'`
3058 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3059$as_echo "$ac_res" >&6; }
3060as_val=`eval 'as_val=${'$as_ac_Header'}
3061 $as_echo "$as_val"'`
3062 if test "x$as_val" = x""yes; then
25697a35 3063 cat >>confdefs.h <<_ACEOF
1164c474 3064#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25697a35
GS
3065_ACEOF
3066
3067ac_header_dirent=$ac_hdr; break
3068fi
3069
3070done
3071# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3072if test $ac_header_dirent = dirent.h; then
1164c474
FM
3073 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3074$as_echo_n "checking for library containing opendir... " >&6; }
25697a35 3075if test "${ac_cv_search_opendir+set}" = set; then
1164c474 3076 $as_echo_n "(cached) " >&6
25697a35
GS
3077else
3078 ac_func_search_save_LIBS=$LIBS
25697a35
GS
3079cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085
0743911c
FM
3086/* Override any GCC internal prototype to avoid an error.
3087 Use char because int might match the return type of a GCC
3088 builtin and then its argument prototype would still apply. */
25697a35
GS
3089#ifdef __cplusplus
3090extern "C"
3091#endif
25697a35
GS
3092char opendir ();
3093int
3094main ()
3095{
0743911c 3096return opendir ();
25697a35
GS
3097 ;
3098 return 0;
3099}
3100_ACEOF
0743911c
FM
3101for ac_lib in '' dir; do
3102 if test -z "$ac_lib"; then
3103 ac_res="none required"
3104 else
3105 ac_res=-l$ac_lib
3106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3107 fi
3108 rm -f conftest.$ac_objext conftest$ac_exeext
3109if { (ac_try="$ac_link"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
1164c474
FM
3114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115$as_echo "$ac_try_echo") >&5
0743911c 3116 (eval "$ac_link") 2>conftest.er1
25697a35
GS
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
1164c474 3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
1164c474
FM
3125 } && test -s conftest$ac_exeext && {
3126 test "$cross_compiling" = yes ||
3127 $as_test_x conftest$ac_exeext
3128 }; then
0743911c 3129 ac_cv_search_opendir=$ac_res
25697a35 3130else
1164c474 3131 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
25697a35 3134
0743911c 3135fi
25697a35 3136
1164c474 3137rm -rf conftest.dSYM
0743911c
FM
3138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3139 conftest$ac_exeext
3140 if test "${ac_cv_search_opendir+set}" = set; then
3141 break
25697a35 3142fi
0743911c
FM
3143done
3144if test "${ac_cv_search_opendir+set}" = set; then
3145 :
3146else
3147 ac_cv_search_opendir=no
25697a35 3148fi
0743911c 3149rm conftest.$ac_ext
25697a35
GS
3150LIBS=$ac_func_search_save_LIBS
3151fi
1164c474
FM
3152{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3153$as_echo "$ac_cv_search_opendir" >&6; }
0743911c
FM
3154ac_res=$ac_cv_search_opendir
3155if test "$ac_res" != no; then
3156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25697a35
GS
3157
3158fi
3159
3160else
1164c474
FM
3161 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3162$as_echo_n "checking for library containing opendir... " >&6; }
25697a35 3163if test "${ac_cv_search_opendir+set}" = set; then
1164c474 3164 $as_echo_n "(cached) " >&6
25697a35
GS
3165else
3166 ac_func_search_save_LIBS=$LIBS
25697a35
GS
3167cat >conftest.$ac_ext <<_ACEOF
3168/* confdefs.h. */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h. */
3173
0743911c
FM
3174/* Override any GCC internal prototype to avoid an error.
3175 Use char because int might match the return type of a GCC
3176 builtin and then its argument prototype would still apply. */
25697a35
GS
3177#ifdef __cplusplus
3178extern "C"
3179#endif
25697a35
GS
3180char opendir ();
3181int
3182main ()
3183{
0743911c 3184return opendir ();
25697a35
GS
3185 ;
3186 return 0;
3187}
3188_ACEOF
0743911c
FM
3189for ac_lib in '' x; do
3190 if test -z "$ac_lib"; then
3191 ac_res="none required"
3192 else
3193 ac_res=-l$ac_lib
3194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3195 fi
3196 rm -f conftest.$ac_objext conftest$ac_exeext
3197if { (ac_try="$ac_link"
3198case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
1164c474
FM
3202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203$as_echo "$ac_try_echo") >&5
0743911c 3204 (eval "$ac_link") 2>conftest.er1
25697a35
GS
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
1164c474 3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
1164c474
FM
3213 } && test -s conftest$ac_exeext && {
3214 test "$cross_compiling" = yes ||
3215 $as_test_x conftest$ac_exeext
3216 }; then
0743911c 3217 ac_cv_search_opendir=$ac_res
25697a35 3218else
1164c474 3219 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
25697a35 3222
0743911c 3223fi
25697a35 3224
1164c474 3225rm -rf conftest.dSYM
0743911c
FM
3226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3227 conftest$ac_exeext
3228 if test "${ac_cv_search_opendir+set}" = set; then
3229 break
25697a35 3230fi
0743911c
FM
3231done
3232if test "${ac_cv_search_opendir+set}" = set; then
3233 :
3234else
3235 ac_cv_search_opendir=no
25697a35 3236fi
0743911c 3237rm conftest.$ac_ext
25697a35
GS
3238LIBS=$ac_func_search_save_LIBS
3239fi
1164c474
FM
3240{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3241$as_echo "$ac_cv_search_opendir" >&6; }
0743911c
FM
3242ac_res=$ac_cv_search_opendir
3243if test "$ac_res" != no; then
3244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25697a35
GS
3245
3246fi
3247
3248fi
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
1164c474
FM
3255{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3256$as_echo_n "checking how to run the C preprocessor... " >&6; }
25697a35
GS
3257# On Suns, sometimes $CPP names a directory.
3258if test -n "$CPP" && test -d "$CPP"; then
3259 CPP=
3260fi
3261if test -z "$CPP"; then
3262 if test "${ac_cv_prog_CPP+set}" = set; then
1164c474 3263 $as_echo_n "(cached) " >&6
25697a35
GS
3264else
3265 # Double quotes because CPP needs to be expanded
3266 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3267 do
3268 ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
3283#ifdef __STDC__
3284# include <limits.h>
3285#else
3286# include <assert.h>
3287#endif
3288 Syntax error
3289_ACEOF
0743911c
FM
3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
1164c474
FM
3295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296$as_echo "$ac_try_echo") >&5
0743911c 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
1164c474 3302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3303 (exit $ac_status); } >/dev/null && {
3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 }; then
25697a35
GS
3307 :
3308else
1164c474 3309 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 # Broken: fails on valid input.
3313continue
3314fi
0743911c 3315
25697a35
GS
3316rm -f conftest.err conftest.$ac_ext
3317
0743911c 3318 # OK, works on sane cases. Now check whether nonexistent headers
25697a35
GS
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#include <ac_nonexistent.h>
3327_ACEOF
0743911c
FM
3328if { (ac_try="$ac_cpp conftest.$ac_ext"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
1164c474
FM
3333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334$as_echo "$ac_try_echo") >&5
0743911c 3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
1164c474 3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3341 (exit $ac_status); } >/dev/null && {
3342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 }; then
25697a35
GS
3345 # Broken: success on invalid input.
3346continue
3347else
1164c474 3348 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 # Passes both tests.
3352ac_preproc_ok=:
3353break
3354fi
0743911c 3355
25697a35
GS
3356rm -f conftest.err conftest.$ac_ext
3357
3358done
3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360rm -f conftest.err conftest.$ac_ext
3361if $ac_preproc_ok; then
3362 break
3363fi
3364
3365 done
3366 ac_cv_prog_CPP=$CPP
3367
3368fi
3369 CPP=$ac_cv_prog_CPP
3370else
3371 ac_cv_prog_CPP=$CPP
3372fi
1164c474
FM
3373{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3374$as_echo "$CPP" >&6; }
25697a35
GS
3375ac_preproc_ok=false
3376for ac_c_preproc_warn_flag in '' yes
3377do
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390#ifdef __STDC__
3391# include <limits.h>
3392#else
3393# include <assert.h>
3394#endif
3395 Syntax error
3396_ACEOF
0743911c
FM
3397if { (ac_try="$ac_cpp conftest.$ac_ext"
3398case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
1164c474
FM
3402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403$as_echo "$ac_try_echo") >&5
0743911c 3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
1164c474 3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3410 (exit $ac_status); } >/dev/null && {
3411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 }; then
25697a35
GS
3414 :
3415else
1164c474 3416 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 # Broken: fails on valid input.
3420continue
3421fi
0743911c 3422
25697a35
GS
3423rm -f conftest.err conftest.$ac_ext
3424
0743911c 3425 # OK, works on sane cases. Now check whether nonexistent headers
25697a35
GS
3426 # can be detected and how.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#include <ac_nonexistent.h>
3434_ACEOF
0743911c
FM
3435if { (ac_try="$ac_cpp conftest.$ac_ext"
3436case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
1164c474
FM
3440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441$as_echo "$ac_try_echo") >&5
0743911c 3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25697a35
GS
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
1164c474 3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3448 (exit $ac_status); } >/dev/null && {
3449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 }; then
25697a35
GS
3452 # Broken: success on invalid input.
3453continue
3454else
1164c474 3455 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 # Passes both tests.
3459ac_preproc_ok=:
3460break
3461fi
0743911c 3462
25697a35
GS
3463rm -f conftest.err conftest.$ac_ext
3464
3465done
3466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467rm -f conftest.err conftest.$ac_ext
3468if $ac_preproc_ok; then
3469 :
3470else
1164c474
FM
3471 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
25697a35 3474See \`config.log' for more details." >&5
1164c474 3475$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
25697a35 3476See \`config.log' for more details." >&2;}
1164c474 3477 { (exit 1); exit 1; }; }; }
25697a35
GS
3478fi
3479
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485
3486
1164c474
FM
3487{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3488$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
c4dd8d9c 3489if test "${ac_cv_path_GREP+set}" = set; then
1164c474 3490 $as_echo_n "(cached) " >&6
0743911c 3491else
1164c474 3492 if test -z "$GREP"; then
0743911c 3493 ac_path_GREP_found=false
1164c474
FM
3494 # Loop through the user's path and test for each of PROGNAME-LIST
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0743911c
FM
3496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_prog in grep ggrep; do
1164c474
FM
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3503 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3504# Check for GNU ac_path_GREP and select it if it is found.
0743911c
FM
3505 # Check for GNU $ac_path_GREP
3506case `"$ac_path_GREP" --version 2>&1` in
3507*GNU*)
3508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3509*)
3510 ac_count=0
1164c474 3511 $as_echo_n 0123456789 >"conftest.in"
0743911c
FM
3512 while :
3513 do
3514 cat "conftest.in" "conftest.in" >"conftest.tmp"
3515 mv "conftest.tmp" "conftest.in"
3516 cp "conftest.in" "conftest.nl"
1164c474 3517 $as_echo 'GREP' >> "conftest.nl"
0743911c
FM
3518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3520 ac_count=`expr $ac_count + 1`
3521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3522 # Best one so far, save it but keep looking for a better one
3523 ac_cv_path_GREP="$ac_path_GREP"
3524 ac_path_GREP_max=$ac_count
3525 fi
3526 # 10*(2^10) chars as input seems more than enough
3527 test $ac_count -gt 10 && break
3528 done
3529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3530esac
3531
1164c474
FM
3532 $ac_path_GREP_found && break 3
3533 done
0743911c
FM
3534 done
3535done
0743911c 3536IFS=$as_save_IFS
1164c474
FM
3537 if test -z "$ac_cv_path_GREP"; then
3538 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3539$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
0743911c 3540 { (exit 1); exit 1; }; }
1164c474 3541 fi
0743911c
FM
3542else
3543 ac_cv_path_GREP=$GREP
3544fi
3545
0743911c 3546fi
1164c474
FM
3547{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3548$as_echo "$ac_cv_path_GREP" >&6; }
0743911c
FM
3549 GREP="$ac_cv_path_GREP"
3550
3551
1164c474
FM
3552{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3553$as_echo_n "checking for egrep... " >&6; }
0743911c 3554if test "${ac_cv_path_EGREP+set}" = set; then
1164c474 3555 $as_echo_n "(cached) " >&6
25697a35 3556else
0743911c
FM
3557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3558 then ac_cv_path_EGREP="$GREP -E"
3559 else
1164c474 3560 if test -z "$EGREP"; then
0743911c 3561 ac_path_EGREP_found=false
1164c474
FM
3562 # Loop through the user's path and test for each of PROGNAME-LIST
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
0743911c
FM
3564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_prog in egrep; do
1164c474
FM
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3572# Check for GNU ac_path_EGREP and select it if it is found.
0743911c
FM
3573 # Check for GNU $ac_path_EGREP
3574case `"$ac_path_EGREP" --version 2>&1` in
3575*GNU*)
3576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3577*)
3578 ac_count=0
1164c474 3579 $as_echo_n 0123456789 >"conftest.in"
0743911c
FM
3580 while :
3581 do
3582 cat "conftest.in" "conftest.in" >"conftest.tmp"
3583 mv "conftest.tmp" "conftest.in"
3584 cp "conftest.in" "conftest.nl"
1164c474 3585 $as_echo 'EGREP' >> "conftest.nl"
0743911c
FM
3586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3588 ac_count=`expr $ac_count + 1`
3589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3590 # Best one so far, save it but keep looking for a better one
3591 ac_cv_path_EGREP="$ac_path_EGREP"
3592 ac_path_EGREP_max=$ac_count
25697a35 3593 fi
0743911c
FM
3594 # 10*(2^10) chars as input seems more than enough
3595 test $ac_count -gt 10 && break
3596 done
3597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3598esac
3599
1164c474
FM
3600 $ac_path_EGREP_found && break 3
3601 done
0743911c
FM
3602 done
3603done
0743911c 3604IFS=$as_save_IFS
1164c474
FM
3605 if test -z "$ac_cv_path_EGREP"; then
3606 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3607$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
0743911c 3608 { (exit 1); exit 1; }; }
1164c474 3609 fi
0743911c
FM
3610else
3611 ac_cv_path_EGREP=$EGREP
3612fi
3613
0743911c 3614 fi
25697a35 3615fi
1164c474
FM
3616{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3617$as_echo "$ac_cv_path_EGREP" >&6; }
0743911c 3618 EGREP="$ac_cv_path_EGREP"
25697a35
GS
3619
3620
1164c474
FM
3621{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3622$as_echo_n "checking for ANSI C header files... " >&6; }
25697a35 3623if test "${ac_cv_header_stdc+set}" = set; then
1164c474 3624 $as_echo_n "(cached) " >&6
25697a35
GS
3625else
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632#include <stdlib.h>
3633#include <stdarg.h>
3634#include <string.h>
3635#include <float.h>
3636
3637int
3638main ()
3639{
3640
3641 ;
3642 return 0;
3643}
3644_ACEOF
3645rm -f conftest.$ac_objext
0743911c
FM
3646if { (ac_try="$ac_compile"
3647case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650esac
1164c474
FM
3651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652$as_echo "$ac_try_echo") >&5
0743911c 3653 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
1164c474 3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
25697a35
GS
3663 ac_cv_header_stdc=yes
3664else
1164c474 3665 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
0743911c 3668 ac_cv_header_stdc=no
25697a35 3669fi
0743911c
FM
3670
3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35
GS
3672
3673if test $ac_cv_header_stdc = yes; then
3674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3675 cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
3681#include <string.h>
3682
3683_ACEOF
3684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 $EGREP "memchr" >/dev/null 2>&1; then
3686 :
3687else
3688 ac_cv_header_stdc=no
3689fi
3690rm -f conftest*
3691
3692fi
3693
3694if test $ac_cv_header_stdc = yes; then
3695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3696 cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702#include <stdlib.h>
3703
3704_ACEOF
3705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3706 $EGREP "free" >/dev/null 2>&1; then
3707 :
3708else
3709 ac_cv_header_stdc=no
3710fi
3711rm -f conftest*
3712
3713fi
3714
3715if test $ac_cv_header_stdc = yes; then
3716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3717 if test "$cross_compiling" = yes; then
3718 :
3719else
3720 cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
3726#include <ctype.h>
0743911c 3727#include <stdlib.h>
25697a35
GS
3728#if ((' ' & 0x0FF) == 0x020)
3729# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3730# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3731#else
3732# define ISLOWER(c) \
3733 (('a' <= (c) && (c) <= 'i') \
3734 || ('j' <= (c) && (c) <= 'r') \
3735 || ('s' <= (c) && (c) <= 'z'))
3736# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3737#endif
3738
3739#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3740int
3741main ()
3742{
3743 int i;
3744 for (i = 0; i < 256; i++)
3745 if (XOR (islower (i), ISLOWER (i))
3746 || toupper (i) != TOUPPER (i))
0743911c
FM
3747 return 2;
3748 return 0;
25697a35
GS
3749}
3750_ACEOF
3751rm -f conftest$ac_exeext
0743911c
FM
3752if { (ac_try="$ac_link"
3753case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756esac
1164c474
FM
3757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758$as_echo "$ac_try_echo") >&5
0743911c 3759 (eval "$ac_link") 2>&5
25697a35 3760 ac_status=$?
1164c474 3761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697a35 3762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0743911c
FM
3763 { (case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
1164c474
FM
3767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768$as_echo "$ac_try_echo") >&5
0743911c 3769 (eval "$ac_try") 2>&5
25697a35 3770 ac_status=$?
1164c474 3771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697a35
GS
3772 (exit $ac_status); }; }; then
3773 :
3774else
1164c474
FM
3775 $as_echo "$as_me: program exited with status $ac_status" >&5
3776$as_echo "$as_me: failed program was:" >&5
25697a35
GS
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779( exit $ac_status )
3780ac_cv_header_stdc=no
3781fi
1164c474 3782rm -rf conftest.dSYM
0743911c 3783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25697a35 3784fi
0743911c
FM
3785
3786
25697a35
GS
3787fi
3788fi
1164c474
FM
3789{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3790$as_echo "$ac_cv_header_stdc" >&6; }
25697a35
GS
3791if test $ac_cv_header_stdc = yes; then
3792
3793cat >>confdefs.h <<\_ACEOF
3794#define STDC_HEADERS 1
3795_ACEOF
3796
3797fi
3798
3799
d6e703cc
FM
3800
3801 if test "X$prefix" = "XNONE"; then
3802 acl_final_prefix="$ac_default_prefix"
3803 else
3804 acl_final_prefix="$prefix"
3805 fi
3806 if test "X$exec_prefix" = "XNONE"; then
3807 acl_final_exec_prefix='${prefix}'
3808 else
3809 acl_final_exec_prefix="$exec_prefix"
3810 fi
3811 acl_save_prefix="$prefix"
3812 prefix="$acl_final_prefix"
3813 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3814 prefix="$acl_save_prefix"
3815
3816
0743911c 3817# Check whether --with-gnu-ld was given.
d6e703cc 3818if test "${with_gnu_ld+set}" = set; then
0743911c 3819 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d6e703cc
FM
3820else
3821 with_gnu_ld=no
0743911c
FM
3822fi
3823
d6e703cc
FM
3824# Prepare PATH_SEPARATOR.
3825# The user is always right.
3826if test "${PATH_SEPARATOR+set}" != set; then
3827 echo "#! /bin/sh" >conf$$.sh
3828 echo "exit 0" >>conf$$.sh
3829 chmod +x conf$$.sh
3830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3831 PATH_SEPARATOR=';'
3832 else
3833 PATH_SEPARATOR=:
3834 fi
3835 rm -f conf$$.sh
3836fi
3837ac_prog=ld
3838if test "$GCC" = yes; then
3839 # Check if gcc -print-prog-name=ld gives a path.
1164c474
FM
3840 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3841$as_echo_n "checking for ld used by GCC... " >&6; }
d6e703cc
FM
3842 case $host in
3843 *-*-mingw*)
3844 # gcc leaves a trailing carriage return which upsets mingw
3845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3846 *)
3847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3848 esac
3849 case $ac_prog in
3850 # Accept absolute paths.
3851 [\\/]* | [A-Za-z]:[\\/]*)
3852 re_direlt='/[^/][^/]*/\.\./'
3853 # Canonicalize the path of ld
3854 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3855 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3856 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3857 done
3858 test -z "$LD" && LD="$ac_prog"
3859 ;;
3860 "")
3861 # If it fails, then pretend we aren't using GCC.
3862 ac_prog=ld
3863 ;;
3864 *)
3865 # If it is relative, then search for the first ld in PATH.
3866 with_gnu_ld=unknown
3867 ;;
3868 esac
3869elif test "$with_gnu_ld" = yes; then
1164c474
FM
3870 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3871$as_echo_n "checking for GNU ld... " >&6; }
d6e703cc 3872else
1164c474
FM
3873 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3874$as_echo_n "checking for non-GNU ld... " >&6; }
d6e703cc
FM
3875fi
3876if test "${acl_cv_path_LD+set}" = set; then
1164c474 3877 $as_echo_n "(cached) " >&6
d6e703cc
FM
3878else
3879 if test -z "$LD"; then
3880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3881 for ac_dir in $PATH; do
3882 test -z "$ac_dir" && ac_dir=.
3883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3884 acl_cv_path_LD="$ac_dir/$ac_prog"
3885 # Check to see if the program is GNU ld. I'd rather use --version,
3886 # but apparently some GNU ld's only accept -v.
3887 # Break only if it was the GNU/non-GNU ld that we prefer.
3888 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3889 *GNU* | *'with BFD'*)
3890 test "$with_gnu_ld" != no && break ;;
3891 *)
3892 test "$with_gnu_ld" != yes && break ;;
3893 esac
3894 fi
3895 done
3896 IFS="$ac_save_ifs"
3897else
3898 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3899fi
3900fi
3901
3902LD="$acl_cv_path_LD"
3903if test -n "$LD"; then
1164c474
FM
3904 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3905$as_echo "$LD" >&6; }
d6e703cc 3906else
1164c474
FM
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908$as_echo "no" >&6; }
d6e703cc 3909fi
1164c474
FM
3910test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3911$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d6e703cc 3912 { (exit 1); exit 1; }; }
1164c474
FM
3913{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d6e703cc 3915if test "${acl_cv_prog_gnu_ld+set}" = set; then
1164c474 3916 $as_echo_n "(cached) " >&6
d6e703cc
FM
3917else
3918 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3919case `$LD -v 2>&1 </dev/null` in
3920*GNU* | *'with BFD'*)
3921 acl_cv_prog_gnu_ld=yes ;;
3922*)
3923 acl_cv_prog_gnu_ld=no ;;
3924esac
3925fi
1164c474
FM
3926{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3927$as_echo "$acl_cv_prog_gnu_ld" >&6; }
d6e703cc
FM
3928with_gnu_ld=$acl_cv_prog_gnu_ld
3929
3930
3931
0743911c 3932
1164c474
FM
3933 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3934$as_echo_n "checking for shared library run path origin... " >&6; }
d6e703cc 3935if test "${acl_cv_rpath+set}" = set; then
1164c474 3936 $as_echo_n "(cached) " >&6
d6e703cc
FM
3937else
3938
3939 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3940 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3941 . ./conftest.sh
3942 rm -f ./conftest.sh
3943 acl_cv_rpath=done
3944
3945fi
1164c474
FM
3946{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3947$as_echo "$acl_cv_rpath" >&6; }
d6e703cc 3948 wl="$acl_cv_wl"
0743911c
FM
3949 acl_libext="$acl_cv_libext"
3950 acl_shlibext="$acl_cv_shlibext"
3951 acl_libname_spec="$acl_cv_libname_spec"
3952 acl_library_names_spec="$acl_cv_library_names_spec"
3953 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3954 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3955 acl_hardcode_direct="$acl_cv_hardcode_direct"
3956 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3957 # Check whether --enable-rpath was given.
d6e703cc 3958if test "${enable_rpath+set}" = set; then
0743911c 3959 enableval=$enable_rpath; :
d6e703cc
FM
3960else
3961 enable_rpath=yes
0743911c
FM
3962fi
3963
3964
3965
3966 acl_libdirstem=lib
3967 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3968 if test -n "$searchpath"; then
3969 acl_save_IFS="${IFS= }"; IFS=":"
3970 for searchdir in $searchpath; do
3971 if test -d "$searchdir"; then
3972 case "$searchdir" in
3973 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3974 *) searchdir=`cd "$searchdir" && pwd`
3975 case "$searchdir" in
3976 */lib64 ) acl_libdirstem=lib64 ;;
3977 esac ;;
3978 esac
3979 fi
3980 done
3981 IFS="$acl_save_IFS"
3982 fi
3983
3984
d6e703cc
FM
3985
3986
3987
3988
3989
3990
3991
3992 use_additional=yes
3993
3994 acl_save_prefix="$prefix"
3995 prefix="$acl_final_prefix"
3996 acl_save_exec_prefix="$exec_prefix"
3997 exec_prefix="$acl_final_exec_prefix"
3998
3999 eval additional_includedir=\"$includedir\"
4000 eval additional_libdir=\"$libdir\"
4001
4002 exec_prefix="$acl_save_exec_prefix"
4003 prefix="$acl_save_prefix"
4004
4005
0743911c 4006# Check whether --with-libiconv-prefix was given.
d6e703cc 4007if test "${with_libiconv_prefix+set}" = set; then
0743911c 4008 withval=$with_libiconv_prefix;
d6e703cc
FM
4009 if test "X$withval" = "Xno"; then
4010 use_additional=no
4011 else
4012 if test "X$withval" = "X"; then
4013
4014 acl_save_prefix="$prefix"
4015 prefix="$acl_final_prefix"
4016 acl_save_exec_prefix="$exec_prefix"
4017 exec_prefix="$acl_final_exec_prefix"
4018
4019 eval additional_includedir=\"$includedir\"
4020 eval additional_libdir=\"$libdir\"
4021
4022 exec_prefix="$acl_save_exec_prefix"
4023 prefix="$acl_save_prefix"
4024
4025 else
4026 additional_includedir="$withval/include"
0743911c 4027 additional_libdir="$withval/$acl_libdirstem"
d6e703cc
FM
4028 fi
4029 fi
4030
0743911c
FM
4031fi
4032
d6e703cc
FM
4033 LIBICONV=
4034 LTLIBICONV=
4035 INCICONV=
0743911c 4036 LIBICONV_PREFIX=
d6e703cc
FM
4037 rpathdirs=
4038 ltrpathdirs=
4039 names_already_handled=
4040 names_next_round='iconv '
4041 while test -n "$names_next_round"; do
4042 names_this_round="$names_next_round"
4043 names_next_round=
4044 for name in $names_this_round; do
4045 already_handled=
4046 for n in $names_already_handled; do
4047 if test "$n" = "$name"; then
4048 already_handled=yes
4049 break
4050 fi
4051 done
4052 if test -z "$already_handled"; then
4053 names_already_handled="$names_already_handled $name"
4054 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4055 eval value=\"\$HAVE_LIB$uppername\"
4056 if test -n "$value"; then
4057 if test "$value" = yes; then
4058 eval value=\"\$LIB$uppername\"
4059 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4060 eval value=\"\$LTLIB$uppername\"
4061 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4062 else
4063 :
4064 fi
4065 else
4066 found_dir=
4067 found_la=
4068 found_so=
4069 found_a=
0743911c
FM
4070 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4071 if test -n "$acl_shlibext"; then
4072 shrext=".$acl_shlibext" # typically: shrext=.so
4073 else
4074 shrext=
4075 fi
d6e703cc 4076 if test $use_additional = yes; then
0743911c
FM
4077 dir="$additional_libdir"
4078 if test -n "$acl_shlibext"; then
4079 if test -f "$dir/$libname$shrext"; then
4080 found_dir="$dir"
4081 found_so="$dir/$libname$shrext"
4082 else
4083 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4084 ver=`(cd "$dir" && \
4085 for f in "$libname$shrext".*; do echo "$f"; done \
4086 | sed -e "s,^$libname$shrext\\\\.,," \
4087 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4088 | sed 1q ) 2>/dev/null`
4089 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4090 found_dir="$dir"
4091 found_so="$dir/$libname$shrext.$ver"
4092 fi
4093 else
4094 eval library_names=\"$acl_library_names_spec\"
4095 for f in $library_names; do
4096 if test -f "$dir/$f"; then
4097 found_dir="$dir"
4098 found_so="$dir/$f"
4099 break
4100 fi
4101 done
d6e703cc
FM
4102 fi
4103 fi
0743911c
FM
4104 fi
4105 if test "X$found_dir" = "X"; then
4106 if test -f "$dir/$libname.$acl_libext"; then
4107 found_dir="$dir"
4108 found_a="$dir/$libname.$acl_libext"
4109 fi
4110 fi
4111 if test "X$found_dir" != "X"; then
4112 if test -f "$dir/$libname.la"; then
4113 found_la="$dir/$libname.la"
4114 fi
d6e703cc
FM
4115 fi
4116 fi
4117 if test "X$found_dir" = "X"; then
4118 for x in $LDFLAGS $LTLIBICONV; do
4119
4120 acl_save_prefix="$prefix"
4121 prefix="$acl_final_prefix"
4122 acl_save_exec_prefix="$exec_prefix"
4123 exec_prefix="$acl_final_exec_prefix"
4124 eval x=\"$x\"
4125 exec_prefix="$acl_save_exec_prefix"
4126 prefix="$acl_save_prefix"
4127
4128 case "$x" in
4129 -L*)
4130 dir=`echo "X$x" | sed -e 's/^X-L//'`
0743911c
FM
4131 if test -n "$acl_shlibext"; then
4132 if test -f "$dir/$libname$shrext"; then
d6e703cc 4133 found_dir="$dir"
0743911c
FM
4134 found_so="$dir/$libname$shrext"
4135 else
4136 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4137 ver=`(cd "$dir" && \
4138 for f in "$libname$shrext".*; do echo "$f"; done \
4139 | sed -e "s,^$libname$shrext\\\\.,," \
4140 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4141 | sed 1q ) 2>/dev/null`
4142 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4143 found_dir="$dir"
4144 found_so="$dir/$libname$shrext.$ver"
4145 fi
4146 else
4147 eval library_names=\"$acl_library_names_spec\"
4148 for f in $library_names; do
4149 if test -f "$dir/$f"; then
4150 found_dir="$dir"
4151 found_so="$dir/$f"
4152 break
4153 fi
4154 done
d6e703cc
FM
4155 fi
4156 fi
0743911c
FM
4157 fi
4158 if test "X$found_dir" = "X"; then
4159 if test -f "$dir/$libname.$acl_libext"; then
4160 found_dir="$dir"
4161 found_a="$dir/$libname.$acl_libext"
4162 fi
4163 fi
4164 if test "X$found_dir" != "X"; then
4165 if test -f "$dir/$libname.la"; then
4166 found_la="$dir/$libname.la"
4167 fi
d6e703cc
FM
4168 fi
4169 ;;
4170 esac
4171 if test "X$found_dir" != "X"; then
4172 break
4173 fi
4174 done
4175 fi
4176 if test "X$found_dir" != "X"; then
4177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4178 if test "X$found_so" != "X"; then
0743911c 4179 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
d6e703cc
FM
4180 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4181 else
4182 haveit=
4183 for x in $ltrpathdirs; do
4184 if test "X$x" = "X$found_dir"; then
4185 haveit=yes
4186 break
4187 fi
4188 done
4189 if test -z "$haveit"; then
4190 ltrpathdirs="$ltrpathdirs $found_dir"
4191 fi
0743911c 4192 if test "$acl_hardcode_direct" = yes; then
d6e703cc
FM
4193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4194 else
0743911c 4195 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
d6e703cc
FM
4196 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4197 haveit=
4198 for x in $rpathdirs; do
4199 if test "X$x" = "X$found_dir"; then
4200 haveit=yes
4201 break
4202 fi
4203 done
4204 if test -z "$haveit"; then
4205 rpathdirs="$rpathdirs $found_dir"
4206 fi
4207 else
4208 haveit=
4209 for x in $LDFLAGS $LIBICONV; do
4210
4211 acl_save_prefix="$prefix"
4212 prefix="$acl_final_prefix"
4213 acl_save_exec_prefix="$exec_prefix"
4214 exec_prefix="$acl_final_exec_prefix"
4215 eval x=\"$x\"
4216 exec_prefix="$acl_save_exec_prefix"
4217 prefix="$acl_save_prefix"
4218
4219 if test "X$x" = "X-L$found_dir"; then
4220 haveit=yes
4221 break
4222 fi
4223 done
4224 if test -z "$haveit"; then
4225 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4226 fi
0743911c 4227 if test "$acl_hardcode_minus_L" != no; then
d6e703cc
FM
4228 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4229 else
4230 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4231 fi
4232 fi
4233 fi
4234 fi
4235 else
4236 if test "X$found_a" != "X"; then
4237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4238 else
4239 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4240 fi
4241 fi
4242 additional_includedir=
4243 case "$found_dir" in
0743911c
FM
4244 */$acl_libdirstem | */$acl_libdirstem/)
4245 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4246 LIBICONV_PREFIX="$basedir"
d6e703cc
FM
4247 additional_includedir="$basedir/include"
4248 ;;
4249 esac
4250 if test "X$additional_includedir" != "X"; then
4251 if test "X$additional_includedir" != "X/usr/include"; then
4252 haveit=
4253 if test "X$additional_includedir" = "X/usr/local/include"; then
4254 if test -n "$GCC"; then
4255 case $host_os in
0743911c 4256 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
d6e703cc
FM
4257 esac
4258 fi
4259 fi
4260 if test -z "$haveit"; then
4261 for x in $CPPFLAGS $INCICONV; do
4262
4263 acl_save_prefix="$prefix"
4264 prefix="$acl_final_prefix"
4265 acl_save_exec_prefix="$exec_prefix"
4266 exec_prefix="$acl_final_exec_prefix"
4267 eval x=\"$x\"
4268 exec_prefix="$acl_save_exec_prefix"
4269 prefix="$acl_save_prefix"
4270
4271 if test "X$x" = "X-I$additional_includedir"; then
4272 haveit=yes
4273 break
4274 fi
4275 done
4276 if test -z "$haveit"; then
4277 if test -d "$additional_includedir"; then
4278 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4279 fi
4280 fi
4281 fi
4282 fi
4283 fi
4284 if test -n "$found_la"; then
4285 save_libdir="$libdir"
4286 case "$found_la" in
4287 */* | *\\*) . "$found_la" ;;
4288 *) . "./$found_la" ;;
4289 esac
4290 libdir="$save_libdir"
4291 for dep in $dependency_libs; do
4292 case "$dep" in
4293 -L*)
4294 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
0743911c 4295 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
d6e703cc 4296 haveit=
0743911c 4297 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
d6e703cc
FM
4298 if test -n "$GCC"; then
4299 case $host_os in
0743911c 4300 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
d6e703cc
FM
4301 esac
4302 fi
4303 fi
4304 if test -z "$haveit"; then
4305 haveit=
4306 for x in $LDFLAGS $LIBICONV; do
4307
4308 acl_save_prefix="$prefix"
4309 prefix="$acl_final_prefix"
4310 acl_save_exec_prefix="$exec_prefix"
4311 exec_prefix="$acl_final_exec_prefix"
4312 eval x=\"$x\"
4313 exec_prefix="$acl_save_exec_prefix"
4314 prefix="$acl_save_prefix"
4315
4316 if test "X$x" = "X-L$additional_libdir"; then
4317 haveit=yes
4318 break
4319 fi
4320 done
4321 if test -z "$haveit"; then
4322 if test -d "$additional_libdir"; then
4323 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4324 fi
4325 fi
4326 haveit=
4327 for x in $LDFLAGS $LTLIBICONV; do
4328
4329 acl_save_prefix="$prefix"
4330 prefix="$acl_final_prefix"
4331 acl_save_exec_prefix="$exec_prefix"
4332 exec_prefix="$acl_final_exec_prefix"
4333 eval x=\"$x\"
4334 exec_prefix="$acl_save_exec_prefix"
4335 prefix="$acl_save_prefix"
4336
4337 if test "X$x" = "X-L$additional_libdir"; then
4338 haveit=yes
4339 break
4340 fi
4341 done
4342 if test -z "$haveit"; then
4343 if test -d "$additional_libdir"; then
4344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4345 fi
4346 fi
4347 fi
4348 fi
4349 ;;
4350 -R*)
4351 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4352 if test "$enable_rpath" != no; then
4353 haveit=
4354 for x in $rpathdirs; do
4355 if test "X$x" = "X$dir"; then
4356 haveit=yes
4357 break
4358 fi
4359 done
4360 if test -z "$haveit"; then
4361 rpathdirs="$rpathdirs $dir"
4362 fi
4363 haveit=
4364 for x in $ltrpathdirs; do
4365 if test "X$x" = "X$dir"; then
4366 haveit=yes
4367 break
4368 fi
4369 done
4370 if test -z "$haveit"; then
4371 ltrpathdirs="$ltrpathdirs $dir"
4372 fi
4373 fi
4374 ;;
4375 -l*)
4376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4377 ;;
4378 *.la)
4379 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4380 ;;
4381 *)
4382 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4384 ;;
4385 esac
4386 done
4387 fi
4388 else
4389 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4390 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4391 fi
4392 fi
4393 fi
4394 done
4395 done
4396 if test "X$rpathdirs" != "X"; then
0743911c 4397 if test -n "$acl_hardcode_libdir_separator"; then
d6e703cc
FM
4398 alldirs=
4399 for found_dir in $rpathdirs; do
0743911c 4400 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
d6e703cc
FM
4401 done
4402 acl_save_libdir="$libdir"
4403 libdir="$alldirs"
0743911c 4404 eval flag=\"$acl_hardcode_libdir_flag_spec\"
d6e703cc
FM
4405 libdir="$acl_save_libdir"
4406 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4407 else
4408 for found_dir in $rpathdirs; do
4409 acl_save_libdir="$libdir"
4410 libdir="$found_dir"
0743911c 4411 eval flag=\"$acl_hardcode_libdir_flag_spec\"
d6e703cc
FM
4412 libdir="$acl_save_libdir"
4413 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4414 done
4415 fi
4416 fi
4417 if test "X$ltrpathdirs" != "X"; then
4418 for found_dir in $ltrpathdirs; do
4419 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4420 done
4421 fi
4422
4423
4424
4425
4426
4427
4428
4429 am_save_CPPFLAGS="$CPPFLAGS"
4430
4431 for element in $INCICONV; do
4432 haveit=
4433 for x in $CPPFLAGS; do
4434
4435 acl_save_prefix="$prefix"
4436 prefix="$acl_final_prefix"
4437 acl_save_exec_prefix="$exec_prefix"
4438 exec_prefix="$acl_final_exec_prefix"
4439 eval x=\"$x\"
4440 exec_prefix="$acl_save_exec_prefix"
4441 prefix="$acl_save_prefix"
4442
4443 if test "X$x" = "X$element"; then
4444 haveit=yes
4445 break
4446 fi
4447 done
4448 if test -z "$haveit"; then
4449 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4450 fi
4451 done
4452
4453
1164c474
FM
4454 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
4455$as_echo_n "checking for iconv... " >&6; }
d6e703cc 4456if test "${am_cv_func_iconv+set}" = set; then
1164c474 4457 $as_echo_n "(cached) " >&6
d6e703cc
FM
4458else
4459
4460 am_cv_func_iconv="no, consider installing GNU libiconv"
4461 am_cv_lib_iconv=no
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <iconv.h>
4470int
4471main ()
4472{
4473iconv_t cd = iconv_open("","");
4474 iconv(cd,NULL,NULL,NULL,NULL);
4475 iconv_close(cd);
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
4481if { (ac_try="$ac_link"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
1164c474
FM
4486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4487$as_echo "$ac_try_echo") >&5
0743911c 4488 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
1164c474 4493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4494 (exit $ac_status); } && {
4495 test -z "$ac_c_werror_flag" ||
4496 test ! -s conftest.err
1164c474
FM
4497 } && test -s conftest$ac_exeext && {
4498 test "$cross_compiling" = yes ||
4499 $as_test_x conftest$ac_exeext
4500 }; then
d6e703cc
FM
4501 am_cv_func_iconv=yes
4502else
1164c474 4503 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
0743911c 4506
d6e703cc 4507fi
0743911c 4508
1164c474 4509rm -rf conftest.dSYM
0743911c 4510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
4511 conftest$ac_exeext conftest.$ac_ext
4512 if test "$am_cv_func_iconv" != yes; then
4513 am_save_LIBS="$LIBS"
4514 LIBS="$LIBS $LIBICONV"
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
4521#include <stdlib.h>
4522#include <iconv.h>
4523int
4524main ()
4525{
4526iconv_t cd = iconv_open("","");
4527 iconv(cd,NULL,NULL,NULL,NULL);
4528 iconv_close(cd);
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
4534if { (ac_try="$ac_link"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
1164c474
FM
4539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540$as_echo "$ac_try_echo") >&5
0743911c 4541 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
1164c474 4546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4547 (exit $ac_status); } && {
4548 test -z "$ac_c_werror_flag" ||
4549 test ! -s conftest.err
1164c474
FM
4550 } && test -s conftest$ac_exeext && {
4551 test "$cross_compiling" = yes ||
4552 $as_test_x conftest$ac_exeext
4553 }; then
d6e703cc
FM
4554 am_cv_lib_iconv=yes
4555 am_cv_func_iconv=yes
4556else
1164c474 4557 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
0743911c 4560
d6e703cc 4561fi
0743911c 4562
1164c474 4563rm -rf conftest.dSYM
0743911c 4564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
4565 conftest$ac_exeext conftest.$ac_ext
4566 LIBS="$am_save_LIBS"
4567 fi
4568
4569fi
1164c474
FM
4570{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4571$as_echo "$am_cv_func_iconv" >&6; }
d6e703cc 4572 if test "$am_cv_func_iconv" = yes; then
1164c474
FM
4573 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
4574$as_echo_n "checking for working iconv... " >&6; }
0743911c 4575if test "${am_cv_func_iconv_works+set}" = set; then
1164c474 4576 $as_echo_n "(cached) " >&6
0743911c
FM
4577else
4578
4579 am_save_LIBS="$LIBS"
4580 if test $am_cv_lib_iconv = yes; then
4581 LIBS="$LIBS $LIBICONV"
4582 fi
4583 if test "$cross_compiling" = yes; then
4584 case "$host_os" in
4585 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4586 *) am_cv_func_iconv_works="guessing yes" ;;
4587 esac
4588else
4589 cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h. */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h. */
4595
4596#include <iconv.h>
4597#include <string.h>
4598int main ()
4599{
4600 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4601 returns. */
4602 {
4603 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4604 if (cd_utf8_to_88591 != (iconv_t)(-1))
4605 {
4606 static const char input[] = "\342\202\254"; /* EURO SIGN */
4607 char buf[10];
4608 const char *inptr = input;
4609 size_t inbytesleft = strlen (input);
4610 char *outptr = buf;
4611 size_t outbytesleft = sizeof (buf);
4612 size_t res = iconv (cd_utf8_to_88591,
4613 (char **) &inptr, &inbytesleft,
4614 &outptr, &outbytesleft);
4615 if (res == 0)
4616 return 1;
4617 }
4618 }
4619#if 0 /* This bug could be worked around by the caller. */
4620 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4621 {
4622 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4623 if (cd_88591_to_utf8 != (iconv_t)(-1))
4624 {
4625 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4626 char buf[50];
4627 const char *inptr = input;
4628 size_t inbytesleft = strlen (input);
4629 char *outptr = buf;
4630 size_t outbytesleft = sizeof (buf);
4631 size_t res = iconv (cd_88591_to_utf8,
4632 (char **) &inptr, &inbytesleft,
4633 &outptr, &outbytesleft);
4634 if ((int)res > 0)
4635 return 1;
4636 }
4637 }
4638#endif
4639 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4640 provided. */
4641 if (/* Try standardized names. */
4642 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4643 /* Try IRIX, OSF/1 names. */
4644 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4645 /* Try AIX names. */
4646 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4647 /* Try HP-UX names. */
4648 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4649 return 1;
4650 return 0;
4651}
4652_ACEOF
4653rm -f conftest$ac_exeext
4654if { (ac_try="$ac_link"
4655case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
1164c474
FM
4659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4660$as_echo "$ac_try_echo") >&5
0743911c
FM
4661 (eval "$ac_link") 2>&5
4662 ac_status=$?
1164c474 4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
1164c474
FM
4669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670$as_echo "$ac_try_echo") >&5
0743911c
FM
4671 (eval "$ac_try") 2>&5
4672 ac_status=$?
1164c474 4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4674 (exit $ac_status); }; }; then
4675 am_cv_func_iconv_works=yes
4676else
1164c474
FM
4677 $as_echo "$as_me: program exited with status $ac_status" >&5
4678$as_echo "$as_me: failed program was:" >&5
0743911c
FM
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681( exit $ac_status )
4682am_cv_func_iconv_works=no
4683fi
1164c474 4684rm -rf conftest.dSYM
0743911c
FM
4685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4686fi
4687
4688
4689 LIBS="$am_save_LIBS"
4690
4691fi
1164c474
FM
4692{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
4693$as_echo "$am_cv_func_iconv_works" >&6; }
0743911c
FM
4694 case "$am_cv_func_iconv_works" in
4695 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4696 *) am_func_iconv=yes ;;
4697 esac
4698 else
4699 am_func_iconv=no am_cv_lib_iconv=no
4700 fi
4701 if test "$am_func_iconv" = yes; then
d6e703cc
FM
4702
4703cat >>confdefs.h <<\_ACEOF
4704#define HAVE_ICONV 1
4705_ACEOF
4706
4707 fi
4708 if test "$am_cv_lib_iconv" = yes; then
1164c474
FM
4709 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4710$as_echo_n "checking how to link with libiconv... " >&6; }
4711 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
4712$as_echo "$LIBICONV" >&6; }
d6e703cc
FM
4713 else
4714 CPPFLAGS="$am_save_CPPFLAGS"
4715 LIBICONV=
4716 LTLIBICONV=
4717 fi
4718
4719
4720
4721 if test "$am_cv_func_iconv" = yes; then
1164c474
FM
4722 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
4723$as_echo_n "checking for iconv declaration... " >&6; }
d6e703cc 4724 if test "${am_cv_proto_iconv+set}" = set; then
1164c474 4725 $as_echo_n "(cached) " >&6
d6e703cc
FM
4726else
4727
4728 cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h. */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h. */
4734
4735#include <stdlib.h>
4736#include <iconv.h>
4737extern
4738#ifdef __cplusplus
4739"C"
4740#endif
4741#if defined(__STDC__) || defined(__cplusplus)
4742size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4743#else
4744size_t iconv();
4745#endif
4746
4747int
4748main ()
4749{
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755rm -f conftest.$ac_objext
0743911c
FM
4756if { (ac_try="$ac_compile"
4757case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760esac
1164c474
FM
4761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4762$as_echo "$ac_try_echo") >&5
0743911c 4763 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
1164c474 4768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4769 (exit $ac_status); } && {
4770 test -z "$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4773 am_cv_proto_iconv_arg1=""
4774else
1164c474 4775 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
0743911c 4778 am_cv_proto_iconv_arg1="const"
d6e703cc 4779fi
0743911c
FM
4780
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
4782 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);"
4783fi
4784
4785 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
1164c474 4786 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
d6e703cc 4787 }$am_cv_proto_iconv" >&5
1164c474 4788$as_echo "${ac_t:-
0743911c 4789 }$am_cv_proto_iconv" >&6; }
d6e703cc
FM
4790
4791cat >>confdefs.h <<_ACEOF
4792#define ICONV_CONST $am_cv_proto_iconv_arg1
4793_ACEOF
4794
4795 fi
4796
4797if test -n "$LIBICONV" ; then
4798 LIBS="$LIBS $LIBICONV"
4799fi
4800
25697a35
GS
4801# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4802
4803
4804
4805
4806
4807
4808
4809
4810
d6e703cc
FM
4811for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4812 inttypes.h stdint.h unistd.h
4813do
1164c474
FM
4814as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4816$as_echo_n "checking for $ac_header... " >&6; }
0743911c 4817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 4818 $as_echo_n "(cached) " >&6
d6e703cc
FM
4819else
4820 cat >conftest.$ac_ext <<_ACEOF
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826$ac_includes_default
4827
4828#include <$ac_header>
4829_ACEOF
4830rm -f conftest.$ac_objext
0743911c
FM
4831if { (ac_try="$ac_compile"
4832case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835esac
1164c474
FM
4836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4837$as_echo "$ac_try_echo") >&5
0743911c 4838 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
1164c474 4843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4848 eval "$as_ac_Header=yes"
4849else
1164c474 4850 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
0743911c 4853 eval "$as_ac_Header=no"
d6e703cc 4854fi
0743911c
FM
4855
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 4857fi
1164c474
FM
4858ac_res=`eval 'as_val=${'$as_ac_Header'}
4859 $as_echo "$as_val"'`
4860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4861$as_echo "$ac_res" >&6; }
4862as_val=`eval 'as_val=${'$as_ac_Header'}
4863 $as_echo "$as_val"'`
4864 if test "x$as_val" = x""yes; then
d6e703cc 4865 cat >>confdefs.h <<_ACEOF
1164c474 4866#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6e703cc
FM
4867_ACEOF
4868
4869fi
4870
4871done
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
0743911c 4897
d2fe0c32 4898
2357ef77 4899
4af2f8ff 4900
a1de61fe 4901
e6414a9d 4902
d6e703cc
FM
4903
4904
4905for ac_header in stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h \
e6414a9d
FM
4906 dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \
4907 ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
4908 errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
4909 execinfo.h
d6e703cc 4910do
1164c474 4911as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
0743911c 4912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474
FM
4913 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4914$as_echo_n "checking for $ac_header... " >&6; }
0743911c 4915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 4916 $as_echo_n "(cached) " >&6
d6e703cc 4917fi
1164c474
FM
4918ac_res=`eval 'as_val=${'$as_ac_Header'}
4919 $as_echo "$as_val"'`
4920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4921$as_echo "$ac_res" >&6; }
d6e703cc
FM
4922else
4923 # Is the header compilable?
1164c474
FM
4924{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4925$as_echo_n "checking $ac_header usability... " >&6; }
d6e703cc
FM
4926cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932$ac_includes_default
4933#include <$ac_header>
4934_ACEOF
4935rm -f conftest.$ac_objext
0743911c
FM
4936if { (ac_try="$ac_compile"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
1164c474
FM
4941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4942$as_echo "$ac_try_echo") >&5
0743911c 4943 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
4944 ac_status=$?
4945 grep -v '^ *+' conftest.er1 >conftest.err
4946 rm -f conftest.er1
4947 cat conftest.err >&5
1164c474 4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4949 (exit $ac_status); } && {
4950 test -z "$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4952 } && test -s conftest.$ac_objext; then
d6e703cc
FM
4953 ac_header_compiler=yes
4954else
1164c474 4955 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
0743911c 4958 ac_header_compiler=no
d6e703cc 4959fi
0743911c
FM
4960
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1164c474
FM
4962{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4963$as_echo "$ac_header_compiler" >&6; }
d6e703cc
FM
4964
4965# Is the header present?
1164c474
FM
4966{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4967$as_echo_n "checking $ac_header presence... " >&6; }
d6e703cc
FM
4968cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
4974#include <$ac_header>
4975_ACEOF
0743911c
FM
4976if { (ac_try="$ac_cpp conftest.$ac_ext"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
1164c474
FM
4981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982$as_echo "$ac_try_echo") >&5
0743911c 4983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d6e703cc
FM
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
1164c474 4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
4989 (exit $ac_status); } >/dev/null && {
4990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 }; then
d6e703cc
FM
4993 ac_header_preproc=yes
4994else
1164c474 4995 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_header_preproc=no
4999fi
0743911c 5000
d6e703cc 5001rm -f conftest.err conftest.$ac_ext
1164c474
FM
5002{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5003$as_echo "$ac_header_preproc" >&6; }
d6e703cc
FM
5004
5005# So? What about this header?
5006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5007 yes:no: )
1164c474
FM
5008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5009$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5011$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d6e703cc
FM
5012 ac_header_preproc=yes
5013 ;;
5014 no:yes:* )
1164c474
FM
5015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5016$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5018$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5020$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5022$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5024$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5026$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
0743911c 5027
d6e703cc
FM
5028 ;;
5029esac
1164c474
FM
5030{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5031$as_echo_n "checking for $ac_header... " >&6; }
0743911c 5032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 5033 $as_echo_n "(cached) " >&6
d6e703cc
FM
5034else
5035 eval "$as_ac_Header=\$ac_header_preproc"
5036fi
1164c474
FM
5037ac_res=`eval 'as_val=${'$as_ac_Header'}
5038 $as_echo "$as_val"'`
5039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5040$as_echo "$ac_res" >&6; }
d6e703cc
FM
5041
5042fi
1164c474
FM
5043as_val=`eval 'as_val=${'$as_ac_Header'}
5044 $as_echo "$as_val"'`
5045 if test "x$as_val" = x""yes; then
d6e703cc 5046 cat >>confdefs.h <<_ACEOF
1164c474 5047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d6e703cc
FM
5048_ACEOF
5049
5050fi
5051
5052done
5053
5054
1164c474
FM
5055{ $as_echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
5056$as_echo_n "checking for gdImagePng in -lgd... " >&6; }
d6e703cc 5057if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
1164c474 5058 $as_echo_n "(cached) " >&6
d6e703cc
FM
5059else
5060 ac_check_lib_save_LIBS=$LIBS
5061LIBS="-lgd $LIBS"
5062cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068
0743911c
FM
5069/* Override any GCC internal prototype to avoid an error.
5070 Use char because int might match the return type of a GCC
5071 builtin and then its argument prototype would still apply. */
d6e703cc
FM
5072#ifdef __cplusplus
5073extern "C"
5074#endif
d6e703cc
FM
5075char gdImagePng ();
5076int
5077main ()
5078{
0743911c 5079return gdImagePng ();
d6e703cc
FM
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext conftest$ac_exeext
0743911c
FM
5085if { (ac_try="$ac_link"
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
1164c474
FM
5090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091$as_echo "$ac_try_echo") >&5
0743911c 5092 (eval "$ac_link") 2>conftest.er1
d6e703cc
FM
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
1164c474 5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
1164c474
FM
5101 } && test -s conftest$ac_exeext && {
5102 test "$cross_compiling" = yes ||
5103 $as_test_x conftest$ac_exeext
5104 }; then
d6e703cc
FM
5105 ac_cv_lib_gd_gdImagePng=yes
5106else
1164c474 5107 $as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
0743911c 5110 ac_cv_lib_gd_gdImagePng=no
d6e703cc 5111fi
0743911c 5112
1164c474 5113rm -rf conftest.dSYM
0743911c 5114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d6e703cc
FM
5115 conftest$ac_exeext conftest.$ac_ext
5116LIBS=$ac_check_lib_save_LIBS
5117fi
1164c474
FM
5118{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
5119$as_echo "$ac_cv_lib_gd_gdImagePng" >&6; }
5120if test "x$ac_cv_lib_gd_gdImagePng" = x""yes; then
d6e703cc
FM
5121 LIBS="-lgd ${LIBS}"; HAVE_GD="yes"
5122else
5123 HAVE_GD=""
5124fi
5125
5126
1164c474
FM
5127{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5128$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6e703cc 5129if test "${ac_cv_c_const+set}" = set; then
1164c474 5130 $as_echo_n "(cached) " >&6
25697a35
GS
5131else
5132 cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h. */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h. */
25697a35 5138
d6e703cc
FM
5139int
5140main ()
5141{
5142/* FIXME: Include the comments suggested by Paul. */
5143#ifndef __cplusplus
5144 /* Ultrix mips cc rejects this. */
5145 typedef int charset[2];
0743911c 5146 const charset cs;
d6e703cc 5147 /* SunOS 4.1.1 cc rejects this. */
0743911c
FM
5148 char const *const *pcpcc;
5149 char **ppc;
d6e703cc
FM
5150 /* NEC SVR4.0.2 mips cc rejects this. */
5151 struct point {int x, y;};
5152 static struct point const zero = {0,0};
5153 /* AIX XL C 1.02.0.0 rejects this.
5154 It does not let you subtract one const X* pointer from another in
5155 an arm of an if-expression whose if-part is not a constant
5156 expression */
5157 const char *g = "string";
0743911c 5158 pcpcc = &g + (g ? g-g : 0);
d6e703cc 5159 /* HPUX 7.0 cc rejects these. */
0743911c
FM
5160 ++pcpcc;
5161 ppc = (char**) pcpcc;
5162 pcpcc = (char const *const *) ppc;
d6e703cc
FM
5163 { /* SCO 3.2v4 cc rejects this. */
5164 char *t;
5165 char const *s = 0 ? (char *) 0 : (char const *) 0;
5166
5167 *t++ = 0;
0743911c 5168 if (s) return 0;
d6e703cc
FM
5169 }
5170 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5171 int x[] = {25, 17};
5172 const int *foo = &x[0];
5173 ++foo;
5174 }
5175 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5176 typedef const int *iptr;
5177 iptr p = 0;
5178 ++p;
5179 }
5180 { /* AIX XL C 1.02.0.0 rejects this saying
5181 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5182 struct s { int j; const int *ap[3]; };
5183 struct s *b; b->j = 5;
5184 }
5185 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5186 const int foo = 10;
0743911c 5187 if (!foo) return 0;
d6e703cc 5188 }
0743911c 5189 return !cs[0] && !zero.x;
d6e703cc
FM
5190#endif
5191
5192 ;
5193 return 0;
5194}
25697a35
GS
5195_ACEOF
5196rm -f conftest.$ac_objext
0743911c
FM
5197if { (ac_try="$ac_compile"
5198case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
1164c474
FM
5202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5203$as_echo "$ac_try_echo") >&5
0743911c 5204 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
1164c474 5209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
5210 (exit $ac_status); } && {
5211 test -z "$ac_c_werror_flag" ||
5212 test ! -s conftest.err
5213 } && test -s conftest.$ac_objext; then
d6e703cc 5214 ac_cv_c_const=yes
25697a35 5215else
1164c474 5216 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
0743911c 5219 ac_cv_c_const=no
25697a35 5220fi
0743911c
FM
5221
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697a35 5223fi
1164c474
FM
5224{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5225$as_echo "$ac_cv_c_const" >&6; }
d6e703cc
FM
5226if test $ac_cv_c_const = no; then
5227
5228cat >>confdefs.h <<\_ACEOF
1164c474 5229#define const /**/
25697a35
GS
5230_ACEOF
5231
5232fi
5233
1164c474
FM
5234{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5235$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6e703cc 5236if test "${ac_cv_struct_tm+set}" = set; then
1164c474 5237 $as_echo_n "(cached) " >&6
25697a35 5238else
d6e703cc 5239 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
d6e703cc
FM
5245#include <sys/types.h>
5246#include <time.h>
5247
5248int
5249main ()
5250{
0743911c
FM
5251struct tm tm;
5252 int *p = &tm.tm_sec;
1164c474 5253 return !p;
d6e703cc
FM
5254 ;
5255 return 0;
5256}
25697a35
GS
5257_ACEOF
5258rm -f conftest.$ac_objext
0743911c
FM
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
1164c474
FM
5264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265$as_echo "$ac_try_echo") >&5
0743911c 5266 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
1164c474 5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
5272 (exit $ac_status); } && {
5273 test -z "$ac_c_werror_flag" ||
5274 test ! -s conftest.err
5275 } && test -s conftest.$ac_objext; then
d6e703cc 5276 ac_cv_struct_tm=time.h
25697a35 5277else
1164c474 5278 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
0743911c 5281 ac_cv_struct_tm=sys/time.h
25697a35 5282fi
0743911c
FM
5283
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 5285fi
1164c474
FM
5286{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5287$as_echo "$ac_cv_struct_tm" >&6; }
d6e703cc 5288if test $ac_cv_struct_tm = sys/time.h; then
25697a35 5289
d6e703cc
FM
5290cat >>confdefs.h <<\_ACEOF
5291#define TM_IN_SYS_TIME 1
5292_ACEOF
5293
5294fi
5295
5296
32e71fa4
FM
5297# Check whether --enable-largefile was given.
5298if test "${enable_largefile+set}" = set; then
5299 enableval=$enable_largefile;
5300fi
5301
5302if test "$enable_largefile" != no; then
5303
1164c474
FM
5304 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5305$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
32e71fa4 5306if test "${ac_cv_sys_largefile_CC+set}" = set; then
1164c474 5307 $as_echo_n "(cached) " >&6
32e71fa4
FM
5308else
5309 ac_cv_sys_largefile_CC=no
5310 if test "$GCC" != yes; then
5311 ac_save_CC=$CC
5312 while :; do
5313 # IRIX 6.2 and later do not support large files by default,
5314 # so use the C compiler's -n32 option if that helps.
5315 cat >conftest.$ac_ext <<_ACEOF
5316/* confdefs.h. */
5317_ACEOF
5318cat confdefs.h >>conftest.$ac_ext
5319cat >>conftest.$ac_ext <<_ACEOF
5320/* end confdefs.h. */
5321#include <sys/types.h>
5322 /* Check that off_t can represent 2**63 - 1 correctly.
5323 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5324 since some C++ compilers masquerading as C compilers
5325 incorrectly reject 9223372036854775807. */
5326#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5328 && LARGE_OFF_T % 2147483647 == 1)
5329 ? 1 : -1];
5330int
5331main ()
5332{
5333
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338 rm -f conftest.$ac_objext
5339if { (ac_try="$ac_compile"
5340case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343esac
1164c474
FM
5344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5345$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
1164c474 5351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 break
5357else
1164c474 5358 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361
5362fi
5363
5364rm -f core conftest.err conftest.$ac_objext
5365 CC="$CC -n32"
5366 rm -f conftest.$ac_objext
5367if { (ac_try="$ac_compile"
5368case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371esac
1164c474
FM
5372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5374 (eval "$ac_compile") 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
1164c474 5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.$ac_objext; then
5384 ac_cv_sys_largefile_CC=' -n32'; break
5385else
1164c474 5386 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389
5390fi
5391
5392rm -f core conftest.err conftest.$ac_objext
5393 break
5394 done
5395 CC=$ac_save_CC
5396 rm -f conftest.$ac_ext
5397 fi
5398fi
1164c474
FM
5399{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5400$as_echo "$ac_cv_sys_largefile_CC" >&6; }
32e71fa4
FM
5401 if test "$ac_cv_sys_largefile_CC" != no; then
5402 CC=$CC$ac_cv_sys_largefile_CC
5403 fi
5404
1164c474
FM
5405 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5406$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
32e71fa4 5407if test "${ac_cv_sys_file_offset_bits+set}" = set; then
1164c474 5408 $as_echo_n "(cached) " >&6
32e71fa4
FM
5409else
5410 while :; do
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417#include <sys/types.h>
5418 /* Check that off_t can represent 2**63 - 1 correctly.
5419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5420 since some C++ compilers masquerading as C compilers
5421 incorrectly reject 9223372036854775807. */
5422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5424 && LARGE_OFF_T % 2147483647 == 1)
5425 ? 1 : -1];
5426int
5427main ()
5428{
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
1164c474
FM
5440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5442 (eval "$ac_compile") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
1164c474 5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5452 ac_cv_sys_file_offset_bits=no; break
5453else
1164c474 5454 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457
5458fi
5459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h. */
5467#define _FILE_OFFSET_BITS 64
5468#include <sys/types.h>
5469 /* Check that off_t can represent 2**63 - 1 correctly.
5470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5471 since some C++ compilers masquerading as C compilers
5472 incorrectly reject 9223372036854775807. */
5473#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5475 && LARGE_OFF_T % 2147483647 == 1)
5476 ? 1 : -1];
5477int
5478main ()
5479{
5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
5486if { (ac_try="$ac_compile"
5487case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490esac
1164c474
FM
5491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
1164c474 5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_sys_file_offset_bits=64; break
5504else
1164c474 5505 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508
5509fi
5510
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 ac_cv_sys_file_offset_bits=unknown
5513 break
5514done
5515fi
1164c474
FM
5516{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5517$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
32e71fa4
FM
5518case $ac_cv_sys_file_offset_bits in #(
5519 no | unknown) ;;
5520 *)
5521cat >>confdefs.h <<_ACEOF
5522#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5523_ACEOF
5524;;
5525esac
1164c474 5526rm -rf conftest*
32e71fa4 5527 if test $ac_cv_sys_file_offset_bits = unknown; then
1164c474
FM
5528 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5529$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
32e71fa4 5530if test "${ac_cv_sys_large_files+set}" = set; then
1164c474 5531 $as_echo_n "(cached) " >&6
32e71fa4
FM
5532else
5533 while :; do
5534 cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540#include <sys/types.h>
5541 /* Check that off_t can represent 2**63 - 1 correctly.
5542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5543 since some C++ compilers masquerading as C compilers
5544 incorrectly reject 9223372036854775807. */
5545#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5547 && LARGE_OFF_T % 2147483647 == 1)
5548 ? 1 : -1];
5549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (ac_try="$ac_compile"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
1164c474
FM
5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5565 (eval "$ac_compile") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
1164c474 5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5575 ac_cv_sys_large_files=no; break
5576else
1164c474 5577 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h. */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h. */
5590#define _LARGE_FILES 1
5591#include <sys/types.h>
5592 /* Check that off_t can represent 2**63 - 1 correctly.
5593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5594 since some C++ compilers masquerading as C compilers
5595 incorrectly reject 9223372036854775807. */
5596#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5598 && LARGE_OFF_T % 2147483647 == 1)
5599 ? 1 : -1];
5600int
5601main ()
5602{
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (ac_try="$ac_compile"
5610case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613esac
1164c474
FM
5614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5616 (eval "$ac_compile") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
1164c474 5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5626 ac_cv_sys_large_files=1; break
5627else
1164c474 5628 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5629sed 's/^/| /' conftest.$ac_ext >&5
5630
5631
5632fi
5633
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_sys_large_files=unknown
5636 break
5637done
5638fi
1164c474
FM
5639{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5640$as_echo "$ac_cv_sys_large_files" >&6; }
32e71fa4
FM
5641case $ac_cv_sys_large_files in #(
5642 no | unknown) ;;
5643 *)
5644cat >>confdefs.h <<_ACEOF
5645#define _LARGE_FILES $ac_cv_sys_large_files
5646_ACEOF
5647;;
5648esac
1164c474 5649rm -rf conftest*
32e71fa4
FM
5650 fi
5651fi
5652
5653
5654# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
5655# needs to be defined for it
1164c474
FM
5656{ $as_echo "$as_me:$LINENO: checking for fopen64" >&5
5657$as_echo_n "checking for fopen64... " >&6; }
32e71fa4 5658if test "${bu_cv_have_fopen64+set}" = set; then
1164c474 5659 $as_echo_n "(cached) " >&6
32e71fa4 5660else
a61fe05c
FM
5661 noerror_CFLAGS=$CFLAGS
5662 CFLAGS="$CFLAGS -Werror"
5663 cat >conftest.$ac_ext <<_ACEOF
32e71fa4
FM
5664/* confdefs.h. */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h. */
5669#include <stdio.h>
5670int
5671main ()
5672{
a1de61fe 5673FILE *f = fopen64 ("/tmp/foo","r");fclose(f);
32e71fa4
FM
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext conftest$ac_exeext
5679if { (ac_try="$ac_link"
5680case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
1164c474
FM
5684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5685$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5686 (eval "$ac_link") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
1164c474 5691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
1164c474
FM
5695 } && test -s conftest$ac_exeext && {
5696 test "$cross_compiling" = yes ||
5697 $as_test_x conftest$ac_exeext
5698 }; then
32e71fa4
FM
5699 bu_cv_have_fopen64=yes
5700else
1164c474 5701 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
a61fe05c 5704 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
32e71fa4
FM
5705 cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711#include <stdio.h>
5712int
5713main ()
5714{
a61fe05c 5715FILE *f = fopen64 ("/tmp/foo","r");fclose(f);
32e71fa4
FM
5716 ;
5717 return 0;
5718}
5719_ACEOF
5720rm -f conftest.$ac_objext conftest$ac_exeext
5721if { (ac_try="$ac_link"
5722case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
1164c474
FM
5726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5727$as_echo "$ac_try_echo") >&5
32e71fa4
FM
5728 (eval "$ac_link") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
1164c474 5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32e71fa4
FM
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
1164c474
FM
5737 } && test -s conftest$ac_exeext && {
5738 test "$cross_compiling" = yes ||
5739 $as_test_x conftest$ac_exeext
5740 }; then
32e71fa4
FM
5741 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
5742else
1164c474 5743 $as_echo "$as_me: failed program was:" >&5
a61fe05c
FM
5744sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 CFLAGS=$noerror_CFLAGS
5747 cat >conftest.$ac_ext <<_ACEOF
5748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
5753#include <stdio.h>
5754int
5755main ()
5756{
5757FILE *f = fopen64 ("/tmp/foo","r");fclose(f);
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762rm -f conftest.$ac_objext conftest$ac_exeext
5763if { (ac_try="$ac_link"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
1164c474
FM
5768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5769$as_echo "$ac_try_echo") >&5
a61fe05c
FM
5770 (eval "$ac_link") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
1164c474 5775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a61fe05c
FM
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
1164c474
FM
5779 } && test -s conftest$ac_exeext && {
5780 test "$cross_compiling" = yes ||
5781 $as_test_x conftest$ac_exeext
5782 }; then
a61fe05c
FM
5783 bu_cv_have_fopen64="yes without -Werror"
5784 werror_status="fail"
5785else
1164c474 5786 $as_echo "$as_me: failed program was:" >&5
a61fe05c
FM
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796#include <stdio.h>
5797int
5798main ()
5799{
5800FILE *f = fopen64 ("/tmp/foo","r");fclose(f);
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext conftest$ac_exeext
5806if { (ac_try="$ac_link"
5807case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
1164c474
FM
5811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812$as_echo "$ac_try_echo") >&5
a61fe05c
FM
5813 (eval "$ac_link") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
1164c474 5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a61fe05c
FM
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
1164c474
FM
5822 } && test -s conftest$ac_exeext && {
5823 test "$cross_compiling" = yes ||
5824 $as_test_x conftest$ac_exeext
5825 }; then
a61fe05c
FM
5826 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE and no -Werror"
5827werror_status="fail"
5828else
1164c474 5829 $as_echo "$as_me: failed program was:" >&5
32e71fa4
FM
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 bu_cv_have_fopen64=no
5833fi
5834
1164c474 5835rm -rf conftest.dSYM
32e71fa4
FM
5836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5837 conftest$ac_exeext conftest.$ac_ext
32e71fa4
FM
5838fi
5839
1164c474 5840rm -rf conftest.dSYM
a61fe05c
FM
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5842 conftest$ac_exeext conftest.$ac_ext
5843fi
5844
1164c474 5845rm -rf conftest.dSYM
a61fe05c
FM
5846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5847 conftest$ac_exeext conftest.$ac_ext
5848
5849fi
5850
1164c474 5851rm -rf conftest.dSYM
32e71fa4
FM
5852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5853 conftest$ac_exeext conftest.$ac_ext
a61fe05c 5854 CFLAGS=$noerror_CFLAGS
32e71fa4
FM
5855fi
5856
1164c474
FM
5857{ $as_echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
5858$as_echo "$bu_cv_have_fopen64" >&6; }
32e71fa4
FM
5859if test "$bu_cv_have_fopen64" != no; then
5860
5861cat >>confdefs.h <<\_ACEOF
5862#define HAVE_FOPEN64 1
5863_ACEOF
5864
5865 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
5866
5867cat >>confdefs.h <<\_ACEOF
5868#define _LARGEFILE64_SOURCE 1
5869_ACEOF
5870
5871 fi
5872fi
5873
5874
40d681bc
FM
5875for ac_func in bzero
5876do
1164c474
FM
5877as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5878{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5879$as_echo_n "checking for $ac_func... " >&6; }
40d681bc 5880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 5881 $as_echo_n "(cached) " >&6
40d681bc
FM
5882else
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5891#define $ac_func innocuous_$ac_func
5892
5893/* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func (); below.
5895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 <limits.h> exists even on freestanding compilers. */
5897
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
5903
5904#undef $ac_func
5905
5906/* Override any GCC internal prototype to avoid an error.
5907 Use char because int might match the return type of a GCC
5908 builtin and then its argument prototype would still apply. */
5909#ifdef __cplusplus
5910extern "C"
5911#endif
5912char $ac_func ();
5913/* The GNU C library defines this for functions which it implements
5914 to always fail with ENOSYS. Some functions are actually named
5915 something starting with __ and the normal name is an alias. */
5916#if defined __stub_$ac_func || defined __stub___$ac_func
5917choke me
5918#endif
5919
5920int
5921main ()
5922{
5923return $ac_func ();
5924 ;
5925 return 0;
5926}
5927_ACEOF
5928rm -f conftest.$ac_objext conftest$ac_exeext
5929if { (ac_try="$ac_link"
5930case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
1164c474
FM
5934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935$as_echo "$ac_try_echo") >&5
40d681bc
FM
5936 (eval "$ac_link") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
1164c474 5941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40d681bc
FM
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
1164c474
FM
5945 } && test -s conftest$ac_exeext && {
5946 test "$cross_compiling" = yes ||
5947 $as_test_x conftest$ac_exeext
5948 }; then
40d681bc
FM
5949 eval "$as_ac_var=yes"
5950else
1164c474 5951 $as_echo "$as_me: failed program was:" >&5
40d681bc
FM
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 eval "$as_ac_var=no"
5955fi
5956
1164c474 5957rm -rf conftest.dSYM
40d681bc
FM
5958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5959 conftest$ac_exeext conftest.$ac_ext
5960fi
1164c474
FM
5961ac_res=`eval 'as_val=${'$as_ac_var'}
5962 $as_echo "$as_val"'`
5963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5964$as_echo "$ac_res" >&6; }
5965as_val=`eval 'as_val=${'$as_ac_var'}
5966 $as_echo "$as_val"'`
5967 if test "x$as_val" = x""yes; then
40d681bc 5968 cat >>confdefs.h <<_ACEOF
1164c474 5969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40d681bc
FM
5970_ACEOF
5971
5972fi
5973done
5974
5975
e6414a9d
FM
5976for ac_func in backtrace
5977do
1164c474
FM
5978as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5980$as_echo_n "checking for $ac_func... " >&6; }
e6414a9d 5981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 5982 $as_echo_n "(cached) " >&6
a7ca233d
FM
5983else
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
e6414a9d
FM
5990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5992#define $ac_func innocuous_$ac_func
5993
5994/* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char $ac_func (); below.
5996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 <limits.h> exists even on freestanding compilers. */
b5f13803
FM
5998
5999#ifdef __STDC__
6000# include <limits.h>
6001#else
6002# include <assert.h>
6003#endif
6004
6005#undef $ac_func
6006
6007/* Override any GCC internal prototype to avoid an error.
6008 Use char because int might match the return type of a GCC
6009 builtin and then its argument prototype would still apply. */
6010#ifdef __cplusplus
6011extern "C"
6012#endif
6013char $ac_func ();
6014/* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017#if defined __stub_$ac_func || defined __stub___$ac_func
6018choke me
6019#endif
6020
6021int
6022main ()
6023{
6024return $ac_func ();
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029rm -f conftest.$ac_objext conftest$ac_exeext
6030if { (ac_try="$ac_link"
6031case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6034esac
1164c474
FM
6035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6036$as_echo "$ac_try_echo") >&5
b5f13803
FM
6037 (eval "$ac_link") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
1164c474 6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b5f13803
FM
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
1164c474
FM
6046 } && test -s conftest$ac_exeext && {
6047 test "$cross_compiling" = yes ||
6048 $as_test_x conftest$ac_exeext
6049 }; then
b5f13803
FM
6050 eval "$as_ac_var=yes"
6051else
1164c474 6052 $as_echo "$as_me: failed program was:" >&5
b5f13803
FM
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 eval "$as_ac_var=no"
6056fi
6057
1164c474 6058rm -rf conftest.dSYM
b5f13803
FM
6059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6060 conftest$ac_exeext conftest.$ac_ext
6061fi
1164c474
FM
6062ac_res=`eval 'as_val=${'$as_ac_var'}
6063 $as_echo "$as_val"'`
6064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6065$as_echo "$ac_res" >&6; }
6066as_val=`eval 'as_val=${'$as_ac_var'}
6067 $as_echo "$as_val"'`
6068 if test "x$as_val" = x""yes; then
b5f13803 6069 cat >>confdefs.h <<_ACEOF
1164c474 6070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b5f13803
FM
6071_ACEOF
6072
6073fi
6074done
6075
6076
6077for ac_func in symlink
6078do
1164c474
FM
6079as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6080{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6081$as_echo_n "checking for $ac_func... " >&6; }
b5f13803 6082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 6083 $as_echo_n "(cached) " >&6
b5f13803
FM
6084else
6085 cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h. */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h. */
6091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6093#define $ac_func innocuous_$ac_func
6094
6095/* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char $ac_func (); below.
6097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6098 <limits.h> exists even on freestanding compilers. */
e6414a9d
FM
6099
6100#ifdef __STDC__
6101# include <limits.h>
6102#else
6103# include <assert.h>
a7ca233d
FM
6104#endif
6105
e6414a9d
FM
6106#undef $ac_func
6107
6108/* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6111#ifdef __cplusplus
6112extern "C"
6113#endif
6114char $ac_func ();
6115/* The GNU C library defines this for functions which it implements
6116 to always fail with ENOSYS. Some functions are actually named
6117 something starting with __ and the normal name is an alias. */
6118#if defined __stub_$ac_func || defined __stub___$ac_func
6119choke me
6120#endif
a7ca233d 6121
a7ca233d
FM
6122int
6123main ()
6124{
e6414a9d 6125return $ac_func ();
a7ca233d
FM
6126 ;
6127 return 0;
6128}
6129_ACEOF
e6414a9d
FM
6130rm -f conftest.$ac_objext conftest$ac_exeext
6131if { (ac_try="$ac_link"
a7ca233d
FM
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
1164c474
FM
6136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137$as_echo "$ac_try_echo") >&5
e6414a9d 6138 (eval "$ac_link") 2>conftest.er1
a7ca233d
FM
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
1164c474 6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a7ca233d
FM
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
1164c474
FM
6147 } && test -s conftest$ac_exeext && {
6148 test "$cross_compiling" = yes ||
6149 $as_test_x conftest$ac_exeext
6150 }; then
e6414a9d 6151 eval "$as_ac_var=yes"
a7ca233d 6152else
1164c474 6153 $as_echo "$as_me: failed program was:" >&5
a7ca233d
FM
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
e6414a9d 6156 eval "$as_ac_var=no"
a7ca233d
FM
6157fi
6158
1164c474 6159rm -rf conftest.dSYM
e6414a9d
FM
6160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6161 conftest$ac_exeext conftest.$ac_ext
6162fi
1164c474
FM
6163ac_res=`eval 'as_val=${'$as_ac_var'}
6164 $as_echo "$as_val"'`
6165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6166$as_echo "$ac_res" >&6; }
6167as_val=`eval 'as_val=${'$as_ac_var'}
6168 $as_echo "$as_val"'`
6169 if test "x$as_val" = x""yes; then
e6414a9d 6170 cat >>confdefs.h <<_ACEOF
1164c474 6171#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
e6414a9d
FM
6172_ACEOF
6173
a7ca233d 6174fi
e6414a9d
FM
6175done
6176
a7ca233d 6177
d9c45e9c
FM
6178for ac_func in lstat
6179do
1164c474
FM
6180as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6181{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6182$as_echo_n "checking for $ac_func... " >&6; }
d9c45e9c 6183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1164c474 6184 $as_echo_n "(cached) " >&6
d9c45e9c
FM
6185else
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. */
6192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6194#define $ac_func innocuous_$ac_func
6195
6196/* System header to define __stub macros and hopefully few prototypes,
6197 which can conflict with char $ac_func (); below.
6198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199 <limits.h> exists even on freestanding compilers. */
6200
6201#ifdef __STDC__
6202# include <limits.h>
6203#else
6204# include <assert.h>
6205#endif
6206
6207#undef $ac_func
6208
6209/* Override any GCC internal prototype to avoid an error.
6210 Use char because int might match the return type of a GCC
6211 builtin and then its argument prototype would still apply. */
6212#ifdef __cplusplus
6213extern "C"
6214#endif
6215char $ac_func ();
6216/* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219#if defined __stub_$ac_func || defined __stub___$ac_func
6220choke me
6221#endif
6222
6223int
6224main ()
6225{
6226return $ac_func ();
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231rm -f conftest.$ac_objext conftest$ac_exeext
6232if { (ac_try="$ac_link"
6233case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
1164c474
FM
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
d9c45e9c
FM
6239 (eval "$ac_link") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
1164c474 6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9c45e9c
FM
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
1164c474
FM
6248 } && test -s conftest$ac_exeext && {
6249 test "$cross_compiling" = yes ||
6250 $as_test_x conftest$ac_exeext
6251 }; then
d9c45e9c
FM
6252 eval "$as_ac_var=yes"
6253else
1164c474 6254 $as_echo "$as_me: failed program was:" >&5
d9c45e9c
FM
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 eval "$as_ac_var=no"
6258fi
6259
1164c474 6260rm -rf conftest.dSYM
d9c45e9c
FM
6261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262 conftest$ac_exeext conftest.$ac_ext
6263fi
1164c474
FM
6264ac_res=`eval 'as_val=${'$as_ac_var'}
6265 $as_echo "$as_val"'`
6266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6267$as_echo "$ac_res" >&6; }
6268as_val=`eval 'as_val=${'$as_ac_var'}
6269 $as_echo "$as_val"'`
6270 if test "x$as_val" = x""yes; then
d9c45e9c 6271 cat >>confdefs.h <<_ACEOF
1164c474 6272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9c45e9c
FM
6273_ACEOF
6274
6275fi
6276done
6277
6278
0743911c
FM
6279# The cast to long int works around a bug in the HP C Compiler
6280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6282# This bug is HP SR number 8606223364.
1164c474
FM
6283{ $as_echo "$as_me:$LINENO: checking size of rlim_t" >&5
6284$as_echo_n "checking size of rlim_t... " >&6; }
32e71fa4 6285if test "${ac_cv_sizeof_rlim_t+set}" = set; then
1164c474 6286 $as_echo_n "(cached) " >&6
25697a35 6287else
d6e703cc
FM
6288 if test "$cross_compiling" = yes; then
6289 # Depending upon the size, compute the lo and hi bounds.
25697a35
GS
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
32e71fa4
FM
6296#if HAVE_SYS_RESOURCE_H
6297#include <sys/resource.h>
6298#endif
6299
6300
d6e703cc
FM
6301int
6302main ()
6303{
1164c474 6304static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= 0)];
d6e703cc
FM
6305test_array [0] = 0
6306
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
0743911c
FM
6312if { (ac_try="$ac_compile"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
1164c474
FM
6317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318$as_echo "$ac_try_echo") >&5
0743911c 6319 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
1164c474 6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6325 (exit $ac_status); } && {
6326 test -z "$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6328 } && test -s conftest.$ac_objext; then
d6e703cc
FM
6329 ac_lo=0 ac_mid=0
6330 while :; do
6331 cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h. */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h. */
32e71fa4
FM
6337#if HAVE_SYS_RESOURCE_H
6338#include <sys/resource.h>
6339#endif
6340
6341
25697a35
GS
6342int
6343main ()
6344{
1164c474 6345static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)];
d6e703cc
FM
6346test_array [0] = 0
6347
25697a35
GS
6348 ;
6349 return 0;
6350}
6351_ACEOF
d6e703cc 6352rm -f conftest.$ac_objext
0743911c
FM
6353if { (ac_try="$ac_compile"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
1164c474
FM
6358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359$as_echo "$ac_try_echo") >&5
0743911c 6360 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
1164c474 6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
d6e703cc 6370 ac_hi=$ac_mid; break
25697a35 6371else
1164c474 6372 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
0743911c
FM
6375 ac_lo=`expr $ac_mid + 1`
6376 if test $ac_lo -le $ac_mid; then
6377 ac_lo= ac_hi=
6378 break
6379 fi
6380 ac_mid=`expr 2 '*' $ac_mid + 1`
25697a35 6381fi
0743911c
FM
6382
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 6384 done
25697a35 6385else
1164c474 6386 $as_echo "$as_me: failed program was:" >&5
d6e703cc 6387sed 's/^/| /' conftest.$ac_ext >&5
25697a35 6388
0743911c 6389 cat >conftest.$ac_ext <<_ACEOF
25697a35
GS
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
32e71fa4
FM
6395#if HAVE_SYS_RESOURCE_H
6396#include <sys/resource.h>
6397#endif
6398
6399
25697a35
GS
6400int
6401main ()
6402{
1164c474 6403static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) < 0)];
d6e703cc 6404test_array [0] = 0
25697a35 6405
d6e703cc
FM
6406 ;
6407 return 0;
6408}
6409_ACEOF
6410rm -f conftest.$ac_objext
0743911c
FM
6411if { (ac_try="$ac_compile"
6412case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415esac
1164c474
FM
6416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6417$as_echo "$ac_try_echo") >&5
0743911c 6418 (eval "$ac_compile") 2>conftest.er1
d6e703cc
FM
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
1164c474 6423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest.$ac_objext; then
d6e703cc
FM
6428 ac_hi=-1 ac_mid=-1
6429 while :; do
6430 cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
32e71fa4
FM
6436#if HAVE_SYS_RESOURCE_H
6437#include <sys/resource.h>
6438#endif
6439
6440
d6e703cc
FM
6441int
6442main ()
6443{
1164c474 6444static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) >= $ac_mid)];
d6e703cc 6445test_array [0] = 0
25697a35
GS
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
6451rm -f conftest.$ac_objext
0743911c
FM
6452if { (ac_try="$ac_compile"
6453case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
1164c474
FM
6457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6458$as_echo "$ac_try_echo") >&5
0743911c 6459 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
1164c474 6464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
d6e703cc 6469 ac_lo=$ac_mid; break
25697a35 6470else
1164c474 6471 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
0743911c
FM
6474 ac_hi=`expr '(' $ac_mid ')' - 1`
6475 if test $ac_mid -le $ac_hi; then
6476 ac_lo= ac_hi=
6477 break
6478 fi
6479 ac_mid=`expr 2 '*' $ac_mid`
25697a35 6480fi
0743911c
FM
6481
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6483 done
6484else
1164c474 6485 $as_echo "$as_me: failed program was:" >&5
d6e703cc 6486sed 's/^/| /' conftest.$ac_ext >&5
25697a35 6487
0743911c 6488 ac_lo= ac_hi=
25697a35 6489fi
0743911c
FM
6490
6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc 6492fi
0743911c
FM
6493
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6495# Binary search between lo and hi bounds.
6496while test "x$ac_lo" != "x$ac_hi"; do
6497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25697a35
GS
6498 cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
32e71fa4
FM
6504#if HAVE_SYS_RESOURCE_H
6505#include <sys/resource.h>
6506#endif
6507
6508
25697a35
GS
6509int
6510main ()
6511{
1164c474 6512static int test_array [1 - 2 * !(((long int) (sizeof (rlim_t))) <= $ac_mid)];
d6e703cc
FM
6513test_array [0] = 0
6514
25697a35
GS
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext
0743911c
FM
6520if { (ac_try="$ac_compile"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
1164c474
FM
6525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6526$as_echo "$ac_try_echo") >&5
0743911c 6527 (eval "$ac_compile") 2>conftest.er1
25697a35
GS
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
1164c474 6532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
0743911c
FM
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest.$ac_objext; then
d6e703cc 6537 ac_hi=$ac_mid
25697a35 6538else
1164c474 6539 $as_echo "$as_me: failed program was:" >&5
25697a35
GS
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
0743911c 6542 ac_lo=`expr '(' $ac_mid ')' + 1`
25697a35 6543fi
0743911c
FM
6544
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6546done
6547case $ac_lo in
32e71fa4
FM
6548?*) ac_cv_sizeof_rlim_t=$ac_lo;;
6549'') if test "$ac_cv_type_rlim_t" = yes; then
1164c474
FM
6550 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6552{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
d6e703cc 6553See \`config.log' for more details." >&5
1164c474 6554$as_echo "$as_me: error: cannot compute sizeof (rlim_t)
d6e703cc 6555See \`config.log' for more details." >&2;}
1164c474 6556 { (exit 77); exit 77; }; }; }
0743911c 6557 else
32e71fa4 6558 ac_cv_sizeof_rlim_t=0
0743911c 6559 fi ;;
d6e703cc 6560esac
d6e703cc
FM
6561else
6562 cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h. */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h. */
32e71fa4
FM
6568#if HAVE_SYS_RESOURCE_H
6569#include <sys/resource.h>
6570#endif
6571
6572
1164c474
FM
6573static long int longval () { return (long int) (sizeof (rlim_t)); }
6574static unsigned long int ulongval () { return (long int) (sizeof (rlim_t)); }
d6e703cc
FM
6575#include <stdio.h>
6576#include <stdlib.h>
6577int
6578main ()
6579{
6580
6581 FILE *f = fopen ("conftest.val", "w");
6582 if (! f)
0743911c 6583 return 1;
1164c474 6584 if (((long int) (sizeof (rlim_t))) < 0)
d6e703cc 6585 {
0743911c 6586 long int i = longval ();
1164c474 6587 if (i != ((long int) (sizeof (rlim_t))))
0743911c 6588 return 1;
1164c474 6589 fprintf (f, "%ld", i);
d6e703cc
FM
6590 }
6591 else
6592 {
0743911c 6593 unsigned long int i = ulongval ();
1164c474 6594 if (i != ((long int) (sizeof (rlim_t))))
0743911c 6595 return 1;
1164c474 6596 fprintf (f, "%lu", i);
d6e703cc 6597 }
1164c474
FM
6598 /* Do not output a trailing newline, as this causes \r\n confusion
6599 on some platforms. */
0743911c 6600 return ferror (f) || fclose (f) != 0;
d6e703cc
FM
6601
6602 ;
6603 return 0;
6604}
6605_ACEOF
6606rm -f conftest$ac_exeext
0743911c
FM
6607if { (ac_try="$ac_link"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
1164c474
FM
6612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613$as_echo "$ac_try_echo") >&5
0743911c 6614 (eval "$ac_link") 2>&5
d6e703cc 6615 ac_status=$?
1164c474 6616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6e703cc 6617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0743911c
FM
6618 { (case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621esac
1164c474
FM
6622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623$as_echo "$ac_try_echo") >&5
0743911c 6624 (eval "$ac_try") 2>&5
d6e703cc 6625 ac_status=$?
1164c474 6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6e703cc 6627 (exit $ac_status); }; }; then
32e71fa4 6628 ac_cv_sizeof_rlim_t=`cat conftest.val`
d6e703cc 6629else
1164c474
FM
6630 $as_echo "$as_me: program exited with status $ac_status" >&5
6631$as_echo "$as_me: failed program was:" >&5
d6e703cc
FM
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634( exit $ac_status )
32e71fa4 6635if test "$ac_cv_type_rlim_t" = yes; then
1164c474
FM
6636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6638{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t)
d6e703cc 6639See \`config.log' for more details." >&5
1164c474 6640$as_echo "$as_me: error: cannot compute sizeof (rlim_t)
d6e703cc 6641See \`config.log' for more details." >&2;}
1164c474 6642 { (exit 77); exit 77; }; }; }
0743911c 6643 else
32e71fa4 6644 ac_cv_sizeof_rlim_t=0
0743911c 6645 fi
d6e703cc 6646fi
1164c474 6647rm -rf conftest.dSYM
0743911c 6648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d6e703cc
FM
6649fi
6650rm -f conftest.val
d6e703cc 6651fi
1164c474
FM
6652{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
6653$as_echo "$ac_cv_sizeof_rlim_t" >&6; }
0743911c
FM
6654
6655
6656
d6e703cc 6657cat >>confdefs.h <<_ACEOF
32e71fa4 6658#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
d6e703cc
FM
6659_ACEOF
6660
6661
32e71fa4 6662if test $ac_cv_sizeof_rlim_t = "4"; then
25697a35
GS
6663
6664cat >>confdefs.h <<\_ACEOF
32e71fa4 6665#define RLIM_STRING "%d"
25697a35
GS
6666_ACEOF
6667
32e71fa4 6668elif test $ac_cv_sizeof_rlim_t = "8"; then
d6e703cc
FM
6669
6670cat >>confdefs.h <<\_ACEOF
32e71fa4 6671#define RLIM_STRING "%lli"
d6e703cc 6672_ACEOF
25697a35 6673
d6e703cc 6674else
1164c474
FM
6675 { $as_echo "$as_me:$LINENO: WARNING: can not detect the size of your system\'s rlim_t type" >&5
6676$as_echo "$as_me: WARNING: can not detect the size of your system\'s rlim_t type" >&2;}
d6e703cc 6677fi
25697a35 6678
7bbc1de4
FM
6679# Check whether --enable-sargphp was given.
6680if test "${enable_sargphp+set}" = set; then
6681 enableval=$enable_sargphp;
6682 if test "$enableval" -a "x$enableval" != "xno" ; then
6683 SARGPHPDIR=$enableval
25697a35
GS
6684 fi
6685
6686else
af15cfa2 6687 SARGPHPDIR="/var/www/html"
0743911c
FM
6688fi
6689
7bbc1de4
FM
6690if test "$SARGPHPDIR" ; then
6691 echo "using $SARGPHPDIR as the directory to install sarg-php"
25697a35 6692
7bbc1de4 6693fi
25697a35 6694
b3695c67
FM
6695# Check whether --enable-languagedir was given.
6696if test "${enable_languagedir+set}" = set; then
6697 enableval=$enable_languagedir;
6698 if test "$enableval"; then
6699 LANGDIR=$enableval
6700 fi
6701
6702else
6703 LANGDIR="${datarootdir}/sarg/languages"
6704fi
6705
6706echo "using $LANGDIR as the directory of the translations"
6707
6708
6709# Check whether --enable-fontdir was given.
6710if test "${enable_fontdir+set}" = set; then
6711 enableval=$enable_fontdir;
6712 if test "$enableval"; then
6713 FONTDIR=$enableval
6714 fi
6715
6716else
6717 FONTDIR="${datarootdir}/sarg/fonts"
6718fi
6719
6720echo "using $FONTDIR as the directory of the fonts"
6721
6722
6723# Check whether --enable-imagedir was given.
6724if test "${enable_imagedir+set}" = set; then
6725 enableval=$enable_imagedir;
6726 if test "$enableval"; then
6727 IMAGEDIR=$enableval
6728 fi
6729
6730else
6731 IMAGEDIR="${datarootdir}/sarg/images"
6732fi
6733
6734echo "using $IMAGEDIR as the directory of the images"
6735
6736
05b90947
FM
6737# Check whether --enable-extraprotection was given.
6738if test "${enable_extraprotection+set}" = set; then
6739 enableval=$enable_extraprotection;
6740 if test "$enableval"; then
a61fe05c
FM
6741 CFLAGS="${CFLAGS} -fstack-protector -D_FORTIFY_SOURCE=2"
6742 if test "x$werror_status" != "xfail" ; then
6743 CFLAGS="${CFLAGS} -Werror"
6744 fi
dcb54d06 6745
1164c474
FM
6746 { $as_echo "$as_me:$LINENO: checking for format security flag in gcc" >&5
6747$as_echo_n "checking for format security flag in gcc... " >&6; }
dcb54d06 6748 saved_CFLAGS="${CFLAGS}"
d9c45e9c 6749 CFLAGS="${CFLAGS} -Wformat -Werror=format-security"
dcb54d06
FM
6750 cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h. */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h. */
6756
6757_ACEOF
6758rm -f conftest.$ac_objext
6759if { (ac_try="$ac_compile"
6760case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763esac
1164c474
FM
6764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6765$as_echo "$ac_try_echo") >&5
dcb54d06
FM
6766 (eval "$ac_compile") 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
1164c474 6771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dcb54d06
FM
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
6774 test ! -s conftest.err
6775 } && test -s conftest.$ac_objext; then
6776 have_format_security="yes"
6777else
1164c474 6778 $as_echo "$as_me: failed program was:" >&5
dcb54d06
FM
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 have_format_security="no"
6782fi
6783
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1164c474
FM
6785 { $as_echo "$as_me:$LINENO: result: $have_format_security" >&5
6786$as_echo "$have_format_security" >&6; }
dcb54d06
FM
6787 if test "$have_format_security" == "no" ; then
6788 CFLAGS="${saved_CFLAGS}"
6789 fi
05b90947
FM
6790 fi
6791
05b90947
FM
6792fi
6793
05b90947 6794
0743911c
FM
6795ac_config_files="$ac_config_files Makefile"
6796
25697a35
GS
6797cat >confcache <<\_ACEOF
6798# This file is a shell script that caches the results of configure
6799# tests run on this system so they can be shared between configure
6800# scripts and configure runs, see configure's option --config-cache.
6801# It is not useful on other systems. If it contains results you don't
6802# want to keep, you may remove or edit it.
6803#
6804# config.status only pays attention to the cache file if you give it
6805# the --recheck option to rerun configure.
6806#
6807# `ac_cv_env_foo' variables (set or unset) will be overridden when
6808# loading this file, other *unset* `ac_cv_foo' will be assigned the
6809# following values.
6810
6811_ACEOF
6812
6813# The following way of writing the cache mishandles newlines in values,
6814# but we know of no workaround that is simple, portable, and efficient.
0743911c 6815# So, we kill variables containing newlines.
25697a35
GS
6816# Ultrix sh set writes to stderr and can't be redirected directly,
6817# and sets the high bit in the cache file unless we assign to the vars.
0743911c
FM
6818(
6819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6820 eval ac_val=\$$ac_var
6821 case $ac_val in #(
6822 *${as_nl}*)
6823 case $ac_var in #(
1164c474
FM
6824 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6825$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
0743911c
FM
6826 esac
6827 case $ac_var in #(
6828 _ | IFS | as_nl) ;; #(
1164c474 6829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0743911c
FM
6830 *) $as_unset $ac_var ;;
6831 esac ;;
6832 esac
6833 done
6834
6835 (set) 2>&1 |
6836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6837 *${as_nl}ac_space=\ *)
6838 # `set' does not quote correctly, so add quotes (double-quote
6839 # substitution turns \\\\ into \\, and sed turns \\ into \).
25697a35
GS
6840 sed -n \
6841 "s/'/'\\\\''/g;
6842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
0743911c 6843 ;; #(
25697a35
GS
6844 *)
6845 # `set' quotes correctly as required by POSIX, so do not add quotes.
0743911c 6846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25697a35 6847 ;;
0743911c
FM
6848 esac |
6849 sort
6850) |
25697a35 6851 sed '
0743911c 6852 /^ac_cv_env_/b end
25697a35 6853 t clear
0743911c 6854 :clear
25697a35
GS
6855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6856 t end
0743911c
FM
6857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6858 :end' >>confcache
6859if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6860 if test -w "$cache_file"; then
6861 test "x$cache_file" != "x/dev/null" &&
1164c474
FM
6862 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6863$as_echo "$as_me: updating cache $cache_file" >&6;}
25697a35
GS
6864 cat confcache >$cache_file
6865 else
1164c474
FM
6866 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6867$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25697a35
GS
6868 fi
6869fi
6870rm -f confcache
6871
6872test "x$prefix" = xNONE && prefix=$ac_default_prefix
6873# Let make expand exec_prefix.
6874test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6875
25697a35
GS
6876# Transform confdefs.h into DEFS.
6877# Protect against shell expansion while executing Makefile rules.
6878# Protect against Makefile macro expansion.
6879#
6880# If the first sed substitution is executed (which looks for macros that
0743911c 6881# take arguments), then branch to the quote section. Otherwise,
25697a35 6882# look for a macro that doesn't take arguments.
0743911c 6883ac_script='
1164c474
FM
6884:mline
6885/\\$/{
6886 N
6887 s,\\\n,,
6888 b mline
6889}
25697a35 6890t clear
0743911c
FM
6891:clear
6892s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
25697a35 6893t quote
0743911c 6894s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
25697a35 6895t quote
0743911c
FM
6896b any
6897:quote
6898s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6899s/\[/\\&/g
6900s/\]/\\&/g
6901s/\$/$$/g
6902H
6903:any
6904${
6905 g
6906 s/^\n//
6907 s/\n/ /g
6908 p
6909}
6910'
6911DEFS=`sed -n "$ac_script" confdefs.h`
25697a35
GS
6912
6913
6914ac_libobjs=
6915ac_ltlibobjs=
6916for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6917 # 1. Remove the extension, and $U if already installed.
0743911c 6918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1164c474 6919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
0743911c
FM
6920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6921 # will be set to the directory where LIBOBJS objects are built.
6922 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6923 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25697a35
GS
6924done
6925LIBOBJS=$ac_libobjs
6926
6927LTLIBOBJS=$ac_ltlibobjs
6928
6929
6930
6931: ${CONFIG_STATUS=./config.status}
1164c474 6932ac_write_fail=0
25697a35
GS
6933ac_clean_files_save=$ac_clean_files
6934ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1164c474
FM
6935{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6936$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6937cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697a35
GS
6938#! $SHELL
6939# Generated by $as_me.
6940# Run this file to recreate the current configuration.
6941# Compiler output produced by configure, useful for debugging
6942# configure, is in config.log if it exists.
6943
6944debug=false
6945ac_cs_recheck=false
6946ac_cs_silent=false
6947SHELL=\${CONFIG_SHELL-$SHELL}
6948_ACEOF
6949
1164c474 6950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25697a35
GS
6951## --------------------- ##
6952## M4sh Initialization. ##
6953## --------------------- ##
6954
0743911c
FM
6955# Be more Bourne compatible
6956DUALCASE=1; export DUALCASE # for MKS sh
25697a35
GS
6957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6958 emulate sh
6959 NULLCMD=:
1164c474 6960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25697a35
GS
6961 # is contrary to our usage. Disable this feature.
6962 alias -g '${1+"$@"}'='"$@"'
0743911c
FM
6963 setopt NO_GLOB_SUBST
6964else
6965 case `(set -o) 2>/dev/null` in
6966 *posix*) set -o posix ;;
6967esac
6968
6969fi
6970
6971
6972
6973
6974# PATH needs CR
6975# Avoid depending upon Character Ranges.
6976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6979as_cr_digits='0123456789'
6980as_cr_alnum=$as_cr_Letters$as_cr_digits
6981
1164c474
FM
6982as_nl='
6983'
6984export as_nl
6985# Printing a long string crashes Solaris 7 /usr/bin/printf.
6986as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6987as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6988as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6989if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6990 as_echo='printf %s\n'
6991 as_echo_n='printf %s'
6992else
6993 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6994 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6995 as_echo_n='/usr/ucb/echo -n'
f8ed23e3 6996 else
1164c474
FM
6997 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6998 as_echo_n_body='eval
6999 arg=$1;
7000 case $arg in
7001 *"$as_nl"*)
7002 expr "X$arg" : "X\\(.*\\)$as_nl";
7003 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7004 esac;
7005 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7006 '
7007 export as_echo_n_body
7008 as_echo_n='sh -c $as_echo_n_body as_echo'
f8ed23e3 7009 fi
1164c474
FM
7010 export as_echo_body
7011 as_echo='sh -c $as_echo_body as_echo'
7012fi
7013
7014# The user is always right.
7015if test "${PATH_SEPARATOR+set}" != set; then
7016 PATH_SEPARATOR=:
7017 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7018 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7019 PATH_SEPARATOR=';'
7020 }
25697a35 7021fi
25697a35
GS
7022
7023# Support unset when possible.
7024if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7025 as_unset=unset
7026else
7027 as_unset=false
7028fi
7029
7030
0743911c
FM
7031# IFS
7032# We need space, tab and new line, in precisely that order. Quoting is
7033# there to prevent editors from complaining about space-tab.
7034# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7035# splitting by setting IFS to empty value.)
0743911c
FM
7036IFS=" "" $as_nl"
7037
7038# Find who we are. Look in the path if we contain no directory separator.
7039case $0 in
7040 *[\\/]* ) as_myself=$0 ;;
7041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7047done
7048IFS=$as_save_IFS
7049
7050 ;;
7051esac
7052# We did not find ourselves, most probably we were run as `sh COMMAND'
7053# in which case we are not to be found in the path.
7054if test "x$as_myself" = x; then
7055 as_myself=$0
7056fi
7057if test ! -f "$as_myself"; then
1164c474 7058 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0743911c
FM
7059 { (exit 1); exit 1; }
7060fi
7061
25697a35 7062# Work around bugs in pre-3.0 UWIN ksh.
0743911c
FM
7063for as_var in ENV MAIL MAILPATH
7064do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7065done
25697a35
GS
7066PS1='$ '
7067PS2='> '
7068PS4='+ '
7069
7070# NLS nuisances.
1164c474
FM
7071LC_ALL=C
7072export LC_ALL
7073LANGUAGE=C
7074export LANGUAGE
25697a35
GS
7075
7076# Required to use basename.
0743911c
FM
7077if expr a : '\(a\)' >/dev/null 2>&1 &&
7078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
7079 as_expr=expr
7080else
7081 as_expr=false
7082fi
7083
0743911c 7084if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25697a35
GS
7085 as_basename=basename
7086else
7087 as_basename=false
7088fi
7089
7090
7091# Name of the executable.
0743911c 7092as_me=`$as_basename -- "$0" ||
25697a35
GS
7093$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7094 X"$0" : 'X\(//\)$' \| \
0743911c 7095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1164c474 7096$as_echo X/"$0" |
0743911c
FM
7097 sed '/^.*\/\([^/][^/]*\)\/*$/{
7098 s//\1/
7099 q
7100 }
7101 /^X\/\(\/\/\)$/{
7102 s//\1/
7103 q
7104 }
7105 /^X\/\(\/\).*/{
7106 s//\1/
7107 q
7108 }
7109 s/.*/./; q'`
25697a35 7110
0743911c
FM
7111# CDPATH.
7112$as_unset CDPATH
25697a35 7113
25697a35
GS
7114
7115
7116 as_lineno_1=$LINENO
7117 as_lineno_2=$LINENO
25697a35 7118 test "x$as_lineno_1" != "x$as_lineno_2" &&
0743911c 7119 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25697a35
GS
7120
7121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7122 # uniformly replaced by the line number. The first 'sed' inserts a
0743911c
FM
7123 # line-number line after each line using $LINENO; the second 'sed'
7124 # does the real work. The second script uses 'N' to pair each
7125 # line-number line with the line containing $LINENO, and appends
7126 # trailing '-' during substitution so that $LINENO is not a special
7127 # case at line end.
25697a35 7128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
0743911c
FM
7129 # scripts with optimization help from Paolo Bonzini. Blame Lee
7130 # E. McMahon (1931-1989) for sed's syntax. :-)
7131 sed -n '
7132 p
7133 /[$]LINENO/=
7134 ' <$as_myself |
25697a35 7135 sed '
0743911c
FM
7136 s/[$]LINENO.*/&-/
7137 t lineno
7138 b
7139 :lineno
25697a35 7140 N
0743911c
FM
7141 :loop
7142 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25697a35 7143 t loop
0743911c 7144 s/-\n.*//
25697a35 7145 ' >$as_me.lineno &&
0743911c 7146 chmod +x "$as_me.lineno" ||
1164c474 7147 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25697a35
GS
7148 { (exit 1); exit 1; }; }
7149
7150 # Don't try to exec as it changes $[0], causing all sort of problems
7151 # (the dirname of $[0] is not the place where we might find the
0743911c
FM
7152 # original and so on. Autoconf is especially sensitive to this).
7153 . "./$as_me.lineno"
25697a35
GS
7154 # Exit status is that of the last command.
7155 exit
7156}
7157
7158
0743911c
FM
7159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7160 as_dirname=dirname
7161else
7162 as_dirname=false
7163fi
7164
7165ECHO_C= ECHO_N= ECHO_T=
7166case `echo -n x` in
7167-n*)
7168 case `echo 'x\c'` in
7169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7170 *) ECHO_C='\c';;
7171 esac;;
7172*)
7173 ECHO_N='-n';;
25697a35 7174esac
0743911c
FM
7175if expr a : '\(a\)' >/dev/null 2>&1 &&
7176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25697a35
GS
7177 as_expr=expr
7178else
7179 as_expr=false
7180fi
7181
7182rm -f conf$$ conf$$.exe conf$$.file
0743911c
FM
7183if test -d conf$$.dir; then
7184 rm -f conf$$.dir/conf$$.file
7185else
7186 rm -f conf$$.dir
1164c474
FM
7187 mkdir conf$$.dir 2>/dev/null
7188fi
7189if (echo >conf$$.file) 2>/dev/null; then
7190 if ln -s conf$$.file conf$$ 2>/dev/null; then
7191 as_ln_s='ln -s'
7192 # ... but there are two gotchas:
7193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7195 # In both cases, we have to default to `cp -p'.
7196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7197 as_ln_s='cp -p'
7198 elif ln conf$$.file conf$$ 2>/dev/null; then
7199 as_ln_s=ln
7200 else
25697a35 7201 as_ln_s='cp -p'
1164c474 7202 fi
25697a35
GS
7203else
7204 as_ln_s='cp -p'
7205fi
0743911c
FM
7206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7207rmdir conf$$.dir 2>/dev/null
25697a35
GS
7208
7209if mkdir -p . 2>/dev/null; then
7210 as_mkdir_p=:
7211else
7212 test -d ./-p && rmdir ./-p
7213 as_mkdir_p=false
7214fi
7215
0743911c
FM
7216if test -x / >/dev/null 2>&1; then
7217 as_test_x='test -x'
7218else
7219 if ls -dL / >/dev/null 2>&1; then
7220 as_ls_L_option=L
7221 else
7222 as_ls_L_option=
7223 fi
7224 as_test_x='
7225 eval sh -c '\''
7226 if test -d "$1"; then
1164c474 7227 test -d "$1/.";
0743911c
FM
7228 else
7229 case $1 in
1164c474 7230 -*)set "./$1";;
0743911c
FM
7231 esac;
7232 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7233 ???[sx]*):;;*)false;;esac;fi
7234 '\'' sh
7235 '
7236fi
7237as_executable_p=$as_test_x
25697a35
GS
7238
7239# Sed expression to map a string onto a valid CPP name.
7240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7241
7242# Sed expression to map a string onto a valid variable name.
7243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7244
7245
25697a35
GS
7246exec 6>&1
7247
0743911c 7248# Save the log message, to keep $[0] and so on meaningful, and to
25697a35 7249# report actual input values of CONFIG_FILES etc. instead of their
0743911c
FM
7250# values after options handling.
7251ac_log="
c814928f 7252This file was extended by sarg $as_me 2.2.7, which was
1164c474 7253generated by GNU Autoconf 2.63. Invocation command line was
25697a35
GS
7254
7255 CONFIG_FILES = $CONFIG_FILES
7256 CONFIG_HEADERS = $CONFIG_HEADERS
7257 CONFIG_LINKS = $CONFIG_LINKS
7258 CONFIG_COMMANDS = $CONFIG_COMMANDS
7259 $ $0 $@
7260
0743911c
FM
7261on `(hostname || uname -n) 2>/dev/null | sed 1q`
7262"
7263
25697a35
GS
7264_ACEOF
7265
1164c474
FM
7266case $ac_config_files in *"
7267"*) set x $ac_config_files; shift; ac_config_files=$*;;
7268esac
7269
7270
7271
7272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697a35 7273# Files that config.status was made for.
0743911c 7274config_files="$ac_config_files"
25697a35 7275
0743911c 7276_ACEOF
25697a35 7277
1164c474 7278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25697a35
GS
7279ac_cs_usage="\
7280\`$as_me' instantiates files from templates according to the
7281current configuration.
7282
1164c474 7283Usage: $0 [OPTION]... [FILE]...
25697a35
GS
7284
7285 -h, --help print this help, then exit
0743911c 7286 -V, --version print version number and configuration settings, then exit
1164c474
FM
7287 -q, --quiet, --silent
7288 do not print progress messages
25697a35
GS
7289 -d, --debug don't remove temporary files
7290 --recheck update $as_me by reconfiguring in the same conditions
1164c474
FM
7291 --file=FILE[:TEMPLATE]
7292 instantiate the configuration file FILE
25697a35
GS
7293
7294Configuration files:
7295$config_files
7296
7297Report bugs to <bug-autoconf@gnu.org>."
25697a35 7298
0743911c 7299_ACEOF
1164c474 7300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697a35 7301ac_cs_version="\\
c814928f 7302sarg config.status 2.2.7
1164c474
FM
7303configured by $0, generated by GNU Autoconf 2.63,
7304 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25697a35 7305
1164c474 7306Copyright (C) 2008 Free Software Foundation, Inc.
25697a35
GS
7307This config.status script is free software; the Free Software Foundation
7308gives unlimited permission to copy, distribute and modify it."
0743911c
FM
7309
7310ac_pwd='$ac_pwd'
7311srcdir='$srcdir'
1164c474 7312test -n "\$AWK" || AWK=awk
25697a35
GS
7313_ACEOF
7314
1164c474
FM
7315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7316# The default lists apply if the user does not specify any file.
25697a35
GS
7317ac_need_defaults=:
7318while test $# != 0
7319do
7320 case $1 in
7321 --*=*)
0743911c
FM
7322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25697a35
GS
7324 ac_shift=:
7325 ;;
0743911c 7326 *)
25697a35
GS
7327 ac_option=$1
7328 ac_optarg=$2
7329 ac_shift=shift
7330 ;;
25697a35
GS
7331 esac
7332
7333 case $ac_option in
7334 # Handling of the options.
25697a35
GS
7335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7336 ac_cs_recheck=: ;;
0743911c 7337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1164c474 7338 $as_echo "$ac_cs_version"; exit ;;
0743911c 7339 --debug | --debu | --deb | --de | --d | -d )
25697a35
GS
7340 debug=: ;;
7341 --file | --fil | --fi | --f )
7342 $ac_shift
1164c474
FM
7343 case $ac_optarg in
7344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7345 esac
7346 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25697a35 7347 ac_need_defaults=false;;
0743911c 7348 --he | --h | --help | --hel | -h )
1164c474 7349 $as_echo "$ac_cs_usage"; exit ;;
25697a35
GS
7350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7352 ac_cs_silent=: ;;
7353
7354 # This is an error.
1164c474 7355 -*) { $as_echo "$as_me: error: unrecognized option: $1
0743911c 7356Try \`$0 --help' for more information." >&2
25697a35
GS
7357 { (exit 1); exit 1; }; } ;;
7358
0743911c
FM
7359 *) ac_config_targets="$ac_config_targets $1"
7360 ac_need_defaults=false ;;
25697a35
GS
7361
7362 esac
7363 shift
7364done
7365
7366ac_configure_extra_args=
7367
7368if $ac_cs_silent; then
7369 exec 6>/dev/null
7370 ac_configure_extra_args="$ac_configure_extra_args --silent"
7371fi
7372
7373_ACEOF
1164c474 7374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25697a35 7375if \$ac_cs_recheck; then
1164c474
FM
7376 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7377 shift
7378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7379 CONFIG_SHELL='$SHELL'
0743911c 7380 export CONFIG_SHELL
1164c474 7381 exec "\$@"
25697a35
GS
7382fi
7383
7384_ACEOF
1164c474 7385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0743911c
FM
7386exec 5>>config.log
7387{
7388 echo
7389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7390## Running $as_me. ##
7391_ASBOX
1164c474 7392 $as_echo "$ac_log"
0743911c 7393} >&5
25697a35 7394
0743911c 7395_ACEOF
1164c474 7396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0743911c 7397_ACEOF
25697a35 7398
1164c474 7399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0743911c
FM
7400
7401# Handling of arguments.
25697a35
GS
7402for ac_config_target in $ac_config_targets
7403do
0743911c
FM
7404 case $ac_config_target in
7405 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7406
1164c474
FM
7407 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7408$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25697a35
GS
7409 { (exit 1); exit 1; }; };;
7410 esac
7411done
7412
0743911c 7413
25697a35
GS
7414# If the user did not use the arguments to specify the items to instantiate,
7415# then the envvar interface is used. Set only those that are not.
7416# We use the long form for the default assignment because of an extremely
7417# bizarre bug on SunOS 4.1.3.
7418if $ac_need_defaults; then
7419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7420fi
7421
7422# Have a temporary directory for convenience. Make it in the build tree
0743911c 7423# simply because there is no reason against having it here, and in addition,
25697a35 7424# creating and moving files from /tmp can sometimes cause problems.
0743911c
FM
7425# Hook for its removal unless debugging.
7426# Note that there is a small window in which the directory will not be cleaned:
7427# after its creation but before its name has been assigned to `$tmp'.
25697a35
GS
7428$debug ||
7429{
0743911c
FM
7430 tmp=
7431 trap 'exit_status=$?
7432 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7433' 0
25697a35
GS
7434 trap '{ (exit 1); exit 1; }' 1 2 13 15
7435}
25697a35
GS
7436# Create a (secure) tmp directory for tmp files.
7437
7438{
0743911c 7439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25697a35
GS
7440 test -n "$tmp" && test -d "$tmp"
7441} ||
7442{
0743911c
FM
7443 tmp=./conf$$-$RANDOM
7444 (umask 077 && mkdir "$tmp")
25697a35
GS
7445} ||
7446{
1164c474 7447 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25697a35
GS
7448 { (exit 1); exit 1; }
7449}
7450
1164c474
FM
7451# Set up the scripts for CONFIG_FILES section.
7452# No need to generate them if there are no CONFIG_FILES.
7453# This happens for instance with `./config.status config.h'.
f8ed23e3 7454if test -n "$CONFIG_FILES"; then
a61fe05c 7455
a7ca233d 7456
1164c474
FM
7457ac_cr='\r'
7458ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7459if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7460 ac_cs_awk_cr='\\r'
7461else
7462 ac_cs_awk_cr=$ac_cr
7463fi
7464
7465echo 'BEGIN {' >"$tmp/subs1.awk" &&
7466_ACEOF
c4dd8d9c 7467
f8ed23e3 7468
1164c474
FM
7469{
7470 echo "cat >conf$$subs.awk <<_ACEOF" &&
7471 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7472 echo "_ACEOF"
7473} >conf$$subs.sh ||
7474 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7475$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7476 { (exit 1); exit 1; }; }
7477ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
0743911c
FM
7478ac_delim='%!_!# '
7479for ac_last_try in false false false false false :; do
1164c474
FM
7480 . ./conf$$subs.sh ||
7481 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7482$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7483 { (exit 1); exit 1; }; }
7484
7485 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7486 if test $ac_delim_n = $ac_delim_num; then
0743911c
FM
7487 break
7488 elif $ac_last_try; then
1164c474
FM
7489 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7490$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
0743911c
FM
7491 { (exit 1); exit 1; }; }
7492 else
7493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25697a35 7494 fi
0743911c 7495done
1164c474
FM
7496rm -f conf$$subs.sh
7497
7498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7499cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7500_ACEOF
7501sed -n '
7502h
7503s/^/S["/; s/!.*/"]=/
7504p
7505g
7506s/^[^!]*!//
7507:repl
7508t repl
7509s/'"$ac_delim"'$//
7510t delim
7511:nl
7512h
7513s/\(.\{148\}\).*/\1/
7514t more1
7515s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7516p
7517n
7518b repl
7519:more1
7520s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7521p
7522g
7523s/.\{148\}//
7524t nl
7525:delim
7526h
7527s/\(.\{148\}\).*/\1/
7528t more2
7529s/["\\]/\\&/g; s/^/"/; s/$/"/
7530p
7531b
7532:more2
7533s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7534p
7535g
7536s/.\{148\}//
7537t delim
7538' <conf$$subs.awk | sed '
7539/^[^""]/{
7540 N
7541 s/\n//
7542}
7543' >>$CONFIG_STATUS || ac_write_fail=1
7544rm -f conf$$subs.awk
7545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7546_ACAWK
7547cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7548 for (key in S) S_is_set[key] = 1
7549 FS = "\a"
9a2c5753 7550
1164c474
FM
7551}
7552{
7553 line = $ 0
7554 nfields = split(line, field, "@")
7555 substed = 0
7556 len = length(field[1])
7557 for (i = 2; i < nfields; i++) {
7558 key = field[i]
7559 keylen = length(key)
7560 if (S_is_set[key]) {
7561 value = S[key]
7562 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7563 len += length(value) + length(field[++i])
7564 substed = 1
7565 } else
7566 len += 1 + keylen
7567 }
7568
7569 print line
7570}
e6414a9d 7571
1164c474 7572_ACAWK
0743911c 7573_ACEOF
1164c474
FM
7574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7575if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7576 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7577else
7578 cat
7579fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7580 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7581$as_echo "$as_me: error: could not setup config files machinery" >&2;}
7582 { (exit 1); exit 1; }; }
25697a35 7583_ACEOF
0743911c 7584
0743911c
FM
7585# VPATH may cause trouble with some makes, so we remove $(srcdir),
7586# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7587# trailing colons and then remove the whole line if VPATH becomes empty
7588# (actually we leave an empty line to preserve line numbers).
7589if test "x$srcdir" = x.; then
7590 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7591s/:*\$(srcdir):*/:/
7592s/:*\${srcdir}:*/:/
7593s/:*@srcdir@:*/:/
7594s/^\([^=]*=[ ]*\):*/\1/
7595s/:*$//
7596s/^[^=]*=[ ]*$//
7597}'
7598fi
7599
1164c474 7600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0743911c
FM
7601fi # test -n "$CONFIG_FILES"
7602
7603
1164c474
FM
7604eval set X " :F $CONFIG_FILES "
7605shift
7606for ac_tag
0743911c
FM
7607do
7608 case $ac_tag in
7609 :[FHLC]) ac_mode=$ac_tag; continue;;
7610 esac
7611 case $ac_mode$ac_tag in
7612 :[FHL]*:*);;
1164c474
FM
7613 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7614$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
0743911c
FM
7615 { (exit 1); exit 1; }; };;
7616 :[FH]-) ac_tag=-:-;;
7617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25697a35 7618 esac
0743911c
FM
7619 ac_save_IFS=$IFS
7620 IFS=:
7621 set x $ac_tag
7622 IFS=$ac_save_IFS
7623 shift
7624 ac_file=$1
7625 shift
25697a35 7626
0743911c
FM
7627 case $ac_mode in
7628 :L) ac_source=$1;;
7629 :[FH])
7630 ac_file_inputs=
7631 for ac_f
7632 do
7633 case $ac_f in
7634 -) ac_f="$tmp/stdin";;
7635 *) # Look for the file first in the build tree, then in the source tree
7636 # (if the path is not absolute). The absolute path cannot be DOS-style,
7637 # because $ac_f cannot contain `:'.
7638 test -f "$ac_f" ||
7639 case $ac_f in
7640 [\\/$]*) false;;
7641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7642 esac ||
1164c474
FM
7643 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7644$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
0743911c
FM
7645 { (exit 1); exit 1; }; };;
7646 esac
1164c474
FM
7647 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7648 ac_file_inputs="$ac_file_inputs '$ac_f'"
0743911c
FM
7649 done
7650
7651 # Let's still pretend it is `configure' which instantiates (i.e., don't
7652 # use $as_me), people would be surprised to read:
7653 # /* config.h. Generated by config.status. */
1164c474
FM
7654 configure_input='Generated from '`
7655 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7656 `' by configure.'
0743911c
FM
7657 if test x"$ac_file" != x-; then
7658 configure_input="$ac_file. $configure_input"
1164c474
FM
7659 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7660$as_echo "$as_me: creating $ac_file" >&6;}
0743911c 7661 fi
1164c474
FM
7662 # Neutralize special characters interpreted by sed in replacement strings.
7663 case $configure_input in #(
7664 *\&* | *\|* | *\\* )
7665 ac_sed_conf_input=`$as_echo "$configure_input" |
7666 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7667 *) ac_sed_conf_input=$configure_input;;
7668 esac
0743911c
FM
7669
7670 case $ac_tag in
1164c474
FM
7671 *:-:* | *:-) cat >"$tmp/stdin" \
7672 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7673$as_echo "$as_me: error: could not create $ac_file" >&2;}
7674 { (exit 1); exit 1; }; } ;;
0743911c
FM
7675 esac
7676 ;;
7677 esac
7678
7679 ac_dir=`$as_dirname -- "$ac_file" ||
25697a35
GS
7680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7681 X"$ac_file" : 'X\(//\)[^/]' \| \
7682 X"$ac_file" : 'X\(//\)$' \| \
0743911c 7683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1164c474 7684$as_echo X"$ac_file" |
0743911c
FM
7685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7686 s//\1/
7687 q
7688 }
7689 /^X\(\/\/\)[^/].*/{
7690 s//\1/
7691 q
7692 }
7693 /^X\(\/\/\)$/{
7694 s//\1/
7695 q
7696 }
7697 /^X\(\/\).*/{
7698 s//\1/
7699 q
7700 }
7701 s/.*/./; q'`
7702 { as_dir="$ac_dir"
7703 case $as_dir in #(
7704 -*) as_dir=./$as_dir;;
7705 esac
7706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25697a35 7707 as_dirs=
0743911c
FM
7708 while :; do
7709 case $as_dir in #(
1164c474 7710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
0743911c
FM
7711 *) as_qdir=$as_dir;;
7712 esac
7713 as_dirs="'$as_qdir' $as_dirs"
7714 as_dir=`$as_dirname -- "$as_dir" ||
25697a35
GS
7715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7716 X"$as_dir" : 'X\(//\)[^/]' \| \
7717 X"$as_dir" : 'X\(//\)$' \| \
0743911c 7718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1164c474 7719$as_echo X"$as_dir" |
0743911c
FM
7720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7721 s//\1/
7722 q
7723 }
7724 /^X\(\/\/\)[^/].*/{
7725 s//\1/
7726 q
7727 }
7728 /^X\(\/\/\)$/{
7729 s//\1/
7730 q
7731 }
7732 /^X\(\/\).*/{
7733 s//\1/
7734 q
7735 }
7736 s/.*/./; q'`
7737 test -d "$as_dir" && break
25697a35 7738 done
0743911c 7739 test -z "$as_dirs" || eval "mkdir $as_dirs"
1164c474
FM
7740 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7741$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25697a35 7742 { (exit 1); exit 1; }; }; }
25697a35
GS
7743 ac_builddir=.
7744
0743911c
FM
7745case "$ac_dir" in
7746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7747*)
1164c474 7748 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
0743911c 7749 # A ".." for each directory in $ac_dir_suffix.
1164c474 7750 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
0743911c
FM
7751 case $ac_top_builddir_sub in
7752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7754 esac ;;
7755esac
7756ac_abs_top_builddir=$ac_pwd
7757ac_abs_builddir=$ac_pwd$ac_dir_suffix
7758# for backward compatibility:
7759ac_top_builddir=$ac_top_build_prefix
25697a35
GS
7760
7761case $srcdir in
0743911c 7762 .) # We are building in place.
25697a35 7763 ac_srcdir=.
0743911c
FM
7764 ac_top_srcdir=$ac_top_builddir_sub
7765 ac_abs_top_srcdir=$ac_pwd ;;
7766 [\\/]* | ?:[\\/]* ) # Absolute name.
25697a35 7767 ac_srcdir=$srcdir$ac_dir_suffix;
0743911c
FM
7768 ac_top_srcdir=$srcdir
7769 ac_abs_top_srcdir=$srcdir ;;
7770 *) # Relative name.
7771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7772 ac_top_srcdir=$ac_top_build_prefix$srcdir
7773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25697a35 7774esac
0743911c 7775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25697a35 7776
25697a35 7777
0743911c
FM
7778 case $ac_mode in
7779 :F)
7780 #
7781 # CONFIG_FILE
7782 #
25697a35 7783
0743911c 7784_ACEOF
25697a35 7785
1164c474 7786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0743911c
FM
7787# If the template does not know about datarootdir, expand it.
7788# FIXME: This hack should be removed a few years after 2.60.
7789ac_datarootdir_hack=; ac_datarootdir_seen=
7790
1164c474
FM
7791ac_sed_dataroot='
7792/datarootdir/ {
0743911c
FM
7793 p
7794 q
7795}
7796/@datadir@/p
7797/@docdir@/p
7798/@infodir@/p
7799/@localedir@/p
7800/@mandir@/p
1164c474
FM
7801'
7802case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
0743911c
FM
7803*datarootdir*) ac_datarootdir_seen=yes;;
7804*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1164c474
FM
7805 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7806$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25697a35 7807_ACEOF
1164c474 7808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0743911c
FM
7809 ac_datarootdir_hack='
7810 s&@datadir@&$datadir&g
7811 s&@docdir@&$docdir&g
7812 s&@infodir@&$infodir&g
7813 s&@localedir@&$localedir&g
7814 s&@mandir@&$mandir&g
7815 s&\\\${datarootdir}&$datarootdir&g' ;;
7816esac
7817_ACEOF
7818
7819# Neutralize VPATH when `$srcdir' = `.'.
7820# Shell code in configure.ac might set extrasub.
7821# FIXME: do we really want to maintain this feature?
1164c474
FM
7822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7823ac_sed_extra="$ac_vpsub
25697a35
GS
7824$extrasub
7825_ACEOF
1164c474 7826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25697a35
GS
7827:t
7828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1164c474 7829s|@configure_input@|$ac_sed_conf_input|;t t
0743911c 7830s&@top_builddir@&$ac_top_builddir_sub&;t t
1164c474 7831s&@top_build_prefix@&$ac_top_build_prefix&;t t
0743911c
FM
7832s&@srcdir@&$ac_srcdir&;t t
7833s&@abs_srcdir@&$ac_abs_srcdir&;t t
7834s&@top_srcdir@&$ac_top_srcdir&;t t
7835s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7836s&@builddir@&$ac_builddir&;t t
7837s&@abs_builddir@&$ac_abs_builddir&;t t
7838s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7839$ac_datarootdir_hack
1164c474
FM
7840"
7841eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7842 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7843$as_echo "$as_me: error: could not create $ac_file" >&2;}
7844 { (exit 1); exit 1; }; }
0743911c
FM
7845
7846test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7847 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1164c474 7849 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0743911c 7850which seems to be undefined. Please make sure it is defined." >&5
1164c474 7851$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0743911c
FM
7852which seems to be undefined. Please make sure it is defined." >&2;}
7853
7854 rm -f "$tmp/stdin"
7855 case $ac_file in
1164c474
FM
7856 -) cat "$tmp/out" && rm -f "$tmp/out";;
7857 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7858 esac \
7859 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7860$as_echo "$as_me: error: could not create $ac_file" >&2;}
7861 { (exit 1); exit 1; }; }
0743911c 7862 ;;
25697a35 7863
25697a35 7864
0743911c
FM
7865
7866 esac
7867
7868done # for ac_tag
7869
25697a35
GS
7870
7871{ (exit 0); exit 0; }
7872_ACEOF
7873chmod +x $CONFIG_STATUS
7874ac_clean_files=$ac_clean_files_save
7875
1164c474
FM
7876test $ac_write_fail = 0 ||
7877 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7878$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7879 { (exit 1); exit 1; }; }
7880
25697a35
GS
7881
7882# configure is writing to config.log, and then calls config.status.
7883# config.status does its own redirection, appending to config.log.
7884# Unfortunately, on DOS this fails, as config.log is still kept open
7885# by configure, so config.status won't be able to write to it; its
7886# output is simply discarded. So we exec the FD to /dev/null,
7887# effectively closing config.log, so it can be properly (re)opened and
7888# appended to by config.status. When coming back to configure, we
7889# need to make the FD available again.
7890if test "$no_create" != yes; then
7891 ac_cs_success=:
7892 ac_config_status_args=
7893 test "$silent" = yes &&
7894 ac_config_status_args="$ac_config_status_args --quiet"
7895 exec 5>/dev/null
7896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7897 exec 5>>config.log
7898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7899 # would make configure fail if this is the last instruction.
7900 $ac_cs_success || { (exit 1); exit 1; }
7901fi
1164c474
FM
7902if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7903 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7904$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7905fi
25697a35 7906