]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Fix minor typo's in the libblkid.txt documentation file --- thanks to Mike
[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
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 HTREE_CMT HTREE_CLR_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 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 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 LIBOBJS LTLIBOBJS'
313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
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]
847 --enable-compression enable EXPERIMENTAL compression support
848 --enable-htree enable EXPERIMENTAL htree directory support
849 --enable-htree-clear clear htree because we don't trust e2fsck
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
864 --enable-old-bitops Use old (non-standard but native) bitmask operations
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
b0cacab0 3088fi; # Check whether --enable-compression or --disable-compression was given.
1917875f
TT
3089if test "${enable_compression+set}" = set; then
3090 enableval="$enable_compression"
3091 if test "$enableval" = "no"
3092then
3093 echo "Disabling compression support"
3094else
b0cacab0 3095 cat >>confdefs.h <<\_ACEOF
1917875f 3096#define ENABLE_COMPRESSION 1
b0cacab0 3097_ACEOF
1917875f
TT
3098
3099 echo "Enabling compression support"
3100 echo "WARNING: Compression support is experimental"
3101fi
3102
3103else
3104 echo "Disabling compression support by default"
3105
b0cacab0 3106fi;
8fdc9985
TT
3107# Check whether --enable-htree or --disable-htree was given.
3108if test "${enable_htree+set}" = set; then
3109 enableval="$enable_htree"
3110 if test "$enableval" = "no"
3111then
3112 HTREE_CMT=#
3113 echo "Disabling htree directory support"
3114else
3115 HTREE_CMT=
b0cacab0 3116 cat >>confdefs.h <<\_ACEOF
8fdc9985 3117#define ENABLE_HTREE 1
b0cacab0 3118_ACEOF
8fdc9985
TT
3119
3120 echo "Enabling htree directory support"
8fdc9985
TT
3121fi
3122
3123else
559ca6cb 3124 HTREE_CMT=
b0cacab0 3125cat >>confdefs.h <<\_ACEOF
559ca6cb 3126#define ENABLE_HTREE 1
b0cacab0 3127_ACEOF
559ca6cb
TT
3128
3129echo "Enabling htree directory support by default"
8fdc9985 3130
b0cacab0 3131fi;
8fdc9985
TT
3132
3133# Check whether --enable-htree-clear or --disable-htree-clear was given.
3134if test "${enable_htree_clear+set}" = set; then
3135 enableval="$enable_htree_clear"
3136 if test "$enableval" = "no"
3137then
3138 HTREE_CLR_CMT=#
3139 echo "Disabling htree clearing"
3140else
3141 HTREE_CLR_CMT=
b0cacab0 3142 cat >>confdefs.h <<\_ACEOF
8fdc9985 3143#define ENABLE_HTREE_CLEAR 1
b0cacab0 3144_ACEOF
8fdc9985
TT
3145
3146 echo "Enabling htree clearing"
3147fi
3148
3149else
3150 HTREE_CLR_CMT=#
3151echo "Disabling htree clearing by default"
3152
b0cacab0 3153fi;
8fdc9985 3154
a64c9c13
TT
3155# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3156if test "${enable_elf_shlibs+set}" = set; then
3157 enableval="$enable_elf_shlibs"
3158 if test "$enableval" = "no"
3159then
3160 ELF_CMT=#
3161 MAKEFILE_ELF=/dev/null
3162 echo "Disabling ELF shared libraries"
3163else
3164 ELF_CMT=
3165 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
f5955dda
TT
3166 case "$host_os" in
3167 solaris2.*)
3168 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3169 ;;
3170 esac
a64c9c13
TT
3171 BINARY_TYPE=elfbin
3172 LIB_EXT=.so
3173 echo "Enabling ELF shared libraries"
3174fi
3175
3176else
3177 MAKEFILE_ELF=/dev/null
3178ELF_CMT=#
3179echo "Disabling ELF shared libraries by default"
3180
b0cacab0 3181fi;
93636bde 3182
a64c9c13
TT
3183
3184# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3185if test "${enable_bsd_shlibs+set}" = set; then
3186 enableval="$enable_bsd_shlibs"
3187 if test "$enableval" = "no"
3188then
3189 BSDLIB_CMT=#
3190 MAKEFILE_BSDLIB=/dev/null
3191 echo "Disabling BSD shared libraries"
3192else
3193 BSDLIB_CMT=
3194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3195 LIB_EXT=.so
e1f07228 3196 case "$host_os" in
aa75eccc 3197 darwin*)
e1f07228
TT
3198 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3199 LIB_EXT=.dylib
3200 ;;
3201 esac
a64c9c13
TT
3202 echo "Enabling BSD shared libraries"
3203fi
3204
3205else
3206 MAKEFILE_BSDLIB=/dev/null
3207BSDLIB_CMT=#
3208echo "Disabling BSD shared libraries by default"
3209
b0cacab0 3210fi;
93636bde 3211
a64c9c13 3212
cdf186e4
TT
3213# Check whether --enable-profile or --disable-profile was given.
3214if test "${enable_profile+set}" = set; then
3215 enableval="$enable_profile"
3216 if test "$enableval" = "no"
3217then
3218 PROFILE_CMT=#
3219 MAKEFILE_PROFILE=/dev/null
3220 echo "Disabling profiling libraries"
3221else
3222 PROFILE_CMT=
3223 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3224 PROFILED_LIB_EXT=_p.a
3225 echo "Building profiling libraries"
3226fi
3227
3228else
3229 PROFILE_CMT=#
3230MAKEFILE_PROFILE=/dev/null
3231echo "Disabling profiling libraries by default"
3232
b0cacab0 3233fi;
93636bde 3234
cdf186e4
TT
3235
3236# Check whether --enable-checker or --disable-checker was given.
3237if test "${enable_checker+set}" = set; then
3238 enableval="$enable_checker"
3239 if test "$enableval" = "no"
3240then
3241 CHECKER_CMT=#
3242 MAKEFILE_CHECKER=/dev/null
3243 echo "Disabling checker libraries"
3244else
3245 CHECKER_CMT=
3246 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3247 echo "Building checker libraries"
3248fi
3249
3250else
3251 CHECKER_CMT=#
3252MAKEFILE_CHECKER=/dev/null
3253echo "Disabling checker libraries by default"
3254
b0cacab0 3255fi;
93636bde
TT
3256
3257
3258
3259
cdf186e4 3260
782bebfd
TT
3261# Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3262if test "${enable_jbd_debug+set}" = set; then
3263 enableval="$enable_jbd_debug"
80bfaa3e
TT
3264 if test "$enableval" = "no"
3265then
3266 echo "Disabling journal debugging"
3267else
b0cacab0 3268 cat >>confdefs.h <<\_ACEOF
8cf93332 3269#define CONFIG_JBD_DEBUG 1
b0cacab0 3270_ACEOF
80bfaa3e
TT
3271
3272 echo "Enabling journal debugging"
3273fi
3274
3275else
3276 echo "Disabling journal debugging by default"
3277
b0cacab0 3278fi;
f0a22d0f
TT
3279# Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3280if test "${enable_blkid_debug+set}" = set; then
3281 enableval="$enable_blkid_debug"
3282 if test "$enableval" = "no"
3283then
3284 echo "Disabling blkid debugging"
3285else
b0cacab0 3286 cat >>confdefs.h <<\_ACEOF
f0a22d0f 3287#define CONFIG_BLKID_DEBUG 1
b0cacab0 3288_ACEOF
f0a22d0f
TT
3289
3290 echo "Enabling blkid debugging"
3291fi
3292
3293else
3294 echo "Disabling blkid debugging by default"
3295
b0cacab0 3296fi;
2a29f135
TT
3297# Check whether --enable-testio-debug or --disable-testio-debug was given.
3298if test "${enable_testio_debug+set}" = set; then
3299 enableval="$enable_testio_debug"
3300 if test "$enableval" = "no"
3301then
3302 echo "Disabling testio debugging"
3303else
b0cacab0 3304 cat >>confdefs.h <<\_ACEOF
2a29f135 3305#define CONFIG_TESTIO_DEBUG 1
b0cacab0 3306_ACEOF
2a29f135
TT
3307
3308 echo "Enabling testio debugging"
3309fi
3310
3311else
3312 echo "Disabling testio debugging by default"
3313
b0cacab0 3314fi;
877eb6d9
TT
3315# Check whether --enable-swapfs or --disable-swapfs was given.
3316if test "${enable_swapfs+set}" = set; then
3317 enableval="$enable_swapfs"
3318 if test "$enableval" = "no"
3319then
feb44c69 3320 SWAPFS_CMT=#
877eb6d9 3321 echo "Disabling swapfs support"
877eb6d9 3322else
feb44c69 3323 SWAPFS_CMT=
b0cacab0 3324 cat >>confdefs.h <<\_ACEOF
877eb6d9 3325#define ENABLE_SWAPFS 1
b0cacab0 3326_ACEOF
877eb6d9 3327
877eb6d9
TT
3328 echo "Enabling swapfs support"
3329fi
3330
3331else
feb44c69
TT
3332 SWAPFS_CMT=
3333echo "Enabling swapfs support by default"
b0cacab0 3334cat >>confdefs.h <<\_ACEOF
877eb6d9 3335#define ENABLE_SWAPFS 1
b0cacab0 3336_ACEOF
93636bde 3337
93636bde 3338
b0cacab0 3339fi;
feb44c69 3340
cdf186e4
TT
3341# Check whether --enable-debugfs or --disable-debugfs was given.
3342if test "${enable_debugfs+set}" = set; then
3343 enableval="$enable_debugfs"
3344 if test "$enableval" = "no"
3345then
3346 echo "Disabling debugfs support"
3347 DEBUGFS_CMT="#"
3348else
cdf186e4
TT
3349 DEBUGFS_CMT=
3350 echo "Enabling debugfs support"
3351fi
3352
3353else
3354 echo "Enabling debugfs support by default"
cdf186e4
TT
3355DEBUGFS_CMT=
3356
b0cacab0 3357fi;
cdf186e4
TT
3358
3359# Check whether --enable-imager or --disable-imager was given.
3360if test "${enable_imager+set}" = set; then
3361 enableval="$enable_imager"
3362 if test "$enableval" = "no"
3363then
3364 echo "Disabling e2image support"
3365 IMAGER_CMT="#"
3366else
cdf186e4
TT
3367 IMAGER_CMT=
3368 echo "Enabling e2image support"
3369fi
3370
3371else
3372 echo "Enabling e2image support by default"
cdf186e4
TT
3373IMAGER_CMT=
3374
b0cacab0 3375fi;
cdf186e4
TT
3376
3377# Check whether --enable-resizer or --disable-resizer was given.
3378if test "${enable_resizer+set}" = set; then
3379 enableval="$enable_resizer"
3380 if test "$enableval" = "no"
3381then
3382 echo "Disabling e2resize support"
3383 RESIZER_CMT="#"
3384else
cdf186e4
TT
3385 RESIZER_CMT=
3386 echo "Enabling e2resize support"
3387fi
3388
3389else
3390 echo "Enabling e2resize support by default"
cdf186e4
TT
3391RESIZER_CMT=
3392
b0cacab0 3393fi;
cdf186e4
TT
3394
3395# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3396if test "${enable_dynamic_e2fsck+set}" = set; then
3397 enableval="$enable_dynamic_e2fsck"
3398 if test "$enableval" = "no"
3399then
3400 E2FSCK_TYPE=static
3401 echo "Building e2fsck statically"
3402else
3403 E2FSCK_TYPE=shared
3404 echo "Building e2fsck dynamically"
3405fi
3406
3407else
3408 E2FSCK_TYPE=static
3409echo "Building e2fsck statically by default"
3410
b0cacab0 3411fi;
cdf186e4
TT
3412
3413# Check whether --enable-fsck or --disable-fsck was given.
3414if test "${enable_fsck+set}" = set; then
3415 enableval="$enable_fsck"
3416 if test "$enableval" = "no"
3417then
3418 FSCK_PROG='' FSCK_MAN=''
3419 echo "Not building fsck wrapper"
3420else
3421 FSCK_PROG=fsck FSCK_MAN=fsck.8
3422 echo "Building fsck wrapper"
3423fi
3424
3425else
3426 case "$host_os" in
e363240d 3427 gnu*)
cdf186e4
TT
3428 FSCK_PROG='' FSCK_MAN=''
3429 echo "Not building fsck wrapper by default"
3430 ;;
3431 *)
3432 FSCK_PROG=fsck FSCK_MAN=fsck.8
3433 echo "Building fsck wrapper by default"
3434esac
3435
b0cacab0 3436fi;
93636bde 3437
cdf186e4 3438
5d40773b
TT
3439# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3440if test "${enable_e2initrd_helper+set}" = set; then
3441 enableval="$enable_e2initrd_helper"
3442 if test "$enableval" = "no"
3443then
3444 E2INITRD_PROG='' E2INITRD_MAN=''
3445 echo "Not building e2initrd helper"
3446else
3447 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448 echo "Building e2initrd helper"
3449fi
3450
3451else
3452 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3453echo "Building e2initrd helper by default"
3454
b0cacab0 3455fi;
5d40773b
TT
3456
3457
cdf186e4
TT
3458MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3459
3460# Check whether --enable-old-bitops or --disable-old-bitops was given.
3461if test "${enable_old_bitops+set}" = set; then
3462 enableval="$enable_old_bitops"
3463 if test "$enableval" = "no"
3464then
3465 echo "Using new (standard) bitmask operations"
3466else
b0cacab0 3467 cat >>confdefs.h <<\_ACEOF
cdf186e4 3468#define EXT2_OLD_BITOPS 1
b0cacab0 3469_ACEOF
cdf186e4
TT
3470
3471 echo "Using old (native) bitmask operations"
3472
3473fi
3474
3475else
3476 echo "Using standard bitmask operations by default"
3477
b0cacab0
TT
3478fi;
3479GETTEXT_PACKAGE=e2fsprogs
a64c9c13
TT
3480PACKAGE=e2fsprogs
3481VERSION="$E2FSPROGS_VERSION"
b0cacab0
TT
3482VERSION=0.14.1
3483cat >>confdefs.h <<_ACEOF
a64c9c13 3484#define PACKAGE "$PACKAGE"
b0cacab0 3485_ACEOF
a64c9c13 3486
b0cacab0 3487cat >>confdefs.h <<_ACEOF
a64c9c13 3488#define VERSION "$VERSION"
b0cacab0 3489_ACEOF
93636bde
TT
3490
3491
93636bde 3492
93636bde
TT
3493
3494
b0cacab0
TT
3495echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3496echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3497set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3498if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3500else
b0cacab0 3501 cat >conftest.make <<\_ACEOF
a64c9c13 3502all:
b0cacab0
TT
3503 @echo 'ac_maketemp="$(MAKE)"'
3504_ACEOF
a64c9c13 3505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b0cacab0 3506eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
a64c9c13
TT
3507if test -n "$ac_maketemp"; then
3508 eval ac_cv_prog_make_${ac_make}_set=yes
3509else
3510 eval ac_cv_prog_make_${ac_make}_set=no
3511fi
b0cacab0 3512rm -f conftest.make
a64c9c13
TT
3513fi
3514if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b0cacab0
TT
3515 echo "$as_me:$LINENO: result: yes" >&5
3516echo "${ECHO_T}yes" >&6
a64c9c13
TT
3517 SET_MAKE=
3518else
b0cacab0
TT
3519 echo "$as_me:$LINENO: result: no" >&5
3520echo "${ECHO_T}no" >&6
a64c9c13
TT
3521 SET_MAKE="MAKE=${MAKE-make}"
3522fi
3523
a04eba3f
TT
3524# Find a good install program. We prefer a C program (faster),
3525# so one script is as good as another. But avoid the broken or
3526# incompatible versions:
3527# SysV /etc/install, /usr/sbin/install
3528# SunOS /usr/etc/install
3529# IRIX /sbin/install
3530# AIX /bin/install
b0cacab0 3531# AmigaOS /C/install, which installs bootblocks on floppy discs
a04eba3f
TT
3532# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3533# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3534# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b0cacab0 3535# OS/2's system install, which has a completely different semantic
a04eba3f 3536# ./install, which can be erroneously created by make from ./install.sh.
b0cacab0
TT
3537echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3538echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
a04eba3f 3539if test -z "$INSTALL"; then
b0cacab0
TT
3540if test "${ac_cv_path_install+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
a04eba3f 3542else
b0cacab0
TT
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 # Account for people who put trailing slashes in PATH elements.
3549case $as_dir/ in
3550 ./ | .// | /cC/* | \
3551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3552 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3553 /usr/ucb/* ) ;;
3554 *)
3555 # OSF1 and SCO ODT 3.0 have their own names for install.
3556 # Don't use installbsd from OSF since it installs stuff as root
3557 # by default.
3558 for ac_prog in ginstall scoinst install; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a04eba3f 3561 if test $ac_prog = install &&
b0cacab0 3562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
a04eba3f
TT
3563 # AIX install. It has an incompatible calling convention.
3564 :
b0cacab0
TT
3565 elif test $ac_prog = install &&
3566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # program-specific install script used by HP pwplus--don't use.
3568 :
a04eba3f 3569 else
b0cacab0
TT
3570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3571 break 3
a04eba3f
TT
3572 fi
3573 fi
3574 done
b0cacab0
TT
3575 done
3576 ;;
3577esac
3578done
3579
a04eba3f
TT
3580
3581fi
3582 if test "${ac_cv_path_install+set}" = set; then
b0cacab0 3583 INSTALL=$ac_cv_path_install
a04eba3f
TT
3584 else
3585 # As a last resort, use the slow shell script. We don't cache a
3586 # path for INSTALL within a source directory, because that will
3587 # break other packages using the cache if that directory is
3588 # removed, or if the path is relative.
b0cacab0 3589 INSTALL=$ac_install_sh
a04eba3f
TT
3590 fi
3591fi
b0cacab0
TT
3592echo "$as_me:$LINENO: result: $INSTALL" >&5
3593echo "${ECHO_T}$INSTALL" >&6
a04eba3f
TT
3594
3595# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596# It thinks the first close brace ends the variable substitution.
3597test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598
b0cacab0 3599test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a04eba3f
TT
3600
3601test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602
93636bde 3603
a04eba3f
TT
3604 MKINSTALLDIRS=
3605 if test -n "$ac_aux_dir"; then
b0cacab0
TT
3606 case "$ac_aux_dir" in
3607 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3608 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3609 esac
a04eba3f
TT
3610 fi
3611 if test -z "$MKINSTALLDIRS"; then
3612 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3613 fi
a04eba3f 3614
a64c9c13 3615
93636bde 3616
b0cacab0
TT
3617 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3618echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3619 # Check whether --enable-nls or --disable-nls was given.
3620if test "${enable_nls+set}" = set; then
3621 enableval="$enable_nls"
3622 USE_NLS=$enableval
a04eba3f 3623else
b0cacab0
TT
3624 USE_NLS=yes
3625fi;
3626 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3627echo "${ECHO_T}$USE_NLS" >&6
3628
3629
a64c9c13 3630
b0cacab0
TT
3631
3632
3633
3634# Prepare PATH_SEPARATOR.
3635# The user is always right.
3636if test "${PATH_SEPARATOR+set}" != set; then
3637 echo "#! /bin/sh" >conf$$.sh
3638 echo "exit 0" >>conf$$.sh
3639 chmod +x conf$$.sh
3640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3641 PATH_SEPARATOR=';'
3642 else
3643 PATH_SEPARATOR=:
3644 fi
3645 rm -f conf$$.sh
93636bde 3646fi
b0cacab0
TT
3647
3648# Find out how to test for executable files. Don't use a zero-byte file,
3649# as systems may use methods other than mode bits to determine executability.
3650cat >conf$$.file <<_ASEOF
3651#! /bin/sh
3652exit 0
3653_ASEOF
3654chmod +x conf$$.file
3655if test -x conf$$.file >/dev/null 2>&1; then
3656 ac_executable_p="test -x"
a64c9c13 3657else
b0cacab0 3658 ac_executable_p="test -f"
a64c9c13 3659fi
b0cacab0 3660rm -f conf$$.file
a64c9c13 3661
b0cacab0
TT
3662# Extract the first word of "msgfmt", so it can be a program name with args.
3663set dummy msgfmt; ac_word=$2
3664echo "$as_me:$LINENO: checking for $ac_word" >&5
3665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666if test "${ac_cv_path_MSGFMT+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 3668else
b0cacab0
TT
3669 case "$MSGFMT" in
3670 [\\/]* | ?:[\\/]*)
3671 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3672 ;;
3673 *)
3674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3675 for ac_dir in $PATH; do
3676 IFS="$ac_save_IFS"
3677 test -z "$ac_dir" && ac_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3680 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3681 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3682 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3683 break 2
3684 fi
3685 fi
3686 done
3687 done
3688 IFS="$ac_save_IFS"
3689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3690 ;;
3691esac
3692fi
3693MSGFMT="$ac_cv_path_MSGFMT"
3694if test "$MSGFMT" != ":"; then
3695 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3696echo "${ECHO_T}$MSGFMT" >&6
07a0db15 3697else
b0cacab0
TT
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
07a0db15 3700fi
07a0db15 3701
b0cacab0
TT
3702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3703set dummy gmsgfmt; ac_word=$2
3704echo "$as_me:$LINENO: checking for $ac_word" >&5
3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706if test "${ac_cv_path_GMSGFMT+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3708else
b0cacab0
TT
3709 case $GMSGFMT in
3710 [\\/]* | ?:[\\/]*)
3711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3712 ;;
3713 *)
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725done
3726done
a64c9c13 3727
b0cacab0
TT
3728 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3729 ;;
3730esac
a64c9c13 3731fi
b0cacab0 3732GMSGFMT=$ac_cv_path_GMSGFMT
a64c9c13 3733
b0cacab0
TT
3734if test -n "$GMSGFMT"; then
3735 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3736echo "${ECHO_T}$GMSGFMT" >&6
a64c9c13 3737else
b0cacab0
TT
3738 echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6
a64c9c13 3740fi
a64c9c13 3741
a64c9c13 3742
93636bde 3743
b0cacab0
TT
3744# Prepare PATH_SEPARATOR.
3745# The user is always right.
3746if test "${PATH_SEPARATOR+set}" != set; then
3747 echo "#! /bin/sh" >conf$$.sh
3748 echo "exit 0" >>conf$$.sh
3749 chmod +x conf$$.sh
3750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3751 PATH_SEPARATOR=';'
3752 else
3753 PATH_SEPARATOR=:
3754 fi
3755 rm -f conf$$.sh
a64c9c13 3756fi
93636bde 3757
b0cacab0
TT
3758# Find out how to test for executable files. Don't use a zero-byte file,
3759# as systems may use methods other than mode bits to determine executability.
3760cat >conf$$.file <<_ASEOF
3761#! /bin/sh
3762exit 0
3763_ASEOF
3764chmod +x conf$$.file
3765if test -x conf$$.file >/dev/null 2>&1; then
3766 ac_executable_p="test -x"
3767else
3768 ac_executable_p="test -f"
a64c9c13 3769fi
b0cacab0 3770rm -f conf$$.file
93636bde 3771
b0cacab0
TT
3772# Extract the first word of "xgettext", so it can be a program name with args.
3773set dummy xgettext; ac_word=$2
3774echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3776if test "${ac_cv_path_XGETTEXT+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3778else
b0cacab0
TT
3779 case "$XGETTEXT" in
3780 [\\/]* | ?:[\\/]*)
3781 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3782 ;;
3783 *)
3784 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3785 for ac_dir in $PATH; do
3786 IFS="$ac_save_IFS"
3787 test -z "$ac_dir" && ac_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3790 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3791 (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
3792 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3793 break 2
3794 fi
3795 fi
3796 done
3797 done
3798 IFS="$ac_save_IFS"
3799 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3800 ;;
3801esac
a64c9c13 3802fi
b0cacab0
TT
3803XGETTEXT="$ac_cv_path_XGETTEXT"
3804if test "$XGETTEXT" != ":"; then
3805 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3806echo "${ECHO_T}$XGETTEXT" >&6
3807else
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
a64c9c13 3810fi
07a0db15 3811
b0cacab0 3812 rm -f messages.po
a64c9c13 3813
a64c9c13 3814
b0cacab0
TT
3815# Prepare PATH_SEPARATOR.
3816# The user is always right.
3817if test "${PATH_SEPARATOR+set}" != set; then
3818 echo "#! /bin/sh" >conf$$.sh
3819 echo "exit 0" >>conf$$.sh
3820 chmod +x conf$$.sh
3821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3822 PATH_SEPARATOR=';'
3823 else
3824 PATH_SEPARATOR=:
3825 fi
3826 rm -f conf$$.sh
a64c9c13 3827fi
a64c9c13 3828
b0cacab0
TT
3829# Find out how to test for executable files. Don't use a zero-byte file,
3830# as systems may use methods other than mode bits to determine executability.
3831cat >conf$$.file <<_ASEOF
3832#! /bin/sh
3833exit 0
3834_ASEOF
3835chmod +x conf$$.file
3836if test -x conf$$.file >/dev/null 2>&1; then
3837 ac_executable_p="test -x"
3838else
3839 ac_executable_p="test -f"
a64c9c13 3840fi
b0cacab0 3841rm -f conf$$.file
93636bde 3842
b0cacab0
TT
3843# Extract the first word of "msgmerge", so it can be a program name with args.
3844set dummy msgmerge; ac_word=$2
3845echo "$as_me:$LINENO: checking for $ac_word" >&5
3846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847if test "${ac_cv_path_MSGMERGE+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 3849else
b0cacab0
TT
3850 case "$MSGMERGE" in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3853 ;;
3854 *)
3855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3856 for ac_dir in $PATH; do
3857 IFS="$ac_save_IFS"
3858 test -z "$ac_dir" && ac_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3861 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3862 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3863 break 2
3864 fi
3865 fi
3866 done
3867 done
3868 IFS="$ac_save_IFS"
3869 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3870 ;;
3871esac
3872fi
3873MSGMERGE="$ac_cv_path_MSGMERGE"
3874if test "$MSGMERGE" != ":"; then
3875 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3876echo "${ECHO_T}$MSGMERGE" >&6
a64c9c13 3877else
b0cacab0
TT
3878 echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
a64c9c13 3880fi
07a0db15 3881
a64c9c13 3882
b0cacab0
TT
3883 if test "$GMSGFMT" != ":"; then
3884 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3885 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3886 : ;
3887 else
3888 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3889 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3890echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3891 GMSGFMT=":"
3892 fi
3893 fi
3894
3895 if test "$XGETTEXT" != ":"; then
3896 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3897 (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
3898 : ;
3899 else
3900 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3901echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3902 XGETTEXT=":"
3903 fi
3904 rm -f messages.po
3905 fi
3906
3907 ac_config_commands="$ac_config_commands default-1"
a64c9c13 3908
b0cacab0
TT
3909
3910if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3913echo "$as_me:$LINENO: checking for $ac_word" >&5
3914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915if test "${ac_cv_prog_RANLIB+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 3917else
b0cacab0
TT
3918 if test -n "$RANLIB"; then
3919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
a64c9c13 3920else
b0cacab0
TT
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933done
07a0db15 3934
93636bde 3935fi
b0cacab0
TT
3936fi
3937RANLIB=$ac_cv_prog_RANLIB
3938if test -n "$RANLIB"; then
3939 echo "$as_me:$LINENO: result: $RANLIB" >&5
3940echo "${ECHO_T}$RANLIB" >&6
3941else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944fi
a64c9c13
TT
3945
3946fi
b0cacab0
TT
3947if test -z "$ac_cv_prog_RANLIB"; then
3948 ac_ct_RANLIB=$RANLIB
3949 # Extract the first word of "ranlib", so it can be a program name with args.
3950set dummy ranlib; ac_word=$2
3951echo "$as_me:$LINENO: checking for $ac_word" >&5
3952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if test -n "$ac_ct_RANLIB"; then
3957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_RANLIB="ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971done
a64c9c13 3972
b0cacab0 3973 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
93636bde 3974fi
b0cacab0
TT
3975fi
3976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3977if test -n "$ac_ct_RANLIB"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3979echo "${ECHO_T}$ac_ct_RANLIB" >&6
3980else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983fi
3984
3985 RANLIB=$ac_ct_RANLIB
3986else
3987 RANLIB="$ac_cv_prog_RANLIB"
93636bde
TT
3988fi
3989
a64c9c13 3990
b0cacab0
TT
3991 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3992echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3993if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 ac_check_lib_save_LIBS=$LIBS
3997LIBS="-lcposix $LIBS"
3998cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004
4005/* Override any gcc2 internal prototype to avoid an error. */
4006#ifdef __cplusplus
4007extern "C"
4008#endif
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char strerror ();
4012int
4013main ()
4014{
4015strerror ();
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext conftest$ac_exeext
4021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_lib_cposix_strerror=yes
4042else
4043 echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_cv_lib_cposix_strerror=no
4047fi
4048rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050LIBS=$ac_check_lib_save_LIBS
4051fi
4052echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4053echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4054if test $ac_cv_lib_cposix_strerror = yes; then
4055 LIBS="$LIBS -lcposix"
a64c9c13
TT
4056fi
4057
b0cacab0
TT
4058
4059
4060echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062if test "${ac_cv_c_const+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4064else
b0cacab0
TT
4065 cat >conftest.$ac_ext <<_ACEOF
4066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
93636bde 4071
b0cacab0
TT
4072int
4073main ()
4074{
4075/* FIXME: Include the comments suggested by Paul. */
4076#ifndef __cplusplus
4077 /* Ultrix mips cc rejects this. */
4078 typedef int charset[2];
4079 const charset x;
4080 /* SunOS 4.1.1 cc rejects this. */
4081 char const *const *ccp;
4082 char **p;
4083 /* NEC SVR4.0.2 mips cc rejects this. */
4084 struct point {int x, y;};
4085 static struct point const zero = {0,0};
4086 /* AIX XL C 1.02.0.0 rejects this.
4087 It does not let you subtract one const X* pointer from another in
4088 an arm of an if-expression whose if-part is not a constant
4089 expression */
4090 const char *g = "string";
4091 ccp = &g + (g ? g-g : 0);
4092 /* HPUX 7.0 cc rejects these. */
4093 ++ccp;
4094 p = (char**) ccp;
4095 ccp = (char const *const *) p;
4096 { /* SCO 3.2v4 cc rejects this. */
4097 char *t;
4098 char const *s = 0 ? (char *) 0 : (char const *) 0;
4099
4100 *t++ = 0;
4101 }
4102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4103 int x[] = {25, 17};
4104 const int *foo = &x[0];
4105 ++foo;
4106 }
4107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4108 typedef const int *iptr;
4109 iptr p = 0;
4110 ++p;
4111 }
4112 { /* AIX XL C 1.02.0.0 rejects this saying
4113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4114 struct s { int j; const int *ap[3]; };
4115 struct s *b; b->j = 5;
4116 }
4117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4118 const int foo = 10;
4119 }
a64c9c13
TT
4120#endif
4121
b0cacab0
TT
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126rm -f conftest.$ac_objext
4127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_c_const=yes
a64c9c13 4148else
b0cacab0
TT
4149 echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152ac_cv_c_const=no
a64c9c13 4153fi
b0cacab0 4154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a64c9c13 4155fi
b0cacab0
TT
4156echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157echo "${ECHO_T}$ac_cv_c_const" >&6
4158if test $ac_cv_c_const = no; then
a64c9c13 4159
b0cacab0
TT
4160cat >>confdefs.h <<\_ACEOF
4161#define const
4162_ACEOF
a64c9c13 4163
93636bde 4164fi
07a0db15 4165
a64c9c13 4166
b0cacab0
TT
4167 echo "$as_me:$LINENO: checking for signed" >&5
4168echo $ECHO_N "checking for signed... $ECHO_C" >&6
4169if test "${bh_cv_c_signed+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178
4179int
4180main ()
4181{
4182signed char x;
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 bh_cv_c_signed=yes
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213bh_cv_c_signed=no
4214fi
4215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4216fi
4217echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4218echo "${ECHO_T}$bh_cv_c_signed" >&6
4219 if test $bh_cv_c_signed = no; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define signed
4223_ACEOF
93636bde 4224
b0cacab0
TT
4225 fi
4226
4227echo "$as_me:$LINENO: checking for inline" >&5
4228echo $ECHO_N "checking for inline... $ECHO_C" >&6
4229if test "${ac_cv_c_inline+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4231else
b0cacab0
TT
4232 ac_cv_c_inline=no
4233for ac_kw in inline __inline__ __inline; do
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240#ifndef __cplusplus
4241typedef int foo_t;
4242static $ac_kw foo_t static_foo () {return 0; }
4243$ac_kw foo_t foo () {return 0; }
a64c9c13
TT
4244#endif
4245
b0cacab0
TT
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_c_inline=$ac_kw; break
a64c9c13 4269else
b0cacab0
TT
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
a64c9c13
TT
4272
4273fi
b0cacab0
TT
4274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4275done
93636bde 4276
b0cacab0
TT
4277fi
4278echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4279echo "${ECHO_T}$ac_cv_c_inline" >&6
93636bde 4280
a64c9c13 4281
b0cacab0
TT
4282case $ac_cv_c_inline in
4283 inline | yes) ;;
4284 *)
4285 case $ac_cv_c_inline in
4286 no) ac_val=;;
4287 *) ac_val=$ac_cv_c_inline;;
4288 esac
4289 cat >>confdefs.h <<_ACEOF
4290#ifndef __cplusplus
4291#define inline $ac_val
a64c9c13 4292#endif
b0cacab0
TT
4293_ACEOF
4294 ;;
4295esac
a64c9c13 4296
b0cacab0
TT
4297echo "$as_me:$LINENO: checking for off_t" >&5
4298echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4299if test "${ac_cv_type_off_t+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h. */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h. */
4308$ac_includes_default
4309int
4310main ()
4311{
4312if ((off_t *) 0)
4313 return 0;
4314if (sizeof (off_t))
4315 return 0;
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest.$ac_objext
4321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_type_off_t=yes
93636bde 4342else
b0cacab0
TT
4343 echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346ac_cv_type_off_t=no
93636bde 4347fi
b0cacab0 4348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
93636bde 4349fi
b0cacab0
TT
4350echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4351echo "${ECHO_T}$ac_cv_type_off_t" >&6
4352if test $ac_cv_type_off_t = yes; then
4353 :
93636bde 4354else
a64c9c13 4355
b0cacab0
TT
4356cat >>confdefs.h <<_ACEOF
4357#define off_t long
4358_ACEOF
4359
a64c9c13
TT
4360fi
4361
b0cacab0
TT
4362echo "$as_me:$LINENO: checking for size_t" >&5
4363echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4364if test "${ac_cv_type_size_t+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4366else
b0cacab0
TT
4367 cat >conftest.$ac_ext <<_ACEOF
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373$ac_includes_default
4374int
a64c9c13
TT
4375main ()
4376{
b0cacab0
TT
4377if ((size_t *) 0)
4378 return 0;
4379if (sizeof (size_t))
4380 return 0;
4381 ;
4382 return 0;
a64c9c13 4383}
b0cacab0
TT
4384_ACEOF
4385rm -f conftest.$ac_objext
4386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_size_t=yes
a64c9c13 4407else
b0cacab0
TT
4408 echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411ac_cv_type_size_t=no
a64c9c13 4412fi
b0cacab0 4413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a64c9c13 4414fi
b0cacab0
TT
4415echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4416echo "${ECHO_T}$ac_cv_type_size_t" >&6
4417if test $ac_cv_type_size_t = yes; then
4418 :
4419else
4420
4421cat >>confdefs.h <<_ACEOF
4422#define size_t unsigned
4423_ACEOF
93636bde 4424
a64c9c13
TT
4425fi
4426
a64c9c13 4427
b0cacab0
TT
4428 echo "$as_me:$LINENO: checking for long long" >&5
4429echo $ECHO_N "checking for long long... $ECHO_C" >&6
4430if test "${ac_cv_type_long_long+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439long long ll = 1LL; int i = 63;
4440int
4441main ()
4442{
4443long long llmax = (long long) -1;
4444 return ll << i | ll >> i | llmax / ll | llmax % ll;
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449rm -f conftest.$ac_objext conftest$ac_exeext
4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451 (eval $ac_link) 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_type_long_long=yes
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475ac_cv_type_long_long=no
4476fi
4477rm -f conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4479fi
4480echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4481echo "${ECHO_T}$ac_cv_type_long_long" >&6
4482 if test $ac_cv_type_long_long = yes; then
4483
4484cat >>confdefs.h <<\_ACEOF
4485#define HAVE_LONG_LONG 1
4486_ACEOF
a64c9c13 4487
b0cacab0
TT
4488 fi
4489
4490
4491 echo "$as_me:$LINENO: checking for long double" >&5
4492echo $ECHO_N "checking for long double... $ECHO_C" >&6
4493if test "${gt_cv_c_long_double+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 4495else
b0cacab0
TT
4496 if test "$GCC" = yes; then
4497 gt_cv_c_long_double=yes
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
4505
4506 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4507 long double foo = 0.0;
4508 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4509 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
a64c9c13 4510
b0cacab0
TT
4511int
4512main ()
4513{
93636bde 4514
b0cacab0
TT
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 gt_cv_c_long_double=yes
4541else
4542 echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
4544
4545gt_cv_c_long_double=no
4546fi
4547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548 fi
4549fi
4550echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4551echo "${ECHO_T}$gt_cv_c_long_double" >&6
4552 if test $gt_cv_c_long_double = yes; then
4553
4554cat >>confdefs.h <<\_ACEOF
4555#define HAVE_LONG_DOUBLE 1
4556_ACEOF
a64c9c13 4557
b0cacab0 4558 fi
a64c9c13 4559
a64c9c13 4560
b0cacab0
TT
4561 echo "$as_me:$LINENO: checking for wchar_t" >&5
4562echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4563if test "${gt_cv_c_wchar_t+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 4565else
b0cacab0
TT
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572#include <stddef.h>
4573 wchar_t foo = (wchar_t)'\0';
4574int
4575main ()
4576{
a64c9c13 4577
b0cacab0
TT
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext
4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 gt_cv_c_wchar_t=yes
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608gt_cv_c_wchar_t=no
4609fi
4610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611fi
4612echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4613echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4614 if test $gt_cv_c_wchar_t = yes; then
4615
4616cat >>confdefs.h <<\_ACEOF
4617#define HAVE_WCHAR_T 1
4618_ACEOF
4619
4620 fi
4621
4622
4623 echo "$as_me:$LINENO: checking for wint_t" >&5
4624echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4625if test "${gt_cv_c_wint_t+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4627else
b0cacab0
TT
4628 cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <wchar.h>
4635 wint_t foo = (wchar_t)'\0';
4636int
4637main ()
4638{
93636bde 4639
b0cacab0
TT
4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext
4645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 gt_cv_c_wint_t=yes
4666else
4667 echo "$as_me: failed program was:" >&5
4668sed 's/^/| /' conftest.$ac_ext >&5
4669
4670gt_cv_c_wint_t=no
4671fi
4672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4675echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4676 if test $gt_cv_c_wint_t = yes; then
4677
4678cat >>confdefs.h <<\_ACEOF
4679#define HAVE_WINT_T 1
4680_ACEOF
a64c9c13 4681
b0cacab0
TT
4682 fi
4683
4684
4685 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4686echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4687if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690 cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
93636bde 4696#include <sys/types.h>
b0cacab0
TT
4697#include <inttypes.h>
4698int
4699main ()
4700{
4701uintmax_t i = (uintmax_t) -1;
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 jm_ac_cv_header_inttypes_h=yes
4728else
4729 echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
a64c9c13 4731
b0cacab0
TT
4732jm_ac_cv_header_inttypes_h=no
4733fi
4734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735fi
4736echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4737echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4738 if test $jm_ac_cv_header_inttypes_h = yes; then
93636bde 4739
b0cacab0
TT
4740cat >>confdefs.h <<_ACEOF
4741#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4742_ACEOF
a64c9c13 4743
b0cacab0 4744 fi
a64c9c13 4745
a64c9c13 4746
b0cacab0
TT
4747 echo "$as_me:$LINENO: checking for stdint.h" >&5
4748echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4749if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#include <sys/types.h>
4759#include <stdint.h>
4760int
4761main ()
4762{
4763uintmax_t i = (uintmax_t) -1;
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 jm_ac_cv_header_stdint_h=yes
4790else
4791 echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794jm_ac_cv_header_stdint_h=no
4795fi
4796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797fi
4798echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4799echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4800 if test $jm_ac_cv_header_stdint_h = yes; then
4801
4802cat >>confdefs.h <<_ACEOF
4803#define HAVE_STDINT_H_WITH_UINTMAX 1
4804_ACEOF
4805
4806 fi
4807
4808
4809
4810
4811 echo "$as_me:$LINENO: checking for intmax_t" >&5
4812echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4813if test "${gt_cv_c_intmax_t+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816 cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822
4823#include <stddef.h>
4824#include <stdlib.h>
4825#if HAVE_STDINT_H_WITH_UINTMAX
4826#include <stdint.h>
4827#endif
4828#if HAVE_INTTYPES_H_WITH_UINTMAX
4829#include <inttypes.h>
93636bde
TT
4830#endif
4831
a64c9c13 4832int
b0cacab0
TT
4833main ()
4834{
4835intmax_t x = -1;
4836 ;
4837 return 0;
a64c9c13 4838}
b0cacab0
TT
4839_ACEOF
4840rm -f conftest.$ac_objext
4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 gt_cv_c_intmax_t=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866gt_cv_c_intmax_t=no
4867fi
4868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869fi
4870echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4871echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4872 if test $gt_cv_c_intmax_t = yes; then
4873
4874cat >>confdefs.h <<\_ACEOF
4875#define HAVE_INTMAX_T 1
4876_ACEOF
93636bde 4877
b0cacab0
TT
4878 fi
4879
4880
4881
4882 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4883echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4884if test "${gt_cv_func_printf_posix+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 4886else
b0cacab0
TT
4887
4888 if test "$cross_compiling" = yes; then
4889
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896
4897#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4898 notposix
4899#endif
4900
4901_ACEOF
4902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "notposix" >/dev/null 2>&1; then
4904 gt_cv_func_printf_posix="guessing no"
4905else
4906 gt_cv_func_printf_posix="guessing yes"
a64c9c13 4907fi
b0cacab0
TT
4908rm -f conftest*
4909
4910
4911else
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918
4919#include <stdio.h>
4920#include <string.h>
4921/* The string "%2$d %1$d", with dollar characters protected from the shell's
4922 dollar expansion (possibly an autoconf bug). */
4923static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4924static char buf[100];
4925int main ()
4926{
4927 sprintf (buf, format, 33, 55);
4928 return (strcmp (buf, "55 33") != 0);
4929}
4930_ACEOF
4931rm -f conftest$ac_exeext
4932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 gt_cv_func_printf_posix=yes
4943else
4944 echo "$as_me: program exited with status $ac_status" >&5
4945echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948( exit $ac_status )
4949gt_cv_func_printf_posix=no
4950fi
4951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a64c9c13 4952fi
93636bde 4953
a64c9c13 4954fi
b0cacab0
TT
4955echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4956echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4957 case $gt_cv_func_printf_posix in
4958 *yes)
07a0db15 4959
b0cacab0
TT
4960cat >>confdefs.h <<\_ACEOF
4961#define HAVE_POSIX_PRINTF 1
4962_ACEOF
4963
4964 ;;
4965 esac
4966
4967# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4968# for constant arguments. Useless!
4969echo "$as_me:$LINENO: checking for working alloca.h" >&5
4970echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4971if test "${ac_cv_working_alloca_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980#include <alloca.h>
4981int
4982main ()
4983{
4984char *p = (char *) alloca (2 * sizeof (int));
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext conftest$ac_exeext
4990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_working_alloca_h=yes
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015ac_cv_working_alloca_h=no
5016fi
5017rm -f conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5021echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5022if test $ac_cv_working_alloca_h = yes; then
5023
5024cat >>confdefs.h <<\_ACEOF
5025#define HAVE_ALLOCA_H 1
5026_ACEOF
a64c9c13
TT
5027
5028fi
5029
b0cacab0
TT
5030echo "$as_me:$LINENO: checking for alloca" >&5
5031echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5032if test "${ac_cv_func_alloca_works+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041#ifdef __GNUC__
5042# define alloca __builtin_alloca
5043#else
5044# ifdef _MSC_VER
5045# include <malloc.h>
5046# define alloca _alloca
5047# else
5048# if HAVE_ALLOCA_H
5049# include <alloca.h>
5050# else
5051# ifdef _AIX
5052 #pragma alloca
5053# else
5054# ifndef alloca /* predefined by HP cc +Olibcalls */
5055char *alloca ();
5056# endif
5057# endif
5058# endif
5059# endif
5060#endif
93636bde 5061
b0cacab0
TT
5062int
5063main ()
5064{
5065char *p = (char *) alloca (1);
5066 ;
5067 return 0;
5068}
5069_ACEOF
5070rm -f conftest.$ac_objext conftest$ac_exeext
5071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_func_alloca_works=yes
a64c9c13 5092else
b0cacab0
TT
5093 echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
a04eba3f 5095
b0cacab0
TT
5096ac_cv_func_alloca_works=no
5097fi
5098rm -f conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100fi
5101echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5102echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5103
5104if test $ac_cv_func_alloca_works = yes; then
5105
5106cat >>confdefs.h <<\_ACEOF
5107#define HAVE_ALLOCA 1
5108_ACEOF
5109
5110else
5111 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5112# that cause trouble. Some versions do not even contain alloca or
5113# contain a buggy version. If you still want to use their alloca,
5114# use ar to extract alloca.o from them instead of compiling alloca.c.
5115
5116ALLOCA=alloca.$ac_objext
5117
5118cat >>confdefs.h <<\_ACEOF
5119#define C_ALLOCA 1
5120_ACEOF
5121
5122
5123echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5124echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5125if test "${ac_cv_os_cray+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134#if defined(CRAY) && ! defined(CRAY2)
5135webecray
5136#else
5137wenotbecray
a04eba3f 5138#endif
b0cacab0
TT
5139
5140_ACEOF
a04eba3f 5141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0cacab0
TT
5142 $EGREP "webecray" >/dev/null 2>&1; then
5143 ac_cv_os_cray=yes
a64c9c13 5144else
b0cacab0 5145 ac_cv_os_cray=no
a64c9c13
TT
5146fi
5147rm -f conftest*
a04eba3f 5148
a64c9c13 5149fi
b0cacab0
TT
5150echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5151echo "${ECHO_T}$ac_cv_os_cray" >&6
5152if test $ac_cv_os_cray = yes; then
5153 for ac_func in _getb67 GETB67 getb67; do
5154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155echo "$as_me:$LINENO: checking for $ac_func" >&5
5156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5157if eval "test \"\${$as_ac_var+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5168#define $ac_func innocuous_$ac_func
a64c9c13 5169
b0cacab0
TT
5170/* System header to define __stub macros and hopefully few prototypes,
5171 which can conflict with char $ac_func (); below.
5172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 <limits.h> exists even on freestanding compilers. */
07a0db15 5174
b0cacab0
TT
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
a64c9c13 5180
b0cacab0 5181#undef $ac_func
a64c9c13 5182
b0cacab0 5183/* Override any gcc2 internal prototype to avoid an error. */
a04eba3f 5184#ifdef __cplusplus
b0cacab0
TT
5185extern "C"
5186{
5187#endif
5188/* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5190char $ac_func ();
5191/* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195choke me
a64c9c13 5196#else
b0cacab0 5197char (*f) () = $ac_func;
a64c9c13 5198#endif
b0cacab0
TT
5199#ifdef __cplusplus
5200}
5201#endif
5202
5203int
5204main ()
a04eba3f 5205{
b0cacab0
TT
5206return f != $ac_func;
5207 ;
5208 return 0;
a04eba3f 5209}
b0cacab0
TT
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>conftest.er1
5214 ac_status=$?
5215 grep -v '^ *+' conftest.er1 >conftest.err
5216 rm -f conftest.er1
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 eval "$as_ac_var=yes"
5233else
5234 echo "$as_me: failed program was:" >&5
5235sed 's/^/| /' conftest.$ac_ext >&5
5236
5237eval "$as_ac_var=no"
5238fi
5239rm -f conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5241fi
5242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5244if test `eval echo '${'$as_ac_var'}'` = yes; then
5245
5246cat >>confdefs.h <<_ACEOF
5247#define CRAY_STACKSEG_END $ac_func
5248_ACEOF
a04eba3f 5249
b0cacab0
TT
5250 break
5251fi
a04eba3f 5252
b0cacab0
TT
5253 done
5254fi
5255
5256echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5257echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5258if test "${ac_cv_c_stack_direction+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 if test "$cross_compiling" = yes; then
5262 ac_cv_c_stack_direction=0
5263else
5264 cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
5270int
5271find_stack_direction ()
5272{
5273 static char *addr = 0;
5274 auto char dummy;
5275 if (addr == 0)
5276 {
5277 addr = &dummy;
5278 return find_stack_direction ();
5279 }
5280 else
5281 return (&dummy > addr) ? 1 : -1;
5282}
5283
5284int
5285main ()
5286{
5287 exit (find_stack_direction () < 0);
5288}
5289_ACEOF
5290rm -f conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_cv_c_stack_direction=1
5302else
5303 echo "$as_me: program exited with status $ac_status" >&5
5304echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307( exit $ac_status )
5308ac_cv_c_stack_direction=-1
5309fi
5310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311fi
5312fi
5313echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5314echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5315
5316cat >>confdefs.h <<_ACEOF
5317#define STACK_DIRECTION $ac_cv_c_stack_direction
5318_ACEOF
5319
5320
5321fi
5322
5323
5324
5325for ac_header in stdlib.h unistd.h
5326do
5327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329 echo "$as_me:$LINENO: checking for $ac_header" >&5
5330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333fi
5334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336else
5337 # Is the header compilable?
5338echo "$as_me:$LINENO: checking $ac_header usability" >&5
5339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5340cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
5346$ac_includes_default
5347#include <$ac_header>
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 (eval $ac_try) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_header_compiler=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375ac_header_compiler=no
5376fi
5377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379echo "${ECHO_T}$ac_header_compiler" >&6
5380
5381# Is the header present?
5382echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390#include <$ac_header>
5391_ACEOF
5392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403 else
5404 ac_cpp_err=
5405 fi
5406else
5407 ac_cpp_err=yes
5408fi
5409if test -z "$ac_cpp_err"; then
5410 ac_header_preproc=yes
5411else
5412 echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_header_preproc=no
5416fi
5417rm -f conftest.err conftest.$ac_ext
5418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419echo "${ECHO_T}$ac_header_preproc" >&6
5420
5421# So? What about this header?
5422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5423 yes:no: )
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428 ac_header_preproc=yes
5429 ;;
5430 no:yes:* )
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5443 (
5444 cat <<\_ASBOX
5445## ------------------------------------------ ##
5446## Report this to the AC_PACKAGE_NAME lists. ##
5447## ------------------------------------------ ##
5448_ASBOX
5449 ) |
5450 sed "s/^/$as_me: WARNING: /" >&2
5451 ;;
5452esac
5453echo "$as_me:$LINENO: checking for $ac_header" >&5
5454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 eval "$as_ac_Header=\$ac_header_preproc"
5459fi
5460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462
5463fi
5464if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465 cat >>confdefs.h <<_ACEOF
5466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5467_ACEOF
5468
5469fi
5470
5471done
5472
5473
5474for ac_func in getpagesize
5475do
5476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477echo "$as_me:$LINENO: checking for $ac_func" >&5
5478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5479if eval "test \"\${$as_ac_var+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482 cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h. */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h. */
5488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5490#define $ac_func innocuous_$ac_func
5491
5492/* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func (); below.
5494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 <limits.h> exists even on freestanding compilers. */
5496
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502
5503#undef $ac_func
5504
5505/* Override any gcc2 internal prototype to avoid an error. */
5506#ifdef __cplusplus
5507extern "C"
5508{
5509#endif
5510/* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5512char $ac_func ();
5513/* The GNU C library defines this for functions which it implements
5514 to always fail with ENOSYS. Some functions are actually named
5515 something starting with __ and the normal name is an alias. */
5516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5517choke me
5518#else
5519char (*f) () = $ac_func;
5520#endif
5521#ifdef __cplusplus
5522}
5523#endif
5524
5525int
5526main ()
5527{
5528return f != $ac_func;
5529 ;
5530 return 0;
5531}
5532_ACEOF
5533rm -f conftest.$ac_objext conftest$ac_exeext
5534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>conftest.er1
5536 ac_status=$?
5537 grep -v '^ *+' conftest.er1 >conftest.err
5538 rm -f conftest.er1
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 (eval $ac_try) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 eval "$as_ac_var=yes"
5555else
5556 echo "$as_me: failed program was:" >&5
5557sed 's/^/| /' conftest.$ac_ext >&5
5558
5559eval "$as_ac_var=no"
5560fi
5561rm -f conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5563fi
5564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5566if test `eval echo '${'$as_ac_var'}'` = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5569_ACEOF
5570
5571fi
5572done
5573
5574echo "$as_me:$LINENO: checking for working mmap" >&5
5575echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5576if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579 if test "$cross_compiling" = yes; then
5580 ac_cv_func_mmap_fixed_mapped=no
5581else
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588$ac_includes_default
5589/* malloc might have been renamed as rpl_malloc. */
5590#undef malloc
5591
5592/* Thanks to Mike Haertel and Jim Avera for this test.
5593 Here is a matrix of mmap possibilities:
5594 mmap private not fixed
5595 mmap private fixed at somewhere currently unmapped
5596 mmap private fixed at somewhere already mapped
5597 mmap shared not fixed
5598 mmap shared fixed at somewhere currently unmapped
5599 mmap shared fixed at somewhere already mapped
5600 For private mappings, we should verify that changes cannot be read()
5601 back from the file, nor mmap's back from the file at a different
5602 address. (There have been systems where private was not correctly
5603 implemented like the infamous i386 svr4.0, and systems where the
5604 VM page cache was not coherent with the file system buffer cache
5605 like early versions of FreeBSD and possibly contemporary NetBSD.)
5606 For shared mappings, we should conversely verify that changes get
5607 propagated back to all the places they're supposed to be.
5608
5609 Grep wants private fixed already mapped.
5610 The main things grep needs to know about mmap are:
5611 * does it exist and is it safe to write into the mmap'd area
5612 * how to use it (BSD variants) */
5613
5614#include <fcntl.h>
5615#include <sys/mman.h>
5616
5617#if !STDC_HEADERS && !HAVE_STDLIB_H
5618char *malloc ();
5619#endif
5620
5621/* This mess was copied from the GNU getpagesize.h. */
5622#if !HAVE_GETPAGESIZE
5623/* Assume that all systems that can run configure have sys/param.h. */
5624# if !HAVE_SYS_PARAM_H
5625# define HAVE_SYS_PARAM_H 1
5626# endif
5627
5628# ifdef _SC_PAGESIZE
5629# define getpagesize() sysconf(_SC_PAGESIZE)
5630# else /* no _SC_PAGESIZE */
5631# if HAVE_SYS_PARAM_H
5632# include <sys/param.h>
5633# ifdef EXEC_PAGESIZE
5634# define getpagesize() EXEC_PAGESIZE
5635# else /* no EXEC_PAGESIZE */
5636# ifdef NBPG
5637# define getpagesize() NBPG * CLSIZE
5638# ifndef CLSIZE
5639# define CLSIZE 1
5640# endif /* no CLSIZE */
5641# else /* no NBPG */
5642# ifdef NBPC
5643# define getpagesize() NBPC
5644# else /* no NBPC */
5645# ifdef PAGESIZE
5646# define getpagesize() PAGESIZE
5647# endif /* PAGESIZE */
5648# endif /* no NBPC */
5649# endif /* no NBPG */
5650# endif /* no EXEC_PAGESIZE */
5651# else /* no HAVE_SYS_PARAM_H */
5652# define getpagesize() 8192 /* punt totally */
5653# endif /* no HAVE_SYS_PARAM_H */
5654# endif /* no _SC_PAGESIZE */
5655
5656#endif /* no HAVE_GETPAGESIZE */
5657
5658int
5659main ()
5660{
5661 char *data, *data2, *data3;
5662 int i, pagesize;
5663 int fd;
5664
5665 pagesize = getpagesize ();
5666
5667 /* First, make a file with some known garbage in it. */
5668 data = (char *) malloc (pagesize);
5669 if (!data)
5670 exit (1);
5671 for (i = 0; i < pagesize; ++i)
5672 *(data + i) = rand ();
5673 umask (0);
5674 fd = creat ("conftest.mmap", 0600);
5675 if (fd < 0)
5676 exit (1);
5677 if (write (fd, data, pagesize) != pagesize)
5678 exit (1);
5679 close (fd);
5680
5681 /* Next, try to mmap the file at a fixed address which already has
5682 something else allocated at it. If we can, also make sure that
5683 we see the same garbage. */
5684 fd = open ("conftest.mmap", O_RDWR);
5685 if (fd < 0)
5686 exit (1);
5687 data2 = (char *) malloc (2 * pagesize);
5688 if (!data2)
5689 exit (1);
5690 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5693 exit (1);
5694 for (i = 0; i < pagesize; ++i)
5695 if (*(data + i) != *(data2 + i))
5696 exit (1);
5697
5698 /* Finally, make sure that changes to the mapped area do not
5699 percolate back to the file as seen by read(). (This is a bug on
5700 some variants of i386 svr4.0.) */
5701 for (i = 0; i < pagesize; ++i)
5702 *(data2 + i) = *(data2 + i) + 1;
5703 data3 = (char *) malloc (pagesize);
5704 if (!data3)
5705 exit (1);
5706 if (read (fd, data3, pagesize) != pagesize)
5707 exit (1);
5708 for (i = 0; i < pagesize; ++i)
5709 if (*(data + i) != *(data3 + i))
5710 exit (1);
5711 close (fd);
5712 exit (0);
5713}
5714_ACEOF
5715rm -f conftest$ac_exeext
5716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_func_mmap_fixed_mapped=yes
5727else
5728 echo "$as_me: program exited with status $ac_status" >&5
5729echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732( exit $ac_status )
5733ac_cv_func_mmap_fixed_mapped=no
5734fi
5735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5736fi
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5739echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5740if test $ac_cv_func_mmap_fixed_mapped = yes; then
5741
5742cat >>confdefs.h <<\_ACEOF
5743#define HAVE_MMAP 1
5744_ACEOF
5745
5746fi
5747rm -f conftest.mmap
5748
5749
5750 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5751echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5752if test "${ac_cv_gnu_library_2_1+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755 cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h. */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h. */
5761
5762#include <features.h>
5763#ifdef __GNU_LIBRARY__
5764 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5765 Lucky GNU user
5766 #endif
5767#endif
5768
5769_ACEOF
5770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5772 ac_cv_gnu_library_2_1=yes
5773else
5774 ac_cv_gnu_library_2_1=no
5775fi
5776rm -f conftest*
5777
5778
5779
5780fi
5781echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5782echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5783
5784 GLIBC21="$ac_cv_gnu_library_2_1"
5785
5786
5787
5788
5789 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5790echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5791if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794
5795 if test "$cross_compiling" = yes; then
5796
5797 # Guess based on the CPU.
5798 case "$host_cpu" in
5799 alpha* | i3456786 | m68k | s390*)
5800 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5801 *)
5802 gt_cv_int_divbyzero_sigfpe="guessing no";;
5803 esac
5804
5805else
5806 cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h. */
5812
5813#include <stdlib.h>
5814#include <signal.h>
5815
5816static void
5817#ifdef __cplusplus
5818sigfpe_handler (int sig)
5819#else
5820sigfpe_handler (sig) int sig;
5821#endif
5822{
5823 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5824 exit (sig != SIGFPE);
5825}
5826
5827int x = 1;
5828int y = 0;
5829int z;
5830int nan;
5831
5832int main ()
a04eba3f
TT
5833{
5834 signal (SIGFPE, sigfpe_handler);
5835/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5836#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5837 signal (SIGTRAP, sigfpe_handler);
5838#endif
5839/* Linux/SPARC yields signal SIGILL. */
5840#if defined (__sparc__) && defined (__linux__)
5841 signal (SIGILL, sigfpe_handler);
5842#endif
5843
5844 z = x / y;
5845 nan = y / y;
5846 exit (1);
5847}
a64c9c13 5848
b0cacab0
TT
5849_ACEOF
5850rm -f conftest$ac_exeext
5851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
a04eba3f 5861 gt_cv_int_divbyzero_sigfpe=yes
a64c9c13 5862else
b0cacab0
TT
5863 echo "$as_me: program exited with status $ac_status" >&5
5864echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867( exit $ac_status )
5868gt_cv_int_divbyzero_sigfpe=no
5869fi
5870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5871fi
5872
5873fi
5874echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5875echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5876 case "$gt_cv_int_divbyzero_sigfpe" in
5877 *yes) value=1;;
5878 *) value=0;;
5879 esac
5880
5881cat >>confdefs.h <<_ACEOF
5882#define INTDIV0_RAISES_SIGFPE $value
5883_ACEOF
5884
5885
5886
5887 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5888echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5889if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898unsigned long long ull = 1ULL; int i = 63;
5899int
5900main ()
5901{
5902unsigned long long ullmax = (unsigned long long) -1;
5903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext conftest$ac_exeext
5909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_unsigned_long_long=yes
5930else
5931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934ac_cv_type_unsigned_long_long=no
5935fi
5936rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5938fi
5939echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5940echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5941 if test $ac_cv_type_unsigned_long_long = yes; then
5942
5943cat >>confdefs.h <<\_ACEOF
5944#define HAVE_UNSIGNED_LONG_LONG 1
5945_ACEOF
5946
5947 fi
5948
5949
5950
5951
5952 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5953
5954 test $ac_cv_type_unsigned_long_long = yes \
5955 && ac_type='unsigned long long' \
5956 || ac_type='unsigned long'
5957
5958cat >>confdefs.h <<_ACEOF
5959#define uintmax_t $ac_type
5960_ACEOF
5961
5962 else
5963
5964cat >>confdefs.h <<\_ACEOF
5965#define HAVE_UINTMAX_T 1
5966_ACEOF
5967
5968 fi
5969
5970
5971 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5972echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5973if test "${gt_cv_header_inttypes_h+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
5983#include <sys/types.h>
5984#include <inttypes.h>
5985int
5986main ()
5987{
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 gt_cv_header_inttypes_h=yes
6015else
6016 echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019gt_cv_header_inttypes_h=no
6020fi
6021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022
6023fi
6024echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6025echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6026 if test $gt_cv_header_inttypes_h = yes; then
6027
6028cat >>confdefs.h <<_ACEOF
6029#define HAVE_INTTYPES_H 1
6030_ACEOF
6031
6032 fi
6033
6034
6035
6036 if test $gt_cv_header_inttypes_h = yes; then
6037 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6038echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6039if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049#include <inttypes.h>
6050#ifdef PRId32
6051char *p = PRId32;
6052#endif
6053
6054int
6055main ()
6056{
6057
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
6063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 gt_cv_inttypes_pri_broken=no
6084else
6085 echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
6087
6088gt_cv_inttypes_pri_broken=yes
6089fi
6090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091
6092fi
6093echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6094echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6095 fi
6096 if test "$gt_cv_inttypes_pri_broken" = yes; then
6097
6098cat >>confdefs.h <<_ACEOF
6099#define PRI_MACROS_BROKEN 1
6100_ACEOF
6101
6102 fi
6103
6104
6105
6106for ac_header in stdint.h
6107do
6108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6109if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo "$as_me:$LINENO: checking for $ac_header" >&5
6111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114fi
6115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6117else
6118 # Is the header compilable?
6119echo "$as_me:$LINENO: checking $ac_header usability" >&5
6120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6121cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127$ac_includes_default
6128#include <$ac_header>
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_header_compiler=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156ac_header_compiler=no
6157fi
6158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160echo "${ECHO_T}$ac_header_compiler" >&6
6161
6162# Is the header present?
6163echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171#include <$ac_header>
6172_ACEOF
6173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 else
6185 ac_cpp_err=
6186 fi
6187else
6188 ac_cpp_err=yes
6189fi
6190if test -z "$ac_cpp_err"; then
6191 ac_header_preproc=yes
6192else
6193 echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_header_preproc=no
6197fi
6198rm -f conftest.err conftest.$ac_ext
6199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200echo "${ECHO_T}$ac_header_preproc" >&6
6201
6202# So? What about this header?
6203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204 yes:no: )
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209 ac_header_preproc=yes
6210 ;;
6211 no:yes:* )
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6224 (
6225 cat <<\_ASBOX
6226## ------------------------------------------ ##
6227## Report this to the AC_PACKAGE_NAME lists. ##
6228## ------------------------------------------ ##
6229_ASBOX
6230 ) |
6231 sed "s/^/$as_me: WARNING: /" >&2
6232 ;;
6233esac
6234echo "$as_me:$LINENO: checking for $ac_header" >&5
6235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 eval "$as_ac_Header=\$ac_header_preproc"
6240fi
6241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243
6244fi
6245if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248_ACEOF
6249
6250fi
6251
6252done
6253
6254 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6255echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6256 result=
6257 cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h. */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h. */
6263
6264#include <limits.h>
6265#if HAVE_STDINT_H
6266#include <stdint.h>
6267#endif
6268#ifdef SIZE_MAX
6269Found it
6270#endif
6271
6272_ACEOF
6273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "Found it" >/dev/null 2>&1; then
6275 result=yes
6276fi
6277rm -f conftest*
6278
6279 if test -z "$result"; then
6280 if test "$cross_compiling" = yes; then
6281 # Depending upon the size, compute the lo and hi bounds.
6282cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288#include <stddef.h>
6289int
6290main ()
6291{
6292static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6293test_array [0] = 0
6294
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 ac_lo=0 ac_mid=0
6321 while :; do
6322 cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h. */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h. */
6328#include <stddef.h>
6329int
6330main ()
6331{
6332static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6333test_array [0] = 0
6334
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext
6340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_hi=$ac_mid; break
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365ac_lo=`expr $ac_mid + 1`
6366 if test $ac_lo -le $ac_mid; then
6367 ac_lo= ac_hi=
6368 break
6369 fi
6370 ac_mid=`expr 2 '*' $ac_mid + 1`
6371fi
6372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 done
6374else
6375 echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384#include <stddef.h>
6385int
6386main ()
6387{
6388static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6389test_array [0] = 0
6390
6391 ;
6392 return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_hi=-1 ac_mid=-1
6417 while :; do
6418 cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
6424#include <stddef.h>
6425int
6426main ()
6427{
6428static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6429test_array [0] = 0
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_lo=$ac_mid; break
6457else
6458 echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_hi=`expr '(' $ac_mid ')' - 1`
6462 if test $ac_mid -le $ac_hi; then
6463 ac_lo= ac_hi=
6464 break
6465 fi
6466 ac_mid=`expr 2 '*' $ac_mid`
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469 done
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474ac_lo= ac_hi=
6475fi
6476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477fi
6478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479# Binary search between lo and hi bounds.
6480while test "x$ac_lo" != "x$ac_hi"; do
6481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6482 cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488#include <stddef.h>
6489int
6490main ()
6491{
6492static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6493test_array [0] = 0
6494
6495 ;
6496 return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext
6500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6520 ac_hi=$ac_mid
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525ac_lo=`expr '(' $ac_mid ')' + 1`
6526fi
6527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6528done
6529case $ac_lo in
6530?*) res_hi=$ac_lo;;
6531'') result=? ;;
6532esac
6533else
6534 if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6536echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6537 { (exit 1); exit 1; }; }
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545#include <stddef.h>
6546long longval () { return ~(size_t)0 / 10; }
6547unsigned long ulongval () { return ~(size_t)0 / 10; }
6548#include <stdio.h>
6549#include <stdlib.h>
6550int
6551main ()
6552{
6553
6554 FILE *f = fopen ("conftest.val", "w");
6555 if (! f)
6556 exit (1);
6557 if ((~(size_t)0 / 10) < 0)
6558 {
6559 long i = longval ();
6560 if (i != (~(size_t)0 / 10))
6561 exit (1);
6562 fprintf (f, "%ld\n", i);
6563 }
6564 else
6565 {
6566 unsigned long i = ulongval ();
6567 if (i != (~(size_t)0 / 10))
6568 exit (1);
6569 fprintf (f, "%lu\n", i);
6570 }
6571 exit (ferror (f) || fclose (f) != 0);
6572
6573 ;
6574 return 0;
6575}
6576_ACEOF
6577rm -f conftest$ac_exeext
6578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 res_hi=`cat conftest.val`
6589else
6590 echo "$as_me: program exited with status $ac_status" >&5
6591echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594( exit $ac_status )
6595result=?
6596fi
6597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6598fi
6599fi
6600rm -f conftest.val
6601 if test "$cross_compiling" = yes; then
6602 # Depending upon the size, compute the lo and hi bounds.
6603cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
6609#include <stddef.h>
6610int
6611main ()
6612{
6613static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6614test_array [0] = 0
6615
6616 ;
6617 return 0;
6618}
6619_ACEOF
6620rm -f conftest.$ac_objext
6621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_lo=0 ac_mid=0
6642 while :; do
6643 cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
6649#include <stddef.h>
6650int
6651main ()
6652{
6653static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6654test_array [0] = 0
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_hi=$ac_mid; break
6682else
6683 echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686ac_lo=`expr $ac_mid + 1`
6687 if test $ac_lo -le $ac_mid; then
6688 ac_lo= ac_hi=
6689 break
6690 fi
6691 ac_mid=`expr 2 '*' $ac_mid + 1`
6692fi
6693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 done
6695else
6696 echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705#include <stddef.h>
6706int
6707main ()
6708{
6709static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6710test_array [0] = 0
6711
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext
6717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_hi=-1 ac_mid=-1
6738 while :; do
6739 cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h. */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h. */
6745#include <stddef.h>
6746int
6747main ()
6748{
6749static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6750test_array [0] = 0
6751
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext
6757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_lo=$ac_mid; break
6778else
6779 echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782ac_hi=`expr '(' $ac_mid ')' - 1`
6783 if test $ac_mid -le $ac_hi; then
6784 ac_lo= ac_hi=
6785 break
6786 fi
6787 ac_mid=`expr 2 '*' $ac_mid`
6788fi
6789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 done
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795ac_lo= ac_hi=
6796fi
6797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798fi
6799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800# Binary search between lo and hi bounds.
6801while test "x$ac_lo" != "x$ac_hi"; do
6802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6803 cat >conftest.$ac_ext <<_ACEOF
6804/* confdefs.h. */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h. */
6809#include <stddef.h>
6810int
6811main ()
6812{
6813static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6814test_array [0] = 0
6815
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820rm -f conftest.$ac_objext
6821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_hi=$ac_mid
6842else
6843 echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846ac_lo=`expr '(' $ac_mid ')' + 1`
6847fi
6848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849done
6850case $ac_lo in
6851?*) res_lo=$ac_lo;;
6852'') result=? ;;
6853esac
6854else
6855 if test "$cross_compiling" = yes; then
6856 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6857echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6858 { (exit 1); exit 1; }; }
6859else
6860 cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <stddef.h>
6867long longval () { return ~(size_t)0 % 10; }
6868unsigned long ulongval () { return ~(size_t)0 % 10; }
6869#include <stdio.h>
6870#include <stdlib.h>
6871int
6872main ()
6873{
6874
6875 FILE *f = fopen ("conftest.val", "w");
6876 if (! f)
6877 exit (1);
6878 if ((~(size_t)0 % 10) < 0)
6879 {
6880 long i = longval ();
6881 if (i != (~(size_t)0 % 10))
6882 exit (1);
6883 fprintf (f, "%ld\n", i);
6884 }
6885 else
6886 {
6887 unsigned long i = ulongval ();
6888 if (i != (~(size_t)0 % 10))
6889 exit (1);
6890 fprintf (f, "%lu\n", i);
6891 }
6892 exit (ferror (f) || fclose (f) != 0);
6893
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest$ac_exeext
6899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 res_lo=`cat conftest.val`
6910else
6911 echo "$as_me: program exited with status $ac_status" >&5
6912echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915( exit $ac_status )
6916result=?
6917fi
6918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6919fi
6920fi
6921rm -f conftest.val
6922 if test "$cross_compiling" = yes; then
6923 # Depending upon the size, compute the lo and hi bounds.
6924cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
6930#include <stddef.h>
6931int
6932main ()
6933{
6934static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6935test_array [0] = 0
6936
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_lo=0 ac_mid=0
6963 while :; do
6964 cat >conftest.$ac_ext <<_ACEOF
6965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970#include <stddef.h>
6971int
6972main ()
6973{
6974static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6975test_array [0] = 0
6976
6977 ;
6978 return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_hi=$ac_mid; break
7003else
7004 echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007ac_lo=`expr $ac_mid + 1`
7008 if test $ac_lo -le $ac_mid; then
7009 ac_lo= ac_hi=
7010 break
7011 fi
7012 ac_mid=`expr 2 '*' $ac_mid + 1`
7013fi
7014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 done
7016else
7017 echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h. */
7026#include <stddef.h>
7027int
7028main ()
7029{
7030static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7031test_array [0] = 0
7032
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext
7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_hi=-1 ac_mid=-1
7059 while :; do
7060 cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h. */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h. */
7066#include <stddef.h>
7067int
7068main ()
7069{
7070static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7071test_array [0] = 0
7072
7073 ;
7074 return 0;
7075}
7076_ACEOF
7077rm -f conftest.$ac_objext
7078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_lo=$ac_mid; break
7099else
7100 echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103ac_hi=`expr '(' $ac_mid ')' - 1`
7104 if test $ac_mid -le $ac_hi; then
7105 ac_lo= ac_hi=
7106 break
7107 fi
7108 ac_mid=`expr 2 '*' $ac_mid`
7109fi
7110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111 done
7112else
7113 echo "$as_me: failed program was:" >&5
7114sed 's/^/| /' conftest.$ac_ext >&5
7115
7116ac_lo= ac_hi=
7117fi
7118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119fi
7120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121# Binary search between lo and hi bounds.
7122while test "x$ac_lo" != "x$ac_hi"; do
7123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7124 cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h. */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h. */
7130#include <stddef.h>
7131int
7132main ()
7133{
7134static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7135test_array [0] = 0
7136
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_hi=$ac_mid
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167ac_lo=`expr '(' $ac_mid ')' + 1`
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170done
7171case $ac_lo in
7172?*) fits_in_uint=$ac_lo;;
7173'') result=? ;;
7174esac
7175else
7176 if test "$cross_compiling" = yes; then
7177 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7178echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7179 { (exit 1); exit 1; }; }
7180else
7181 cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h. */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h. */
7187#include <stddef.h>
7188long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7189unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7190#include <stdio.h>
7191#include <stdlib.h>
7192int
7193main ()
7194{
7195
7196 FILE *f = fopen ("conftest.val", "w");
7197 if (! f)
7198 exit (1);
7199 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7200 {
7201 long i = longval ();
7202 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7203 exit (1);
7204 fprintf (f, "%ld\n", i);
7205 }
7206 else
7207 {
7208 unsigned long i = ulongval ();
7209 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7210 exit (1);
7211 fprintf (f, "%lu\n", i);
7212 }
7213 exit (ferror (f) || fclose (f) != 0);
7214
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest$ac_exeext
7220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 fits_in_uint=`cat conftest.val`
7231else
7232 echo "$as_me: program exited with status $ac_status" >&5
7233echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236( exit $ac_status )
7237result=?
7238fi
7239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240fi
7241fi
7242rm -f conftest.val
7243 if test "$fits_in_uint" = 1; then
7244 cat >conftest.$ac_ext <<_ACEOF
7245/* confdefs.h. */
7246_ACEOF
7247cat confdefs.h >>conftest.$ac_ext
7248cat >>conftest.$ac_ext <<_ACEOF
7249/* end confdefs.h. */
7250#include <stddef.h>
7251 extern size_t foo;
7252 extern unsigned long foo;
7253
7254int
7255main ()
7256{
7257
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262rm -f conftest.$ac_objext
7263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 fits_in_uint=0
7284else
7285 echo "$as_me: failed program was:" >&5
7286sed 's/^/| /' conftest.$ac_ext >&5
7287
7288fi
7289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290 fi
7291 if test -z "$result"; then
7292 if test "$fits_in_uint" = 1; then
7293 result="$res_hi$res_lo"U
7294 else
7295 result="$res_hi$res_lo"UL
7296 fi
7297 else
7298 result='~(size_t)0'
7299 fi
7300 fi
7301 echo "$as_me:$LINENO: result: $result" >&5
7302echo "${ECHO_T}$result" >&6
7303 if test "$result" != yes; then
7304
7305cat >>confdefs.h <<_ACEOF
7306#define SIZE_MAX $result
7307_ACEOF
7308
7309 fi
7310
7311
7312
7313
7314for ac_header in stdint.h
7315do
7316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322fi
7323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325else
7326 # Is the header compilable?
7327echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336#include <$ac_header>
7337_ACEOF
7338rm -f conftest.$ac_objext
7339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 (eval $ac_try) 2>&5
7350 ac_status=$?
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; } &&
7353 { ac_try='test -s conftest.$ac_objext'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; }; then
7359 ac_header_compiler=yes
7360else
7361 echo "$as_me: failed program was:" >&5
7362sed 's/^/| /' conftest.$ac_ext >&5
7363
7364ac_header_compiler=no
7365fi
7366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7368echo "${ECHO_T}$ac_header_compiler" >&6
7369
7370# Is the header present?
7371echo "$as_me:$LINENO: checking $ac_header presence" >&5
7372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7373cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <$ac_header>
7380_ACEOF
7381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7383 ac_status=$?
7384 grep -v '^ *+' conftest.er1 >conftest.err
7385 rm -f conftest.er1
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } >/dev/null; then
7389 if test -s conftest.err; then
7390 ac_cpp_err=$ac_c_preproc_warn_flag
7391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7392 else
7393 ac_cpp_err=
7394 fi
7395else
7396 ac_cpp_err=yes
7397fi
7398if test -z "$ac_cpp_err"; then
7399 ac_header_preproc=yes
7400else
7401 echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 ac_header_preproc=no
7405fi
7406rm -f conftest.err conftest.$ac_ext
7407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7408echo "${ECHO_T}$ac_header_preproc" >&6
7409
7410# So? What about this header?
7411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7412 yes:no: )
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7417 ac_header_preproc=yes
7418 ;;
7419 no:yes:* )
7420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7432 (
7433 cat <<\_ASBOX
7434## ------------------------------------------ ##
7435## Report this to the AC_PACKAGE_NAME lists. ##
7436## ------------------------------------------ ##
7437_ASBOX
7438 ) |
7439 sed "s/^/$as_me: WARNING: /" >&2
7440 ;;
7441esac
7442echo "$as_me:$LINENO: checking for $ac_header" >&5
7443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 eval "$as_ac_Header=\$ac_header_preproc"
7448fi
7449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7451
7452fi
7453if test `eval echo '${'$as_ac_Header'}'` = yes; then
7454 cat >>confdefs.h <<_ACEOF
7455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456_ACEOF
7457
7458fi
7459
7460done
7461
7462
7463
7464 if test "X$prefix" = "XNONE"; then
7465 acl_final_prefix="$ac_default_prefix"
7466 else
7467 acl_final_prefix="$prefix"
7468 fi
7469 if test "X$exec_prefix" = "XNONE"; then
7470 acl_final_exec_prefix='${prefix}'
7471 else
7472 acl_final_exec_prefix="$exec_prefix"
7473 fi
7474 acl_save_prefix="$prefix"
7475 prefix="$acl_final_prefix"
7476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7477 prefix="$acl_save_prefix"
7478
7479
7480# Check whether --with-gnu-ld or --without-gnu-ld was given.
7481if test "${with_gnu_ld+set}" = set; then
7482 withval="$with_gnu_ld"
7483 test "$withval" = no || with_gnu_ld=yes
7484else
7485 with_gnu_ld=no
7486fi;
7487# Prepare PATH_SEPARATOR.
7488# The user is always right.
7489if test "${PATH_SEPARATOR+set}" != set; then
7490 echo "#! /bin/sh" >conf$$.sh
7491 echo "exit 0" >>conf$$.sh
7492 chmod +x conf$$.sh
7493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7494 PATH_SEPARATOR=';'
7495 else
7496 PATH_SEPARATOR=:
7497 fi
7498 rm -f conf$$.sh
7499fi
7500ac_prog=ld
7501if test "$GCC" = yes; then
7502 # Check if gcc -print-prog-name=ld gives a path.
7503 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7504echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7505 case $host in
7506 *-*-mingw*)
7507 # gcc leaves a trailing carriage return which upsets mingw
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7509 *)
7510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7511 esac
7512 case $ac_prog in
7513 # Accept absolute paths.
7514 [\\/]* | [A-Za-z]:[\\/]*)
7515 re_direlt='/[^/][^/]*/\.\./'
7516 # Canonicalize the path of ld
7517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7520 done
7521 test -z "$LD" && LD="$ac_prog"
7522 ;;
7523 "")
7524 # If it fails, then pretend we aren't using GCC.
7525 ac_prog=ld
7526 ;;
7527 *)
7528 # If it is relative, then search for the first ld in PATH.
7529 with_gnu_ld=unknown
7530 ;;
7531 esac
7532elif test "$with_gnu_ld" = yes; then
7533 echo "$as_me:$LINENO: checking for GNU ld" >&5
7534echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7535else
7536 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7537echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a64c9c13 7538fi
b0cacab0
TT
7539if test "${acl_cv_path_LD+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 if test -z "$LD"; then
7543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7544 for ac_dir in $PATH; do
7545 test -z "$ac_dir" && ac_dir=.
7546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7547 acl_cv_path_LD="$ac_dir/$ac_prog"
7548 # Check to see if the program is GNU ld. I'd rather use --version,
7549 # but apparently some GNU ld's only accept -v.
7550 # Break only if it was the GNU/non-GNU ld that we prefer.
7551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7552 *GNU* | *'with BFD'*)
7553 test "$with_gnu_ld" != no && break ;;
7554 *)
7555 test "$with_gnu_ld" != yes && break ;;
7556 esac
7557 fi
7558 done
7559 IFS="$ac_save_ifs"
7560else
7561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
a64c9c13 7562fi
a04eba3f 7563fi
93636bde 7564
b0cacab0
TT
7565LD="$acl_cv_path_LD"
7566if test -n "$LD"; then
7567 echo "$as_me:$LINENO: result: $LD" >&5
7568echo "${ECHO_T}$LD" >&6
a64c9c13 7569else
b0cacab0
TT
7570 echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6
a64c9c13 7572fi
b0cacab0
TT
7573test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7574echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7575 { (exit 1); exit 1; }; }
7576echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7577echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7578if test "${acl_cv_prog_gnu_ld+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else
7581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7582case `$LD -v 2>&1 </dev/null` in
7583*GNU* | *'with BFD'*)
7584 acl_cv_prog_gnu_ld=yes ;;
7585*)
7586 acl_cv_prog_gnu_ld=no ;;
7587esac
07a0db15 7588fi
b0cacab0
TT
7589echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7590echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7591with_gnu_ld=$acl_cv_prog_gnu_ld
07a0db15 7592
a64c9c13 7593
07a0db15 7594
b0cacab0
TT
7595 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7596echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7597if test "${acl_cv_rpath+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
a04eba3f 7600
b0cacab0
TT
7601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7603 . ./conftest.sh
7604 rm -f ./conftest.sh
7605 acl_cv_rpath=done
a04eba3f 7606
07a0db15 7607fi
b0cacab0
TT
7608echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7609echo "${ECHO_T}$acl_cv_rpath" >&6
7610 wl="$acl_cv_wl"
7611 libext="$acl_cv_libext"
7612 shlibext="$acl_cv_shlibext"
7613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7615 hardcode_direct="$acl_cv_hardcode_direct"
7616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7617 # Check whether --enable-rpath or --disable-rpath was given.
7618if test "${enable_rpath+set}" = set; then
7619 enableval="$enable_rpath"
7620 :
7621else
7622 enable_rpath=yes
7623fi;
7624
7625
93636bde 7626
a64c9c13 7627
a64c9c13 7628
93636bde 7629
93636bde 7630
93636bde 7631 use_additional=yes
b0cacab0 7632
07a0db15
TT
7633 acl_save_prefix="$prefix"
7634 prefix="$acl_final_prefix"
93636bde
TT
7635 acl_save_exec_prefix="$exec_prefix"
7636 exec_prefix="$acl_final_exec_prefix"
b0cacab0 7637
93636bde
TT
7638 eval additional_includedir=\"$includedir\"
7639 eval additional_libdir=\"$libdir\"
b0cacab0 7640
93636bde
TT
7641 exec_prefix="$acl_save_exec_prefix"
7642 prefix="$acl_save_prefix"
7643
b0cacab0
TT
7644
7645# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
93636bde
TT
7646if test "${with_libiconv_prefix+set}" = set; then
7647 withval="$with_libiconv_prefix"
b0cacab0 7648
93636bde
TT
7649 if test "X$withval" = "Xno"; then
7650 use_additional=no
7651 else
7652 if test "X$withval" = "X"; then
b0cacab0 7653
93636bde
TT
7654 acl_save_prefix="$prefix"
7655 prefix="$acl_final_prefix"
7656 acl_save_exec_prefix="$exec_prefix"
7657 exec_prefix="$acl_final_exec_prefix"
b0cacab0 7658
93636bde
TT
7659 eval additional_includedir=\"$includedir\"
7660 eval additional_libdir=\"$libdir\"
b0cacab0 7661
93636bde 7662 exec_prefix="$acl_save_exec_prefix"
07a0db15
TT
7663 prefix="$acl_save_prefix"
7664
07a0db15 7665 else
93636bde
TT
7666 additional_includedir="$withval/include"
7667 additional_libdir="$withval/lib"
07a0db15
TT
7668 fi
7669 fi
07a0db15 7670
b0cacab0 7671fi;
a04eba3f
TT
7672 LIBICONV=
7673 LTLIBICONV=
7674 INCICONV=
7675 rpathdirs=
7676 ltrpathdirs=
7677 names_already_handled=
7678 names_next_round='iconv '
7679 while test -n "$names_next_round"; do
7680 names_this_round="$names_next_round"
7681 names_next_round=
7682 for name in $names_this_round; do
7683 already_handled=
7684 for n in $names_already_handled; do
7685 if test "$n" = "$name"; then
7686 already_handled=yes
7687 break
7688 fi
7689 done
7690 if test -z "$already_handled"; then
7691 names_already_handled="$names_already_handled $name"
7692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7693 eval value=\"\$HAVE_LIB$uppername\"
7694 if test -n "$value"; then
7695 if test "$value" = yes; then
7696 eval value=\"\$LIB$uppername\"
7697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7698 eval value=\"\$LTLIB$uppername\"
7699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7700 else
7701 :
7702 fi
7703 else
7704 found_dir=
7705 found_la=
7706 found_so=
7707 found_a=
7708 if test $use_additional = yes; then
7709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7710 found_dir="$additional_libdir"
7711 found_so="$additional_libdir/lib$name.$shlibext"
7712 if test -f "$additional_libdir/lib$name.la"; then
7713 found_la="$additional_libdir/lib$name.la"
7714 fi
7715 else
7716 if test -f "$additional_libdir/lib$name.$libext"; then
7717 found_dir="$additional_libdir"
7718 found_a="$additional_libdir/lib$name.$libext"
7719 if test -f "$additional_libdir/lib$name.la"; then
7720 found_la="$additional_libdir/lib$name.la"
7721 fi
7722 fi
7723 fi
7724 fi
7725 if test "X$found_dir" = "X"; then
7726 for x in $LDFLAGS $LTLIBICONV; do
b0cacab0 7727
a04eba3f
TT
7728 acl_save_prefix="$prefix"
7729 prefix="$acl_final_prefix"
7730 acl_save_exec_prefix="$exec_prefix"
7731 exec_prefix="$acl_final_exec_prefix"
7732 eval x=\"$x\"
7733 exec_prefix="$acl_save_exec_prefix"
7734 prefix="$acl_save_prefix"
7735
7736 case "$x" in
7737 -L*)
7738 dir=`echo "X$x" | sed -e 's/^X-L//'`
7739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7740 found_dir="$dir"
7741 found_so="$dir/lib$name.$shlibext"
7742 if test -f "$dir/lib$name.la"; then
7743 found_la="$dir/lib$name.la"
7744 fi
7745 else
7746 if test -f "$dir/lib$name.$libext"; then
7747 found_dir="$dir"
7748 found_a="$dir/lib$name.$libext"
7749 if test -f "$dir/lib$name.la"; then
7750 found_la="$dir/lib$name.la"
7751 fi
7752 fi
7753 fi
7754 ;;
7755 esac
7756 if test "X$found_dir" != "X"; then
7757 break
7758 fi
7759 done
7760 fi
7761 if test "X$found_dir" != "X"; then
7762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7763 if test "X$found_so" != "X"; then
7764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7766 else
7767 haveit=
7768 for x in $ltrpathdirs; do
7769 if test "X$x" = "X$found_dir"; then
7770 haveit=yes
7771 break
7772 fi
7773 done
7774 if test -z "$haveit"; then
7775 ltrpathdirs="$ltrpathdirs $found_dir"
7776 fi
7777 if test "$hardcode_direct" = yes; then
7778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7779 else
7780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7782 haveit=
7783 for x in $rpathdirs; do
7784 if test "X$x" = "X$found_dir"; then
7785 haveit=yes
7786 break
7787 fi
7788 done
7789 if test -z "$haveit"; then
7790 rpathdirs="$rpathdirs $found_dir"
7791 fi
7792 else
7793 haveit=
7794 for x in $LDFLAGS $LIBICONV; do
b0cacab0 7795
a04eba3f
TT
7796 acl_save_prefix="$prefix"
7797 prefix="$acl_final_prefix"
7798 acl_save_exec_prefix="$exec_prefix"
7799 exec_prefix="$acl_final_exec_prefix"
7800 eval x=\"$x\"
7801 exec_prefix="$acl_save_exec_prefix"
7802 prefix="$acl_save_prefix"
7803
7804 if test "X$x" = "X-L$found_dir"; then
7805 haveit=yes
7806 break
7807 fi
7808 done
7809 if test -z "$haveit"; then
7810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7811 fi
7812 if test "$hardcode_minus_L" != no; then
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7814 else
7815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7816 fi
7817 fi
7818 fi
7819 fi
7820 else
7821 if test "X$found_a" != "X"; then
7822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7823 else
7824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7825 fi
7826 fi
7827 additional_includedir=
7828 case "$found_dir" in
7829 */lib | */lib/)
7830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7831 additional_includedir="$basedir/include"
7832 ;;
7833 esac
7834 if test "X$additional_includedir" != "X"; then
7835 if test "X$additional_includedir" != "X/usr/include"; then
7836 haveit=
7837 if test "X$additional_includedir" = "X/usr/local/include"; then
7838 if test -n "$GCC"; then
7839 case $host_os in
7840 linux*) haveit=yes;;
7841 esac
7842 fi
7843 fi
7844 if test -z "$haveit"; then
7845 for x in $CPPFLAGS $INCICONV; do
b0cacab0 7846
a04eba3f
TT
7847 acl_save_prefix="$prefix"
7848 prefix="$acl_final_prefix"
7849 acl_save_exec_prefix="$exec_prefix"
7850 exec_prefix="$acl_final_exec_prefix"
7851 eval x=\"$x\"
7852 exec_prefix="$acl_save_exec_prefix"
7853 prefix="$acl_save_prefix"
7854
7855 if test "X$x" = "X-I$additional_includedir"; then
7856 haveit=yes
7857 break
7858 fi
7859 done
7860 if test -z "$haveit"; then
7861 if test -d "$additional_includedir"; then
7862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7863 fi
7864 fi
7865 fi
7866 fi
7867 fi
7868 if test -n "$found_la"; then
7869 save_libdir="$libdir"
7870 case "$found_la" in
7871 */* | *\\*) . "$found_la" ;;
7872 *) . "./$found_la" ;;
7873 esac
7874 libdir="$save_libdir"
7875 for dep in $dependency_libs; do
7876 case "$dep" in
7877 -L*)
7878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7879 if test "X$additional_libdir" != "X/usr/lib"; then
7880 haveit=
7881 if test "X$additional_libdir" = "X/usr/local/lib"; then
7882 if test -n "$GCC"; then
7883 case $host_os in
7884 linux*) haveit=yes;;
7885 esac
7886 fi
7887 fi
7888 if test -z "$haveit"; then
7889 haveit=
7890 for x in $LDFLAGS $LIBICONV; do
b0cacab0 7891
a04eba3f
TT
7892 acl_save_prefix="$prefix"
7893 prefix="$acl_final_prefix"
7894 acl_save_exec_prefix="$exec_prefix"
7895 exec_prefix="$acl_final_exec_prefix"
7896 eval x=\"$x\"
7897 exec_prefix="$acl_save_exec_prefix"
7898 prefix="$acl_save_prefix"
7899
7900 if test "X$x" = "X-L$additional_libdir"; then
7901 haveit=yes
7902 break
7903 fi
7904 done
7905 if test -z "$haveit"; then
7906 if test -d "$additional_libdir"; then
7907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7908 fi
7909 fi
7910 haveit=
7911 for x in $LDFLAGS $LTLIBICONV; do
b0cacab0 7912
a04eba3f
TT
7913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
7917 eval x=\"$x\"
7918 exec_prefix="$acl_save_exec_prefix"
7919 prefix="$acl_save_prefix"
7920
7921 if test "X$x" = "X-L$additional_libdir"; then
7922 haveit=yes
7923 break
7924 fi
7925 done
7926 if test -z "$haveit"; then
7927 if test -d "$additional_libdir"; then
7928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7929 fi
7930 fi
7931 fi
7932 fi
7933 ;;
7934 -R*)
7935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7936 if test "$enable_rpath" != no; then
7937 haveit=
7938 for x in $rpathdirs; do
7939 if test "X$x" = "X$dir"; then
7940 haveit=yes
7941 break
7942 fi
7943 done
7944 if test -z "$haveit"; then
7945 rpathdirs="$rpathdirs $dir"
7946 fi
7947 haveit=
7948 for x in $ltrpathdirs; do
7949 if test "X$x" = "X$dir"; then
7950 haveit=yes
7951 break
7952 fi
7953 done
7954 if test -z "$haveit"; then
7955 ltrpathdirs="$ltrpathdirs $dir"
7956 fi
7957 fi
7958 ;;
7959 -l*)
7960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7961 ;;
7962 *.la)
7963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7964 ;;
7965 *)
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7968 ;;
7969 esac
7970 done
7971 fi
7972 else
7973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7975 fi
7976 fi
7977 fi
7978 done
7979 done
7980 if test "X$rpathdirs" != "X"; then
7981 if test -n "$hardcode_libdir_separator"; then
7982 alldirs=
7983 for found_dir in $rpathdirs; do
7984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7985 done
7986 acl_save_libdir="$libdir"
7987 libdir="$alldirs"
7988 eval flag=\"$hardcode_libdir_flag_spec\"
7989 libdir="$acl_save_libdir"
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7991 else
7992 for found_dir in $rpathdirs; do
7993 acl_save_libdir="$libdir"
7994 libdir="$found_dir"
7995 eval flag=\"$hardcode_libdir_flag_spec\"
7996 libdir="$acl_save_libdir"
7997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7998 done
7999 fi
8000 fi
8001 if test "X$ltrpathdirs" != "X"; then
8002 for found_dir in $ltrpathdirs; do
8003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8004 done
8005 fi
a64c9c13 8006
93636bde
TT
8007
8008
93636bde 8009
b0cacab0
TT
8010
8011
8012
8013
8014 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8015echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8016if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019 cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025$ac_includes_default
8026int
8027main ()
8028{
8029if ((ptrdiff_t *) 0)
8030 return 0;
8031if (sizeof (ptrdiff_t))
8032 return 0;
8033 ;
8034 return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext
8038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_type_ptrdiff_t=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063ac_cv_type_ptrdiff_t=no
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066fi
8067echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8068echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8069if test $ac_cv_type_ptrdiff_t = yes; then
8070 :
8071else
8072
8073cat >>confdefs.h <<\_ACEOF
8074#define ptrdiff_t long
8075_ACEOF
8076
8077
8078fi
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8091stdlib.h string.h unistd.h sys/param.h
8092do
8093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo "$as_me:$LINENO: checking for $ac_header" >&5
8096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099fi
8100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102else
8103 # Is the header compilable?
8104echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112$ac_includes_default
8113#include <$ac_header>
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141ac_header_compiler=no
8142fi
8143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147# Is the header present?
8148echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156#include <$ac_header>
8157_ACEOF
8158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8169 else
8170 ac_cpp_err=
8171 fi
8172else
8173 ac_cpp_err=yes
8174fi
8175if test -z "$ac_cpp_err"; then
8176 ac_header_preproc=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_header_preproc=no
8182fi
8183rm -f conftest.err conftest.$ac_ext
8184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185echo "${ECHO_T}$ac_header_preproc" >&6
8186
8187# So? What about this header?
8188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189 yes:no: )
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8195 ;;
8196 no:yes:* )
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8209 (
8210 cat <<\_ASBOX
8211## ------------------------------------------ ##
8212## Report this to the AC_PACKAGE_NAME lists. ##
8213## ------------------------------------------ ##
8214_ASBOX
8215 ) |
8216 sed "s/^/$as_me: WARNING: /" >&2
8217 ;;
8218esac
8219echo "$as_me:$LINENO: checking for $ac_header" >&5
8220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223else
8224 eval "$as_ac_Header=\$ac_header_preproc"
8225fi
8226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228
8229fi
8230if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233_ACEOF
8234
8235fi
8236
8237done
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8263mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8265__fsetlocking
8266do
8267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268echo "$as_me:$LINENO: checking for $ac_func" >&5
8269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273 cat >conftest.$ac_ext <<_ACEOF
8274/* confdefs.h. */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h. */
8279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281#define $ac_func innocuous_$ac_func
8282
8283/* System header to define __stub macros and hopefully few prototypes,
8284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8287
8288#ifdef __STDC__
8289# include <limits.h>
8290#else
8291# include <assert.h>
8292#endif
8293
8294#undef $ac_func
8295
8296/* Override any gcc2 internal prototype to avoid an error. */
8297#ifdef __cplusplus
8298extern "C"
8299{
8300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char $ac_func ();
8304/* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308choke me
8309#else
8310char (*f) () = $ac_func;
8311#endif
8312#ifdef __cplusplus
8313}
8314#endif
8315
8316int
8317main ()
8318{
8319return f != $ac_func;
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext conftest$ac_exeext
8325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "$as_ac_var=yes"
8346else
8347 echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350eval "$as_ac_var=no"
8351fi
8352rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354fi
8355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357if test `eval echo '${'$as_ac_var'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360_ACEOF
8361
8362fi
8363done
8364
8365
8366
8367 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8368echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8369if test "${ac_cv_have_decl__snprintf+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372 cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
8378#include <stdio.h>
8379int
8380main ()
8381{
8382
8383#ifndef _snprintf
8384 char *p = (char *) _snprintf;
8385#endif
8386
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext
8392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 (eval $ac_try) 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_cv_have_decl__snprintf=yes
8413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417ac_cv_have_decl__snprintf=no
8418fi
8419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8422echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8423 if test $ac_cv_have_decl__snprintf = yes; then
8424 gt_value=1
8425 else
8426 gt_value=0
8427 fi
8428
8429cat >>confdefs.h <<_ACEOF
8430#define HAVE_DECL__SNPRINTF $gt_value
8431_ACEOF
8432
8433
8434
8435 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8436echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8437if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440 cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446#include <stdio.h>
8447int
8448main ()
8449{
8450
8451#ifndef _snwprintf
8452 char *p = (char *) _snwprintf;
8453#endif
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext
8460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461 (eval $ac_compile) 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_have_decl__snwprintf=yes
8481else
8482 echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485ac_cv_have_decl__snwprintf=no
8486fi
8487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8490echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8491 if test $ac_cv_have_decl__snwprintf = yes; then
8492 gt_value=1
8493 else
8494 gt_value=0
8495 fi
8496
8497cat >>confdefs.h <<_ACEOF
8498#define HAVE_DECL__SNWPRINTF $gt_value
8499_ACEOF
8500
8501
8502
8503
8504 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8505echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8506if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509 cat >conftest.$ac_ext <<_ACEOF
8510/* confdefs.h. */
8511_ACEOF
8512cat confdefs.h >>conftest.$ac_ext
8513cat >>conftest.$ac_ext <<_ACEOF
8514/* end confdefs.h. */
8515#include <stdio.h>
8516int
8517main ()
8518{
8519
8520#ifndef feof_unlocked
8521 char *p = (char *) feof_unlocked;
8522#endif
8523
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext
8529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_have_decl_feof_unlocked=yes
8550else
8551 echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554ac_cv_have_decl_feof_unlocked=no
8555fi
8556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557fi
8558echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8559echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8560 if test $ac_cv_have_decl_feof_unlocked = yes; then
8561 gt_value=1
8562 else
8563 gt_value=0
8564 fi
8565
8566cat >>confdefs.h <<_ACEOF
8567#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8568_ACEOF
8569
8570
8571
8572 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8573echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8574if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8576else
b0cacab0
TT
8577 cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583#include <stdio.h>
8584int
8585main ()
8586{
93636bde 8587
b0cacab0
TT
8588#ifndef fgets_unlocked
8589 char *p = (char *) fgets_unlocked;
8590#endif
93636bde 8591
b0cacab0
TT
8592 ;
8593 return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext
8597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598 (eval $ac_compile) 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_have_decl_fgets_unlocked=yes
8618else
8619 echo "$as_me: failed program was:" >&5
8620sed 's/^/| /' conftest.$ac_ext >&5
8621
8622ac_cv_have_decl_fgets_unlocked=no
8623fi
8624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8627echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8628 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8629 gt_value=1
8630 else
8631 gt_value=0
8632 fi
93636bde 8633
b0cacab0
TT
8634cat >>confdefs.h <<_ACEOF
8635#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8636_ACEOF
93636bde 8637
b0cacab0
TT
8638
8639
8640 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8641echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8642if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 8644else
b0cacab0
TT
8645 cat >conftest.$ac_ext <<_ACEOF
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
8651#include <stdio.h>
8652int
8653main ()
8654{
93636bde 8655
b0cacab0
TT
8656#ifndef getc_unlocked
8657 char *p = (char *) getc_unlocked;
8658#endif
93636bde 8659
b0cacab0
TT
8660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext
8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_have_decl_getc_unlocked=yes
8686else
8687 echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690ac_cv_have_decl_getc_unlocked=no
8691fi
8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693fi
8694echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8695echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8696 if test $ac_cv_have_decl_getc_unlocked = yes; then
8697 gt_value=1
8698 else
8699 gt_value=0
93636bde
TT
8700 fi
8701
b0cacab0
TT
8702cat >>confdefs.h <<_ACEOF
8703#define HAVE_DECL_GETC_UNLOCKED $gt_value
8704_ACEOF
93636bde 8705
93636bde
TT
8706
8707
b0cacab0
TT
8708 case $gt_cv_func_printf_posix in
8709 *yes) HAVE_POSIX_PRINTF=1 ;;
8710 *) HAVE_POSIX_PRINTF=0 ;;
8711 esac
a04eba3f 8712
b0cacab0
TT
8713 if test "$ac_cv_func_asprintf" = yes; then
8714 HAVE_ASPRINTF=1
8715 else
8716 HAVE_ASPRINTF=0
8717 fi
8718
8719 if test "$ac_cv_func_snprintf" = yes; then
8720 HAVE_SNPRINTF=1
8721 else
8722 HAVE_SNPRINTF=0
8723 fi
8724
8725 if test "$ac_cv_func_wprintf" = yes; then
8726 HAVE_WPRINTF=1
8727 else
8728 HAVE_WPRINTF=0
8729 fi
93636bde 8730
a64c9c13 8731
a64c9c13 8732
a64c9c13 8733
a64c9c13 8734
07a0db15 8735
93636bde
TT
8736
8737 am_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8738
a04eba3f
TT
8739 for element in $INCICONV; do
8740 haveit=
8741 for x in $CPPFLAGS; do
b0cacab0 8742
a04eba3f
TT
8743 acl_save_prefix="$prefix"
8744 prefix="$acl_final_prefix"
8745 acl_save_exec_prefix="$exec_prefix"
8746 exec_prefix="$acl_final_exec_prefix"
8747 eval x=\"$x\"
8748 exec_prefix="$acl_save_exec_prefix"
8749 prefix="$acl_save_prefix"
8750
8751 if test "X$x" = "X$element"; then
8752 haveit=yes
8753 break
8754 fi
8755 done
8756 if test -z "$haveit"; then
8757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
a64c9c13
TT
8758 fi
8759 done
a64c9c13 8760
07a0db15 8761
b0cacab0
TT
8762 echo "$as_me:$LINENO: checking for iconv" >&5
8763echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8764if test "${am_cv_func_iconv+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8766else
b0cacab0 8767
a04eba3f
TT
8768 am_cv_func_iconv="no, consider installing GNU libiconv"
8769 am_cv_lib_iconv=no
b0cacab0
TT
8770 cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h. */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h. */
a04eba3f
TT
8776#include <stdlib.h>
8777#include <iconv.h>
b0cacab0
TT
8778int
8779main ()
8780{
a04eba3f
TT
8781iconv_t cd = iconv_open("","");
8782 iconv(cd,NULL,NULL,NULL,NULL);
8783 iconv_close(cd);
b0cacab0
TT
8784 ;
8785 return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext conftest$ac_exeext
8789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
a04eba3f 8809 am_cv_func_iconv=yes
a64c9c13 8810else
b0cacab0
TT
8811 echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
a64c9c13 8814fi
b0cacab0
TT
8815rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
8817 if test "$am_cv_func_iconv" != yes; then
8818 am_save_LIBS="$LIBS"
8819 LIBS="$LIBS $LIBICONV"
b0cacab0
TT
8820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
a04eba3f
TT
8826#include <stdlib.h>
8827#include <iconv.h>
b0cacab0
TT
8828int
8829main ()
8830{
a04eba3f
TT
8831iconv_t cd = iconv_open("","");
8832 iconv(cd,NULL,NULL,NULL,NULL);
8833 iconv_close(cd);
b0cacab0
TT
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
a04eba3f
TT
8859 am_cv_lib_iconv=yes
8860 am_cv_func_iconv=yes
a64c9c13 8861else
b0cacab0
TT
8862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
a64c9c13 8865fi
b0cacab0
TT
8866rm -f conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
8868 LIBS="$am_save_LIBS"
8869 fi
07a0db15 8870
b0cacab0
TT
8871fi
8872echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8873echo "${ECHO_T}$am_cv_func_iconv" >&6
93636bde 8874 if test "$am_cv_func_iconv" = yes; then
b0cacab0
TT
8875
8876cat >>confdefs.h <<\_ACEOF
a04eba3f 8877#define HAVE_ICONV 1
b0cacab0 8878_ACEOF
a64c9c13 8879
a04eba3f
TT
8880 fi
8881 if test "$am_cv_lib_iconv" = yes; then
b0cacab0
TT
8882 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8883echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8884 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8885echo "${ECHO_T}$LIBICONV" >&6
a04eba3f
TT
8886 else
8887 CPPFLAGS="$am_save_CPPFLAGS"
8888 LIBICONV=
8889 LTLIBICONV=
8890 fi
b0cacab0
TT
8891
8892
a64c9c13 8893
a04eba3f 8894 if test "$am_cv_func_iconv" = yes; then
b0cacab0
TT
8895 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8896echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8897 if test "${am_cv_proto_iconv+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 8899else
b0cacab0
TT
8900
8901 cat >conftest.$ac_ext <<_ACEOF
8902/* confdefs.h. */
8903_ACEOF
8904cat confdefs.h >>conftest.$ac_ext
8905cat >>conftest.$ac_ext <<_ACEOF
8906/* end confdefs.h. */
a64c9c13 8907
a04eba3f
TT
8908#include <stdlib.h>
8909#include <iconv.h>
8910extern
8911#ifdef __cplusplus
8912"C"
8913#endif
8914#if defined(__STDC__) || defined(__cplusplus)
8915size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8916#else
8917size_t iconv();
8918#endif
8919
b0cacab0
TT
8920int
8921main ()
8922{
a04eba3f 8923
b0cacab0
TT
8924 ;
8925 return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext
8929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 (eval $ac_try) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
a04eba3f 8949 am_cv_proto_iconv_arg1=""
a64c9c13 8950else
b0cacab0
TT
8951 echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954am_cv_proto_iconv_arg1="const"
a64c9c13 8955fi
b0cacab0 8956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a04eba3f 8957 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 8958fi
a64c9c13 8959
a04eba3f 8960 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b0cacab0
TT
8961 echo "$as_me:$LINENO: result: ${ac_t:-
8962 }$am_cv_proto_iconv" >&5
8963echo "${ECHO_T}${ac_t:-
8964 }$am_cv_proto_iconv" >&6
8965
8966cat >>confdefs.h <<_ACEOF
a04eba3f 8967#define ICONV_CONST $am_cv_proto_iconv_arg1
b0cacab0 8968_ACEOF
a64c9c13 8969
a04eba3f 8970 fi
a64c9c13 8971
b0cacab0
TT
8972
8973 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8974echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8975if test "${am_cv_langinfo_codeset+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 8977else
b0cacab0
TT
8978 cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
a04eba3f 8984#include <langinfo.h>
b0cacab0
TT
8985int
8986main ()
8987{
a04eba3f 8988char* cs = nl_langinfo(CODESET);
b0cacab0
TT
8989 ;
8990 return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 (eval $ac_try) 2>&5
9011 ac_status=$?
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
a04eba3f 9014 am_cv_langinfo_codeset=yes
a64c9c13 9015else
b0cacab0
TT
9016 echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019am_cv_langinfo_codeset=no
07a0db15 9020fi
b0cacab0
TT
9021rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
07a0db15 9023
b0cacab0
TT
9024fi
9025echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9026echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
93636bde 9027 if test $am_cv_langinfo_codeset = yes; then
b0cacab0
TT
9028
9029cat >>confdefs.h <<\_ACEOF
a04eba3f 9030#define HAVE_LANGINFO_CODESET 1
b0cacab0 9031_ACEOF
a64c9c13 9032
a04eba3f 9033 fi
a64c9c13 9034
a04eba3f 9035 if test $ac_cv_header_locale_h = yes; then
b0cacab0
TT
9036
9037 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9038echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9039if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9041else
9042 cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
a04eba3f 9048#include <locale.h>
b0cacab0
TT
9049int
9050main ()
9051{
a04eba3f 9052return LC_MESSAGES
b0cacab0
TT
9053 ;
9054 return 0;
9055}
9056_ACEOF
9057rm -f conftest.$ac_objext conftest$ac_exeext
9058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>conftest.er1
9060 ac_status=$?
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
a04eba3f 9078 am_cv_val_LC_MESSAGES=yes
a64c9c13 9079else
b0cacab0
TT
9080 echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083am_cv_val_LC_MESSAGES=no
a64c9c13 9084fi
b0cacab0
TT
9085rm -f conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
a64c9c13 9087fi
b0cacab0
TT
9088echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9089echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
93636bde 9090 if test $am_cv_val_LC_MESSAGES = yes; then
b0cacab0
TT
9091
9092cat >>confdefs.h <<\_ACEOF
a04eba3f 9093#define HAVE_LC_MESSAGES 1
b0cacab0 9094_ACEOF
a64c9c13 9095
a04eba3f 9096 fi
a64c9c13 9097
a04eba3f 9098 fi
a64c9c13 9099
a04eba3f
TT
9100 for ac_prog in bison
9101do
b0cacab0 9102 # Extract the first word of "$ac_prog", so it can be a program name with args.
a04eba3f 9103set dummy $ac_prog; ac_word=$2
b0cacab0
TT
9104echo "$as_me:$LINENO: checking for $ac_word" >&5
9105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106if test "${ac_cv_prog_INTLBISON+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
a64c9c13 9108else
a04eba3f
TT
9109 if test -n "$INTLBISON"; then
9110 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
f8bd9807 9111else
b0cacab0
TT
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_INTLBISON="$ac_prog"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123done
9124done
9125
f8bd9807 9126fi
a04eba3f 9127fi
b0cacab0 9128INTLBISON=$ac_cv_prog_INTLBISON
a04eba3f 9129if test -n "$INTLBISON"; then
b0cacab0
TT
9130 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9131echo "${ECHO_T}$INTLBISON" >&6
f8bd9807 9132else
b0cacab0
TT
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
f8bd9807 9135fi
f8bd9807 9136
b0cacab0 9137 test -n "$INTLBISON" && break
a04eba3f
TT
9138done
9139
9140 if test -z "$INTLBISON"; then
9141 ac_verc_fail=yes
9142 else
b0cacab0
TT
9143 echo "$as_me:$LINENO: checking version of bison" >&5
9144echo $ECHO_N "checking version of bison... $ECHO_C" >&6
a04eba3f
TT
9145 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9146 case $ac_prog_version in
9147 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9148 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9149 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9150 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9151 esac
b0cacab0
TT
9152 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9153echo "${ECHO_T}$ac_prog_version" >&6
a04eba3f
TT
9154 fi
9155 if test $ac_verc_fail = yes; then
9156 INTLBISON=:
9157 fi
a64c9c13 9158
93636bde 9159
93636bde 9160
93636bde 9161
93636bde 9162
93636bde 9163
b0cacab0
TT
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9175echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
a04eba3f
TT
9176 # Check whether --enable-nls or --disable-nls was given.
9177if test "${enable_nls+set}" = set; then
9178 enableval="$enable_nls"
9179 USE_NLS=$enableval
9180else
9181 USE_NLS=yes
b0cacab0
TT
9182fi;
9183 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9184echo "${ECHO_T}$USE_NLS" >&6
9185
9186
a64c9c13 9187
93636bde 9188
a04eba3f
TT
9189 BUILD_INCLUDED_LIBINTL=no
9190 USE_INCLUDED_LIBINTL=no
b0cacab0 9191
a04eba3f
TT
9192 LIBINTL=
9193 LTLIBINTL=
9194 POSUB=
a64c9c13 9195
a04eba3f
TT
9196 if test "$USE_NLS" = "yes"; then
9197 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
9198
9199 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9200echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9201
9202# Check whether --with-included-gettext or --without-included-gettext was given.
a04eba3f
TT
9203if test "${with_included_gettext+set}" = set; then
9204 withval="$with_included_gettext"
9205 nls_cv_force_use_gnu_gettext=$withval
9206else
9207 nls_cv_force_use_gnu_gettext=no
b0cacab0
TT
9208fi;
9209 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9210echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
a04eba3f
TT
9211
9212 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
9214
9215
9216
9217
9218
9219
9220 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9221echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9222if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
a04eba3f
TT
9231#include <libintl.h>
9232extern int _nl_msg_cat_cntr;
9233extern int *_nl_domain_bindings;
b0cacab0
TT
9234int
9235main ()
9236{
a04eba3f
TT
9237bindtextdomain ("", "");
9238return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
b0cacab0
TT
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 (eval $ac_try) 2>&5
9255 ac_status=$?
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
a04eba3f 9264 gt_cv_func_gnugettext1_libc=yes
f8bd9807 9265else
b0cacab0
TT
9266 echo "$as_me: failed program was:" >&5
9267sed 's/^/| /' conftest.$ac_ext >&5
9268
9269gt_cv_func_gnugettext1_libc=no
f8bd9807 9270fi
b0cacab0
TT
9271rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
f8bd9807 9273fi
b0cacab0
TT
9274echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9275echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
07a0db15 9276
93636bde 9277 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
b0cacab0
TT
9278
9279
9280
a04eba3f 9281 use_additional=yes
b0cacab0 9282
a04eba3f
TT
9283 acl_save_prefix="$prefix"
9284 prefix="$acl_final_prefix"
9285 acl_save_exec_prefix="$exec_prefix"
9286 exec_prefix="$acl_final_exec_prefix"
b0cacab0 9287
a04eba3f
TT
9288 eval additional_includedir=\"$includedir\"
9289 eval additional_libdir=\"$libdir\"
b0cacab0 9290
a04eba3f
TT
9291 exec_prefix="$acl_save_exec_prefix"
9292 prefix="$acl_save_prefix"
9293
b0cacab0
TT
9294
9295# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
a04eba3f
TT
9296if test "${with_libintl_prefix+set}" = set; then
9297 withval="$with_libintl_prefix"
b0cacab0 9298
a04eba3f
TT
9299 if test "X$withval" = "Xno"; then
9300 use_additional=no
9301 else
9302 if test "X$withval" = "X"; then
b0cacab0 9303
a04eba3f
TT
9304 acl_save_prefix="$prefix"
9305 prefix="$acl_final_prefix"
9306 acl_save_exec_prefix="$exec_prefix"
9307 exec_prefix="$acl_final_exec_prefix"
b0cacab0 9308
a04eba3f
TT
9309 eval additional_includedir=\"$includedir\"
9310 eval additional_libdir=\"$libdir\"
b0cacab0 9311
a04eba3f
TT
9312 exec_prefix="$acl_save_exec_prefix"
9313 prefix="$acl_save_prefix"
9314
9315 else
9316 additional_includedir="$withval/include"
9317 additional_libdir="$withval/lib"
9318 fi
9319 fi
9320
b0cacab0 9321fi;
a04eba3f
TT
9322 LIBINTL=
9323 LTLIBINTL=
9324 INCINTL=
9325 rpathdirs=
9326 ltrpathdirs=
9327 names_already_handled=
9328 names_next_round='intl '
9329 while test -n "$names_next_round"; do
9330 names_this_round="$names_next_round"
9331 names_next_round=
9332 for name in $names_this_round; do
9333 already_handled=
9334 for n in $names_already_handled; do
9335 if test "$n" = "$name"; then
9336 already_handled=yes
9337 break
9338 fi
9339 done
9340 if test -z "$already_handled"; then
9341 names_already_handled="$names_already_handled $name"
9342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9343 eval value=\"\$HAVE_LIB$uppername\"
9344 if test -n "$value"; then
9345 if test "$value" = yes; then
9346 eval value=\"\$LIB$uppername\"
9347 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9348 eval value=\"\$LTLIB$uppername\"
9349 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9350 else
9351 :
9352 fi
9353 else
9354 found_dir=
9355 found_la=
9356 found_so=
9357 found_a=
9358 if test $use_additional = yes; then
9359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9360 found_dir="$additional_libdir"
9361 found_so="$additional_libdir/lib$name.$shlibext"
9362 if test -f "$additional_libdir/lib$name.la"; then
9363 found_la="$additional_libdir/lib$name.la"
9364 fi
9365 else
9366 if test -f "$additional_libdir/lib$name.$libext"; then
9367 found_dir="$additional_libdir"
9368 found_a="$additional_libdir/lib$name.$libext"
9369 if test -f "$additional_libdir/lib$name.la"; then
9370 found_la="$additional_libdir/lib$name.la"
9371 fi
9372 fi
9373 fi
9374 fi
9375 if test "X$found_dir" = "X"; then
9376 for x in $LDFLAGS $LTLIBINTL; do
b0cacab0 9377
a04eba3f
TT
9378 acl_save_prefix="$prefix"
9379 prefix="$acl_final_prefix"
9380 acl_save_exec_prefix="$exec_prefix"
9381 exec_prefix="$acl_final_exec_prefix"
9382 eval x=\"$x\"
9383 exec_prefix="$acl_save_exec_prefix"
9384 prefix="$acl_save_prefix"
9385
9386 case "$x" in
9387 -L*)
9388 dir=`echo "X$x" | sed -e 's/^X-L//'`
9389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9390 found_dir="$dir"
9391 found_so="$dir/lib$name.$shlibext"
9392 if test -f "$dir/lib$name.la"; then
9393 found_la="$dir/lib$name.la"
9394 fi
9395 else
9396 if test -f "$dir/lib$name.$libext"; then
9397 found_dir="$dir"
9398 found_a="$dir/lib$name.$libext"
9399 if test -f "$dir/lib$name.la"; then
9400 found_la="$dir/lib$name.la"
9401 fi
9402 fi
9403 fi
9404 ;;
9405 esac
9406 if test "X$found_dir" != "X"; then
9407 break
9408 fi
9409 done
9410 fi
9411 if test "X$found_dir" != "X"; then
9412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9413 if test "X$found_so" != "X"; then
9414 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9416 else
9417 haveit=
9418 for x in $ltrpathdirs; do
9419 if test "X$x" = "X$found_dir"; then
9420 haveit=yes
9421 break
9422 fi
9423 done
9424 if test -z "$haveit"; then
9425 ltrpathdirs="$ltrpathdirs $found_dir"
9426 fi
9427 if test "$hardcode_direct" = yes; then
9428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9429 else
9430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9432 haveit=
9433 for x in $rpathdirs; do
9434 if test "X$x" = "X$found_dir"; then
9435 haveit=yes
9436 break
9437 fi
9438 done
9439 if test -z "$haveit"; then
9440 rpathdirs="$rpathdirs $found_dir"
9441 fi
9442 else
9443 haveit=
9444 for x in $LDFLAGS $LIBINTL; do
b0cacab0 9445
a04eba3f
TT
9446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9450 eval x=\"$x\"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9453
9454 if test "X$x" = "X-L$found_dir"; then
9455 haveit=yes
9456 break
9457 fi
9458 done
9459 if test -z "$haveit"; then
9460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9461 fi
9462 if test "$hardcode_minus_L" != no; then
9463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9464 else
9465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9466 fi
9467 fi
9468 fi
9469 fi
9470 else
9471 if test "X$found_a" != "X"; then
9472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9473 else
9474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9475 fi
9476 fi
9477 additional_includedir=
9478 case "$found_dir" in
9479 */lib | */lib/)
9480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9481 additional_includedir="$basedir/include"
9482 ;;
9483 esac
9484 if test "X$additional_includedir" != "X"; then
9485 if test "X$additional_includedir" != "X/usr/include"; then
9486 haveit=
9487 if test "X$additional_includedir" = "X/usr/local/include"; then
9488 if test -n "$GCC"; then
9489 case $host_os in
9490 linux*) haveit=yes;;
9491 esac
9492 fi
9493 fi
9494 if test -z "$haveit"; then
9495 for x in $CPPFLAGS $INCINTL; do
b0cacab0 9496
a04eba3f
TT
9497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9501 eval x=\"$x\"
9502 exec_prefix="$acl_save_exec_prefix"
9503 prefix="$acl_save_prefix"
9504
9505 if test "X$x" = "X-I$additional_includedir"; then
9506 haveit=yes
9507 break
9508 fi
9509 done
9510 if test -z "$haveit"; then
9511 if test -d "$additional_includedir"; then
9512 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9513 fi
9514 fi
9515 fi
9516 fi
9517 fi
9518 if test -n "$found_la"; then
9519 save_libdir="$libdir"
9520 case "$found_la" in
9521 */* | *\\*) . "$found_la" ;;
9522 *) . "./$found_la" ;;
9523 esac
9524 libdir="$save_libdir"
9525 for dep in $dependency_libs; do
9526 case "$dep" in
9527 -L*)
9528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9529 if test "X$additional_libdir" != "X/usr/lib"; then
9530 haveit=
9531 if test "X$additional_libdir" = "X/usr/local/lib"; then
9532 if test -n "$GCC"; then
9533 case $host_os in
9534 linux*) haveit=yes;;
9535 esac
9536 fi
9537 fi
9538 if test -z "$haveit"; then
9539 haveit=
9540 for x in $LDFLAGS $LIBINTL; do
b0cacab0 9541
a04eba3f
TT
9542 acl_save_prefix="$prefix"
9543 prefix="$acl_final_prefix"
9544 acl_save_exec_prefix="$exec_prefix"
9545 exec_prefix="$acl_final_exec_prefix"
9546 eval x=\"$x\"
9547 exec_prefix="$acl_save_exec_prefix"
9548 prefix="$acl_save_prefix"
9549
9550 if test "X$x" = "X-L$additional_libdir"; then
9551 haveit=yes
9552 break
9553 fi
9554 done
9555 if test -z "$haveit"; then
9556 if test -d "$additional_libdir"; then
9557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9558 fi
9559 fi
9560 haveit=
9561 for x in $LDFLAGS $LTLIBINTL; do
b0cacab0 9562
a04eba3f
TT
9563 acl_save_prefix="$prefix"
9564 prefix="$acl_final_prefix"
9565 acl_save_exec_prefix="$exec_prefix"
9566 exec_prefix="$acl_final_exec_prefix"
9567 eval x=\"$x\"
9568 exec_prefix="$acl_save_exec_prefix"
9569 prefix="$acl_save_prefix"
9570
9571 if test "X$x" = "X-L$additional_libdir"; then
9572 haveit=yes
9573 break
9574 fi
9575 done
9576 if test -z "$haveit"; then
9577 if test -d "$additional_libdir"; then
9578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9579 fi
9580 fi
9581 fi
9582 fi
9583 ;;
9584 -R*)
9585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9586 if test "$enable_rpath" != no; then
9587 haveit=
9588 for x in $rpathdirs; do
9589 if test "X$x" = "X$dir"; then
9590 haveit=yes
9591 break
9592 fi
9593 done
9594 if test -z "$haveit"; then
9595 rpathdirs="$rpathdirs $dir"
9596 fi
9597 haveit=
9598 for x in $ltrpathdirs; do
9599 if test "X$x" = "X$dir"; then
9600 haveit=yes
9601 break
9602 fi
9603 done
9604 if test -z "$haveit"; then
9605 ltrpathdirs="$ltrpathdirs $dir"
9606 fi
9607 fi
9608 ;;
9609 -l*)
9610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9611 ;;
9612 *.la)
9613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9614 ;;
9615 *)
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9618 ;;
9619 esac
9620 done
9621 fi
9622 else
9623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9625 fi
9626 fi
9627 fi
9628 done
9629 done
9630 if test "X$rpathdirs" != "X"; then
9631 if test -n "$hardcode_libdir_separator"; then
9632 alldirs=
9633 for found_dir in $rpathdirs; do
9634 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9635 done
9636 acl_save_libdir="$libdir"
9637 libdir="$alldirs"
9638 eval flag=\"$hardcode_libdir_flag_spec\"
9639 libdir="$acl_save_libdir"
9640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9641 else
9642 for found_dir in $rpathdirs; do
9643 acl_save_libdir="$libdir"
9644 libdir="$found_dir"
9645 eval flag=\"$hardcode_libdir_flag_spec\"
9646 libdir="$acl_save_libdir"
9647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9648 done
9649 fi
9650 fi
9651 if test "X$ltrpathdirs" != "X"; then
9652 for found_dir in $ltrpathdirs; do
9653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9654 done
9655 fi
9656
b0cacab0
TT
9657 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9658echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9659if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
f8bd9807 9661else
a04eba3f
TT
9662 gt_save_CPPFLAGS="$CPPFLAGS"
9663 CPPFLAGS="$CPPFLAGS $INCINTL"
9664 gt_save_LIBS="$LIBS"
9665 LIBS="$LIBS $LIBINTL"
b0cacab0
TT
9666 cat >conftest.$ac_ext <<_ACEOF
9667/* confdefs.h. */
9668_ACEOF
9669cat confdefs.h >>conftest.$ac_ext
9670cat >>conftest.$ac_ext <<_ACEOF
9671/* end confdefs.h. */
a04eba3f
TT
9672#include <libintl.h>
9673extern int _nl_msg_cat_cntr;
9674extern
9675#ifdef __cplusplus
9676"C"
9677#endif
9678const char *_nl_expand_alias ();
b0cacab0
TT
9679int
9680main ()
9681{
a04eba3f
TT
9682bindtextdomain ("", "");
9683return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
b0cacab0
TT
9684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext conftest$ac_exeext
9689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 (eval $ac_try) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
a04eba3f
TT
9709 gt_cv_func_gnugettext1_libintl=yes
9710else
b0cacab0
TT
9711 echo "$as_me: failed program was:" >&5
9712sed 's/^/| /' conftest.$ac_ext >&5
9713
9714gt_cv_func_gnugettext1_libintl=no
a04eba3f 9715fi
b0cacab0
TT
9716rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
9718 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9719 LIBS="$LIBS $LIBICONV"
b0cacab0
TT
9720 cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
a04eba3f
TT
9726#include <libintl.h>
9727extern int _nl_msg_cat_cntr;
9728extern
9729#ifdef __cplusplus
9730"C"
9731#endif
9732const char *_nl_expand_alias ();
b0cacab0
TT
9733int
9734main ()
9735{
a04eba3f
TT
9736bindtextdomain ("", "");
9737return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
b0cacab0
TT
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
a04eba3f
TT
9763 LIBINTL="$LIBINTL $LIBICONV"
9764 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9765 gt_cv_func_gnugettext1_libintl=yes
b0cacab0 9766
a04eba3f 9767else
b0cacab0
TT
9768 echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
a04eba3f 9771fi
b0cacab0
TT
9772rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
a04eba3f
TT
9774 fi
9775 CPPFLAGS="$gt_save_CPPFLAGS"
9776 LIBS="$gt_save_LIBS"
a64c9c13 9777fi
b0cacab0
TT
9778echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9779echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
a04eba3f 9780 fi
a64c9c13 9781
a04eba3f
TT
9782 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9783 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
b0cacab0
TT
9784 && test "$PACKAGE" != gettext-runtime \
9785 && test "$PACKAGE" != gettext-tools; }; then
a04eba3f
TT
9786 gt_use_preinstalled_gnugettext=yes
9787 else
9788 LIBINTL=
9789 LTLIBINTL=
9790 INCINTL=
9791 fi
a64c9c13 9792
b0cacab0 9793
a04eba3f
TT
9794 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9795 nls_cv_use_gnu_gettext=yes
9796 fi
9797 fi
a64c9c13 9798
a04eba3f 9799 if test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 9800 BUILD_INCLUDED_LIBINTL=yes
a04eba3f
TT
9801 USE_INCLUDED_LIBINTL=yes
9802 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9803 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9804 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9805 fi
a64c9c13 9806
a04eba3f
TT
9807 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9808 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9809 CATOBJEXT=.gmo
9810 fi
b0cacab0 9811
a04eba3f
TT
9812
9813 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9814 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0
TT
9815
9816cat >>confdefs.h <<\_ACEOF
a04eba3f 9817#define ENABLE_NLS 1
b0cacab0 9818_ACEOF
a04eba3f
TT
9819
9820 else
9821 USE_NLS=no
9822 fi
9823 fi
9824
b0cacab0
TT
9825 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9826echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9827 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9828echo "${ECHO_T}$USE_NLS" >&6
9829 if test "$USE_NLS" = "yes"; then
9830 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9831echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9832 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9833 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9834 gt_source="external libintl"
9835 else
9836 gt_source="libc"
9837 fi
9838 else
9839 gt_source="included intl directory"
9840 fi
9841 echo "$as_me:$LINENO: result: $gt_source" >&5
9842echo "${ECHO_T}$gt_source" >&6
9843 fi
9844
a04eba3f
TT
9845 if test "$USE_NLS" = "yes"; then
9846
9847 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9848 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
b0cacab0
TT
9849 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9850echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9851 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9852echo "${ECHO_T}$LIBINTL" >&6
9853
a04eba3f
TT
9854 for element in $INCINTL; do
9855 haveit=
9856 for x in $CPPFLAGS; do
b0cacab0 9857
a04eba3f
TT
9858 acl_save_prefix="$prefix"
9859 prefix="$acl_final_prefix"
9860 acl_save_exec_prefix="$exec_prefix"
9861 exec_prefix="$acl_final_exec_prefix"
9862 eval x=\"$x\"
9863 exec_prefix="$acl_save_exec_prefix"
9864 prefix="$acl_save_prefix"
9865
9866 if test "X$x" = "X$element"; then
9867 haveit=yes
9868 break
9869 fi
9870 done
9871 if test -z "$haveit"; then
9872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9873 fi
9874 done
9875
9876 fi
9877
b0cacab0
TT
9878
9879cat >>confdefs.h <<\_ACEOF
a04eba3f 9880#define HAVE_GETTEXT 1
b0cacab0
TT
9881_ACEOF
9882
a04eba3f 9883
b0cacab0 9884cat >>confdefs.h <<\_ACEOF
a04eba3f 9885#define HAVE_DCGETTEXT 1
b0cacab0 9886_ACEOF
a04eba3f
TT
9887
9888 fi
9889
9890 POSUB=po
9891 fi
9892
b0cacab0
TT
9893
9894 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
a04eba3f
TT
9895 BUILD_INCLUDED_LIBINTL=yes
9896 fi
9897
b0cacab0
TT
9898
9899
9900
93636bde 9901
a04eba3f
TT
9902 nls_cv_header_intl=
9903 nls_cv_header_libgt=
9904
9905 DATADIRNAME=share
b0cacab0 9906
a04eba3f
TT
9907
9908 INSTOBJEXT=.mo
b0cacab0 9909
a04eba3f
TT
9910
9911 GENCAT=gencat
b0cacab0
TT
9912
9913
9914 if test "$USE_INCLUDED_LIBINTL" = yes; then
9915 INTLOBJS="\$(GETTOBJS)"
9916 fi
9917
a04eba3f
TT
9918
9919 INTL_LIBTOOL_SUFFIX_PREFIX=
b0cacab0
TT
9920
9921
a04eba3f
TT
9922
9923 INTLLIBS="$LIBINTL"
93636bde 9924
a64c9c13 9925
93636bde 9926
b0cacab0
TT
9927
9928
9929
9930
9931echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9932echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9933set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9934if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 9936else
b0cacab0 9937 cat >conftest.make <<\_ACEOF
50e1e10f 9938all:
b0cacab0
TT
9939 @echo 'ac_maketemp="$(MAKE)"'
9940_ACEOF
50e1e10f 9941# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
b0cacab0 9942eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50e1e10f
TT
9943if test -n "$ac_maketemp"; then
9944 eval ac_cv_prog_make_${ac_make}_set=yes
9945else
9946 eval ac_cv_prog_make_${ac_make}_set=no
9947fi
b0cacab0 9948rm -f conftest.make
50e1e10f
TT
9949fi
9950if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
b0cacab0
TT
9951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
50e1e10f
TT
9953 SET_MAKE=
9954else
b0cacab0
TT
9955 echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
50e1e10f
TT
9957 SET_MAKE="MAKE=${MAKE-make}"
9958fi
9959
9960# Extract the first word of "ln", so it can be a program name with args.
9961set dummy ln; ac_word=$2
b0cacab0
TT
9962echo "$as_me:$LINENO: checking for $ac_word" >&5
9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964if test "${ac_cv_path_LN+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 9966else
b0cacab0
TT
9967 case $LN in
9968 [\\/]* | ?:[\\/]*)
50e1e10f
TT
9969 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9970 ;;
9971 *)
b0cacab0
TT
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
9984done
9985
50e1e10f
TT
9986 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9987 ;;
9988esac
9989fi
b0cacab0
TT
9990LN=$ac_cv_path_LN
9991
50e1e10f 9992if test -n "$LN"; then
b0cacab0
TT
9993 echo "$as_me:$LINENO: result: $LN" >&5
9994echo "${ECHO_T}$LN" >&6
50e1e10f 9995else
b0cacab0
TT
9996 echo "$as_me:$LINENO: result: no" >&5
9997echo "${ECHO_T}no" >&6
50e1e10f
TT
9998fi
9999
b0cacab0
TT
10000echo "$as_me:$LINENO: checking whether ln -s works" >&5
10001echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10002LN_S=$as_ln_s
10003if test "$LN_S" = "ln -s"; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
fc6d9d51 10006else
b0cacab0
TT
10007 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10008echo "${ECHO_T}no, using $LN_S" >&6
fc6d9d51
TT
10009fi
10010
50e1e10f
TT
10011# Extract the first word of "mv", so it can be a program name with args.
10012set dummy mv; ac_word=$2
b0cacab0
TT
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015if test "${ac_cv_path_MV+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10017else
b0cacab0
TT
10018 case $MV in
10019 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10020 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10021 ;;
10022 *)
b0cacab0
TT
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024for as_dir in $PATH
10025do
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10033 fi
10034done
10035done
10036
50e1e10f
TT
10037 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10038 ;;
10039esac
10040fi
b0cacab0
TT
10041MV=$ac_cv_path_MV
10042
50e1e10f 10043if test -n "$MV"; then
b0cacab0
TT
10044 echo "$as_me:$LINENO: result: $MV" >&5
10045echo "${ECHO_T}$MV" >&6
50e1e10f 10046else
b0cacab0
TT
10047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
50e1e10f
TT
10049fi
10050
10051# Extract the first word of "cp", so it can be a program name with args.
10052set dummy cp; ac_word=$2
b0cacab0
TT
10053echo "$as_me:$LINENO: checking for $ac_word" >&5
10054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055if test "${ac_cv_path_CP+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10057else
b0cacab0
TT
10058 case $CP in
10059 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10060 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10061 ;;
10062 *)
b0cacab0
TT
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074done
10075done
10076
50e1e10f
TT
10077 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10078 ;;
10079esac
10080fi
b0cacab0
TT
10081CP=$ac_cv_path_CP
10082
50e1e10f 10083if test -n "$CP"; then
b0cacab0
TT
10084 echo "$as_me:$LINENO: result: $CP" >&5
10085echo "${ECHO_T}$CP" >&6
50e1e10f 10086else
b0cacab0
TT
10087 echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6
50e1e10f
TT
10089fi
10090
10091# Extract the first word of "rm", so it can be a program name with args.
10092set dummy rm; ac_word=$2
b0cacab0
TT
10093echo "$as_me:$LINENO: checking for $ac_word" >&5
10094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10095if test "${ac_cv_path_RM+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10097else
b0cacab0
TT
10098 case $RM in
10099 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10100 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10101 ;;
10102 *)
b0cacab0
TT
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115done
10116
50e1e10f
TT
10117 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10118 ;;
10119esac
10120fi
b0cacab0
TT
10121RM=$ac_cv_path_RM
10122
50e1e10f 10123if test -n "$RM"; then
b0cacab0
TT
10124 echo "$as_me:$LINENO: result: $RM" >&5
10125echo "${ECHO_T}$RM" >&6
50e1e10f 10126else
b0cacab0
TT
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
50e1e10f
TT
10129fi
10130
10131# Extract the first word of "chmod", so it can be a program name with args.
10132set dummy chmod; ac_word=$2
b0cacab0
TT
10133echo "$as_me:$LINENO: checking for $ac_word" >&5
10134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135if test "${ac_cv_path_CHMOD+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10137else
b0cacab0
TT
10138 case $CHMOD in
10139 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10140 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10141 ;;
10142 *)
b0cacab0
TT
10143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 break 2
10153 fi
10154done
10155done
10156
50e1e10f
TT
10157 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10158 ;;
10159esac
10160fi
b0cacab0
TT
10161CHMOD=$ac_cv_path_CHMOD
10162
50e1e10f 10163if test -n "$CHMOD"; then
b0cacab0
TT
10164 echo "$as_me:$LINENO: result: $CHMOD" >&5
10165echo "${ECHO_T}$CHMOD" >&6
50e1e10f 10166else
b0cacab0
TT
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
50e1e10f
TT
10169fi
10170
10171# Extract the first word of "awk", so it can be a program name with args.
10172set dummy awk; ac_word=$2
b0cacab0
TT
10173echo "$as_me:$LINENO: checking for $ac_word" >&5
10174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10175if test "${ac_cv_path_AWK+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10177else
b0cacab0
TT
10178 case $AWK in
10179 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10180 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
10181 ;;
10182 *)
b0cacab0
TT
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
50e1e10f
TT
10197 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
10198 ;;
10199esac
10200fi
b0cacab0
TT
10201AWK=$ac_cv_path_AWK
10202
50e1e10f 10203if test -n "$AWK"; then
b0cacab0
TT
10204 echo "$as_me:$LINENO: result: $AWK" >&5
10205echo "${ECHO_T}$AWK" >&6
50e1e10f 10206else
b0cacab0
TT
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
50e1e10f
TT
10209fi
10210
10211# Extract the first word of "sed", so it can be a program name with args.
10212set dummy sed; ac_word=$2
b0cacab0
TT
10213echo "$as_me:$LINENO: checking for $ac_word" >&5
10214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10215if test "${ac_cv_path_SED+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10217else
b0cacab0
TT
10218 case $SED in
10219 [\\/]* | ?:[\\/]*)
50e1e10f
TT
10220 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10221 ;;
10222 *)
b0cacab0
TT
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224for as_dir in $PATH
10225do
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10233 fi
10234done
10235done
10236
50e1e10f
TT
10237 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10238 ;;
10239esac
10240fi
b0cacab0
TT
10241SED=$ac_cv_path_SED
10242
50e1e10f 10243if test -n "$SED"; then
b0cacab0
TT
10244 echo "$as_me:$LINENO: result: $SED" >&5
10245echo "${ECHO_T}$SED" >&6
50e1e10f 10246else
b0cacab0
TT
10247 echo "$as_me:$LINENO: result: no" >&5
10248echo "${ECHO_T}no" >&6
50e1e10f
TT
10249fi
10250
9d564f73
TT
10251# Extract the first word of "perl", so it can be a program name with args.
10252set dummy perl; ac_word=$2
b0cacab0
TT
10253echo "$as_me:$LINENO: checking for $ac_word" >&5
10254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10255if test "${ac_cv_path_PERL+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
9d564f73 10257else
b0cacab0
TT
10258 case $PERL in
10259 [\\/]* | ?:[\\/]*)
9d564f73
TT
10260 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10261 ;;
9d564f73 10262 *)
b0cacab0
TT
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10273 fi
10274done
10275done
10276
9d564f73
TT
10277 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10278 ;;
10279esac
10280fi
b0cacab0
TT
10281PERL=$ac_cv_path_PERL
10282
9d564f73 10283if test -n "$PERL"; then
b0cacab0
TT
10284 echo "$as_me:$LINENO: result: $PERL" >&5
10285echo "${ECHO_T}$PERL" >&6
9d564f73 10286else
b0cacab0
TT
10287 echo "$as_me:$LINENO: result: no" >&5
10288echo "${ECHO_T}no" >&6
9d564f73
TT
10289fi
10290
250f79f0
TT
10291# Extract the first word of "ldconfig", so it can be a program name with args.
10292set dummy ldconfig; ac_word=$2
b0cacab0
TT
10293echo "$as_me:$LINENO: checking for $ac_word" >&5
10294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10295if test "${ac_cv_path_LDCONFIG+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
250f79f0 10297else
b0cacab0
TT
10298 case $LDCONFIG in
10299 [\\/]* | ?:[\\/]*)
250f79f0
TT
10300 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10301 ;;
250f79f0 10302 *)
b0cacab0
TT
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10310 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10313 fi
10314done
10315done
10316
250f79f0
TT
10317 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10318 ;;
10319esac
10320fi
b0cacab0 10321LDCONFIG=$ac_cv_path_LDCONFIG
50e1e10f 10322
b0cacab0
TT
10323if test -n "$LDCONFIG"; then
10324 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10325echo "${ECHO_T}$LDCONFIG" >&6
93636bde 10326else
b0cacab0
TT
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
93636bde
TT
10329fi
10330
b0cacab0
TT
10331if test -n "$ac_tool_prefix"; then
10332 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50e1e10f 10333set dummy ${ac_tool_prefix}ar; ac_word=$2
b0cacab0
TT
10334echo "$as_me:$LINENO: checking for $ac_word" >&5
10335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10336if test "${ac_cv_prog_AR+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10338else
10339 if test -n "$AR"; then
10340 ac_cv_prog_AR="$AR" # Let the user override the test.
10341else
b0cacab0
TT
10342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343for as_dir in $PATH
10344do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349 ac_cv_prog_AR="${ac_tool_prefix}ar"
10350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 break 2
10352 fi
10353done
10354done
10355
50e1e10f
TT
10356fi
10357fi
b0cacab0 10358AR=$ac_cv_prog_AR
50e1e10f 10359if test -n "$AR"; then
b0cacab0
TT
10360 echo "$as_me:$LINENO: result: $AR" >&5
10361echo "${ECHO_T}$AR" >&6
50e1e10f 10362else
b0cacab0
TT
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
50e1e10f
TT
10365fi
10366
b0cacab0 10367fi
50e1e10f 10368if test -z "$ac_cv_prog_AR"; then
b0cacab0 10369 ac_ct_AR=$AR
50e1e10f
TT
10370 # Extract the first word of "ar", so it can be a program name with args.
10371set dummy ar; ac_word=$2
b0cacab0
TT
10372echo "$as_me:$LINENO: checking for $ac_word" >&5
10373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10374if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10376else
b0cacab0
TT
10377 if test -n "$ac_ct_AR"; then
10378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
93636bde 10379else
b0cacab0
TT
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10387 ac_cv_prog_ac_ct_AR="ar"
10388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10390 fi
10391done
10392done
10393
10394 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
50e1e10f
TT
10395fi
10396fi
b0cacab0
TT
10397ac_ct_AR=$ac_cv_prog_ac_ct_AR
10398if test -n "$ac_ct_AR"; then
10399 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10400echo "${ECHO_T}$ac_ct_AR" >&6
50e1e10f 10401else
b0cacab0
TT
10402 echo "$as_me:$LINENO: result: no" >&5
10403echo "${ECHO_T}no" >&6
50e1e10f
TT
10404fi
10405
b0cacab0 10406 AR=$ac_ct_AR
50e1e10f 10407else
b0cacab0 10408 AR="$ac_cv_prog_AR"
50e1e10f
TT
10409fi
10410
b0cacab0
TT
10411if test -n "$ac_tool_prefix"; then
10412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50e1e10f 10413set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0cacab0
TT
10414echo "$as_me:$LINENO: checking for $ac_word" >&5
10415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10416if test "${ac_cv_prog_RANLIB+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10418else
10419 if test -n "$RANLIB"; then
10420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10421else
b0cacab0
TT
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10432 fi
10433done
10434done
10435
50e1e10f
TT
10436fi
10437fi
b0cacab0 10438RANLIB=$ac_cv_prog_RANLIB
50e1e10f 10439if test -n "$RANLIB"; then
b0cacab0
TT
10440 echo "$as_me:$LINENO: result: $RANLIB" >&5
10441echo "${ECHO_T}$RANLIB" >&6
50e1e10f 10442else
b0cacab0
TT
10443 echo "$as_me:$LINENO: result: no" >&5
10444echo "${ECHO_T}no" >&6
50e1e10f
TT
10445fi
10446
b0cacab0 10447fi
50e1e10f 10448if test -z "$ac_cv_prog_RANLIB"; then
b0cacab0 10449 ac_ct_RANLIB=$RANLIB
50e1e10f
TT
10450 # Extract the first word of "ranlib", so it can be a program name with args.
10451set dummy ranlib; ac_word=$2
b0cacab0
TT
10452echo "$as_me:$LINENO: checking for $ac_word" >&5
10453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10456else
b0cacab0
TT
10457 if test -n "$ac_ct_RANLIB"; then
10458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
93636bde 10459else
b0cacab0
TT
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_ac_ct_RANLIB="ranlib"
10468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472done
10473
10474 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
50e1e10f
TT
10475fi
10476fi
b0cacab0
TT
10477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10478if test -n "$ac_ct_RANLIB"; then
10479 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10480echo "${ECHO_T}$ac_ct_RANLIB" >&6
50e1e10f 10481else
b0cacab0
TT
10482 echo "$as_me:$LINENO: result: no" >&5
10483echo "${ECHO_T}no" >&6
50e1e10f
TT
10484fi
10485
b0cacab0 10486 RANLIB=$ac_ct_RANLIB
50e1e10f 10487else
b0cacab0 10488 RANLIB="$ac_cv_prog_RANLIB"
50e1e10f
TT
10489fi
10490
b0cacab0
TT
10491if test -n "$ac_tool_prefix"; then
10492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50e1e10f 10493set dummy ${ac_tool_prefix}strip; ac_word=$2
b0cacab0
TT
10494echo "$as_me:$LINENO: checking for $ac_word" >&5
10495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496if test "${ac_cv_prog_STRIP+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f
TT
10498else
10499 if test -n "$STRIP"; then
10500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10501else
b0cacab0
TT
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513done
10514done
10515
50e1e10f
TT
10516fi
10517fi
b0cacab0 10518STRIP=$ac_cv_prog_STRIP
50e1e10f 10519if test -n "$STRIP"; then
b0cacab0
TT
10520 echo "$as_me:$LINENO: result: $STRIP" >&5
10521echo "${ECHO_T}$STRIP" >&6
50e1e10f 10522else
b0cacab0
TT
10523 echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6
50e1e10f
TT
10525fi
10526
b0cacab0 10527fi
50e1e10f 10528if test -z "$ac_cv_prog_STRIP"; then
b0cacab0 10529 ac_ct_STRIP=$STRIP
50e1e10f
TT
10530 # Extract the first word of "strip", so it can be a program name with args.
10531set dummy strip; ac_word=$2
b0cacab0
TT
10532echo "$as_me:$LINENO: checking for $ac_word" >&5
10533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10534if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10536else
b0cacab0
TT
10537 if test -n "$ac_ct_STRIP"; then
10538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
93636bde 10539else
b0cacab0
TT
10540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541for as_dir in $PATH
10542do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_ac_ct_STRIP="strip"
10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10550 fi
10551done
10552done
10553
10554 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
50e1e10f
TT
10555fi
10556fi
b0cacab0
TT
10557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10558if test -n "$ac_ct_STRIP"; then
10559 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10560echo "${ECHO_T}$ac_ct_STRIP" >&6
50e1e10f 10561else
b0cacab0
TT
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
50e1e10f
TT
10564fi
10565
b0cacab0 10566 STRIP=$ac_ct_STRIP
50e1e10f 10567else
b0cacab0 10568 STRIP="$ac_cv_prog_STRIP"
50e1e10f
TT
10569fi
10570
50e1e10f
TT
10571# Find a good install program. We prefer a C program (faster),
10572# so one script is as good as another. But avoid the broken or
10573# incompatible versions:
10574# SysV /etc/install, /usr/sbin/install
10575# SunOS /usr/etc/install
10576# IRIX /sbin/install
10577# AIX /bin/install
b0cacab0 10578# AmigaOS /C/install, which installs bootblocks on floppy discs
a4bf69d9 10579# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50e1e10f
TT
10580# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10581# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b0cacab0 10582# OS/2's system install, which has a completely different semantic
50e1e10f 10583# ./install, which can be erroneously created by make from ./install.sh.
b0cacab0
TT
10584echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10585echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
50e1e10f 10586if test -z "$INSTALL"; then
b0cacab0
TT
10587if test "${ac_cv_path_install+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 10589else
b0cacab0
TT
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 # Account for people who put trailing slashes in PATH elements.
10596case $as_dir/ in
10597 ./ | .// | /cC/* | \
10598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10599 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10600 /usr/ucb/* ) ;;
10601 *)
10602 # OSF1 and SCO ODT 3.0 have their own names for install.
10603 # Don't use installbsd from OSF since it installs stuff as root
10604 # by default.
10605 for ac_prog in ginstall scoinst install; do
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
50e1e10f 10608 if test $ac_prog = install &&
b0cacab0 10609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50e1e10f 10610 # AIX install. It has an incompatible calling convention.
50e1e10f 10611 :
b0cacab0
TT
10612 elif test $ac_prog = install &&
10613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10614 # program-specific install script used by HP pwplus--don't use.
10615 :
50e1e10f 10616 else
b0cacab0
TT
10617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10618 break 3
50e1e10f
TT
10619 fi
10620 fi
10621 done
b0cacab0
TT
10622 done
10623 ;;
10624esac
10625done
10626
21c84b71 10627
50e1e10f 10628fi
21c84b71 10629 if test "${ac_cv_path_install+set}" = set; then
b0cacab0 10630 INSTALL=$ac_cv_path_install
21c84b71
TT
10631 else
10632 # As a last resort, use the slow shell script. We don't cache a
10633 # path for INSTALL within a source directory, because that will
10634 # break other packages using the cache if that directory is
10635 # removed, or if the path is relative.
b0cacab0 10636 INSTALL=$ac_install_sh
21c84b71 10637 fi
50e1e10f 10638fi
b0cacab0
TT
10639echo "$as_me:$LINENO: result: $INSTALL" >&5
10640echo "${ECHO_T}$INSTALL" >&6
50e1e10f
TT
10641
10642# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10643# It thinks the first close brace ends the variable substitution.
10644test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10645
b0cacab0 10646test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a4bf69d9 10647
50e1e10f
TT
10648test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10649
6c133523
TT
10650# See if we need a separate native compiler.
10651if test $cross_compiling = no; then
10652 BUILD_CC="$CC"
b0cacab0 10653
6c133523
TT
10654else
10655 for ac_prog in gcc cc
10656do
b0cacab0 10657 # Extract the first word of "$ac_prog", so it can be a program name with args.
6c133523 10658set dummy $ac_prog; ac_word=$2
b0cacab0
TT
10659echo "$as_me:$LINENO: checking for $ac_word" >&5
10660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
6c133523 10663else
b0cacab0
TT
10664 if test -n "$BUILD_CC"; then
10665 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_BUILD_CC="$ac_prog"
10675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679done
10680
6c133523
TT
10681fi
10682fi
b0cacab0 10683BUILD_CC=$ac_cv_prog_BUILD_CC
6c133523 10684if test -n "$BUILD_CC"; then
b0cacab0
TT
10685 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10686echo "${ECHO_T}$BUILD_CC" >&6
6c133523 10687else
b0cacab0
TT
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
6c133523
TT
10690fi
10691
b0cacab0 10692 test -n "$BUILD_CC" && break
6c133523
TT
10693done
10694
10695fi
b0cacab0
TT
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728for 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/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.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.h net/if_dl.h netinet/in.h
50e1e10f 10729do
b0cacab0
TT
10730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10731if eval "test \"\${$as_ac_Header+set}\" = set"; then
10732 echo "$as_me:$LINENO: checking for $ac_header" >&5
10733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10734if eval "test \"\${$as_ac_Header+set}\" = set"; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736fi
10737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10739else
10740 # Is the header compilable?
10741echo "$as_me:$LINENO: checking $ac_header usability" >&5
10742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10743cat >conftest.$ac_ext <<_ACEOF
10744/* confdefs.h. */
10745_ACEOF
10746cat confdefs.h >>conftest.$ac_ext
10747cat >>conftest.$ac_ext <<_ACEOF
10748/* end confdefs.h. */
10749$ac_includes_default
10750#include <$ac_header>
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_header_compiler=yes
10774else
10775 echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778ac_header_compiler=no
10779fi
10780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10782echo "${ECHO_T}$ac_header_compiler" >&6
10783
10784# Is the header present?
10785echo "$as_me:$LINENO: checking $ac_header presence" >&5
10786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10787cat >conftest.$ac_ext <<_ACEOF
10788/* confdefs.h. */
10789_ACEOF
10790cat confdefs.h >>conftest.$ac_ext
10791cat >>conftest.$ac_ext <<_ACEOF
10792/* end confdefs.h. */
10793#include <$ac_header>
10794_ACEOF
10795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } >/dev/null; then
10803 if test -s conftest.err; then
10804 ac_cpp_err=$ac_c_preproc_warn_flag
10805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10806 else
10807 ac_cpp_err=
10808 fi
10809else
10810 ac_cpp_err=yes
50e1e10f 10811fi
b0cacab0
TT
10812if test -z "$ac_cpp_err"; then
10813 ac_header_preproc=yes
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818 ac_header_preproc=no
50e1e10f 10819fi
b0cacab0
TT
10820rm -f conftest.err conftest.$ac_ext
10821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10822echo "${ECHO_T}$ac_header_preproc" >&6
10823
10824# So? What about this header?
10825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10826 yes:no: )
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10831 ac_header_preproc=yes
10832 ;;
10833 no:yes:* )
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10846 (
10847 cat <<\_ASBOX
10848## ------------------------------------------ ##
10849## Report this to the AC_PACKAGE_NAME lists. ##
10850## ------------------------------------------ ##
10851_ASBOX
10852 ) |
10853 sed "s/^/$as_me: WARNING: /" >&2
10854 ;;
10855esac
10856echo "$as_me:$LINENO: checking for $ac_header" >&5
10857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10858if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
93636bde 10860else
b0cacab0
TT
10861 eval "$as_ac_Header=\$ac_header_preproc"
10862fi
10863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10865
50e1e10f 10866fi
b0cacab0
TT
10867if test `eval echo '${'$as_ac_Header'}'` = yes; then
10868 cat >>confdefs.h <<_ACEOF
10869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10870_ACEOF
10871
10872fi
10873
50e1e10f
TT
10874done
10875
b0cacab0
TT
10876
10877for ac_func in vprintf
10878do
10879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880echo "$as_me:$LINENO: checking for $ac_func" >&5
10881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10882if eval "test \"\${$as_ac_var+set}\" = set"; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
10891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10893#define $ac_func innocuous_$ac_func
10894
50e1e10f 10895/* System header to define __stub macros and hopefully few prototypes,
b0cacab0
TT
10896 which can conflict with char $ac_func (); below.
10897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10898 <limits.h> exists even on freestanding compilers. */
10899
10900#ifdef __STDC__
10901# include <limits.h>
10902#else
10903# include <assert.h>
10904#endif
93636bde 10905
b0cacab0 10906#undef $ac_func
50e1e10f 10907
b0cacab0
TT
10908/* Override any gcc2 internal prototype to avoid an error. */
10909#ifdef __cplusplus
10910extern "C"
10911{
10912#endif
10913/* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10915char $ac_func ();
50e1e10f
TT
10916/* The GNU C library defines this for functions which it implements
10917 to always fail with ENOSYS. Some functions are actually named
07a0db15 10918 something starting with __ and the normal name is an alias. */
b0cacab0 10919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
07a0db15
TT
10920choke me
10921#else
b0cacab0
TT
10922char (*f) () = $ac_func;
10923#endif
10924#ifdef __cplusplus
10925}
07a0db15 10926#endif
50e1e10f 10927
b0cacab0
TT
10928int
10929main ()
10930{
10931return f != $ac_func;
10932 ;
10933 return 0;
10934}
10935_ACEOF
10936rm -f conftest.$ac_objext conftest$ac_exeext
10937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 eval "$as_ac_var=yes"
10958else
10959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
10962eval "$as_ac_var=no"
10963fi
10964rm -f conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966fi
10967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10969if test `eval echo '${'$as_ac_var'}'` = yes; then
10970 cat >>confdefs.h <<_ACEOF
10971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10972_ACEOF
10973
10974echo "$as_me:$LINENO: checking for _doprnt" >&5
10975echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10976if test "${ac_cv_func__doprnt+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10987#define _doprnt innocuous__doprnt
93636bde 10988
b0cacab0
TT
10989/* System header to define __stub macros and hopefully few prototypes,
10990 which can conflict with char _doprnt (); below.
10991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10992 <limits.h> exists even on freestanding compilers. */
93636bde 10993
b0cacab0
TT
10994#ifdef __STDC__
10995# include <limits.h>
10996#else
10997# include <assert.h>
10998#endif
10999
11000#undef _doprnt
93636bde 11001
50e1e10f 11002/* Override any gcc2 internal prototype to avoid an error. */
b0cacab0
TT
11003#ifdef __cplusplus
11004extern "C"
11005{
11006#endif
21c84b71 11007/* We use char because int might match the return type of a gcc2
b0cacab0
TT
11008 builtin and then its argument prototype would still apply. */
11009char _doprnt ();
50e1e10f
TT
11010/* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013#if defined (__stub__doprnt) || defined (__stub____doprnt)
11014choke me
11015#else
b0cacab0
TT
11016char (*f) () = _doprnt;
11017#endif
11018#ifdef __cplusplus
11019}
50e1e10f
TT
11020#endif
11021
b0cacab0
TT
11022int
11023main ()
11024{
11025return f != _doprnt;
11026 ;
11027 return 0;
11028}
11029_ACEOF
11030rm -f conftest.$ac_objext conftest$ac_exeext
11031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11032 (eval $ac_link) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_func__doprnt=yes
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056ac_cv_func__doprnt=no
11057fi
11058rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060fi
11061echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11062echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11063if test $ac_cv_func__doprnt = yes; then
11064
11065cat >>confdefs.h <<\_ACEOF
50e1e10f 11066#define HAVE_DOPRNT 1
b0cacab0 11067_ACEOF
50e1e10f 11068
50e1e10f
TT
11069fi
11070
11071fi
b0cacab0 11072done
50e1e10f 11073
b0cacab0
TT
11074
11075echo "$as_me:$LINENO: checking whether d_reclen declared in dirent" >&5
11076echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
11077if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
fff45483 11079else
b0cacab0
TT
11080 cat >conftest.$ac_ext <<_ACEOF
11081/* confdefs.h. */
11082_ACEOF
11083cat confdefs.h >>conftest.$ac_ext
11084cat >>conftest.$ac_ext <<_ACEOF
11085/* end confdefs.h. */
fff45483 11086#include <dirent.h>
b0cacab0
TT
11087int
11088main ()
11089{
11090struct dirent de; de.d_reclen = 0;
11091 ;
11092 return 0;
11093}
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11110 { ac_try='test -s conftest.$ac_objext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
fff45483
TT
11116 e2fsprogs_cv_have_d_reclen_dirent=yes
11117else
b0cacab0
TT
11118 echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121e2fsprogs_cv_have_d_reclen_dirent=no
fff45483 11122fi
b0cacab0 11123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fff45483
TT
11124fi
11125
b0cacab0
TT
11126echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
11127echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
fff45483 11128if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
b0cacab0 11129 cat >>confdefs.h <<\_ACEOF
fff45483 11130#define HAVE_RECLEN_DIRENT 1
b0cacab0 11131_ACEOF
fff45483
TT
11132
11133fi
b0cacab0
TT
11134echo "$as_me:$LINENO: checking whether ssize_t declared" >&5
11135echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
11136if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
fff45483 11138else
b0cacab0
TT
11139 cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
fff45483 11145#include <sys/types.h>
b0cacab0
TT
11146int
11147main ()
11148{
11149ssize_t a = 0;
11150 ;
11151 return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext
11155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
fff45483
TT
11175 e2fsprogs_cv_have_ssize_t=yes
11176else
b0cacab0
TT
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180e2fsprogs_cv_have_ssize_t=no
fff45483 11181fi
b0cacab0 11182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fff45483
TT
11183fi
11184
b0cacab0
TT
11185echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_ssize_t" >&5
11186echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
fff45483 11187if test "$e2fsprogs_cv_have_ssize_t" = yes; then
b0cacab0 11188 cat >>confdefs.h <<\_ACEOF
fff45483 11189#define HAVE_TYPE_SSIZE_T 1
b0cacab0 11190_ACEOF
fff45483
TT
11191
11192fi
b0cacab0
TT
11193echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5
11194echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
11195if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b9c4de 11197else
b0cacab0
TT
11198 cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h. */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h. */
b0b9c4de 11204#include <unistd.h>
b0cacab0
TT
11205int
11206main ()
11207{
b0b9c4de 11208extern int llseek(int);
b0cacab0
TT
11209 ;
11210 return 0;
11211}
11212_ACEOF
11213rm -f conftest.$ac_objext
11214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11215 (eval $ac_compile) 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
b0b9c4de
TT
11234 e2fsprogs_cv_have_llseek_prototype=no
11235else
b0cacab0
TT
11236 echo "$as_me: failed program was:" >&5
11237sed 's/^/| /' conftest.$ac_ext >&5
11238
11239e2fsprogs_cv_have_llseek_prototype=yes
b0b9c4de 11240fi
b0cacab0 11241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b0b9c4de
TT
11242fi
11243
b0cacab0
TT
11244echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_llseek_prototype" >&5
11245echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
b0b9c4de 11246if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
b0cacab0 11247 cat >>confdefs.h <<\_ACEOF
b0b9c4de 11248#define HAVE_LLSEEK_PROTOTYPE 1
b0cacab0 11249_ACEOF
b0b9c4de 11250
6928adc9 11251fi
b0cacab0
TT
11252echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5
11253echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
11254if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
6928adc9 11256else
b0cacab0
TT
11257 cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
6928adc9
TT
11263#define _LARGEFILE_SOURCE
11264#define _LARGEFILE64_SOURCE
11265#include <unistd.h>
b0cacab0
TT
11266int
11267main ()
11268{
6928adc9 11269extern int lseek64(int);
b0cacab0
TT
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274rm -f conftest.$ac_objext
11275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276 (eval $ac_compile) 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
6928adc9
TT
11295 e2fsprogs_cv_have_lseek64_prototype=no
11296else
b0cacab0
TT
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300e2fsprogs_cv_have_lseek64_prototype=yes
6928adc9 11301fi
b0cacab0 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6928adc9
TT
11303fi
11304
b0cacab0
TT
11305echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
11306echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
6928adc9 11307if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
b0cacab0 11308 cat >>confdefs.h <<\_ACEOF
6928adc9 11309#define HAVE_LSEEK64_PROTOTYPE 1
b0cacab0 11310_ACEOF
6928adc9 11311
50e1e10f
TT
11312fi
11313if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
b0cacab0 11314 # if cross-compiling, with no cached values, just assume something common.
50e1e10f
TT
11315 ac_cv_sizeof_short=2
11316 ac_cv_sizeof_int=4
11317 ac_cv_sizeof_long=4
6c133523 11318 ac_cv_sizeof_long_long=8
b0cacab0
TT
11319 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11320echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11321fi
11322echo "$as_me:$LINENO: checking for short" >&5
11323echo $ECHO_N "checking for short... $ECHO_C" >&6
11324if test "${ac_cv_type_short+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333$ac_includes_default
11334int
11335main ()
11336{
11337if ((short *) 0)
11338 return 0;
11339if (sizeof (short))
11340 return 0;
11341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 ac_cv_type_short=yes
11367else
11368 echo "$as_me: failed program was:" >&5
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
11371ac_cv_type_short=no
11372fi
11373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11374fi
11375echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11376echo "${ECHO_T}$ac_cv_type_short" >&6
11377
11378echo "$as_me:$LINENO: checking size of short" >&5
11379echo $ECHO_N "checking size of short... $ECHO_C" >&6
11380if test "${ac_cv_sizeof_short+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 if test "$ac_cv_type_short" = yes; then
11384 # The cast to unsigned long works around a bug in the HP C Compiler
11385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11387 # This bug is HP SR number 8606223364.
11388 if test "$cross_compiling" = yes; then
11389 # Depending upon the size, compute the lo and hi bounds.
11390cat >conftest.$ac_ext <<_ACEOF
11391/* confdefs.h. */
11392_ACEOF
11393cat confdefs.h >>conftest.$ac_ext
11394cat >>conftest.$ac_ext <<_ACEOF
11395/* end confdefs.h. */
11396$ac_includes_default
11397int
11398main ()
11399{
11400static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11401test_array [0] = 0
11402
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407rm -f conftest.$ac_objext
11408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409 (eval $ac_compile) 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_lo=0 ac_mid=0
11429 while :; do
11430 cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
11436$ac_includes_default
11437int
11438main ()
11439{
11440static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11441test_array [0] = 0
11442
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447rm -f conftest.$ac_objext
11448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_hi=$ac_mid; break
11469else
11470 echo "$as_me: failed program was:" >&5
11471sed 's/^/| /' conftest.$ac_ext >&5
11472
11473ac_lo=`expr $ac_mid + 1`
11474 if test $ac_lo -le $ac_mid; then
11475 ac_lo= ac_hi=
11476 break
11477 fi
11478 ac_mid=`expr 2 '*' $ac_mid + 1`
11479fi
11480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11481 done
11482else
11483 echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492$ac_includes_default
11493int
11494main ()
11495{
11496static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11497test_array [0] = 0
11498
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext
11504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11505 (eval $ac_compile) 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_hi=-1 ac_mid=-1
11525 while :; do
11526 cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
11532$ac_includes_default
11533int
11534main ()
11535{
11536static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11537test_array [0] = 0
11538
11539 ;
11540 return 0;
11541}
11542_ACEOF
11543rm -f conftest.$ac_objext
11544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545 (eval $ac_compile) 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest.$ac_objext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_lo=$ac_mid; break
11565else
11566 echo "$as_me: failed program was:" >&5
11567sed 's/^/| /' conftest.$ac_ext >&5
11568
11569ac_hi=`expr '(' $ac_mid ')' - 1`
11570 if test $ac_mid -le $ac_hi; then
11571 ac_lo= ac_hi=
11572 break
11573 fi
11574 ac_mid=`expr 2 '*' $ac_mid`
11575fi
11576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11577 done
11578else
11579 echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582ac_lo= ac_hi=
11583fi
11584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585fi
11586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587# Binary search between lo and hi bounds.
11588while test "x$ac_lo" != "x$ac_hi"; do
11589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11590 cat >conftest.$ac_ext <<_ACEOF
11591/* confdefs.h. */
11592_ACEOF
11593cat confdefs.h >>conftest.$ac_ext
11594cat >>conftest.$ac_ext <<_ACEOF
11595/* end confdefs.h. */
11596$ac_includes_default
11597int
11598main ()
11599{
11600static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11601test_array [0] = 0
11602
11603 ;
11604 return 0;
11605}
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609 (eval $ac_compile) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest.$ac_objext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_hi=$ac_mid
11629else
11630 echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
11633ac_lo=`expr '(' $ac_mid ')' + 1`
11634fi
11635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11636done
11637case $ac_lo in
11638?*) ac_cv_sizeof_short=$ac_lo;;
11639'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11640See \`config.log' for more details." >&5
11641echo "$as_me: error: cannot compute sizeof (short), 77
11642See \`config.log' for more details." >&2;}
11643 { (exit 1); exit 1; }; } ;;
11644esac
11645else
11646 if test "$cross_compiling" = yes; then
11647 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11648echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11649 { (exit 1); exit 1; }; }
11650else
11651 cat >conftest.$ac_ext <<_ACEOF
11652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657$ac_includes_default
11658long longval () { return (long) (sizeof (short)); }
11659unsigned long ulongval () { return (long) (sizeof (short)); }
11660#include <stdio.h>
11661#include <stdlib.h>
11662int
11663main ()
11664{
11665
11666 FILE *f = fopen ("conftest.val", "w");
11667 if (! f)
11668 exit (1);
11669 if (((long) (sizeof (short))) < 0)
11670 {
11671 long i = longval ();
11672 if (i != ((long) (sizeof (short))))
11673 exit (1);
11674 fprintf (f, "%ld\n", i);
11675 }
11676 else
11677 {
11678 unsigned long i = ulongval ();
11679 if (i != ((long) (sizeof (short))))
11680 exit (1);
11681 fprintf (f, "%lu\n", i);
11682 }
11683 exit (ferror (f) || fclose (f) != 0);
11684
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest$ac_exeext
11690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_sizeof_short=`cat conftest.val`
11701else
11702 echo "$as_me: program exited with status $ac_status" >&5
11703echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706( exit $ac_status )
11707{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11708See \`config.log' for more details." >&5
11709echo "$as_me: error: cannot compute sizeof (short), 77
11710See \`config.log' for more details." >&2;}
11711 { (exit 1); exit 1; }; }
11712fi
11713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11714fi
11715fi
11716rm -f conftest.val
11717else
11718 ac_cv_sizeof_short=0
11719fi
11720fi
11721echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11722echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11723cat >>confdefs.h <<_ACEOF
11724#define SIZEOF_SHORT $ac_cv_sizeof_short
11725_ACEOF
11726
11727
11728echo "$as_me:$LINENO: checking for int" >&5
11729echo $ECHO_N "checking for int... $ECHO_C" >&6
11730if test "${ac_cv_type_int+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739$ac_includes_default
11740int
11741main ()
11742{
11743if ((int *) 0)
11744 return 0;
11745if (sizeof (int))
11746 return 0;
11747 ;
11748 return 0;
11749}
11750_ACEOF
11751rm -f conftest.$ac_objext
11752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11753 (eval $ac_compile) 2>conftest.er1
11754 ac_status=$?
11755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11772 ac_cv_type_int=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_cv_type_int=no
11778fi
11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780fi
11781echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11782echo "${ECHO_T}$ac_cv_type_int" >&6
11783
11784echo "$as_me:$LINENO: checking size of int" >&5
11785echo $ECHO_N "checking size of int... $ECHO_C" >&6
11786if test "${ac_cv_sizeof_int+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 if test "$ac_cv_type_int" = yes; then
11790 # The cast to unsigned long works around a bug in the HP C Compiler
11791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11793 # This bug is HP SR number 8606223364.
11794 if test "$cross_compiling" = yes; then
11795 # Depending upon the size, compute the lo and hi bounds.
11796cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802$ac_includes_default
11803int
11804main ()
11805{
11806static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11807test_array [0] = 0
11808
11809 ;
11810 return 0;
11811}
11812_ACEOF
11813rm -f conftest.$ac_objext
11814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815 (eval $ac_compile) 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_lo=0 ac_mid=0
11835 while :; do
11836 cat >conftest.$ac_ext <<_ACEOF
11837/* confdefs.h. */
11838_ACEOF
11839cat confdefs.h >>conftest.$ac_ext
11840cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */
11842$ac_includes_default
11843int
11844main ()
11845{
11846static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11847test_array [0] = 0
11848
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext
11854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_hi=$ac_mid; break
11875else
11876 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879ac_lo=`expr $ac_mid + 1`
11880 if test $ac_lo -le $ac_mid; then
11881 ac_lo= ac_hi=
11882 break
11883 fi
11884 ac_mid=`expr 2 '*' $ac_mid + 1`
11885fi
11886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 done
11888else
11889 echo "$as_me: failed program was:" >&5
11890sed 's/^/| /' conftest.$ac_ext >&5
11891
11892cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898$ac_includes_default
11899int
11900main ()
11901{
11902static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11903test_array [0] = 0
11904
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_hi=-1 ac_mid=-1
11931 while :; do
11932 cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938$ac_includes_default
11939int
11940main ()
11941{
11942static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11943test_array [0] = 0
11944
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest.$ac_objext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 ac_lo=$ac_mid; break
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975ac_hi=`expr '(' $ac_mid ')' - 1`
11976 if test $ac_mid -le $ac_hi; then
11977 ac_lo= ac_hi=
11978 break
11979 fi
11980 ac_mid=`expr 2 '*' $ac_mid`
11981fi
11982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 done
11984else
11985 echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988ac_lo= ac_hi=
11989fi
11990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11991fi
11992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993# Binary search between lo and hi bounds.
11994while test "x$ac_lo" != "x$ac_hi"; do
11995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11996 cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002$ac_includes_default
12003int
12004main ()
12005{
12006static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12007test_array [0] = 0
12008
12009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12015 (eval $ac_compile) 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_hi=$ac_mid
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039ac_lo=`expr '(' $ac_mid ')' + 1`
12040fi
12041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12042done
12043case $ac_lo in
12044?*) ac_cv_sizeof_int=$ac_lo;;
12045'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12046See \`config.log' for more details." >&5
12047echo "$as_me: error: cannot compute sizeof (int), 77
12048See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; } ;;
12050esac
12051else
12052 if test "$cross_compiling" = yes; then
12053 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12054echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12055 { (exit 1); exit 1; }; }
12056else
12057 cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063$ac_includes_default
12064long longval () { return (long) (sizeof (int)); }
12065unsigned long ulongval () { return (long) (sizeof (int)); }
12066#include <stdio.h>
12067#include <stdlib.h>
12068int
12069main ()
12070{
12071
12072 FILE *f = fopen ("conftest.val", "w");
12073 if (! f)
12074 exit (1);
12075 if (((long) (sizeof (int))) < 0)
12076 {
12077 long i = longval ();
12078 if (i != ((long) (sizeof (int))))
12079 exit (1);
12080 fprintf (f, "%ld\n", i);
12081 }
12082 else
12083 {
12084 unsigned long i = ulongval ();
12085 if (i != ((long) (sizeof (int))))
12086 exit (1);
12087 fprintf (f, "%lu\n", i);
12088 }
12089 exit (ferror (f) || fclose (f) != 0);
12090
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest$ac_exeext
12096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 ac_cv_sizeof_int=`cat conftest.val`
12107else
12108 echo "$as_me: program exited with status $ac_status" >&5
12109echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112( exit $ac_status )
12113{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12114See \`config.log' for more details." >&5
12115echo "$as_me: error: cannot compute sizeof (int), 77
12116See \`config.log' for more details." >&2;}
12117 { (exit 1); exit 1; }; }
12118fi
12119rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12120fi
12121fi
12122rm -f conftest.val
12123else
12124 ac_cv_sizeof_int=0
12125fi
07a0db15 12126fi
b0cacab0
TT
12127echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12128echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12129cat >>confdefs.h <<_ACEOF
12130#define SIZEOF_INT $ac_cv_sizeof_int
12131_ACEOF
12132
12133
12134echo "$as_me:$LINENO: checking for long" >&5
12135echo $ECHO_N "checking for long... $ECHO_C" >&6
12136if test "${ac_cv_type_long+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
07a0db15 12138else
b0cacab0
TT
12139 cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145$ac_includes_default
12146int
12147main ()
12148{
12149if ((long *) 0)
12150 return 0;
12151if (sizeof (long))
12152 return 0;
12153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12178 ac_cv_type_long=yes
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183ac_cv_type_long=no
12184fi
12185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12186fi
12187echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12188echo "${ECHO_T}$ac_cv_type_long" >&6
12189
12190echo "$as_me:$LINENO: checking size of long" >&5
12191echo $ECHO_N "checking size of long... $ECHO_C" >&6
12192if test "${ac_cv_sizeof_long+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194else
12195 if test "$ac_cv_type_long" = yes; then
12196 # The cast to unsigned long works around a bug in the HP C Compiler
12197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12199 # This bug is HP SR number 8606223364.
07a0db15 12200 if test "$cross_compiling" = yes; then
b0cacab0
TT
12201 # Depending upon the size, compute the lo and hi bounds.
12202cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208$ac_includes_default
12209int
12210main ()
12211{
12212static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12213test_array [0] = 0
12214
12215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext
12220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest.$ac_objext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_lo=0 ac_mid=0
12241 while :; do
12242 cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248$ac_includes_default
12249int
12250main ()
12251{
12252static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12253test_array [0] = 0
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_hi=$ac_mid; break
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_lo=`expr $ac_mid + 1`
12286 if test $ac_lo -le $ac_mid; then
12287 ac_lo= ac_hi=
12288 break
12289 fi
12290 ac_mid=`expr 2 '*' $ac_mid + 1`
12291fi
12292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293 done
07a0db15 12294else
b0cacab0
TT
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298cat >conftest.$ac_ext <<_ACEOF
12299/* confdefs.h. */
12300_ACEOF
12301cat confdefs.h >>conftest.$ac_ext
12302cat >>conftest.$ac_ext <<_ACEOF
12303/* end confdefs.h. */
12304$ac_includes_default
12305int
12306main ()
50e1e10f 12307{
b0cacab0
TT
12308static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12309test_array [0] = 0
12310
12311 ;
12312 return 0;
50e1e10f 12313}
b0cacab0
TT
12314_ACEOF
12315rm -f conftest.$ac_objext
12316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317 (eval $ac_compile) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_hi=-1 ac_mid=-1
12337 while :; do
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344$ac_includes_default
12345int
12346main ()
12347{
12348static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12349test_array [0] = 0
12350
12351 ;
12352 return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext
12356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357 (eval $ac_compile) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_lo=$ac_mid; break
12377else
12378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381ac_hi=`expr '(' $ac_mid ')' - 1`
12382 if test $ac_mid -le $ac_hi; then
12383 ac_lo= ac_hi=
12384 break
12385 fi
12386 ac_mid=`expr 2 '*' $ac_mid`
12387fi
12388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12389 done
07a0db15 12390else
b0cacab0
TT
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
93636bde 12393
b0cacab0 12394ac_lo= ac_hi=
93636bde 12395fi
b0cacab0
TT
12396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12397fi
12398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12399# Binary search between lo and hi bounds.
12400while test "x$ac_lo" != "x$ac_hi"; do
12401 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12402 cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408$ac_includes_default
12409int
12410main ()
12411{
12412static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12413test_array [0] = 0
93636bde 12414
b0cacab0
TT
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext
12420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421 (eval $ac_compile) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_hi=$ac_mid
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445ac_lo=`expr '(' $ac_mid ')' + 1`
12446fi
12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448done
12449case $ac_lo in
12450?*) ac_cv_sizeof_long=$ac_lo;;
12451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12452See \`config.log' for more details." >&5
12453echo "$as_me: error: cannot compute sizeof (long), 77
12454See \`config.log' for more details." >&2;}
12455 { (exit 1); exit 1; }; } ;;
12456esac
50e1e10f 12457else
07a0db15 12458 if test "$cross_compiling" = yes; then
b0cacab0
TT
12459 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12460echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12461 { (exit 1); exit 1; }; }
12462else
12463 cat >conftest.$ac_ext <<_ACEOF
12464/* confdefs.h. */
12465_ACEOF
12466cat confdefs.h >>conftest.$ac_ext
12467cat >>conftest.$ac_ext <<_ACEOF
12468/* end confdefs.h. */
12469$ac_includes_default
12470long longval () { return (long) (sizeof (long)); }
12471unsigned long ulongval () { return (long) (sizeof (long)); }
93636bde 12472#include <stdio.h>
b0cacab0
TT
12473#include <stdlib.h>
12474int
12475main ()
07a0db15 12476{
b0cacab0
TT
12477
12478 FILE *f = fopen ("conftest.val", "w");
12479 if (! f)
12480 exit (1);
12481 if (((long) (sizeof (long))) < 0)
12482 {
12483 long i = longval ();
12484 if (i != ((long) (sizeof (long))))
12485 exit (1);
12486 fprintf (f, "%ld\n", i);
12487 }
12488 else
12489 {
12490 unsigned long i = ulongval ();
12491 if (i != ((long) (sizeof (long))))
12492 exit (1);
12493 fprintf (f, "%lu\n", i);
12494 }
12495 exit (ferror (f) || fclose (f) != 0);
12496
12497 ;
12498 return 0;
07a0db15 12499}
b0cacab0
TT
12500_ACEOF
12501rm -f conftest$ac_exeext
12502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12503 (eval $ac_link) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_cv_sizeof_long=`cat conftest.val`
12513else
12514 echo "$as_me: program exited with status $ac_status" >&5
12515echo "$as_me: failed program was:" >&5
12516sed 's/^/| /' conftest.$ac_ext >&5
12517
12518( exit $ac_status )
12519{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12520See \`config.log' for more details." >&5
12521echo "$as_me: error: cannot compute sizeof (long), 77
12522See \`config.log' for more details." >&2;}
12523 { (exit 1); exit 1; }; }
12524fi
12525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12526fi
12527fi
12528rm -f conftest.val
07a0db15 12529else
b0cacab0 12530 ac_cv_sizeof_long=0
93636bde 12531fi
50e1e10f 12532fi
b0cacab0
TT
12533echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12534echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12535cat >>confdefs.h <<_ACEOF
12536#define SIZEOF_LONG $ac_cv_sizeof_long
12537_ACEOF
50e1e10f 12538
93636bde 12539
b0cacab0
TT
12540echo "$as_me:$LINENO: checking for long long" >&5
12541echo $ECHO_N "checking for long long... $ECHO_C" >&6
12542if test "${ac_cv_type_long_long+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 12544else
b0cacab0
TT
12545 cat >conftest.$ac_ext <<_ACEOF
12546/* confdefs.h. */
12547_ACEOF
12548cat confdefs.h >>conftest.$ac_ext
12549cat >>conftest.$ac_ext <<_ACEOF
12550/* end confdefs.h. */
12551$ac_includes_default
12552int
12553main ()
12554{
12555if ((long long *) 0)
12556 return 0;
12557if (sizeof (long long))
12558 return 0;
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext
12564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565 (eval $ac_compile) 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12584 ac_cv_type_long_long=yes
12585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589ac_cv_type_long_long=no
12590fi
12591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12592fi
12593echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12594echo "${ECHO_T}$ac_cv_type_long_long" >&6
12595
12596echo "$as_me:$LINENO: checking size of long long" >&5
12597echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12598if test "${ac_cv_sizeof_long_long+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601 if test "$ac_cv_type_long_long" = yes; then
12602 # The cast to unsigned long works around a bug in the HP C Compiler
12603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12605 # This bug is HP SR number 8606223364.
50e1e10f 12606 if test "$cross_compiling" = yes; then
b0cacab0
TT
12607 # Depending upon the size, compute the lo and hi bounds.
12608cat >conftest.$ac_ext <<_ACEOF
12609/* confdefs.h. */
12610_ACEOF
12611cat confdefs.h >>conftest.$ac_ext
12612cat >>conftest.$ac_ext <<_ACEOF
12613/* end confdefs.h. */
12614$ac_includes_default
12615int
12616main ()
12617{
12618static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12619test_array [0] = 0
12620
12621 ;
12622 return 0;
12623}
12624_ACEOF
12625rm -f conftest.$ac_objext
12626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_lo=0 ac_mid=0
12647 while :; do
12648 cat >conftest.$ac_ext <<_ACEOF
12649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654$ac_includes_default
12655int
12656main ()
12657{
12658static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12659test_array [0] = 0
12660
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_hi=$ac_mid; break
12687else
12688 echo "$as_me: failed program was:" >&5
12689sed 's/^/| /' conftest.$ac_ext >&5
12690
12691ac_lo=`expr $ac_mid + 1`
12692 if test $ac_lo -le $ac_mid; then
12693 ac_lo= ac_hi=
12694 break
12695 fi
12696 ac_mid=`expr 2 '*' $ac_mid + 1`
12697fi
12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 done
50e1e10f 12700else
b0cacab0
TT
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710$ac_includes_default
12711int
12712main ()
50e1e10f 12713{
b0cacab0
TT
12714static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12715test_array [0] = 0
12716
12717 ;
12718 return 0;
50e1e10f 12719}
b0cacab0
TT
12720_ACEOF
12721rm -f conftest.$ac_objext
12722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12723 (eval $ac_compile) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_hi=-1 ac_mid=-1
12743 while :; do
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750$ac_includes_default
12751int
12752main ()
12753{
12754static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12755test_array [0] = 0
12756
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761rm -f conftest.$ac_objext
12762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>conftest.er1
12764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest.$ac_objext'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 ac_lo=$ac_mid; break
12783else
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
12787ac_hi=`expr '(' $ac_mid ')' - 1`
12788 if test $ac_mid -le $ac_hi; then
12789 ac_lo= ac_hi=
12790 break
12791 fi
12792 ac_mid=`expr 2 '*' $ac_mid`
12793fi
12794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 done
07a0db15 12796else
b0cacab0
TT
12797 echo "$as_me: failed program was:" >&5
12798sed 's/^/| /' conftest.$ac_ext >&5
93636bde 12799
b0cacab0 12800ac_lo= ac_hi=
07a0db15 12801fi
b0cacab0
TT
12802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12803fi
12804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805# Binary search between lo and hi bounds.
12806while test "x$ac_lo" != "x$ac_hi"; do
12807 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814$ac_includes_default
12815int
12816main ()
12817{
12818static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12819test_array [0] = 0
93636bde 12820
b0cacab0
TT
12821 ;
12822 return 0;
12823}
12824_ACEOF
12825rm -f conftest.$ac_objext
12826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest.$ac_objext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_hi=$ac_mid
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851ac_lo=`expr '(' $ac_mid ')' + 1`
12852fi
12853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12854done
12855case $ac_lo in
12856?*) ac_cv_sizeof_long_long=$ac_lo;;
12857'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12858See \`config.log' for more details." >&5
12859echo "$as_me: error: cannot compute sizeof (long long), 77
12860See \`config.log' for more details." >&2;}
12861 { (exit 1); exit 1; }; } ;;
12862esac
fc6d9d51 12863else
07a0db15 12864 if test "$cross_compiling" = yes; then
b0cacab0
TT
12865 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12866echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12867 { (exit 1); exit 1; }; }
12868else
12869 cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875$ac_includes_default
12876long longval () { return (long) (sizeof (long long)); }
12877unsigned long ulongval () { return (long) (sizeof (long long)); }
93636bde 12878#include <stdio.h>
b0cacab0
TT
12879#include <stdlib.h>
12880int
12881main ()
07a0db15 12882{
b0cacab0
TT
12883
12884 FILE *f = fopen ("conftest.val", "w");
12885 if (! f)
12886 exit (1);
12887 if (((long) (sizeof (long long))) < 0)
12888 {
12889 long i = longval ();
12890 if (i != ((long) (sizeof (long long))))
12891 exit (1);
12892 fprintf (f, "%ld\n", i);
12893 }
12894 else
12895 {
12896 unsigned long i = ulongval ();
12897 if (i != ((long) (sizeof (long long))))
12898 exit (1);
12899 fprintf (f, "%lu\n", i);
12900 }
12901 exit (ferror (f) || fclose (f) != 0);
12902
12903 ;
12904 return 0;
07a0db15 12905}
b0cacab0
TT
12906_ACEOF
12907rm -f conftest$ac_exeext
12908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_sizeof_long_long=`cat conftest.val`
12919else
12920 echo "$as_me: program exited with status $ac_status" >&5
12921echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924( exit $ac_status )
12925{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12926See \`config.log' for more details." >&5
12927echo "$as_me: error: cannot compute sizeof (long long), 77
12928See \`config.log' for more details." >&2;}
12929 { (exit 1); exit 1; }; }
12930fi
12931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12932fi
12933fi
12934rm -f conftest.val
07a0db15
TT
12935else
12936 ac_cv_sizeof_long_long=0
21c84b71 12937fi
fc6d9d51 12938fi
b0cacab0
TT
12939echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12940echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12941cat >>confdefs.h <<_ACEOF
fc6d9d51 12942#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
b0cacab0 12943_ACEOF
fc6d9d51 12944
93636bde 12945
50e1e10f
TT
12946SIZEOF_SHORT=$ac_cv_sizeof_short
12947SIZEOF_INT=$ac_cv_sizeof_int
12948SIZEOF_LONG=$ac_cv_sizeof_long
fc6d9d51
TT
12949SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12950
93636bde
TT
12951
12952
12953
b0cacab0
TT
12954echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12955echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12956if test "${ac_cv_c_bigendian+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
877eb6d9 12958else
b0cacab0
TT
12959 # See if sys/param.h defines the BYTE_ORDER macro.
12960cat >conftest.$ac_ext <<_ACEOF
12961/* confdefs.h. */
12962_ACEOF
12963cat confdefs.h >>conftest.$ac_ext
12964cat >>conftest.$ac_ext <<_ACEOF
12965/* end confdefs.h. */
877eb6d9
TT
12966#include <sys/types.h>
12967#include <sys/param.h>
877eb6d9 12968
b0cacab0
TT
12969int
12970main ()
12971{
877eb6d9
TT
12972#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12973 bogus endian macros
12974#endif
b0cacab0
TT
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
877eb6d9 13001 # It does; now see whether it defined to BIG_ENDIAN or not.
b0cacab0
TT
13002cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
877eb6d9
TT
13008#include <sys/types.h>
13009#include <sys/param.h>
877eb6d9 13010
b0cacab0
TT
13011int
13012main ()
13013{
877eb6d9
TT
13014#if BYTE_ORDER != BIG_ENDIAN
13015 not big endian
13016#endif
b0cacab0
TT
13017
13018 ;
13019 return 0;
13020}
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
877eb6d9
TT
13043 ac_cv_c_bigendian=yes
13044else
b0cacab0
TT
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048ac_cv_c_bigendian=no
877eb6d9 13049fi
b0cacab0 13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13051else
b0cacab0
TT
13052 echo "$as_me: failed program was:" >&5
13053sed 's/^/| /' conftest.$ac_ext >&5
13054
13055# It does not; compile a test program.
877eb6d9 13056if test "$cross_compiling" = yes; then
b0cacab0
TT
13057 # try to guess the endianness by grepping values into an object file
13058 ac_cv_c_bigendian=unknown
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13066short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13067void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13068short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13069short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13070void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13071int
13072main ()
13073{
13074 _ascii (); _ebcdic ();
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079rm -f conftest.$ac_objext
13080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest.$ac_objext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13101 ac_cv_c_bigendian=yes
13102fi
13103if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13104 if test "$ac_cv_c_bigendian" = unknown; then
13105 ac_cv_c_bigendian=no
13106 else
13107 # finding both strings is unlikely to happen, but who knows?
13108 ac_cv_c_bigendian=unknown
13109 fi
13110fi
13111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115fi
13116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13117else
b0cacab0
TT
13118 cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124int
13125main ()
13126{
877eb6d9
TT
13127 /* Are we little or big endian? From Harbison&Steele. */
13128 union
13129 {
13130 long l;
13131 char c[sizeof (long)];
13132 } u;
13133 u.l = 1;
13134 exit (u.c[sizeof (long) - 1] == 1);
13135}
b0cacab0
TT
13136_ACEOF
13137rm -f conftest$ac_exeext
13138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
877eb6d9
TT
13148 ac_cv_c_bigendian=no
13149else
b0cacab0
TT
13150 echo "$as_me: program exited with status $ac_status" >&5
13151echo "$as_me: failed program was:" >&5
13152sed 's/^/| /' conftest.$ac_ext >&5
13153
13154( exit $ac_status )
13155ac_cv_c_bigendian=yes
877eb6d9 13156fi
b0cacab0 13157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
877eb6d9 13158fi
877eb6d9 13159fi
b0cacab0 13160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 13161fi
b0cacab0
TT
13162echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13163echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13164case $ac_cv_c_bigendian in
13165 yes)
07a0db15 13166
b0cacab0 13167cat >>confdefs.h <<\_ACEOF
877eb6d9 13168#define WORDS_BIGENDIAN 1
b0cacab0
TT
13169_ACEOF
13170 ;;
13171 no)
13172 ;;
13173 *)
13174 { { echo "$as_me:$LINENO: error: unknown endianness
13175presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13176echo "$as_me: error: unknown endianness
13177presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13178 { (exit 1); exit 1; }; } ;;
13179esac
877eb6d9 13180
877eb6d9 13181
b0cacab0 13182for ac_header in inttypes.h
0c193f82 13183do
b0cacab0
TT
13184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13185if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190fi
13191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193else
13194 # Is the header compilable?
13195echo "$as_me:$LINENO: checking $ac_header usability" >&5
13196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13197cat >conftest.$ac_ext <<_ACEOF
13198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203$ac_includes_default
13204#include <$ac_header>
13205_ACEOF
13206rm -f conftest.$ac_objext
13207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208 (eval $ac_compile) 2>conftest.er1
13209 ac_status=$?
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -f conftest.er1
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_header_compiler=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232ac_header_compiler=no
13233fi
13234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13236echo "${ECHO_T}$ac_header_compiler" >&6
13237
13238# Is the header present?
13239echo "$as_me:$LINENO: checking $ac_header presence" >&5
13240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13241cat >conftest.$ac_ext <<_ACEOF
13242/* confdefs.h. */
13243_ACEOF
13244cat confdefs.h >>conftest.$ac_ext
13245cat >>conftest.$ac_ext <<_ACEOF
13246/* end confdefs.h. */
13247#include <$ac_header>
13248_ACEOF
13249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13251 ac_status=$?
13252 grep -v '^ *+' conftest.er1 >conftest.err
13253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } >/dev/null; then
13257 if test -s conftest.err; then
13258 ac_cpp_err=$ac_c_preproc_warn_flag
13259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13260 else
13261 ac_cpp_err=
13262 fi
13263else
13264 ac_cpp_err=yes
0c193f82 13265fi
b0cacab0
TT
13266if test -z "$ac_cpp_err"; then
13267 ac_header_preproc=yes
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_header_preproc=no
0c193f82 13273fi
b0cacab0
TT
13274rm -f conftest.err conftest.$ac_ext
13275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13276echo "${ECHO_T}$ac_header_preproc" >&6
13277
13278# So? What about this header?
13279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13280 yes:no: )
13281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13285 ac_header_preproc=yes
13286 ;;
13287 no:yes:* )
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13300 (
13301 cat <<\_ASBOX
13302## ------------------------------------------ ##
13303## Report this to the AC_PACKAGE_NAME lists. ##
13304## ------------------------------------------ ##
13305_ASBOX
13306 ) |
13307 sed "s/^/$as_me: WARNING: /" >&2
13308 ;;
13309esac
13310echo "$as_me:$LINENO: checking for $ac_header" >&5
13311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13312if eval "test \"\${$as_ac_Header+set}\" = set"; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
0c193f82 13314else
b0cacab0
TT
13315 eval "$as_ac_Header=\$ac_header_preproc"
13316fi
13317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13319
0c193f82 13320fi
b0cacab0
TT
13321if test `eval echo '${'$as_ac_Header'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324_ACEOF
13325
13326fi
13327
0c193f82
TT
13328done
13329
b0cacab0
TT
13330echo "$as_me:$LINENO: checking for intptr_t" >&5
13331echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13332if test "${ac_cv_type_intptr_t+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334else
13335 cat >conftest.$ac_ext <<_ACEOF
13336/* confdefs.h. */
13337_ACEOF
13338cat confdefs.h >>conftest.$ac_ext
13339cat >>conftest.$ac_ext <<_ACEOF
13340/* end confdefs.h. */
13341$ac_includes_default
13342int
13343main ()
13344{
13345if ((intptr_t *) 0)
13346 return 0;
13347if (sizeof (intptr_t))
13348 return 0;
13349 ;
13350 return 0;
13351}
13352_ACEOF
13353rm -f conftest.$ac_objext
13354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } &&
13362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest.$ac_objext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
0c193f82
TT
13374 ac_cv_type_intptr_t=yes
13375else
b0cacab0
TT
13376 echo "$as_me: failed program was:" >&5
13377sed 's/^/| /' conftest.$ac_ext >&5
0c193f82 13378
b0cacab0 13379ac_cv_type_intptr_t=no
0c193f82 13380fi
b0cacab0
TT
13381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13382fi
13383echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13384echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13385if test $ac_cv_type_intptr_t = yes; then
13386 :
13387else
13388
13389cat >>confdefs.h <<_ACEOF
0c193f82 13390#define intptr_t long
b0cacab0 13391_ACEOF
0c193f82
TT
13392
13393fi
13394
b0cacab0
TT
13395echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13396echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13397if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 13399else
b0cacab0
TT
13400 cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
50e1e10f 13406#include <sys/stat.h>
b0cacab0
TT
13407int
13408main ()
13409{
50e1e10f 13410struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13417 (eval $ac_compile) 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
50e1e10f
TT
13436 e2fsprogs_cv_struct_st_flags=yes
13437else
b0cacab0
TT
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441e2fsprogs_cv_struct_st_flags=no
50e1e10f 13442fi
b0cacab0 13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
13444fi
13445
b0cacab0
TT
13446echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13447echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
50e1e10f 13448if test "$e2fsprogs_cv_struct_st_flags" = yes; then
b0cacab0
TT
13449 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13450echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13451 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454 cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
c03bc4e8 13460#include <sys/stat.h>
b0cacab0
TT
13461int
13462main ()
13463{
c03bc4e8 13464struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
13465 ;
13466 return 0;
13467}
13468_ACEOF
13469rm -f conftest.$ac_objext
13470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13471 (eval $ac_compile) 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
c03bc4e8
TT
13490 e2fsprogs_cv_struct_st_flags_immut=yes
13491else
b0cacab0
TT
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495e2fsprogs_cv_struct_st_flags_immut=no
c03bc4e8 13496fi
b0cacab0 13497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c03bc4e8
TT
13498fi
13499
b0cacab0
TT
13500 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13501echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
c03bc4e8 13502 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
b0cacab0 13503 cat >>confdefs.h <<\_ACEOF
50e1e10f 13504#define HAVE_STAT_FLAGS 1
b0cacab0 13505_ACEOF
50e1e10f 13506
c03bc4e8 13507 fi
84ea6e70 13508fi
b0cacab0
TT
13509echo "$as_me:$LINENO: checking whether struct sockaddr contains sa_len" >&5
13510echo $ECHO_N "checking whether struct sockaddr contains sa_len... $ECHO_C" >&6
13511if test "${e2fsprogs_cv_sockaddr_sa_len+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
84ea6e70
TT
13520#include <sys/types.h>
13521#include <sys/socket.h>
13522
b0cacab0
TT
13523int
13524main ()
13525{
84ea6e70
TT
13526struct sockaddr sa;
13527sa.sa_len;
b0cacab0
TT
13528 ;
13529 return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext
13533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; } &&
13547 { ac_try='test -s conftest.$ac_objext'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
84ea6e70
TT
13553 e2fsprogs_cv_sockaddr_sa_len=yes
13554else
b0cacab0
TT
13555 echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558e2fsprogs_cv_sockaddr_sa_len=no
84ea6e70 13559fi
b0cacab0 13560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70
TT
13561fi
13562
b0cacab0
TT
13563echo "$as_me:$LINENO: result: $e2fsprogs_cv_sockaddr_sa_len" >&5
13564echo "${ECHO_T}$e2fsprogs_cv_sockaddr_sa_len" >&6
84ea6e70 13565if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
b0cacab0
TT
13566
13567cat >>confdefs.h <<_ACEOF
84ea6e70 13568#define HAVE_SA_LEN 1
b0cacab0 13569_ACEOF
84ea6e70 13570
50e1e10f 13571fi
b0cacab0
TT
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
1c29b097 13591for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
50e1e10f 13592do
b0cacab0
TT
13593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13594echo "$as_me:$LINENO: checking for $ac_func" >&5
13595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13596if eval "test \"\${$as_ac_var+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598else
13599 cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h. */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h. */
13605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13607#define $ac_func innocuous_$ac_func
13608
50e1e10f 13609/* System header to define __stub macros and hopefully few prototypes,
b0cacab0
TT
13610 which can conflict with char $ac_func (); below.
13611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612 <limits.h> exists even on freestanding compilers. */
13613
13614#ifdef __STDC__
13615# include <limits.h>
13616#else
13617# include <assert.h>
13618#endif
93636bde 13619
b0cacab0 13620#undef $ac_func
50e1e10f 13621
b0cacab0
TT
13622/* Override any gcc2 internal prototype to avoid an error. */
13623#ifdef __cplusplus
13624extern "C"
13625{
13626#endif
13627/* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */
13629char $ac_func ();
50e1e10f
TT
13630/* The GNU C library defines this for functions which it implements
13631 to always fail with ENOSYS. Some functions are actually named
13632 something starting with __ and the normal name is an alias. */
13633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13634choke me
13635#else
b0cacab0
TT
13636char (*f) () = $ac_func;
13637#endif
13638#ifdef __cplusplus
13639}
50e1e10f
TT
13640#endif
13641
b0cacab0
TT
13642int
13643main ()
13644{
13645return f != $ac_func;
13646 ;
13647 return 0;
13648}
13649_ACEOF
13650rm -f conftest.$ac_objext conftest$ac_exeext
13651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13652 (eval $ac_link) 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; } &&
13665 { ac_try='test -s conftest$ac_exeext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 eval "$as_ac_var=yes"
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676eval "$as_ac_var=no"
13677fi
13678rm -f conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext conftest.$ac_ext
13680fi
13681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13683if test `eval echo '${'$as_ac_var'}'` = yes; then
13684 cat >>confdefs.h <<_ACEOF
13685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13686_ACEOF
21c84b71 13687
50e1e10f
TT
13688fi
13689done
13690
fc6d9d51 13691SOCKET_LIB=''
b0cacab0
TT
13692echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13693echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13694if test "${ac_cv_lib_socket_socket+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 13696else
b0cacab0 13697 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13698LIBS="-lsocket $LIBS"
b0cacab0
TT
13699cat >conftest.$ac_ext <<_ACEOF
13700/* confdefs.h. */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h. */
93636bde 13705
b0cacab0
TT
13706/* Override any gcc2 internal prototype to avoid an error. */
13707#ifdef __cplusplus
13708extern "C"
13709#endif
13710/* We use char because int might match the return type of a gcc2
13711 builtin and then its argument prototype would still apply. */
13712char socket ();
13713int
13714main ()
13715{
13716socket ();
13717 ;
13718 return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext conftest$ac_exeext
13722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_lib_socket_socket=yes
13743else
13744 echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
13746
13747ac_cv_lib_socket_socket=no
13748fi
13749rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751LIBS=$ac_check_lib_save_LIBS
13752fi
13753echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13754echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13755if test $ac_cv_lib_socket_socket = yes; then
fc6d9d51 13756 SOCKET_LIB=-lsocket
50e1e10f 13757fi
fc6d9d51 13758
93636bde 13759
bbac86bb 13760DLOPEN_LIB=''
b0cacab0
TT
13761echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13762echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13763if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
bbac86bb 13765else
b0cacab0 13766 ac_check_lib_save_LIBS=$LIBS
bbac86bb 13767LIBS="-ldl $LIBS"
b0cacab0
TT
13768cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
13773/* end confdefs.h. */
13774
bbac86bb 13775/* Override any gcc2 internal prototype to avoid an error. */
b0cacab0
TT
13776#ifdef __cplusplus
13777extern "C"
13778#endif
bbac86bb 13779/* We use char because int might match the return type of a gcc2
b0cacab0
TT
13780 builtin and then its argument prototype would still apply. */
13781char dlopen ();
13782int
13783main ()
13784{
13785dlopen ();
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext conftest$ac_exeext
13791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792 (eval $ac_link) 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_lib_dl_dlopen=yes
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816ac_cv_lib_dl_dlopen=no
13817fi
13818rm -f conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820LIBS=$ac_check_lib_save_LIBS
13821fi
13822echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13823echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13824if test $ac_cv_lib_dl_dlopen = yes; then
bbac86bb 13825 DLOPEN_LIB=-ldl
b0cacab0 13826cat >>confdefs.h <<\_ACEOF
bbac86bb 13827#define HAVE_DLOPEN 1
b0cacab0 13828_ACEOF
bbac86bb 13829
bbac86bb
TT
13830fi
13831
93636bde 13832
b0cacab0
TT
13833echo "$as_me:$LINENO: checking for optreset" >&5
13834echo $ECHO_N "checking for optreset... $ECHO_C" >&6
13835if test "${ac_cv_have_optreset+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
50e1e10f 13837else
b0cacab0
TT
13838 cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
fc6d9d51 13844#include <unistd.h>
b0cacab0
TT
13845
13846_ACEOF
fc6d9d51 13847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0cacab0 13848 $EGREP "optreset" >/dev/null 2>&1; then
fc6d9d51 13849 ac_cv_have_optreset=yes
50e1e10f 13850else
fc6d9d51 13851 ac_cv_have_optreset=no
50e1e10f
TT
13852fi
13853rm -f conftest*
13854
13855fi
b0cacab0
TT
13856echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
13857echo "${ECHO_T}$ac_cv_have_optreset" >&6
fc6d9d51 13858if test $ac_cv_have_optreset = yes; then
b0cacab0 13859 cat >>confdefs.h <<\_ACEOF
fc6d9d51 13860#define HAVE_OPTRESET 1
b0cacab0 13861_ACEOF
50e1e10f
TT
13862
13863fi
8f3f29d3
TT
13864case "$host_os" in
13865linux*)
b0cacab0 13866 cat >>confdefs.h <<\_ACEOF
50e1e10f 13867#define HAVE_EXT2_IOCTLS 1
b0cacab0 13868_ACEOF
50e1e10f 13869
8f3f29d3
TT
13870 ;;
13871esac
e6f2bda3 13872LINUX_CMT="#"
fff45483
TT
13873CYGWIN_CMT="#"
13874UNIX_CMT=
e6f2bda3
TT
13875case "$host_os" in
13876linux*)
13877 LINUX_CMT=
fff45483
TT
13878 ;;
13879cygwin)
13880 CYGWIN_CMT=
13881 UNIX_CMT="#"
e6f2bda3
TT
13882 ;;
13883esac
13884
93636bde
TT
13885
13886
50e1e10f 13887case "$host_os" in
93636bde 13888linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
13889 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13890 root_prefix="";
13891 echo "On $host_os systems, root_prefix defaults to ''"
fc6d9d51
TT
13892 fi
13893 ;;
13894esac
fc6d9d51 13895case "$host_os" in
93636bde 13896linux* | gnu* | k*bsd*-gnu)
fc6d9d51 13897 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13898 prefix="/usr";
13899 echo "On $host_os systems, prefix defaults to /usr"
bff61a7a
TT
13900 if test "$mandir" = '${prefix}/man' ; then
13901 echo "...and mandir defaults to /usr/share/man"
13902 mandir=/usr/share/man
13903 fi
50e1e10f
TT
13904 fi
13905;;
13906esac
a4b2d3ce 13907if test "$root_prefix" = NONE ; then
ffe1991f 13908 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13909 root_prefix="$ac_default_prefix"
13910 else
13911 root_prefix="$prefix"
13912 fi
b5ffeade
TT
13913 root_bindir=$bindir
13914 root_sbindir=$sbindir
13915 root_libdir=$libdir
13916 root_sysconfdir=$sysconfdir
13917else
13918 root_bindir='${root_prefix}/bin'
13919 root_sbindir='${root_prefix}/sbin'
13920 root_libdir='${root_prefix}/lib'
13921 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce
TT
13922fi
13923
93636bde
TT
13924
13925
13926
13927
b0cacab0
TT
13928echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
13929echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
13930if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
ae851482
TT
13932else
13933 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
b0cacab0
TT
13934cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
ae851482 13940#include <stdio.h>
b0cacab0
TT
13941int
13942main ()
13943{
ae851482 13944fflush(stdout);
b0cacab0
TT
13945 ;
13946 return 0;
13947}
13948_ACEOF
13949rm -f conftest.$ac_objext conftest$ac_exeext
13950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 (eval $ac_link) 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
ae851482
TT
13970 ac_cv_e2fsprogs_use_static=yes
13971else
b0cacab0
TT
13972 echo "$as_me: failed program was:" >&5
13973sed 's/^/| /' conftest.$ac_ext >&5
13974
13975ac_cv_e2fsprogs_use_static=no
ae851482 13976fi
b0cacab0
TT
13977rm -f conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
13979LDFLAGS=$SAVE_LDFLAGS
13980fi
50e1e10f 13981
defde784
TT
13982case "$host_os" in
13983solaris2.*)
b0cacab0 13984 ac_cv_e2fsprogs_use_static=no
defde784
TT
13985;;
13986esac
b0cacab0
TT
13987echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
13988echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
74becf3c 13989LDFLAG_STATIC=
ae851482 13990if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 13991 LDFLAG_STATIC=-static
ae851482 13992fi
50e1e10f 13993
07a0db15
TT
13994case "$host_os" in
13995darwin*)
13996 echo "Using Apple Darwin / GNU libintl workaround"
b0cacab0 13997 cat >>confdefs.h <<\_ACEOF
07a0db15 13998#define _INTL_REDIRECT_MACROS 1
b0cacab0 13999_ACEOF
07a0db15
TT
14000
14001 ;;
14002esac
50e1e10f
TT
14003SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14004ET_DIR=`cd ${srcdir}/lib/et; pwd`
14005
93636bde 14006
50e1e10f
TT
14007if test "$cross_compiling" = yes ; then
14008 DO_TEST_SUITE=
14009else
14010 DO_TEST_SUITE=check
14011fi
14012
c6f35b8a
TT
14013INTL_FLAGS=
14014if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14015 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14016fi
14017
50e1e10f
TT
14018test -d lib || mkdir lib
14019test -d include || mkdir include
14020test -d include/linux || mkdir include/linux
defde784 14021test -d include/asm || mkdir include/asm
bff0cc95
TT
14022for i in MCONFIG Makefile e2fsprogs.spec \
14023 util/Makefile util/subst.conf util/gen-tarball \
14024 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
94ba8c75
TT
14025 lib/uuid/Makefile lib/uuid/uuid_types.h \
14026 lib/blkid/Makefile lib/blkid/blkid_types.h \
921f4ad5 14027 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75
TT
14028 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14029 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14030 if test -d `dirname ${srcdir}/$i` ; then
14031 outlist="$outlist $i"
14032 fi
14033done
b0cacab0
TT
14034 ac_config_files="$ac_config_files $outlist"
14035cat >confcache <<\_ACEOF
50e1e10f
TT
14036# This file is a shell script that caches the results of configure
14037# tests run on this system so they can be shared between configure
b0cacab0
TT
14038# scripts and configure runs, see configure's option --config-cache.
14039# It is not useful on other systems. If it contains results you don't
14040# want to keep, you may remove or edit it.
50e1e10f 14041#
b0cacab0
TT
14042# config.status only pays attention to the cache file if you give it
14043# the --recheck option to rerun configure.
50e1e10f 14044#
b0cacab0
TT
14045# `ac_cv_env_foo' variables (set or unset) will be overridden when
14046# loading this file, other *unset* `ac_cv_foo' will be assigned the
14047# following values.
14048
14049_ACEOF
14050
21c84b71
TT
14051# The following way of writing the cache mishandles newlines in values,
14052# but we know of no workaround that is simple, portable, and efficient.
14053# So, don't put newlines in cache variables' values.
50e1e10f
TT
14054# Ultrix sh set writes to stderr and can't be redirected directly,
14055# and sets the high bit in the cache file unless we assign to the vars.
b0cacab0
TT
14056{
14057 (set) 2>&1 |
14058 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14059 *ac_space=\ *)
14060 # `set' does not quote correctly, so add quotes (double-quote
14061 # substitution turns \\\\ into \\, and sed turns \\ into \).
14062 sed -n \
14063 "s/'/'\\\\''/g;
14064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14065 ;;
14066 *)
14067 # `set' quotes correctly as required by POSIX, so do not add quotes.
14068 sed -n \
14069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14070 ;;
14071 esac;
14072} |
14073 sed '
14074 t clear
14075 : clear
14076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14077 t end
14078 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14079 : end' >>confcache
14080if diff $cache_file confcache >/dev/null 2>&1; then :; else
50e1e10f 14081 if test -w $cache_file; then
b0cacab0
TT
14082 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14083 cat confcache >$cache_file
50e1e10f
TT
14084 else
14085 echo "not updating unwritable cache $cache_file"
14086 fi
14087fi
14088rm -f confcache
14089
50e1e10f
TT
14090test "x$prefix" = xNONE && prefix=$ac_default_prefix
14091# Let make expand exec_prefix.
14092test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14093
b0cacab0
TT
14094# VPATH may cause trouble with some makes, so we remove $(srcdir),
14095# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096# trailing colons and then remove the whole line if VPATH becomes empty
14097# (actually we leave an empty line to preserve line numbers).
50e1e10f 14098if test "x$srcdir" = x.; then
b0cacab0
TT
14099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14100s/:*\$(srcdir):*/:/;
14101s/:*\${srcdir}:*/:/;
14102s/:*@srcdir@:*/:/;
14103s/^\([^=]*=[ ]*\):*/\1/;
14104s/:*$//;
14105s/^[^=]*=[ ]*$//;
14106}'
50e1e10f
TT
14107fi
14108
50e1e10f
TT
14109# Transform confdefs.h into DEFS.
14110# Protect against shell expansion while executing Makefile rules.
14111# Protect against Makefile macro expansion.
b0cacab0
TT
14112#
14113# If the first sed substitution is executed (which looks for macros that
14114# take arguments), then we branch to the quote section. Otherwise,
14115# look for a macro that doesn't take arguments.
14116cat >confdef2opt.sed <<\_ACEOF
14117t clear
14118: clear
14119s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14120t quote
14121s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14122t quote
14123d
14124: quote
14125s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14126s,\[,\\&,g
14127s,\],\\&,g
14128s,\$,$$,g
14129p
14130_ACEOF
14131# We use echo to avoid assuming a particular line-breaking character.
14132# The extra dot is to prevent the shell from consuming trailing
14133# line-breaks from the sub-command output. A line-break within
14134# single-quotes doesn't work because, if this script is created in a
14135# platform that uses two characters for line-breaks (e.g., DOS), tr
14136# would break.
14137ac_LF_and_DOT=`echo; echo .`
14138DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14139rm -f confdef2opt.sed
14140
14141
14142ac_libobjs=
14143ac_ltlibobjs=
14144for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14145 # 1. Remove the extension, and $U if already installed.
14146 ac_i=`echo "$ac_i" |
14147 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14148 # 2. Add them.
14149 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14150 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14151done
14152LIBOBJS=$ac_libobjs
50e1e10f 14153
b0cacab0
TT
14154LTLIBOBJS=$ac_ltlibobjs
14155
14156
14157
14158: ${CONFIG_STATUS=./config.status}
14159ac_clean_files_save=$ac_clean_files
14160ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14161{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14162echo "$as_me: creating $CONFIG_STATUS" >&6;}
14163cat >$CONFIG_STATUS <<_ACEOF
14164#! $SHELL
14165# Generated by $as_me.
93636bde 14166# Run this file to recreate the current configuration.
93636bde 14167# Compiler output produced by configure, useful for debugging
b0cacab0 14168# configure, is in config.log if it exists.
07a0db15 14169
b0cacab0
TT
14170debug=false
14171ac_cs_recheck=false
14172ac_cs_silent=false
14173SHELL=\${CONFIG_SHELL-$SHELL}
14174_ACEOF
14175
14176cat >>$CONFIG_STATUS <<\_ACEOF
14177## --------------------- ##
14178## M4sh Initialization. ##
14179## --------------------- ##
14180
14181# Be Bourne compatible
14182if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14183 emulate sh
14184 NULLCMD=:
14185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14186 # is contrary to our usage. Disable this feature.
14187 alias -g '${1+"$@"}'='"$@"'
14188elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14189 set -o posix
14190fi
14191DUALCASE=1; export DUALCASE # for MKS sh
14192
14193# Support unset when possible.
14194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14195 as_unset=unset
14196else
14197 as_unset=false
14198fi
14199
14200
14201# Work around bugs in pre-3.0 UWIN ksh.
14202$as_unset ENV MAIL MAILPATH
14203PS1='$ '
14204PS2='> '
14205PS4='+ '
14206
14207# NLS nuisances.
14208for as_var in \
14209 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14210 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14211 LC_TELEPHONE LC_TIME
14212do
14213 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14214 eval $as_var=C; export $as_var
14215 else
14216 $as_unset $as_var
14217 fi
14218done
14219
14220# Required to use basename.
14221if expr a : '\(a\)' >/dev/null 2>&1; then
14222 as_expr=expr
14223else
14224 as_expr=false
14225fi
14226
14227if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14228 as_basename=basename
14229else
14230 as_basename=false
14231fi
14232
14233
14234# Name of the executable.
14235as_me=`$as_basename "$0" ||
14236$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14237 X"$0" : 'X\(//\)$' \| \
14238 X"$0" : 'X\(/\)$' \| \
14239 . : '\(.\)' 2>/dev/null ||
14240echo X/"$0" |
14241 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14242 /^X\/\(\/\/\)$/{ s//\1/; q; }
14243 /^X\/\(\/\).*/{ s//\1/; q; }
14244 s/.*/./; q'`
14245
14246
14247# PATH needs CR, and LINENO needs CR and PATH.
14248# Avoid depending upon Character Ranges.
14249as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14251as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14252as_cr_digits='0123456789'
14253as_cr_alnum=$as_cr_Letters$as_cr_digits
14254
14255# The user is always right.
14256if test "${PATH_SEPARATOR+set}" != set; then
14257 echo "#! /bin/sh" >conf$$.sh
14258 echo "exit 0" >>conf$$.sh
14259 chmod +x conf$$.sh
14260 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14261 PATH_SEPARATOR=';'
14262 else
14263 PATH_SEPARATOR=:
14264 fi
14265 rm -f conf$$.sh
14266fi
14267
14268
14269 as_lineno_1=$LINENO
14270 as_lineno_2=$LINENO
14271 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14272 test "x$as_lineno_1" != "x$as_lineno_2" &&
14273 test "x$as_lineno_3" = "x$as_lineno_2" || {
14274 # Find who we are. Look in the path if we contain no path at all
14275 # relative or not.
14276 case $0 in
14277 *[\\/]* ) as_myself=$0 ;;
14278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279for as_dir in $PATH
14280do
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14284done
14285
14286 ;;
14287 esac
14288 # We did not find ourselves, most probably we were run as `sh COMMAND'
14289 # in which case we are not to be found in the path.
14290 if test "x$as_myself" = x; then
14291 as_myself=$0
14292 fi
14293 if test ! -f "$as_myself"; then
14294 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14295echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14296 { (exit 1); exit 1; }; }
14297 fi
14298 case $CONFIG_SHELL in
14299 '')
14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14302do
14303 IFS=$as_save_IFS
14304 test -z "$as_dir" && as_dir=.
14305 for as_base in sh bash ksh sh5; do
14306 case $as_dir in
14307 /*)
14308 if ("$as_dir/$as_base" -c '
14309 as_lineno_1=$LINENO
14310 as_lineno_2=$LINENO
14311 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14312 test "x$as_lineno_1" != "x$as_lineno_2" &&
14313 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14314 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14315 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14316 CONFIG_SHELL=$as_dir/$as_base
14317 export CONFIG_SHELL
14318 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14319 fi;;
14320 esac
14321 done
14322done
14323;;
14324 esac
14325
14326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14327 # uniformly replaced by the line number. The first 'sed' inserts a
14328 # line-number line before each line; the second 'sed' does the real
14329 # work. The second script uses 'N' to pair each line-number line
14330 # with the numbered line, and appends trailing '-' during
14331 # substitution so that $LINENO is not a special case at line end.
14332 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14333 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14334 sed '=' <$as_myself |
14335 sed '
14336 N
14337 s,$,-,
14338 : loop
14339 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14340 t loop
14341 s,-$,,
14342 s,^['$as_cr_digits']*\n,,
14343 ' >$as_me.lineno &&
14344 chmod +x $as_me.lineno ||
14345 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14346echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14347 { (exit 1); exit 1; }; }
14348
14349 # Don't try to exec as it changes $[0], causing all sort of problems
14350 # (the dirname of $[0] is not the place where we might find the
14351 # original and so on. Autoconf is especially sensible to this).
14352 . ./$as_me.lineno
14353 # Exit status is that of the last command.
14354 exit
14355}
14356
14357
14358case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14359 *c*,-n*) ECHO_N= ECHO_C='
14360' ECHO_T=' ' ;;
14361 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14362 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14363esac
14364
14365if expr a : '\(a\)' >/dev/null 2>&1; then
14366 as_expr=expr
14367else
14368 as_expr=false
14369fi
14370
14371rm -f conf$$ conf$$.exe conf$$.file
14372echo >conf$$.file
14373if ln -s conf$$.file conf$$ 2>/dev/null; then
14374 # We could just check for DJGPP; but this test a) works b) is more generic
14375 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14376 if test -f conf$$.exe; then
14377 # Don't use ln at all; we don't have any links
14378 as_ln_s='cp -p'
14379 else
14380 as_ln_s='ln -s'
14381 fi
14382elif ln conf$$.file conf$$ 2>/dev/null; then
14383 as_ln_s=ln
14384else
14385 as_ln_s='cp -p'
14386fi
14387rm -f conf$$ conf$$.exe conf$$.file
14388
14389if mkdir -p . 2>/dev/null; then
14390 as_mkdir_p=:
14391else
14392 test -d ./-p && rmdir ./-p
14393 as_mkdir_p=false
14394fi
14395
14396as_executable_p="test -f"
14397
14398# Sed expression to map a string onto a valid CPP name.
14399as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14400
14401# Sed expression to map a string onto a valid variable name.
14402as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14403
14404
14405# IFS
14406# We need space, tab and new line, in precisely that order.
14407as_nl='
14408'
14409IFS=" $as_nl"
14410
14411# CDPATH.
14412$as_unset CDPATH
14413
14414exec 6>&1
14415
14416# Open the log real soon, to keep \$[0] and so on meaningful, and to
14417# report actual input values of CONFIG_FILES etc. instead of their
14418# values after options handling. Logging --version etc. is OK.
14419exec 5>>config.log
14420{
14421 echo
14422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14423## Running $as_me. ##
14424_ASBOX
14425} >&5
14426cat >&5 <<_CSEOF
14427
14428This file was extended by $as_me, which was
14429generated by GNU Autoconf 2.59. Invocation command line was
14430
14431 CONFIG_FILES = $CONFIG_FILES
14432 CONFIG_HEADERS = $CONFIG_HEADERS
14433 CONFIG_LINKS = $CONFIG_LINKS
14434 CONFIG_COMMANDS = $CONFIG_COMMANDS
14435 $ $0 $@
14436
14437_CSEOF
14438echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14439echo >&5
14440_ACEOF
14441
14442# Files that config.status was made for.
14443if test -n "$ac_config_files"; then
14444 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14445fi
14446
14447if test -n "$ac_config_headers"; then
14448 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14449fi
14450
14451if test -n "$ac_config_links"; then
14452 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14453fi
14454
14455if test -n "$ac_config_commands"; then
14456 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14457fi
14458
14459cat >>$CONFIG_STATUS <<\_ACEOF
14460
14461ac_cs_usage="\
14462\`$as_me' instantiates files from templates according to the
14463current configuration.
14464
14465Usage: $0 [OPTIONS] [FILE]...
14466
14467 -h, --help print this help, then exit
14468 -V, --version print version number, then exit
14469 -q, --quiet do not print progress messages
14470 -d, --debug don't remove temporary files
14471 --recheck update $as_me by reconfiguring in the same conditions
14472 --file=FILE[:TEMPLATE]
14473 instantiate the configuration file FILE
14474
14475Configuration files:
14476$config_files
14477
14478Configuration commands:
14479$config_commands
14480
14481Report bugs to <bug-autoconf@gnu.org>."
14482_ACEOF
14483
14484cat >>$CONFIG_STATUS <<_ACEOF
14485ac_cs_version="\\
14486config.status
14487configured by $0, generated by GNU Autoconf 2.59,
14488 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14489
14490Copyright (C) 2003 Free Software Foundation, Inc.
14491This config.status script is free software; the Free Software Foundation
14492gives unlimited permission to copy, distribute and modify it."
14493srcdir=$srcdir
14494INSTALL="$INSTALL"
14495_ACEOF
14496
14497cat >>$CONFIG_STATUS <<\_ACEOF
14498# If no file are specified by the user, then we need to provide default
14499# value. By we need to know if files were specified by the user.
14500ac_need_defaults=:
14501while test $# != 0
07a0db15 14502do
b0cacab0
TT
14503 case $1 in
14504 --*=*)
14505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14507 ac_shift=:
14508 ;;
14509 -*)
14510 ac_option=$1
14511 ac_optarg=$2
14512 ac_shift=shift
14513 ;;
14514 *) # This is not an option, so the user has probably given explicit
14515 # arguments.
14516 ac_option=$1
14517 ac_need_defaults=false;;
14518 esac
14519
14520 case $ac_option in
14521 # Handling of the options.
14522_ACEOF
14523cat >>$CONFIG_STATUS <<\_ACEOF
93636bde 14524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0
TT
14525 ac_cs_recheck=: ;;
14526 --version | --vers* | -V )
14527 echo "$ac_cs_version"; exit 0 ;;
14528 --he | --h)
14529 # Conflict between --help and --header
14530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14531Try \`$0 --help' for more information." >&5
14532echo "$as_me: error: ambiguous option: $1
14533Try \`$0 --help' for more information." >&2;}
14534 { (exit 1); exit 1; }; };;
14535 --help | --hel | -h )
14536 echo "$ac_cs_usage"; exit 0 ;;
14537 --debug | --d* | -d )
14538 debug=: ;;
14539 --file | --fil | --fi | --f )
14540 $ac_shift
14541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14542 ac_need_defaults=false;;
14543 --header | --heade | --head | --hea )
14544 $ac_shift
14545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14546 ac_need_defaults=false;;
14547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14549 ac_cs_silent=: ;;
14550
14551 # This is an error.
14552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14553Try \`$0 --help' for more information." >&5
14554echo "$as_me: error: unrecognized option: $1
14555Try \`$0 --help' for more information." >&2;}
14556 { (exit 1); exit 1; }; } ;;
14557
14558 *) ac_config_targets="$ac_config_targets $1" ;;
14559
07a0db15 14560 esac
b0cacab0 14561 shift
07a0db15
TT
14562done
14563
b0cacab0
TT
14564ac_configure_extra_args=
14565
14566if $ac_cs_silent; then
14567 exec 6>/dev/null
14568 ac_configure_extra_args="$ac_configure_extra_args --silent"
14569fi
14570
14571_ACEOF
14572cat >>$CONFIG_STATUS <<_ACEOF
14573if \$ac_cs_recheck; then
14574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14576fi
07a0db15 14577
b0cacab0 14578_ACEOF
07a0db15 14579
b0cacab0
TT
14580cat >>$CONFIG_STATUS <<_ACEOF
14581#
14582# INIT-COMMANDS section.
14583#
14584
14585# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14586 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14587 # from automake.
14588 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14589 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14590 LINGUAS="${LINGUAS-%UNSET%}"
14591
14592
14593_ACEOF
14594
14595
14596
14597cat >>$CONFIG_STATUS <<\_ACEOF
14598for ac_config_target in $ac_config_targets
14599do
14600 case "$ac_config_target" in
14601 # Handling of arguments.
14602 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14603 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14604 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14605echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14606 { (exit 1); exit 1; }; };;
14607 esac
14608done
14609
14610# If the user did not use the arguments to specify the items to instantiate,
14611# then the envvar interface is used. Set only those that are not.
14612# We use the long form for the default assignment because of an extremely
14613# bizarre bug on SunOS 4.1.3.
14614if $ac_need_defaults; then
14615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14617fi
14618
14619# Have a temporary directory for convenience. Make it in the build tree
14620# simply because there is no reason to put it here, and in addition,
14621# creating and moving files from /tmp can sometimes cause problems.
14622# Create a temporary directory, and hook for its removal unless debugging.
14623$debug ||
14624{
14625 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14626 trap '{ (exit 1); exit 1; }' 1 2 13 15
14627}
14628
14629# Create a (secure) tmp directory for tmp files.
14630
14631{
14632 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14633 test -n "$tmp" && test -d "$tmp"
14634} ||
14635{
14636 tmp=./confstat$$-$RANDOM
14637 (umask 077 && mkdir $tmp)
14638} ||
14639{
14640 echo "$me: cannot create a temporary directory in ." >&2
14641 { (exit 1); exit 1; }
14642}
14643
14644_ACEOF
14645
14646cat >>$CONFIG_STATUS <<_ACEOF
14647
14648#
14649# CONFIG_FILES section.
14650#
14651
14652# No need to generate the scripts if there are no CONFIG_FILES.
14653# This happens for instance when ./config.status config.h
14654if test -n "\$CONFIG_FILES"; then
14655 # Protect against being on the right side of a sed subst in config.status.
14656 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14657 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14658s,@SHELL@,$SHELL,;t t
14659s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14660s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14661s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14662s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14663s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14664s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14665s,@exec_prefix@,$exec_prefix,;t t
14666s,@prefix@,$prefix,;t t
14667s,@program_transform_name@,$program_transform_name,;t t
14668s,@bindir@,$bindir,;t t
14669s,@sbindir@,$sbindir,;t t
14670s,@libexecdir@,$libexecdir,;t t
14671s,@datadir@,$datadir,;t t
14672s,@sysconfdir@,$sysconfdir,;t t
14673s,@sharedstatedir@,$sharedstatedir,;t t
14674s,@localstatedir@,$localstatedir,;t t
14675s,@libdir@,$libdir,;t t
14676s,@includedir@,$includedir,;t t
14677s,@oldincludedir@,$oldincludedir,;t t
14678s,@infodir@,$infodir,;t t
14679s,@mandir@,$mandir,;t t
14680s,@build_alias@,$build_alias,;t t
14681s,@host_alias@,$host_alias,;t t
14682s,@target_alias@,$target_alias,;t t
14683s,@DEFS@,$DEFS,;t t
14684s,@ECHO_C@,$ECHO_C,;t t
14685s,@ECHO_N@,$ECHO_N,;t t
14686s,@ECHO_T@,$ECHO_T,;t t
14687s,@LIBS@,$LIBS,;t t
14688s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14689s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14690s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14691s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14692s,@build@,$build,;t t
14693s,@build_cpu@,$build_cpu,;t t
14694s,@build_vendor@,$build_vendor,;t t
14695s,@build_os@,$build_os,;t t
14696s,@host@,$host,;t t
14697s,@host_cpu@,$host_cpu,;t t
14698s,@host_vendor@,$host_vendor,;t t
14699s,@host_os@,$host_os,;t t
14700s,@CC@,$CC,;t t
14701s,@CFLAGS@,$CFLAGS,;t t
14702s,@LDFLAGS@,$LDFLAGS,;t t
14703s,@CPPFLAGS@,$CPPFLAGS,;t t
14704s,@ac_ct_CC@,$ac_ct_CC,;t t
14705s,@EXEEXT@,$EXEEXT,;t t
14706s,@OBJEXT@,$OBJEXT,;t t
14707s,@LD@,$LD,;t t
14708s,@CPP@,$CPP,;t t
14709s,@EGREP@,$EGREP,;t t
14710s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14711s,@HTREE_CMT@,$HTREE_CMT,;t t
14712s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14713s,@ELF_CMT@,$ELF_CMT,;t t
14714s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14715s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14716s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14717s,@LIB_EXT@,$LIB_EXT,;t t
14718s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14719s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14720s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14721s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14722s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14723s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14724s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14725s,@FSCK_PROG@,$FSCK_PROG,;t t
14726s,@FSCK_MAN@,$FSCK_MAN,;t t
14727s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14728s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14729s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14730s,@PACKAGE@,$PACKAGE,;t t
14731s,@VERSION@,$VERSION,;t t
14732s,@SET_MAKE@,$SET_MAKE,;t t
14733s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14734s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14735s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14736s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14737s,@USE_NLS@,$USE_NLS,;t t
14738s,@MSGFMT@,$MSGFMT,;t t
14739s,@GMSGFMT@,$GMSGFMT,;t t
14740s,@XGETTEXT@,$XGETTEXT,;t t
14741s,@MSGMERGE@,$MSGMERGE,;t t
14742s,@RANLIB@,$RANLIB,;t t
14743s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14744s,@ALLOCA@,$ALLOCA,;t t
14745s,@GLIBC21@,$GLIBC21,;t t
14746s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14747s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14748s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14749s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14750s,@LIBICONV@,$LIBICONV,;t t
14751s,@LTLIBICONV@,$LTLIBICONV,;t t
14752s,@INTLBISON@,$INTLBISON,;t t
14753s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14754s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14755s,@CATOBJEXT@,$CATOBJEXT,;t t
14756s,@DATADIRNAME@,$DATADIRNAME,;t t
14757s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14758s,@GENCAT@,$GENCAT,;t t
14759s,@INTLOBJS@,$INTLOBJS,;t t
14760s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14761s,@INTLLIBS@,$INTLLIBS,;t t
14762s,@LIBINTL@,$LIBINTL,;t t
14763s,@LTLIBINTL@,$LTLIBINTL,;t t
14764s,@POSUB@,$POSUB,;t t
14765s,@BINARY_TYPE@,$BINARY_TYPE,;t t
14766s,@LN@,$LN,;t t
14767s,@LN_S@,$LN_S,;t t
14768s,@MV@,$MV,;t t
14769s,@CP@,$CP,;t t
14770s,@RM@,$RM,;t t
14771s,@CHMOD@,$CHMOD,;t t
14772s,@AWK@,$AWK,;t t
14773s,@SED@,$SED,;t t
14774s,@PERL@,$PERL,;t t
14775s,@LDCONFIG@,$LDCONFIG,;t t
14776s,@AR@,$AR,;t t
14777s,@ac_ct_AR@,$ac_ct_AR,;t t
14778s,@STRIP@,$STRIP,;t t
14779s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14780s,@BUILD_CC@,$BUILD_CC,;t t
14781s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
14782s,@SIZEOF_INT@,$SIZEOF_INT,;t t
14783s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
14784s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
14785s,@SOCKET_LIB@,$SOCKET_LIB,;t t
14786s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
14787s,@LINUX_CMT@,$LINUX_CMT,;t t
14788s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
14789s,@UNIX_CMT@,$UNIX_CMT,;t t
14790s,@root_prefix@,$root_prefix,;t t
14791s,@root_bindir@,$root_bindir,;t t
14792s,@root_sbindir@,$root_sbindir,;t t
14793s,@root_libdir@,$root_libdir,;t t
14794s,@root_sysconfdir@,$root_sysconfdir,;t t
14795s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
14796s,@SS_DIR@,$SS_DIR,;t t
14797s,@ET_DIR@,$ET_DIR,;t t
14798s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
14799s,@INTL_FLAGS@,$INTL_FLAGS,;t t
14800s,@LIBOBJS@,$LIBOBJS,;t t
14801s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50e1e10f 14802/@MCONFIG@/r $MCONFIG
b0cacab0 14803s,@MCONFIG@,,;t t
50e1e10f 14804/@MAKEFILE_ELF@/r $MAKEFILE_ELF
b0cacab0 14805s,@MAKEFILE_ELF@,,;t t
50e1e10f 14806/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
b0cacab0 14807s,@MAKEFILE_BSDLIB@,,;t t
cdf186e4 14808/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
b0cacab0 14809s,@MAKEFILE_PROFILE@,,;t t
cdf186e4 14810/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
b0cacab0 14811s,@MAKEFILE_CHECKER@,,;t t
cdf186e4 14812/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
b0cacab0 14813s,@MAKEFILE_LIBRARY@,,;t t
93636bde 14814CEOF
b0cacab0
TT
14815
14816_ACEOF
14817
14818 cat >>$CONFIG_STATUS <<\_ACEOF
14819 # Split the substitutions into bite-sized pieces for seds with
14820 # small command number limits, like on Digital OSF/1 and HP-UX.
14821 ac_max_sed_lines=48
14822 ac_sed_frag=1 # Number of current file.
14823 ac_beg=1 # First line for current file.
14824 ac_end=$ac_max_sed_lines # Line after last line for current file.
14825 ac_more_lines=:
14826 ac_sed_cmds=
14827 while $ac_more_lines; do
14828 if test $ac_beg -gt 1; then
14829 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14830 else
14831 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14832 fi
14833 if test ! -s $tmp/subs.frag; then
14834 ac_more_lines=false
21c84b71 14835 else
b0cacab0
TT
14836 # The purpose of the label and of the branching condition is to
14837 # speed up the sed processing (if there are no `@' at all, there
14838 # is no need to browse any of the substitutions).
14839 # These are the two extra sed commands mentioned above.
14840 (echo ':t
14841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14842 if test -z "$ac_sed_cmds"; then
14843 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14844 else
14845 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14846 fi
14847 ac_sed_frag=`expr $ac_sed_frag + 1`
14848 ac_beg=$ac_end
14849 ac_end=`expr $ac_end + $ac_max_sed_lines`
21c84b71 14850 fi
b0cacab0
TT
14851 done
14852 if test -z "$ac_sed_cmds"; then
14853 ac_sed_cmds=cat
21c84b71 14854 fi
b0cacab0
TT
14855fi # test -n "$CONFIG_FILES"
14856
14857_ACEOF
14858cat >>$CONFIG_STATUS <<\_ACEOF
14859for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14861 case $ac_file in
14862 - | *:- | *:-:* ) # input from stdin
14863 cat >$tmp/stdin
14864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14868 * ) ac_file_in=$ac_file.in ;;
14869 esac
14870
14871 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14872 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14873$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14874 X"$ac_file" : 'X\(//\)[^/]' \| \
14875 X"$ac_file" : 'X\(//\)$' \| \
14876 X"$ac_file" : 'X\(/\)' \| \
14877 . : '\(.\)' 2>/dev/null ||
14878echo X"$ac_file" |
14879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14881 /^X\(\/\/\)$/{ s//\1/; q; }
14882 /^X\(\/\).*/{ s//\1/; q; }
14883 s/.*/./; q'`
14884 { if $as_mkdir_p; then
14885 mkdir -p "$ac_dir"
14886 else
14887 as_dir="$ac_dir"
14888 as_dirs=
14889 while test ! -d "$as_dir"; do
14890 as_dirs="$as_dir $as_dirs"
14891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14893 X"$as_dir" : 'X\(//\)[^/]' \| \
14894 X"$as_dir" : 'X\(//\)$' \| \
14895 X"$as_dir" : 'X\(/\)' \| \
14896 . : '\(.\)' 2>/dev/null ||
14897echo X"$as_dir" |
14898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14900 /^X\(\/\/\)$/{ s//\1/; q; }
14901 /^X\(\/\).*/{ s//\1/; q; }
14902 s/.*/./; q'`
14903 done
14904 test ! -n "$as_dirs" || mkdir $as_dirs
14905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14906echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14907 { (exit 1); exit 1; }; }; }
14908
14909 ac_builddir=.
14910
14911if test "$ac_dir" != .; then
14912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14913 # A "../" for each directory in $ac_dir_suffix.
14914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14915else
14916 ac_dir_suffix= ac_top_builddir=
93636bde 14917fi
93636bde 14918
b0cacab0
TT
14919case $srcdir in
14920 .) # No --srcdir option. We are building in place.
14921 ac_srcdir=.
14922 if test -z "$ac_top_builddir"; then
14923 ac_top_srcdir=.
14924 else
14925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14926 fi ;;
14927 [\\/]* | ?:[\\/]* ) # Absolute path.
14928 ac_srcdir=$srcdir$ac_dir_suffix;
14929 ac_top_srcdir=$srcdir ;;
14930 *) # Relative path.
14931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14933esac
14934
14935# Do not use `cd foo && pwd` to compute absolute paths, because
14936# the directories may not exist.
14937case `pwd` in
14938.) ac_abs_builddir="$ac_dir";;
14939*)
14940 case "$ac_dir" in
14941 .) ac_abs_builddir=`pwd`;;
14942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14944 esac;;
14945esac
14946case $ac_abs_builddir in
14947.) ac_abs_top_builddir=${ac_top_builddir}.;;
14948*)
14949 case ${ac_top_builddir}. in
14950 .) ac_abs_top_builddir=$ac_abs_builddir;;
14951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14953 esac;;
14954esac
14955case $ac_abs_builddir in
14956.) ac_abs_srcdir=$ac_srcdir;;
14957*)
14958 case $ac_srcdir in
14959 .) ac_abs_srcdir=$ac_abs_builddir;;
14960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14962 esac;;
14963esac
14964case $ac_abs_builddir in
14965.) ac_abs_top_srcdir=$ac_top_srcdir;;
14966*)
14967 case $ac_top_srcdir in
14968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14971 esac;;
14972esac
14973
50e1e10f 14974
b0cacab0
TT
14975 case $INSTALL in
14976 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14977 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50e1e10f
TT
14978 esac
14979
b0cacab0
TT
14980 # Let's still pretend it is `configure' which instantiates (i.e., don't
14981 # use $as_me), people would be surprised to read:
14982 # /* config.h. Generated by config.status. */
14983 if test x"$ac_file" = x-; then
14984 configure_input=
14985 else
14986 configure_input="$ac_file. "
14987 fi
14988 configure_input=$configure_input"Generated from `echo $ac_file_in |
14989 sed 's,.*/,,'` by configure."
14990
14991 # First look for the input files in the build tree, otherwise in the
14992 # src tree.
14993 ac_file_inputs=`IFS=:
14994 for f in $ac_file_in; do
14995 case $f in
14996 -) echo $tmp/stdin ;;
14997 [\\/$]*)
14998 # Absolute (can't be DOS-style, as IFS=:)
14999 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15000echo "$as_me: error: cannot find input file: $f" >&2;}
15001 { (exit 1); exit 1; }; }
15002 echo "$f";;
15003 *) # Relative
15004 if test -f "$f"; then
15005 # Build tree
15006 echo "$f"
15007 elif test -f "$srcdir/$f"; then
15008 # Source tree
15009 echo "$srcdir/$f"
15010 else
15011 # /dev/null tree
15012 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15013echo "$as_me: error: cannot find input file: $f" >&2;}
15014 { (exit 1); exit 1; }; }
15015 fi;;
15016 esac
15017 done` || { (exit 1); exit 1; }
07a0db15 15018
b0cacab0
TT
15019 if test x"$ac_file" != x-; then
15020 { echo "$as_me:$LINENO: creating $ac_file" >&5
15021echo "$as_me: creating $ac_file" >&6;}
15022 rm -f "$ac_file"
15023 fi
15024_ACEOF
15025cat >>$CONFIG_STATUS <<_ACEOF
15026 sed "$ac_vpsub
15027$extrasub
15028_ACEOF
15029cat >>$CONFIG_STATUS <<\_ACEOF
15030:t
15031/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15032s,@configure_input@,$configure_input,;t t
15033s,@srcdir@,$ac_srcdir,;t t
15034s,@abs_srcdir@,$ac_abs_srcdir,;t t
15035s,@top_srcdir@,$ac_top_srcdir,;t t
15036s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15037s,@builddir@,$ac_builddir,;t t
15038s,@abs_builddir@,$ac_abs_builddir,;t t
15039s,@top_builddir@,$ac_top_builddir,;t t
15040s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15041s,@INSTALL@,$ac_INSTALL,;t t
15042" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15043 rm -f $tmp/stdin
15044 if test x"$ac_file" != x-; then
15045 mv $tmp/out $ac_file
50e1e10f 15046 else
b0cacab0
TT
15047 cat $tmp/out
15048 rm -f $tmp/out
50e1e10f
TT
15049 fi
15050
b0cacab0
TT
15051done
15052_ACEOF
15053cat >>$CONFIG_STATUS <<\_ACEOF
21c84b71 15054
b0cacab0
TT
15055#
15056# CONFIG_COMMANDS section.
15057#
15058for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15059 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15060 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15061 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15062$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15063 X"$ac_dest" : 'X\(//\)[^/]' \| \
15064 X"$ac_dest" : 'X\(//\)$' \| \
15065 X"$ac_dest" : 'X\(/\)' \| \
15066 . : '\(.\)' 2>/dev/null ||
15067echo X"$ac_dest" |
15068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15070 /^X\(\/\/\)$/{ s//\1/; q; }
15071 /^X\(\/\).*/{ s//\1/; q; }
15072 s/.*/./; q'`
15073 { if $as_mkdir_p; then
15074 mkdir -p "$ac_dir"
15075 else
15076 as_dir="$ac_dir"
15077 as_dirs=
15078 while test ! -d "$as_dir"; do
15079 as_dirs="$as_dir $as_dirs"
15080 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15081$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15082 X"$as_dir" : 'X\(//\)[^/]' \| \
15083 X"$as_dir" : 'X\(//\)$' \| \
15084 X"$as_dir" : 'X\(/\)' \| \
15085 . : '\(.\)' 2>/dev/null ||
15086echo X"$as_dir" |
15087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15089 /^X\(\/\/\)$/{ s//\1/; q; }
15090 /^X\(\/\).*/{ s//\1/; q; }
15091 s/.*/./; q'`
15092 done
15093 test ! -n "$as_dirs" || mkdir $as_dirs
15094 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15095echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15096 { (exit 1); exit 1; }; }; }
21c84b71 15097
b0cacab0 15098 ac_builddir=.
93636bde 15099
b0cacab0
TT
15100if test "$ac_dir" != .; then
15101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15102 # A "../" for each directory in $ac_dir_suffix.
15103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15104else
15105 ac_dir_suffix= ac_top_builddir=
15106fi
15107
15108case $srcdir in
15109 .) # No --srcdir option. We are building in place.
15110 ac_srcdir=.
15111 if test -z "$ac_top_builddir"; then
15112 ac_top_srcdir=.
15113 else
15114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15115 fi ;;
15116 [\\/]* | ?:[\\/]* ) # Absolute path.
15117 ac_srcdir=$srcdir$ac_dir_suffix;
15118 ac_top_srcdir=$srcdir ;;
15119 *) # Relative path.
15120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15122esac
07a0db15 15123
b0cacab0
TT
15124# Do not use `cd foo && pwd` to compute absolute paths, because
15125# the directories may not exist.
15126case `pwd` in
15127.) ac_abs_builddir="$ac_dir";;
15128*)
15129 case "$ac_dir" in
15130 .) ac_abs_builddir=`pwd`;;
15131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15133 esac;;
15134esac
15135case $ac_abs_builddir in
15136.) ac_abs_top_builddir=${ac_top_builddir}.;;
15137*)
15138 case ${ac_top_builddir}. in
15139 .) ac_abs_top_builddir=$ac_abs_builddir;;
15140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15142 esac;;
15143esac
15144case $ac_abs_builddir in
15145.) ac_abs_srcdir=$ac_srcdir;;
15146*)
15147 case $ac_srcdir in
15148 .) ac_abs_srcdir=$ac_abs_builddir;;
15149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15151 esac;;
15152esac
15153case $ac_abs_builddir in
15154.) ac_abs_top_srcdir=$ac_top_srcdir;;
15155*)
15156 case $ac_top_srcdir in
15157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15160 esac;;
15161esac
a04eba3f 15162
b0cacab0
TT
15163
15164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15165echo "$as_me: executing $ac_dest commands" >&6;}
15166 case $ac_dest in
15167 default-1 )
a04eba3f
TT
15168 for ac_file in $CONFIG_FILES; do
15169 # Support "outfile[:infile[:infile...]]"
15170 case "$ac_file" in
15171 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15172 esac
15173 # PO directories have a Makefile.in generated from Makefile.in.in.
15174 case "$ac_file" in */Makefile.in)
15175 # Adjust a relative srcdir.
15176 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15177 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15178 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15179 # In autoconf-2.13 it is called $ac_given_srcdir.
15180 # In autoconf-2.50 it is called $srcdir.
15181 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15182 case "$ac_given_srcdir" in
15183 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15184 /*) top_srcdir="$ac_given_srcdir" ;;
15185 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15186 esac
15187 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15188 rm -f "$ac_dir/POTFILES"
15189 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15190 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
15191 POMAKEFILEDEPS="POTFILES.in"
15192 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
15193 # on $ac_dir but don't depend on user-specified configuration
15194 # parameters.
15195 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15196 # The LINGUAS file contains the set of available languages.
b0cacab0 15197 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
15198 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15199 fi
15200 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15201 # Hide the ALL_LINGUAS assigment from automake.
15202 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
15203 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15204 else
15205 # The set of available languages was given in configure.in.
15206 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 15207 fi
b0cacab0
TT
15208 # Compute POFILES
15209 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15210 # Compute UPDATEPOFILES
15211 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15212 # Compute DUMMYPOFILES
15213 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15214 # Compute GMOFILES
15215 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
15216 case "$ac_given_srcdir" in
15217 .) srcdirpre= ;;
15218 *) srcdirpre='$(srcdir)/' ;;
15219 esac
15220 POFILES=
a04eba3f
TT
15221 UPDATEPOFILES=
15222 DUMMYPOFILES=
b0cacab0 15223 GMOFILES=
a04eba3f
TT
15224 for lang in $ALL_LINGUAS; do
15225 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
15226 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15227 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 15228 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
15229 done
15230 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15231 # environment variable.
15232 INST_LINGUAS=
15233 if test -n "$ALL_LINGUAS"; then
15234 for presentlang in $ALL_LINGUAS; do
15235 useit=no
15236 if test "%UNSET%" != "$LINGUAS"; then
15237 desiredlanguages="$LINGUAS"
15238 else
15239 desiredlanguages="$ALL_LINGUAS"
15240 fi
15241 for desiredlang in $desiredlanguages; do
15242 # Use the presentlang catalog if desiredlang is
15243 # a. equal to presentlang, or
15244 # b. a variant of presentlang (because in this case,
15245 # presentlang can be used as a fallback for messages
15246 # which are not translated in the desiredlang catalog).
15247 case "$desiredlang" in
15248 "$presentlang"*) useit=yes;;
15249 esac
15250 done
15251 if test $useit = yes; then
15252 INST_LINGUAS="$INST_LINGUAS $presentlang"
15253 fi
15254 done
15255 fi
15256 CATALOGS=
15257 if test -n "$INST_LINGUAS"; then
15258 for lang in $INST_LINGUAS; do
15259 CATALOGS="$CATALOGS $lang.gmo"
15260 done
15261 fi
15262 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 15263 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
15264 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15265 if test -f "$f"; then
15266 case "$f" in
15267 *.orig | *.bak | *~) ;;
15268 *) cat "$f" >> "$ac_dir/Makefile" ;;
15269 esac
15270 fi
15271 done
15272 fi
15273 ;;
a64c9c13 15274 esac
b0cacab0
TT
15275 done ;;
15276 esac
15277done
15278_ACEOF
07a0db15 15279
b0cacab0
TT
15280cat >>$CONFIG_STATUS <<\_ACEOF
15281
15282{ (exit 0); exit 0; }
15283_ACEOF
50e1e10f 15284chmod +x $CONFIG_STATUS
b0cacab0
TT
15285ac_clean_files=$ac_clean_files_save
15286
15287
15288# configure is writing to config.log, and then calls config.status.
15289# config.status does its own redirection, appending to config.log.
15290# Unfortunately, on DOS this fails, as config.log is still kept open
15291# by configure, so config.status won't be able to write to it; its
15292# output is simply discarded. So we exec the FD to /dev/null,
15293# effectively closing config.log, so it can be properly (re)opened and
15294# appended to by config.status. When coming back to configure, we
15295# need to make the FD available again.
15296if test "$no_create" != yes; then
15297 ac_cs_success=:
15298 ac_config_status_args=
15299 test "$silent" = yes &&
15300 ac_config_status_args="$ac_config_status_args --quiet"
15301 exec 5>/dev/null
15302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15303 exec 5>>config.log
15304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15305 # would make configure fail if this is the last instruction.
15306 $ac_cs_success || { (exit 1); exit 1; }
15307fi
50e1e10f 15308