]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Fix mke2fs error checking when creating revision 0 filesystems
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
b0cacab0 3# Generated by GNU Autoconf 2.59.
50e1e10f 4#
b0cacab0 5# Copyright (C) 2003 Free Software Foundation, Inc.
50e1e10f
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
b0cacab0
TT
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 248
b0cacab0
TT
249exec 6>&1
250
251#
252# Initializations.
253#
50e1e10f 254ac_default_prefix=/usr/local
b0cacab0
TT
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="version.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
e54635de 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE MAINTAINER_CMT HTREE_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN DEVMAPPER_REQ DEVMAPPER_PC_LIBS DEVMAPPER_LIBS STATIC_DEVMAPPER_LIBS GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB UNI_DIFF_OPTS LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS BUILD_CFLAGS BUILD_LDFLAGS LIBOBJS LTLIBOBJS'
4ea7ea00 313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY ASM_TYPES_HEADER'
50e1e10f
TT
314
315# Initialize some variables set by options.
b0cacab0
TT
316ac_init_help=
317ac_init_version=false
50e1e10f
TT
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b0cacab0 320cache_file=/dev/null
50e1e10f 321exec_prefix=NONE
50e1e10f 322no_create=
50e1e10f
TT
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
50e1e10f
TT
331verbose=
332x_includes=NONE
333x_libraries=NONE
b0cacab0
TT
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
21c84b71
TT
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
50e1e10f 352
50e1e10f
TT
353ac_prev=
354for ac_option
355do
50e1e10f
TT
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b0cacab0 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
50e1e10f
TT
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b0cacab0 367 case $ac_option in
50e1e10f 368
21c84b71
TT
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 372 bindir=$ac_optarg ;;
21c84b71
TT
373
374 -build | --build | --buil | --bui | --bu)
b0cacab0 375 ac_prev=build_alias ;;
21c84b71 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 377 build_alias=$ac_optarg ;;
50e1e10f
TT
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
50e1e10f 388
21c84b71
TT
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b0cacab0 393 datadir=$ac_optarg ;;
21c84b71 394
50e1e10f 395 -disable-* | --disable-*)
b0cacab0 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 397 # Reject names that are not valid shell variable names.
b0cacab0
TT
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
50e1e10f
TT
403
404 -enable-* | --enable-*)
b0cacab0 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 406 # Reject names that are not valid shell variable names.
b0cacab0
TT
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
50e1e10f
TT
413 *) ac_optarg=yes ;;
414 esac
b0cacab0 415 eval "enable_$ac_feature='$ac_optarg'" ;;
50e1e10f
TT
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
b0cacab0 424 exec_prefix=$ac_optarg ;;
50e1e10f
TT
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b0cacab0
TT
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
50e1e10f
TT
436
437 -host | --host | --hos | --ho)
b0cacab0 438 ac_prev=host_alias ;;
50e1e10f 439 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 440 host_alias=$ac_optarg ;;
50e1e10f 441
21c84b71
TT
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 447 includedir=$ac_optarg ;;
21c84b71
TT
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 452 infodir=$ac_optarg ;;
21c84b71
TT
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 457 libdir=$ac_optarg ;;
21c84b71
TT
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b0cacab0 464 libexecdir=$ac_optarg ;;
21c84b71
TT
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b0cacab0 473 localstatedir=$ac_optarg ;;
21c84b71
TT
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 478 mandir=$ac_optarg ;;
21c84b71 479
50e1e10f
TT
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 485 | --no-cr | --no-c | -n)
50e1e10f
TT
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
21c84b71
TT
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 499 oldincludedir=$ac_optarg ;;
21c84b71 500
50e1e10f
TT
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 504 prefix=$ac_optarg ;;
50e1e10f
TT
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 511 program_prefix=$ac_optarg ;;
50e1e10f
TT
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 518 program_suffix=$ac_optarg ;;
50e1e10f
TT
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 535 program_transform_name=$ac_optarg ;;
50e1e10f
TT
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
21c84b71
TT
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b0cacab0 545 sbindir=$ac_optarg ;;
21c84b71
TT
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b0cacab0 556 sharedstatedir=$ac_optarg ;;
21c84b71 557
50e1e10f
TT
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b0cacab0 561 site=$ac_optarg ;;
50e1e10f
TT
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 566 srcdir=$ac_optarg ;;
50e1e10f 567
21c84b71
TT
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 573 sysconfdir=$ac_optarg ;;
21c84b71 574
50e1e10f 575 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 576 ac_prev=target_alias ;;
50e1e10f 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 578 target_alias=$ac_optarg ;;
50e1e10f
TT
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b0cacab0
TT
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
50e1e10f
TT
585
586 -with-* | --with-*)
b0cacab0 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 588 # Reject names that are not valid shell variable names.
b0cacab0
TT
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
50e1e10f 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b0cacab0
TT
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
50e1e10f
TT
595 *) ac_optarg=yes ;;
596 esac
b0cacab0 597 eval "with_$ac_package='$ac_optarg'" ;;
50e1e10f
TT
598
599 -without-* | --without-*)
b0cacab0 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 601 # Reject names that are not valid shell variable names.
b0cacab0
TT
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
50e1e10f
TT
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 617 x_includes=$ac_optarg ;;
50e1e10f
TT
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 624 x_libraries=$ac_optarg ;;
50e1e10f 625
b0cacab0
TT
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
50e1e10f
TT
629 ;;
630
b0cacab0
TT
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
21c84b71 641 *)
b0cacab0
TT
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
50e1e10f
TT
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b0cacab0
TT
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
50e1e10f 656fi
50e1e10f 657
b0cacab0
TT
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
93636bde 668
b0cacab0
TT
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
50e1e10f 672do
b0cacab0
TT
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
50e1e10f
TT
678 esac
679done
680
b0cacab0
TT
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
50e1e10f 698
b0cacab0
TT
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
50e1e10f 703
50e1e10f
TT
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b0cacab0
TT
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
50e1e10f
TT
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b0cacab0
TT
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
50e1e10f 732 else
b0cacab0
TT
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
50e1e10f
TT
735 fi
736fi
b0cacab0
TT
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 847 --enable-maintainer-mode enable makefile rules useful for maintainers
b0cacab0
TT
848 --enable-compression enable EXPERIMENTAL compression support
849 --enable-htree enable EXPERIMENTAL htree directory support
b0cacab0
TT
850 --enable-elf-shlibs select ELF shared libraries
851 --enable-bsd-shlibs select BSD shared libraries
852 --enable-profile build profiling libraries
853 --enable-checker build checker libraries
854 --enable-jbd-debug enable journal debugging
855 --enable-blkid-debug enable blkid debugging
856 --enable-testio-debug enable the use of the test I/O manager for debugging
857 --disable-swapfs disable support of legacy byte-swapped filesystems
858 --disable-debugfs disable support of debugfs program
859 --disable-imager disable support of e2image program
860 --disable-resizer disable support of e2resize program
861 --enable-dynamic-e2fsck build e2fsck dynamically
862 --enable-fsck build fsck wrapper program
863 --enable-e2initrd-helper build e2initrd-helper program
4db2f59a 864 --enable-blkid-devmapper build with device-mapper support
b0cacab0
TT
865 --disable-nls do not use Native Language Support
866 --disable-rpath do not hardcode runtime library paths
867
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-diet-libc Use diet libc
872 --with-cc=COMPILER select compiler to use
873 --with-linker=LINKER select linker to use
874 --with-ccopts=CCOPTS select compiler command line options
875 --with-ldopts=LDOPTS select linker command line options
876 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877 --with-gnu-ld assume the C compiler uses GNU ld default=no
878 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
879 --without-libiconv-prefix don't search for libiconv in includedir and libdir
880 --with-included-gettext use the GNU gettext library included here
881 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
882 --without-libintl-prefix don't search for libintl in includedir and libdir
883
884Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896_ACEOF
897fi
898
899if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910else
911 ac_dir_suffix= ac_top_builddir=
912fi
913
914case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928esac
929
930# Do not use `cd foo && pwd` to compute absolute paths, because
931# the directories may not exist.
932case `pwd` in
933.) ac_abs_builddir="$ac_dir";;
934*)
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_top_builddir=${ac_top_builddir}.;;
943*)
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_srcdir=$ac_srcdir;;
952*)
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958esac
959case $ac_abs_builddir in
960.) ac_abs_top_srcdir=$ac_top_srcdir;;
961*)
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967esac
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
984 cd "$ac_popdir"
985 done
986fi
987
988test -n "$ac_init_help" && exit 0
989if $ac_init_version; then
990 cat <<\_ACEOF
991
992Copyright (C) 2003 Free Software Foundation, Inc.
993This configure script is free software; the Free Software Foundation
994gives unlimited permission to copy, distribute and modify it.
995_ACEOF
996 exit 0
997fi
998exec 5>config.log
999cat >&5 <<_ACEOF
1000This file contains any messages produced by compilers while
1001running configure, to aid debugging if configure makes a mistake.
1002
1003It was created by $as_me, which was
1004generated by GNU Autoconf 2.59. Invocation command line was
1005
1006 $ $0 $@
1007
1008_ACEOF
1009{
1010cat <<_ASUNAME
1011## --------- ##
1012## Platform. ##
1013## --------- ##
1014
1015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023
1024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031
1032_ASUNAME
1033
1034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035for as_dir in $PATH
1036do
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040done
50e1e10f 1041
b0cacab0
TT
1042} >&5
1043
1044cat >&5 <<_ACEOF
1045
1046
1047## ----------- ##
1048## Core tests. ##
1049## ----------- ##
1050
1051_ACEOF
1052
1053
1054# Keep a trace of the command line.
1055# Strip out --no-create and --no-recursion so they do not pile up.
1056# Strip out --silent because we don't want to record it for future runs.
1057# Also quote any args containing shell meta-characters.
1058# Make two passes to allow for proper duplicate-argument suppression.
1059ac_configure_args=
1060ac_configure_args0=
1061ac_configure_args1=
1062ac_sep=
1063ac_must_keep_next=false
1064for ac_pass in 1 2
1065do
1066 for ac_arg
1067 do
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 2)
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1091 ;;
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1094 fi
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1098 ;;
1099 esac
1100 done
1101done
1102$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105# When interrupted or exit'd, cleanup temporary files, and complete
1106# config.log. We remove comments because anyway the quotes in there
1107# would cause problems or look ugly.
1108# WARNING: Be sure not to use single quotes in there, as some shells,
1109# such as our DU 5.0 friend, will then `close' the trap.
1110trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1112 {
1113 echo
1114
1115 cat <<\_ASBOX
1116## ---------------- ##
1117## Cache variables. ##
1118## ---------------- ##
1119_ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1122{
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 ;;
1130 *)
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 ;;
1134 esac;
1135}
1136 echo
1137
1138 cat <<\_ASBOX
1139## ----------------- ##
1140## Output variables. ##
1141## ----------------- ##
1142_ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153## ------------- ##
1154## Output files. ##
1155## ------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164 fi
1165
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168## ----------- ##
1169## confdefs.h. ##
1170## ----------- ##
1171_ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1175 fi
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1183 ' 0
1184for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186done
1187ac_signal=0
1188
1189# confdefs.h avoids OS command line length limits that DEFS can exceed.
1190rm -rf conftest* confdefs.h
1191# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192echo >confdefs.h
1193
1194# Predefined preprocessor variables.
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_NAME "$PACKAGE_NAME"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_VERSION "$PACKAGE_VERSION"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_STRING "$PACKAGE_STRING"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218_ACEOF
1219
1220
1221# Let the site file select an alternate cache file if it wants to.
50e1e10f
TT
1222# Prefer explicitly selected file to automatically selected ones.
1223if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 fi
1229fi
1230for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
b0cacab0
TT
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
50e1e10f
TT
1235 . "$ac_site_file"
1236 fi
1237done
1238
1239if test -r "$cache_file"; then
b0cacab0
TT
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1249 fi
50e1e10f 1250else
b0cacab0
TT
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1254fi
1255
1256# Check that the precious variables saved in the cache have kept the same
1257# value.
1258ac_cache_corrupted=false
1259for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1275 *)
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1297 fi
1298done
1299if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
50e1e10f
TT
1305fi
1306
1307ac_ext=c
50e1e10f 1308ac_cpp='$CPP $CPPFLAGS'
b0cacab0
TT
1309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
a04eba3f 1316
07a0db15 1317
74becf3c 1318
93636bde 1319
93636bde
TT
1320
1321
1322
1323
b0cacab0
TT
1324
1325
1326
1327
1328
1329
1330
1331
1332ac_aux_dir=
1333for ac_dir in config $srcdir/config; do
1334 if test -f $ac_dir/install-sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 break
1338 elif test -f $ac_dir/install.sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 break
1342 elif test -f $ac_dir/shtool; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 break
1346 fi
1347done
1348if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351 { (exit 1); exit 1; }; }
1352fi
1353ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
93636bde
TT
1357MCONFIG=./MCONFIG
1358
1359BINARY_TYPE=bin
1360E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1361 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363 | tr \" " "`
1364E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1365MONTH=`echo $DATE | awk -F- '{print $2}'`
1366YEAR=`echo $DATE | awk -F- '{print $3}'`
1367
1368if expr $YEAR ">" 1900 > /dev/null ; then
1369 E2FSPROGS_YEAR=$YEAR
1370elif expr $YEAR ">" 90 >/dev/null ; then
1371 E2FSPROGS_YEAR=19$YEAR
1372else
1373 E2FSPROGS_YEAR=20$YEAR
1374fi
1375
1376case $MONTH in
1377Jan) E2FSPROGS_MONTH="January" ;;
74becf3c
TT
1378Feb) E2FSPROGS_MONTH="February" ;;
1379Mar) E2FSPROGS_MONTH="March" ;;
1380Apr) E2FSPROGS_MONTH="April" ;;
1381May) E2FSPROGS_MONTH="May" ;;
1382Jun) E2FSPROGS_MONTH="June" ;;
1383Jul) E2FSPROGS_MONTH="July" ;;
1384Aug) E2FSPROGS_MONTH="August" ;;
1385Sep) E2FSPROGS_MONTH="September" ;;
1386Oct) E2FSPROGS_MONTH="October" ;;
1387Nov) E2FSPROGS_MONTH="November" ;;
1388Dec) E2FSPROGS_MONTH="December" ;;
1389*) echo "Unknown month $MONTH??" ;;
1390esac
1391
1392unset DATE MONTH YEAR
1393echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1395
93636bde
TT
1396
1397
1398
fc6d9d51 1399# Make sure we can run config.sub.
b0cacab0
TT
1400$ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405echo "$as_me:$LINENO: checking build system type" >&5
1406echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_build_alias=$build_alias
1411test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
1422fi
1423echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424echo "${ECHO_T}$ac_cv_build" >&6
1425build=$ac_cv_build
1426build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431echo "$as_me:$LINENO: checking host system type" >&5
1432echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436 ac_cv_host_alias=$host_alias
1437test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1443
1444fi
1445echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446echo "${ECHO_T}$ac_cv_host" >&6
1447host=$ac_cv_host
1448host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
93636bde 1451
93636bde 1452
07a0db15 1453
d21ae6c5
TT
1454# Check whether --with-diet-libc or --without-diet-libc was given.
1455if test "${with_diet_libc+set}" = set; then
1456 withval="$with_diet_libc"
1457 CC="diet cc -nostdinc"
b0cacab0
TT
1458echo "$as_me:$LINENO: result: CC=$CC" >&5
1459echo "${ECHO_T}CC=$CC" >&6
1460fi;
74becf3c 1461# Check whether --with-cc or --without-cc was given.
21c84b71
TT
1462if test "${with_cc+set}" = set; then
1463 withval="$with_cc"
b0cacab0
TT
1464 echo "$as_me:$LINENO: result: CC=$withval" >&5
1465echo "${ECHO_T}CC=$withval" >&6
74becf3c
TT
1466CC=$withval
1467else
1468 if test -z "$CC" ; then CC=cc; fi
b0cacab0
TT
1469echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470echo "${ECHO_T}CC defaults to $CC" >&6
1471fi; export CC
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485else
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1488else
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
1503fi
1504fi
1505CC=$ac_cv_prog_CC
1506if test -n "$CC"; then
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508echo "${ECHO_T}$CC" >&6
1509else
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
74becf3c 1512fi
74becf3c 1513
b0cacab0
TT
1514fi
1515if test -z "$ac_cv_prog_CC"; then
1516 ac_ct_CC=$CC
1517 # Extract the first word of "gcc", so it can be a program name with args.
73ae2d4a 1518set dummy gcc; ac_word=$2
b0cacab0
TT
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538done
1539done
1540
1541fi
1542fi
1543ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546echo "${ECHO_T}$ac_ct_CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552 CC=$ac_ct_CC
1553else
1554 CC="$ac_cv_prog_CC"
1555fi
1556
1557if test -z "$CC"; then
1558 if test -n "$ac_tool_prefix"; then
1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560set dummy ${ac_tool_prefix}cc; ac_word=$2
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
73ae2d4a
TT
1565else
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1568else
b0cacab0
TT
1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_CC="${ac_tool_prefix}cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580done
1581done
1582
73ae2d4a
TT
1583fi
1584fi
b0cacab0 1585CC=$ac_cv_prog_CC
73ae2d4a 1586if test -n "$CC"; then
b0cacab0
TT
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588echo "${ECHO_T}$CC" >&6
1589else
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
1592fi
1593
1594fi
1595if test -z "$ac_cv_prog_CC"; then
1596 ac_ct_CC=$CC
1597 # Extract the first word of "cc", so it can be a program name with args.
1598set dummy cc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 if test -n "$ac_ct_CC"; then
1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_ac_ct_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
1617 fi
1618done
1619done
1620
1621fi
1622fi
1623ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624if test -n "$ac_ct_CC"; then
1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626echo "${ECHO_T}$ac_ct_CC" >&6
1627else
1628 echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632 CC=$ac_ct_CC
73ae2d4a 1633else
b0cacab0 1634 CC="$ac_cv_prog_CC"
73ae2d4a
TT
1635fi
1636
b0cacab0 1637fi
73ae2d4a
TT
1638if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640set dummy cc; ac_word=$2
b0cacab0
TT
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643if test "${ac_cv_prog_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
73ae2d4a
TT
1645else
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1648else
73ae2d4a 1649 ac_prog_rejected=no
b0cacab0
TT
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1659 continue
1660 fi
1661 ac_cv_prog_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
1667
73ae2d4a
TT
1668if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1671 shift
b0cacab0 1672 if test $# != 0; then
73ae2d4a
TT
1673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1676 shift
b0cacab0 1677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
73ae2d4a
TT
1678 fi
1679fi
1680fi
1681fi
b0cacab0 1682CC=$ac_cv_prog_CC
73ae2d4a 1683if test -n "$CC"; then
b0cacab0
TT
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
73ae2d4a 1686else
b0cacab0
TT
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
73ae2d4a
TT
1689fi
1690
b0cacab0
TT
1691fi
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 for ac_prog in cl
1695 do
1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
73ae2d4a
TT
1702else
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1705else
b0cacab0
TT
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
1718done
1719
73ae2d4a
TT
1720fi
1721fi
b0cacab0 1722CC=$ac_cv_prog_CC
73ae2d4a 1723if test -n "$CC"; then
b0cacab0
TT
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
73ae2d4a 1726else
b0cacab0
TT
1727 echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
73ae2d4a 1729fi
b0cacab0
TT
1730
1731 test -n "$CC" && break
1732 done
1733fi
1734if test -z "$CC"; then
1735 ac_ct_CC=$CC
1736 for ac_prog in cl
1737do
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739set dummy $ac_prog; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
93636bde 1758 fi
b0cacab0
TT
1759done
1760done
1761
1762fi
1763fi
1764ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767echo "${ECHO_T}$ac_ct_CC" >&6
1768else
1769 echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
07a0db15 1771fi
73ae2d4a 1772
b0cacab0
TT
1773 test -n "$ac_ct_CC" && break
1774done
73ae2d4a 1775
b0cacab0
TT
1776 CC=$ac_ct_CC
1777fi
1778
1779fi
1780
1781
1782test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: no acceptable C compiler found in \$PATH
1785See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1787
1788# Provide some information about the compiler.
1789echo "$as_me:$LINENO:" \
1790 "checking for C compiler version" >&5
1791ac_compiler=`set X $ac_compile; echo $2`
1792{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 ac_status=$?
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1807
1808cat >conftest.$ac_ext <<_ACEOF
1809/* confdefs.h. */
1810_ACEOF
1811cat confdefs.h >>conftest.$ac_ext
1812cat >>conftest.$ac_ext <<_ACEOF
1813/* end confdefs.h. */
1814
1815int
1816main ()
1817{
1818
1819 ;
1820 return 0;
1821}
1822_ACEOF
1823ac_clean_files_save=$ac_clean_files
1824ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825# Try to create an executable without -o first, disregard a.out.
1826# It will help us diagnose broken compilers, and finding out an intuition
1827# of exeext.
1828echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1833 ac_status=$?
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838# resort.
1839
1840# Be careful to initialize this variable, since it used to be cached.
1841# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842ac_cv_exeext=
1843# b.out is created by i960 compilers.
1844for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845do
1846 test -f "$ac_file" || continue
1847 case $ac_file in
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849 ;;
1850 conftest.$ac_ext )
1851 # This is the source file.
1852 ;;
1853 [ab].out )
1854 # We found the default executable, but exeext='' is most
1855 # certainly right.
1856 break;;
1857 *.* )
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1862 export ac_cv_exeext
1863 break;;
1864 * )
1865 break;;
1866 esac
1867done
1868else
1869 echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873See \`config.log' for more details." >&5
1874echo "$as_me: error: C compiler cannot create executables
1875See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1877fi
1878
1879ac_exeext=$ac_cv_exeext
1880echo "$as_me:$LINENO: result: $ac_file" >&5
1881echo "${ECHO_T}$ac_file" >&6
1882
1883# Check the compiler produces executables we can run. If not, either
1884# the compiler is broken, or we cross compile.
1885echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888# If not cross compiling, check that we can run a simple program.
1889if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 cross_compiling=no
73ae2d4a 1897 else
b0cacab0
TT
1898 if test "$cross_compiling" = maybe; then
1899 cross_compiling=yes
1900 else
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902If you meant to cross compile, use \`--host'.
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot run C compiled programs.
1905If you meant to cross compile, use \`--host'.
1906See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
73ae2d4a 1909 fi
b0cacab0
TT
1910fi
1911echo "$as_me:$LINENO: result: yes" >&5
1912echo "${ECHO_T}yes" >&6
1913
1914rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915ac_clean_files=$ac_clean_files_save
1916# Check the compiler produces executables we can run. If not, either
1917# the compiler is broken, or we cross compile.
1918echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921echo "${ECHO_T}$cross_compiling" >&6
1922
1923echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932# work properly (i.e., refer to `conftest.exe'), while it won't with
1933# `rm'.
1934for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1936 case $ac_file in
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939 export ac_cv_exeext
1940 break;;
1941 * ) break;;
1942 esac
1943done
73ae2d4a 1944else
b0cacab0
TT
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946See \`config.log' for more details." >&5
1947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
73ae2d4a 1950fi
73ae2d4a 1951
b0cacab0
TT
1952rm -f conftest$ac_cv_exeext
1953echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954echo "${ECHO_T}$ac_cv_exeext" >&6
73ae2d4a 1955
b0cacab0
TT
1956rm -f conftest.$ac_ext
1957EXEEXT=$ac_cv_exeext
1958ac_exeext=$EXEEXT
1959echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
73ae2d4a 1963else
b0cacab0
TT
1964 cat >conftest.$ac_ext <<_ACEOF
1965/* confdefs.h. */
1966_ACEOF
1967cat confdefs.h >>conftest.$ac_ext
1968cat >>conftest.$ac_ext <<_ACEOF
1969/* end confdefs.h. */
07a0db15 1970
b0cacab0
TT
1971int
1972main ()
1973{
07a0db15 1974
b0cacab0
TT
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979rm -f conftest.o conftest.obj
1980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986 case $ac_file in
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1989 break;;
1990 esac
1991done
93636bde 1992else
b0cacab0
TT
1993 echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 1995
b0cacab0
TT
1996{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997See \`config.log' for more details." >&5
1998echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
73ae2d4a 2001fi
93636bde 2002
b0cacab0 2003rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 2004fi
b0cacab0
TT
2005echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006echo "${ECHO_T}$ac_cv_objext" >&6
2007OBJEXT=$ac_cv_objext
2008ac_objext=$OBJEXT
2009echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014 cat >conftest.$ac_ext <<_ACEOF
2015/* confdefs.h. */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h. */
2020
2021int
2022main ()
2023{
2024#ifndef __GNUC__
2025 choke me
2026#endif
2027
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032rm -f conftest.$ac_objext
2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>conftest.er1
2035 ac_status=$?
2036 grep -v '^ *+' conftest.er1 >conftest.err
2037 rm -f conftest.er1
2038 cat conftest.err >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 (eval $ac_try) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2053 ac_compiler_gnu=yes
2054else
2055 echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058ac_compiler_gnu=no
2059fi
2060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061ac_cv_c_compiler_gnu=$ac_compiler_gnu
2062
2063fi
2064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066GCC=`test $ac_compiler_gnu = yes && echo yes`
2067ac_test_CFLAGS=${CFLAGS+set}
2068ac_save_CFLAGS=$CFLAGS
2069CFLAGS="-g"
2070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081
2082int
2083main ()
2084{
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090rm -f conftest.$ac_objext
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2093 ac_status=$?
2094 grep -v '^ *+' conftest.er1 >conftest.err
2095 rm -f conftest.er1
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_cv_prog_cc_g=yes
2112else
2113 echo "$as_me: failed program was:" >&5
2114sed 's/^/| /' conftest.$ac_ext >&5
2115
2116ac_cv_prog_cc_g=no
2117fi
2118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2122if test "$ac_test_CFLAGS" = set; then
2123 CFLAGS=$ac_save_CFLAGS
2124elif test $ac_cv_prog_cc_g = yes; then
2125 if test "$GCC" = yes; then
2126 CFLAGS="-g -O2"
2127 else
2128 CFLAGS="-g"
2129 fi
73ae2d4a
TT
2130else
2131 if test "$GCC" = yes; then
2132 CFLAGS="-O2"
2133 else
2134 CFLAGS=
2135 fi
2136fi
b0cacab0
TT
2137echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 ac_cv_prog_cc_stdc=no
2143ac_save_CC=$CC
2144cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h. */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h. */
2150#include <stdarg.h>
2151#include <stdio.h>
2152#include <sys/types.h>
2153#include <sys/stat.h>
2154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2155struct buf { int x; };
2156FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157static char *e (p, i)
2158 char **p;
2159 int i;
2160{
2161 return p[i];
2162}
2163static char *f (char * (*g) (char **, int), char **p, ...)
2164{
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171}
2172
2173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2174 function prototypes and stuff, but not '\xHH' hex character constants.
2175 These don't provoke an error unfortunately, instead are silently treated
2176 as 'x'. The following induces an error, until -std1 is added to get
2177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2178 array size at least. It's necessary to write '\x00'==0 to get something
2179 that's true only with -std1. */
2180int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181
2182int test (int i, double x);
2183struct s1 {int (*f) (int a);};
2184struct s2 {int (*f) (double a);};
2185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2186int argc;
2187char **argv;
2188int
2189main ()
2190{
2191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196# Don't try gcc -ansi; that turns off useful extensions and
2197# breaks some systems' header files.
2198# AIX -qlanglvl=ansi
2199# Ultrix and OSF/1 -std1
2200# HP-UX 10.20 and later -Ae
2201# HP-UX older versions -Aa -D_HPUX_SOURCE
2202# SVR4 -Xc -D__EXTENSIONS__
2203for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204do
2205 CC="$ac_save_CC $ac_arg"
2206 rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_prog_cc_stdc=$ac_arg
2228break
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233fi
2234rm -f conftest.err conftest.$ac_objext
2235done
2236rm -f conftest.$ac_ext conftest.$ac_objext
2237CC=$ac_save_CC
2238
2239fi
2240
2241case "x$ac_cv_prog_cc_stdc" in
2242 x|xno)
2243 echo "$as_me:$LINENO: result: none needed" >&5
2244echo "${ECHO_T}none needed" >&6 ;;
2245 *)
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248 CC="$CC $ac_cv_prog_cc_stdc" ;;
2249esac
2250
2251# Some people use a C++ compiler to compile C. Since we use `exit',
2252# in C++ we need to declare it. In case someone uses the same compiler
2253# for both compiling C and C++ we need to have the C++ compiler decide
2254# the declaration of exit, since it's the most demanding environment.
2255cat >conftest.$ac_ext <<_ACEOF
2256#ifndef __cplusplus
2257 choke me
2258#endif
2259_ACEOF
2260rm -f conftest.$ac_objext
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2263 ac_status=$?
2264 grep -v '^ *+' conftest.er1 >conftest.err
2265 rm -f conftest.er1
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 for ac_declaration in \
2282 '' \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2287 'void exit (int);'
2288do
2289 cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h. */
2295$ac_declaration
2296#include <stdlib.h>
2297int
2298main ()
2299{
2300exit (42);
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 :
2327else
2328 echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331continue
2332fi
2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340$ac_declaration
2341int
2342main ()
2343{
2344exit (42);
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2370 break
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377done
2378rm -f conftest*
2379if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2383fi
2384
2385else
2386 echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396
73ae2d4a 2397
74becf3c 2398# Check whether --with-linker or --without-linker was given.
21c84b71
TT
2399if test "${with_linker+set}" = set; then
2400 withval="$with_linker"
b0cacab0
TT
2401 echo "$as_me:$LINENO: result: LD=$withval" >&5
2402echo "${ECHO_T}LD=$withval" >&6
74becf3c
TT
2403LD=$withval
2404else
2405 if test -z "$LD" ; then LD=$CC; fi
b0cacab0
TT
2406echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407echo "${ECHO_T}LD defaults to $LD" >&6
2408fi; export LD
2409
a64c9c13
TT
2410
2411# Check whether --with-ccopts or --without-ccopts was given.
2412if test "${with_ccopts+set}" = set; then
2413 withval="$with_ccopts"
b0cacab0
TT
2414 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415echo "${ECHO_T}CCOPTS is $withval" >&6
877eb6d9 2416CFLAGS=$withval
b0cacab0
TT
2417fi;
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a64c9c13
TT
2425# On Suns, sometimes $CPP names a directory.
2426if test -n "$CPP" && test -d "$CPP"; then
2427 CPP=
2428fi
2429if test -z "$CPP"; then
b0cacab0
TT
2430 if test "${ac_cv_prog_CPP+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 # Double quotes because CPP needs to be expanded
2434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2435 do
2436 ac_preproc_ok=false
2437for ac_c_preproc_warn_flag in '' yes
2438do
2439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h. */
2451#ifdef __STDC__
2452# include <limits.h>
2453#else
2454# include <assert.h>
2455#endif
2456 Syntax error
2457_ACEOF
2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 else
2470 ac_cpp_err=
2471 fi
2472else
2473 ac_cpp_err=yes
2474fi
2475if test -z "$ac_cpp_err"; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 # Broken: fails on valid input.
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_ext
2485
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494#include <ac_nonexistent.h>
2495_ACEOF
2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507 else
2508 ac_cpp_err=
2509 fi
2510else
2511 ac_cpp_err=yes
2512fi
2513if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2515continue
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 # Passes both tests.
2521ac_preproc_ok=:
2522break
2523fi
2524rm -f conftest.err conftest.$ac_ext
2525
2526done
2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528rm -f conftest.err conftest.$ac_ext
2529if $ac_preproc_ok; then
2530 break
2531fi
2532
2533 done
2534 ac_cv_prog_CPP=$CPP
2535
2536fi
2537 CPP=$ac_cv_prog_CPP
93636bde 2538else
b0cacab0
TT
2539 ac_cv_prog_CPP=$CPP
2540fi
2541echo "$as_me:$LINENO: result: $CPP" >&5
2542echo "${ECHO_T}$CPP" >&6
2543ac_preproc_ok=false
2544for ac_c_preproc_warn_flag in '' yes
2545do
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 # <limits.h> exists even on freestanding compilers.
a64c9c13 2550 # On the NeXT, cc -E runs the code through the compiler's parser,
b0cacab0
TT
2551 # not just through cpp. "Syntax error" is here to catch this case.
2552 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
2558#ifdef __STDC__
2559# include <limits.h>
2560#else
2561# include <assert.h>
2562#endif
2563 Syntax error
2564_ACEOF
2565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2576 else
2577 ac_cpp_err=
2578 fi
2579else
2580 ac_cpp_err=yes
2581fi
2582if test -z "$ac_cpp_err"; then
a64c9c13
TT
2583 :
2584else
b0cacab0
TT
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 # Broken: fails on valid input.
2589continue
2590fi
2591rm -f conftest.err conftest.$ac_ext
2592
2593 # OK, works on sane cases. Now check whether non-existent headers
2594 # can be detected and how.
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601#include <ac_nonexistent.h>
2602_ACEOF
2603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } >/dev/null; then
2611 if test -s conftest.err; then
2612 ac_cpp_err=$ac_c_preproc_warn_flag
2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2614 else
2615 ac_cpp_err=
2616 fi
2617else
2618 ac_cpp_err=yes
2619fi
2620if test -z "$ac_cpp_err"; then
2621 # Broken: success on invalid input.
2622continue
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 # Passes both tests.
2628ac_preproc_ok=:
2629break
2630fi
2631rm -f conftest.err conftest.$ac_ext
2632
2633done
2634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635rm -f conftest.err conftest.$ac_ext
2636if $ac_preproc_ok; then
93636bde 2637 :
07a0db15 2638else
b0cacab0
TT
2639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640See \`config.log' for more details." >&5
2641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2644fi
2645
2646ac_ext=c
2647ac_cpp='$CPP $CPPFLAGS'
2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653echo "$as_me:$LINENO: checking for egrep" >&5
2654echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655if test "${ac_cv_prog_egrep+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659 then ac_cv_prog_egrep='grep -E'
2660 else ac_cv_prog_egrep='egrep'
2661 fi
2662fi
2663echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665 EGREP=$ac_cv_prog_egrep
2666
2667
2668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670if test "${ac_cv_header_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h. */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h. */
2679#include <stdlib.h>
2680#include <stdarg.h>
2681#include <string.h>
2682#include <float.h>
2683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_header_stdc=yes
2714else
2715 echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718ac_cv_header_stdc=no
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721
2722if test $ac_cv_header_stdc = yes; then
2723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730#include <string.h>
2731
2732_ACEOF
2733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 $EGREP "memchr" >/dev/null 2>&1; then
93636bde 2735 :
a64c9c13 2736else
b0cacab0 2737 ac_cv_header_stdc=no
a64c9c13 2738fi
93636bde 2739rm -f conftest*
b0cacab0 2740
a64c9c13 2741fi
b0cacab0
TT
2742
2743if test $ac_cv_header_stdc = yes; then
2744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745 cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
2751#include <stdlib.h>
2752
2753_ACEOF
2754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 $EGREP "free" >/dev/null 2>&1; then
2756 :
2757else
2758 ac_cv_header_stdc=no
a64c9c13 2759fi
93636bde 2760rm -f conftest*
b0cacab0 2761
a64c9c13 2762fi
b0cacab0
TT
2763
2764if test $ac_cv_header_stdc = yes; then
2765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766 if test "$cross_compiling" = yes; then
2767 :
a64c9c13 2768else
b0cacab0
TT
2769 cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#include <ctype.h>
2776#if ((' ' & 0x0FF) == 0x020)
2777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779#else
2780# define ISLOWER(c) \
2781 (('a' <= (c) && (c) <= 'i') \
2782 || ('j' <= (c) && (c) <= 'r') \
2783 || ('s' <= (c) && (c) <= 'z'))
2784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2785#endif
93636bde 2786
b0cacab0
TT
2787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2788int
2789main ()
2790{
2791 int i;
2792 for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i))
2794 || toupper (i) != TOUPPER (i))
2795 exit(2);
2796 exit (0);
2797}
2798_ACEOF
2799rm -f conftest$ac_exeext
2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801 (eval $ac_link) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 :
a64c9c13 2811else
b0cacab0
TT
2812 echo "$as_me: program exited with status $ac_status" >&5
2813echo "$as_me: failed program was:" >&5
2814sed 's/^/| /' conftest.$ac_ext >&5
2815
2816( exit $ac_status )
2817ac_cv_header_stdc=no
2818fi
2819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2820fi
2821fi
2822fi
2823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825if test $ac_cv_header_stdc = yes; then
2826
2827cat >>confdefs.h <<\_ACEOF
2828#define STDC_HEADERS 1
2829_ACEOF
2830
2831fi
2832
2833# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844 inttypes.h stdint.h unistd.h
2845do
2846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847echo "$as_me:$LINENO: checking for $ac_header" >&5
2848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858$ac_includes_default
2859
2860#include <$ac_header>
2861_ACEOF
2862rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>conftest.er1
2865 ac_status=$?
2866 grep -v '^ *+' conftest.er1 >conftest.err
2867 rm -f conftest.er1
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2884else
2885 echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888eval "$as_ac_Header=no"
2889fi
2890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891fi
2892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h <<_ACEOF
2896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2897_ACEOF
2898
2899fi
2900
2901done
2902
2903
2904if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909fi
2910echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912else
2913 # Is the header compilable?
2914echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922$ac_includes_default
93636bde 2923#include <linux/fs.h>
b0cacab0
TT
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_header_compiler=yes
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951ac_header_compiler=no
2952fi
2953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955echo "${ECHO_T}$ac_header_compiler" >&6
2956
2957# Is the header present?
2958echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960cat >conftest.$ac_ext <<_ACEOF
2961/* confdefs.h. */
2962_ACEOF
2963cat confdefs.h >>conftest.$ac_ext
2964cat >>conftest.$ac_ext <<_ACEOF
2965/* end confdefs.h. */
2966#include <linux/fs.h>
2967_ACEOF
2968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979 else
2980 ac_cpp_err=
2981 fi
2982else
2983 ac_cpp_err=yes
a64c9c13 2984fi
b0cacab0
TT
2985if test -z "$ac_cpp_err"; then
2986 ac_header_preproc=yes
2987else
2988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_header_preproc=no
2992fi
2993rm -f conftest.err conftest.$ac_ext
2994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995echo "${ECHO_T}$ac_header_preproc" >&6
2996
2997# So? What about this header?
2998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999 yes:no: )
3000 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004 ac_header_preproc=yes
3005 ;;
3006 no:yes:* )
3007 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3010echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3011 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3014echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3019 (
3020 cat <<\_ASBOX
3021## ------------------------------------------ ##
3022## Report this to the AC_PACKAGE_NAME lists. ##
3023## ------------------------------------------ ##
3024_ASBOX
3025 ) |
3026 sed "s/^/$as_me: WARNING: /" >&2
3027 ;;
3028esac
3029echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 ac_cv_header_linux_fs_h=$ac_header_preproc
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3038
07a0db15 3039fi
b0cacab0 3040if test $ac_cv_header_linux_fs_h = yes; then
07a0db15
TT
3041 linux_headers=yes
3042else
b0cacab0 3043 linux_headers=no
a64c9c13
TT
3044fi
3045
b0cacab0 3046
a64c9c13
TT
3047if test "$linux_headers" != yes; then
3048 LINUX_INCLUDE='-I$(top_builddir)/include'
3049fi
3050
b0cacab0
TT
3051echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
b1c92f91
MA
3053if test "$GCC" = yes
3054then
3055 case "$host_cpu" in
3056 alpha) addcflags="-mieee" ;;
3057 esac
3058fi
3059if test "x$addcflags" != x
3060then
b0cacab0
TT
3061 echo "$as_me:$LINENO: result: $addcflags" >&5
3062echo "${ECHO_T}$addcflags" >&6
b1c92f91
MA
3063 CFLAGS="$addcflags $CFLAGS"
3064else
b0cacab0
TT
3065 echo "$as_me:$LINENO: result: (none)" >&5
3066echo "${ECHO_T}(none)" >&6
b1c92f91 3067fi
a64c9c13
TT
3068LIB_EXT=.a
3069STATIC_LIB_EXT=.a
3070PROFILE_LIB_EXT=.a
b0cacab0 3071
a64c9c13
TT
3072# Check whether --with-ldopts or --without-ldopts was given.
3073if test "${with_ldopts+set}" = set; then
3074 withval="$with_ldopts"
b0cacab0
TT
3075 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076echo "${ECHO_T}LDFLAGS is $withval" >&6
a64c9c13
TT
3077LDFLAGS=$withval
3078else
3079 LDFLAGS=
b0cacab0 3080fi;
a64c9c13
TT
3081
3082# Check whether --with-root-prefix or --without-root-prefix was given.
3083if test "${with_root_prefix+set}" = set; then
3084 withval="$with_root_prefix"
3085 root_prefix=$withval
3086else
3087 root_prefix=NONE
98919bdb
TT
3088fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3089if test "${enable_maintainer_mode+set}" = set; then
3090 enableval="$enable_maintainer_mode"
3091 if test "$enableval" = "no"
3092then
3093 MAINTAINER_CMT=#
3094 echo "Disabling maintainer mode"
3095else
3096 MAINTAINER_CMT=
3097 echo "Enabling maintainer mode"
3098fi
3099
3100else
3101 MAINTAINER_CMT=#
3102echo "Disabling maintainer mode by default"
3103
3104fi;
3105
3106# Check whether --enable-compression or --disable-compression was given.
1917875f
TT
3107if test "${enable_compression+set}" = set; then
3108 enableval="$enable_compression"
3109 if test "$enableval" = "no"
3110then
3111 echo "Disabling compression support"
3112else
b0cacab0 3113 cat >>confdefs.h <<\_ACEOF
1917875f 3114#define ENABLE_COMPRESSION 1
b0cacab0 3115_ACEOF
1917875f
TT
3116
3117 echo "Enabling compression support"
3118 echo "WARNING: Compression support is experimental"
3119fi
3120
3121else
3122 echo "Disabling compression support by default"
3123
b0cacab0 3124fi;
8fdc9985
TT
3125# Check whether --enable-htree or --disable-htree was given.
3126if test "${enable_htree+set}" = set; then
3127 enableval="$enable_htree"
3128 if test "$enableval" = "no"
3129then
3130 HTREE_CMT=#
3131 echo "Disabling htree directory support"
3132else
3133 HTREE_CMT=
b0cacab0 3134 cat >>confdefs.h <<\_ACEOF
8fdc9985 3135#define ENABLE_HTREE 1
b0cacab0 3136_ACEOF
8fdc9985
TT
3137
3138 echo "Enabling htree directory support"
8fdc9985
TT
3139fi
3140
3141else
559ca6cb 3142 HTREE_CMT=
b0cacab0 3143cat >>confdefs.h <<\_ACEOF
559ca6cb 3144#define ENABLE_HTREE 1
b0cacab0 3145_ACEOF
559ca6cb
TT
3146
3147echo "Enabling htree directory support by default"
8fdc9985 3148
b0cacab0 3149fi;
8fdc9985 3150
a64c9c13
TT
3151# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3152if test "${enable_elf_shlibs+set}" = set; then
3153 enableval="$enable_elf_shlibs"
3154 if test "$enableval" = "no"
3155then
3156 ELF_CMT=#
3157 MAKEFILE_ELF=/dev/null
3158 echo "Disabling ELF shared libraries"
3159else
3160 ELF_CMT=
3161 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
f5955dda
TT
3162 case "$host_os" in
3163 solaris2.*)
3164 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3165 ;;
3166 esac
a64c9c13
TT
3167 BINARY_TYPE=elfbin
3168 LIB_EXT=.so
3169 echo "Enabling ELF shared libraries"
3170fi
3171
3172else
3173 MAKEFILE_ELF=/dev/null
3174ELF_CMT=#
3175echo "Disabling ELF shared libraries by default"
3176
b0cacab0 3177fi;
93636bde 3178
a64c9c13
TT
3179
3180# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3181if test "${enable_bsd_shlibs+set}" = set; then
3182 enableval="$enable_bsd_shlibs"
3183 if test "$enableval" = "no"
3184then
3185 BSDLIB_CMT=#
3186 MAKEFILE_BSDLIB=/dev/null
3187 echo "Disabling BSD shared libraries"
3188else
3189 BSDLIB_CMT=
3190 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3191 LIB_EXT=.so
e1f07228 3192 case "$host_os" in
aa75eccc 3193 darwin*)
e1f07228
TT
3194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3195 LIB_EXT=.dylib
3196 ;;
3197 esac
a64c9c13
TT
3198 echo "Enabling BSD shared libraries"
3199fi
3200
3201else
3202 MAKEFILE_BSDLIB=/dev/null
3203BSDLIB_CMT=#
3204echo "Disabling BSD shared libraries by default"
3205
b0cacab0 3206fi;
93636bde 3207
a64c9c13 3208
cdf186e4
TT
3209# Check whether --enable-profile or --disable-profile was given.
3210if test "${enable_profile+set}" = set; then
3211 enableval="$enable_profile"
3212 if test "$enableval" = "no"
3213then
3214 PROFILE_CMT=#
3215 MAKEFILE_PROFILE=/dev/null
3216 echo "Disabling profiling libraries"
3217else
3218 PROFILE_CMT=
3219 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3220 PROFILED_LIB_EXT=_p.a
3221 echo "Building profiling libraries"
3222fi
3223
3224else
3225 PROFILE_CMT=#
3226MAKEFILE_PROFILE=/dev/null
3227echo "Disabling profiling libraries by default"
3228
b0cacab0 3229fi;
93636bde 3230
cdf186e4
TT
3231
3232# Check whether --enable-checker or --disable-checker was given.
3233if test "${enable_checker+set}" = set; then
3234 enableval="$enable_checker"
3235 if test "$enableval" = "no"
3236then
3237 CHECKER_CMT=#
3238 MAKEFILE_CHECKER=/dev/null
3239 echo "Disabling checker libraries"
3240else
3241 CHECKER_CMT=
3242 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3243 echo "Building checker libraries"
3244fi
3245
3246else
3247 CHECKER_CMT=#
3248MAKEFILE_CHECKER=/dev/null
3249echo "Disabling checker libraries by default"
3250
b0cacab0 3251fi;
93636bde
TT
3252
3253
3254
3255
cdf186e4 3256
782bebfd
TT
3257# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3258if test "${enable_jbd_debug+set}" = set; then
3259 enableval="$enable_jbd_debug"
80bfaa3e
TT
3260 if test "$enableval" = "no"
3261then
3262 echo "Disabling journal debugging"
3263else
b0cacab0 3264 cat >>confdefs.h <<\_ACEOF
8cf93332 3265#define CONFIG_JBD_DEBUG 1
b0cacab0 3266_ACEOF
80bfaa3e
TT
3267
3268 echo "Enabling journal debugging"
3269fi
3270
3271else
3272 echo "Disabling journal debugging by default"
3273
b0cacab0 3274fi;
f0a22d0f
TT
3275# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3276if test "${enable_blkid_debug+set}" = set; then
3277 enableval="$enable_blkid_debug"
3278 if test "$enableval" = "no"
3279then
3280 echo "Disabling blkid debugging"
3281else
b0cacab0 3282 cat >>confdefs.h <<\_ACEOF
f0a22d0f 3283#define CONFIG_BLKID_DEBUG 1
b0cacab0 3284_ACEOF
f0a22d0f
TT
3285
3286 echo "Enabling blkid debugging"
3287fi
3288
3289else
3290 echo "Disabling blkid debugging by default"
3291
b0cacab0 3292fi;
2a29f135
TT
3293# Check whether --enable-testio-debug or --disable-testio-debug was given.
3294if test "${enable_testio_debug+set}" = set; then
3295 enableval="$enable_testio_debug"
3296 if test "$enableval" = "no"
3297then
3298 echo "Disabling testio debugging"
3299else
b0cacab0 3300 cat >>confdefs.h <<\_ACEOF
2a29f135 3301#define CONFIG_TESTIO_DEBUG 1
b0cacab0 3302_ACEOF
2a29f135
TT
3303
3304 echo "Enabling testio debugging"
3305fi
3306
3307else
3308 echo "Disabling testio debugging by default"
3309
b0cacab0 3310fi;
877eb6d9
TT
3311# Check whether --enable-swapfs or --disable-swapfs was given.
3312if test "${enable_swapfs+set}" = set; then
3313 enableval="$enable_swapfs"
3314 if test "$enableval" = "no"
3315then
feb44c69 3316 SWAPFS_CMT=#
877eb6d9 3317 echo "Disabling swapfs support"
877eb6d9 3318else
feb44c69 3319 SWAPFS_CMT=
b0cacab0 3320 cat >>confdefs.h <<\_ACEOF
877eb6d9 3321#define ENABLE_SWAPFS 1
b0cacab0 3322_ACEOF
877eb6d9 3323
877eb6d9
TT
3324 echo "Enabling swapfs support"
3325fi
3326
3327else
feb44c69
TT
3328 SWAPFS_CMT=
3329echo "Enabling swapfs support by default"
b0cacab0 3330cat >>confdefs.h <<\_ACEOF
877eb6d9 3331#define ENABLE_SWAPFS 1
b0cacab0 3332_ACEOF
93636bde 3333
93636bde 3334
b0cacab0 3335fi;
feb44c69 3336
cdf186e4
TT
3337# Check whether --enable-debugfs or --disable-debugfs was given.
3338if test "${enable_debugfs+set}" = set; then
3339 enableval="$enable_debugfs"
3340 if test "$enableval" = "no"
3341then
3342 echo "Disabling debugfs support"
3343 DEBUGFS_CMT="#"
3344else
cdf186e4
TT
3345 DEBUGFS_CMT=
3346 echo "Enabling debugfs support"
3347fi
3348
3349else
3350 echo "Enabling debugfs support by default"
cdf186e4
TT
3351DEBUGFS_CMT=
3352
b0cacab0 3353fi;
cdf186e4
TT
3354
3355# Check whether --enable-imager or --disable-imager was given.
3356if test "${enable_imager+set}" = set; then
3357 enableval="$enable_imager"
3358 if test "$enableval" = "no"
3359then
3360 echo "Disabling e2image support"
3361 IMAGER_CMT="#"
3362else
cdf186e4
TT
3363 IMAGER_CMT=
3364 echo "Enabling e2image support"
3365fi
3366
3367else
3368 echo "Enabling e2image support by default"
cdf186e4
TT
3369IMAGER_CMT=
3370
b0cacab0 3371fi;
cdf186e4
TT
3372
3373# Check whether --enable-resizer or --disable-resizer was given.
3374if test "${enable_resizer+set}" = set; then
3375 enableval="$enable_resizer"
3376 if test "$enableval" = "no"
3377then
3378 echo "Disabling e2resize support"
3379 RESIZER_CMT="#"
3380else
cdf186e4
TT
3381 RESIZER_CMT=
3382 echo "Enabling e2resize support"
3383fi
3384
3385else
3386 echo "Enabling e2resize support by default"
cdf186e4
TT
3387RESIZER_CMT=
3388
b0cacab0 3389fi;
cdf186e4
TT
3390
3391# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3392if test "${enable_dynamic_e2fsck+set}" = set; then
3393 enableval="$enable_dynamic_e2fsck"
3394 if test "$enableval" = "no"
3395then
3396 E2FSCK_TYPE=static
3397 echo "Building e2fsck statically"
3398else
3399 E2FSCK_TYPE=shared
3400 echo "Building e2fsck dynamically"
3401fi
3402
3403else
3404 E2FSCK_TYPE=static
3405echo "Building e2fsck statically by default"
3406
b0cacab0 3407fi;
cdf186e4
TT
3408
3409# Check whether --enable-fsck or --disable-fsck was given.
3410if test "${enable_fsck+set}" = set; then
3411 enableval="$enable_fsck"
3412 if test "$enableval" = "no"
3413then
3414 FSCK_PROG='' FSCK_MAN=''
3415 echo "Not building fsck wrapper"
3416else
3417 FSCK_PROG=fsck FSCK_MAN=fsck.8
3418 echo "Building fsck wrapper"
3419fi
3420
3421else
3422 case "$host_os" in
e363240d 3423 gnu*)
cdf186e4
TT
3424 FSCK_PROG='' FSCK_MAN=''
3425 echo "Not building fsck wrapper by default"
3426 ;;
3427 *)
3428 FSCK_PROG=fsck FSCK_MAN=fsck.8
3429 echo "Building fsck wrapper by default"
3430esac
3431
b0cacab0 3432fi;
93636bde 3433
cdf186e4 3434
5d40773b
TT
3435# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3436if test "${enable_e2initrd_helper+set}" = set; then
3437 enableval="$enable_e2initrd_helper"
3438 if test "$enableval" = "no"
3439then
3440 E2INITRD_PROG='' E2INITRD_MAN=''
3441 echo "Not building e2initrd helper"
3442else
3443 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3444 echo "Building e2initrd helper"
3445fi
3446
3447else
3448 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3449echo "Building e2initrd helper by default"
3450
b0cacab0 3451fi;
5d40773b
TT
3452
3453
4db2f59a
KZ
3454# Check whether --enable-blkid-devmapper or --disable-blkid-devmapper was given.
3455if test "${enable_blkid_devmapper+set}" = set; then
3456 enableval="$enable_blkid_devmapper"
3457 if test "$enableval" = "no"
3458then
3459 echo "Disabling device-mapper support"
3460 DEVMAPPER_REQ=''
3461 DEVMAPPER_LIBS=''
3462 STATIC_DEVMAPPER_LIBS=''
3463else
3464 cat >>confdefs.h <<\_ACEOF
3465#define HAVE_DEVMAPPER 1
3466_ACEOF
3467
3468 echo "Enabling device-mapper support"
3469
3470 DEVMAPPER_REQ='libselinux libsepol'
3471 DEVMAPPER_PC_LIBS='-ldevmapper'
cce2f497
TT
3472 DEVMAPPER_LIBS='-lpthread -ldevmapper -lselinux -lsepol'
3473 STATIC_DEVMAPPER_LIBS='-lpthread /usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a'
4db2f59a
KZ
3474
3475fi
3476
3477else
3478 echo "Disabling device-mapper support by default"
3479
3480fi;
3481
3482
3483
3484
cdf186e4
TT
3485MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3486
b0cacab0 3487GETTEXT_PACKAGE=e2fsprogs
a64c9c13
TT
3488PACKAGE=e2fsprogs
3489VERSION="$E2FSPROGS_VERSION"
b0cacab0
TT
3490VERSION=0.14.1
3491cat >>confdefs.h <<_ACEOF
a64c9c13 3492#define PACKAGE "$PACKAGE"
b0cacab0 3493_ACEOF
a64c9c13 3494
b0cacab0 3495cat >>confdefs.h <<_ACEOF
a64c9c13 3496#define VERSION "$VERSION"
b0cacab0 3497_ACEOF
93636bde
TT
3498
3499
93636bde 3500
93636bde
TT
3501
3502
b0cacab0
TT
3503echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3504echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3505set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3506if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3508else
b0cacab0 3509 cat >conftest.make <<\_ACEOF
a64c9c13 3510all:
b0cacab0
TT
3511 @echo 'ac_maketemp="$(MAKE)"'
3512_ACEOF
a64c9c13 3513# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b0cacab0 3514eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
a64c9c13
TT
3515if test -n "$ac_maketemp"; then
3516 eval ac_cv_prog_make_${ac_make}_set=yes
3517else
3518 eval ac_cv_prog_make_${ac_make}_set=no
3519fi
b0cacab0 3520rm -f conftest.make
a64c9c13
TT
3521fi
3522if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b0cacab0
TT
3523 echo "$as_me:$LINENO: result: yes" >&5
3524echo "${ECHO_T}yes" >&6
a64c9c13
TT
3525 SET_MAKE=
3526else
b0cacab0
TT
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
a64c9c13
TT
3529 SET_MAKE="MAKE=${MAKE-make}"
3530fi
3531
a04eba3f
TT
3532# Find a good install program. We prefer a C program (faster),
3533# so one script is as good as another. But avoid the broken or
3534# incompatible versions:
3535# SysV /etc/install, /usr/sbin/install
3536# SunOS /usr/etc/install
3537# IRIX /sbin/install
3538# AIX /bin/install
b0cacab0 3539# AmigaOS /C/install, which installs bootblocks on floppy discs
a04eba3f
TT
3540# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b0cacab0 3543# OS/2's system install, which has a completely different semantic
a04eba3f 3544# ./install, which can be erroneously created by make from ./install.sh.
b0cacab0
TT
3545echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
a04eba3f 3547if test -z "$INSTALL"; then
b0cacab0
TT
3548if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
a04eba3f 3550else
b0cacab0
TT
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3557case $as_dir/ in
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3561 /usr/ucb/* ) ;;
3562 *)
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3565 # by default.
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a04eba3f 3569 if test $ac_prog = install &&
b0cacab0 3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
a04eba3f
TT
3571 # AIX install. It has an incompatible calling convention.
3572 :
b0cacab0
TT
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3576 :
a04eba3f 3577 else
b0cacab0
TT
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579 break 3
a04eba3f
TT
3580 fi
3581 fi
3582 done
b0cacab0
TT
3583 done
3584 ;;
3585esac
3586done
3587
a04eba3f
TT
3588
3589fi
3590 if test "${ac_cv_path_install+set}" = set; then
b0cacab0 3591 INSTALL=$ac_cv_path_install
a04eba3f
TT
3592 else
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
b0cacab0 3597 INSTALL=$ac_install_sh
a04eba3f
TT
3598 fi
3599fi
b0cacab0
TT
3600echo "$as_me:$LINENO: result: $INSTALL" >&5
3601echo "${ECHO_T}$INSTALL" >&6
a04eba3f
TT
3602
3603# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604# It thinks the first close brace ends the variable substitution.
3605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3606
b0cacab0 3607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a04eba3f
TT
3608
3609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3610
93636bde 3611
a04eba3f
TT
3612 MKINSTALLDIRS=
3613 if test -n "$ac_aux_dir"; then
b0cacab0
TT
3614 case "$ac_aux_dir" in
3615 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3616 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3617 esac
a04eba3f
TT
3618 fi
3619 if test -z "$MKINSTALLDIRS"; then
3620 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3621 fi
a04eba3f 3622
a64c9c13 3623
93636bde 3624
b0cacab0
TT
3625 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3626echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3627 # Check whether --enable-nls or --disable-nls was given.
3628if test "${enable_nls+set}" = set; then
3629 enableval="$enable_nls"
3630 USE_NLS=$enableval
a04eba3f 3631else
b0cacab0
TT
3632 USE_NLS=yes
3633fi;
3634 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3635echo "${ECHO_T}$USE_NLS" >&6
3636
3637
a64c9c13 3638
b0cacab0
TT
3639
3640
3641
3642# Prepare PATH_SEPARATOR.
3643# The user is always right.
3644if test "${PATH_SEPARATOR+set}" != set; then
3645 echo "#! /bin/sh" >conf$$.sh
3646 echo "exit 0" >>conf$$.sh
3647 chmod +x conf$$.sh
3648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3649 PATH_SEPARATOR=';'
3650 else
3651 PATH_SEPARATOR=:
3652 fi
3653 rm -f conf$$.sh
93636bde 3654fi
b0cacab0
TT
3655
3656# Find out how to test for executable files. Don't use a zero-byte file,
3657# as systems may use methods other than mode bits to determine executability.
3658cat >conf$$.file <<_ASEOF
3659#! /bin/sh
3660exit 0
3661_ASEOF
3662chmod +x conf$$.file
3663if test -x conf$$.file >/dev/null 2>&1; then
3664 ac_executable_p="test -x"
a64c9c13 3665else
b0cacab0 3666 ac_executable_p="test -f"
a64c9c13 3667fi
b0cacab0 3668rm -f conf$$.file
a64c9c13 3669
b0cacab0
TT
3670# Extract the first word of "msgfmt", so it can be a program name with args.
3671set dummy msgfmt; ac_word=$2
3672echo "$as_me:$LINENO: checking for $ac_word" >&5
3673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674if test "${ac_cv_path_MSGFMT+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 3676else
b0cacab0
TT
3677 case "$MSGFMT" in
3678 [\\/]* | ?:[\\/]*)
3679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3680 ;;
3681 *)
3682 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH; do
3684 IFS="$ac_save_IFS"
3685 test -z "$ac_dir" && ac_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3688 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3689 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3690 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3691 break 2
3692 fi
3693 fi
3694 done
3695 done
3696 IFS="$ac_save_IFS"
3697 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3698 ;;
3699esac
3700fi
3701MSGFMT="$ac_cv_path_MSGFMT"
3702if test "$MSGFMT" != ":"; then
3703 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3704echo "${ECHO_T}$MSGFMT" >&6
07a0db15 3705else
b0cacab0
TT
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
07a0db15 3708fi
07a0db15 3709
b0cacab0
TT
3710 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3711set dummy gmsgfmt; ac_word=$2
3712echo "$as_me:$LINENO: checking for $ac_word" >&5
3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714if test "${ac_cv_path_GMSGFMT+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3716else
b0cacab0
TT
3717 case $GMSGFMT in
3718 [\\/]* | ?:[\\/]*)
3719 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3720 ;;
3721 *)
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733done
3734done
a64c9c13 3735
b0cacab0
TT
3736 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3737 ;;
3738esac
a64c9c13 3739fi
b0cacab0 3740GMSGFMT=$ac_cv_path_GMSGFMT
a64c9c13 3741
b0cacab0
TT
3742if test -n "$GMSGFMT"; then
3743 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3744echo "${ECHO_T}$GMSGFMT" >&6
a64c9c13 3745else
b0cacab0
TT
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
a64c9c13 3748fi
a64c9c13 3749
a64c9c13 3750
93636bde 3751
b0cacab0
TT
3752# Prepare PATH_SEPARATOR.
3753# The user is always right.
3754if test "${PATH_SEPARATOR+set}" != set; then
3755 echo "#! /bin/sh" >conf$$.sh
3756 echo "exit 0" >>conf$$.sh
3757 chmod +x conf$$.sh
3758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3759 PATH_SEPARATOR=';'
3760 else
3761 PATH_SEPARATOR=:
3762 fi
3763 rm -f conf$$.sh
a64c9c13 3764fi
93636bde 3765
b0cacab0
TT
3766# Find out how to test for executable files. Don't use a zero-byte file,
3767# as systems may use methods other than mode bits to determine executability.
3768cat >conf$$.file <<_ASEOF
3769#! /bin/sh
3770exit 0
3771_ASEOF
3772chmod +x conf$$.file
3773if test -x conf$$.file >/dev/null 2>&1; then
3774 ac_executable_p="test -x"
3775else
3776 ac_executable_p="test -f"
a64c9c13 3777fi
b0cacab0 3778rm -f conf$$.file
93636bde 3779
b0cacab0
TT
3780# Extract the first word of "xgettext", so it can be a program name with args.
3781set dummy xgettext; ac_word=$2
3782echo "$as_me:$LINENO: checking for $ac_word" >&5
3783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784if test "${ac_cv_path_XGETTEXT+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3786else
b0cacab0
TT
3787 case "$XGETTEXT" in
3788 [\\/]* | ?:[\\/]*)
3789 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3790 ;;
3791 *)
3792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3793 for ac_dir in $PATH; do
3794 IFS="$ac_save_IFS"
3795 test -z "$ac_dir" && ac_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3798 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3799 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3801 break 2
3802 fi
3803 fi
3804 done
3805 done
3806 IFS="$ac_save_IFS"
3807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3808 ;;
3809esac
a64c9c13 3810fi
b0cacab0
TT
3811XGETTEXT="$ac_cv_path_XGETTEXT"
3812if test "$XGETTEXT" != ":"; then
3813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3814echo "${ECHO_T}$XGETTEXT" >&6
3815else
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
a64c9c13 3818fi
07a0db15 3819
b0cacab0 3820 rm -f messages.po
a64c9c13 3821
a64c9c13 3822
b0cacab0
TT
3823# Prepare PATH_SEPARATOR.
3824# The user is always right.
3825if test "${PATH_SEPARATOR+set}" != set; then
3826 echo "#! /bin/sh" >conf$$.sh
3827 echo "exit 0" >>conf$$.sh
3828 chmod +x conf$$.sh
3829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3830 PATH_SEPARATOR=';'
3831 else
3832 PATH_SEPARATOR=:
3833 fi
3834 rm -f conf$$.sh
a64c9c13 3835fi
a64c9c13 3836
b0cacab0
TT
3837# Find out how to test for executable files. Don't use a zero-byte file,
3838# as systems may use methods other than mode bits to determine executability.
3839cat >conf$$.file <<_ASEOF
3840#! /bin/sh
3841exit 0
3842_ASEOF
3843chmod +x conf$$.file
3844if test -x conf$$.file >/dev/null 2>&1; then
3845 ac_executable_p="test -x"
3846else
3847 ac_executable_p="test -f"
a64c9c13 3848fi
b0cacab0 3849rm -f conf$$.file
93636bde 3850
b0cacab0
TT
3851# Extract the first word of "msgmerge", so it can be a program name with args.
3852set dummy msgmerge; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_path_MSGMERGE+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 3857else
b0cacab0
TT
3858 case "$MSGMERGE" in
3859 [\\/]* | ?:[\\/]*)
3860 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3861 ;;
3862 *)
3863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3864 for ac_dir in $PATH; do
3865 IFS="$ac_save_IFS"
3866 test -z "$ac_dir" && ac_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3869 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3870 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3871 break 2
3872 fi
3873 fi
3874 done
3875 done
3876 IFS="$ac_save_IFS"
3877 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3878 ;;
3879esac
3880fi
3881MSGMERGE="$ac_cv_path_MSGMERGE"
3882if test "$MSGMERGE" != ":"; then
3883 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3884echo "${ECHO_T}$MSGMERGE" >&6
a64c9c13 3885else
b0cacab0
TT
3886 echo "$as_me:$LINENO: result: no" >&5
3887echo "${ECHO_T}no" >&6
a64c9c13 3888fi
07a0db15 3889
a64c9c13 3890
b0cacab0
TT
3891 if test "$GMSGFMT" != ":"; then
3892 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3893 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3894 : ;
3895 else
3896 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3897 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3898echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3899 GMSGFMT=":"
3900 fi
3901 fi
3902
3903 if test "$XGETTEXT" != ":"; then
3904 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3905 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3906 : ;
3907 else
3908 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3909echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3910 XGETTEXT=":"
3911 fi
3912 rm -f messages.po
3913 fi
3914
3915 ac_config_commands="$ac_config_commands default-1"
a64c9c13 3916
b0cacab0
TT
3917
3918if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_RANLIB+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3925else
b0cacab0
TT
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a64c9c13 3928else
b0cacab0
TT
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941done
07a0db15 3942
93636bde 3943fi
b0cacab0
TT
3944fi
3945RANLIB=$ac_cv_prog_RANLIB
3946if test -n "$RANLIB"; then
3947 echo "$as_me:$LINENO: result: $RANLIB" >&5
3948echo "${ECHO_T}$RANLIB" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
a64c9c13
TT
3953
3954fi
b0cacab0
TT
3955if test -z "$ac_cv_prog_RANLIB"; then
3956 ac_ct_RANLIB=$RANLIB
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958set dummy ranlib; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_RANLIB"; then
3965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_RANLIB="ranlib"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
a64c9c13 3980
b0cacab0 3981 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
93636bde 3982fi
b0cacab0
TT
3983fi
3984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985if test -n "$ac_ct_RANLIB"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3987echo "${ECHO_T}$ac_ct_RANLIB" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 RANLIB=$ac_ct_RANLIB
3994else
3995 RANLIB="$ac_cv_prog_RANLIB"
93636bde
TT
3996fi
3997
a64c9c13 3998
b0cacab0
TT
3999 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4000echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4001if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003else
4004 ac_check_lib_save_LIBS=$LIBS
4005LIBS="-lcposix $LIBS"
4006cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012
4013/* Override any gcc2 internal prototype to avoid an error. */
4014#ifdef __cplusplus
4015extern "C"
4016#endif
4017/* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4019char strerror ();
4020int
4021main ()
4022{
4023strerror ();
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028rm -f conftest.$ac_objext conftest$ac_exeext
4029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>conftest.er1
4031 ac_status=$?
4032 grep -v '^ *+' conftest.er1 >conftest.err
4033 rm -f conftest.er1
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 ac_cv_lib_cposix_strerror=yes
4050else
4051 echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054ac_cv_lib_cposix_strerror=no
4055fi
4056rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058LIBS=$ac_check_lib_save_LIBS
4059fi
4060echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4061echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4062if test $ac_cv_lib_cposix_strerror = yes; then
4063 LIBS="$LIBS -lcposix"
a64c9c13
TT
4064fi
4065
b0cacab0
TT
4066
4067
4068echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4069echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4070if test "${ac_cv_c_const+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4072else
b0cacab0
TT
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
93636bde 4079
b0cacab0
TT
4080int
4081main ()
4082{
4083/* FIXME: Include the comments suggested by Paul. */
4084#ifndef __cplusplus
4085 /* Ultrix mips cc rejects this. */
4086 typedef int charset[2];
4087 const charset x;
4088 /* SunOS 4.1.1 cc rejects this. */
4089 char const *const *ccp;
4090 char **p;
4091 /* NEC SVR4.0.2 mips cc rejects this. */
4092 struct point {int x, y;};
4093 static struct point const zero = {0,0};
4094 /* AIX XL C 1.02.0.0 rejects this.
4095 It does not let you subtract one const X* pointer from another in
4096 an arm of an if-expression whose if-part is not a constant
4097 expression */
4098 const char *g = "string";
4099 ccp = &g + (g ? g-g : 0);
4100 /* HPUX 7.0 cc rejects these. */
4101 ++ccp;
4102 p = (char**) ccp;
4103 ccp = (char const *const *) p;
4104 { /* SCO 3.2v4 cc rejects this. */
4105 char *t;
4106 char const *s = 0 ? (char *) 0 : (char const *) 0;
4107
4108 *t++ = 0;
4109 }
4110 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4111 int x[] = {25, 17};
4112 const int *foo = &x[0];
4113 ++foo;
4114 }
4115 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4116 typedef const int *iptr;
4117 iptr p = 0;
4118 ++p;
4119 }
4120 { /* AIX XL C 1.02.0.0 rejects this saying
4121 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4122 struct s { int j; const int *ap[3]; };
4123 struct s *b; b->j = 5;
4124 }
4125 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4126 const int foo = 10;
4127 }
a64c9c13
TT
4128#endif
4129
b0cacab0
TT
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_c_const=yes
a64c9c13 4156else
b0cacab0
TT
4157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160ac_cv_c_const=no
a64c9c13 4161fi
b0cacab0 4162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a64c9c13 4163fi
b0cacab0
TT
4164echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4165echo "${ECHO_T}$ac_cv_c_const" >&6
4166if test $ac_cv_c_const = no; then
a64c9c13 4167
b0cacab0
TT
4168cat >>confdefs.h <<\_ACEOF
4169#define const
4170_ACEOF
a64c9c13 4171
93636bde 4172fi
07a0db15 4173
a64c9c13 4174
b0cacab0
TT
4175 echo "$as_me:$LINENO: checking for signed" >&5
4176echo $ECHO_N "checking for signed... $ECHO_C" >&6
4177if test "${bh_cv_c_signed+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h. */
4186
4187int
4188main ()
4189{
4190signed char x;
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 (eval $ac_try) 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 bh_cv_c_signed=yes
4217else
4218 echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221bh_cv_c_signed=no
4222fi
4223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4224fi
4225echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4226echo "${ECHO_T}$bh_cv_c_signed" >&6
4227 if test $bh_cv_c_signed = no; then
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define signed
4231_ACEOF
93636bde 4232
b0cacab0
TT
4233 fi
4234
4235echo "$as_me:$LINENO: checking for inline" >&5
4236echo $ECHO_N "checking for inline... $ECHO_C" >&6
4237if test "${ac_cv_c_inline+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4239else
b0cacab0
TT
4240 ac_cv_c_inline=no
4241for ac_kw in inline __inline__ __inline; do
4242 cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h. */
4248#ifndef __cplusplus
4249typedef int foo_t;
4250static $ac_kw foo_t static_foo () {return 0; }
4251$ac_kw foo_t foo () {return 0; }
a64c9c13
TT
4252#endif
4253
b0cacab0
TT
4254_ACEOF
4255rm -f conftest.$ac_objext
4256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_c_inline=$ac_kw; break
a64c9c13 4277else
b0cacab0
TT
4278 echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
a64c9c13
TT
4280
4281fi
b0cacab0
TT
4282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4283done
93636bde 4284
b0cacab0
TT
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4287echo "${ECHO_T}$ac_cv_c_inline" >&6
93636bde 4288
a64c9c13 4289
b0cacab0
TT
4290case $ac_cv_c_inline in
4291 inline | yes) ;;
4292 *)
4293 case $ac_cv_c_inline in
4294 no) ac_val=;;
4295 *) ac_val=$ac_cv_c_inline;;
4296 esac
4297 cat >>confdefs.h <<_ACEOF
4298#ifndef __cplusplus
4299#define inline $ac_val
a64c9c13 4300#endif
b0cacab0
TT
4301_ACEOF
4302 ;;
4303esac
a64c9c13 4304
b0cacab0
TT
4305echo "$as_me:$LINENO: checking for off_t" >&5
4306echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4307if test "${ac_cv_type_off_t+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317int
4318main ()
4319{
4320if ((off_t *) 0)
4321 return 0;
4322if (sizeof (off_t))
4323 return 0;
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_type_off_t=yes
93636bde 4350else
b0cacab0
TT
4351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354ac_cv_type_off_t=no
93636bde 4355fi
b0cacab0 4356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
93636bde 4357fi
b0cacab0
TT
4358echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4359echo "${ECHO_T}$ac_cv_type_off_t" >&6
4360if test $ac_cv_type_off_t = yes; then
4361 :
93636bde 4362else
a64c9c13 4363
b0cacab0
TT
4364cat >>confdefs.h <<_ACEOF
4365#define off_t long
4366_ACEOF
4367
a64c9c13
TT
4368fi
4369
b0cacab0
TT
4370echo "$as_me:$LINENO: checking for size_t" >&5
4371echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4372if test "${ac_cv_type_size_t+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4374else
b0cacab0
TT
4375 cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
4381$ac_includes_default
4382int
a64c9c13
TT
4383main ()
4384{
b0cacab0
TT
4385if ((size_t *) 0)
4386 return 0;
4387if (sizeof (size_t))
4388 return 0;
4389 ;
4390 return 0;
a64c9c13 4391}
b0cacab0
TT
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_size_t=yes
a64c9c13 4415else
b0cacab0
TT
4416 echo "$as_me: failed program was:" >&5
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419ac_cv_type_size_t=no
a64c9c13 4420fi
b0cacab0 4421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a64c9c13 4422fi
b0cacab0
TT
4423echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425if test $ac_cv_type_size_t = yes; then
4426 :
4427else
4428
4429cat >>confdefs.h <<_ACEOF
4430#define size_t unsigned
4431_ACEOF
93636bde 4432
a64c9c13
TT
4433fi
4434
a64c9c13 4435
b0cacab0
TT
4436 echo "$as_me:$LINENO: checking for long long" >&5
4437echo $ECHO_N "checking for long long... $ECHO_C" >&6
4438if test "${ac_cv_type_long_long+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447long long ll = 1LL; int i = 63;
4448int
4449main ()
4450{
4451long long llmax = (long long) -1;
4452 return ll << i | ll >> i | llmax / ll | llmax % ll;
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext conftest$ac_exeext
4458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_type_long_long=yes
4479else
4480 echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483ac_cv_type_long_long=no
4484fi
4485rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4489echo "${ECHO_T}$ac_cv_type_long_long" >&6
4490 if test $ac_cv_type_long_long = yes; then
4491
4492cat >>confdefs.h <<\_ACEOF
4493#define HAVE_LONG_LONG 1
4494_ACEOF
a64c9c13 4495
b0cacab0
TT
4496 fi
4497
4498
4499 echo "$as_me:$LINENO: checking for long double" >&5
4500echo $ECHO_N "checking for long double... $ECHO_C" >&6
4501if test "${gt_cv_c_long_double+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 4503else
b0cacab0
TT
4504 if test "$GCC" = yes; then
4505 gt_cv_c_long_double=yes
4506 else
4507 cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
4513
4514 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4515 long double foo = 0.0;
4516 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4517 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
a64c9c13 4518
b0cacab0
TT
4519int
4520main ()
4521{
93636bde 4522
b0cacab0
TT
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527rm -f conftest.$ac_objext
4528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 gt_cv_c_long_double=yes
4549else
4550 echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553gt_cv_c_long_double=no
4554fi
4555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4556 fi
4557fi
4558echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4559echo "${ECHO_T}$gt_cv_c_long_double" >&6
4560 if test $gt_cv_c_long_double = yes; then
4561
4562cat >>confdefs.h <<\_ACEOF
4563#define HAVE_LONG_DOUBLE 1
4564_ACEOF
a64c9c13 4565
b0cacab0 4566 fi
a64c9c13 4567
a64c9c13 4568
b0cacab0
TT
4569 echo "$as_me:$LINENO: checking for wchar_t" >&5
4570echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4571if test "${gt_cv_c_wchar_t+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 4573else
b0cacab0
TT
4574 cat >conftest.$ac_ext <<_ACEOF
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
4580#include <stddef.h>
4581 wchar_t foo = (wchar_t)'\0';
4582int
4583main ()
4584{
a64c9c13 4585
b0cacab0
TT
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 gt_cv_c_wchar_t=yes
4612else
4613 echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616gt_cv_c_wchar_t=no
4617fi
4618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4619fi
4620echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4621echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4622 if test $gt_cv_c_wchar_t = yes; then
4623
4624cat >>confdefs.h <<\_ACEOF
4625#define HAVE_WCHAR_T 1
4626_ACEOF
4627
4628 fi
4629
4630
4631 echo "$as_me:$LINENO: checking for wint_t" >&5
4632echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4633if test "${gt_cv_c_wint_t+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4635else
b0cacab0
TT
4636 cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
4642#include <wchar.h>
4643 wint_t foo = (wchar_t)'\0';
4644int
4645main ()
4646{
93636bde 4647
b0cacab0
TT
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 gt_cv_c_wint_t=yes
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678gt_cv_c_wint_t=no
4679fi
4680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681fi
4682echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4683echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4684 if test $gt_cv_c_wint_t = yes; then
4685
4686cat >>confdefs.h <<\_ACEOF
4687#define HAVE_WINT_T 1
4688_ACEOF
a64c9c13 4689
b0cacab0
TT
4690 fi
4691
4692
4693 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4694echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4695if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
93636bde 4704#include <sys/types.h>
b0cacab0
TT
4705#include <inttypes.h>
4706int
4707main ()
4708{
4709uintmax_t i = (uintmax_t) -1;
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 jm_ac_cv_header_inttypes_h=yes
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
a64c9c13 4739
b0cacab0
TT
4740jm_ac_cv_header_inttypes_h=no
4741fi
4742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4745echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4746 if test $jm_ac_cv_header_inttypes_h = yes; then
93636bde 4747
b0cacab0
TT
4748cat >>confdefs.h <<_ACEOF
4749#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4750_ACEOF
a64c9c13 4751
b0cacab0 4752 fi
a64c9c13 4753
a64c9c13 4754
b0cacab0
TT
4755 echo "$as_me:$LINENO: checking for stdint.h" >&5
4756echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4757if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h. */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h. */
4766#include <sys/types.h>
4767#include <stdint.h>
4768int
4769main ()
4770{
4771uintmax_t i = (uintmax_t) -1;
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776rm -f conftest.$ac_objext
4777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 jm_ac_cv_header_stdint_h=yes
4798else
4799 echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802jm_ac_cv_header_stdint_h=no
4803fi
4804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4807echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4808 if test $jm_ac_cv_header_stdint_h = yes; then
4809
4810cat >>confdefs.h <<_ACEOF
4811#define HAVE_STDINT_H_WITH_UINTMAX 1
4812_ACEOF
4813
4814 fi
4815
4816
4817
4818
4819 echo "$as_me:$LINENO: checking for intmax_t" >&5
4820echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4821if test "${gt_cv_c_intmax_t+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h. */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h. */
4830
4831#include <stddef.h>
4832#include <stdlib.h>
4833#if HAVE_STDINT_H_WITH_UINTMAX
4834#include <stdint.h>
4835#endif
4836#if HAVE_INTTYPES_H_WITH_UINTMAX
4837#include <inttypes.h>
93636bde
TT
4838#endif
4839
a64c9c13 4840int
b0cacab0
TT
4841main ()
4842{
4843intmax_t x = -1;
4844 ;
4845 return 0;
a64c9c13 4846}
b0cacab0
TT
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 gt_cv_c_intmax_t=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874gt_cv_c_intmax_t=no
4875fi
4876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877fi
4878echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4879echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4880 if test $gt_cv_c_intmax_t = yes; then
4881
4882cat >>confdefs.h <<\_ACEOF
4883#define HAVE_INTMAX_T 1
4884_ACEOF
93636bde 4885
b0cacab0
TT
4886 fi
4887
4888
4889
4890 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4891echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4892if test "${gt_cv_func_printf_posix+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4894else
b0cacab0
TT
4895
4896 if test "$cross_compiling" = yes; then
4897
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904
4905#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4906 notposix
4907#endif
4908
4909_ACEOF
4910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "notposix" >/dev/null 2>&1; then
4912 gt_cv_func_printf_posix="guessing no"
4913else
4914 gt_cv_func_printf_posix="guessing yes"
a64c9c13 4915fi
b0cacab0
TT
4916rm -f conftest*
4917
4918
4919else
4920 cat >conftest.$ac_ext <<_ACEOF
4921/* confdefs.h. */
4922_ACEOF
4923cat confdefs.h >>conftest.$ac_ext
4924cat >>conftest.$ac_ext <<_ACEOF
4925/* end confdefs.h. */
4926
4927#include <stdio.h>
4928#include <string.h>
4929/* The string "%2$d %1$d", with dollar characters protected from the shell's
4930 dollar expansion (possibly an autoconf bug). */
4931static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4932static char buf[100];
4933int main ()
4934{
4935 sprintf (buf, format, 33, 55);
4936 return (strcmp (buf, "55 33") != 0);
4937}
4938_ACEOF
4939rm -f conftest$ac_exeext
4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 gt_cv_func_printf_posix=yes
4951else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956( exit $ac_status )
4957gt_cv_func_printf_posix=no
4958fi
4959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a64c9c13 4960fi
93636bde 4961
a64c9c13 4962fi
b0cacab0
TT
4963echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4964echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4965 case $gt_cv_func_printf_posix in
4966 *yes)
07a0db15 4967
b0cacab0
TT
4968cat >>confdefs.h <<\_ACEOF
4969#define HAVE_POSIX_PRINTF 1
4970_ACEOF
4971
4972 ;;
4973 esac
4974
4975# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4976# for constant arguments. Useless!
4977echo "$as_me:$LINENO: checking for working alloca.h" >&5
4978echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4979if test "${ac_cv_working_alloca_h+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
4988#include <alloca.h>
4989int
4990main ()
4991{
4992char *p = (char *) alloca (2 * sizeof (int));
4993 ;
4994 return 0;
4995}
4996_ACEOF
4997rm -f conftest.$ac_objext conftest$ac_exeext
4998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999 (eval $ac_link) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_working_alloca_h=yes
5019else
5020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023ac_cv_working_alloca_h=no
5024fi
5025rm -f conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5027fi
5028echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5029echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5030if test $ac_cv_working_alloca_h = yes; then
5031
5032cat >>confdefs.h <<\_ACEOF
5033#define HAVE_ALLOCA_H 1
5034_ACEOF
a64c9c13
TT
5035
5036fi
5037
b0cacab0
TT
5038echo "$as_me:$LINENO: checking for alloca" >&5
5039echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5040if test "${ac_cv_func_alloca_works+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049#ifdef __GNUC__
5050# define alloca __builtin_alloca
5051#else
5052# ifdef _MSC_VER
5053# include <malloc.h>
5054# define alloca _alloca
5055# else
5056# if HAVE_ALLOCA_H
5057# include <alloca.h>
5058# else
5059# ifdef _AIX
5060 #pragma alloca
5061# else
5062# ifndef alloca /* predefined by HP cc +Olibcalls */
5063char *alloca ();
5064# endif
5065# endif
5066# endif
5067# endif
5068#endif
93636bde 5069
b0cacab0
TT
5070int
5071main ()
5072{
5073char *p = (char *) alloca (1);
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext conftest$ac_exeext
5079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_cv_func_alloca_works=yes
a64c9c13 5100else
b0cacab0
TT
5101 echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
a04eba3f 5103
b0cacab0
TT
5104ac_cv_func_alloca_works=no
5105fi
5106rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5108fi
5109echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5110echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5111
5112if test $ac_cv_func_alloca_works = yes; then
5113
5114cat >>confdefs.h <<\_ACEOF
5115#define HAVE_ALLOCA 1
5116_ACEOF
5117
5118else
5119 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5120# that cause trouble. Some versions do not even contain alloca or
5121# contain a buggy version. If you still want to use their alloca,
5122# use ar to extract alloca.o from them instead of compiling alloca.c.
5123
5124ALLOCA=alloca.$ac_objext
5125
5126cat >>confdefs.h <<\_ACEOF
5127#define C_ALLOCA 1
5128_ACEOF
5129
5130
5131echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5132echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5133if test "${ac_cv_os_cray+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142#if defined(CRAY) && ! defined(CRAY2)
5143webecray
5144#else
5145wenotbecray
a04eba3f 5146#endif
b0cacab0
TT
5147
5148_ACEOF
a04eba3f 5149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0cacab0
TT
5150 $EGREP "webecray" >/dev/null 2>&1; then
5151 ac_cv_os_cray=yes
a64c9c13 5152else
b0cacab0 5153 ac_cv_os_cray=no
a64c9c13
TT
5154fi
5155rm -f conftest*
a04eba3f 5156
a64c9c13 5157fi
b0cacab0
TT
5158echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5159echo "${ECHO_T}$ac_cv_os_cray" >&6
5160if test $ac_cv_os_cray = yes; then
5161 for ac_func in _getb67 GETB67 getb67; do
5162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5163echo "$as_me:$LINENO: checking for $ac_func" >&5
5164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5165if eval "test \"\${$as_ac_var+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5176#define $ac_func innocuous_$ac_func
a64c9c13 5177
b0cacab0
TT
5178/* System header to define __stub macros and hopefully few prototypes,
5179 which can conflict with char $ac_func (); below.
5180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 <limits.h> exists even on freestanding compilers. */
07a0db15 5182
b0cacab0
TT
5183#ifdef __STDC__
5184# include <limits.h>
5185#else
5186# include <assert.h>
5187#endif
a64c9c13 5188
b0cacab0 5189#undef $ac_func
a64c9c13 5190
b0cacab0 5191/* Override any gcc2 internal prototype to avoid an error. */
a04eba3f 5192#ifdef __cplusplus
b0cacab0
TT
5193extern "C"
5194{
5195#endif
5196/* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198char $ac_func ();
5199/* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5203choke me
a64c9c13 5204#else
b0cacab0 5205char (*f) () = $ac_func;
a64c9c13 5206#endif
b0cacab0
TT
5207#ifdef __cplusplus
5208}
5209#endif
5210
5211int
5212main ()
a04eba3f 5213{
b0cacab0
TT
5214return f != $ac_func;
5215 ;
5216 return 0;
a04eba3f 5217}
b0cacab0
TT
5218_ACEOF
5219rm -f conftest.$ac_objext conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 eval "$as_ac_var=yes"
5241else
5242 echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245eval "$as_ac_var=no"
5246fi
5247rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5249fi
5250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252if test `eval echo '${'$as_ac_var'}'` = yes; then
5253
5254cat >>confdefs.h <<_ACEOF
5255#define CRAY_STACKSEG_END $ac_func
5256_ACEOF
a04eba3f 5257
b0cacab0
TT
5258 break
5259fi
a04eba3f 5260
b0cacab0
TT
5261 done
5262fi
5263
5264echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5265echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5266if test "${ac_cv_c_stack_direction+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269 if test "$cross_compiling" = yes; then
5270 ac_cv_c_stack_direction=0
5271else
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278int
5279find_stack_direction ()
5280{
5281 static char *addr = 0;
5282 auto char dummy;
5283 if (addr == 0)
5284 {
5285 addr = &dummy;
5286 return find_stack_direction ();
5287 }
5288 else
5289 return (&dummy > addr) ? 1 : -1;
5290}
5291
5292int
5293main ()
5294{
5295 exit (find_stack_direction () < 0);
5296}
5297_ACEOF
5298rm -f conftest$ac_exeext
5299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_c_stack_direction=1
5310else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315( exit $ac_status )
5316ac_cv_c_stack_direction=-1
5317fi
5318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5319fi
5320fi
5321echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5322echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5323
5324cat >>confdefs.h <<_ACEOF
5325#define STACK_DIRECTION $ac_cv_c_stack_direction
5326_ACEOF
5327
5328
5329fi
5330
5331
5332
5333for ac_header in stdlib.h unistd.h
5334do
5335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo "$as_me:$LINENO: checking for $ac_header" >&5
5338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341fi
5342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5344else
5345 # Is the header compilable?
5346echo "$as_me:$LINENO: checking $ac_header usability" >&5
5347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5348cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h. */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h. */
5354$ac_includes_default
5355#include <$ac_header>
5356_ACEOF
5357rm -f conftest.$ac_objext
5358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5379else
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383ac_header_compiler=no
5384fi
5385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387echo "${ECHO_T}$ac_header_compiler" >&6
5388
5389# Is the header present?
5390echo "$as_me:$LINENO: checking $ac_header presence" >&5
5391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h. */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h. */
5398#include <$ac_header>
5399_ACEOF
5400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 else
5412 ac_cpp_err=
5413 fi
5414else
5415 ac_cpp_err=yes
5416fi
5417if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ac_header_preproc=no
5424fi
5425rm -f conftest.err conftest.$ac_ext
5426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427echo "${ECHO_T}$ac_header_preproc" >&6
5428
5429# So? What about this header?
5430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431 yes:no: )
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5437 ;;
5438 no:yes:* )
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5451 (
5452 cat <<\_ASBOX
5453## ------------------------------------------ ##
5454## Report this to the AC_PACKAGE_NAME lists. ##
5455## ------------------------------------------ ##
5456_ASBOX
5457 ) |
5458 sed "s/^/$as_me: WARNING: /" >&2
5459 ;;
5460esac
5461echo "$as_me:$LINENO: checking for $ac_header" >&5
5462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 eval "$as_ac_Header=\$ac_header_preproc"
5467fi
5468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5470
5471fi
5472if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475_ACEOF
5476
5477fi
5478
5479done
5480
5481
5482for ac_func in getpagesize
5483do
5484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5485echo "$as_me:$LINENO: checking for $ac_func" >&5
5486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5487if eval "test \"\${$as_ac_var+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h. */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h. */
5496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5498#define $ac_func innocuous_$ac_func
5499
5500/* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func (); below.
5502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 <limits.h> exists even on freestanding compilers. */
5504
5505#ifdef __STDC__
5506# include <limits.h>
5507#else
5508# include <assert.h>
5509#endif
5510
5511#undef $ac_func
5512
5513/* Override any gcc2 internal prototype to avoid an error. */
5514#ifdef __cplusplus
5515extern "C"
5516{
5517#endif
5518/* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5520char $ac_func ();
5521/* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525choke me
5526#else
5527char (*f) () = $ac_func;
5528#endif
5529#ifdef __cplusplus
5530}
5531#endif
5532
5533int
5534main ()
5535{
5536return f != $ac_func;
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext conftest$ac_exeext
5542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 eval "$as_ac_var=yes"
5563else
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567eval "$as_ac_var=no"
5568fi
5569rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571fi
5572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5574if test `eval echo '${'$as_ac_var'}'` = yes; then
5575 cat >>confdefs.h <<_ACEOF
5576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5577_ACEOF
5578
5579fi
5580done
5581
5582echo "$as_me:$LINENO: checking for working mmap" >&5
5583echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5584if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_func_mmap_fixed_mapped=no
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596$ac_includes_default
5597/* malloc might have been renamed as rpl_malloc. */
5598#undef malloc
5599
5600/* Thanks to Mike Haertel and Jim Avera for this test.
5601 Here is a matrix of mmap possibilities:
5602 mmap private not fixed
5603 mmap private fixed at somewhere currently unmapped
5604 mmap private fixed at somewhere already mapped
5605 mmap shared not fixed
5606 mmap shared fixed at somewhere currently unmapped
5607 mmap shared fixed at somewhere already mapped
5608 For private mappings, we should verify that changes cannot be read()
5609 back from the file, nor mmap's back from the file at a different
5610 address. (There have been systems where private was not correctly
5611 implemented like the infamous i386 svr4.0, and systems where the
5612 VM page cache was not coherent with the file system buffer cache
5613 like early versions of FreeBSD and possibly contemporary NetBSD.)
5614 For shared mappings, we should conversely verify that changes get
5615 propagated back to all the places they're supposed to be.
5616
5617 Grep wants private fixed already mapped.
5618 The main things grep needs to know about mmap are:
5619 * does it exist and is it safe to write into the mmap'd area
5620 * how to use it (BSD variants) */
5621
5622#include <fcntl.h>
5623#include <sys/mman.h>
5624
5625#if !STDC_HEADERS && !HAVE_STDLIB_H
5626char *malloc ();
5627#endif
5628
5629/* This mess was copied from the GNU getpagesize.h. */
5630#if !HAVE_GETPAGESIZE
5631/* Assume that all systems that can run configure have sys/param.h. */
5632# if !HAVE_SYS_PARAM_H
5633# define HAVE_SYS_PARAM_H 1
5634# endif
5635
5636# ifdef _SC_PAGESIZE
5637# define getpagesize() sysconf(_SC_PAGESIZE)
5638# else /* no _SC_PAGESIZE */
5639# if HAVE_SYS_PARAM_H
5640# include <sys/param.h>
5641# ifdef EXEC_PAGESIZE
5642# define getpagesize() EXEC_PAGESIZE
5643# else /* no EXEC_PAGESIZE */
5644# ifdef NBPG
5645# define getpagesize() NBPG * CLSIZE
5646# ifndef CLSIZE
5647# define CLSIZE 1
5648# endif /* no CLSIZE */
5649# else /* no NBPG */
5650# ifdef NBPC
5651# define getpagesize() NBPC
5652# else /* no NBPC */
5653# ifdef PAGESIZE
5654# define getpagesize() PAGESIZE
5655# endif /* PAGESIZE */
5656# endif /* no NBPC */
5657# endif /* no NBPG */
5658# endif /* no EXEC_PAGESIZE */
5659# else /* no HAVE_SYS_PARAM_H */
5660# define getpagesize() 8192 /* punt totally */
5661# endif /* no HAVE_SYS_PARAM_H */
5662# endif /* no _SC_PAGESIZE */
5663
5664#endif /* no HAVE_GETPAGESIZE */
5665
5666int
5667main ()
5668{
5669 char *data, *data2, *data3;
5670 int i, pagesize;
5671 int fd;
5672
5673 pagesize = getpagesize ();
5674
5675 /* First, make a file with some known garbage in it. */
5676 data = (char *) malloc (pagesize);
5677 if (!data)
5678 exit (1);
5679 for (i = 0; i < pagesize; ++i)
5680 *(data + i) = rand ();
5681 umask (0);
5682 fd = creat ("conftest.mmap", 0600);
5683 if (fd < 0)
5684 exit (1);
5685 if (write (fd, data, pagesize) != pagesize)
5686 exit (1);
5687 close (fd);
5688
5689 /* Next, try to mmap the file at a fixed address which already has
5690 something else allocated at it. If we can, also make sure that
5691 we see the same garbage. */
5692 fd = open ("conftest.mmap", O_RDWR);
5693 if (fd < 0)
5694 exit (1);
5695 data2 = (char *) malloc (2 * pagesize);
5696 if (!data2)
5697 exit (1);
5698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5701 exit (1);
5702 for (i = 0; i < pagesize; ++i)
5703 if (*(data + i) != *(data2 + i))
5704 exit (1);
5705
5706 /* Finally, make sure that changes to the mapped area do not
5707 percolate back to the file as seen by read(). (This is a bug on
5708 some variants of i386 svr4.0.) */
5709 for (i = 0; i < pagesize; ++i)
5710 *(data2 + i) = *(data2 + i) + 1;
5711 data3 = (char *) malloc (pagesize);
5712 if (!data3)
5713 exit (1);
5714 if (read (fd, data3, pagesize) != pagesize)
5715 exit (1);
5716 for (i = 0; i < pagesize; ++i)
5717 if (*(data + i) != *(data3 + i))
5718 exit (1);
5719 close (fd);
5720 exit (0);
5721}
5722_ACEOF
5723rm -f conftest$ac_exeext
5724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_func_mmap_fixed_mapped=yes
5735else
5736 echo "$as_me: program exited with status $ac_status" >&5
5737echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740( exit $ac_status )
5741ac_cv_func_mmap_fixed_mapped=no
5742fi
5743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5744fi
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5747echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5748if test $ac_cv_func_mmap_fixed_mapped = yes; then
5749
5750cat >>confdefs.h <<\_ACEOF
5751#define HAVE_MMAP 1
5752_ACEOF
5753
5754fi
5755rm -f conftest.mmap
5756
5757
5758 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5759echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5760if test "${ac_cv_gnu_library_2_1+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763 cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
5769
5770#include <features.h>
5771#ifdef __GNU_LIBRARY__
5772 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5773 Lucky GNU user
5774 #endif
5775#endif
5776
5777_ACEOF
5778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5780 ac_cv_gnu_library_2_1=yes
5781else
5782 ac_cv_gnu_library_2_1=no
5783fi
5784rm -f conftest*
5785
5786
5787
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5790echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5791
5792 GLIBC21="$ac_cv_gnu_library_2_1"
5793
5794
5795
5796
5797 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5798echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5799if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802
5803 if test "$cross_compiling" = yes; then
5804
5805 # Guess based on the CPU.
5806 case "$host_cpu" in
5807 alpha* | i3456786 | m68k | s390*)
5808 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5809 *)
5810 gt_cv_int_divbyzero_sigfpe="guessing no";;
5811 esac
5812
5813else
5814 cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820
5821#include <stdlib.h>
5822#include <signal.h>
5823
5824static void
5825#ifdef __cplusplus
5826sigfpe_handler (int sig)
5827#else
5828sigfpe_handler (sig) int sig;
5829#endif
5830{
5831 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5832 exit (sig != SIGFPE);
5833}
5834
5835int x = 1;
5836int y = 0;
5837int z;
5838int nan;
5839
5840int main ()
a04eba3f
TT
5841{
5842 signal (SIGFPE, sigfpe_handler);
5843/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5844#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5845 signal (SIGTRAP, sigfpe_handler);
5846#endif
5847/* Linux/SPARC yields signal SIGILL. */
5848#if defined (__sparc__) && defined (__linux__)
5849 signal (SIGILL, sigfpe_handler);
5850#endif
5851
5852 z = x / y;
5853 nan = y / y;
5854 exit (1);
5855}
a64c9c13 5856
b0cacab0
TT
5857_ACEOF
5858rm -f conftest$ac_exeext
5859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
a04eba3f 5869 gt_cv_int_divbyzero_sigfpe=yes
a64c9c13 5870else
b0cacab0
TT
5871 echo "$as_me: program exited with status $ac_status" >&5
5872echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875( exit $ac_status )
5876gt_cv_int_divbyzero_sigfpe=no
5877fi
5878rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5879fi
5880
5881fi
5882echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5883echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5884 case "$gt_cv_int_divbyzero_sigfpe" in
5885 *yes) value=1;;
5886 *) value=0;;
5887 esac
5888
5889cat >>confdefs.h <<_ACEOF
5890#define INTDIV0_RAISES_SIGFPE $value
5891_ACEOF
5892
5893
5894
5895 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5896echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5897if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906unsigned long long ull = 1ULL; int i = 63;
5907int
5908main ()
5909{
5910unsigned long long ullmax = (unsigned long long) -1;
5911 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext conftest$ac_exeext
5917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_type_unsigned_long_long=yes
5938else
5939 echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942ac_cv_type_unsigned_long_long=no
5943fi
5944rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5946fi
5947echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5948echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5949 if test $ac_cv_type_unsigned_long_long = yes; then
5950
5951cat >>confdefs.h <<\_ACEOF
5952#define HAVE_UNSIGNED_LONG_LONG 1
5953_ACEOF
5954
5955 fi
5956
5957
5958
5959
5960 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5961
5962 test $ac_cv_type_unsigned_long_long = yes \
5963 && ac_type='unsigned long long' \
5964 || ac_type='unsigned long'
5965
5966cat >>confdefs.h <<_ACEOF
5967#define uintmax_t $ac_type
5968_ACEOF
5969
5970 else
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_UINTMAX_T 1
5974_ACEOF
5975
5976 fi
5977
5978
5979 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5980echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5981if test "${gt_cv_header_inttypes_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984
5985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
5991#include <sys/types.h>
5992#include <inttypes.h>
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 gt_cv_header_inttypes_h=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027gt_cv_header_inttypes_h=no
6028fi
6029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030
6031fi
6032echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6033echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6034 if test $gt_cv_header_inttypes_h = yes; then
6035
6036cat >>confdefs.h <<_ACEOF
6037#define HAVE_INTTYPES_H 1
6038_ACEOF
6039
6040 fi
6041
6042
6043
6044 if test $gt_cv_header_inttypes_h = yes; then
6045 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6046echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6047if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050
6051 cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h. */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h. */
6057#include <inttypes.h>
6058#ifdef PRId32
6059char *p = PRId32;
6060#endif
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 gt_cv_inttypes_pri_broken=no
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096gt_cv_inttypes_pri_broken=yes
6097fi
6098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099
6100fi
6101echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6102echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6103 fi
6104 if test "$gt_cv_inttypes_pri_broken" = yes; then
6105
6106cat >>confdefs.h <<_ACEOF
6107#define PRI_MACROS_BROKEN 1
6108_ACEOF
6109
6110 fi
6111
6112
6113
6114for ac_header in stdint.h
6115do
6116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo "$as_me:$LINENO: checking for $ac_header" >&5
6119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122fi
6123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6125else
6126 # Is the header compilable?
6127echo "$as_me:$LINENO: checking $ac_header usability" >&5
6128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6129cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135$ac_includes_default
6136#include <$ac_header>
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler=yes
6160else
6161 echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164ac_header_compiler=no
6165fi
6166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168echo "${ECHO_T}$ac_header_compiler" >&6
6169
6170# Is the header present?
6171echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179#include <$ac_header>
6180_ACEOF
6181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192 else
6193 ac_cpp_err=
6194 fi
6195else
6196 ac_cpp_err=yes
6197fi
6198if test -z "$ac_cpp_err"; then
6199 ac_header_preproc=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_header_preproc=no
6205fi
6206rm -f conftest.err conftest.$ac_ext
6207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208echo "${ECHO_T}$ac_header_preproc" >&6
6209
6210# So? What about this header?
6211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212 yes:no: )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6218 ;;
6219 no:yes:* )
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6232 (
6233 cat <<\_ASBOX
6234## ------------------------------------------ ##
6235## Report this to the AC_PACKAGE_NAME lists. ##
6236## ------------------------------------------ ##
6237_ASBOX
6238 ) |
6239 sed "s/^/$as_me: WARNING: /" >&2
6240 ;;
6241esac
6242echo "$as_me:$LINENO: checking for $ac_header" >&5
6243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 eval "$as_ac_Header=\$ac_header_preproc"
6248fi
6249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6251
6252fi
6253if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254 cat >>confdefs.h <<_ACEOF
6255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256_ACEOF
6257
6258fi
6259
6260done
6261
6262 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6263echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6264 result=
6265 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
6271
6272#include <limits.h>
6273#if HAVE_STDINT_H
6274#include <stdint.h>
6275#endif
6276#ifdef SIZE_MAX
6277Found it
6278#endif
6279
6280_ACEOF
6281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "Found it" >/dev/null 2>&1; then
6283 result=yes
6284fi
6285rm -f conftest*
6286
6287 if test -z "$result"; then
6288 if test "$cross_compiling" = yes; then
6289 # Depending upon the size, compute the lo and hi bounds.
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. */
6296#include <stddef.h>
6297int
6298main ()
6299{
6300static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6301test_array [0] = 0
6302
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307rm -f conftest.$ac_objext
6308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_lo=0 ac_mid=0
6329 while :; do
6330 cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
6335/* end confdefs.h. */
6336#include <stddef.h>
6337int
6338main ()
6339{
6340static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6341test_array [0] = 0
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext
6348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_hi=$ac_mid; break
6369else
6370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373ac_lo=`expr $ac_mid + 1`
6374 if test $ac_lo -le $ac_mid; then
6375 ac_lo= ac_hi=
6376 break
6377 fi
6378 ac_mid=`expr 2 '*' $ac_mid + 1`
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 done
6382else
6383 echo "$as_me: failed program was:" >&5
6384sed 's/^/| /' conftest.$ac_ext >&5
6385
6386cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */
6392#include <stddef.h>
6393int
6394main ()
6395{
6396static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6397test_array [0] = 0
6398
6399 ;
6400 return 0;
6401}
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_hi=-1 ac_mid=-1
6425 while :; do
6426 cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432#include <stddef.h>
6433int
6434main ()
6435{
6436static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6437test_array [0] = 0
6438
6439 ;
6440 return 0;
6441}
6442_ACEOF
6443rm -f conftest.$ac_objext
6444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_lo=$ac_mid; break
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469ac_hi=`expr '(' $ac_mid ')' - 1`
6470 if test $ac_mid -le $ac_hi; then
6471 ac_lo= ac_hi=
6472 break
6473 fi
6474 ac_mid=`expr 2 '*' $ac_mid`
6475fi
6476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 done
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482ac_lo= ac_hi=
6483fi
6484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485fi
6486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487# Binary search between lo and hi bounds.
6488while test "x$ac_lo" != "x$ac_hi"; do
6489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496#include <stddef.h>
6497int
6498main ()
6499{
6500static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6501test_array [0] = 0
6502
6503 ;
6504 return 0;
6505}
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_hi=$ac_mid
6529else
6530 echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533ac_lo=`expr '(' $ac_mid ')' + 1`
6534fi
6535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536done
6537case $ac_lo in
6538?*) res_hi=$ac_lo;;
6539'') result=? ;;
6540esac
6541else
6542 if test "$cross_compiling" = yes; then
6543 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545 { (exit 1); exit 1; }; }
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <stddef.h>
6554long longval () { return ~(size_t)0 / 10; }
6555unsigned long ulongval () { return ~(size_t)0 / 10; }
6556#include <stdio.h>
6557#include <stdlib.h>
6558int
6559main ()
6560{
6561
6562 FILE *f = fopen ("conftest.val", "w");
6563 if (! f)
6564 exit (1);
6565 if ((~(size_t)0 / 10) < 0)
6566 {
6567 long i = longval ();
6568 if (i != (~(size_t)0 / 10))
6569 exit (1);
6570 fprintf (f, "%ld\n", i);
6571 }
6572 else
6573 {
6574 unsigned long i = ulongval ();
6575 if (i != (~(size_t)0 / 10))
6576 exit (1);
6577 fprintf (f, "%lu\n", i);
6578 }
6579 exit (ferror (f) || fclose (f) != 0);
6580
6581 ;
6582 return 0;
6583}
6584_ACEOF
6585rm -f conftest$ac_exeext
6586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 res_hi=`cat conftest.val`
6597else
6598 echo "$as_me: program exited with status $ac_status" >&5
6599echo "$as_me: failed program was:" >&5
6600sed 's/^/| /' conftest.$ac_ext >&5
6601
6602( exit $ac_status )
6603result=?
6604fi
6605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6606fi
6607fi
6608rm -f conftest.val
6609 if test "$cross_compiling" = yes; then
6610 # Depending upon the size, compute the lo and hi bounds.
6611cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
6617#include <stddef.h>
6618int
6619main ()
6620{
6621static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6622test_array [0] = 0
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_lo=0 ac_mid=0
6650 while :; do
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657#include <stddef.h>
6658int
6659main ()
6660{
6661static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6662test_array [0] = 0
6663
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext
6669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_hi=$ac_mid; break
6690else
6691 echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694ac_lo=`expr $ac_mid + 1`
6695 if test $ac_lo -le $ac_mid; then
6696 ac_lo= ac_hi=
6697 break
6698 fi
6699 ac_mid=`expr 2 '*' $ac_mid + 1`
6700fi
6701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702 done
6703else
6704 echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h. */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h. */
6713#include <stddef.h>
6714int
6715main ()
6716{
6717static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6718test_array [0] = 0
6719
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724rm -f conftest.$ac_objext
6725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_hi=-1 ac_mid=-1
6746 while :; do
6747 cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753#include <stddef.h>
6754int
6755main ()
6756{
6757static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6758test_array [0] = 0
6759
6760 ;
6761 return 0;
6762}
6763_ACEOF
6764rm -f conftest.$ac_objext
6765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
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
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_lo=$ac_mid; break
6786else
6787 echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790ac_hi=`expr '(' $ac_mid ')' - 1`
6791 if test $ac_mid -le $ac_hi; then
6792 ac_lo= ac_hi=
6793 break
6794 fi
6795 ac_mid=`expr 2 '*' $ac_mid`
6796fi
6797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 done
6799else
6800 echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803ac_lo= ac_hi=
6804fi
6805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi
6807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808# Binary search between lo and hi bounds.
6809while test "x$ac_lo" != "x$ac_hi"; do
6810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811 cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
6817#include <stddef.h>
6818int
6819main ()
6820{
6821static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6822test_array [0] = 0
6823
6824 ;
6825 return 0;
6826}
6827_ACEOF
6828rm -f conftest.$ac_objext
6829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_hi=$ac_mid
6850else
6851 echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854ac_lo=`expr '(' $ac_mid ')' + 1`
6855fi
6856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857done
6858case $ac_lo in
6859?*) res_lo=$ac_lo;;
6860'') result=? ;;
6861esac
6862else
6863 if test "$cross_compiling" = yes; then
6864 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6865echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6866 { (exit 1); exit 1; }; }
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874#include <stddef.h>
6875long longval () { return ~(size_t)0 % 10; }
6876unsigned long ulongval () { return ~(size_t)0 % 10; }
6877#include <stdio.h>
6878#include <stdlib.h>
6879int
6880main ()
6881{
6882
6883 FILE *f = fopen ("conftest.val", "w");
6884 if (! f)
6885 exit (1);
6886 if ((~(size_t)0 % 10) < 0)
6887 {
6888 long i = longval ();
6889 if (i != (~(size_t)0 % 10))
6890 exit (1);
6891 fprintf (f, "%ld\n", i);
6892 }
6893 else
6894 {
6895 unsigned long i = ulongval ();
6896 if (i != (~(size_t)0 % 10))
6897 exit (1);
6898 fprintf (f, "%lu\n", i);
6899 }
6900 exit (ferror (f) || fclose (f) != 0);
6901
6902 ;
6903 return 0;
6904}
6905_ACEOF
6906rm -f conftest$ac_exeext
6907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 res_lo=`cat conftest.val`
6918else
6919 echo "$as_me: program exited with status $ac_status" >&5
6920echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923( exit $ac_status )
6924result=?
6925fi
6926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6927fi
6928fi
6929rm -f conftest.val
6930 if test "$cross_compiling" = yes; then
6931 # Depending upon the size, compute the lo and hi bounds.
6932cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <stddef.h>
6939int
6940main ()
6941{
6942static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6943test_array [0] = 0
6944
6945 ;
6946 return 0;
6947}
6948_ACEOF
6949rm -f conftest.$ac_objext
6950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_lo=0 ac_mid=0
6971 while :; do
6972 cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
6978#include <stddef.h>
6979int
6980main ()
6981{
6982static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6983test_array [0] = 0
6984
6985 ;
6986 return 0;
6987}
6988_ACEOF
6989rm -f conftest.$ac_objext
6990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_hi=$ac_mid; break
7011else
7012 echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015ac_lo=`expr $ac_mid + 1`
7016 if test $ac_lo -le $ac_mid; then
7017 ac_lo= ac_hi=
7018 break
7019 fi
7020 ac_mid=`expr 2 '*' $ac_mid + 1`
7021fi
7022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 done
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h. */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h. */
7034#include <stddef.h>
7035int
7036main ()
7037{
7038static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7039test_array [0] = 0
7040
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_hi=-1 ac_mid=-1
7067 while :; do
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074#include <stddef.h>
7075int
7076main ()
7077{
7078static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7079test_array [0] = 0
7080
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_lo=$ac_mid; break
7107else
7108 echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_hi=`expr '(' $ac_mid ')' - 1`
7112 if test $ac_mid -le $ac_hi; then
7113 ac_lo= ac_hi=
7114 break
7115 fi
7116 ac_mid=`expr 2 '*' $ac_mid`
7117fi
7118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 done
7120else
7121 echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124ac_lo= ac_hi=
7125fi
7126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127fi
7128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129# Binary search between lo and hi bounds.
7130while test "x$ac_lo" != "x$ac_hi"; do
7131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7132 cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
7138#include <stddef.h>
7139int
7140main ()
7141{
7142static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7143test_array [0] = 0
7144
7145 ;
7146 return 0;
7147}
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_hi=$ac_mid
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175ac_lo=`expr '(' $ac_mid ')' + 1`
7176fi
7177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178done
7179case $ac_lo in
7180?*) fits_in_uint=$ac_lo;;
7181'') result=? ;;
7182esac
7183else
7184 if test "$cross_compiling" = yes; then
7185 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7186echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7187 { (exit 1); exit 1; }; }
7188else
7189 cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h. */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h. */
7195#include <stddef.h>
7196long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7197unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7198#include <stdio.h>
7199#include <stdlib.h>
7200int
7201main ()
7202{
7203
7204 FILE *f = fopen ("conftest.val", "w");
7205 if (! f)
7206 exit (1);
7207 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7208 {
7209 long i = longval ();
7210 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7211 exit (1);
7212 fprintf (f, "%ld\n", i);
7213 }
7214 else
7215 {
7216 unsigned long i = ulongval ();
7217 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7218 exit (1);
7219 fprintf (f, "%lu\n", i);
7220 }
7221 exit (ferror (f) || fclose (f) != 0);
7222
7223 ;
7224 return 0;
7225}
7226_ACEOF
7227rm -f conftest$ac_exeext
7228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 fits_in_uint=`cat conftest.val`
7239else
7240 echo "$as_me: program exited with status $ac_status" >&5
7241echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244( exit $ac_status )
7245result=?
7246fi
7247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7248fi
7249fi
7250rm -f conftest.val
7251 if test "$fits_in_uint" = 1; then
7252 cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7258#include <stddef.h>
7259 extern size_t foo;
7260 extern unsigned long foo;
7261
7262int
7263main ()
7264{
7265
7266 ;
7267 return 0;
7268}
7269_ACEOF
7270rm -f conftest.$ac_objext
7271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272 (eval $ac_compile) 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 fits_in_uint=0
7292else
7293 echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
7295
7296fi
7297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 if test -z "$result"; then
7300 if test "$fits_in_uint" = 1; then
7301 result="$res_hi$res_lo"U
7302 else
7303 result="$res_hi$res_lo"UL
7304 fi
7305 else
7306 result='~(size_t)0'
7307 fi
7308 fi
7309 echo "$as_me:$LINENO: result: $result" >&5
7310echo "${ECHO_T}$result" >&6
7311 if test "$result" != yes; then
7312
7313cat >>confdefs.h <<_ACEOF
7314#define SIZE_MAX $result
7315_ACEOF
7316
7317 fi
7318
7319
7320
7321
7322for ac_header in stdint.h
7323do
7324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330fi
7331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7333else
7334 # Is the header compilable?
7335echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343$ac_includes_default
7344#include <$ac_header>
7345_ACEOF
7346rm -f conftest.$ac_objext
7347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_header_compiler=yes
7368else
7369 echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372ac_header_compiler=no
7373fi
7374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376echo "${ECHO_T}$ac_header_compiler" >&6
7377
7378# Is the header present?
7379echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
7387#include <$ac_header>
7388_ACEOF
7389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7400 else
7401 ac_cpp_err=
7402 fi
7403else
7404 ac_cpp_err=yes
7405fi
7406if test -z "$ac_cpp_err"; then
7407 ac_header_preproc=yes
7408else
7409 echo "$as_me: failed program was:" >&5
7410sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 ac_header_preproc=no
7413fi
7414rm -f conftest.err conftest.$ac_ext
7415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416echo "${ECHO_T}$ac_header_preproc" >&6
7417
7418# So? What about this header?
7419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420 yes:no: )
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425 ac_header_preproc=yes
7426 ;;
7427 no:yes:* )
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7440 (
7441 cat <<\_ASBOX
7442## ------------------------------------------ ##
7443## Report this to the AC_PACKAGE_NAME lists. ##
7444## ------------------------------------------ ##
7445_ASBOX
7446 ) |
7447 sed "s/^/$as_me: WARNING: /" >&2
7448 ;;
7449esac
7450echo "$as_me:$LINENO: checking for $ac_header" >&5
7451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454else
7455 eval "$as_ac_Header=\$ac_header_preproc"
7456fi
7457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459
7460fi
7461if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462 cat >>confdefs.h <<_ACEOF
7463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464_ACEOF
7465
7466fi
7467
7468done
7469
7470
7471
7472 if test "X$prefix" = "XNONE"; then
7473 acl_final_prefix="$ac_default_prefix"
7474 else
7475 acl_final_prefix="$prefix"
7476 fi
7477 if test "X$exec_prefix" = "XNONE"; then
7478 acl_final_exec_prefix='${prefix}'
7479 else
7480 acl_final_exec_prefix="$exec_prefix"
7481 fi
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7485 prefix="$acl_save_prefix"
7486
7487
7488# Check whether --with-gnu-ld or --without-gnu-ld was given.
7489if test "${with_gnu_ld+set}" = set; then
7490 withval="$with_gnu_ld"
7491 test "$withval" = no || with_gnu_ld=yes
7492else
7493 with_gnu_ld=no
7494fi;
7495# Prepare PATH_SEPARATOR.
7496# The user is always right.
7497if test "${PATH_SEPARATOR+set}" != set; then
7498 echo "#! /bin/sh" >conf$$.sh
7499 echo "exit 0" >>conf$$.sh
7500 chmod +x conf$$.sh
7501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7502 PATH_SEPARATOR=';'
7503 else
7504 PATH_SEPARATOR=:
7505 fi
7506 rm -f conf$$.sh
7507fi
7508ac_prog=ld
7509if test "$GCC" = yes; then
7510 # Check if gcc -print-prog-name=ld gives a path.
7511 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7512echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7513 case $host in
7514 *-*-mingw*)
7515 # gcc leaves a trailing carriage return which upsets mingw
7516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7517 *)
7518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7519 esac
7520 case $ac_prog in
7521 # Accept absolute paths.
7522 [\\/]* | [A-Za-z]:[\\/]*)
7523 re_direlt='/[^/][^/]*/\.\./'
7524 # Canonicalize the path of ld
7525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7528 done
7529 test -z "$LD" && LD="$ac_prog"
7530 ;;
7531 "")
7532 # If it fails, then pretend we aren't using GCC.
7533 ac_prog=ld
7534 ;;
7535 *)
7536 # If it is relative, then search for the first ld in PATH.
7537 with_gnu_ld=unknown
7538 ;;
7539 esac
7540elif test "$with_gnu_ld" = yes; then
7541 echo "$as_me:$LINENO: checking for GNU ld" >&5
7542echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7543else
7544 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7545echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a64c9c13 7546fi
b0cacab0
TT
7547if test "${acl_cv_path_LD+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 if test -z "$LD"; then
7551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7552 for ac_dir in $PATH; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7555 acl_cv_path_LD="$ac_dir/$ac_prog"
7556 # Check to see if the program is GNU ld. I'd rather use --version,
7557 # but apparently some GNU ld's only accept -v.
7558 # Break only if it was the GNU/non-GNU ld that we prefer.
7559 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7560 *GNU* | *'with BFD'*)
7561 test "$with_gnu_ld" != no && break ;;
7562 *)
7563 test "$with_gnu_ld" != yes && break ;;
7564 esac
7565 fi
7566 done
7567 IFS="$ac_save_ifs"
7568else
7569 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a64c9c13 7570fi
a04eba3f 7571fi
93636bde 7572
b0cacab0
TT
7573LD="$acl_cv_path_LD"
7574if test -n "$LD"; then
7575 echo "$as_me:$LINENO: result: $LD" >&5
7576echo "${ECHO_T}$LD" >&6
a64c9c13 7577else
b0cacab0
TT
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
a64c9c13 7580fi
b0cacab0
TT
7581test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7582echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7583 { (exit 1); exit 1; }; }
7584echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7585echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7586if test "${acl_cv_prog_gnu_ld+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7590case `$LD -v 2>&1 </dev/null` in
7591*GNU* | *'with BFD'*)
7592 acl_cv_prog_gnu_ld=yes ;;
7593*)
7594 acl_cv_prog_gnu_ld=no ;;
7595esac
07a0db15 7596fi
b0cacab0
TT
7597echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7598echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7599with_gnu_ld=$acl_cv_prog_gnu_ld
07a0db15 7600
a64c9c13 7601
07a0db15 7602
b0cacab0
TT
7603 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7604echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7605if test "${acl_cv_rpath+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
a04eba3f 7608
b0cacab0
TT
7609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7611 . ./conftest.sh
7612 rm -f ./conftest.sh
7613 acl_cv_rpath=done
a04eba3f 7614
07a0db15 7615fi
b0cacab0
TT
7616echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7617echo "${ECHO_T}$acl_cv_rpath" >&6
7618 wl="$acl_cv_wl"
7619 libext="$acl_cv_libext"
7620 shlibext="$acl_cv_shlibext"
7621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7623 hardcode_direct="$acl_cv_hardcode_direct"
7624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7625 # Check whether --enable-rpath or --disable-rpath was given.
7626if test "${enable_rpath+set}" = set; then
7627 enableval="$enable_rpath"
7628 :
7629else
7630 enable_rpath=yes
7631fi;
7632
7633
93636bde 7634
a64c9c13 7635
a64c9c13 7636
93636bde 7637
93636bde 7638
93636bde 7639 use_additional=yes
b0cacab0 7640
07a0db15
TT
7641 acl_save_prefix="$prefix"
7642 prefix="$acl_final_prefix"
93636bde
TT
7643 acl_save_exec_prefix="$exec_prefix"
7644 exec_prefix="$acl_final_exec_prefix"
b0cacab0 7645
93636bde
TT
7646 eval additional_includedir=\"$includedir\"
7647 eval additional_libdir=\"$libdir\"
b0cacab0 7648
93636bde
TT
7649 exec_prefix="$acl_save_exec_prefix"
7650 prefix="$acl_save_prefix"
7651
b0cacab0
TT
7652
7653# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
93636bde
TT
7654if test "${with_libiconv_prefix+set}" = set; then
7655 withval="$with_libiconv_prefix"
b0cacab0 7656
93636bde
TT
7657 if test "X$withval" = "Xno"; then
7658 use_additional=no
7659 else
7660 if test "X$withval" = "X"; then
b0cacab0 7661
93636bde
TT
7662 acl_save_prefix="$prefix"
7663 prefix="$acl_final_prefix"
7664 acl_save_exec_prefix="$exec_prefix"
7665 exec_prefix="$acl_final_exec_prefix"
b0cacab0 7666
93636bde
TT
7667 eval additional_includedir=\"$includedir\"
7668 eval additional_libdir=\"$libdir\"
b0cacab0 7669
93636bde 7670 exec_prefix="$acl_save_exec_prefix"
07a0db15
TT
7671 prefix="$acl_save_prefix"
7672
07a0db15 7673 else
93636bde
TT
7674 additional_includedir="$withval/include"
7675 additional_libdir="$withval/lib"
07a0db15
TT
7676 fi
7677 fi
07a0db15 7678
b0cacab0 7679fi;
a04eba3f
TT
7680 LIBICONV=
7681 LTLIBICONV=
7682 INCICONV=
7683 rpathdirs=
7684 ltrpathdirs=
7685 names_already_handled=
7686 names_next_round='iconv '
7687 while test -n "$names_next_round"; do
7688 names_this_round="$names_next_round"
7689 names_next_round=
7690 for name in $names_this_round; do
7691 already_handled=
7692 for n in $names_already_handled; do
7693 if test "$n" = "$name"; then
7694 already_handled=yes
7695 break
7696 fi
7697 done
7698 if test -z "$already_handled"; then
7699 names_already_handled="$names_already_handled $name"
7700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7701 eval value=\"\$HAVE_LIB$uppername\"
7702 if test -n "$value"; then
7703 if test "$value" = yes; then
7704 eval value=\"\$LIB$uppername\"
7705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7706 eval value=\"\$LTLIB$uppername\"
7707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7708 else
7709 :
7710 fi
7711 else
7712 found_dir=
7713 found_la=
7714 found_so=
7715 found_a=
7716 if test $use_additional = yes; then
7717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7718 found_dir="$additional_libdir"
7719 found_so="$additional_libdir/lib$name.$shlibext"
7720 if test -f "$additional_libdir/lib$name.la"; then
7721 found_la="$additional_libdir/lib$name.la"
7722 fi
7723 else
7724 if test -f "$additional_libdir/lib$name.$libext"; then
7725 found_dir="$additional_libdir"
7726 found_a="$additional_libdir/lib$name.$libext"
7727 if test -f "$additional_libdir/lib$name.la"; then
7728 found_la="$additional_libdir/lib$name.la"
7729 fi
7730 fi
7731 fi
7732 fi
7733 if test "X$found_dir" = "X"; then
7734 for x in $LDFLAGS $LTLIBICONV; do
b0cacab0 7735
a04eba3f
TT
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7740 eval x=\"$x\"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7743
7744 case "$x" in
7745 -L*)
7746 dir=`echo "X$x" | sed -e 's/^X-L//'`
7747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7748 found_dir="$dir"
7749 found_so="$dir/lib$name.$shlibext"
7750 if test -f "$dir/lib$name.la"; then
7751 found_la="$dir/lib$name.la"
7752 fi
7753 else
7754 if test -f "$dir/lib$name.$libext"; then
7755 found_dir="$dir"
7756 found_a="$dir/lib$name.$libext"
7757 if test -f "$dir/lib$name.la"; then
7758 found_la="$dir/lib$name.la"
7759 fi
7760 fi
7761 fi
7762 ;;
7763 esac
7764 if test "X$found_dir" != "X"; then
7765 break
7766 fi
7767 done
7768 fi
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7774 else
7775 haveit=
7776 for x in $ltrpathdirs; do
7777 if test "X$x" = "X$found_dir"; then
7778 haveit=yes
7779 break
7780 fi
7781 done
7782 if test -z "$haveit"; then
7783 ltrpathdirs="$ltrpathdirs $found_dir"
7784 fi
7785 if test "$hardcode_direct" = yes; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7787 else
7788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7790 haveit=
7791 for x in $rpathdirs; do
7792 if test "X$x" = "X$found_dir"; then
7793 haveit=yes
7794 break
7795 fi
7796 done
7797 if test -z "$haveit"; then
7798 rpathdirs="$rpathdirs $found_dir"
7799 fi
7800 else
7801 haveit=
7802 for x in $LDFLAGS $LIBICONV; do
b0cacab0 7803
a04eba3f
TT
7804 acl_save_prefix="$prefix"
7805 prefix="$acl_final_prefix"
7806 acl_save_exec_prefix="$exec_prefix"
7807 exec_prefix="$acl_final_exec_prefix"
7808 eval x=\"$x\"
7809 exec_prefix="$acl_save_exec_prefix"
7810 prefix="$acl_save_prefix"
7811
7812 if test "X$x" = "X-L$found_dir"; then
7813 haveit=yes
7814 break
7815 fi
7816 done
7817 if test -z "$haveit"; then
7818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7819 fi
7820 if test "$hardcode_minus_L" != no; then
7821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7822 else
7823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7824 fi
7825 fi
7826 fi
7827 fi
7828 else
7829 if test "X$found_a" != "X"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7831 else
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7833 fi
7834 fi
7835 additional_includedir=
7836 case "$found_dir" in
7837 */lib | */lib/)
7838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7839 additional_includedir="$basedir/include"
7840 ;;
7841 esac
7842 if test "X$additional_includedir" != "X"; then
7843 if test "X$additional_includedir" != "X/usr/include"; then
7844 haveit=
7845 if test "X$additional_includedir" = "X/usr/local/include"; then
7846 if test -n "$GCC"; then
7847 case $host_os in
7848 linux*) haveit=yes;;
7849 esac
7850 fi
7851 fi
7852 if test -z "$haveit"; then
7853 for x in $CPPFLAGS $INCICONV; do
b0cacab0 7854
a04eba3f
TT
7855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
7859 eval x=\"$x\"
7860 exec_prefix="$acl_save_exec_prefix"
7861 prefix="$acl_save_prefix"
7862
7863 if test "X$x" = "X-I$additional_includedir"; then
7864 haveit=yes
7865 break
7866 fi
7867 done
7868 if test -z "$haveit"; then
7869 if test -d "$additional_includedir"; then
7870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7871 fi
7872 fi
7873 fi
7874 fi
7875 fi
7876 if test -n "$found_la"; then
7877 save_libdir="$libdir"
7878 case "$found_la" in
7879 */* | *\\*) . "$found_la" ;;
7880 *) . "./$found_la" ;;
7881 esac
7882 libdir="$save_libdir"
7883 for dep in $dependency_libs; do
7884 case "$dep" in
7885 -L*)
7886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7887 if test "X$additional_libdir" != "X/usr/lib"; then
7888 haveit=
7889 if test "X$additional_libdir" = "X/usr/local/lib"; then
7890 if test -n "$GCC"; then
7891 case $host_os in
7892 linux*) haveit=yes;;
7893 esac
7894 fi
7895 fi
7896 if test -z "$haveit"; then
7897 haveit=
7898 for x in $LDFLAGS $LIBICONV; do
b0cacab0 7899
a04eba3f
TT
7900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 acl_save_exec_prefix="$exec_prefix"
7903 exec_prefix="$acl_final_exec_prefix"
7904 eval x=\"$x\"
7905 exec_prefix="$acl_save_exec_prefix"
7906 prefix="$acl_save_prefix"
7907
7908 if test "X$x" = "X-L$additional_libdir"; then
7909 haveit=yes
7910 break
7911 fi
7912 done
7913 if test -z "$haveit"; then
7914 if test -d "$additional_libdir"; then
7915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7916 fi
7917 fi
7918 haveit=
7919 for x in $LDFLAGS $LTLIBICONV; do
b0cacab0 7920
a04eba3f
TT
7921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7925 eval x=\"$x\"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7928
7929 if test "X$x" = "X-L$additional_libdir"; then
7930 haveit=yes
7931 break
7932 fi
7933 done
7934 if test -z "$haveit"; then
7935 if test -d "$additional_libdir"; then
7936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7937 fi
7938 fi
7939 fi
7940 fi
7941 ;;
7942 -R*)
7943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7944 if test "$enable_rpath" != no; then
7945 haveit=
7946 for x in $rpathdirs; do
7947 if test "X$x" = "X$dir"; then
7948 haveit=yes
7949 break
7950 fi
7951 done
7952 if test -z "$haveit"; then
7953 rpathdirs="$rpathdirs $dir"
7954 fi
7955 haveit=
7956 for x in $ltrpathdirs; do
7957 if test "X$x" = "X$dir"; then
7958 haveit=yes
7959 break
7960 fi
7961 done
7962 if test -z "$haveit"; then
7963 ltrpathdirs="$ltrpathdirs $dir"
7964 fi
7965 fi
7966 ;;
7967 -l*)
7968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7969 ;;
7970 *.la)
7971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7972 ;;
7973 *)
7974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7976 ;;
7977 esac
7978 done
7979 fi
7980 else
7981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7983 fi
7984 fi
7985 fi
7986 done
7987 done
7988 if test "X$rpathdirs" != "X"; then
7989 if test -n "$hardcode_libdir_separator"; then
7990 alldirs=
7991 for found_dir in $rpathdirs; do
7992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7993 done
7994 acl_save_libdir="$libdir"
7995 libdir="$alldirs"
7996 eval flag=\"$hardcode_libdir_flag_spec\"
7997 libdir="$acl_save_libdir"
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7999 else
8000 for found_dir in $rpathdirs; do
8001 acl_save_libdir="$libdir"
8002 libdir="$found_dir"
8003 eval flag=\"$hardcode_libdir_flag_spec\"
8004 libdir="$acl_save_libdir"
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8006 done
8007 fi
8008 fi
8009 if test "X$ltrpathdirs" != "X"; then
8010 for found_dir in $ltrpathdirs; do
8011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8012 done
8013 fi
a64c9c13 8014
93636bde
TT
8015
8016
93636bde 8017
b0cacab0
TT
8018
8019
8020
8021
8022 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8023echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8024if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034int
8035main ()
8036{
8037if ((ptrdiff_t *) 0)
8038 return 0;
8039if (sizeof (ptrdiff_t))
8040 return 0;
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext
8046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_ptrdiff_t=yes
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071ac_cv_type_ptrdiff_t=no
8072fi
8073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8076echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8077if test $ac_cv_type_ptrdiff_t = yes; then
8078 :
8079else
8080
8081cat >>confdefs.h <<\_ACEOF
8082#define ptrdiff_t long
8083_ACEOF
8084
8085
8086fi
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8099stdlib.h string.h unistd.h sys/param.h
8100do
8101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo "$as_me:$LINENO: checking for $ac_header" >&5
8104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107fi
8108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110else
8111 # Is the header compilable?
8112echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114cat >conftest.$ac_ext <<_ACEOF
8115/* confdefs.h. */
8116_ACEOF
8117cat confdefs.h >>conftest.$ac_ext
8118cat >>conftest.$ac_ext <<_ACEOF
8119/* end confdefs.h. */
8120$ac_includes_default
8121#include <$ac_header>
8122_ACEOF
8123rm -f conftest.$ac_objext
8124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149ac_header_compiler=no
8150fi
8151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153echo "${ECHO_T}$ac_header_compiler" >&6
8154
8155# Is the header present?
8156echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h. */
8164#include <$ac_header>
8165_ACEOF
8166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177 else
8178 ac_cpp_err=
8179 fi
8180else
8181 ac_cpp_err=yes
8182fi
8183if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185else
8186 echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190fi
8191rm -f conftest.err conftest.$ac_ext
8192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195# So? What about this header?
8196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197 yes:no: )
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8203 ;;
8204 no:yes:* )
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8217 (
8218 cat <<\_ASBOX
8219## ------------------------------------------ ##
8220## Report this to the AC_PACKAGE_NAME lists. ##
8221## ------------------------------------------ ##
8222_ASBOX
8223 ) |
8224 sed "s/^/$as_me: WARNING: /" >&2
8225 ;;
8226esac
8227echo "$as_me:$LINENO: checking for $ac_header" >&5
8228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 eval "$as_ac_Header=\$ac_header_preproc"
8233fi
8234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236
8237fi
8238if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241_ACEOF
8242
8243fi
8244
8245done
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8271mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8272strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8273__fsetlocking
8274do
8275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276echo "$as_me:$LINENO: checking for $ac_func" >&5
8277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8278if eval "test \"\${$as_ac_var+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280else
8281 cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8289#define $ac_func innocuous_$ac_func
8290
8291/* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char $ac_func (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8295
8296#ifdef __STDC__
8297# include <limits.h>
8298#else
8299# include <assert.h>
8300#endif
8301
8302#undef $ac_func
8303
8304/* Override any gcc2 internal prototype to avoid an error. */
8305#ifdef __cplusplus
8306extern "C"
8307{
8308#endif
8309/* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311char $ac_func ();
8312/* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8316choke me
8317#else
8318char (*f) () = $ac_func;
8319#endif
8320#ifdef __cplusplus
8321}
8322#endif
8323
8324int
8325main ()
8326{
8327return f != $ac_func;
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "$as_ac_var=yes"
8354else
8355 echo "$as_me: failed program was:" >&5
8356sed 's/^/| /' conftest.$ac_ext >&5
8357
8358eval "$as_ac_var=no"
8359fi
8360rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362fi
8363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365if test `eval echo '${'$as_ac_var'}'` = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368_ACEOF
8369
8370fi
8371done
8372
8373
8374
8375 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8376echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8377if test "${ac_cv_have_decl__snprintf+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386#include <stdio.h>
8387int
8388main ()
8389{
8390
8391#ifndef _snprintf
8392 char *p = (char *) _snprintf;
8393#endif
8394
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl__snprintf=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_cv_have_decl__snprintf=no
8426fi
8427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8428fi
8429echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8430echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8431 if test $ac_cv_have_decl__snprintf = yes; then
8432 gt_value=1
8433 else
8434 gt_value=0
8435 fi
8436
8437cat >>confdefs.h <<_ACEOF
8438#define HAVE_DECL__SNPRINTF $gt_value
8439_ACEOF
8440
8441
8442
8443 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8444echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8445if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454#include <stdio.h>
8455int
8456main ()
8457{
8458
8459#ifndef _snwprintf
8460 char *p = (char *) _snwprintf;
8461#endif
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467rm -f conftest.$ac_objext
8468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_decl__snwprintf=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493ac_cv_have_decl__snwprintf=no
8494fi
8495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496fi
8497echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8498echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8499 if test $ac_cv_have_decl__snwprintf = yes; then
8500 gt_value=1
8501 else
8502 gt_value=0
8503 fi
8504
8505cat >>confdefs.h <<_ACEOF
8506#define HAVE_DECL__SNWPRINTF $gt_value
8507_ACEOF
8508
8509
8510
8511
8512 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8514if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517 cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523#include <stdio.h>
8524int
8525main ()
8526{
8527
8528#ifndef feof_unlocked
8529 char *p = (char *) feof_unlocked;
8530#endif
8531
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_have_decl_feof_unlocked=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_cv_have_decl_feof_unlocked=no
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565fi
8566echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8567echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8568 if test $ac_cv_have_decl_feof_unlocked = yes; then
8569 gt_value=1
8570 else
8571 gt_value=0
8572 fi
8573
8574cat >>confdefs.h <<_ACEOF
8575#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8576_ACEOF
8577
8578
8579
8580 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8581echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8582if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8584else
b0cacab0
TT
8585 cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591#include <stdio.h>
8592int
8593main ()
8594{
93636bde 8595
b0cacab0
TT
8596#ifndef fgets_unlocked
8597 char *p = (char *) fgets_unlocked;
8598#endif
93636bde 8599
b0cacab0
TT
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_have_decl_fgets_unlocked=yes
8626else
8627 echo "$as_me: failed program was:" >&5
8628sed 's/^/| /' conftest.$ac_ext >&5
8629
8630ac_cv_have_decl_fgets_unlocked=no
8631fi
8632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633fi
8634echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8635echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8636 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8637 gt_value=1
8638 else
8639 gt_value=0
8640 fi
93636bde 8641
b0cacab0
TT
8642cat >>confdefs.h <<_ACEOF
8643#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8644_ACEOF
93636bde 8645
b0cacab0
TT
8646
8647
8648 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8649echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8650if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 8652else
b0cacab0
TT
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659#include <stdio.h>
8660int
8661main ()
8662{
93636bde 8663
b0cacab0
TT
8664#ifndef getc_unlocked
8665 char *p = (char *) getc_unlocked;
8666#endif
93636bde 8667
b0cacab0
TT
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_have_decl_getc_unlocked=yes
8694else
8695 echo "$as_me: failed program was:" >&5
8696sed 's/^/| /' conftest.$ac_ext >&5
8697
8698ac_cv_have_decl_getc_unlocked=no
8699fi
8700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8701fi
8702echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8703echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8704 if test $ac_cv_have_decl_getc_unlocked = yes; then
8705 gt_value=1
8706 else
8707 gt_value=0
93636bde
TT
8708 fi
8709
b0cacab0
TT
8710cat >>confdefs.h <<_ACEOF
8711#define HAVE_DECL_GETC_UNLOCKED $gt_value
8712_ACEOF
93636bde 8713
93636bde
TT
8714
8715
b0cacab0
TT
8716 case $gt_cv_func_printf_posix in
8717 *yes) HAVE_POSIX_PRINTF=1 ;;
8718 *) HAVE_POSIX_PRINTF=0 ;;
8719 esac
a04eba3f 8720
b0cacab0
TT
8721 if test "$ac_cv_func_asprintf" = yes; then
8722 HAVE_ASPRINTF=1
8723 else
8724 HAVE_ASPRINTF=0
8725 fi
8726
8727 if test "$ac_cv_func_snprintf" = yes; then
8728 HAVE_SNPRINTF=1
8729 else
8730 HAVE_SNPRINTF=0
8731 fi
8732
8733 if test "$ac_cv_func_wprintf" = yes; then
8734 HAVE_WPRINTF=1
8735 else
8736 HAVE_WPRINTF=0
8737 fi
93636bde 8738
a64c9c13 8739
a64c9c13 8740
a64c9c13 8741
a64c9c13 8742
07a0db15 8743
93636bde
TT
8744
8745 am_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8746
a04eba3f
TT
8747 for element in $INCICONV; do
8748 haveit=
8749 for x in $CPPFLAGS; do
b0cacab0 8750
a04eba3f
TT
8751 acl_save_prefix="$prefix"
8752 prefix="$acl_final_prefix"
8753 acl_save_exec_prefix="$exec_prefix"
8754 exec_prefix="$acl_final_exec_prefix"
8755 eval x=\"$x\"
8756 exec_prefix="$acl_save_exec_prefix"
8757 prefix="$acl_save_prefix"
8758
8759 if test "X$x" = "X$element"; then
8760 haveit=yes
8761 break
8762 fi
8763 done
8764 if test -z "$haveit"; then
8765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
a64c9c13
TT
8766 fi
8767 done
a64c9c13 8768
07a0db15 8769
b0cacab0
TT
8770 echo "$as_me:$LINENO: checking for iconv" >&5
8771echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8772if test "${am_cv_func_iconv+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8774else
b0cacab0 8775
a04eba3f
TT
8776 am_cv_func_iconv="no, consider installing GNU libiconv"
8777 am_cv_lib_iconv=no
b0cacab0
TT
8778 cat >conftest.$ac_ext <<_ACEOF
8779/* confdefs.h. */
8780_ACEOF
8781cat confdefs.h >>conftest.$ac_ext
8782cat >>conftest.$ac_ext <<_ACEOF
8783/* end confdefs.h. */
a04eba3f
TT
8784#include <stdlib.h>
8785#include <iconv.h>
b0cacab0
TT
8786int
8787main ()
8788{
a04eba3f
TT
8789iconv_t cd = iconv_open("","");
8790 iconv(cd,NULL,NULL,NULL,NULL);
8791 iconv_close(cd);
b0cacab0
TT
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
a04eba3f 8817 am_cv_func_iconv=yes
a64c9c13 8818else
b0cacab0
TT
8819 echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
a64c9c13 8822fi
b0cacab0
TT
8823rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
8825 if test "$am_cv_func_iconv" != yes; then
8826 am_save_LIBS="$LIBS"
8827 LIBS="$LIBS $LIBICONV"
b0cacab0
TT
8828 cat >conftest.$ac_ext <<_ACEOF
8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
a04eba3f
TT
8834#include <stdlib.h>
8835#include <iconv.h>
b0cacab0
TT
8836int
8837main ()
8838{
a04eba3f
TT
8839iconv_t cd = iconv_open("","");
8840 iconv(cd,NULL,NULL,NULL,NULL);
8841 iconv_close(cd);
b0cacab0
TT
8842 ;
8843 return 0;
8844}
8845_ACEOF
8846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
a04eba3f
TT
8867 am_cv_lib_iconv=yes
8868 am_cv_func_iconv=yes
a64c9c13 8869else
b0cacab0
TT
8870 echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
a64c9c13 8873fi
b0cacab0
TT
8874rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
8876 LIBS="$am_save_LIBS"
8877 fi
07a0db15 8878
b0cacab0
TT
8879fi
8880echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8881echo "${ECHO_T}$am_cv_func_iconv" >&6
93636bde 8882 if test "$am_cv_func_iconv" = yes; then
b0cacab0
TT
8883
8884cat >>confdefs.h <<\_ACEOF
a04eba3f 8885#define HAVE_ICONV 1
b0cacab0 8886_ACEOF
a64c9c13 8887
a04eba3f
TT
8888 fi
8889 if test "$am_cv_lib_iconv" = yes; then
b0cacab0
TT
8890 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8891echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8893echo "${ECHO_T}$LIBICONV" >&6
a04eba3f
TT
8894 else
8895 CPPFLAGS="$am_save_CPPFLAGS"
8896 LIBICONV=
8897 LTLIBICONV=
8898 fi
b0cacab0
TT
8899
8900
a64c9c13 8901
a04eba3f 8902 if test "$am_cv_func_iconv" = yes; then
b0cacab0
TT
8903 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8904echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8905 if test "${am_cv_proto_iconv+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8907else
b0cacab0
TT
8908
8909 cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h. */
a64c9c13 8915
a04eba3f
TT
8916#include <stdlib.h>
8917#include <iconv.h>
8918extern
8919#ifdef __cplusplus
8920"C"
8921#endif
8922#if defined(__STDC__) || defined(__cplusplus)
8923size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8924#else
8925size_t iconv();
8926#endif
8927
b0cacab0
TT
8928int
8929main ()
8930{
a04eba3f 8931
b0cacab0
TT
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
a04eba3f 8957 am_cv_proto_iconv_arg1=""
a64c9c13 8958else
b0cacab0
TT
8959 echo "$as_me: failed program was:" >&5
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
8962am_cv_proto_iconv_arg1="const"
a64c9c13 8963fi
b0cacab0 8964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a04eba3f 8965 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);"
a64c9c13 8966fi
a64c9c13 8967
a04eba3f 8968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b0cacab0
TT
8969 echo "$as_me:$LINENO: result: ${ac_t:-
8970 }$am_cv_proto_iconv" >&5
8971echo "${ECHO_T}${ac_t:-
8972 }$am_cv_proto_iconv" >&6
8973
8974cat >>confdefs.h <<_ACEOF
a04eba3f 8975#define ICONV_CONST $am_cv_proto_iconv_arg1
b0cacab0 8976_ACEOF
a64c9c13 8977
a04eba3f 8978 fi
a64c9c13 8979
b0cacab0
TT
8980
8981 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8982echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8983if test "${am_cv_langinfo_codeset+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 8985else
b0cacab0
TT
8986 cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
a04eba3f 8992#include <langinfo.h>
b0cacab0
TT
8993int
8994main ()
8995{
a04eba3f 8996char* cs = nl_langinfo(CODESET);
b0cacab0
TT
8997 ;
8998 return 0;
8999}
9000_ACEOF
9001rm -f conftest.$ac_objext conftest$ac_exeext
9002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
a04eba3f 9022 am_cv_langinfo_codeset=yes
a64c9c13 9023else
b0cacab0
TT
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027am_cv_langinfo_codeset=no
07a0db15 9028fi
b0cacab0
TT
9029rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
07a0db15 9031
b0cacab0
TT
9032fi
9033echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9034echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
93636bde 9035 if test $am_cv_langinfo_codeset = yes; then
b0cacab0
TT
9036
9037cat >>confdefs.h <<\_ACEOF
a04eba3f 9038#define HAVE_LANGINFO_CODESET 1
b0cacab0 9039_ACEOF
a64c9c13 9040
a04eba3f 9041 fi
a64c9c13 9042
a04eba3f 9043 if test $ac_cv_header_locale_h = yes; then
b0cacab0
TT
9044
9045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9046echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9047if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050 cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
a04eba3f 9056#include <locale.h>
b0cacab0
TT
9057int
9058main ()
9059{
a04eba3f 9060return LC_MESSAGES
b0cacab0
TT
9061 ;
9062 return 0;
9063}
9064_ACEOF
9065rm -f conftest.$ac_objext conftest$ac_exeext
9066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
a04eba3f 9086 am_cv_val_LC_MESSAGES=yes
a64c9c13 9087else
b0cacab0
TT
9088 echo "$as_me: failed program was:" >&5
9089sed 's/^/| /' conftest.$ac_ext >&5
9090
9091am_cv_val_LC_MESSAGES=no
a64c9c13 9092fi
b0cacab0
TT
9093rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
a64c9c13 9095fi
b0cacab0
TT
9096echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9097echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
93636bde 9098 if test $am_cv_val_LC_MESSAGES = yes; then
b0cacab0
TT
9099
9100cat >>confdefs.h <<\_ACEOF
a04eba3f 9101#define HAVE_LC_MESSAGES 1
b0cacab0 9102_ACEOF
a64c9c13 9103
a04eba3f 9104 fi
a64c9c13 9105
a04eba3f 9106 fi
a64c9c13 9107
a04eba3f
TT
9108 for ac_prog in bison
9109do
b0cacab0 9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
a04eba3f 9111set dummy $ac_prog; ac_word=$2
b0cacab0
TT
9112echo "$as_me:$LINENO: checking for $ac_word" >&5
9113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114if test "${ac_cv_prog_INTLBISON+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 9116else
a04eba3f
TT
9117 if test -n "$INTLBISON"; then
9118 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
f8bd9807 9119else
b0cacab0
TT
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_INTLBISON="$ac_prog"
9128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9130 fi
9131done
9132done
9133
f8bd9807 9134fi
a04eba3f 9135fi
b0cacab0 9136INTLBISON=$ac_cv_prog_INTLBISON
a04eba3f 9137if test -n "$INTLBISON"; then
b0cacab0
TT
9138 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9139echo "${ECHO_T}$INTLBISON" >&6
f8bd9807 9140else
b0cacab0
TT
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
f8bd9807 9143fi
f8bd9807 9144
b0cacab0 9145 test -n "$INTLBISON" && break
a04eba3f
TT
9146done
9147
9148 if test -z "$INTLBISON"; then
9149 ac_verc_fail=yes
9150 else
b0cacab0
TT
9151 echo "$as_me:$LINENO: checking version of bison" >&5
9152echo $ECHO_N "checking version of bison... $ECHO_C" >&6
a04eba3f
TT
9153 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9154 case $ac_prog_version in
9155 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9156 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9157 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9158 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9159 esac
b0cacab0
TT
9160 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9161echo "${ECHO_T}$ac_prog_version" >&6
a04eba3f
TT
9162 fi
9163 if test $ac_verc_fail = yes; then
9164 INTLBISON=:
9165 fi
a64c9c13 9166
93636bde 9167
93636bde 9168
93636bde 9169
93636bde 9170
93636bde 9171
b0cacab0
TT
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9183echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
a04eba3f
TT
9184 # Check whether --enable-nls or --disable-nls was given.
9185if test "${enable_nls+set}" = set; then
9186 enableval="$enable_nls"
9187 USE_NLS=$enableval
9188else
9189 USE_NLS=yes
b0cacab0
TT
9190fi;
9191 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9192echo "${ECHO_T}$USE_NLS" >&6
9193
9194
a64c9c13 9195
93636bde 9196
a04eba3f
TT
9197 BUILD_INCLUDED_LIBINTL=no
9198 USE_INCLUDED_LIBINTL=no
b0cacab0 9199
a04eba3f
TT
9200 LIBINTL=
9201 LTLIBINTL=
9202 POSUB=
a64c9c13 9203
a04eba3f
TT
9204 if test "$USE_NLS" = "yes"; then
9205 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
9206
9207 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9208echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9209
9210# Check whether --with-included-gettext or --without-included-gettext was given.
a04eba3f
TT
9211if test "${with_included_gettext+set}" = set; then
9212 withval="$with_included_gettext"
9213 nls_cv_force_use_gnu_gettext=$withval
9214else
9215 nls_cv_force_use_gnu_gettext=no
b0cacab0
TT
9216fi;
9217 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9218echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
a04eba3f
TT
9219
9220 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9221 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
9222
9223
9224
9225
9226
9227
9228 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9229echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9230if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232else
9233 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
a04eba3f
TT
9239#include <libintl.h>
9240extern int _nl_msg_cat_cntr;
9241extern int *_nl_domain_bindings;
b0cacab0
TT
9242int
9243main ()
9244{
a04eba3f
TT
9245bindtextdomain ("", "");
9246return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
b0cacab0
TT
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
a04eba3f 9272 gt_cv_func_gnugettext1_libc=yes
f8bd9807 9273else
b0cacab0
TT
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277gt_cv_func_gnugettext1_libc=no
f8bd9807 9278fi
b0cacab0
TT
9279rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
f8bd9807 9281fi
b0cacab0
TT
9282echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9283echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
07a0db15 9284
93636bde 9285 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
b0cacab0
TT
9286
9287
9288
a04eba3f 9289 use_additional=yes
b0cacab0 9290
a04eba3f
TT
9291 acl_save_prefix="$prefix"
9292 prefix="$acl_final_prefix"
9293 acl_save_exec_prefix="$exec_prefix"
9294 exec_prefix="$acl_final_exec_prefix"
b0cacab0 9295
a04eba3f
TT
9296 eval additional_includedir=\"$includedir\"
9297 eval additional_libdir=\"$libdir\"
b0cacab0 9298
a04eba3f
TT
9299 exec_prefix="$acl_save_exec_prefix"
9300 prefix="$acl_save_prefix"
9301
b0cacab0
TT
9302
9303# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
a04eba3f
TT
9304if test "${with_libintl_prefix+set}" = set; then
9305 withval="$with_libintl_prefix"
b0cacab0 9306
a04eba3f
TT
9307 if test "X$withval" = "Xno"; then
9308 use_additional=no
9309 else
9310 if test "X$withval" = "X"; then
b0cacab0 9311
a04eba3f
TT
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
b0cacab0 9316
a04eba3f
TT
9317 eval additional_includedir=\"$includedir\"
9318 eval additional_libdir=\"$libdir\"
b0cacab0 9319
a04eba3f
TT
9320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9322
9323 else
9324 additional_includedir="$withval/include"
9325 additional_libdir="$withval/lib"
9326 fi
9327 fi
9328
b0cacab0 9329fi;
a04eba3f
TT
9330 LIBINTL=
9331 LTLIBINTL=
9332 INCINTL=
9333 rpathdirs=
9334 ltrpathdirs=
9335 names_already_handled=
9336 names_next_round='intl '
9337 while test -n "$names_next_round"; do
9338 names_this_round="$names_next_round"
9339 names_next_round=
9340 for name in $names_this_round; do
9341 already_handled=
9342 for n in $names_already_handled; do
9343 if test "$n" = "$name"; then
9344 already_handled=yes
9345 break
9346 fi
9347 done
9348 if test -z "$already_handled"; then
9349 names_already_handled="$names_already_handled $name"
9350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9351 eval value=\"\$HAVE_LIB$uppername\"
9352 if test -n "$value"; then
9353 if test "$value" = yes; then
9354 eval value=\"\$LIB$uppername\"
9355 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9356 eval value=\"\$LTLIB$uppername\"
9357 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9358 else
9359 :
9360 fi
9361 else
9362 found_dir=
9363 found_la=
9364 found_so=
9365 found_a=
9366 if test $use_additional = yes; then
9367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9368 found_dir="$additional_libdir"
9369 found_so="$additional_libdir/lib$name.$shlibext"
9370 if test -f "$additional_libdir/lib$name.la"; then
9371 found_la="$additional_libdir/lib$name.la"
9372 fi
9373 else
9374 if test -f "$additional_libdir/lib$name.$libext"; then
9375 found_dir="$additional_libdir"
9376 found_a="$additional_libdir/lib$name.$libext"
9377 if test -f "$additional_libdir/lib$name.la"; then
9378 found_la="$additional_libdir/lib$name.la"
9379 fi
9380 fi
9381 fi
9382 fi
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBINTL; do
b0cacab0 9385
a04eba3f
TT
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9390 eval x=\"$x\"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
9393
9394 case "$x" in
9395 -L*)
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9398 found_dir="$dir"
9399 found_so="$dir/lib$name.$shlibext"
9400 if test -f "$dir/lib$name.la"; then
9401 found_la="$dir/lib$name.la"
9402 fi
9403 else
9404 if test -f "$dir/lib$name.$libext"; then
9405 found_dir="$dir"
9406 found_a="$dir/lib$name.$libext"
9407 if test -f "$dir/lib$name.la"; then
9408 found_la="$dir/lib$name.la"
9409 fi
9410 fi
9411 fi
9412 ;;
9413 esac
9414 if test "X$found_dir" != "X"; then
9415 break
9416 fi
9417 done
9418 fi
9419 if test "X$found_dir" != "X"; then
9420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9421 if test "X$found_so" != "X"; then
9422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9424 else
9425 haveit=
9426 for x in $ltrpathdirs; do
9427 if test "X$x" = "X$found_dir"; then
9428 haveit=yes
9429 break
9430 fi
9431 done
9432 if test -z "$haveit"; then
9433 ltrpathdirs="$ltrpathdirs $found_dir"
9434 fi
9435 if test "$hardcode_direct" = yes; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9437 else
9438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9440 haveit=
9441 for x in $rpathdirs; do
9442 if test "X$x" = "X$found_dir"; then
9443 haveit=yes
9444 break
9445 fi
9446 done
9447 if test -z "$haveit"; then
9448 rpathdirs="$rpathdirs $found_dir"
9449 fi
9450 else
9451 haveit=
9452 for x in $LDFLAGS $LIBINTL; do
b0cacab0 9453
a04eba3f
TT
9454 acl_save_prefix="$prefix"
9455 prefix="$acl_final_prefix"
9456 acl_save_exec_prefix="$exec_prefix"
9457 exec_prefix="$acl_final_exec_prefix"
9458 eval x=\"$x\"
9459 exec_prefix="$acl_save_exec_prefix"
9460 prefix="$acl_save_prefix"
9461
9462 if test "X$x" = "X-L$found_dir"; then
9463 haveit=yes
9464 break
9465 fi
9466 done
9467 if test -z "$haveit"; then
9468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9469 fi
9470 if test "$hardcode_minus_L" != no; then
9471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9472 else
9473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9474 fi
9475 fi
9476 fi
9477 fi
9478 else
9479 if test "X$found_a" != "X"; then
9480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9481 else
9482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9483 fi
9484 fi
9485 additional_includedir=
9486 case "$found_dir" in
9487 */lib | */lib/)
9488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9489 additional_includedir="$basedir/include"
9490 ;;
9491 esac
9492 if test "X$additional_includedir" != "X"; then
9493 if test "X$additional_includedir" != "X/usr/include"; then
9494 haveit=
9495 if test "X$additional_includedir" = "X/usr/local/include"; then
9496 if test -n "$GCC"; then
9497 case $host_os in
9498 linux*) haveit=yes;;
9499 esac
9500 fi
9501 fi
9502 if test -z "$haveit"; then
9503 for x in $CPPFLAGS $INCINTL; do
b0cacab0 9504
a04eba3f
TT
9505 acl_save_prefix="$prefix"
9506 prefix="$acl_final_prefix"
9507 acl_save_exec_prefix="$exec_prefix"
9508 exec_prefix="$acl_final_exec_prefix"
9509 eval x=\"$x\"
9510 exec_prefix="$acl_save_exec_prefix"
9511 prefix="$acl_save_prefix"
9512
9513 if test "X$x" = "X-I$additional_includedir"; then
9514 haveit=yes
9515 break
9516 fi
9517 done
9518 if test -z "$haveit"; then
9519 if test -d "$additional_includedir"; then
9520 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9521 fi
9522 fi
9523 fi
9524 fi
9525 fi
9526 if test -n "$found_la"; then
9527 save_libdir="$libdir"
9528 case "$found_la" in
9529 */* | *\\*) . "$found_la" ;;
9530 *) . "./$found_la" ;;
9531 esac
9532 libdir="$save_libdir"
9533 for dep in $dependency_libs; do
9534 case "$dep" in
9535 -L*)
9536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9537 if test "X$additional_libdir" != "X/usr/lib"; then
9538 haveit=
9539 if test "X$additional_libdir" = "X/usr/local/lib"; then
9540 if test -n "$GCC"; then
9541 case $host_os in
9542 linux*) haveit=yes;;
9543 esac
9544 fi
9545 fi
9546 if test -z "$haveit"; then
9547 haveit=
9548 for x in $LDFLAGS $LIBINTL; do
b0cacab0 9549
a04eba3f
TT
9550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9554 eval x=\"$x\"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9557
9558 if test "X$x" = "X-L$additional_libdir"; then
9559 haveit=yes
9560 break
9561 fi
9562 done
9563 if test -z "$haveit"; then
9564 if test -d "$additional_libdir"; then
9565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9566 fi
9567 fi
9568 haveit=
9569 for x in $LDFLAGS $LTLIBINTL; do
b0cacab0 9570
a04eba3f
TT
9571 acl_save_prefix="$prefix"
9572 prefix="$acl_final_prefix"
9573 acl_save_exec_prefix="$exec_prefix"
9574 exec_prefix="$acl_final_exec_prefix"
9575 eval x=\"$x\"
9576 exec_prefix="$acl_save_exec_prefix"
9577 prefix="$acl_save_prefix"
9578
9579 if test "X$x" = "X-L$additional_libdir"; then
9580 haveit=yes
9581 break
9582 fi
9583 done
9584 if test -z "$haveit"; then
9585 if test -d "$additional_libdir"; then
9586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9587 fi
9588 fi
9589 fi
9590 fi
9591 ;;
9592 -R*)
9593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9594 if test "$enable_rpath" != no; then
9595 haveit=
9596 for x in $rpathdirs; do
9597 if test "X$x" = "X$dir"; then
9598 haveit=yes
9599 break
9600 fi
9601 done
9602 if test -z "$haveit"; then
9603 rpathdirs="$rpathdirs $dir"
9604 fi
9605 haveit=
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$dir"; then
9608 haveit=yes
9609 break
9610 fi
9611 done
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $dir"
9614 fi
9615 fi
9616 ;;
9617 -l*)
9618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9619 ;;
9620 *.la)
9621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9622 ;;
9623 *)
9624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9626 ;;
9627 esac
9628 done
9629 fi
9630 else
9631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9633 fi
9634 fi
9635 fi
9636 done
9637 done
9638 if test "X$rpathdirs" != "X"; then
9639 if test -n "$hardcode_libdir_separator"; then
9640 alldirs=
9641 for found_dir in $rpathdirs; do
9642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9643 done
9644 acl_save_libdir="$libdir"
9645 libdir="$alldirs"
9646 eval flag=\"$hardcode_libdir_flag_spec\"
9647 libdir="$acl_save_libdir"
9648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9649 else
9650 for found_dir in $rpathdirs; do
9651 acl_save_libdir="$libdir"
9652 libdir="$found_dir"
9653 eval flag=\"$hardcode_libdir_flag_spec\"
9654 libdir="$acl_save_libdir"
9655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9656 done
9657 fi
9658 fi
9659 if test "X$ltrpathdirs" != "X"; then
9660 for found_dir in $ltrpathdirs; do
9661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9662 done
9663 fi
9664
b0cacab0
TT
9665 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9666echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9667if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
f8bd9807 9669else
a04eba3f
TT
9670 gt_save_CPPFLAGS="$CPPFLAGS"
9671 CPPFLAGS="$CPPFLAGS $INCINTL"
9672 gt_save_LIBS="$LIBS"
9673 LIBS="$LIBS $LIBINTL"
b0cacab0
TT
9674 cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
a04eba3f
TT
9680#include <libintl.h>
9681extern int _nl_msg_cat_cntr;
9682extern
9683#ifdef __cplusplus
9684"C"
9685#endif
9686const char *_nl_expand_alias ();
b0cacab0
TT
9687int
9688main ()
9689{
a04eba3f
TT
9690bindtextdomain ("", "");
9691return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
b0cacab0
TT
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
a04eba3f
TT
9717 gt_cv_func_gnugettext1_libintl=yes
9718else
b0cacab0
TT
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722gt_cv_func_gnugettext1_libintl=no
a04eba3f 9723fi
b0cacab0
TT
9724rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
9726 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9727 LIBS="$LIBS $LIBICONV"
b0cacab0
TT
9728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
a04eba3f
TT
9734#include <libintl.h>
9735extern int _nl_msg_cat_cntr;
9736extern
9737#ifdef __cplusplus
9738"C"
9739#endif
9740const char *_nl_expand_alias ();
b0cacab0
TT
9741int
9742main ()
9743{
a04eba3f
TT
9744bindtextdomain ("", "");
9745return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
b0cacab0
TT
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750rm -f conftest.$ac_objext conftest$ac_exeext
9751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
a04eba3f
TT
9771 LIBINTL="$LIBINTL $LIBICONV"
9772 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9773 gt_cv_func_gnugettext1_libintl=yes
b0cacab0 9774
a04eba3f 9775else
b0cacab0
TT
9776 echo "$as_me: failed program was:" >&5
9777sed 's/^/| /' conftest.$ac_ext >&5
9778
a04eba3f 9779fi
b0cacab0
TT
9780rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
9782 fi
9783 CPPFLAGS="$gt_save_CPPFLAGS"
9784 LIBS="$gt_save_LIBS"
a64c9c13 9785fi
b0cacab0
TT
9786echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9787echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
a04eba3f 9788 fi
a64c9c13 9789
a04eba3f
TT
9790 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9791 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
b0cacab0
TT
9792 && test "$PACKAGE" != gettext-runtime \
9793 && test "$PACKAGE" != gettext-tools; }; then
a04eba3f
TT
9794 gt_use_preinstalled_gnugettext=yes
9795 else
9796 LIBINTL=
9797 LTLIBINTL=
9798 INCINTL=
9799 fi
a64c9c13 9800
b0cacab0 9801
a04eba3f
TT
9802 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9803 nls_cv_use_gnu_gettext=yes
9804 fi
9805 fi
a64c9c13 9806
a04eba3f 9807 if test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 9808 BUILD_INCLUDED_LIBINTL=yes
a04eba3f
TT
9809 USE_INCLUDED_LIBINTL=yes
9810 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9811 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9813 fi
a64c9c13 9814
a04eba3f
TT
9815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9817 CATOBJEXT=.gmo
9818 fi
b0cacab0 9819
a04eba3f
TT
9820
9821 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9822 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0
TT
9823
9824cat >>confdefs.h <<\_ACEOF
a04eba3f 9825#define ENABLE_NLS 1
b0cacab0 9826_ACEOF
a04eba3f
TT
9827
9828 else
9829 USE_NLS=no
9830 fi
9831 fi
9832
b0cacab0
TT
9833 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9834echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9835 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9836echo "${ECHO_T}$USE_NLS" >&6
9837 if test "$USE_NLS" = "yes"; then
9838 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9839echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9842 gt_source="external libintl"
9843 else
9844 gt_source="libc"
9845 fi
9846 else
9847 gt_source="included intl directory"
9848 fi
9849 echo "$as_me:$LINENO: result: $gt_source" >&5
9850echo "${ECHO_T}$gt_source" >&6
9851 fi
9852
a04eba3f
TT
9853 if test "$USE_NLS" = "yes"; then
9854
9855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9856 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
b0cacab0
TT
9857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9858echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9860echo "${ECHO_T}$LIBINTL" >&6
9861
a04eba3f
TT
9862 for element in $INCINTL; do
9863 haveit=
9864 for x in $CPPFLAGS; do
b0cacab0 9865
a04eba3f
TT
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9870 eval x=\"$x\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9873
9874 if test "X$x" = "X$element"; then
9875 haveit=yes
9876 break
9877 fi
9878 done
9879 if test -z "$haveit"; then
9880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9881 fi
9882 done
9883
9884 fi
9885
b0cacab0
TT
9886
9887cat >>confdefs.h <<\_ACEOF
a04eba3f 9888#define HAVE_GETTEXT 1
b0cacab0
TT
9889_ACEOF
9890
a04eba3f 9891
b0cacab0 9892cat >>confdefs.h <<\_ACEOF
a04eba3f 9893#define HAVE_DCGETTEXT 1
b0cacab0 9894_ACEOF
a04eba3f
TT
9895
9896 fi
9897
9898 POSUB=po
9899 fi
9900
b0cacab0
TT
9901
9902 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
a04eba3f
TT
9903 BUILD_INCLUDED_LIBINTL=yes
9904 fi
9905
b0cacab0
TT
9906
9907
9908
93636bde 9909
a04eba3f
TT
9910 nls_cv_header_intl=
9911 nls_cv_header_libgt=
9912
9913 DATADIRNAME=share
b0cacab0 9914
a04eba3f
TT
9915
9916 INSTOBJEXT=.mo
b0cacab0 9917
a04eba3f
TT
9918
9919 GENCAT=gencat
b0cacab0
TT
9920
9921
9922 if test "$USE_INCLUDED_LIBINTL" = yes; then
9923 INTLOBJS="\$(GETTOBJS)"
9924 fi
9925
a04eba3f
TT
9926
9927 INTL_LIBTOOL_SUFFIX_PREFIX=
b0cacab0
TT
9928
9929
a04eba3f
TT
9930
9931 INTLLIBS="$LIBINTL"
93636bde 9932
a64c9c13 9933
93636bde 9934
b0cacab0
TT
9935
9936
9937
9938
9939echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9940echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9941set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9942if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 9944else
b0cacab0 9945 cat >conftest.make <<\_ACEOF
50e1e10f 9946all:
b0cacab0
TT
9947 @echo 'ac_maketemp="$(MAKE)"'
9948_ACEOF
50e1e10f 9949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b0cacab0 9950eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50e1e10f
TT
9951if test -n "$ac_maketemp"; then
9952 eval ac_cv_prog_make_${ac_make}_set=yes
9953else
9954 eval ac_cv_prog_make_${ac_make}_set=no
9955fi
b0cacab0 9956rm -f conftest.make
50e1e10f
TT
9957fi
9958if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b0cacab0
TT
9959 echo "$as_me:$LINENO: result: yes" >&5
9960echo "${ECHO_T}yes" >&6
50e1e10f
TT
9961 SET_MAKE=
9962else
b0cacab0
TT
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
50e1e10f
TT
9965 SET_MAKE="MAKE=${MAKE-make}"
9966fi
9967
9968# Extract the first word of "ln", so it can be a program name with args.
9969set dummy ln; ac_word=$2
b0cacab0
TT
9970echo "$as_me:$LINENO: checking for $ac_word" >&5
9971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9972if test "${ac_cv_path_LN+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 9974else
b0cacab0
TT
9975 case $LN in
9976 [\\/]* | ?:[\\/]*)
50e1e10f
TT
9977 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9978 ;;
9979 *)
b0cacab0
TT
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9990 fi
9991done
9992done
9993
50e1e10f
TT
9994 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9995 ;;
9996esac
9997fi
b0cacab0
TT
9998LN=$ac_cv_path_LN
9999
50e1e10f 10000if test -n "$LN"; then
b0cacab0
TT
10001 echo "$as_me:$LINENO: result: $LN" >&5
10002echo "${ECHO_T}$LN" >&6
50e1e10f 10003else
b0cacab0
TT
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
50e1e10f
TT
10006fi
10007
b0cacab0
TT
10008echo "$as_me:$LINENO: checking whether ln -s works" >&5
10009echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10010LN_S=$as_ln_s
10011if test "$LN_S" = "ln -s"; then
10012 echo "$as_me:$LINENO: result: yes" >&5
10013echo "${ECHO_T}yes" >&6
fc6d9d51 10014else
b0cacab0
TT
10015 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10016echo "${ECHO_T}no, using $LN_S" >&6
fc6d9d51
TT
10017fi
10018
50e1e10f
TT
10019# Extract the first word of "mv", so it can be a program name with args.
10020set dummy mv; ac_word=$2
b0cacab0
TT
10021echo "$as_me:$LINENO: checking for $ac_word" >&5
10022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10023if test "${ac_cv_path_MV+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10025else
b0cacab0
TT
10026 case $MV in
10027 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10028 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10029 ;;
10030 *)
b0cacab0
TT
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032for as_dir in $PATH
10033do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042done
10043done
10044
50e1e10f
TT
10045 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10046 ;;
10047esac
10048fi
b0cacab0
TT
10049MV=$ac_cv_path_MV
10050
50e1e10f 10051if test -n "$MV"; then
b0cacab0
TT
10052 echo "$as_me:$LINENO: result: $MV" >&5
10053echo "${ECHO_T}$MV" >&6
50e1e10f 10054else
b0cacab0
TT
10055 echo "$as_me:$LINENO: result: no" >&5
10056echo "${ECHO_T}no" >&6
50e1e10f
TT
10057fi
10058
10059# Extract the first word of "cp", so it can be a program name with args.
10060set dummy cp; ac_word=$2
b0cacab0
TT
10061echo "$as_me:$LINENO: checking for $ac_word" >&5
10062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10063if test "${ac_cv_path_CP+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10065else
b0cacab0
TT
10066 case $CP in
10067 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10068 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10069 ;;
10070 *)
b0cacab0
TT
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072for as_dir in $PATH
10073do
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10080 break 2
10081 fi
10082done
10083done
10084
50e1e10f
TT
10085 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10086 ;;
10087esac
10088fi
b0cacab0
TT
10089CP=$ac_cv_path_CP
10090
50e1e10f 10091if test -n "$CP"; then
b0cacab0
TT
10092 echo "$as_me:$LINENO: result: $CP" >&5
10093echo "${ECHO_T}$CP" >&6
50e1e10f 10094else
b0cacab0
TT
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
50e1e10f
TT
10097fi
10098
10099# Extract the first word of "rm", so it can be a program name with args.
10100set dummy rm; ac_word=$2
b0cacab0
TT
10101echo "$as_me:$LINENO: checking for $ac_word" >&5
10102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103if test "${ac_cv_path_RM+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10105else
b0cacab0
TT
10106 case $RM in
10107 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10108 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10109 ;;
10110 *)
b0cacab0
TT
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122done
10123done
10124
50e1e10f
TT
10125 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10126 ;;
10127esac
10128fi
b0cacab0
TT
10129RM=$ac_cv_path_RM
10130
50e1e10f 10131if test -n "$RM"; then
b0cacab0
TT
10132 echo "$as_me:$LINENO: result: $RM" >&5
10133echo "${ECHO_T}$RM" >&6
50e1e10f 10134else
b0cacab0
TT
10135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
50e1e10f
TT
10137fi
10138
10139# Extract the first word of "chmod", so it can be a program name with args.
10140set dummy chmod; ac_word=$2
b0cacab0
TT
10141echo "$as_me:$LINENO: checking for $ac_word" >&5
10142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143if test "${ac_cv_path_CHMOD+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10145else
b0cacab0
TT
10146 case $CHMOD in
10147 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10148 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10149 ;;
10150 *)
b0cacab0
TT
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162done
10163done
10164
50e1e10f
TT
10165 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10166 ;;
10167esac
10168fi
b0cacab0
TT
10169CHMOD=$ac_cv_path_CHMOD
10170
50e1e10f 10171if test -n "$CHMOD"; then
b0cacab0
TT
10172 echo "$as_me:$LINENO: result: $CHMOD" >&5
10173echo "${ECHO_T}$CHMOD" >&6
50e1e10f 10174else
b0cacab0
TT
10175 echo "$as_me:$LINENO: result: no" >&5
10176echo "${ECHO_T}no" >&6
50e1e10f
TT
10177fi
10178
32237014
TT
10179for ac_prog in gawk mawk nawk awk
10180do
10181 # Extract the first word of "$ac_prog", so it can be a program name with args.
10182set dummy $ac_prog; ac_word=$2
b0cacab0
TT
10183echo "$as_me:$LINENO: checking for $ac_word" >&5
10184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32237014 10185if test "${ac_cv_prog_AWK+set}" = set; then
b0cacab0 10186 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10187else
32237014
TT
10188 if test -n "$AWK"; then
10189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10190else
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b0cacab0
TT
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32237014 10198 ac_cv_prog_AWK="$ac_prog"
b0cacab0
TT
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203done
10204
50e1e10f 10205fi
32237014
TT
10206fi
10207AWK=$ac_cv_prog_AWK
50e1e10f 10208if test -n "$AWK"; then
b0cacab0
TT
10209 echo "$as_me:$LINENO: result: $AWK" >&5
10210echo "${ECHO_T}$AWK" >&6
50e1e10f 10211else
b0cacab0
TT
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
50e1e10f
TT
10214fi
10215
32237014
TT
10216 test -n "$AWK" && break
10217done
10218
10219echo "$as_me:$LINENO: checking for egrep" >&5
10220echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10221if test "${ac_cv_prog_egrep+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10225 then ac_cv_prog_egrep='grep -E'
10226 else ac_cv_prog_egrep='egrep'
10227 fi
10228fi
10229echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10230echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10231 EGREP=$ac_cv_prog_egrep
10232
10233
50e1e10f
TT
10234# Extract the first word of "sed", so it can be a program name with args.
10235set dummy sed; ac_word=$2
b0cacab0
TT
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10238if test "${ac_cv_path_SED+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10240else
b0cacab0
TT
10241 case $SED in
10242 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10243 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10244 ;;
10245 *)
b0cacab0
TT
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10255 break 2
10256 fi
10257done
10258done
10259
50e1e10f
TT
10260 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10261 ;;
10262esac
10263fi
b0cacab0
TT
10264SED=$ac_cv_path_SED
10265
50e1e10f 10266if test -n "$SED"; then
b0cacab0
TT
10267 echo "$as_me:$LINENO: result: $SED" >&5
10268echo "${ECHO_T}$SED" >&6
50e1e10f 10269else
b0cacab0
TT
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
50e1e10f
TT
10272fi
10273
9d564f73
TT
10274# Extract the first word of "perl", so it can be a program name with args.
10275set dummy perl; ac_word=$2
b0cacab0
TT
10276echo "$as_me:$LINENO: checking for $ac_word" >&5
10277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278if test "${ac_cv_path_PERL+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
9d564f73 10280else
b0cacab0
TT
10281 case $PERL in
10282 [\\/]* | ?:[\\/]*)
9d564f73
TT
10283 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10284 ;;
9d564f73 10285 *)
b0cacab0
TT
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10293 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10295 break 2
10296 fi
10297done
10298done
10299
9d564f73
TT
10300 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10301 ;;
10302esac
10303fi
b0cacab0
TT
10304PERL=$ac_cv_path_PERL
10305
9d564f73 10306if test -n "$PERL"; then
b0cacab0
TT
10307 echo "$as_me:$LINENO: result: $PERL" >&5
10308echo "${ECHO_T}$PERL" >&6
9d564f73 10309else
b0cacab0
TT
10310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
9d564f73
TT
10312fi
10313
250f79f0
TT
10314# Extract the first word of "ldconfig", so it can be a program name with args.
10315set dummy ldconfig; ac_word=$2
b0cacab0
TT
10316echo "$as_me:$LINENO: checking for $ac_word" >&5
10317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318if test "${ac_cv_path_LDCONFIG+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
250f79f0 10320else
b0cacab0
TT
10321 case $LDCONFIG in
10322 [\\/]* | ?:[\\/]*)
250f79f0
TT
10323 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10324 ;;
250f79f0 10325 *)
b0cacab0
TT
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
10331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 break 2
10336 fi
10337done
10338done
10339
250f79f0
TT
10340 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10341 ;;
10342esac
10343fi
b0cacab0 10344LDCONFIG=$ac_cv_path_LDCONFIG
50e1e10f 10345
b0cacab0
TT
10346if test -n "$LDCONFIG"; then
10347 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10348echo "${ECHO_T}$LDCONFIG" >&6
93636bde 10349else
b0cacab0
TT
10350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
93636bde
TT
10352fi
10353
b0cacab0
TT
10354if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50e1e10f 10356set dummy ${ac_tool_prefix}ar; ac_word=$2
b0cacab0
TT
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_AR+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10361else
10362 if test -n "$AR"; then
10363 ac_cv_prog_AR="$AR" # Let the user override the test.
10364else
b0cacab0
TT
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_AR="${ac_tool_prefix}ar"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
50e1e10f
TT
10379fi
10380fi
b0cacab0 10381AR=$ac_cv_prog_AR
50e1e10f 10382if test -n "$AR"; then
b0cacab0
TT
10383 echo "$as_me:$LINENO: result: $AR" >&5
10384echo "${ECHO_T}$AR" >&6
50e1e10f 10385else
b0cacab0
TT
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
50e1e10f
TT
10388fi
10389
b0cacab0 10390fi
50e1e10f 10391if test -z "$ac_cv_prog_AR"; then
b0cacab0 10392 ac_ct_AR=$AR
50e1e10f
TT
10393 # Extract the first word of "ar", so it can be a program name with args.
10394set dummy ar; ac_word=$2
b0cacab0
TT
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10399else
b0cacab0
TT
10400 if test -n "$ac_ct_AR"; then
10401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
93636bde 10402else
b0cacab0
TT
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_AR="ar"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
50e1e10f
TT
10418fi
10419fi
b0cacab0
TT
10420ac_ct_AR=$ac_cv_prog_ac_ct_AR
10421if test -n "$ac_ct_AR"; then
10422 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10423echo "${ECHO_T}$ac_ct_AR" >&6
50e1e10f 10424else
b0cacab0
TT
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
50e1e10f
TT
10427fi
10428
b0cacab0 10429 AR=$ac_ct_AR
50e1e10f 10430else
b0cacab0 10431 AR="$ac_cv_prog_AR"
50e1e10f
TT
10432fi
10433
b0cacab0
TT
10434if test -n "$ac_tool_prefix"; then
10435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50e1e10f 10436set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0cacab0
TT
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_RANLIB+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10441else
10442 if test -n "$RANLIB"; then
10443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10444else
b0cacab0
TT
10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 break 2
10455 fi
10456done
10457done
10458
50e1e10f
TT
10459fi
10460fi
b0cacab0 10461RANLIB=$ac_cv_prog_RANLIB
50e1e10f 10462if test -n "$RANLIB"; then
b0cacab0
TT
10463 echo "$as_me:$LINENO: result: $RANLIB" >&5
10464echo "${ECHO_T}$RANLIB" >&6
50e1e10f 10465else
b0cacab0
TT
10466 echo "$as_me:$LINENO: result: no" >&5
10467echo "${ECHO_T}no" >&6
50e1e10f
TT
10468fi
10469
b0cacab0 10470fi
50e1e10f 10471if test -z "$ac_cv_prog_RANLIB"; then
b0cacab0 10472 ac_ct_RANLIB=$RANLIB
50e1e10f
TT
10473 # Extract the first word of "ranlib", so it can be a program name with args.
10474set dummy ranlib; ac_word=$2
b0cacab0
TT
10475echo "$as_me:$LINENO: checking for $ac_word" >&5
10476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10477if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10479else
b0cacab0
TT
10480 if test -n "$ac_ct_RANLIB"; then
10481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
93636bde 10482else
b0cacab0
TT
10483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484for as_dir in $PATH
10485do
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_ac_ct_RANLIB="ranlib"
10491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10493 fi
10494done
10495done
10496
10497 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
50e1e10f
TT
10498fi
10499fi
b0cacab0
TT
10500ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10501if test -n "$ac_ct_RANLIB"; then
10502 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10503echo "${ECHO_T}$ac_ct_RANLIB" >&6
50e1e10f 10504else
b0cacab0
TT
10505 echo "$as_me:$LINENO: result: no" >&5
10506echo "${ECHO_T}no" >&6
50e1e10f
TT
10507fi
10508
b0cacab0 10509 RANLIB=$ac_ct_RANLIB
50e1e10f 10510else
b0cacab0 10511 RANLIB="$ac_cv_prog_RANLIB"
50e1e10f
TT
10512fi
10513
b0cacab0
TT
10514if test -n "$ac_tool_prefix"; then
10515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50e1e10f 10516set dummy ${ac_tool_prefix}strip; ac_word=$2
b0cacab0
TT
10517echo "$as_me:$LINENO: checking for $ac_word" >&5
10518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10519if test "${ac_cv_prog_STRIP+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10521else
10522 if test -n "$STRIP"; then
10523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10524else
b0cacab0
TT
10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526for as_dir in $PATH
10527do
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10535 fi
10536done
10537done
10538
50e1e10f
TT
10539fi
10540fi
b0cacab0 10541STRIP=$ac_cv_prog_STRIP
50e1e10f 10542if test -n "$STRIP"; then
b0cacab0
TT
10543 echo "$as_me:$LINENO: result: $STRIP" >&5
10544echo "${ECHO_T}$STRIP" >&6
50e1e10f 10545else
b0cacab0
TT
10546 echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
50e1e10f
TT
10548fi
10549
b0cacab0 10550fi
50e1e10f 10551if test -z "$ac_cv_prog_STRIP"; then
b0cacab0 10552 ac_ct_STRIP=$STRIP
50e1e10f
TT
10553 # Extract the first word of "strip", so it can be a program name with args.
10554set dummy strip; ac_word=$2
b0cacab0
TT
10555echo "$as_me:$LINENO: checking for $ac_word" >&5
10556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10559else
b0cacab0
TT
10560 if test -n "$ac_ct_STRIP"; then
10561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
93636bde 10562else
b0cacab0
TT
10563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_ac_ct_STRIP="strip"
10571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574done
10575done
10576
10577 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
50e1e10f
TT
10578fi
10579fi
b0cacab0
TT
10580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10581if test -n "$ac_ct_STRIP"; then
10582 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10583echo "${ECHO_T}$ac_ct_STRIP" >&6
50e1e10f 10584else
b0cacab0
TT
10585 echo "$as_me:$LINENO: result: no" >&5
10586echo "${ECHO_T}no" >&6
50e1e10f
TT
10587fi
10588
b0cacab0 10589 STRIP=$ac_ct_STRIP
50e1e10f 10590else
b0cacab0 10591 STRIP="$ac_cv_prog_STRIP"
50e1e10f
TT
10592fi
10593
50e1e10f
TT
10594# Find a good install program. We prefer a C program (faster),
10595# so one script is as good as another. But avoid the broken or
10596# incompatible versions:
10597# SysV /etc/install, /usr/sbin/install
10598# SunOS /usr/etc/install
10599# IRIX /sbin/install
10600# AIX /bin/install
b0cacab0 10601# AmigaOS /C/install, which installs bootblocks on floppy discs
a4bf69d9 10602# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50e1e10f
TT
10603# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10604# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b0cacab0 10605# OS/2's system install, which has a completely different semantic
50e1e10f 10606# ./install, which can be erroneously created by make from ./install.sh.
b0cacab0
TT
10607echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10608echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
50e1e10f 10609if test -z "$INSTALL"; then
b0cacab0
TT
10610if test "${ac_cv_path_install+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10612else
b0cacab0
TT
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614for as_dir in $PATH
10615do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 # Account for people who put trailing slashes in PATH elements.
10619case $as_dir/ in
10620 ./ | .// | /cC/* | \
10621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10622 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10623 /usr/ucb/* ) ;;
10624 *)
10625 # OSF1 and SCO ODT 3.0 have their own names for install.
10626 # Don't use installbsd from OSF since it installs stuff as root
10627 # by default.
10628 for ac_prog in ginstall scoinst install; do
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
50e1e10f 10631 if test $ac_prog = install &&
b0cacab0 10632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50e1e10f 10633 # AIX install. It has an incompatible calling convention.
50e1e10f 10634 :
b0cacab0
TT
10635 elif test $ac_prog = install &&
10636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10637 # program-specific install script used by HP pwplus--don't use.
10638 :
50e1e10f 10639 else
b0cacab0
TT
10640 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10641 break 3
50e1e10f
TT
10642 fi
10643 fi
10644 done
b0cacab0
TT
10645 done
10646 ;;
10647esac
10648done
10649
21c84b71 10650
50e1e10f 10651fi
21c84b71 10652 if test "${ac_cv_path_install+set}" = set; then
b0cacab0 10653 INSTALL=$ac_cv_path_install
21c84b71
TT
10654 else
10655 # As a last resort, use the slow shell script. We don't cache a
10656 # path for INSTALL within a source directory, because that will
10657 # break other packages using the cache if that directory is
10658 # removed, or if the path is relative.
b0cacab0 10659 INSTALL=$ac_install_sh
21c84b71 10660 fi
50e1e10f 10661fi
b0cacab0
TT
10662echo "$as_me:$LINENO: result: $INSTALL" >&5
10663echo "${ECHO_T}$INSTALL" >&6
50e1e10f
TT
10664
10665# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10666# It thinks the first close brace ends the variable substitution.
10667test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10668
b0cacab0 10669test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a4bf69d9 10670
50e1e10f
TT
10671test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10672
6c133523
TT
10673# See if we need a separate native compiler.
10674if test $cross_compiling = no; then
10675 BUILD_CC="$CC"
b0cacab0 10676
6c133523
TT
10677else
10678 for ac_prog in gcc cc
10679do
b0cacab0 10680 # Extract the first word of "$ac_prog", so it can be a program name with args.
6c133523 10681set dummy $ac_prog; ac_word=$2
b0cacab0
TT
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10684if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
6c133523 10686else
b0cacab0
TT
10687 if test -n "$BUILD_CC"; then
10688 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697 ac_cv_prog_BUILD_CC="$ac_prog"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
6c133523
TT
10704fi
10705fi
b0cacab0 10706BUILD_CC=$ac_cv_prog_BUILD_CC
6c133523 10707if test -n "$BUILD_CC"; then
b0cacab0
TT
10708 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10709echo "${ECHO_T}$BUILD_CC" >&6
6c133523 10710else
b0cacab0
TT
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
6c133523
TT
10713fi
10714
b0cacab0 10715 test -n "$BUILD_CC" && break
6c133523
TT
10716done
10717
10718fi
b0cacab0
TT
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
762c7c65
TT
10748
10749for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h
50e1e10f 10750do
b0cacab0
TT
10751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10752if eval "test \"\${$as_ac_Header+set}\" = set"; then
10753 echo "$as_me:$LINENO: checking for $ac_header" >&5
10754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757fi
10758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10760else
10761 # Is the header compilable?
10762echo "$as_me:$LINENO: checking $ac_header usability" >&5
10763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10764cat >conftest.$ac_ext <<_ACEOF
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770$ac_includes_default
10771#include <$ac_header>
10772_ACEOF
10773rm -f conftest.$ac_objext
10774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler=yes
10795else
10796 echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799ac_header_compiler=no
10800fi
10801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803echo "${ECHO_T}$ac_header_compiler" >&6
10804
10805# Is the header present?
10806echo "$as_me:$LINENO: checking $ac_header presence" >&5
10807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10808cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814#include <$ac_header>
10815_ACEOF
10816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev/null; then
10824 if test -s conftest.err; then
10825 ac_cpp_err=$ac_c_preproc_warn_flag
10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827 else
10828 ac_cpp_err=
10829 fi
10830else
10831 ac_cpp_err=yes
50e1e10f 10832fi
b0cacab0
TT
10833if test -z "$ac_cpp_err"; then
10834 ac_header_preproc=yes
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_header_preproc=no
50e1e10f 10840fi
b0cacab0
TT
10841rm -f conftest.err conftest.$ac_ext
10842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843echo "${ECHO_T}$ac_header_preproc" >&6
10844
10845# So? What about this header?
10846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 yes:no: )
10848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc=yes
10853 ;;
10854 no:yes:* )
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10867 (
10868 cat <<\_ASBOX
10869## ------------------------------------------ ##
10870## Report this to the AC_PACKAGE_NAME lists. ##
10871## ------------------------------------------ ##
10872_ASBOX
10873 ) |
10874 sed "s/^/$as_me: WARNING: /" >&2
10875 ;;
10876esac
10877echo "$as_me:$LINENO: checking for $ac_header" >&5
10878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10879if eval "test \"\${$as_ac_Header+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10881else
b0cacab0
TT
10882 eval "$as_ac_Header=\$ac_header_preproc"
10883fi
10884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10886
50e1e10f 10887fi
b0cacab0
TT
10888if test `eval echo '${'$as_ac_Header'}'` = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10891_ACEOF
10892
10893fi
10894
50e1e10f
TT
10895done
10896
b0cacab0 10897
da76d6b7
TT
10898
10899for ac_header in sys/disk.h sys/mount.h
10900do
10901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902echo "$as_me:$LINENO: checking for $ac_header" >&5
10903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907 cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913
10914#if HAVE_SYS_QUEUE_H
10915#include <sys/queue.h>
10916#endif
10917
10918
10919#include <$ac_header>
10920_ACEOF
10921rm -f conftest.$ac_objext
10922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest.$ac_objext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_Header=yes"
10943else
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947eval "$as_ac_Header=no"
10948fi
10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956_ACEOF
10957
10958fi
10959
10960done
10961
10962
10963for ac_header in net/if.h
10964do
10965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966echo "$as_me:$LINENO: checking for $ac_header" >&5
10967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10968if eval "test \"\${$as_ac_Header+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977
10978#if HAVE_SYS_TYPES_H
10979#include <sys/types.h>
10980#endif
10981#if HAVE_SYS_SOCKET
10982#include <sys/socket.h>
10983#endif
10984
10985
10986#include <$ac_header>
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 eval "$as_ac_Header=yes"
11010else
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
11014eval "$as_ac_Header=no"
11015fi
11016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023_ACEOF
11024
11025fi
11026
11027done
11028
11029
b0cacab0
TT
11030for ac_func in vprintf
11031do
11032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033echo "$as_me:$LINENO: checking for $ac_func" >&5
11034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11035if eval "test \"\${$as_ac_var+set}\" = set"; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11046#define $ac_func innocuous_$ac_func
11047
50e1e10f 11048/* System header to define __stub macros and hopefully few prototypes,
b0cacab0
TT
11049 which can conflict with char $ac_func (); below.
11050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11051 <limits.h> exists even on freestanding compilers. */
11052
11053#ifdef __STDC__
11054# include <limits.h>
11055#else
11056# include <assert.h>
11057#endif
93636bde 11058
b0cacab0 11059#undef $ac_func
50e1e10f 11060
b0cacab0
TT
11061/* Override any gcc2 internal prototype to avoid an error. */
11062#ifdef __cplusplus
11063extern "C"
11064{
11065#endif
11066/* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11068char $ac_func ();
50e1e10f
TT
11069/* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
07a0db15 11071 something starting with __ and the normal name is an alias. */
b0cacab0 11072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
07a0db15
TT
11073choke me
11074#else
b0cacab0
TT
11075char (*f) () = $ac_func;
11076#endif
11077#ifdef __cplusplus
11078}
07a0db15 11079#endif
50e1e10f 11080
b0cacab0
TT
11081int
11082main ()
11083{
11084return f != $ac_func;
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext conftest$ac_exeext
11090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091 (eval $ac_link) 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 eval "$as_ac_var=yes"
11111else
11112 echo "$as_me: failed program was:" >&5
11113sed 's/^/| /' conftest.$ac_ext >&5
11114
11115eval "$as_ac_var=no"
11116fi
11117rm -f conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11119fi
11120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11122if test `eval echo '${'$as_ac_var'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125_ACEOF
11126
11127echo "$as_me:$LINENO: checking for _doprnt" >&5
11128echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11129if test "${ac_cv_func__doprnt+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 cat >conftest.$ac_ext <<_ACEOF
11133/* confdefs.h. */
11134_ACEOF
11135cat confdefs.h >>conftest.$ac_ext
11136cat >>conftest.$ac_ext <<_ACEOF
11137/* end confdefs.h. */
11138/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11140#define _doprnt innocuous__doprnt
93636bde 11141
b0cacab0
TT
11142/* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char _doprnt (); below.
11144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145 <limits.h> exists even on freestanding compilers. */
93636bde 11146
b0cacab0
TT
11147#ifdef __STDC__
11148# include <limits.h>
11149#else
11150# include <assert.h>
11151#endif
11152
11153#undef _doprnt
93636bde 11154
50e1e10f 11155/* Override any gcc2 internal prototype to avoid an error. */
b0cacab0
TT
11156#ifdef __cplusplus
11157extern "C"
11158{
11159#endif
21c84b71 11160/* We use char because int might match the return type of a gcc2
b0cacab0
TT
11161 builtin and then its argument prototype would still apply. */
11162char _doprnt ();
50e1e10f
TT
11163/* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166#if defined (__stub__doprnt) || defined (__stub____doprnt)
11167choke me
11168#else
b0cacab0
TT
11169char (*f) () = _doprnt;
11170#endif
11171#ifdef __cplusplus
11172}
50e1e10f
TT
11173#endif
11174
b0cacab0
TT
11175int
11176main ()
11177{
11178return f != _doprnt;
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
11192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func__doprnt=yes
11205else
11206 echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209ac_cv_func__doprnt=no
11210fi
11211rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11215echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11216if test $ac_cv_func__doprnt = yes; then
11217
11218cat >>confdefs.h <<\_ACEOF
50e1e10f 11219#define HAVE_DOPRNT 1
b0cacab0 11220_ACEOF
50e1e10f 11221
50e1e10f
TT
11222fi
11223
11224fi
b0cacab0 11225done
50e1e10f 11226
b0cacab0 11227
6c65d251
TT
11228echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11229echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11230if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
b0cacab0 11231 echo $ECHO_N "(cached) $ECHO_C" >&6
fff45483 11232else
b0cacab0
TT
11233 cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
fff45483 11239#include <dirent.h>
6c65d251 11240
b0cacab0
TT
11241int
11242main ()
11243{
6c65d251
TT
11244static struct dirent ac_aggr;
11245if (ac_aggr.d_reclen)
11246return 0;
b0cacab0
TT
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11253 (eval $ac_compile) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
6c65d251 11272 ac_cv_member_struct_dirent_d_reclen=yes
fff45483 11273else
b0cacab0
TT
11274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
6c65d251
TT
11277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283#include <dirent.h>
11284
11285int
11286main ()
11287{
11288static struct dirent ac_aggr;
11289if (sizeof ac_aggr.d_reclen)
11290return 0;
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; } &&
11310 { ac_try='test -s conftest.$ac_objext'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_cv_member_struct_dirent_d_reclen=yes
11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321ac_cv_member_struct_dirent_d_reclen=no
fff45483 11322fi
b0cacab0 11323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fff45483 11324fi
6c65d251
TT
11325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326fi
11327echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11328echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11329if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11330 cat >>confdefs.h <<\_ACEOF
fff45483 11331#define HAVE_RECLEN_DIRENT 1
b0cacab0 11332_ACEOF
fff45483
TT
11333
11334fi
6c65d251
TT
11335
11336echo "$as_me:$LINENO: checking for ssize_t" >&5
11337echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11338if test "${ac_cv_type_ssize_t+set}" = set; then
b0cacab0 11339 echo $ECHO_N "(cached) $ECHO_C" >&6
fff45483 11340else
b0cacab0
TT
11341 cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
fff45483 11347#include <sys/types.h>
6c65d251 11348
b0cacab0
TT
11349int
11350main ()
11351{
6c65d251
TT
11352if ((ssize_t *) 0)
11353 return 0;
11354if (sizeof (ssize_t))
11355 return 0;
b0cacab0
TT
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
6c65d251 11381 ac_cv_type_ssize_t=yes
fff45483 11382else
b0cacab0
TT
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
6c65d251 11386ac_cv_type_ssize_t=no
fff45483 11387fi
b0cacab0 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fff45483 11389fi
6c65d251
TT
11390echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11391echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11392if test $ac_cv_type_ssize_t = yes; then
11393 cat >>confdefs.h <<\_ACEOF
fff45483 11394#define HAVE_TYPE_SSIZE_T 1
b0cacab0 11395_ACEOF
fff45483
TT
11396
11397fi
6c65d251
TT
11398
11399echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11400echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11401if test "${ac_cv_have_decl_llseek+set}" = set; then
b0cacab0 11402 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b9c4de 11403else
b0cacab0
TT
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
b0b9c4de 11410#include <unistd.h>
6c65d251 11411
b0cacab0
TT
11412int
11413main ()
11414{
6c65d251
TT
11415#ifndef llseek
11416 char *p = (char *) llseek;
11417#endif
11418
b0cacab0
TT
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
6c65d251 11444 ac_cv_have_decl_llseek=yes
b0b9c4de 11445else
b0cacab0
TT
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
6c65d251 11449ac_cv_have_decl_llseek=no
b0b9c4de 11450fi
b0cacab0 11451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b0b9c4de 11452fi
6c65d251
TT
11453echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11454echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11455if test $ac_cv_have_decl_llseek = yes; then
11456 cat >>confdefs.h <<\_ACEOF
b0b9c4de 11457#define HAVE_LLSEEK_PROTOTYPE 1
b0cacab0 11458_ACEOF
b0b9c4de 11459
6928adc9 11460fi
6c65d251
TT
11461
11462echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11463echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11464if test "${ac_cv_have_decl_lseek64+set}" = set; then
b0cacab0 11465 echo $ECHO_N "(cached) $ECHO_C" >&6
6928adc9 11466else
b0cacab0
TT
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
6928adc9 11473#define _LARGEFILE_SOURCE
6c65d251
TT
11474 #define _LARGEFILE64_SOURCE
11475 #include <unistd.h>
11476
b0cacab0
TT
11477int
11478main ()
11479{
6c65d251
TT
11480#ifndef lseek64
11481 char *p = (char *) lseek64;
11482#endif
11483
b0cacab0
TT
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
6c65d251 11509 ac_cv_have_decl_lseek64=yes
6928adc9 11510else
b0cacab0
TT
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
6c65d251 11514ac_cv_have_decl_lseek64=no
6928adc9 11515fi
b0cacab0 11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928adc9 11517fi
6c65d251
TT
11518echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11519echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11520if test $ac_cv_have_decl_lseek64 = yes; then
11521 cat >>confdefs.h <<\_ACEOF
6928adc9 11522#define HAVE_LSEEK64_PROTOTYPE 1
b0cacab0 11523_ACEOF
6928adc9 11524
50e1e10f 11525fi
6c65d251 11526
50e1e10f 11527if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
b0cacab0 11528 # if cross-compiling, with no cached values, just assume something common.
50e1e10f
TT
11529 ac_cv_sizeof_short=2
11530 ac_cv_sizeof_int=4
11531 ac_cv_sizeof_long=4
6c133523 11532 ac_cv_sizeof_long_long=8
b0cacab0
TT
11533 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11534echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11535fi
11536echo "$as_me:$LINENO: checking for short" >&5
11537echo $ECHO_N "checking for short... $ECHO_C" >&6
11538if test "${ac_cv_type_short+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
11541 cat >conftest.$ac_ext <<_ACEOF
11542/* confdefs.h. */
11543_ACEOF
11544cat confdefs.h >>conftest.$ac_ext
11545cat >>conftest.$ac_ext <<_ACEOF
11546/* end confdefs.h. */
11547$ac_includes_default
11548int
11549main ()
11550{
11551if ((short *) 0)
11552 return 0;
11553if (sizeof (short))
11554 return 0;
11555 ;
11556 return 0;
11557}
11558_ACEOF
11559rm -f conftest.$ac_objext
11560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>conftest.er1
11562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_cv_type_short=yes
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
11584
11585ac_cv_type_short=no
11586fi
11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588fi
11589echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11590echo "${ECHO_T}$ac_cv_type_short" >&6
11591
11592echo "$as_me:$LINENO: checking size of short" >&5
11593echo $ECHO_N "checking size of short... $ECHO_C" >&6
11594if test "${ac_cv_sizeof_short+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 if test "$ac_cv_type_short" = yes; then
11598 # The cast to unsigned long works around a bug in the HP C Compiler
11599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11601 # This bug is HP SR number 8606223364.
11602 if test "$cross_compiling" = yes; then
11603 # Depending upon the size, compute the lo and hi bounds.
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611int
11612main ()
11613{
11614static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11615test_array [0] = 0
11616
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest.$ac_objext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_lo=0 ac_mid=0
11643 while :; do
11644 cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650$ac_includes_default
11651int
11652main ()
11653{
11654static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11655test_array [0] = 0
11656
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661rm -f conftest.$ac_objext
11662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 (eval $ac_compile) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_hi=$ac_mid; break
11683else
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687ac_lo=`expr $ac_mid + 1`
11688 if test $ac_lo -le $ac_mid; then
11689 ac_lo= ac_hi=
11690 break
11691 fi
11692 ac_mid=`expr 2 '*' $ac_mid + 1`
11693fi
11694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11695 done
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
11700cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706$ac_includes_default
11707int
11708main ()
11709{
11710static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11711test_array [0] = 0
11712
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext
11718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11720 ac_status=$?
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_hi=-1 ac_mid=-1
11739 while :; do
11740 cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746$ac_includes_default
11747int
11748main ()
11749{
11750static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11751test_array [0] = 0
11752
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_lo=$ac_mid; break
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783ac_hi=`expr '(' $ac_mid ')' - 1`
11784 if test $ac_mid -le $ac_hi; then
11785 ac_lo= ac_hi=
11786 break
11787 fi
11788 ac_mid=`expr 2 '*' $ac_mid`
11789fi
11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 done
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796ac_lo= ac_hi=
11797fi
11798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799fi
11800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11801# Binary search between lo and hi bounds.
11802while test "x$ac_lo" != "x$ac_hi"; do
11803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11804 cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810$ac_includes_default
11811int
11812main ()
11813{
11814static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11815test_array [0] = 0
11816
11817 ;
11818 return 0;
11819}
11820_ACEOF
11821rm -f conftest.$ac_objext
11822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 ac_hi=$ac_mid
11843else
11844 echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847ac_lo=`expr '(' $ac_mid ')' + 1`
11848fi
11849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850done
11851case $ac_lo in
11852?*) ac_cv_sizeof_short=$ac_lo;;
11853'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11854See \`config.log' for more details." >&5
11855echo "$as_me: error: cannot compute sizeof (short), 77
11856See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; } ;;
11858esac
11859else
11860 if test "$cross_compiling" = yes; then
11861 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11862echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11863 { (exit 1); exit 1; }; }
11864else
11865 cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871$ac_includes_default
11872long longval () { return (long) (sizeof (short)); }
11873unsigned long ulongval () { return (long) (sizeof (short)); }
11874#include <stdio.h>
11875#include <stdlib.h>
11876int
11877main ()
11878{
11879
11880 FILE *f = fopen ("conftest.val", "w");
11881 if (! f)
11882 exit (1);
11883 if (((long) (sizeof (short))) < 0)
11884 {
11885 long i = longval ();
11886 if (i != ((long) (sizeof (short))))
11887 exit (1);
11888 fprintf (f, "%ld\n", i);
11889 }
11890 else
11891 {
11892 unsigned long i = ulongval ();
11893 if (i != ((long) (sizeof (short))))
11894 exit (1);
11895 fprintf (f, "%lu\n", i);
11896 }
11897 exit (ferror (f) || fclose (f) != 0);
11898
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_sizeof_short=`cat conftest.val`
11915else
11916 echo "$as_me: program exited with status $ac_status" >&5
11917echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920( exit $ac_status )
11921{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11922See \`config.log' for more details." >&5
11923echo "$as_me: error: cannot compute sizeof (short), 77
11924See \`config.log' for more details." >&2;}
11925 { (exit 1); exit 1; }; }
11926fi
11927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11928fi
11929fi
11930rm -f conftest.val
11931else
11932 ac_cv_sizeof_short=0
11933fi
11934fi
11935echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11936echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11937cat >>confdefs.h <<_ACEOF
11938#define SIZEOF_SHORT $ac_cv_sizeof_short
11939_ACEOF
11940
11941
11942echo "$as_me:$LINENO: checking for int" >&5
11943echo $ECHO_N "checking for int... $ECHO_C" >&6
11944if test "${ac_cv_type_int+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957if ((int *) 0)
11958 return 0;
11959if (sizeof (int))
11960 return 0;
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext
11966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_type_int=yes
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991ac_cv_type_int=no
11992fi
11993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11996echo "${ECHO_T}$ac_cv_type_int" >&6
11997
11998echo "$as_me:$LINENO: checking size of int" >&5
11999echo $ECHO_N "checking size of int... $ECHO_C" >&6
12000if test "${ac_cv_sizeof_int+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003 if test "$ac_cv_type_int" = yes; then
12004 # The cast to unsigned long works around a bug in the HP C Compiler
12005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12007 # This bug is HP SR number 8606223364.
12008 if test "$cross_compiling" = yes; then
12009 # Depending upon the size, compute the lo and hi bounds.
12010cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016$ac_includes_default
12017int
12018main ()
12019{
12020static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12021test_array [0] = 0
12022
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_lo=0 ac_mid=0
12049 while :; do
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056$ac_includes_default
12057int
12058main ()
12059{
12060static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12061test_array [0] = 0
12062
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_hi=$ac_mid; break
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093ac_lo=`expr $ac_mid + 1`
12094 if test $ac_lo -le $ac_mid; then
12095 ac_lo= ac_hi=
12096 break
12097 fi
12098 ac_mid=`expr 2 '*' $ac_mid + 1`
12099fi
12100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101 done
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106cat >conftest.$ac_ext <<_ACEOF
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112$ac_includes_default
12113int
12114main ()
12115{
12116static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12117test_array [0] = 0
12118
12119 ;
12120 return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext
12124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125 (eval $ac_compile) 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_hi=-1 ac_mid=-1
12145 while :; do
12146 cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152$ac_includes_default
12153int
12154main ()
12155{
12156static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12157test_array [0] = 0
12158
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext
12164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_lo=$ac_mid; break
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189ac_hi=`expr '(' $ac_mid ')' - 1`
12190 if test $ac_mid -le $ac_hi; then
12191 ac_lo= ac_hi=
12192 break
12193 fi
12194 ac_mid=`expr 2 '*' $ac_mid`
12195fi
12196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197 done
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202ac_lo= ac_hi=
12203fi
12204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205fi
12206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207# Binary search between lo and hi bounds.
12208while test "x$ac_lo" != "x$ac_hi"; do
12209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210 cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216$ac_includes_default
12217int
12218main ()
12219{
12220static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12221test_array [0] = 0
12222
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext
12228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_hi=$ac_mid
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253ac_lo=`expr '(' $ac_mid ')' + 1`
12254fi
12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256done
12257case $ac_lo in
12258?*) ac_cv_sizeof_int=$ac_lo;;
12259'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12260See \`config.log' for more details." >&5
12261echo "$as_me: error: cannot compute sizeof (int), 77
12262See \`config.log' for more details." >&2;}
12263 { (exit 1); exit 1; }; } ;;
12264esac
12265else
12266 if test "$cross_compiling" = yes; then
12267 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12268echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12269 { (exit 1); exit 1; }; }
12270else
12271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277$ac_includes_default
12278long longval () { return (long) (sizeof (int)); }
12279unsigned long ulongval () { return (long) (sizeof (int)); }
12280#include <stdio.h>
12281#include <stdlib.h>
12282int
12283main ()
12284{
12285
12286 FILE *f = fopen ("conftest.val", "w");
12287 if (! f)
12288 exit (1);
12289 if (((long) (sizeof (int))) < 0)
12290 {
12291 long i = longval ();
12292 if (i != ((long) (sizeof (int))))
12293 exit (1);
12294 fprintf (f, "%ld\n", i);
12295 }
12296 else
12297 {
12298 unsigned long i = ulongval ();
12299 if (i != ((long) (sizeof (int))))
12300 exit (1);
12301 fprintf (f, "%lu\n", i);
12302 }
12303 exit (ferror (f) || fclose (f) != 0);
12304
12305 ;
12306 return 0;
12307}
12308_ACEOF
12309rm -f conftest$ac_exeext
12310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311 (eval $ac_link) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_sizeof_int=`cat conftest.val`
12321else
12322 echo "$as_me: program exited with status $ac_status" >&5
12323echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326( exit $ac_status )
12327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12328See \`config.log' for more details." >&5
12329echo "$as_me: error: cannot compute sizeof (int), 77
12330See \`config.log' for more details." >&2;}
12331 { (exit 1); exit 1; }; }
12332fi
12333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12334fi
12335fi
12336rm -f conftest.val
12337else
12338 ac_cv_sizeof_int=0
12339fi
07a0db15 12340fi
b0cacab0
TT
12341echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12342echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12343cat >>confdefs.h <<_ACEOF
12344#define SIZEOF_INT $ac_cv_sizeof_int
12345_ACEOF
12346
12347
12348echo "$as_me:$LINENO: checking for long" >&5
12349echo $ECHO_N "checking for long... $ECHO_C" >&6
12350if test "${ac_cv_type_long+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 12352else
b0cacab0
TT
12353 cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359$ac_includes_default
12360int
12361main ()
12362{
12363if ((long *) 0)
12364 return 0;
12365if (sizeof (long))
12366 return 0;
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371rm -f conftest.$ac_objext
12372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; }; then
12392 ac_cv_type_long=yes
12393else
12394 echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397ac_cv_type_long=no
12398fi
12399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12400fi
12401echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12402echo "${ECHO_T}$ac_cv_type_long" >&6
12403
12404echo "$as_me:$LINENO: checking size of long" >&5
12405echo $ECHO_N "checking size of long... $ECHO_C" >&6
12406if test "${ac_cv_sizeof_long+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408else
12409 if test "$ac_cv_type_long" = yes; then
12410 # The cast to unsigned long works around a bug in the HP C Compiler
12411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12413 # This bug is HP SR number 8606223364.
07a0db15 12414 if test "$cross_compiling" = yes; then
b0cacab0
TT
12415 # Depending upon the size, compute the lo and hi bounds.
12416cat >conftest.$ac_ext <<_ACEOF
12417/* confdefs.h. */
12418_ACEOF
12419cat confdefs.h >>conftest.$ac_ext
12420cat >>conftest.$ac_ext <<_ACEOF
12421/* end confdefs.h. */
12422$ac_includes_default
12423int
12424main ()
12425{
12426static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12427test_array [0] = 0
12428
12429 ;
12430 return 0;
12431}
12432_ACEOF
12433rm -f conftest.$ac_objext
12434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12435 (eval $ac_compile) 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_lo=0 ac_mid=0
12455 while :; do
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462$ac_includes_default
12463int
12464main ()
12465{
12466static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12467test_array [0] = 0
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_hi=$ac_mid; break
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_lo=`expr $ac_mid + 1`
12500 if test $ac_lo -le $ac_mid; then
12501 ac_lo= ac_hi=
12502 break
12503 fi
12504 ac_mid=`expr 2 '*' $ac_mid + 1`
12505fi
12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 done
07a0db15 12508else
b0cacab0
TT
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518$ac_includes_default
12519int
12520main ()
50e1e10f 12521{
b0cacab0
TT
12522static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12523test_array [0] = 0
12524
12525 ;
12526 return 0;
50e1e10f 12527}
b0cacab0
TT
12528_ACEOF
12529rm -f conftest.$ac_objext
12530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_hi=-1 ac_mid=-1
12551 while :; do
12552 cat >conftest.$ac_ext <<_ACEOF
12553/* confdefs.h. */
12554_ACEOF
12555cat confdefs.h >>conftest.$ac_ext
12556cat >>conftest.$ac_ext <<_ACEOF
12557/* end confdefs.h. */
12558$ac_includes_default
12559int
12560main ()
12561{
12562static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12563test_array [0] = 0
12564
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_lo=$ac_mid; break
12591else
12592 echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
12595ac_hi=`expr '(' $ac_mid ')' - 1`
12596 if test $ac_mid -le $ac_hi; then
12597 ac_lo= ac_hi=
12598 break
12599 fi
12600 ac_mid=`expr 2 '*' $ac_mid`
12601fi
12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603 done
07a0db15 12604else
b0cacab0
TT
12605 echo "$as_me: failed program was:" >&5
12606sed 's/^/| /' conftest.$ac_ext >&5
93636bde 12607
b0cacab0 12608ac_lo= ac_hi=
93636bde 12609fi
b0cacab0
TT
12610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613# Binary search between lo and hi bounds.
12614while test "x$ac_lo" != "x$ac_hi"; do
12615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622$ac_includes_default
12623int
12624main ()
12625{
12626static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12627test_array [0] = 0
93636bde 12628
b0cacab0
TT
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635 (eval $ac_compile) 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_hi=$ac_mid
12655else
12656 echo "$as_me: failed program was:" >&5
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
12659ac_lo=`expr '(' $ac_mid ')' + 1`
12660fi
12661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662done
12663case $ac_lo in
12664?*) ac_cv_sizeof_long=$ac_lo;;
12665'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12666See \`config.log' for more details." >&5
12667echo "$as_me: error: cannot compute sizeof (long), 77
12668See \`config.log' for more details." >&2;}
12669 { (exit 1); exit 1; }; } ;;
12670esac
50e1e10f 12671else
07a0db15 12672 if test "$cross_compiling" = yes; then
b0cacab0
TT
12673 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12674echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12675 { (exit 1); exit 1; }; }
12676else
12677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683$ac_includes_default
12684long longval () { return (long) (sizeof (long)); }
12685unsigned long ulongval () { return (long) (sizeof (long)); }
93636bde 12686#include <stdio.h>
b0cacab0
TT
12687#include <stdlib.h>
12688int
12689main ()
07a0db15 12690{
b0cacab0
TT
12691
12692 FILE *f = fopen ("conftest.val", "w");
12693 if (! f)
12694 exit (1);
12695 if (((long) (sizeof (long))) < 0)
12696 {
12697 long i = longval ();
12698 if (i != ((long) (sizeof (long))))
12699 exit (1);
12700 fprintf (f, "%ld\n", i);
12701 }
12702 else
12703 {
12704 unsigned long i = ulongval ();
12705 if (i != ((long) (sizeof (long))))
12706 exit (1);
12707 fprintf (f, "%lu\n", i);
12708 }
12709 exit (ferror (f) || fclose (f) != 0);
12710
12711 ;
12712 return 0;
07a0db15 12713}
b0cacab0
TT
12714_ACEOF
12715rm -f conftest$ac_exeext
12716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_sizeof_long=`cat conftest.val`
12727else
12728 echo "$as_me: program exited with status $ac_status" >&5
12729echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732( exit $ac_status )
12733{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12734See \`config.log' for more details." >&5
12735echo "$as_me: error: cannot compute sizeof (long), 77
12736See \`config.log' for more details." >&2;}
12737 { (exit 1); exit 1; }; }
12738fi
12739rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12740fi
12741fi
12742rm -f conftest.val
07a0db15 12743else
b0cacab0 12744 ac_cv_sizeof_long=0
93636bde 12745fi
50e1e10f 12746fi
b0cacab0
TT
12747echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12748echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12749cat >>confdefs.h <<_ACEOF
12750#define SIZEOF_LONG $ac_cv_sizeof_long
12751_ACEOF
50e1e10f 12752
93636bde 12753
b0cacab0
TT
12754echo "$as_me:$LINENO: checking for long long" >&5
12755echo $ECHO_N "checking for long long... $ECHO_C" >&6
12756if test "${ac_cv_type_long_long+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 12758else
b0cacab0
TT
12759 cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
12764/* end confdefs.h. */
12765$ac_includes_default
12766int
12767main ()
12768{
12769if ((long long *) 0)
12770 return 0;
12771if (sizeof (long long))
12772 return 0;
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest.$ac_objext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_type_long_long=yes
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803ac_cv_type_long_long=no
12804fi
12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806fi
12807echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12808echo "${ECHO_T}$ac_cv_type_long_long" >&6
12809
12810echo "$as_me:$LINENO: checking size of long long" >&5
12811echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12812if test "${ac_cv_sizeof_long_long+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 if test "$ac_cv_type_long_long" = yes; then
12816 # The cast to unsigned long works around a bug in the HP C Compiler
12817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12819 # This bug is HP SR number 8606223364.
50e1e10f 12820 if test "$cross_compiling" = yes; then
b0cacab0
TT
12821 # Depending upon the size, compute the lo and hi bounds.
12822cat >conftest.$ac_ext <<_ACEOF
12823/* confdefs.h. */
12824_ACEOF
12825cat confdefs.h >>conftest.$ac_ext
12826cat >>conftest.$ac_ext <<_ACEOF
12827/* end confdefs.h. */
12828$ac_includes_default
12829int
12830main ()
12831{
12832static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12833test_array [0] = 0
12834
12835 ;
12836 return 0;
12837}
12838_ACEOF
12839rm -f conftest.$ac_objext
12840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest.$ac_objext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_lo=0 ac_mid=0
12861 while :; do
12862 cat >conftest.$ac_ext <<_ACEOF
12863/* confdefs.h. */
12864_ACEOF
12865cat confdefs.h >>conftest.$ac_ext
12866cat >>conftest.$ac_ext <<_ACEOF
12867/* end confdefs.h. */
12868$ac_includes_default
12869int
12870main ()
12871{
12872static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12873test_array [0] = 0
12874
12875 ;
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext
12880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881 (eval $ac_compile) 2>conftest.er1
12882 ac_status=$?
12883 grep -v '^ *+' conftest.er1 >conftest.err
12884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest.$ac_objext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_hi=$ac_mid; break
12901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905ac_lo=`expr $ac_mid + 1`
12906 if test $ac_lo -le $ac_mid; then
12907 ac_lo= ac_hi=
12908 break
12909 fi
12910 ac_mid=`expr 2 '*' $ac_mid + 1`
12911fi
12912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913 done
50e1e10f 12914else
b0cacab0
TT
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h. */
12924$ac_includes_default
12925int
12926main ()
50e1e10f 12927{
b0cacab0
TT
12928static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12929test_array [0] = 0
12930
12931 ;
12932 return 0;
50e1e10f 12933}
b0cacab0
TT
12934_ACEOF
12935rm -f conftest.$ac_objext
12936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_hi=-1 ac_mid=-1
12957 while :; do
12958 cat >conftest.$ac_ext <<_ACEOF
12959/* confdefs.h. */
12960_ACEOF
12961cat confdefs.h >>conftest.$ac_ext
12962cat >>conftest.$ac_ext <<_ACEOF
12963/* end confdefs.h. */
12964$ac_includes_default
12965int
12966main ()
12967{
12968static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12969test_array [0] = 0
12970
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext
12976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12977 (eval $ac_compile) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_lo=$ac_mid; break
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001ac_hi=`expr '(' $ac_mid ')' - 1`
13002 if test $ac_mid -le $ac_hi; then
13003 ac_lo= ac_hi=
13004 break
13005 fi
13006 ac_mid=`expr 2 '*' $ac_mid`
13007fi
13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13009 done
07a0db15 13010else
b0cacab0
TT
13011 echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
93636bde 13013
b0cacab0 13014ac_lo= ac_hi=
07a0db15 13015fi
b0cacab0
TT
13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017fi
13018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13019# Binary search between lo and hi bounds.
13020while test "x$ac_lo" != "x$ac_hi"; do
13021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028$ac_includes_default
13029int
13030main ()
13031{
13032static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13033test_array [0] = 0
93636bde 13034
b0cacab0
TT
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext
13040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest.$ac_objext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_hi=$ac_mid
13061else
13062 echo "$as_me: failed program was:" >&5
13063sed 's/^/| /' conftest.$ac_ext >&5
13064
13065ac_lo=`expr '(' $ac_mid ')' + 1`
13066fi
13067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13068done
13069case $ac_lo in
13070?*) ac_cv_sizeof_long_long=$ac_lo;;
13071'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13072See \`config.log' for more details." >&5
13073echo "$as_me: error: cannot compute sizeof (long long), 77
13074See \`config.log' for more details." >&2;}
13075 { (exit 1); exit 1; }; } ;;
13076esac
fc6d9d51 13077else
07a0db15 13078 if test "$cross_compiling" = yes; then
b0cacab0
TT
13079 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13080echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13081 { (exit 1); exit 1; }; }
13082else
13083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089$ac_includes_default
13090long longval () { return (long) (sizeof (long long)); }
13091unsigned long ulongval () { return (long) (sizeof (long long)); }
93636bde 13092#include <stdio.h>
b0cacab0
TT
13093#include <stdlib.h>
13094int
13095main ()
07a0db15 13096{
b0cacab0
TT
13097
13098 FILE *f = fopen ("conftest.val", "w");
13099 if (! f)
13100 exit (1);
13101 if (((long) (sizeof (long long))) < 0)
13102 {
13103 long i = longval ();
13104 if (i != ((long) (sizeof (long long))))
13105 exit (1);
13106 fprintf (f, "%ld\n", i);
13107 }
13108 else
13109 {
13110 unsigned long i = ulongval ();
13111 if (i != ((long) (sizeof (long long))))
13112 exit (1);
13113 fprintf (f, "%lu\n", i);
13114 }
13115 exit (ferror (f) || fclose (f) != 0);
13116
13117 ;
13118 return 0;
07a0db15 13119}
b0cacab0
TT
13120_ACEOF
13121rm -f conftest$ac_exeext
13122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13129 ac_status=$?
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_sizeof_long_long=`cat conftest.val`
13133else
13134 echo "$as_me: program exited with status $ac_status" >&5
13135echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138( exit $ac_status )
13139{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13140See \`config.log' for more details." >&5
13141echo "$as_me: error: cannot compute sizeof (long long), 77
13142See \`config.log' for more details." >&2;}
13143 { (exit 1); exit 1; }; }
13144fi
13145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13146fi
13147fi
13148rm -f conftest.val
07a0db15
TT
13149else
13150 ac_cv_sizeof_long_long=0
21c84b71 13151fi
fc6d9d51 13152fi
b0cacab0
TT
13153echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13154echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13155cat >>confdefs.h <<_ACEOF
fc6d9d51 13156#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
b0cacab0 13157_ACEOF
fc6d9d51 13158
93636bde 13159
50e1e10f
TT
13160SIZEOF_SHORT=$ac_cv_sizeof_short
13161SIZEOF_INT=$ac_cv_sizeof_int
13162SIZEOF_LONG=$ac_cv_sizeof_long
fc6d9d51
TT
13163SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13164
93636bde
TT
13165
13166
13167
b0cacab0
TT
13168echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13169echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13170if test "${ac_cv_c_bigendian+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
877eb6d9 13172else
b0cacab0
TT
13173 # See if sys/param.h defines the BYTE_ORDER macro.
13174cat >conftest.$ac_ext <<_ACEOF
13175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
877eb6d9
TT
13180#include <sys/types.h>
13181#include <sys/param.h>
877eb6d9 13182
b0cacab0
TT
13183int
13184main ()
13185{
877eb6d9
TT
13186#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13187 bogus endian macros
13188#endif
b0cacab0
TT
13189
13190 ;
13191 return 0;
13192}
13193_ACEOF
13194rm -f conftest.$ac_objext
13195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest.$ac_objext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
877eb6d9 13215 # It does; now see whether it defined to BIG_ENDIAN or not.
b0cacab0
TT
13216cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
13221/* end confdefs.h. */
877eb6d9
TT
13222#include <sys/types.h>
13223#include <sys/param.h>
877eb6d9 13224
b0cacab0
TT
13225int
13226main ()
13227{
877eb6d9
TT
13228#if BYTE_ORDER != BIG_ENDIAN
13229 not big endian
13230#endif
b0cacab0
TT
13231
13232 ;
13233 return 0;
13234}
13235_ACEOF
13236rm -f conftest.$ac_objext
13237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
877eb6d9
TT
13257 ac_cv_c_bigendian=yes
13258else
b0cacab0
TT
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262ac_cv_c_bigendian=no
877eb6d9 13263fi
b0cacab0 13264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13265else
b0cacab0
TT
13266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269# It does not; compile a test program.
877eb6d9 13270if test "$cross_compiling" = yes; then
b0cacab0
TT
13271 # try to guess the endianness by grepping values into an object file
13272 ac_cv_c_bigendian=unknown
13273 cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */
13279short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13280short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13281void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13282short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13283short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13284void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13285int
13286main ()
13287{
13288 _ascii (); _ebcdic ();
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293rm -f conftest.$ac_objext
13294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13295 (eval $ac_compile) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13304 (eval $ac_try) 2>&5
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; } &&
13308 { ac_try='test -s conftest.$ac_objext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13315 ac_cv_c_bigendian=yes
13316fi
13317if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13318 if test "$ac_cv_c_bigendian" = unknown; then
13319 ac_cv_c_bigendian=no
13320 else
13321 # finding both strings is unlikely to happen, but who knows?
13322 ac_cv_c_bigendian=unknown
13323 fi
13324fi
13325else
13326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
13329fi
13330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13331else
b0cacab0
TT
13332 cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338int
13339main ()
13340{
877eb6d9
TT
13341 /* Are we little or big endian? From Harbison&Steele. */
13342 union
13343 {
13344 long l;
13345 char c[sizeof (long)];
13346 } u;
13347 u.l = 1;
13348 exit (u.c[sizeof (long) - 1] == 1);
13349}
b0cacab0
TT
13350_ACEOF
13351rm -f conftest$ac_exeext
13352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
877eb6d9
TT
13362 ac_cv_c_bigendian=no
13363else
b0cacab0
TT
13364 echo "$as_me: program exited with status $ac_status" >&5
13365echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368( exit $ac_status )
13369ac_cv_c_bigendian=yes
877eb6d9 13370fi
b0cacab0 13371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
877eb6d9 13372fi
877eb6d9 13373fi
b0cacab0 13374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13375fi
b0cacab0
TT
13376echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13377echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13378case $ac_cv_c_bigendian in
13379 yes)
07a0db15 13380
b0cacab0 13381cat >>confdefs.h <<\_ACEOF
877eb6d9 13382#define WORDS_BIGENDIAN 1
b0cacab0
TT
13383_ACEOF
13384 ;;
13385 no)
13386 ;;
13387 *)
13388 { { echo "$as_me:$LINENO: error: unknown endianness
13389presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13390echo "$as_me: error: unknown endianness
13391presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13392 { (exit 1); exit 1; }; } ;;
13393esac
877eb6d9 13394
4ea7ea00
TT
13395/bin/sh $ac_aux_dir/parse-types.sh
13396ASM_TYPES_HEADER=./asm_types.h
13397
877eb6d9 13398
b0cacab0 13399for ac_header in inttypes.h
0c193f82 13400do
b0cacab0
TT
13401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13402if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo "$as_me:$LINENO: checking for $ac_header" >&5
13404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13405if eval "test \"\${$as_ac_Header+set}\" = set"; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407fi
13408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13410else
13411 # Is the header compilable?
13412echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13414cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420$ac_includes_default
13421#include <$ac_header>
13422_ACEOF
13423rm -f conftest.$ac_objext
13424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_header_compiler=yes
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449ac_header_compiler=no
13450fi
13451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453echo "${ECHO_T}$ac_header_compiler" >&6
13454
13455# Is the header present?
13456echo "$as_me:$LINENO: checking $ac_header presence" >&5
13457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464#include <$ac_header>
13465_ACEOF
13466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13477 else
13478 ac_cpp_err=
13479 fi
13480else
13481 ac_cpp_err=yes
0c193f82 13482fi
b0cacab0
TT
13483if test -z "$ac_cpp_err"; then
13484 ac_header_preproc=yes
13485else
13486 echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_header_preproc=no
0c193f82 13490fi
b0cacab0
TT
13491rm -f conftest.err conftest.$ac_ext
13492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13493echo "${ECHO_T}$ac_header_preproc" >&6
13494
13495# So? What about this header?
13496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13497 yes:no: )
13498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13502 ac_header_preproc=yes
13503 ;;
13504 no:yes:* )
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13517 (
13518 cat <<\_ASBOX
13519## ------------------------------------------ ##
13520## Report this to the AC_PACKAGE_NAME lists. ##
13521## ------------------------------------------ ##
13522_ASBOX
13523 ) |
13524 sed "s/^/$as_me: WARNING: /" >&2
13525 ;;
13526esac
13527echo "$as_me:$LINENO: checking for $ac_header" >&5
13528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13529if eval "test \"\${$as_ac_Header+set}\" = set"; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
0c193f82 13531else
b0cacab0
TT
13532 eval "$as_ac_Header=\$ac_header_preproc"
13533fi
13534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13536
0c193f82 13537fi
b0cacab0
TT
13538if test `eval echo '${'$as_ac_Header'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13541_ACEOF
13542
13543fi
13544
0c193f82
TT
13545done
13546
b0cacab0
TT
13547echo "$as_me:$LINENO: checking for intptr_t" >&5
13548echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13549if test "${ac_cv_type_intptr_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558$ac_includes_default
13559int
13560main ()
13561{
13562if ((intptr_t *) 0)
13563 return 0;
13564if (sizeof (intptr_t))
13565 return 0;
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
0c193f82
TT
13591 ac_cv_type_intptr_t=yes
13592else
b0cacab0
TT
13593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
0c193f82 13595
b0cacab0 13596ac_cv_type_intptr_t=no
0c193f82 13597fi
b0cacab0
TT
13598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599fi
13600echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13601echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13602if test $ac_cv_type_intptr_t = yes; then
b0cacab0
TT
13603
13604cat >>confdefs.h <<_ACEOF
d2ee56d8 13605#define HAVE_INTPTR_T 1
b0cacab0 13606_ACEOF
0c193f82 13607
d2ee56d8 13608
0c193f82
TT
13609fi
13610
b0cacab0
TT
13611echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13612echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13613if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 13615else
b0cacab0
TT
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
50e1e10f 13622#include <sys/stat.h>
b0cacab0
TT
13623int
13624main ()
13625{
50e1e10f 13626struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13627 ;
13628 return 0;
13629}
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633 (eval $ac_compile) 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest.$ac_objext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
50e1e10f
TT
13652 e2fsprogs_cv_struct_st_flags=yes
13653else
b0cacab0
TT
13654 echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
13656
13657e2fsprogs_cv_struct_st_flags=no
50e1e10f 13658fi
b0cacab0 13659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
13660fi
13661
b0cacab0
TT
13662echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13663echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
50e1e10f 13664if test "$e2fsprogs_cv_struct_st_flags" = yes; then
b0cacab0
TT
13665 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13666echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13667 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
c03bc4e8 13676#include <sys/stat.h>
b0cacab0
TT
13677int
13678main ()
13679{
c03bc4e8 13680struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
13681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest.$ac_objext
13686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
c03bc4e8
TT
13706 e2fsprogs_cv_struct_st_flags_immut=yes
13707else
b0cacab0
TT
13708 echo "$as_me: failed program was:" >&5
13709sed 's/^/| /' conftest.$ac_ext >&5
13710
13711e2fsprogs_cv_struct_st_flags_immut=no
c03bc4e8 13712fi
b0cacab0 13713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c03bc4e8
TT
13714fi
13715
b0cacab0
TT
13716 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13717echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
c03bc4e8 13718 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
b0cacab0 13719 cat >>confdefs.h <<\_ACEOF
50e1e10f 13720#define HAVE_STAT_FLAGS 1
b0cacab0 13721_ACEOF
50e1e10f 13722
c03bc4e8 13723 fi
84ea6e70 13724fi
6c65d251
TT
13725echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13726echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13727if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
b0cacab0
TT
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730 cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
84ea6e70 13736#include <sys/types.h>
6c65d251 13737 #include <sys/socket.h>
84ea6e70 13738
b0cacab0
TT
13739int
13740main ()
13741{
6c65d251
TT
13742static struct sockaddr ac_aggr;
13743if (ac_aggr.sa_len)
13744return 0;
b0cacab0
TT
13745 ;
13746 return 0;
13747}
13748_ACEOF
13749rm -f conftest.$ac_objext
13750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
6c65d251 13770 ac_cv_member_struct_sockaddr_sa_len=yes
84ea6e70 13771else
b0cacab0
TT
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
6c65d251
TT
13775cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#include <sys/types.h>
13782 #include <sys/socket.h>
13783
13784int
13785main ()
13786{
13787static struct sockaddr ac_aggr;
13788if (sizeof ac_aggr.sa_len)
13789return 0;
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext
13795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_cv_member_struct_sockaddr_sa_len=yes
13816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820ac_cv_member_struct_sockaddr_sa_len=no
84ea6e70 13821fi
b0cacab0 13822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 13823fi
6c65d251
TT
13824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825fi
13826echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13827echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13828if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
b0cacab0
TT
13829
13830cat >>confdefs.h <<_ACEOF
84ea6e70 13831#define HAVE_SA_LEN 1
b0cacab0 13832_ACEOF
84ea6e70 13833
50e1e10f 13834fi
b0cacab0
TT
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
6c65d251 13854
762c7c65
TT
13855
13856
9b7d811d
AD
13857
13858for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl
50e1e10f 13859do
b0cacab0
TT
13860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13861echo "$as_me:$LINENO: checking for $ac_func" >&5
13862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13863if eval "test \"\${$as_ac_var+set}\" = set"; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
13871/* end confdefs.h. */
13872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13874#define $ac_func innocuous_$ac_func
13875
50e1e10f 13876/* System header to define __stub macros and hopefully few prototypes,
b0cacab0
TT
13877 which can conflict with char $ac_func (); below.
13878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13879 <limits.h> exists even on freestanding compilers. */
13880
13881#ifdef __STDC__
13882# include <limits.h>
13883#else
13884# include <assert.h>
13885#endif
93636bde 13886
b0cacab0 13887#undef $ac_func
50e1e10f 13888
b0cacab0
TT
13889/* Override any gcc2 internal prototype to avoid an error. */
13890#ifdef __cplusplus
13891extern "C"
13892{
13893#endif
13894/* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896char $ac_func ();
50e1e10f
TT
13897/* The GNU C library defines this for functions which it implements
13898 to always fail with ENOSYS. Some functions are actually named
13899 something starting with __ and the normal name is an alias. */
13900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13901choke me
13902#else
b0cacab0
TT
13903char (*f) () = $ac_func;
13904#endif
13905#ifdef __cplusplus
13906}
50e1e10f
TT
13907#endif
13908
b0cacab0
TT
13909int
13910main ()
13911{
13912return f != $ac_func;
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext conftest$ac_exeext
13918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13919 (eval $ac_link) 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 eval "$as_ac_var=yes"
13939else
13940 echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
13942
13943eval "$as_ac_var=no"
13944fi
13945rm -f conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947fi
13948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13950if test `eval echo '${'$as_ac_var'}'` = yes; then
13951 cat >>confdefs.h <<_ACEOF
13952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13953_ACEOF
21c84b71 13954
50e1e10f
TT
13955fi
13956done
13957
fc6d9d51 13958SOCKET_LIB=''
b0cacab0
TT
13959echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13960echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13961if test "${ac_cv_lib_socket_socket+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 13963else
b0cacab0 13964 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13965LIBS="-lsocket $LIBS"
b0cacab0
TT
13966cat >conftest.$ac_ext <<_ACEOF
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
93636bde 13972
b0cacab0
TT
13973/* Override any gcc2 internal prototype to avoid an error. */
13974#ifdef __cplusplus
13975extern "C"
13976#endif
13977/* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13979char socket ();
13980int
13981main ()
13982{
13983socket ();
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext conftest$ac_exeext
13989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_socket_socket=yes
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014ac_cv_lib_socket_socket=no
14015fi
14016rm -f conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018LIBS=$ac_check_lib_save_LIBS
14019fi
14020echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14021echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
14022if test $ac_cv_lib_socket_socket = yes; then
fc6d9d51 14023 SOCKET_LIB=-lsocket
50e1e10f 14024fi
fc6d9d51 14025
93636bde 14026
bbac86bb 14027DLOPEN_LIB=''
b0cacab0
TT
14028echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14029echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14030if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
bbac86bb 14032else
b0cacab0 14033 ac_check_lib_save_LIBS=$LIBS
bbac86bb 14034LIBS="-ldl $LIBS"
b0cacab0
TT
14035cat >conftest.$ac_ext <<_ACEOF
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
14040/* end confdefs.h. */
14041
bbac86bb 14042/* Override any gcc2 internal prototype to avoid an error. */
b0cacab0
TT
14043#ifdef __cplusplus
14044extern "C"
14045#endif
bbac86bb 14046/* We use char because int might match the return type of a gcc2
b0cacab0
TT
14047 builtin and then its argument prototype would still apply. */
14048char dlopen ();
14049int
14050main ()
14051{
14052dlopen ();
14053 ;
14054 return 0;
14055}
14056_ACEOF
14057rm -f conftest.$ac_objext conftest$ac_exeext
14058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_dl_dlopen=yes
14079else
14080 echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
14082
14083ac_cv_lib_dl_dlopen=no
14084fi
14085rm -f conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087LIBS=$ac_check_lib_save_LIBS
14088fi
14089echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14090echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14091if test $ac_cv_lib_dl_dlopen = yes; then
bbac86bb 14092 DLOPEN_LIB=-ldl
b0cacab0 14093cat >>confdefs.h <<\_ACEOF
bbac86bb 14094#define HAVE_DLOPEN 1
b0cacab0 14095_ACEOF
bbac86bb 14096
bbac86bb
TT
14097fi
14098
93636bde 14099
b0cacab0
TT
14100echo "$as_me:$LINENO: checking for optreset" >&5
14101echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14102if test "${ac_cv_have_optreset+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 14104else
b0cacab0
TT
14105 cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h. */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
14110/* end confdefs.h. */
fc6d9d51 14111#include <unistd.h>
b0cacab0
TT
14112
14113_ACEOF
fc6d9d51 14114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0cacab0 14115 $EGREP "optreset" >/dev/null 2>&1; then
fc6d9d51 14116 ac_cv_have_optreset=yes
50e1e10f 14117else
fc6d9d51 14118 ac_cv_have_optreset=no
50e1e10f
TT
14119fi
14120rm -f conftest*
14121
14122fi
b0cacab0
TT
14123echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14124echo "${ECHO_T}$ac_cv_have_optreset" >&6
fc6d9d51 14125if test $ac_cv_have_optreset = yes; then
b0cacab0 14126 cat >>confdefs.h <<\_ACEOF
fc6d9d51 14127#define HAVE_OPTRESET 1
b0cacab0 14128_ACEOF
50e1e10f
TT
14129
14130fi
e54635de
TT
14131echo "$as_me:$LINENO: checking for unified diff option" >&5
14132echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6
14133if diff -u $0 $0 >& /dev/null ; then
14134 UNI_DIFF_OPTS=-u
14135else
14136 UNI_DIFF_OPTS=-c
14137fi
14138echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14139echo "${ECHO_T}$UNI_DIFF_OPTS" >&6
14140
8f3f29d3
TT
14141case "$host_os" in
14142linux*)
b0cacab0 14143 cat >>confdefs.h <<\_ACEOF
50e1e10f 14144#define HAVE_EXT2_IOCTLS 1
b0cacab0 14145_ACEOF
50e1e10f 14146
8f3f29d3
TT
14147 ;;
14148esac
e6f2bda3 14149LINUX_CMT="#"
fff45483
TT
14150CYGWIN_CMT="#"
14151UNIX_CMT=
e6f2bda3
TT
14152case "$host_os" in
14153linux*)
14154 LINUX_CMT=
fff45483
TT
14155 ;;
14156cygwin)
14157 CYGWIN_CMT=
14158 UNIX_CMT="#"
e6f2bda3
TT
14159 ;;
14160esac
14161
93636bde
TT
14162
14163
50e1e10f 14164case "$host_os" in
93636bde 14165linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
14166 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14167 root_prefix="";
14168 echo "On $host_os systems, root_prefix defaults to ''"
fc6d9d51
TT
14169 fi
14170 ;;
14171esac
fc6d9d51 14172case "$host_os" in
93636bde 14173linux* | gnu* | k*bsd*-gnu)
fc6d9d51 14174 if test "$prefix" = NONE ; then
a4b2d3ce
TT
14175 prefix="/usr";
14176 echo "On $host_os systems, prefix defaults to /usr"
bff61a7a
TT
14177 if test "$mandir" = '${prefix}/man' ; then
14178 echo "...and mandir defaults to /usr/share/man"
14179 mandir=/usr/share/man
14180 fi
50e1e10f
TT
14181 fi
14182;;
14183esac
a4b2d3ce 14184if test "$root_prefix" = NONE ; then
ffe1991f 14185 if test "$prefix" = NONE ; then
a4b2d3ce
TT
14186 root_prefix="$ac_default_prefix"
14187 else
14188 root_prefix="$prefix"
14189 fi
b5ffeade
TT
14190 root_bindir=$bindir
14191 root_sbindir=$sbindir
14192 root_libdir=$libdir
14193 root_sysconfdir=$sysconfdir
14194else
14195 root_bindir='${root_prefix}/bin'
14196 root_sbindir='${root_prefix}/sbin'
14197 root_libdir='${root_prefix}/lib'
14198 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce
TT
14199fi
14200
93636bde
TT
14201
14202
14203
14204
b0cacab0
TT
14205echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14206echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14207if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
ae851482
TT
14209else
14210 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
b0cacab0
TT
14211cat >conftest.$ac_ext <<_ACEOF
14212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h. */
ae851482 14217#include <stdio.h>
b0cacab0
TT
14218int
14219main ()
14220{
ae851482 14221fflush(stdout);
b0cacab0
TT
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226rm -f conftest.$ac_objext conftest$ac_exeext
14227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14228 (eval $ac_link) 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
ae851482
TT
14247 ac_cv_e2fsprogs_use_static=yes
14248else
b0cacab0
TT
14249 echo "$as_me: failed program was:" >&5
14250sed 's/^/| /' conftest.$ac_ext >&5
14251
14252ac_cv_e2fsprogs_use_static=no
ae851482 14253fi
b0cacab0
TT
14254rm -f conftest.err conftest.$ac_objext \
14255 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
14256LDFLAGS=$SAVE_LDFLAGS
14257fi
50e1e10f 14258
defde784
TT
14259case "$host_os" in
14260solaris2.*)
b0cacab0 14261 ac_cv_e2fsprogs_use_static=no
defde784
TT
14262;;
14263esac
b0cacab0
TT
14264echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14265echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
74becf3c 14266LDFLAG_STATIC=
ae851482 14267if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 14268 LDFLAG_STATIC=-static
ae851482 14269fi
50e1e10f 14270
07a0db15
TT
14271case "$host_os" in
14272darwin*)
14273 echo "Using Apple Darwin / GNU libintl workaround"
b0cacab0 14274 cat >>confdefs.h <<\_ACEOF
07a0db15 14275#define _INTL_REDIRECT_MACROS 1
b0cacab0 14276_ACEOF
07a0db15
TT
14277
14278 ;;
14279esac
50e1e10f
TT
14280SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14281ET_DIR=`cd ${srcdir}/lib/et; pwd`
14282
93636bde 14283
50e1e10f
TT
14284if test "$cross_compiling" = yes ; then
14285 DO_TEST_SUITE=
14286else
14287 DO_TEST_SUITE=check
14288fi
14289
c6f35b8a
TT
14290INTL_FLAGS=
14291if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14292 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14293fi
14294
dd947da2
TT
14295if test $cross_compiling = no; then
14296 BUILD_CFLAGS="$CFLAGS"
14297 BUILD_LDFLAGS="$LDFLAGS"
14298else
14299 BUILD_CFLAGS=
14300 BUILD_LDFLAGS=
14301fi
14302
14303
50e1e10f
TT
14304test -d lib || mkdir lib
14305test -d include || mkdir include
14306test -d include/linux || mkdir include/linux
defde784 14307test -d include/asm || mkdir include/asm
bff0cc95
TT
14308for i in MCONFIG Makefile e2fsprogs.spec \
14309 util/Makefile util/subst.conf util/gen-tarball \
4ea7ea00
TT
14310 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14311 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
94ba8c75
TT
14312 lib/uuid/Makefile lib/uuid/uuid_types.h \
14313 lib/blkid/Makefile lib/blkid/blkid_types.h \
e6441865
TT
14314 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14315 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
921f4ad5 14316 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75
TT
14317 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14318 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14319 if test -d `dirname ${srcdir}/$i` ; then
14320 outlist="$outlist $i"
14321 fi
14322done
b0cacab0
TT
14323 ac_config_files="$ac_config_files $outlist"
14324cat >confcache <<\_ACEOF
50e1e10f
TT
14325# This file is a shell script that caches the results of configure
14326# tests run on this system so they can be shared between configure
b0cacab0
TT
14327# scripts and configure runs, see configure's option --config-cache.
14328# It is not useful on other systems. If it contains results you don't
14329# want to keep, you may remove or edit it.
50e1e10f 14330#
b0cacab0
TT
14331# config.status only pays attention to the cache file if you give it
14332# the --recheck option to rerun configure.
50e1e10f 14333#
b0cacab0
TT
14334# `ac_cv_env_foo' variables (set or unset) will be overridden when
14335# loading this file, other *unset* `ac_cv_foo' will be assigned the
14336# following values.
14337
14338_ACEOF
14339
21c84b71
TT
14340# The following way of writing the cache mishandles newlines in values,
14341# but we know of no workaround that is simple, portable, and efficient.
14342# So, don't put newlines in cache variables' values.
50e1e10f
TT
14343# Ultrix sh set writes to stderr and can't be redirected directly,
14344# and sets the high bit in the cache file unless we assign to the vars.
b0cacab0
TT
14345{
14346 (set) 2>&1 |
14347 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14348 *ac_space=\ *)
14349 # `set' does not quote correctly, so add quotes (double-quote
14350 # substitution turns \\\\ into \\, and sed turns \\ into \).
14351 sed -n \
14352 "s/'/'\\\\''/g;
14353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14354 ;;
14355 *)
14356 # `set' quotes correctly as required by POSIX, so do not add quotes.
14357 sed -n \
14358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14359 ;;
14360 esac;
14361} |
14362 sed '
14363 t clear
14364 : clear
14365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14366 t end
14367 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14368 : end' >>confcache
14369if diff $cache_file confcache >/dev/null 2>&1; then :; else
50e1e10f 14370 if test -w $cache_file; then
b0cacab0
TT
14371 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14372 cat confcache >$cache_file
50e1e10f
TT
14373 else
14374 echo "not updating unwritable cache $cache_file"
14375 fi
14376fi
14377rm -f confcache
14378
50e1e10f
TT
14379test "x$prefix" = xNONE && prefix=$ac_default_prefix
14380# Let make expand exec_prefix.
14381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14382
b0cacab0
TT
14383# VPATH may cause trouble with some makes, so we remove $(srcdir),
14384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14385# trailing colons and then remove the whole line if VPATH becomes empty
14386# (actually we leave an empty line to preserve line numbers).
50e1e10f 14387if test "x$srcdir" = x.; then
b0cacab0
TT
14388 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14389s/:*\$(srcdir):*/:/;
14390s/:*\${srcdir}:*/:/;
14391s/:*@srcdir@:*/:/;
14392s/^\([^=]*=[ ]*\):*/\1/;
14393s/:*$//;
14394s/^[^=]*=[ ]*$//;
14395}'
50e1e10f
TT
14396fi
14397
50e1e10f
TT
14398# Transform confdefs.h into DEFS.
14399# Protect against shell expansion while executing Makefile rules.
14400# Protect against Makefile macro expansion.
b0cacab0
TT
14401#
14402# If the first sed substitution is executed (which looks for macros that
14403# take arguments), then we branch to the quote section. Otherwise,
14404# look for a macro that doesn't take arguments.
14405cat >confdef2opt.sed <<\_ACEOF
14406t clear
14407: clear
14408s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14409t quote
14410s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14411t quote
14412d
14413: quote
14414s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14415s,\[,\\&,g
14416s,\],\\&,g
14417s,\$,$$,g
14418p
14419_ACEOF
14420# We use echo to avoid assuming a particular line-breaking character.
14421# The extra dot is to prevent the shell from consuming trailing
14422# line-breaks from the sub-command output. A line-break within
14423# single-quotes doesn't work because, if this script is created in a
14424# platform that uses two characters for line-breaks (e.g., DOS), tr
14425# would break.
14426ac_LF_and_DOT=`echo; echo .`
14427DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14428rm -f confdef2opt.sed
14429
14430
14431ac_libobjs=
14432ac_ltlibobjs=
14433for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14434 # 1. Remove the extension, and $U if already installed.
14435 ac_i=`echo "$ac_i" |
14436 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14437 # 2. Add them.
14438 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14439 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14440done
14441LIBOBJS=$ac_libobjs
50e1e10f 14442
b0cacab0
TT
14443LTLIBOBJS=$ac_ltlibobjs
14444
14445
14446
14447: ${CONFIG_STATUS=./config.status}
14448ac_clean_files_save=$ac_clean_files
14449ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14450{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14451echo "$as_me: creating $CONFIG_STATUS" >&6;}
14452cat >$CONFIG_STATUS <<_ACEOF
14453#! $SHELL
14454# Generated by $as_me.
93636bde 14455# Run this file to recreate the current configuration.
93636bde 14456# Compiler output produced by configure, useful for debugging
b0cacab0 14457# configure, is in config.log if it exists.
07a0db15 14458
b0cacab0
TT
14459debug=false
14460ac_cs_recheck=false
14461ac_cs_silent=false
14462SHELL=\${CONFIG_SHELL-$SHELL}
14463_ACEOF
14464
14465cat >>$CONFIG_STATUS <<\_ACEOF
14466## --------------------- ##
14467## M4sh Initialization. ##
14468## --------------------- ##
14469
14470# Be Bourne compatible
14471if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14472 emulate sh
14473 NULLCMD=:
14474 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14475 # is contrary to our usage. Disable this feature.
14476 alias -g '${1+"$@"}'='"$@"'
14477elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14478 set -o posix
14479fi
14480DUALCASE=1; export DUALCASE # for MKS sh
14481
14482# Support unset when possible.
14483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14484 as_unset=unset
14485else
14486 as_unset=false
14487fi
14488
14489
14490# Work around bugs in pre-3.0 UWIN ksh.
14491$as_unset ENV MAIL MAILPATH
14492PS1='$ '
14493PS2='> '
14494PS4='+ '
14495
14496# NLS nuisances.
14497for as_var in \
14498 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14499 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14500 LC_TELEPHONE LC_TIME
14501do
14502 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14503 eval $as_var=C; export $as_var
14504 else
14505 $as_unset $as_var
14506 fi
14507done
14508
14509# Required to use basename.
14510if expr a : '\(a\)' >/dev/null 2>&1; then
14511 as_expr=expr
14512else
14513 as_expr=false
14514fi
14515
14516if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14517 as_basename=basename
14518else
14519 as_basename=false
14520fi
14521
14522
14523# Name of the executable.
14524as_me=`$as_basename "$0" ||
14525$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14526 X"$0" : 'X\(//\)$' \| \
14527 X"$0" : 'X\(/\)$' \| \
14528 . : '\(.\)' 2>/dev/null ||
14529echo X/"$0" |
14530 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14531 /^X\/\(\/\/\)$/{ s//\1/; q; }
14532 /^X\/\(\/\).*/{ s//\1/; q; }
14533 s/.*/./; q'`
14534
14535
14536# PATH needs CR, and LINENO needs CR and PATH.
14537# Avoid depending upon Character Ranges.
14538as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14539as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14540as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14541as_cr_digits='0123456789'
14542as_cr_alnum=$as_cr_Letters$as_cr_digits
14543
14544# The user is always right.
14545if test "${PATH_SEPARATOR+set}" != set; then
14546 echo "#! /bin/sh" >conf$$.sh
14547 echo "exit 0" >>conf$$.sh
14548 chmod +x conf$$.sh
14549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14550 PATH_SEPARATOR=';'
14551 else
14552 PATH_SEPARATOR=:
14553 fi
14554 rm -f conf$$.sh
14555fi
14556
14557
14558 as_lineno_1=$LINENO
14559 as_lineno_2=$LINENO
14560 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14561 test "x$as_lineno_1" != "x$as_lineno_2" &&
14562 test "x$as_lineno_3" = "x$as_lineno_2" || {
14563 # Find who we are. Look in the path if we contain no path at all
14564 # relative or not.
14565 case $0 in
14566 *[\\/]* ) as_myself=$0 ;;
14567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568for as_dir in $PATH
14569do
14570 IFS=$as_save_IFS
14571 test -z "$as_dir" && as_dir=.
14572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14573done
14574
14575 ;;
14576 esac
14577 # We did not find ourselves, most probably we were run as `sh COMMAND'
14578 # in which case we are not to be found in the path.
14579 if test "x$as_myself" = x; then
14580 as_myself=$0
14581 fi
14582 if test ! -f "$as_myself"; then
14583 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14584echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14585 { (exit 1); exit 1; }; }
14586 fi
14587 case $CONFIG_SHELL in
14588 '')
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14591do
14592 IFS=$as_save_IFS
14593 test -z "$as_dir" && as_dir=.
14594 for as_base in sh bash ksh sh5; do
14595 case $as_dir in
14596 /*)
14597 if ("$as_dir/$as_base" -c '
14598 as_lineno_1=$LINENO
14599 as_lineno_2=$LINENO
14600 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14601 test "x$as_lineno_1" != "x$as_lineno_2" &&
14602 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14603 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14604 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14605 CONFIG_SHELL=$as_dir/$as_base
14606 export CONFIG_SHELL
14607 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14608 fi;;
14609 esac
14610 done
14611done
14612;;
14613 esac
14614
14615 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14616 # uniformly replaced by the line number. The first 'sed' inserts a
14617 # line-number line before each line; the second 'sed' does the real
14618 # work. The second script uses 'N' to pair each line-number line
14619 # with the numbered line, and appends trailing '-' during
14620 # substitution so that $LINENO is not a special case at line end.
14621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14622 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14623 sed '=' <$as_myself |
14624 sed '
14625 N
14626 s,$,-,
14627 : loop
14628 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14629 t loop
14630 s,-$,,
14631 s,^['$as_cr_digits']*\n,,
14632 ' >$as_me.lineno &&
14633 chmod +x $as_me.lineno ||
14634 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14635echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14636 { (exit 1); exit 1; }; }
14637
14638 # Don't try to exec as it changes $[0], causing all sort of problems
14639 # (the dirname of $[0] is not the place where we might find the
14640 # original and so on. Autoconf is especially sensible to this).
14641 . ./$as_me.lineno
14642 # Exit status is that of the last command.
14643 exit
14644}
14645
14646
14647case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14648 *c*,-n*) ECHO_N= ECHO_C='
14649' ECHO_T=' ' ;;
14650 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14651 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14652esac
14653
14654if expr a : '\(a\)' >/dev/null 2>&1; then
14655 as_expr=expr
14656else
14657 as_expr=false
14658fi
14659
14660rm -f conf$$ conf$$.exe conf$$.file
14661echo >conf$$.file
14662if ln -s conf$$.file conf$$ 2>/dev/null; then
14663 # We could just check for DJGPP; but this test a) works b) is more generic
14664 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14665 if test -f conf$$.exe; then
14666 # Don't use ln at all; we don't have any links
14667 as_ln_s='cp -p'
14668 else
14669 as_ln_s='ln -s'
14670 fi
14671elif ln conf$$.file conf$$ 2>/dev/null; then
14672 as_ln_s=ln
14673else
14674 as_ln_s='cp -p'
14675fi
14676rm -f conf$$ conf$$.exe conf$$.file
14677
14678if mkdir -p . 2>/dev/null; then
14679 as_mkdir_p=:
14680else
14681 test -d ./-p && rmdir ./-p
14682 as_mkdir_p=false
14683fi
14684
14685as_executable_p="test -f"
14686
14687# Sed expression to map a string onto a valid CPP name.
14688as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14689
14690# Sed expression to map a string onto a valid variable name.
14691as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14692
14693
14694# IFS
14695# We need space, tab and new line, in precisely that order.
14696as_nl='
14697'
14698IFS=" $as_nl"
14699
14700# CDPATH.
14701$as_unset CDPATH
14702
14703exec 6>&1
14704
14705# Open the log real soon, to keep \$[0] and so on meaningful, and to
14706# report actual input values of CONFIG_FILES etc. instead of their
14707# values after options handling. Logging --version etc. is OK.
14708exec 5>>config.log
14709{
14710 echo
14711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14712## Running $as_me. ##
14713_ASBOX
14714} >&5
14715cat >&5 <<_CSEOF
14716
14717This file was extended by $as_me, which was
14718generated by GNU Autoconf 2.59. Invocation command line was
14719
14720 CONFIG_FILES = $CONFIG_FILES
14721 CONFIG_HEADERS = $CONFIG_HEADERS
14722 CONFIG_LINKS = $CONFIG_LINKS
14723 CONFIG_COMMANDS = $CONFIG_COMMANDS
14724 $ $0 $@
14725
14726_CSEOF
14727echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14728echo >&5
14729_ACEOF
14730
14731# Files that config.status was made for.
14732if test -n "$ac_config_files"; then
14733 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14734fi
14735
14736if test -n "$ac_config_headers"; then
14737 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14738fi
14739
14740if test -n "$ac_config_links"; then
14741 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14742fi
14743
14744if test -n "$ac_config_commands"; then
14745 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14746fi
14747
14748cat >>$CONFIG_STATUS <<\_ACEOF
14749
14750ac_cs_usage="\
14751\`$as_me' instantiates files from templates according to the
14752current configuration.
14753
14754Usage: $0 [OPTIONS] [FILE]...
14755
14756 -h, --help print this help, then exit
14757 -V, --version print version number, then exit
14758 -q, --quiet do not print progress messages
14759 -d, --debug don't remove temporary files
14760 --recheck update $as_me by reconfiguring in the same conditions
14761 --file=FILE[:TEMPLATE]
14762 instantiate the configuration file FILE
14763
14764Configuration files:
14765$config_files
14766
14767Configuration commands:
14768$config_commands
14769
14770Report bugs to <bug-autoconf@gnu.org>."
14771_ACEOF
14772
14773cat >>$CONFIG_STATUS <<_ACEOF
14774ac_cs_version="\\
14775config.status
14776configured by $0, generated by GNU Autoconf 2.59,
14777 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14778
14779Copyright (C) 2003 Free Software Foundation, Inc.
14780This config.status script is free software; the Free Software Foundation
14781gives unlimited permission to copy, distribute and modify it."
14782srcdir=$srcdir
14783INSTALL="$INSTALL"
14784_ACEOF
14785
14786cat >>$CONFIG_STATUS <<\_ACEOF
14787# If no file are specified by the user, then we need to provide default
14788# value. By we need to know if files were specified by the user.
14789ac_need_defaults=:
14790while test $# != 0
07a0db15 14791do
b0cacab0
TT
14792 case $1 in
14793 --*=*)
14794 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14795 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14796 ac_shift=:
14797 ;;
14798 -*)
14799 ac_option=$1
14800 ac_optarg=$2
14801 ac_shift=shift
14802 ;;
14803 *) # This is not an option, so the user has probably given explicit
14804 # arguments.
14805 ac_option=$1
14806 ac_need_defaults=false;;
14807 esac
14808
14809 case $ac_option in
14810 # Handling of the options.
14811_ACEOF
14812cat >>$CONFIG_STATUS <<\_ACEOF
93636bde 14813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0
TT
14814 ac_cs_recheck=: ;;
14815 --version | --vers* | -V )
14816 echo "$ac_cs_version"; exit 0 ;;
14817 --he | --h)
14818 # Conflict between --help and --header
14819 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14820Try \`$0 --help' for more information." >&5
14821echo "$as_me: error: ambiguous option: $1
14822Try \`$0 --help' for more information." >&2;}
14823 { (exit 1); exit 1; }; };;
14824 --help | --hel | -h )
14825 echo "$ac_cs_usage"; exit 0 ;;
14826 --debug | --d* | -d )
14827 debug=: ;;
14828 --file | --fil | --fi | --f )
14829 $ac_shift
14830 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14831 ac_need_defaults=false;;
14832 --header | --heade | --head | --hea )
14833 $ac_shift
14834 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14835 ac_need_defaults=false;;
14836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14838 ac_cs_silent=: ;;
14839
14840 # This is an error.
14841 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14842Try \`$0 --help' for more information." >&5
14843echo "$as_me: error: unrecognized option: $1
14844Try \`$0 --help' for more information." >&2;}
14845 { (exit 1); exit 1; }; } ;;
14846
14847 *) ac_config_targets="$ac_config_targets $1" ;;
14848
07a0db15 14849 esac
b0cacab0 14850 shift
07a0db15
TT
14851done
14852
b0cacab0
TT
14853ac_configure_extra_args=
14854
14855if $ac_cs_silent; then
14856 exec 6>/dev/null
14857 ac_configure_extra_args="$ac_configure_extra_args --silent"
14858fi
14859
14860_ACEOF
14861cat >>$CONFIG_STATUS <<_ACEOF
14862if \$ac_cs_recheck; then
14863 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14864 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14865fi
07a0db15 14866
b0cacab0 14867_ACEOF
07a0db15 14868
b0cacab0
TT
14869cat >>$CONFIG_STATUS <<_ACEOF
14870#
14871# INIT-COMMANDS section.
14872#
14873
14874# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14875 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14876 # from automake.
14877 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14878 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14879 LINGUAS="${LINGUAS-%UNSET%}"
14880
14881
14882_ACEOF
14883
14884
14885
14886cat >>$CONFIG_STATUS <<\_ACEOF
14887for ac_config_target in $ac_config_targets
14888do
14889 case "$ac_config_target" in
14890 # Handling of arguments.
14891 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14892 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14893 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14894echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14895 { (exit 1); exit 1; }; };;
14896 esac
14897done
14898
14899# If the user did not use the arguments to specify the items to instantiate,
14900# then the envvar interface is used. Set only those that are not.
14901# We use the long form for the default assignment because of an extremely
14902# bizarre bug on SunOS 4.1.3.
14903if $ac_need_defaults; then
14904 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14905 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14906fi
14907
14908# Have a temporary directory for convenience. Make it in the build tree
14909# simply because there is no reason to put it here, and in addition,
14910# creating and moving files from /tmp can sometimes cause problems.
14911# Create a temporary directory, and hook for its removal unless debugging.
14912$debug ||
14913{
14914 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14915 trap '{ (exit 1); exit 1; }' 1 2 13 15
14916}
14917
14918# Create a (secure) tmp directory for tmp files.
14919
14920{
14921 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14922 test -n "$tmp" && test -d "$tmp"
14923} ||
14924{
14925 tmp=./confstat$$-$RANDOM
14926 (umask 077 && mkdir $tmp)
14927} ||
14928{
14929 echo "$me: cannot create a temporary directory in ." >&2
14930 { (exit 1); exit 1; }
14931}
14932
14933_ACEOF
14934
14935cat >>$CONFIG_STATUS <<_ACEOF
14936
14937#
14938# CONFIG_FILES section.
14939#
14940
14941# No need to generate the scripts if there are no CONFIG_FILES.
14942# This happens for instance when ./config.status config.h
14943if test -n "\$CONFIG_FILES"; then
14944 # Protect against being on the right side of a sed subst in config.status.
14945 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14946 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14947s,@SHELL@,$SHELL,;t t
14948s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14949s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14950s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14951s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14952s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14953s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14954s,@exec_prefix@,$exec_prefix,;t t
14955s,@prefix@,$prefix,;t t
14956s,@program_transform_name@,$program_transform_name,;t t
14957s,@bindir@,$bindir,;t t
14958s,@sbindir@,$sbindir,;t t
14959s,@libexecdir@,$libexecdir,;t t
14960s,@datadir@,$datadir,;t t
14961s,@sysconfdir@,$sysconfdir,;t t
14962s,@sharedstatedir@,$sharedstatedir,;t t
14963s,@localstatedir@,$localstatedir,;t t
14964s,@libdir@,$libdir,;t t
14965s,@includedir@,$includedir,;t t
14966s,@oldincludedir@,$oldincludedir,;t t
14967s,@infodir@,$infodir,;t t
14968s,@mandir@,$mandir,;t t
14969s,@build_alias@,$build_alias,;t t
14970s,@host_alias@,$host_alias,;t t
14971s,@target_alias@,$target_alias,;t t
14972s,@DEFS@,$DEFS,;t t
14973s,@ECHO_C@,$ECHO_C,;t t
14974s,@ECHO_N@,$ECHO_N,;t t
14975s,@ECHO_T@,$ECHO_T,;t t
14976s,@LIBS@,$LIBS,;t t
14977s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14978s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14979s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14980s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14981s,@build@,$build,;t t
14982s,@build_cpu@,$build_cpu,;t t
14983s,@build_vendor@,$build_vendor,;t t
14984s,@build_os@,$build_os,;t t
14985s,@host@,$host,;t t
14986s,@host_cpu@,$host_cpu,;t t
14987s,@host_vendor@,$host_vendor,;t t
14988s,@host_os@,$host_os,;t t
14989s,@CC@,$CC,;t t
14990s,@CFLAGS@,$CFLAGS,;t t
14991s,@LDFLAGS@,$LDFLAGS,;t t
14992s,@CPPFLAGS@,$CPPFLAGS,;t t
14993s,@ac_ct_CC@,$ac_ct_CC,;t t
14994s,@EXEEXT@,$EXEEXT,;t t
14995s,@OBJEXT@,$OBJEXT,;t t
14996s,@LD@,$LD,;t t
14997s,@CPP@,$CPP,;t t
14998s,@EGREP@,$EGREP,;t t
14999s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
98919bdb 15000s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t
b0cacab0 15001s,@HTREE_CMT@,$HTREE_CMT,;t t
b0cacab0
TT
15002s,@ELF_CMT@,$ELF_CMT,;t t
15003s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
15004s,@PROFILE_CMT@,$PROFILE_CMT,;t t
15005s,@CHECKER_CMT@,$CHECKER_CMT,;t t
15006s,@LIB_EXT@,$LIB_EXT,;t t
15007s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
15008s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
15009s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
15010s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
15011s,@IMAGER_CMT@,$IMAGER_CMT,;t t
15012s,@RESIZER_CMT@,$RESIZER_CMT,;t t
15013s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
15014s,@FSCK_PROG@,$FSCK_PROG,;t t
15015s,@FSCK_MAN@,$FSCK_MAN,;t t
15016s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
15017s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
4db2f59a
KZ
15018s,@DEVMAPPER_REQ@,$DEVMAPPER_REQ,;t t
15019s,@DEVMAPPER_PC_LIBS@,$DEVMAPPER_PC_LIBS,;t t
15020s,@DEVMAPPER_LIBS@,$DEVMAPPER_LIBS,;t t
15021s,@STATIC_DEVMAPPER_LIBS@,$STATIC_DEVMAPPER_LIBS,;t t
b0cacab0
TT
15022s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
15023s,@PACKAGE@,$PACKAGE,;t t
15024s,@VERSION@,$VERSION,;t t
15025s,@SET_MAKE@,$SET_MAKE,;t t
15026s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15027s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15028s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15029s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15030s,@USE_NLS@,$USE_NLS,;t t
15031s,@MSGFMT@,$MSGFMT,;t t
15032s,@GMSGFMT@,$GMSGFMT,;t t
15033s,@XGETTEXT@,$XGETTEXT,;t t
15034s,@MSGMERGE@,$MSGMERGE,;t t
15035s,@RANLIB@,$RANLIB,;t t
15036s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15037s,@ALLOCA@,$ALLOCA,;t t
15038s,@GLIBC21@,$GLIBC21,;t t
15039s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15040s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15041s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15042s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15043s,@LIBICONV@,$LIBICONV,;t t
15044s,@LTLIBICONV@,$LTLIBICONV,;t t
15045s,@INTLBISON@,$INTLBISON,;t t
15046s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15047s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15048s,@CATOBJEXT@,$CATOBJEXT,;t t
15049s,@DATADIRNAME@,$DATADIRNAME,;t t
15050s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15051s,@GENCAT@,$GENCAT,;t t
15052s,@INTLOBJS@,$INTLOBJS,;t t
15053s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15054s,@INTLLIBS@,$INTLLIBS,;t t
15055s,@LIBINTL@,$LIBINTL,;t t
15056s,@LTLIBINTL@,$LTLIBINTL,;t t
15057s,@POSUB@,$POSUB,;t t
15058s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15059s,@LN@,$LN,;t t
15060s,@LN_S@,$LN_S,;t t
15061s,@MV@,$MV,;t t
15062s,@CP@,$CP,;t t
15063s,@RM@,$RM,;t t
15064s,@CHMOD@,$CHMOD,;t t
15065s,@AWK@,$AWK,;t t
15066s,@SED@,$SED,;t t
15067s,@PERL@,$PERL,;t t
15068s,@LDCONFIG@,$LDCONFIG,;t t
15069s,@AR@,$AR,;t t
15070s,@ac_ct_AR@,$ac_ct_AR,;t t
15071s,@STRIP@,$STRIP,;t t
15072s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15073s,@BUILD_CC@,$BUILD_CC,;t t
15074s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15075s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15076s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15077s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15078s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15079s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
e54635de 15080s,@UNI_DIFF_OPTS@,$UNI_DIFF_OPTS,;t t
b0cacab0
TT
15081s,@LINUX_CMT@,$LINUX_CMT,;t t
15082s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15083s,@UNIX_CMT@,$UNIX_CMT,;t t
15084s,@root_prefix@,$root_prefix,;t t
15085s,@root_bindir@,$root_bindir,;t t
15086s,@root_sbindir@,$root_sbindir,;t t
15087s,@root_libdir@,$root_libdir,;t t
15088s,@root_sysconfdir@,$root_sysconfdir,;t t
15089s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15090s,@SS_DIR@,$SS_DIR,;t t
15091s,@ET_DIR@,$ET_DIR,;t t
15092s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15093s,@INTL_FLAGS@,$INTL_FLAGS,;t t
dd947da2
TT
15094s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
15095s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
b0cacab0
TT
15096s,@LIBOBJS@,$LIBOBJS,;t t
15097s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50e1e10f 15098/@MCONFIG@/r $MCONFIG
b0cacab0 15099s,@MCONFIG@,,;t t
50e1e10f 15100/@MAKEFILE_ELF@/r $MAKEFILE_ELF
b0cacab0 15101s,@MAKEFILE_ELF@,,;t t
50e1e10f 15102/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
b0cacab0 15103s,@MAKEFILE_BSDLIB@,,;t t
cdf186e4 15104/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
b0cacab0 15105s,@MAKEFILE_PROFILE@,,;t t
cdf186e4 15106/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
b0cacab0 15107s,@MAKEFILE_CHECKER@,,;t t
cdf186e4 15108/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
b0cacab0 15109s,@MAKEFILE_LIBRARY@,,;t t
4ea7ea00
TT
15110/@ASM_TYPES_HEADER@/r $ASM_TYPES_HEADER
15111s,@ASM_TYPES_HEADER@,,;t t
93636bde 15112CEOF
b0cacab0
TT
15113
15114_ACEOF
15115
15116 cat >>$CONFIG_STATUS <<\_ACEOF
15117 # Split the substitutions into bite-sized pieces for seds with
15118 # small command number limits, like on Digital OSF/1 and HP-UX.
15119 ac_max_sed_lines=48
15120 ac_sed_frag=1 # Number of current file.
15121 ac_beg=1 # First line for current file.
15122 ac_end=$ac_max_sed_lines # Line after last line for current file.
15123 ac_more_lines=:
15124 ac_sed_cmds=
15125 while $ac_more_lines; do
15126 if test $ac_beg -gt 1; then
15127 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15128 else
15129 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15130 fi
15131 if test ! -s $tmp/subs.frag; then
15132 ac_more_lines=false
21c84b71 15133 else
b0cacab0
TT
15134 # The purpose of the label and of the branching condition is to
15135 # speed up the sed processing (if there are no `@' at all, there
15136 # is no need to browse any of the substitutions).
15137 # These are the two extra sed commands mentioned above.
15138 (echo ':t
15139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15140 if test -z "$ac_sed_cmds"; then
15141 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15142 else
15143 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15144 fi
15145 ac_sed_frag=`expr $ac_sed_frag + 1`
15146 ac_beg=$ac_end
15147 ac_end=`expr $ac_end + $ac_max_sed_lines`
21c84b71 15148 fi
b0cacab0
TT
15149 done
15150 if test -z "$ac_sed_cmds"; then
15151 ac_sed_cmds=cat
21c84b71 15152 fi
b0cacab0
TT
15153fi # test -n "$CONFIG_FILES"
15154
15155_ACEOF
15156cat >>$CONFIG_STATUS <<\_ACEOF
15157for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15159 case $ac_file in
15160 - | *:- | *:-:* ) # input from stdin
15161 cat >$tmp/stdin
15162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15166 * ) ac_file_in=$ac_file.in ;;
15167 esac
15168
15169 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15170 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15172 X"$ac_file" : 'X\(//\)[^/]' \| \
15173 X"$ac_file" : 'X\(//\)$' \| \
15174 X"$ac_file" : 'X\(/\)' \| \
15175 . : '\(.\)' 2>/dev/null ||
15176echo X"$ac_file" |
15177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15179 /^X\(\/\/\)$/{ s//\1/; q; }
15180 /^X\(\/\).*/{ s//\1/; q; }
15181 s/.*/./; q'`
15182 { if $as_mkdir_p; then
15183 mkdir -p "$ac_dir"
15184 else
15185 as_dir="$ac_dir"
15186 as_dirs=
15187 while test ! -d "$as_dir"; do
15188 as_dirs="$as_dir $as_dirs"
15189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15190$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15191 X"$as_dir" : 'X\(//\)[^/]' \| \
15192 X"$as_dir" : 'X\(//\)$' \| \
15193 X"$as_dir" : 'X\(/\)' \| \
15194 . : '\(.\)' 2>/dev/null ||
15195echo X"$as_dir" |
15196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15198 /^X\(\/\/\)$/{ s//\1/; q; }
15199 /^X\(\/\).*/{ s//\1/; q; }
15200 s/.*/./; q'`
15201 done
15202 test ! -n "$as_dirs" || mkdir $as_dirs
15203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15204echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15205 { (exit 1); exit 1; }; }; }
15206
15207 ac_builddir=.
15208
15209if test "$ac_dir" != .; then
15210 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15211 # A "../" for each directory in $ac_dir_suffix.
15212 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15213else
15214 ac_dir_suffix= ac_top_builddir=
93636bde 15215fi
93636bde 15216
b0cacab0
TT
15217case $srcdir in
15218 .) # No --srcdir option. We are building in place.
15219 ac_srcdir=.
15220 if test -z "$ac_top_builddir"; then
15221 ac_top_srcdir=.
15222 else
15223 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15224 fi ;;
15225 [\\/]* | ?:[\\/]* ) # Absolute path.
15226 ac_srcdir=$srcdir$ac_dir_suffix;
15227 ac_top_srcdir=$srcdir ;;
15228 *) # Relative path.
15229 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15230 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15231esac
15232
15233# Do not use `cd foo && pwd` to compute absolute paths, because
15234# the directories may not exist.
15235case `pwd` in
15236.) ac_abs_builddir="$ac_dir";;
15237*)
15238 case "$ac_dir" in
15239 .) ac_abs_builddir=`pwd`;;
15240 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15241 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15242 esac;;
15243esac
15244case $ac_abs_builddir in
15245.) ac_abs_top_builddir=${ac_top_builddir}.;;
15246*)
15247 case ${ac_top_builddir}. in
15248 .) ac_abs_top_builddir=$ac_abs_builddir;;
15249 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15250 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15251 esac;;
15252esac
15253case $ac_abs_builddir in
15254.) ac_abs_srcdir=$ac_srcdir;;
15255*)
15256 case $ac_srcdir in
15257 .) ac_abs_srcdir=$ac_abs_builddir;;
15258 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15259 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15260 esac;;
15261esac
15262case $ac_abs_builddir in
15263.) ac_abs_top_srcdir=$ac_top_srcdir;;
15264*)
15265 case $ac_top_srcdir in
15266 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15267 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15268 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15269 esac;;
15270esac
15271
50e1e10f 15272
b0cacab0
TT
15273 case $INSTALL in
15274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15275 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50e1e10f
TT
15276 esac
15277
b0cacab0
TT
15278 # Let's still pretend it is `configure' which instantiates (i.e., don't
15279 # use $as_me), people would be surprised to read:
15280 # /* config.h. Generated by config.status. */
15281 if test x"$ac_file" = x-; then
15282 configure_input=
15283 else
15284 configure_input="$ac_file. "
15285 fi
15286 configure_input=$configure_input"Generated from `echo $ac_file_in |
15287 sed 's,.*/,,'` by configure."
15288
15289 # First look for the input files in the build tree, otherwise in the
15290 # src tree.
15291 ac_file_inputs=`IFS=:
15292 for f in $ac_file_in; do
15293 case $f in
15294 -) echo $tmp/stdin ;;
15295 [\\/$]*)
15296 # Absolute (can't be DOS-style, as IFS=:)
15297 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15298echo "$as_me: error: cannot find input file: $f" >&2;}
15299 { (exit 1); exit 1; }; }
15300 echo "$f";;
15301 *) # Relative
15302 if test -f "$f"; then
15303 # Build tree
15304 echo "$f"
15305 elif test -f "$srcdir/$f"; then
15306 # Source tree
15307 echo "$srcdir/$f"
15308 else
15309 # /dev/null tree
15310 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15311echo "$as_me: error: cannot find input file: $f" >&2;}
15312 { (exit 1); exit 1; }; }
15313 fi;;
15314 esac
15315 done` || { (exit 1); exit 1; }
07a0db15 15316
b0cacab0
TT
15317 if test x"$ac_file" != x-; then
15318 { echo "$as_me:$LINENO: creating $ac_file" >&5
15319echo "$as_me: creating $ac_file" >&6;}
15320 rm -f "$ac_file"
15321 fi
15322_ACEOF
15323cat >>$CONFIG_STATUS <<_ACEOF
15324 sed "$ac_vpsub
15325$extrasub
15326_ACEOF
15327cat >>$CONFIG_STATUS <<\_ACEOF
15328:t
15329/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15330s,@configure_input@,$configure_input,;t t
15331s,@srcdir@,$ac_srcdir,;t t
15332s,@abs_srcdir@,$ac_abs_srcdir,;t t
15333s,@top_srcdir@,$ac_top_srcdir,;t t
15334s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15335s,@builddir@,$ac_builddir,;t t
15336s,@abs_builddir@,$ac_abs_builddir,;t t
15337s,@top_builddir@,$ac_top_builddir,;t t
15338s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15339s,@INSTALL@,$ac_INSTALL,;t t
15340" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15341 rm -f $tmp/stdin
15342 if test x"$ac_file" != x-; then
15343 mv $tmp/out $ac_file
50e1e10f 15344 else
b0cacab0
TT
15345 cat $tmp/out
15346 rm -f $tmp/out
50e1e10f
TT
15347 fi
15348
b0cacab0
TT
15349done
15350_ACEOF
15351cat >>$CONFIG_STATUS <<\_ACEOF
21c84b71 15352
b0cacab0
TT
15353#
15354# CONFIG_COMMANDS section.
15355#
15356for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15357 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15358 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15359 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15360$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15361 X"$ac_dest" : 'X\(//\)[^/]' \| \
15362 X"$ac_dest" : 'X\(//\)$' \| \
15363 X"$ac_dest" : 'X\(/\)' \| \
15364 . : '\(.\)' 2>/dev/null ||
15365echo X"$ac_dest" |
15366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15368 /^X\(\/\/\)$/{ s//\1/; q; }
15369 /^X\(\/\).*/{ s//\1/; q; }
15370 s/.*/./; q'`
15371 { if $as_mkdir_p; then
15372 mkdir -p "$ac_dir"
15373 else
15374 as_dir="$ac_dir"
15375 as_dirs=
15376 while test ! -d "$as_dir"; do
15377 as_dirs="$as_dir $as_dirs"
15378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15380 X"$as_dir" : 'X\(//\)[^/]' \| \
15381 X"$as_dir" : 'X\(//\)$' \| \
15382 X"$as_dir" : 'X\(/\)' \| \
15383 . : '\(.\)' 2>/dev/null ||
15384echo X"$as_dir" |
15385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15387 /^X\(\/\/\)$/{ s//\1/; q; }
15388 /^X\(\/\).*/{ s//\1/; q; }
15389 s/.*/./; q'`
15390 done
15391 test ! -n "$as_dirs" || mkdir $as_dirs
15392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15393echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15394 { (exit 1); exit 1; }; }; }
21c84b71 15395
b0cacab0 15396 ac_builddir=.
93636bde 15397
b0cacab0
TT
15398if test "$ac_dir" != .; then
15399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15400 # A "../" for each directory in $ac_dir_suffix.
15401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15402else
15403 ac_dir_suffix= ac_top_builddir=
15404fi
15405
15406case $srcdir in
15407 .) # No --srcdir option. We are building in place.
15408 ac_srcdir=.
15409 if test -z "$ac_top_builddir"; then
15410 ac_top_srcdir=.
15411 else
15412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15413 fi ;;
15414 [\\/]* | ?:[\\/]* ) # Absolute path.
15415 ac_srcdir=$srcdir$ac_dir_suffix;
15416 ac_top_srcdir=$srcdir ;;
15417 *) # Relative path.
15418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15420esac
07a0db15 15421
b0cacab0
TT
15422# Do not use `cd foo && pwd` to compute absolute paths, because
15423# the directories may not exist.
15424case `pwd` in
15425.) ac_abs_builddir="$ac_dir";;
15426*)
15427 case "$ac_dir" in
15428 .) ac_abs_builddir=`pwd`;;
15429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15431 esac;;
15432esac
15433case $ac_abs_builddir in
15434.) ac_abs_top_builddir=${ac_top_builddir}.;;
15435*)
15436 case ${ac_top_builddir}. in
15437 .) ac_abs_top_builddir=$ac_abs_builddir;;
15438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15440 esac;;
15441esac
15442case $ac_abs_builddir in
15443.) ac_abs_srcdir=$ac_srcdir;;
15444*)
15445 case $ac_srcdir in
15446 .) ac_abs_srcdir=$ac_abs_builddir;;
15447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15449 esac;;
15450esac
15451case $ac_abs_builddir in
15452.) ac_abs_top_srcdir=$ac_top_srcdir;;
15453*)
15454 case $ac_top_srcdir in
15455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15458 esac;;
15459esac
a04eba3f 15460
b0cacab0
TT
15461
15462 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15463echo "$as_me: executing $ac_dest commands" >&6;}
15464 case $ac_dest in
15465 default-1 )
a04eba3f
TT
15466 for ac_file in $CONFIG_FILES; do
15467 # Support "outfile[:infile[:infile...]]"
15468 case "$ac_file" in
15469 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15470 esac
15471 # PO directories have a Makefile.in generated from Makefile.in.in.
15472 case "$ac_file" in */Makefile.in)
15473 # Adjust a relative srcdir.
15474 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15475 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15476 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15477 # In autoconf-2.13 it is called $ac_given_srcdir.
15478 # In autoconf-2.50 it is called $srcdir.
15479 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15480 case "$ac_given_srcdir" in
15481 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15482 /*) top_srcdir="$ac_given_srcdir" ;;
15483 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15484 esac
15485 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15486 rm -f "$ac_dir/POTFILES"
15487 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15488 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
b0cacab0
TT
15489 POMAKEFILEDEPS="POTFILES.in"
15490 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
15491 # on $ac_dir but don't depend on user-specified configuration
15492 # parameters.
15493 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15494 # The LINGUAS file contains the set of available languages.
b0cacab0 15495 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
15496 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15497 fi
15498 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15499 # Hide the ALL_LINGUAS assigment from automake.
15500 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
15501 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15502 else
15503 # The set of available languages was given in configure.in.
15504 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 15505 fi
b0cacab0
TT
15506 # Compute POFILES
15507 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15508 # Compute UPDATEPOFILES
15509 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15510 # Compute DUMMYPOFILES
15511 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15512 # Compute GMOFILES
15513 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
15514 case "$ac_given_srcdir" in
15515 .) srcdirpre= ;;
15516 *) srcdirpre='$(srcdir)/' ;;
15517 esac
15518 POFILES=
a04eba3f
TT
15519 UPDATEPOFILES=
15520 DUMMYPOFILES=
b0cacab0 15521 GMOFILES=
a04eba3f
TT
15522 for lang in $ALL_LINGUAS; do
15523 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
15524 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15525 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 15526 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
15527 done
15528 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15529 # environment variable.
15530 INST_LINGUAS=
15531 if test -n "$ALL_LINGUAS"; then
15532 for presentlang in $ALL_LINGUAS; do
15533 useit=no
15534 if test "%UNSET%" != "$LINGUAS"; then
15535 desiredlanguages="$LINGUAS"
15536 else
15537 desiredlanguages="$ALL_LINGUAS"
15538 fi
15539 for desiredlang in $desiredlanguages; do
15540 # Use the presentlang catalog if desiredlang is
15541 # a. equal to presentlang, or
15542 # b. a variant of presentlang (because in this case,
15543 # presentlang can be used as a fallback for messages
15544 # which are not translated in the desiredlang catalog).
15545 case "$desiredlang" in
15546 "$presentlang"*) useit=yes;;
15547 esac
15548 done
15549 if test $useit = yes; then
15550 INST_LINGUAS="$INST_LINGUAS $presentlang"
15551 fi
15552 done
15553 fi
15554 CATALOGS=
15555 if test -n "$INST_LINGUAS"; then
15556 for lang in $INST_LINGUAS; do
15557 CATALOGS="$CATALOGS $lang.gmo"
15558 done
15559 fi
15560 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 15561 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
a04eba3f
TT
15562 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15563 if test -f "$f"; then
15564 case "$f" in
15565 *.orig | *.bak | *~) ;;
15566 *) cat "$f" >> "$ac_dir/Makefile" ;;
15567 esac
15568 fi
15569 done
15570 fi
15571 ;;
a64c9c13 15572 esac
b0cacab0
TT
15573 done ;;
15574 esac
15575done
15576_ACEOF
07a0db15 15577
b0cacab0
TT
15578cat >>$CONFIG_STATUS <<\_ACEOF
15579
15580{ (exit 0); exit 0; }
15581_ACEOF
50e1e10f 15582chmod +x $CONFIG_STATUS
b0cacab0
TT
15583ac_clean_files=$ac_clean_files_save
15584
15585
15586# configure is writing to config.log, and then calls config.status.
15587# config.status does its own redirection, appending to config.log.
15588# Unfortunately, on DOS this fails, as config.log is still kept open
15589# by configure, so config.status won't be able to write to it; its
15590# output is simply discarded. So we exec the FD to /dev/null,
15591# effectively closing config.log, so it can be properly (re)opened and
15592# appended to by config.status. When coming back to configure, we
15593# need to make the FD available again.
15594if test "$no_create" != yes; then
15595 ac_cs_success=:
15596 ac_config_status_args=
15597 test "$silent" = yes &&
15598 ac_config_status_args="$ac_config_status_args --quiet"
15599 exec 5>/dev/null
15600 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15601 exec 5>>config.log
15602 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15603 # would make configure fail if this is the last instruction.
15604 $ac_cs_success || { (exit 1); exit 1; }
15605fi
50e1e10f 15606
ee683a13
TT
15607if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
15608