dpkg (1.13.6) experimental; urgency=low
[dpkg.git] / configure
blob715b04cd171591e9c928e43145a2202c1527fd27
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for dpkg 1.13.6.
5 # Report bugs to <debian-dpkg@lists.debian.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='dpkg'
271 PACKAGE_TARNAME='dpkg'
272 PACKAGE_VERSION='1.13.6'
273 PACKAGE_STRING='dpkg 1.13.6'
274 PACKAGE_BUGREPORT='debian-dpkg@lists.debian.org'
276 ac_unique_file="lib/dpkg.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP 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 WITH_DSELECT_TRUE WITH_DSELECT_FALSE WITH_START_STOP_DAEMON_TRUE WITH_START_STOP_DAEMON_FALSE admindir CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PERL ZLIB_CFLAGS ZLIB_LIBS BZ2_CFLAGS BZ2_LIBS CURSES_LIBS SSD_LIBS LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775 ac_env_CXX_set=${CXX+set}
776 ac_env_CXX_value=$CXX
777 ac_cv_env_CXX_set=${CXX+set}
778 ac_cv_env_CXX_value=$CXX
779 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_env_CXXFLAGS_value=$CXXFLAGS
781 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783 ac_env_PERL_set=${PERL+set}
784 ac_env_PERL_value=$PERL
785 ac_cv_env_PERL_set=${PERL+set}
786 ac_cv_env_PERL_value=$PERL
787 ac_env_ZLIB_CFLAGS_set=${ZLIB_CFLAGS+set}
788 ac_env_ZLIB_CFLAGS_value=$ZLIB_CFLAGS
789 ac_cv_env_ZLIB_CFLAGS_set=${ZLIB_CFLAGS+set}
790 ac_cv_env_ZLIB_CFLAGS_value=$ZLIB_CFLAGS
791 ac_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
792 ac_env_ZLIB_LIBS_value=$ZLIB_LIBS
793 ac_cv_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
794 ac_cv_env_ZLIB_LIBS_value=$ZLIB_LIBS
795 ac_env_BZ2_CFLAGS_set=${BZ2_CFLAGS+set}
796 ac_env_BZ2_CFLAGS_value=$BZ2_CFLAGS
797 ac_cv_env_BZ2_CFLAGS_set=${BZ2_CFLAGS+set}
798 ac_cv_env_BZ2_CFLAGS_value=$BZ2_CFLAGS
799 ac_env_BZ2_LIBS_set=${BZ2_LIBS+set}
800 ac_env_BZ2_LIBS_value=$BZ2_LIBS
801 ac_cv_env_BZ2_LIBS_set=${BZ2_LIBS+set}
802 ac_cv_env_BZ2_LIBS_value=$BZ2_LIBS
803 ac_env_CURSES_LIBS_set=${CURSES_LIBS+set}
804 ac_env_CURSES_LIBS_value=$CURSES_LIBS
805 ac_cv_env_CURSES_LIBS_set=${CURSES_LIBS+set}
806 ac_cv_env_CURSES_LIBS_value=$CURSES_LIBS
807 ac_env_SSD_LIBS_set=${SSD_LIBS+set}
808 ac_env_SSD_LIBS_value=$SSD_LIBS
809 ac_cv_env_SSD_LIBS_set=${SSD_LIBS+set}
810 ac_cv_env_SSD_LIBS_value=$SSD_LIBS
813 # Report the --help message.
815 if test "$ac_init_help" = "long"; then
816 # Omit some internal or obsolete options to make the list less imposing.
817 # This message is too long to be a string in the A/UX 3.1 sh.
818 cat <<_ACEOF
819 \`configure' configures dpkg 1.13.6 to adapt to many kinds of systems.
821 Usage: $0 [OPTION]... [VAR=VALUE]...
823 To assign environment variables (e.g., CC, CFLAGS...), specify them as
824 VAR=VALUE. See below for descriptions of some of the useful variables.
826 Defaults for the options are specified in brackets.
828 Configuration:
829 -h, --help display this help and exit
830 --help=short display options specific to this package
831 --help=recursive display the short help of all the included packages
832 -V, --version display version information and exit
833 -q, --quiet, --silent do not print \`checking...' messages
834 --cache-file=FILE cache test results in FILE [disabled]
835 -C, --config-cache alias for \`--cache-file=config.cache'
836 -n, --no-create do not create output files
837 --srcdir=DIR find the sources in DIR [configure dir or \`..']
839 _ACEOF
841 cat <<_ACEOF
842 Installation directories:
843 --prefix=PREFIX install architecture-independent files in PREFIX
844 [$ac_default_prefix]
845 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
846 [PREFIX]
848 By default, \`make install' will install all the files in
849 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
850 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
851 for instance \`--prefix=\$HOME'.
853 For better control, use the options below.
855 Fine tuning of the installation directories:
856 --bindir=DIR user executables [EPREFIX/bin]
857 --sbindir=DIR system admin executables [EPREFIX/sbin]
858 --libexecdir=DIR program executables [EPREFIX/libexec]
859 --datadir=DIR read-only architecture-independent data [PREFIX/share]
860 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
861 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
862 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
863 --libdir=DIR object code libraries [EPREFIX/lib]
864 --includedir=DIR C header files [PREFIX/include]
865 --oldincludedir=DIR C header files for non-gcc [/usr/include]
866 --infodir=DIR info documentation [PREFIX/info]
867 --mandir=DIR man documentation [PREFIX/man]
868 _ACEOF
870 cat <<\_ACEOF
872 Program names:
873 --program-prefix=PREFIX prepend PREFIX to installed program names
874 --program-suffix=SUFFIX append SUFFIX to installed program names
875 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
877 System types:
878 --build=BUILD configure for building on BUILD [guessed]
879 --host=HOST cross-compile to build programs to run on HOST [BUILD]
880 --target=TARGET configure for building compilers for TARGET [HOST]
881 _ACEOF
884 if test -n "$ac_init_help"; then
885 case $ac_init_help in
886 short | recursive ) echo "Configuration of dpkg 1.13.6:";;
887 esac
888 cat <<\_ACEOF
890 Optional Features:
891 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
892 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
893 --disable-nls do not use Native Language Support
894 --disable-dependency-tracking speeds up one-time build
895 --enable-dependency-tracking do not reject slow dependency extractors
896 --disable-rpath do not hardcode runtime library paths
897 --disable-largefile omit support for large files
898 --enable-compiler-warnings
899 Enable additional compiler warnings
900 --disable-compiler-optimisations
901 Disable compiler optimisations
902 --disable-linker-optimisations
903 Disable linker optimisations
905 Optional Packages:
906 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
907 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
908 --with-gnu-ld assume the C compiler uses GNU ld default=no
909 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
910 --without-libiconv-prefix don't search for libiconv in includedir and libdir
911 --with-included-gettext use the GNU gettext library included here
912 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
913 --without-libintl-prefix don't search for libintl in includedir and libdir
914 --without-dselect don't build dselect package-management frontend
915 --without-start-stop-daemon
916 don't build or use start-stop-daemon
917 --with-admindir=DIR dpkg database directory [LOCALSTATEDIR/dpkg]
918 --with-zlib use zlib for compression and decompression
919 (yes/static)
920 --with-bz2 use bz2 library for compression and decompression
921 (yes/static)
923 Some influential environment variables:
924 CC C compiler command
925 CFLAGS C compiler flags
926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
927 nonstandard directory <lib dir>
928 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
929 headers in a nonstandard directory <include dir>
930 CPP C preprocessor
931 CXX C++ compiler command
932 CXXFLAGS C++ compiler flags
933 PERL Perl interpreter
934 ZLIB_CFLAGS compiler flags for zlib library
935 ZLIB_LIBS linker flags for zlib library
936 BZ2_CFLAGS compiler flags for bz2 library
937 BZ2_LIBS linker flags for bz2 library
938 CURSES_LIBS linker flags for curses library
939 SSD_LIBS linker flags for start-stop-daemon
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
944 Report bugs to <debian-dpkg@lists.debian.org>.
945 _ACEOF
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
950 ac_popdir=`pwd`
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
953 ac_builddir=.
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 else
960 ac_dir_suffix= ac_top_builddir=
963 case $srcdir in
964 .) # No --srcdir option. We are building in place.
965 ac_srcdir=.
966 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=.
968 else
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 fi ;;
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
974 *) # Relative path.
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
977 esac
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
981 case `pwd` in
982 .) ac_abs_builddir="$ac_dir";;
984 case "$ac_dir" in
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
988 esac;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
997 esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1002 case $ac_srcdir in
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1006 esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015 esac;;
1016 esac
1018 cd $ac_dir
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1021 echo
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1024 echo
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1028 echo
1029 $ac_configure --help
1030 else
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 cd "$ac_popdir"
1034 done
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1039 cat <<\_ACEOF
1040 dpkg configure 1.13.6
1041 generated by GNU Autoconf 2.59
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1054 It was created by dpkg $as_me 1.13.6, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1057 $ $0 $@
1059 _ACEOF
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 _ASUNAME
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1093 } >&5
1095 cat >&5 <<_ACEOF
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1102 _ACEOF
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1117 for ac_arg
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1164 echo
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185 esac;
1187 echo
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1245 # Predefined preprocessor variables.
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1288 done
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1391 case m4 in
1392 [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
1393 *) ac_macro_dir=$srcdir/m4 ;;
1394 esac
1395 if test -d "$ac_macro_dir"; then :
1396 else
1397 { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1398 echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1399 { (exit 1); exit 1; }; }
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1511 cat >>confdefs.h <<\_ACEOF
1512 #define _GNU_SOURCE 1
1513 _ACEOF
1516 echo "$as_me:$LINENO: checking dpkg cpu type" >&5
1517 echo $ECHO_N "checking dpkg cpu type... $ECHO_C" >&6
1518 cpu_type="`awk \"! /^(#.*)?\\$/ { if (match(\\\"$target_cpu\\\", \\\"^\\\"\\$3\\\"\\$\\\")) { print \\$1; exit; } }\" $srcdir/cputable`"
1519 if test "x$cpu_type" = "x"; then
1520 cpu_type=$target_cpu
1521 echo "$as_me:$LINENO: result: $cpu_type" >&5
1522 echo "${ECHO_T}$cpu_type" >&6
1523 { echo "$as_me:$LINENO: WARNING: $target_cpu not found in cputable" >&5
1524 echo "$as_me: WARNING: $target_cpu not found in cputable" >&2;}
1525 else
1526 echo "$as_me:$LINENO: result: $cpu_type" >&5
1527 echo "${ECHO_T}$cpu_type" >&6
1530 cat >>confdefs.h <<_ACEOF
1531 #define ARCHITECTURE_CPU "${cpu_type}"
1532 _ACEOF
1535 echo "$as_me:$LINENO: checking dpkg operating system type" >&5
1536 echo $ECHO_N "checking dpkg operating system type... $ECHO_C" >&6
1537 os_type="`awk \"! /^(#.*)?\\$/ { if (match(\\\"$target_os\\\", \\\"^(.*-)?\\\"\\$3\\\"\\$\\\")) { print \\$1; exit; } }\" $srcdir/ostable`"
1538 if test "x$os_type" = "x"; then
1539 os_type=$target_os
1540 echo "$as_me:$LINENO: result: $os_type" >&5
1541 echo "${ECHO_T}$os_type" >&6
1542 { echo "$as_me:$LINENO: WARNING: $target_os not found in ostable" >&5
1543 echo "$as_me: WARNING: $target_os not found in ostable" >&2;}
1544 else
1545 echo "$as_me:$LINENO: result: $os_type" >&5
1546 echo "${ECHO_T}$os_type" >&6
1549 cat >>confdefs.h <<_ACEOF
1550 #define ARCHITECTURE_OS "${os_type}"
1551 _ACEOF
1554 echo "$as_me:$LINENO: checking dpkg architecture name" >&5
1555 echo $ECHO_N "checking dpkg architecture name... $ECHO_C" >&6
1556 if test "x$os_type" = "xlinux"; then
1557 dpkg_arch=$cpu_type
1558 else
1559 dpkg_arch="$os_type-$cpu_type"
1561 echo "$as_me:$LINENO: result: $dpkg_arch" >&5
1562 echo "${ECHO_T}$dpkg_arch" >&6
1564 cat >>confdefs.h <<_ACEOF
1565 #define ARCHITECTURE "${dpkg_arch}"
1566 _ACEOF
1570 am__api_version="1.8"
1571 # Find a good install program. We prefer a C program (faster),
1572 # so one script is as good as another. But avoid the broken or
1573 # incompatible versions:
1574 # SysV /etc/install, /usr/sbin/install
1575 # SunOS /usr/etc/install
1576 # IRIX /sbin/install
1577 # AIX /bin/install
1578 # AmigaOS /C/install, which installs bootblocks on floppy discs
1579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1582 # OS/2's system install, which has a completely different semantic
1583 # ./install, which can be erroneously created by make from ./install.sh.
1584 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1585 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1586 if test -z "$INSTALL"; then
1587 if test "${ac_cv_path_install+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 # Account for people who put trailing slashes in PATH elements.
1596 case $as_dir/ in
1597 ./ | .// | /cC/* | \
1598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1599 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1600 /usr/ucb/* ) ;;
1602 # OSF1 and SCO ODT 3.0 have their own names for install.
1603 # Don't use installbsd from OSF since it installs stuff as root
1604 # by default.
1605 for ac_prog in ginstall scoinst install; do
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1608 if test $ac_prog = install &&
1609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # AIX install. It has an incompatible calling convention.
1612 elif test $ac_prog = install &&
1613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614 # program-specific install script used by HP pwplus--don't use.
1616 else
1617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1618 break 3
1621 done
1622 done
1624 esac
1625 done
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL=$ac_cv_path_install
1631 else
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL=$ac_install_sh
1639 echo "$as_me:$LINENO: result: $INSTALL" >&5
1640 echo "${ECHO_T}$INSTALL" >&6
1642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1643 # It thinks the first close brace ends the variable substitution.
1644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1650 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1651 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1652 # Just in case
1653 sleep 1
1654 echo timestamp > conftest.file
1655 # Do `set' in a subshell so we don't clobber the current shell's
1656 # arguments. Must try -L first in case configure is actually a
1657 # symlink; some systems play weird games with the mod time of symlinks
1658 # (eg FreeBSD returns the mod time of the symlink's containing
1659 # directory).
1660 if (
1661 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1662 if test "$*" = "X"; then
1663 # -L didn't work.
1664 set X `ls -t $srcdir/configure conftest.file`
1666 rm -f conftest.file
1667 if test "$*" != "X $srcdir/configure conftest.file" \
1668 && test "$*" != "X conftest.file $srcdir/configure"; then
1670 # If neither matched, then we have a broken ls. This can happen
1671 # if, for instance, CONFIG_SHELL is bash and it inherits a
1672 # broken ls alias from the environment. This has actually
1673 # happened. Such a system could not be considered "sane".
1674 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1675 alias in your environment" >&5
1676 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1677 alias in your environment" >&2;}
1678 { (exit 1); exit 1; }; }
1681 test "$2" = conftest.file
1683 then
1684 # Ok.
1686 else
1687 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1688 Check your system clock" >&5
1689 echo "$as_me: error: newly created file is older than distributed files!
1690 Check your system clock" >&2;}
1691 { (exit 1); exit 1; }; }
1693 echo "$as_me:$LINENO: result: yes" >&5
1694 echo "${ECHO_T}yes" >&6
1695 test "$program_prefix" != NONE &&
1696 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1697 # Use a double $ so make ignores it.
1698 test "$program_suffix" != NONE &&
1699 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1700 # Double any \ or $. echo might interpret backslashes.
1701 # By default was `s,x,x', remove it if useless.
1702 cat <<\_ACEOF >conftest.sed
1703 s/[\\$]/&&/g;s/;s,x,x,$//
1704 _ACEOF
1705 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1706 rm conftest.sed
1708 # expand $ac_aux_dir to an absolute path
1709 am_aux_dir=`cd $ac_aux_dir && pwd`
1711 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1712 # Use eval to expand $SHELL
1713 if eval "$MISSING --run true"; then
1714 am_missing_run="$MISSING --run "
1715 else
1716 am_missing_run=
1717 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1718 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1721 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1722 # Keeping the `.' argument allows $(mkdir_p) to be used without
1723 # argument. Indeed, we sometimes output rules like
1724 # $(mkdir_p) $(somedir)
1725 # where $(somedir) is conditionally defined.
1726 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1727 # expensive solution, as it forces Make to start a sub-shell.)
1728 mkdir_p='mkdir -p -- .'
1729 else
1730 # On NextStep and OpenStep, the `mkdir' command does not
1731 # recognize any option. It will interpret all options as
1732 # directories to create, and then abort because `.' already
1733 # exists.
1734 for d in ./-p ./--version;
1736 test -d $d && rmdir $d
1737 done
1738 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739 if test -f "$ac_aux_dir/mkinstalldirs"; then
1740 mkdir_p='$(mkinstalldirs)'
1741 else
1742 mkdir_p='$(install_sh) -d'
1746 for ac_prog in gawk mawk nawk awk
1748 # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_AWK+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755 if test -n "$AWK"; then
1756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1761 IFS=$as_save_IFS
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765 ac_cv_prog_AWK="$ac_prog"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767 break 2
1769 done
1770 done
1774 AWK=$ac_cv_prog_AWK
1775 if test -n "$AWK"; then
1776 echo "$as_me:$LINENO: result: $AWK" >&5
1777 echo "${ECHO_T}$AWK" >&6
1778 else
1779 echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1783 test -n "$AWK" && break
1784 done
1786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 cat >conftest.make <<\_ACEOF
1793 all:
1794 @echo 'ac_maketemp="$(MAKE)"'
1795 _ACEOF
1796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798 if test -n "$ac_maketemp"; then
1799 eval ac_cv_prog_make_${ac_make}_set=yes
1800 else
1801 eval ac_cv_prog_make_${ac_make}_set=no
1803 rm -f conftest.make
1805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 SET_MAKE=
1809 else
1810 echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 SET_MAKE="MAKE=${MAKE-make}"
1815 rm -rf .tst 2>/dev/null
1816 mkdir .tst 2>/dev/null
1817 if test -d .tst; then
1818 am__leading_dot=.
1819 else
1820 am__leading_dot=_
1822 rmdir .tst 2>/dev/null
1824 # test to see if srcdir already configured
1825 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826 test -f $srcdir/config.status; then
1827 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829 { (exit 1); exit 1; }; }
1832 # test whether we have cygpath
1833 if test -z "$CYGPATH_W"; then
1834 if (cygpath --version) >/dev/null 2>/dev/null; then
1835 CYGPATH_W='cygpath -w'
1836 else
1837 CYGPATH_W=echo
1842 # Define the identity of the package.
1843 PACKAGE='dpkg'
1844 VERSION='1.13.6'
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE "$PACKAGE"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define VERSION "$VERSION"
1854 _ACEOF
1856 # Some tools Automake needs.
1858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873 AMTAR=${AMTAR-"${am_missing_run}tar"}
1875 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1877 # Installed binaries are usually stripped using `strip' when the user
1878 # run `make install-strip'. However `strip' might not be the right
1879 # tool to use in cross-compilation environments, therefore Automake
1880 # will honor the `STRIP' environment variable to overrule this program.
1881 if test "$cross_compiling" != no; then
1882 if test -n "$ac_tool_prefix"; then
1883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_STRIP+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$STRIP"; then
1891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1909 STRIP=$ac_cv_prog_STRIP
1910 if test -n "$STRIP"; then
1911 echo "$as_me:$LINENO: result: $STRIP" >&5
1912 echo "${ECHO_T}$STRIP" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1919 if test -z "$ac_cv_prog_STRIP"; then
1920 ac_ct_STRIP=$STRIP
1921 # Extract the first word of "strip", so it can be a program name with args.
1922 set dummy strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928 if test -n "$ac_ct_STRIP"; then
1929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938 ac_cv_prog_ac_ct_STRIP="strip"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1942 done
1943 done
1945 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1949 if test -n "$ac_ct_STRIP"; then
1950 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1951 echo "${ECHO_T}$ac_ct_STRIP" >&6
1952 else
1953 echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6
1957 STRIP=$ac_ct_STRIP
1958 else
1959 STRIP="$ac_cv_prog_STRIP"
1963 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1965 # We need awk for the "check" target. The system "awk" is bad on
1966 # some platforms.
1973 MKINSTALLDIRS=
1974 if test -n "$ac_aux_dir"; then
1975 case "$ac_aux_dir" in
1976 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1977 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1978 esac
1980 if test -z "$MKINSTALLDIRS"; then
1981 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1986 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1987 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1988 # Check whether --enable-nls or --disable-nls was given.
1989 if test "${enable_nls+set}" = set; then
1990 enableval="$enable_nls"
1991 USE_NLS=$enableval
1992 else
1993 USE_NLS=yes
1995 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1996 echo "${ECHO_T}$USE_NLS" >&6
2003 # Prepare PATH_SEPARATOR.
2004 # The user is always right.
2005 if test "${PATH_SEPARATOR+set}" != set; then
2006 echo "#! /bin/sh" >conf$$.sh
2007 echo "exit 0" >>conf$$.sh
2008 chmod +x conf$$.sh
2009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2010 PATH_SEPARATOR=';'
2011 else
2012 PATH_SEPARATOR=:
2014 rm -f conf$$.sh
2017 # Find out how to test for executable files. Don't use a zero-byte file,
2018 # as systems may use methods other than mode bits to determine executability.
2019 cat >conf$$.file <<_ASEOF
2020 #! /bin/sh
2021 exit 0
2022 _ASEOF
2023 chmod +x conf$$.file
2024 if test -x conf$$.file >/dev/null 2>&1; then
2025 ac_executable_p="test -x"
2026 else
2027 ac_executable_p="test -f"
2029 rm -f conf$$.file
2031 # Extract the first word of "msgfmt", so it can be a program name with args.
2032 set dummy msgfmt; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_path_MSGFMT+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 case "$MSGFMT" in
2039 [\\/]* | ?:[\\/]*)
2040 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2044 for ac_dir in $PATH; do
2045 IFS="$ac_save_IFS"
2046 test -z "$ac_dir" && ac_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2049 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2050 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2051 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2052 break 2
2055 done
2056 done
2057 IFS="$ac_save_IFS"
2058 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2060 esac
2062 MSGFMT="$ac_cv_path_MSGFMT"
2063 if test "$MSGFMT" != ":"; then
2064 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2065 echo "${ECHO_T}$MSGFMT" >&6
2066 else
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2071 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2072 set dummy gmsgfmt; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 case $GMSGFMT in
2079 [\\/]* | ?:[\\/]*)
2080 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 break 2
2094 done
2095 done
2097 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2099 esac
2101 GMSGFMT=$ac_cv_path_GMSGFMT
2103 if test -n "$GMSGFMT"; then
2104 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2105 echo "${ECHO_T}$GMSGFMT" >&6
2106 else
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2113 # Prepare PATH_SEPARATOR.
2114 # The user is always right.
2115 if test "${PATH_SEPARATOR+set}" != set; then
2116 echo "#! /bin/sh" >conf$$.sh
2117 echo "exit 0" >>conf$$.sh
2118 chmod +x conf$$.sh
2119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2120 PATH_SEPARATOR=';'
2121 else
2122 PATH_SEPARATOR=:
2124 rm -f conf$$.sh
2127 # Find out how to test for executable files. Don't use a zero-byte file,
2128 # as systems may use methods other than mode bits to determine executability.
2129 cat >conf$$.file <<_ASEOF
2130 #! /bin/sh
2131 exit 0
2132 _ASEOF
2133 chmod +x conf$$.file
2134 if test -x conf$$.file >/dev/null 2>&1; then
2135 ac_executable_p="test -x"
2136 else
2137 ac_executable_p="test -f"
2139 rm -f conf$$.file
2141 # Extract the first word of "xgettext", so it can be a program name with args.
2142 set dummy xgettext; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 case "$XGETTEXT" in
2149 [\\/]* | ?:[\\/]*)
2150 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2153 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2154 for ac_dir in $PATH; do
2155 IFS="$ac_save_IFS"
2156 test -z "$ac_dir" && ac_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2159 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2160 (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
2161 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2162 break 2
2165 done
2166 done
2167 IFS="$ac_save_IFS"
2168 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2170 esac
2172 XGETTEXT="$ac_cv_path_XGETTEXT"
2173 if test "$XGETTEXT" != ":"; then
2174 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2175 echo "${ECHO_T}$XGETTEXT" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2181 rm -f messages.po
2184 # Prepare PATH_SEPARATOR.
2185 # The user is always right.
2186 if test "${PATH_SEPARATOR+set}" != set; then
2187 echo "#! /bin/sh" >conf$$.sh
2188 echo "exit 0" >>conf$$.sh
2189 chmod +x conf$$.sh
2190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2191 PATH_SEPARATOR=';'
2192 else
2193 PATH_SEPARATOR=:
2195 rm -f conf$$.sh
2198 # Find out how to test for executable files. Don't use a zero-byte file,
2199 # as systems may use methods other than mode bits to determine executability.
2200 cat >conf$$.file <<_ASEOF
2201 #! /bin/sh
2202 exit 0
2203 _ASEOF
2204 chmod +x conf$$.file
2205 if test -x conf$$.file >/dev/null 2>&1; then
2206 ac_executable_p="test -x"
2207 else
2208 ac_executable_p="test -f"
2210 rm -f conf$$.file
2212 # Extract the first word of "msgmerge", so it can be a program name with args.
2213 set dummy msgmerge; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 case "$MSGMERGE" in
2220 [\\/]* | ?:[\\/]*)
2221 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2224 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2225 for ac_dir in $PATH; do
2226 IFS="$ac_save_IFS"
2227 test -z "$ac_dir" && ac_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2230 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2231 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2232 break 2
2235 done
2236 done
2237 IFS="$ac_save_IFS"
2238 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2240 esac
2242 MSGMERGE="$ac_cv_path_MSGMERGE"
2243 if test "$MSGMERGE" != ":"; then
2244 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2245 echo "${ECHO_T}$MSGMERGE" >&6
2246 else
2247 echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2252 if test "$GMSGFMT" != ":"; then
2253 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2254 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2256 else
2257 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2258 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2259 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2260 GMSGFMT=":"
2264 if test "$XGETTEXT" != ":"; then
2265 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2266 (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
2268 else
2269 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2270 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2271 XGETTEXT=":"
2273 rm -f messages.po
2276 ac_config_commands="$ac_config_commands default-1"
2279 DEPDIR="${am__leading_dot}deps"
2281 ac_config_commands="$ac_config_commands depfiles"
2284 am_make=${MAKE-make}
2285 cat > confinc << 'END'
2286 am__doit:
2287 @echo done
2288 .PHONY: am__doit
2290 # If we don't find an include directive, just comment out the code.
2291 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2292 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2293 am__include="#"
2294 am__quote=
2295 _am_result=none
2296 # First try GNU make style include.
2297 echo "include confinc" > confmf
2298 # We grep out `Entering directory' and `Leaving directory'
2299 # messages which can occur if `w' ends up in MAKEFLAGS.
2300 # In particular we don't look at `^make:' because GNU make might
2301 # be invoked under some other name (usually "gmake"), in which
2302 # case it prints its new name instead of `make'.
2303 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2304 am__include=include
2305 am__quote=
2306 _am_result=GNU
2308 # Now try BSD make style include.
2309 if test "$am__include" = "#"; then
2310 echo '.include "confinc"' > confmf
2311 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2312 am__include=.include
2313 am__quote="\""
2314 _am_result=BSD
2319 echo "$as_me:$LINENO: result: $_am_result" >&5
2320 echo "${ECHO_T}$_am_result" >&6
2321 rm -f confinc confmf
2323 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2324 if test "${enable_dependency_tracking+set}" = set; then
2325 enableval="$enable_dependency_tracking"
2328 if test "x$enable_dependency_tracking" != xno; then
2329 am_depcomp="$ac_aux_dir/depcomp"
2330 AMDEPBACKSLASH='\'
2334 if test "x$enable_dependency_tracking" != xno; then
2335 AMDEP_TRUE=
2336 AMDEP_FALSE='#'
2337 else
2338 AMDEP_TRUE='#'
2339 AMDEP_FALSE=
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2352 echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2371 done
2372 done
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6
2380 else
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2386 if test -z "$ac_cv_prog_CC"; then
2387 ac_ct_CC=$CC
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_ac_ct_CC="gcc"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2409 done
2410 done
2414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415 if test -n "$ac_ct_CC"; then
2416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417 echo "${ECHO_T}$ac_ct_CC" >&6
2418 else
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 CC=$ac_ct_CC
2424 else
2425 CC="$ac_cv_prog_CC"
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}cc; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2466 if test -z "$ac_cv_prog_CC"; then
2467 ac_ct_CC=$CC
2468 # Extract the first word of "cc", so it can be a program name with args.
2469 set dummy cc; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 if test -n "$ac_ct_CC"; then
2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_ac_ct_CC="cc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 CC=$ac_ct_CC
2504 else
2505 CC="$ac_cv_prog_CC"
2509 if test -z "$CC"; then
2510 # Extract the first word of "cc", so it can be a program name with args.
2511 set dummy cc; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 ac_prog_rejected=no
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2529 ac_prog_rejected=yes
2530 continue
2532 ac_cv_prog_CC="cc"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2536 done
2537 done
2539 if test $ac_prog_rejected = yes; then
2540 # We found a bogon in the path, so make sure we never use it.
2541 set dummy $ac_cv_prog_CC
2542 shift
2543 if test $# != 0; then
2544 # We chose a different compiler from the bogus one.
2545 # However, it has the same basename, so the bogon will be chosen
2546 # first if we set CC to just the basename; use the full file name.
2547 shift
2548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553 CC=$ac_cv_prog_CC
2554 if test -n "$CC"; then
2555 echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6
2557 else
2558 echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6
2563 if test -z "$CC"; then
2564 if test -n "$ac_tool_prefix"; then
2565 for ac_prog in cl
2567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2569 echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571 if test "${ac_cv_prog_CC+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595 echo "$as_me:$LINENO: result: $CC" >&5
2596 echo "${ECHO_T}$CC" >&6
2597 else
2598 echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6
2602 test -n "$CC" && break
2603 done
2605 if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638 echo "${ECHO_T}$ac_ct_CC" >&6
2639 else
2640 echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2644 test -n "$ac_ct_CC" && break
2645 done
2647 CC=$ac_ct_CC
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657 { (exit 1); exit 1; }; }
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO:" \
2661 "checking for C compiler version" >&5
2662 ac_compiler=`set X $ac_compile; echo $2`
2663 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2664 (eval $ac_compiler --version </dev/null >&5) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2669 (eval $ac_compiler -v </dev/null >&5) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2674 (eval $ac_compiler -V </dev/null >&5) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2687 main ()
2691 return 0;
2693 _ACEOF
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2698 # of exeext.
2699 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2700 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2703 (eval $ac_link_default) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 # Find the output, starting from the most likely. This scheme is
2708 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2709 # resort.
2711 # Be careful to initialize this variable, since it used to be cached.
2712 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2713 ac_cv_exeext=
2714 # b.out is created by i960 compilers.
2715 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2717 test -f "$ac_file" || continue
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2721 conftest.$ac_ext )
2722 # This is the source file.
2724 [ab].out )
2725 # We found the default executable, but exeext='' is most
2726 # certainly right.
2727 break;;
2728 *.* )
2729 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730 # FIXME: I believe we export ac_cv_exeext for Libtool,
2731 # but it would be cool to find out if it's true. Does anybody
2732 # maintain Libtool? --akim.
2733 export ac_cv_exeext
2734 break;;
2736 break;;
2737 esac
2738 done
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: C compiler cannot create executables
2746 See \`config.log' for more details." >&2;}
2747 { (exit 77); exit 77; }; }
2750 ac_exeext=$ac_cv_exeext
2751 echo "$as_me:$LINENO: result: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6
2754 # Check the compiler produces executables we can run. If not, either
2755 # the compiler is broken, or we cross compile.
2756 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2757 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2758 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2759 # If not cross compiling, check that we can run a simple program.
2760 if test "$cross_compiling" != yes; then
2761 if { ac_try='./$ac_file'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 cross_compiling=no
2768 else
2769 if test "$cross_compiling" = maybe; then
2770 cross_compiling=yes
2771 else
2772 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2773 If you meant to cross compile, use \`--host'.
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: cannot run C compiled programs.
2776 If you meant to cross compile, use \`--host'.
2777 See \`config.log' for more details." >&2;}
2778 { (exit 1); exit 1; }; }
2782 echo "$as_me:$LINENO: result: yes" >&5
2783 echo "${ECHO_T}yes" >&6
2785 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2786 ac_clean_files=$ac_clean_files_save
2787 # Check the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2790 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2791 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2792 echo "${ECHO_T}$cross_compiling" >&6
2794 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2795 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2797 (eval $ac_link) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2802 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2803 # work properly (i.e., refer to `conftest.exe'), while it won't with
2804 # `rm'.
2805 for ac_file in conftest.exe conftest conftest.*; do
2806 test -f "$ac_file" || continue
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 export ac_cv_exeext
2811 break;;
2812 * ) break;;
2813 esac
2814 done
2815 else
2816 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2823 rm -f conftest$ac_cv_exeext
2824 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2825 echo "${ECHO_T}$ac_cv_exeext" >&6
2827 rm -f conftest.$ac_ext
2828 EXEEXT=$ac_cv_exeext
2829 ac_exeext=$EXEEXT
2830 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2831 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2832 if test "${ac_cv_objext+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2843 main ()
2847 return 0;
2849 _ACEOF
2850 rm -f conftest.o conftest.obj
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; then
2856 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2857 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2860 break;;
2861 esac
2862 done
2863 else
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2874 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2877 echo "${ECHO_T}$ac_cv_objext" >&6
2878 OBJEXT=$ac_cv_objext
2879 ac_objext=$OBJEXT
2880 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2881 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2882 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2893 main ()
2895 #ifndef __GNUC__
2896 choke me
2897 #endif
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 ac_compiler_gnu=yes
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 ac_compiler_gnu=no
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2935 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2937 GCC=`test $ac_compiler_gnu = yes && echo yes`
2938 ac_test_CFLAGS=${CFLAGS+set}
2939 ac_save_CFLAGS=$CFLAGS
2940 CFLAGS="-g"
2941 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2943 if test "${ac_cv_prog_cc_g+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2954 main ()
2958 return 0;
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978 (eval $ac_try) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_prog_cc_g=yes
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 ac_cv_prog_cc_g=no
2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2992 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2993 if test "$ac_test_CFLAGS" = set; then
2994 CFLAGS=$ac_save_CFLAGS
2995 elif test $ac_cv_prog_cc_g = yes; then
2996 if test "$GCC" = yes; then
2997 CFLAGS="-g -O2"
2998 else
2999 CFLAGS="-g"
3001 else
3002 if test "$GCC" = yes; then
3003 CFLAGS="-O2"
3004 else
3005 CFLAGS=
3008 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3009 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3010 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 ac_cv_prog_cc_stdc=no
3014 ac_save_CC=$CC
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #include <stdarg.h>
3022 #include <stdio.h>
3023 #include <sys/types.h>
3024 #include <sys/stat.h>
3025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3026 struct buf { int x; };
3027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3028 static char *e (p, i)
3029 char **p;
3030 int i;
3032 return p[i];
3034 static char *f (char * (*g) (char **, int), char **p, ...)
3036 char *s;
3037 va_list v;
3038 va_start (v,p);
3039 s = g (p, va_arg (v,int));
3040 va_end (v);
3041 return s;
3044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3045 function prototypes and stuff, but not '\xHH' hex character constants.
3046 These don't provoke an error unfortunately, instead are silently treated
3047 as 'x'. The following induces an error, until -std1 is added to get
3048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3049 array size at least. It's necessary to write '\x00'==0 to get something
3050 that's true only with -std1. */
3051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3053 int test (int i, double x);
3054 struct s1 {int (*f) (int a);};
3055 struct s2 {int (*f) (double a);};
3056 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3057 int argc;
3058 char **argv;
3060 main ()
3062 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3064 return 0;
3066 _ACEOF
3067 # Don't try gcc -ansi; that turns off useful extensions and
3068 # breaks some systems' header files.
3069 # AIX -qlanglvl=ansi
3070 # Ultrix and OSF/1 -std1
3071 # HP-UX 10.20 and later -Ae
3072 # HP-UX older versions -Aa -D_HPUX_SOURCE
3073 # SVR4 -Xc -D__EXTENSIONS__
3074 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3076 CC="$ac_save_CC $ac_arg"
3077 rm -f conftest.$ac_objext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_prog_cc_stdc=$ac_arg
3099 break
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f conftest.err conftest.$ac_objext
3106 done
3107 rm -f conftest.$ac_ext conftest.$ac_objext
3108 CC=$ac_save_CC
3112 case "x$ac_cv_prog_cc_stdc" in
3113 x|xno)
3114 echo "$as_me:$LINENO: result: none needed" >&5
3115 echo "${ECHO_T}none needed" >&6 ;;
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3118 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3119 CC="$CC $ac_cv_prog_cc_stdc" ;;
3120 esac
3122 # Some people use a C++ compiler to compile C. Since we use `exit',
3123 # in C++ we need to declare it. In case someone uses the same compiler
3124 # for both compiling C and C++ we need to have the C++ compiler decide
3125 # the declaration of exit, since it's the most demanding environment.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #ifndef __cplusplus
3128 choke me
3129 #endif
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 for ac_declaration in \
3153 '' \
3154 'extern "C" void std::exit (int) throw (); using std::exit;' \
3155 'extern "C" void std::exit (int); using std::exit;' \
3156 'extern "C" void exit (int) throw ();' \
3157 'extern "C" void exit (int);' \
3158 'void exit (int);'
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 $ac_declaration
3167 #include <stdlib.h>
3169 main ()
3171 exit (42);
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 continue
3204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3211 $ac_declaration
3213 main ()
3215 exit (42);
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 break
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 done
3249 rm -f conftest*
3250 if test -n "$ac_declaration"; then
3251 echo '#ifdef __cplusplus' >>confdefs.h
3252 echo $ac_declaration >>confdefs.h
3253 echo '#endif' >>confdefs.h
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 depcc="$CC" am_compiler_list=
3270 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3271 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3272 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3276 # We make a subdir and do the tests there. Otherwise we can end up
3277 # making bogus files that we don't know about and never remove. For
3278 # instance it was reported that on HP-UX the gcc test will end up
3279 # making a dummy file named `D' -- because `-MD' means `put the output
3280 # in D'.
3281 mkdir conftest.dir
3282 # Copy depcomp to subdir because otherwise we won't find it if we're
3283 # using a relative directory.
3284 cp "$am_depcomp" conftest.dir
3285 cd conftest.dir
3286 # We will build objects and dependencies in a subdirectory because
3287 # it helps to detect inapplicable dependency modes. For instance
3288 # both Tru64's cc and ICC support -MD to output dependencies as a
3289 # side effect of compilation, but ICC will put the dependencies in
3290 # the current directory while Tru64 will put them in the object
3291 # directory.
3292 mkdir sub
3294 am_cv_CC_dependencies_compiler_type=none
3295 if test "$am_compiler_list" = ""; then
3296 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3298 for depmode in $am_compiler_list; do
3299 # Setup a source with many dependencies, because some compilers
3300 # like to wrap large dependency lists on column 80 (with \), and
3301 # we should not choose a depcomp mode which is confused by this.
3303 # We need to recreate these files for each test, as the compiler may
3304 # overwrite some of them when testing with obscure command lines.
3305 # This happens at least with the AIX C compiler.
3306 : > sub/conftest.c
3307 for i in 1 2 3 4 5 6; do
3308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3309 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3310 # Solaris 8's {/usr,}/bin/sh.
3311 touch sub/conftst$i.h
3312 done
3313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3315 case $depmode in
3316 nosideeffect)
3317 # after this tag, mechanisms are not by side-effect, so they'll
3318 # only be used when explicitly requested
3319 if test "x$enable_dependency_tracking" = xyes; then
3320 continue
3321 else
3322 break
3325 none) break ;;
3326 esac
3327 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3328 # mode. It turns out that the SunPro C++ compiler does not properly
3329 # handle `-M -o', and we need to detect this.
3330 if depmode=$depmode \
3331 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3333 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3334 >/dev/null 2>conftest.err &&
3335 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3336 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3337 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3338 # icc doesn't choke on unknown options, it will just issue warnings
3339 # or remarks (even with -Werror). So we grep stderr for any message
3340 # that says an option was ignored or not supported.
3341 # When given -MP, icc 7.0 and 7.1 complain thusly:
3342 # icc: Command line warning: ignoring option '-M'; no argument required
3343 # The diagnosis changed in icc 8.0:
3344 # icc: Command line remark: option '-MP' not supported
3345 if (grep 'ignoring option' conftest.err ||
3346 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3347 am_cv_CC_dependencies_compiler_type=$depmode
3348 break
3351 done
3353 cd ..
3354 rm -rf conftest.dir
3355 else
3356 am_cv_CC_dependencies_compiler_type=none
3360 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3361 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3362 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3367 test "x$enable_dependency_tracking" != xno \
3368 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3369 am__fastdepCC_TRUE=
3370 am__fastdepCC_FALSE='#'
3371 else
3372 am__fastdepCC_TRUE='#'
3373 am__fastdepCC_FALSE=
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_RANLIB+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$RANLIB"; then
3386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3399 done
3400 done
3404 RANLIB=$ac_cv_prog_RANLIB
3405 if test -n "$RANLIB"; then
3406 echo "$as_me:$LINENO: result: $RANLIB" >&5
3407 echo "${ECHO_T}$RANLIB" >&6
3408 else
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3414 if test -z "$ac_cv_prog_RANLIB"; then
3415 ac_ct_RANLIB=$RANLIB
3416 # Extract the first word of "ranlib", so it can be a program name with args.
3417 set dummy ranlib; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$ac_ct_RANLIB"; then
3424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_RANLIB="ranlib"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3444 if test -n "$ac_ct_RANLIB"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3447 else
3448 echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3452 RANLIB=$ac_ct_RANLIB
3453 else
3454 RANLIB="$ac_cv_prog_RANLIB"
3458 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3459 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3460 if test "${ac_cv_search_strerror+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 ac_func_search_save_LIBS=$LIBS
3464 ac_cv_search_strerror=no
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 #ifdef __cplusplus
3474 extern "C"
3475 #endif
3476 /* We use char because int might match the return type of a gcc2
3477 builtin and then its argument prototype would still apply. */
3478 char strerror ();
3480 main ()
3482 strerror ();
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.$ac_objext conftest$ac_exeext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3489 (eval $ac_link) 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 (eval $ac_try) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; } &&
3502 { ac_try='test -s conftest$ac_exeext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 ac_cv_search_strerror="none required"
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3514 rm -f conftest.err conftest.$ac_objext \
3515 conftest$ac_exeext conftest.$ac_ext
3516 if test "$ac_cv_search_strerror" = no; then
3517 for ac_lib in cposix; do
3518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 #ifdef __cplusplus
3528 extern "C"
3529 #endif
3530 /* We use char because int might match the return type of a gcc2
3531 builtin and then its argument prototype would still apply. */
3532 char strerror ();
3534 main ()
3536 strerror ();
3538 return 0;
3540 _ACEOF
3541 rm -f conftest.$ac_objext conftest$ac_exeext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543 (eval $ac_link) 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552 (eval $ac_try) 2>&5
3553 ac_status=$?
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try='test -s conftest$ac_exeext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558 (eval $ac_try) 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
3562 ac_cv_search_strerror="-l$ac_lib"
3563 break
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f conftest.err conftest.$ac_objext \
3570 conftest$ac_exeext conftest.$ac_ext
3571 done
3573 LIBS=$ac_func_search_save_LIBS
3575 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3576 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3577 if test "$ac_cv_search_strerror" != no; then
3578 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3589 # On Suns, sometimes $CPP names a directory.
3590 if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3593 if test -z "$CPP"; then
3594 if test "${ac_cv_prog_CPP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600 ac_preproc_ok=false
3601 for ac_c_preproc_warn_flag in '' yes
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
3605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
3607 # On the NeXT, cc -E runs the code through the compiler's parser,
3608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #ifdef __STDC__
3616 # include <limits.h>
3617 #else
3618 # include <assert.h>
3619 #endif
3620 Syntax error
3621 _ACEOF
3622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev/null; then
3630 if test -s conftest.err; then
3631 ac_cpp_err=$ac_c_preproc_warn_flag
3632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3633 else
3634 ac_cpp_err=
3636 else
3637 ac_cpp_err=yes
3639 if test -z "$ac_cpp_err"; then
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 # Broken: fails on valid input.
3646 continue
3648 rm -f conftest.err conftest.$ac_ext
3650 # OK, works on sane cases. Now check whether non-existent headers
3651 # can be detected and how.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <ac_nonexistent.h>
3659 _ACEOF
3660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } >/dev/null; then
3668 if test -s conftest.err; then
3669 ac_cpp_err=$ac_c_preproc_warn_flag
3670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3671 else
3672 ac_cpp_err=
3674 else
3675 ac_cpp_err=yes
3677 if test -z "$ac_cpp_err"; then
3678 # Broken: success on invalid input.
3679 continue
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Passes both tests.
3685 ac_preproc_ok=:
3686 break
3688 rm -f conftest.err conftest.$ac_ext
3690 done
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.err conftest.$ac_ext
3693 if $ac_preproc_ok; then
3694 break
3697 done
3698 ac_cv_prog_CPP=$CPP
3701 CPP=$ac_cv_prog_CPP
3702 else
3703 ac_cv_prog_CPP=$CPP
3705 echo "$as_me:$LINENO: result: $CPP" >&5
3706 echo "${ECHO_T}$CPP" >&6
3707 ac_preproc_ok=false
3708 for ac_c_preproc_warn_flag in '' yes
3710 # Use a header file that comes with gcc, so configuring glibc
3711 # with a fresh cross-compiler works.
3712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713 # <limits.h> exists even on freestanding compilers.
3714 # On the NeXT, cc -E runs the code through the compiler's parser,
3715 # not just through cpp. "Syntax error" is here to catch this case.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #ifdef __STDC__
3723 # include <limits.h>
3724 #else
3725 # include <assert.h>
3726 #endif
3727 Syntax error
3728 _ACEOF
3729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null; then
3737 if test -s conftest.err; then
3738 ac_cpp_err=$ac_c_preproc_warn_flag
3739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3740 else
3741 ac_cpp_err=
3743 else
3744 ac_cpp_err=yes
3746 if test -z "$ac_cpp_err"; then
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 # Broken: fails on valid input.
3753 continue
3755 rm -f conftest.err conftest.$ac_ext
3757 # OK, works on sane cases. Now check whether non-existent headers
3758 # can be detected and how.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3766 _ACEOF
3767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } >/dev/null; then
3775 if test -s conftest.err; then
3776 ac_cpp_err=$ac_c_preproc_warn_flag
3777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3778 else
3779 ac_cpp_err=
3781 else
3782 ac_cpp_err=yes
3784 if test -z "$ac_cpp_err"; then
3785 # Broken: success on invalid input.
3786 continue
3787 else
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 # Passes both tests.
3792 ac_preproc_ok=:
3793 break
3795 rm -f conftest.err conftest.$ac_ext
3797 done
3798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799 rm -f conftest.err conftest.$ac_ext
3800 if $ac_preproc_ok; then
3802 else
3803 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3804 See \`config.log' for more details." >&5
3805 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3806 See \`config.log' for more details." >&2;}
3807 { (exit 1); exit 1; }; }
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3819 if test "${ac_cv_prog_egrep+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3823 then ac_cv_prog_egrep='grep -E'
3824 else ac_cv_prog_egrep='egrep'
3827 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3828 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3829 EGREP=$ac_cv_prog_egrep
3832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3834 if test "${ac_cv_header_stdc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #include <stdlib.h>
3844 #include <stdarg.h>
3845 #include <string.h>
3846 #include <float.h>
3849 main ()
3853 return 0;
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858 (eval $ac_compile) 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 ac_cv_header_stdc=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_cv_header_stdc=no
3884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 if test $ac_cv_header_stdc = yes; then
3887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 #include <string.h>
3896 _ACEOF
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "memchr" >/dev/null 2>&1; then
3900 else
3901 ac_cv_header_stdc=no
3903 rm -f conftest*
3907 if test $ac_cv_header_stdc = yes; then
3908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909 cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h. */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h. */
3915 #include <stdlib.h>
3917 _ACEOF
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919 $EGREP "free" >/dev/null 2>&1; then
3921 else
3922 ac_cv_header_stdc=no
3924 rm -f conftest*
3928 if test $ac_cv_header_stdc = yes; then
3929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930 if test "$cross_compiling" = yes; then
3932 else
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <ctype.h>
3940 #if ((' ' & 0x0FF) == 0x020)
3941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3943 #else
3944 # define ISLOWER(c) \
3945 (('a' <= (c) && (c) <= 'i') \
3946 || ('j' <= (c) && (c) <= 'r') \
3947 || ('s' <= (c) && (c) <= 'z'))
3948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3949 #endif
3951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953 main ()
3955 int i;
3956 for (i = 0; i < 256; i++)
3957 if (XOR (islower (i), ISLOWER (i))
3958 || toupper (i) != TOUPPER (i))
3959 exit(2);
3960 exit (0);
3962 _ACEOF
3963 rm -f conftest$ac_exeext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3975 else
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3989 if test $ac_cv_header_stdc = yes; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define STDC_HEADERS 1
3993 _ACEOF
3997 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3999 if test "${ac_cv_c_const+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4010 main ()
4012 /* FIXME: Include the comments suggested by Paul. */
4013 #ifndef __cplusplus
4014 /* Ultrix mips cc rejects this. */
4015 typedef int charset[2];
4016 const charset x;
4017 /* SunOS 4.1.1 cc rejects this. */
4018 char const *const *ccp;
4019 char **p;
4020 /* NEC SVR4.0.2 mips cc rejects this. */
4021 struct point {int x, y;};
4022 static struct point const zero = {0,0};
4023 /* AIX XL C 1.02.0.0 rejects this.
4024 It does not let you subtract one const X* pointer from another in
4025 an arm of an if-expression whose if-part is not a constant
4026 expression */
4027 const char *g = "string";
4028 ccp = &g + (g ? g-g : 0);
4029 /* HPUX 7.0 cc rejects these. */
4030 ++ccp;
4031 p = (char**) ccp;
4032 ccp = (char const *const *) p;
4033 { /* SCO 3.2v4 cc rejects this. */
4034 char *t;
4035 char const *s = 0 ? (char *) 0 : (char const *) 0;
4037 *t++ = 0;
4039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4040 int x[] = {25, 17};
4041 const int *foo = &x[0];
4042 ++foo;
4044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4045 typedef const int *iptr;
4046 iptr p = 0;
4047 ++p;
4049 { /* AIX XL C 1.02.0.0 rejects this saying
4050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4051 struct s { int j; const int *ap[3]; };
4052 struct s *b; b->j = 5;
4054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4055 const int foo = 10;
4057 #endif
4060 return 0;
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_cv_c_const=yes
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_c_const=no
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4094 echo "${ECHO_T}$ac_cv_c_const" >&6
4095 if test $ac_cv_c_const = no; then
4097 cat >>confdefs.h <<\_ACEOF
4098 #define const
4099 _ACEOF
4104 echo "$as_me:$LINENO: checking for signed" >&5
4105 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4106 if test "${bh_cv_c_signed+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h. */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4117 main ()
4119 signed char x;
4121 return 0;
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; } &&
4139 { ac_try='test -s conftest.$ac_objext'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141 (eval $ac_try) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 bh_cv_c_signed=yes
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 bh_cv_c_signed=no
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4154 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4155 echo "${ECHO_T}$bh_cv_c_signed" >&6
4156 if test $bh_cv_c_signed = no; then
4158 cat >>confdefs.h <<\_ACEOF
4159 #define signed
4160 _ACEOF
4164 echo "$as_me:$LINENO: checking for inline" >&5
4165 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4166 if test "${ac_cv_c_inline+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 ac_cv_c_inline=no
4170 for ac_kw in inline __inline__ __inline; do
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #ifndef __cplusplus
4178 typedef int foo_t;
4179 static $ac_kw foo_t static_foo () {return 0; }
4180 $ac_kw foo_t foo () {return 0; }
4181 #endif
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4186 (eval $ac_compile) 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_inline=$ac_kw; break
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4212 done
4215 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4216 echo "${ECHO_T}$ac_cv_c_inline" >&6
4219 case $ac_cv_c_inline in
4220 inline | yes) ;;
4222 case $ac_cv_c_inline in
4223 no) ac_val=;;
4224 *) ac_val=$ac_cv_c_inline;;
4225 esac
4226 cat >>confdefs.h <<_ACEOF
4227 #ifndef __cplusplus
4228 #define inline $ac_val
4229 #endif
4230 _ACEOF
4232 esac
4234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4245 inttypes.h stdint.h unistd.h
4247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4248 echo "$as_me:$LINENO: checking for $ac_header" >&5
4249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 $ac_includes_default
4261 #include <$ac_header>
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 eval "$as_ac_Header=yes"
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 eval "$as_ac_Header=no"
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4296 cat >>confdefs.h <<_ACEOF
4297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298 _ACEOF
4302 done
4305 echo "$as_me:$LINENO: checking for off_t" >&5
4306 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4307 if test "${ac_cv_type_off_t+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4318 main ()
4320 if ((off_t *) 0)
4321 return 0;
4322 if (sizeof (off_t))
4323 return 0;
4325 return 0;
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } &&
4337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_type_off_t=yes
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_type_off_t=no
4356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4359 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4360 if test $ac_cv_type_off_t = yes; then
4362 else
4364 cat >>confdefs.h <<_ACEOF
4365 #define off_t long
4366 _ACEOF
4370 echo "$as_me:$LINENO: checking for size_t" >&5
4371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4372 if test "${ac_cv_type_size_t+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4383 main ()
4385 if ((size_t *) 0)
4386 return 0;
4387 if (sizeof (size_t))
4388 return 0;
4390 return 0;
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_size_t=yes
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_type_size_t=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4424 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4425 if test $ac_cv_type_size_t = yes; then
4427 else
4429 cat >>confdefs.h <<_ACEOF
4430 #define size_t unsigned
4431 _ACEOF
4436 echo "$as_me:$LINENO: checking for long long" >&5
4437 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4438 if test "${ac_cv_type_long_long+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 long long ll = 1LL; int i = 63;
4449 main ()
4451 long long llmax = (long long) -1;
4452 return ll << i | ll >> i | llmax / ll | llmax % ll;
4454 return 0;
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_type_long_long=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_type_long_long=no
4485 rm -f conftest.err conftest.$ac_objext \
4486 conftest$ac_exeext conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4489 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4490 if test $ac_cv_type_long_long = yes; then
4492 cat >>confdefs.h <<\_ACEOF
4493 #define HAVE_LONG_LONG 1
4494 _ACEOF
4499 echo "$as_me:$LINENO: checking for long double" >&5
4500 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4501 if test "${gt_cv_c_long_double+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 if test "$GCC" = yes; then
4505 gt_cv_c_long_double=yes
4506 else
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4515 long double foo = 0.0;
4516 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4517 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4520 main ()
4524 return 0;
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>conftest.er1
4530 ac_status=$?
4531 grep -v '^ *+' conftest.er1 >conftest.err
4532 rm -f conftest.er1
4533 cat conftest.err >&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 gt_cv_c_long_double=yes
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 gt_cv_c_long_double=no
4555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4559 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4560 if test $gt_cv_c_long_double = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_LONG_DOUBLE 1
4564 _ACEOF
4569 echo "$as_me:$LINENO: checking for wchar_t" >&5
4570 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4571 if test "${gt_cv_c_wchar_t+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 #include <stddef.h>
4581 wchar_t foo = (wchar_t)'\0';
4583 main ()
4587 return 0;
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 gt_cv_c_wchar_t=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 gt_cv_c_wchar_t=no
4618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4621 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4622 if test $gt_cv_c_wchar_t = yes; then
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_WCHAR_T 1
4626 _ACEOF
4631 echo "$as_me:$LINENO: checking for wint_t" >&5
4632 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4633 if test "${gt_cv_c_wint_t+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h. */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <wchar.h>
4643 wint_t foo = (wchar_t)'\0';
4645 main ()
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 gt_cv_c_wint_t=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 gt_cv_c_wint_t=no
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4683 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4684 if test $gt_cv_c_wint_t = yes; then
4686 cat >>confdefs.h <<\_ACEOF
4687 #define HAVE_WINT_T 1
4688 _ACEOF
4693 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4694 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4695 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <inttypes.h>
4707 main ()
4709 uintmax_t i = (uintmax_t) -1;
4711 return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>conftest.er1
4717 ac_status=$?
4718 grep -v '^ *+' conftest.er1 >conftest.err
4719 rm -f conftest.er1
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } &&
4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 jm_ac_cv_header_inttypes_h=yes
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 jm_ac_cv_header_inttypes_h=no
4742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4745 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4746 if test $jm_ac_cv_header_inttypes_h = yes; then
4748 cat >>confdefs.h <<_ACEOF
4749 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4750 _ACEOF
4755 echo "$as_me:$LINENO: checking for stdint.h" >&5
4756 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4757 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 #include <sys/types.h>
4767 #include <stdint.h>
4769 main ()
4771 uintmax_t i = (uintmax_t) -1;
4773 return 0;
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4779 ac_status=$?
4780 grep -v '^ *+' conftest.er1 >conftest.err
4781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 jm_ac_cv_header_stdint_h=yes
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 jm_ac_cv_header_stdint_h=no
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4807 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4808 if test $jm_ac_cv_header_stdint_h = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 #define HAVE_STDINT_H_WITH_UINTMAX 1
4812 _ACEOF
4819 echo "$as_me:$LINENO: checking for intmax_t" >&5
4820 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4821 if test "${gt_cv_c_intmax_t+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4831 #include <stddef.h>
4832 #include <stdlib.h>
4833 #if HAVE_STDINT_H_WITH_UINTMAX
4834 #include <stdint.h>
4835 #endif
4836 #if HAVE_INTTYPES_H_WITH_UINTMAX
4837 #include <inttypes.h>
4838 #endif
4841 main ()
4843 intmax_t x = -1;
4845 return 0;
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 gt_cv_c_intmax_t=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 gt_cv_c_intmax_t=no
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4879 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4880 if test $gt_cv_c_intmax_t = yes; then
4882 cat >>confdefs.h <<\_ACEOF
4883 #define HAVE_INTMAX_T 1
4884 _ACEOF
4890 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4891 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4892 if test "${gt_cv_func_printf_posix+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4896 if test "$cross_compiling" = yes; then
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4905 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4906 notposix
4907 #endif
4909 _ACEOF
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "notposix" >/dev/null 2>&1; then
4912 gt_cv_func_printf_posix="guessing no"
4913 else
4914 gt_cv_func_printf_posix="guessing yes"
4916 rm -f conftest*
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4927 #include <stdio.h>
4928 #include <string.h>
4929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4930 dollar expansion (possibly an autoconf bug). */
4931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4932 static char buf[100];
4933 int main ()
4935 sprintf (buf, format, 33, 55);
4936 return (strcmp (buf, "55 33") != 0);
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 gt_cv_func_printf_posix=yes
4951 else
4952 echo "$as_me: program exited with status $ac_status" >&5
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 ( exit $ac_status )
4957 gt_cv_func_printf_posix=no
4959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4963 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4964 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4965 case $gt_cv_func_printf_posix in
4966 *yes)
4968 cat >>confdefs.h <<\_ACEOF
4969 #define HAVE_POSIX_PRINTF 1
4970 _ACEOF
4973 esac
4975 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4976 # for constant arguments. Useless!
4977 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4978 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4979 if test "${ac_cv_working_alloca_h+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 #include <alloca.h>
4990 main ()
4992 char *p = (char *) alloca (2 * sizeof (int));
4994 return 0;
4996 _ACEOF
4997 rm -f conftest.$ac_objext conftest$ac_exeext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4999 (eval $ac_link) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest$ac_exeext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 ac_cv_working_alloca_h=yes
5019 else
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 ac_cv_working_alloca_h=no
5025 rm -f conftest.err conftest.$ac_objext \
5026 conftest$ac_exeext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5029 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5030 if test $ac_cv_working_alloca_h = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define HAVE_ALLOCA_H 1
5034 _ACEOF
5038 echo "$as_me:$LINENO: checking for alloca" >&5
5039 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5040 if test "${ac_cv_func_alloca_works+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #ifdef __GNUC__
5050 # define alloca __builtin_alloca
5051 #else
5052 # ifdef _MSC_VER
5053 # include <malloc.h>
5054 # define alloca _alloca
5055 # else
5056 # if HAVE_ALLOCA_H
5057 # include <alloca.h>
5058 # else
5059 # ifdef _AIX
5060 #pragma alloca
5061 # else
5062 # ifndef alloca /* predefined by HP cc +Olibcalls */
5063 char *alloca ();
5064 # endif
5065 # endif
5066 # endif
5067 # endif
5068 #endif
5071 main ()
5073 char *p = (char *) alloca (1);
5075 return 0;
5077 _ACEOF
5078 rm -f conftest.$ac_objext conftest$ac_exeext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 (eval $ac_try) 2>&5
5090 ac_status=$?
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try='test -s conftest$ac_exeext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_cv_func_alloca_works=yes
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_cv_func_alloca_works=no
5106 rm -f conftest.err conftest.$ac_objext \
5107 conftest$ac_exeext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5110 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5112 if test $ac_cv_func_alloca_works = yes; then
5114 cat >>confdefs.h <<\_ACEOF
5115 #define HAVE_ALLOCA 1
5116 _ACEOF
5118 else
5119 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5120 # that cause trouble. Some versions do not even contain alloca or
5121 # contain a buggy version. If you still want to use their alloca,
5122 # use ar to extract alloca.o from them instead of compiling alloca.c.
5124 ALLOCA=alloca.$ac_objext
5126 cat >>confdefs.h <<\_ACEOF
5127 #define C_ALLOCA 1
5128 _ACEOF
5131 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5132 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5133 if test "${ac_cv_os_cray+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h. */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 #if defined(CRAY) && ! defined(CRAY2)
5143 webecray
5144 #else
5145 wenotbecray
5146 #endif
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "webecray" >/dev/null 2>&1; then
5151 ac_cv_os_cray=yes
5152 else
5153 ac_cv_os_cray=no
5155 rm -f conftest*
5158 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5159 echo "${ECHO_T}$ac_cv_os_cray" >&6
5160 if test $ac_cv_os_cray = yes; then
5161 for ac_func in _getb67 GETB67 getb67; do
5162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5163 echo "$as_me:$LINENO: checking for $ac_func" >&5
5164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_var+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5176 #define $ac_func innocuous_$ac_func
5178 /* System header to define __stub macros and hopefully few prototypes,
5179 which can conflict with char $ac_func (); below.
5180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 <limits.h> exists even on freestanding compilers. */
5183 #ifdef __STDC__
5184 # include <limits.h>
5185 #else
5186 # include <assert.h>
5187 #endif
5189 #undef $ac_func
5191 /* Override any gcc2 internal prototype to avoid an error. */
5192 #ifdef __cplusplus
5193 extern "C"
5195 #endif
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char $ac_func ();
5199 /* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5203 choke me
5204 #else
5205 char (*f) () = $ac_func;
5206 #endif
5207 #ifdef __cplusplus
5209 #endif
5212 main ()
5214 return f != $ac_func;
5216 return 0;
5218 _ACEOF
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest$ac_exeext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 eval "$as_ac_var=yes"
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 eval "$as_ac_var=no"
5247 rm -f conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252 if test `eval echo '${'$as_ac_var'}'` = yes; then
5254 cat >>confdefs.h <<_ACEOF
5255 #define CRAY_STACKSEG_END $ac_func
5256 _ACEOF
5258 break
5261 done
5264 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5265 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5266 if test "${ac_cv_c_stack_direction+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 if test "$cross_compiling" = yes; then
5270 ac_cv_c_stack_direction=0
5271 else
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 find_stack_direction ()
5281 static char *addr = 0;
5282 auto char dummy;
5283 if (addr == 0)
5285 addr = &dummy;
5286 return find_stack_direction ();
5288 else
5289 return (&dummy > addr) ? 1 : -1;
5293 main ()
5295 exit (find_stack_direction () < 0);
5297 _ACEOF
5298 rm -f conftest$ac_exeext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_c_stack_direction=1
5310 else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312 echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5315 ( exit $ac_status )
5316 ac_cv_c_stack_direction=-1
5318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5324 cat >>confdefs.h <<_ACEOF
5325 #define STACK_DIRECTION $ac_cv_c_stack_direction
5326 _ACEOF
5333 for ac_header in stdlib.h unistd.h
5335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5337 echo "$as_me:$LINENO: checking for $ac_header" >&5
5338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5344 else
5345 # Is the header compilable?
5346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5355 #include <$ac_header>
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_header_compiler=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_compiler=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5387 echo "${ECHO_T}$ac_header_compiler" >&6
5389 # Is the header present?
5390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <$ac_header>
5399 _ACEOF
5400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev/null; then
5408 if test -s conftest.err; then
5409 ac_cpp_err=$ac_c_preproc_warn_flag
5410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5411 else
5412 ac_cpp_err=
5414 else
5415 ac_cpp_err=yes
5417 if test -z "$ac_cpp_err"; then
5418 ac_header_preproc=yes
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_header_preproc=no
5425 rm -f conftest.err conftest.$ac_ext
5426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5431 yes:no: )
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5438 no:yes:* )
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5452 cat <<\_ASBOX
5453 ## ------------------------------------------- ##
5454 ## Report this to debian-dpkg@lists.debian.org ##
5455 ## ------------------------------------------- ##
5456 _ASBOX
5458 sed "s/^/$as_me: WARNING: /" >&2
5460 esac
5461 echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 eval "$as_ac_Header=\$ac_header_preproc"
5468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5473 cat >>confdefs.h <<_ACEOF
5474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5475 _ACEOF
5479 done
5482 for ac_func in getpagesize
5484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_func" >&5
5486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_var+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5498 #define $ac_func innocuous_$ac_func
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func (); below.
5502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 <limits.h> exists even on freestanding compilers. */
5505 #ifdef __STDC__
5506 # include <limits.h>
5507 #else
5508 # include <assert.h>
5509 #endif
5511 #undef $ac_func
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 #ifdef __cplusplus
5515 extern "C"
5517 #endif
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5520 char $ac_func ();
5521 /* The GNU C library defines this for functions which it implements
5522 to always fail with ENOSYS. Some functions are actually named
5523 something starting with __ and the normal name is an alias. */
5524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5525 choke me
5526 #else
5527 char (*f) () = $ac_func;
5528 #endif
5529 #ifdef __cplusplus
5531 #endif
5534 main ()
5536 return f != $ac_func;
5538 return 0;
5540 _ACEOF
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 eval "$as_ac_var=yes"
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 eval "$as_ac_var=no"
5569 rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5574 if test `eval echo '${'$as_ac_var'}'` = yes; then
5575 cat >>confdefs.h <<_ACEOF
5576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5577 _ACEOF
5580 done
5582 echo "$as_me:$LINENO: checking for working mmap" >&5
5583 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5584 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_func_mmap_fixed_mapped=no
5589 else
5590 cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h. */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5597 /* malloc might have been renamed as rpl_malloc. */
5598 #undef malloc
5600 /* Thanks to Mike Haertel and Jim Avera for this test.
5601 Here is a matrix of mmap possibilities:
5602 mmap private not fixed
5603 mmap private fixed at somewhere currently unmapped
5604 mmap private fixed at somewhere already mapped
5605 mmap shared not fixed
5606 mmap shared fixed at somewhere currently unmapped
5607 mmap shared fixed at somewhere already mapped
5608 For private mappings, we should verify that changes cannot be read()
5609 back from the file, nor mmap's back from the file at a different
5610 address. (There have been systems where private was not correctly
5611 implemented like the infamous i386 svr4.0, and systems where the
5612 VM page cache was not coherent with the file system buffer cache
5613 like early versions of FreeBSD and possibly contemporary NetBSD.)
5614 For shared mappings, we should conversely verify that changes get
5615 propagated back to all the places they're supposed to be.
5617 Grep wants private fixed already mapped.
5618 The main things grep needs to know about mmap are:
5619 * does it exist and is it safe to write into the mmap'd area
5620 * how to use it (BSD variants) */
5622 #include <fcntl.h>
5623 #include <sys/mman.h>
5625 #if !STDC_HEADERS && !HAVE_STDLIB_H
5626 char *malloc ();
5627 #endif
5629 /* This mess was copied from the GNU getpagesize.h. */
5630 #if !HAVE_GETPAGESIZE
5631 /* Assume that all systems that can run configure have sys/param.h. */
5632 # if !HAVE_SYS_PARAM_H
5633 # define HAVE_SYS_PARAM_H 1
5634 # endif
5636 # ifdef _SC_PAGESIZE
5637 # define getpagesize() sysconf(_SC_PAGESIZE)
5638 # else /* no _SC_PAGESIZE */
5639 # if HAVE_SYS_PARAM_H
5640 # include <sys/param.h>
5641 # ifdef EXEC_PAGESIZE
5642 # define getpagesize() EXEC_PAGESIZE
5643 # else /* no EXEC_PAGESIZE */
5644 # ifdef NBPG
5645 # define getpagesize() NBPG * CLSIZE
5646 # ifndef CLSIZE
5647 # define CLSIZE 1
5648 # endif /* no CLSIZE */
5649 # else /* no NBPG */
5650 # ifdef NBPC
5651 # define getpagesize() NBPC
5652 # else /* no NBPC */
5653 # ifdef PAGESIZE
5654 # define getpagesize() PAGESIZE
5655 # endif /* PAGESIZE */
5656 # endif /* no NBPC */
5657 # endif /* no NBPG */
5658 # endif /* no EXEC_PAGESIZE */
5659 # else /* no HAVE_SYS_PARAM_H */
5660 # define getpagesize() 8192 /* punt totally */
5661 # endif /* no HAVE_SYS_PARAM_H */
5662 # endif /* no _SC_PAGESIZE */
5664 #endif /* no HAVE_GETPAGESIZE */
5667 main ()
5669 char *data, *data2, *data3;
5670 int i, pagesize;
5671 int fd;
5673 pagesize = getpagesize ();
5675 /* First, make a file with some known garbage in it. */
5676 data = (char *) malloc (pagesize);
5677 if (!data)
5678 exit (1);
5679 for (i = 0; i < pagesize; ++i)
5680 *(data + i) = rand ();
5681 umask (0);
5682 fd = creat ("conftest.mmap", 0600);
5683 if (fd < 0)
5684 exit (1);
5685 if (write (fd, data, pagesize) != pagesize)
5686 exit (1);
5687 close (fd);
5689 /* Next, try to mmap the file at a fixed address which already has
5690 something else allocated at it. If we can, also make sure that
5691 we see the same garbage. */
5692 fd = open ("conftest.mmap", O_RDWR);
5693 if (fd < 0)
5694 exit (1);
5695 data2 = (char *) malloc (2 * pagesize);
5696 if (!data2)
5697 exit (1);
5698 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5701 exit (1);
5702 for (i = 0; i < pagesize; ++i)
5703 if (*(data + i) != *(data2 + i))
5704 exit (1);
5706 /* Finally, make sure that changes to the mapped area do not
5707 percolate back to the file as seen by read(). (This is a bug on
5708 some variants of i386 svr4.0.) */
5709 for (i = 0; i < pagesize; ++i)
5710 *(data2 + i) = *(data2 + i) + 1;
5711 data3 = (char *) malloc (pagesize);
5712 if (!data3)
5713 exit (1);
5714 if (read (fd, data3, pagesize) != pagesize)
5715 exit (1);
5716 for (i = 0; i < pagesize; ++i)
5717 if (*(data + i) != *(data3 + i))
5718 exit (1);
5719 close (fd);
5720 exit (0);
5722 _ACEOF
5723 rm -f conftest$ac_exeext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_func_mmap_fixed_mapped=yes
5735 else
5736 echo "$as_me: program exited with status $ac_status" >&5
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ( exit $ac_status )
5741 ac_cv_func_mmap_fixed_mapped=no
5743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5746 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5747 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5748 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5750 cat >>confdefs.h <<\_ACEOF
5751 #define HAVE_MMAP 1
5752 _ACEOF
5755 rm -f conftest.mmap
5758 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5759 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5760 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 #include <features.h>
5771 #ifdef __GNU_LIBRARY__
5772 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5773 Lucky GNU user
5774 #endif
5775 #endif
5777 _ACEOF
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5780 ac_cv_gnu_library_2_1=yes
5781 else
5782 ac_cv_gnu_library_2_1=no
5784 rm -f conftest*
5789 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5790 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5792 GLIBC21="$ac_cv_gnu_library_2_1"
5797 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5798 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5799 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5803 if test "$cross_compiling" = yes; then
5805 # Guess based on the CPU.
5806 case "$host_cpu" in
5807 alpha* | i3456786 | m68k | s390*)
5808 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5810 gt_cv_int_divbyzero_sigfpe="guessing no";;
5811 esac
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5821 #include <stdlib.h>
5822 #include <signal.h>
5824 static void
5825 #ifdef __cplusplus
5826 sigfpe_handler (int sig)
5827 #else
5828 sigfpe_handler (sig) int sig;
5829 #endif
5831 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5832 exit (sig != SIGFPE);
5835 int x = 1;
5836 int y = 0;
5837 int z;
5838 int nan;
5840 int main ()
5842 signal (SIGFPE, sigfpe_handler);
5843 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5844 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5845 signal (SIGTRAP, sigfpe_handler);
5846 #endif
5847 /* Linux/SPARC yields signal SIGILL. */
5848 #if defined (__sparc__) && defined (__linux__)
5849 signal (SIGILL, sigfpe_handler);
5850 #endif
5852 z = x / y;
5853 nan = y / y;
5854 exit (1);
5857 _ACEOF
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 gt_cv_int_divbyzero_sigfpe=yes
5870 else
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ( exit $ac_status )
5876 gt_cv_int_divbyzero_sigfpe=no
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5883 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5884 case "$gt_cv_int_divbyzero_sigfpe" in
5885 *yes) value=1;;
5886 *) value=0;;
5887 esac
5889 cat >>confdefs.h <<_ACEOF
5890 #define INTDIV0_RAISES_SIGFPE $value
5891 _ACEOF
5895 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5896 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5897 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 unsigned long long ull = 1ULL; int i = 63;
5908 main ()
5910 unsigned long long ullmax = (unsigned long long) -1;
5911 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5913 return 0;
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918 (eval $ac_link) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_type_unsigned_long_long=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_cv_type_unsigned_long_long=no
5944 rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5948 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5949 if test $ac_cv_type_unsigned_long_long = yes; then
5951 cat >>confdefs.h <<\_ACEOF
5952 #define HAVE_UNSIGNED_LONG_LONG 1
5953 _ACEOF
5960 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5962 test $ac_cv_type_unsigned_long_long = yes \
5963 && ac_type='unsigned long long' \
5964 || ac_type='unsigned long'
5966 cat >>confdefs.h <<_ACEOF
5967 #define uintmax_t $ac_type
5968 _ACEOF
5970 else
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_UINTMAX_T 1
5974 _ACEOF
5979 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5980 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5981 if test "${gt_cv_header_inttypes_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <sys/types.h>
5992 #include <inttypes.h>
5994 main ()
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 gt_cv_header_inttypes_h=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 gt_cv_header_inttypes_h=no
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6033 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6034 if test $gt_cv_header_inttypes_h = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_INTTYPES_H 1
6038 _ACEOF
6044 if test $gt_cv_header_inttypes_h = yes; then
6045 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6046 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6047 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <inttypes.h>
6058 #ifdef PRId32
6059 char *p = PRId32;
6060 #endif
6063 main ()
6067 return 0;
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 gt_cv_inttypes_pri_broken=no
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 gt_cv_inttypes_pri_broken=yes
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6101 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6102 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6104 if test "$gt_cv_inttypes_pri_broken" = yes; then
6106 cat >>confdefs.h <<_ACEOF
6107 #define PRI_MACROS_BROKEN 1
6108 _ACEOF
6114 for ac_header in stdint.h
6116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6118 echo "$as_me:$LINENO: checking for $ac_header" >&5
6119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6125 else
6126 # Is the header compilable?
6127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 $ac_includes_default
6136 #include <$ac_header>
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_header_compiler=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_compiler=no
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168 echo "${ECHO_T}$ac_header_compiler" >&6
6170 # Is the header present?
6171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <$ac_header>
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192 else
6193 ac_cpp_err=
6195 else
6196 ac_cpp_err=yes
6198 if test -z "$ac_cpp_err"; then
6199 ac_header_preproc=yes
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_header_preproc=no
6206 rm -f conftest.err conftest.$ac_ext
6207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208 echo "${ECHO_T}$ac_header_preproc" >&6
6210 # So? What about this header?
6211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212 yes:no: )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6219 no:yes:* )
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6233 cat <<\_ASBOX
6234 ## ------------------------------------------- ##
6235 ## Report this to debian-dpkg@lists.debian.org ##
6236 ## ------------------------------------------- ##
6237 _ASBOX
6239 sed "s/^/$as_me: WARNING: /" >&2
6241 esac
6242 echo "$as_me:$LINENO: checking for $ac_header" >&5
6243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 eval "$as_ac_Header=\$ac_header_preproc"
6249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6254 cat >>confdefs.h <<_ACEOF
6255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256 _ACEOF
6260 done
6262 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6263 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6264 result=
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6272 #include <limits.h>
6273 #if HAVE_STDINT_H
6274 #include <stdint.h>
6275 #endif
6276 #ifdef SIZE_MAX
6277 Found it
6278 #endif
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "Found it" >/dev/null 2>&1; then
6283 result=yes
6285 rm -f conftest*
6287 if test -z "$result"; then
6288 if test "$cross_compiling" = yes; then
6289 # Depending upon the size, compute the lo and hi bounds.
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <stddef.h>
6298 main ()
6300 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6301 test_array [0] = 0
6304 return 0;
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 ac_lo=0 ac_mid=0
6329 while :; do
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #include <stddef.h>
6338 main ()
6340 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6341 test_array [0] = 0
6344 return 0;
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349 (eval $ac_compile) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest.$ac_objext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_hi=$ac_mid; break
6369 else
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_lo=`expr $ac_mid + 1`
6374 if test $ac_lo -le $ac_mid; then
6375 ac_lo= ac_hi=
6376 break
6378 ac_mid=`expr 2 '*' $ac_mid + 1`
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381 done
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <stddef.h>
6394 main ()
6396 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6397 test_array [0] = 0
6400 return 0;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_hi=-1 ac_mid=-1
6425 while :; do
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #include <stddef.h>
6434 main ()
6436 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6437 test_array [0] = 0
6440 return 0;
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_lo=$ac_mid; break
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_hi=`expr '(' $ac_mid ')' - 1`
6470 if test $ac_mid -le $ac_hi; then
6471 ac_lo= ac_hi=
6472 break
6474 ac_mid=`expr 2 '*' $ac_mid`
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6477 done
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_lo= ac_hi=
6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 # Binary search between lo and hi bounds.
6488 while test "x$ac_lo" != "x$ac_hi"; do
6489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <stddef.h>
6498 main ()
6500 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6501 test_array [0] = 0
6504 return 0;
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 (eval $ac_try) 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_hi=$ac_mid
6529 else
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_lo=`expr '(' $ac_mid ')' + 1`
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 done
6537 case $ac_lo in
6538 ?*) res_hi=$ac_lo;;
6539 '') result=? ;;
6540 esac
6541 else
6542 if test "$cross_compiling" = yes; then
6543 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6544 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6545 { (exit 1); exit 1; }; }
6546 else
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <stddef.h>
6554 long longval () { return ~(size_t)0 / 10; }
6555 unsigned long ulongval () { return ~(size_t)0 / 10; }
6556 #include <stdio.h>
6557 #include <stdlib.h>
6559 main ()
6562 FILE *f = fopen ("conftest.val", "w");
6563 if (! f)
6564 exit (1);
6565 if ((~(size_t)0 / 10) < 0)
6567 long i = longval ();
6568 if (i != (~(size_t)0 / 10))
6569 exit (1);
6570 fprintf (f, "%ld\n", i);
6572 else
6574 unsigned long i = ulongval ();
6575 if (i != (~(size_t)0 / 10))
6576 exit (1);
6577 fprintf (f, "%lu\n", i);
6579 exit (ferror (f) || fclose (f) != 0);
6582 return 0;
6584 _ACEOF
6585 rm -f conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 res_hi=`cat conftest.val`
6597 else
6598 echo "$as_me: program exited with status $ac_status" >&5
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ( exit $ac_status )
6603 result=?
6605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6608 rm -f conftest.val
6609 if test "$cross_compiling" = yes; then
6610 # Depending upon the size, compute the lo and hi bounds.
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #include <stddef.h>
6619 main ()
6621 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6622 test_array [0] = 0
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_lo=0 ac_mid=0
6650 while :; do
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <stddef.h>
6659 main ()
6661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6662 test_array [0] = 0
6665 return 0;
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_hi=$ac_mid; break
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_lo=`expr $ac_mid + 1`
6695 if test $ac_lo -le $ac_mid; then
6696 ac_lo= ac_hi=
6697 break
6699 ac_mid=`expr 2 '*' $ac_mid + 1`
6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702 done
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <stddef.h>
6715 main ()
6717 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6718 test_array [0] = 0
6721 return 0;
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 ac_hi=-1 ac_mid=-1
6746 while :; do
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <stddef.h>
6755 main ()
6757 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6758 test_array [0] = 0
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_lo=$ac_mid; break
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_hi=`expr '(' $ac_mid ')' - 1`
6791 if test $ac_mid -le $ac_hi; then
6792 ac_lo= ac_hi=
6793 break
6795 ac_mid=`expr 2 '*' $ac_mid`
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 done
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_lo= ac_hi=
6805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 # Binary search between lo and hi bounds.
6809 while test "x$ac_lo" != "x$ac_hi"; do
6810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #include <stddef.h>
6819 main ()
6821 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6822 test_array [0] = 0
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6830 (eval $ac_compile) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_hi=$ac_mid
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_lo=`expr '(' $ac_mid ')' + 1`
6856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 done
6858 case $ac_lo in
6859 ?*) res_lo=$ac_lo;;
6860 '') result=? ;;
6861 esac
6862 else
6863 if test "$cross_compiling" = yes; then
6864 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6865 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6866 { (exit 1); exit 1; }; }
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <stddef.h>
6875 long longval () { return ~(size_t)0 % 10; }
6876 unsigned long ulongval () { return ~(size_t)0 % 10; }
6877 #include <stdio.h>
6878 #include <stdlib.h>
6880 main ()
6883 FILE *f = fopen ("conftest.val", "w");
6884 if (! f)
6885 exit (1);
6886 if ((~(size_t)0 % 10) < 0)
6888 long i = longval ();
6889 if (i != (~(size_t)0 % 10))
6890 exit (1);
6891 fprintf (f, "%ld\n", i);
6893 else
6895 unsigned long i = ulongval ();
6896 if (i != (~(size_t)0 % 10))
6897 exit (1);
6898 fprintf (f, "%lu\n", i);
6900 exit (ferror (f) || fclose (f) != 0);
6903 return 0;
6905 _ACEOF
6906 rm -f conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 res_lo=`cat conftest.val`
6918 else
6919 echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ( exit $ac_status )
6924 result=?
6926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929 rm -f conftest.val
6930 if test "$cross_compiling" = yes; then
6931 # Depending upon the size, compute the lo and hi bounds.
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <stddef.h>
6940 main ()
6942 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6943 test_array [0] = 0
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 ac_lo=0 ac_mid=0
6971 while :; do
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <stddef.h>
6980 main ()
6982 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6983 test_array [0] = 0
6986 return 0;
6988 _ACEOF
6989 rm -f conftest.$ac_objext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6991 (eval $ac_compile) 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_hi=$ac_mid; break
7011 else
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_lo=`expr $ac_mid + 1`
7016 if test $ac_lo -le $ac_mid; then
7017 ac_lo= ac_hi=
7018 break
7020 ac_mid=`expr 2 '*' $ac_mid + 1`
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 done
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 #include <stddef.h>
7036 main ()
7038 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7039 test_array [0] = 0
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_hi=-1 ac_mid=-1
7067 while :; do
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <stddef.h>
7076 main ()
7078 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7079 test_array [0] = 0
7082 return 0;
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_lo=$ac_mid; break
7107 else
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_hi=`expr '(' $ac_mid ')' - 1`
7112 if test $ac_mid -le $ac_hi; then
7113 ac_lo= ac_hi=
7114 break
7116 ac_mid=`expr 2 '*' $ac_mid`
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 done
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ac_lo= ac_hi=
7126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 # Binary search between lo and hi bounds.
7130 while test "x$ac_lo" != "x$ac_hi"; do
7131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <stddef.h>
7140 main ()
7142 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7143 test_array [0] = 0
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_hi=$ac_mid
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_lo=`expr '(' $ac_mid ')' + 1`
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 done
7179 case $ac_lo in
7180 ?*) fits_in_uint=$ac_lo;;
7181 '') result=? ;;
7182 esac
7183 else
7184 if test "$cross_compiling" = yes; then
7185 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7186 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7187 { (exit 1); exit 1; }; }
7188 else
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #include <stddef.h>
7196 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7197 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7198 #include <stdio.h>
7199 #include <stdlib.h>
7201 main ()
7204 FILE *f = fopen ("conftest.val", "w");
7205 if (! f)
7206 exit (1);
7207 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7209 long i = longval ();
7210 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7211 exit (1);
7212 fprintf (f, "%ld\n", i);
7214 else
7216 unsigned long i = ulongval ();
7217 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7218 exit (1);
7219 fprintf (f, "%lu\n", i);
7221 exit (ferror (f) || fclose (f) != 0);
7224 return 0;
7226 _ACEOF
7227 rm -f conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 fits_in_uint=`cat conftest.val`
7239 else
7240 echo "$as_me: program exited with status $ac_status" >&5
7241 echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 ( exit $ac_status )
7245 result=?
7247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7250 rm -f conftest.val
7251 if test "$fits_in_uint" = 1; then
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 #include <stddef.h>
7259 extern size_t foo;
7260 extern unsigned long foo;
7263 main ()
7267 return 0;
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272 (eval $ac_compile) 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 fits_in_uint=0
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 if test -z "$result"; then
7300 if test "$fits_in_uint" = 1; then
7301 result="$res_hi$res_lo"U
7302 else
7303 result="$res_hi$res_lo"UL
7305 else
7306 result='~(size_t)0'
7309 echo "$as_me:$LINENO: result: $result" >&5
7310 echo "${ECHO_T}$result" >&6
7311 if test "$result" != yes; then
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZE_MAX $result
7315 _ACEOF
7322 for ac_header in stdint.h
7324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7333 else
7334 # Is the header compilable?
7335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 #include <$ac_header>
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_header_compiler=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_header_compiler=no
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376 echo "${ECHO_T}$ac_header_compiler" >&6
7378 # Is the header present?
7379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <$ac_header>
7388 _ACEOF
7389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } >/dev/null; then
7397 if test -s conftest.err; then
7398 ac_cpp_err=$ac_c_preproc_warn_flag
7399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7400 else
7401 ac_cpp_err=
7403 else
7404 ac_cpp_err=yes
7406 if test -z "$ac_cpp_err"; then
7407 ac_header_preproc=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_header_preproc=no
7414 rm -f conftest.err conftest.$ac_ext
7415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7416 echo "${ECHO_T}$ac_header_preproc" >&6
7418 # So? What about this header?
7419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7420 yes:no: )
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7425 ac_header_preproc=yes
7427 no:yes:* )
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7441 cat <<\_ASBOX
7442 ## ------------------------------------------- ##
7443 ## Report this to debian-dpkg@lists.debian.org ##
7444 ## ------------------------------------------- ##
7445 _ASBOX
7447 sed "s/^/$as_me: WARNING: /" >&2
7449 esac
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 eval "$as_ac_Header=\$ac_header_preproc"
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7462 cat >>confdefs.h <<_ACEOF
7463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 _ACEOF
7468 done
7472 if test "X$prefix" = "XNONE"; then
7473 acl_final_prefix="$ac_default_prefix"
7474 else
7475 acl_final_prefix="$prefix"
7477 if test "X$exec_prefix" = "XNONE"; then
7478 acl_final_exec_prefix='${prefix}'
7479 else
7480 acl_final_exec_prefix="$exec_prefix"
7482 acl_save_prefix="$prefix"
7483 prefix="$acl_final_prefix"
7484 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7485 prefix="$acl_save_prefix"
7488 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7489 if test "${with_gnu_ld+set}" = set; then
7490 withval="$with_gnu_ld"
7491 test "$withval" = no || with_gnu_ld=yes
7492 else
7493 with_gnu_ld=no
7495 # Prepare PATH_SEPARATOR.
7496 # The user is always right.
7497 if test "${PATH_SEPARATOR+set}" != set; then
7498 echo "#! /bin/sh" >conf$$.sh
7499 echo "exit 0" >>conf$$.sh
7500 chmod +x conf$$.sh
7501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7502 PATH_SEPARATOR=';'
7503 else
7504 PATH_SEPARATOR=:
7506 rm -f conf$$.sh
7508 ac_prog=ld
7509 if test "$GCC" = yes; then
7510 # Check if gcc -print-prog-name=ld gives a path.
7511 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7512 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7513 case $host in
7514 *-*-mingw*)
7515 # gcc leaves a trailing carriage return which upsets mingw
7516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7519 esac
7520 case $ac_prog in
7521 # Accept absolute paths.
7522 [\\/]* | [A-Za-z]:[\\/]*)
7523 re_direlt='/[^/][^/]*/\.\./'
7524 # Canonicalize the path of ld
7525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7528 done
7529 test -z "$LD" && LD="$ac_prog"
7532 # If it fails, then pretend we aren't using GCC.
7533 ac_prog=ld
7536 # If it is relative, then search for the first ld in PATH.
7537 with_gnu_ld=unknown
7539 esac
7540 elif test "$with_gnu_ld" = yes; then
7541 echo "$as_me:$LINENO: checking for GNU ld" >&5
7542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7543 else
7544 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7547 if test "${acl_cv_path_LD+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 if test -z "$LD"; then
7551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7552 for ac_dir in $PATH; do
7553 test -z "$ac_dir" && ac_dir=.
7554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7555 acl_cv_path_LD="$ac_dir/$ac_prog"
7556 # Check to see if the program is GNU ld. I'd rather use --version,
7557 # but apparently some GNU ld's only accept -v.
7558 # Break only if it was the GNU/non-GNU ld that we prefer.
7559 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7560 *GNU* | *'with BFD'*)
7561 test "$with_gnu_ld" != no && break ;;
7563 test "$with_gnu_ld" != yes && break ;;
7564 esac
7566 done
7567 IFS="$ac_save_ifs"
7568 else
7569 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7573 LD="$acl_cv_path_LD"
7574 if test -n "$LD"; then
7575 echo "$as_me:$LINENO: result: $LD" >&5
7576 echo "${ECHO_T}$LD" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7583 { (exit 1); exit 1; }; }
7584 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7586 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7590 case `$LD -v 2>&1 </dev/null` in
7591 *GNU* | *'with BFD'*)
7592 acl_cv_prog_gnu_ld=yes ;;
7594 acl_cv_prog_gnu_ld=no ;;
7595 esac
7597 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7598 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7599 with_gnu_ld=$acl_cv_prog_gnu_ld
7603 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7604 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7605 if test "${acl_cv_rpath+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7611 . ./conftest.sh
7612 rm -f ./conftest.sh
7613 acl_cv_rpath=done
7616 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7617 echo "${ECHO_T}$acl_cv_rpath" >&6
7618 wl="$acl_cv_wl"
7619 libext="$acl_cv_libext"
7620 shlibext="$acl_cv_shlibext"
7621 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7622 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7623 hardcode_direct="$acl_cv_hardcode_direct"
7624 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7625 # Check whether --enable-rpath or --disable-rpath was given.
7626 if test "${enable_rpath+set}" = set; then
7627 enableval="$enable_rpath"
7629 else
7630 enable_rpath=yes
7639 use_additional=yes
7641 acl_save_prefix="$prefix"
7642 prefix="$acl_final_prefix"
7643 acl_save_exec_prefix="$exec_prefix"
7644 exec_prefix="$acl_final_exec_prefix"
7646 eval additional_includedir=\"$includedir\"
7647 eval additional_libdir=\"$libdir\"
7649 exec_prefix="$acl_save_exec_prefix"
7650 prefix="$acl_save_prefix"
7653 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7654 if test "${with_libiconv_prefix+set}" = set; then
7655 withval="$with_libiconv_prefix"
7657 if test "X$withval" = "Xno"; then
7658 use_additional=no
7659 else
7660 if test "X$withval" = "X"; then
7662 acl_save_prefix="$prefix"
7663 prefix="$acl_final_prefix"
7664 acl_save_exec_prefix="$exec_prefix"
7665 exec_prefix="$acl_final_exec_prefix"
7667 eval additional_includedir=\"$includedir\"
7668 eval additional_libdir=\"$libdir\"
7670 exec_prefix="$acl_save_exec_prefix"
7671 prefix="$acl_save_prefix"
7673 else
7674 additional_includedir="$withval/include"
7675 additional_libdir="$withval/lib"
7680 LIBICONV=
7681 LTLIBICONV=
7682 INCICONV=
7683 rpathdirs=
7684 ltrpathdirs=
7685 names_already_handled=
7686 names_next_round='iconv '
7687 while test -n "$names_next_round"; do
7688 names_this_round="$names_next_round"
7689 names_next_round=
7690 for name in $names_this_round; do
7691 already_handled=
7692 for n in $names_already_handled; do
7693 if test "$n" = "$name"; then
7694 already_handled=yes
7695 break
7697 done
7698 if test -z "$already_handled"; then
7699 names_already_handled="$names_already_handled $name"
7700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7701 eval value=\"\$HAVE_LIB$uppername\"
7702 if test -n "$value"; then
7703 if test "$value" = yes; then
7704 eval value=\"\$LIB$uppername\"
7705 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7706 eval value=\"\$LTLIB$uppername\"
7707 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7708 else
7711 else
7712 found_dir=
7713 found_la=
7714 found_so=
7715 found_a=
7716 if test $use_additional = yes; then
7717 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7718 found_dir="$additional_libdir"
7719 found_so="$additional_libdir/lib$name.$shlibext"
7720 if test -f "$additional_libdir/lib$name.la"; then
7721 found_la="$additional_libdir/lib$name.la"
7723 else
7724 if test -f "$additional_libdir/lib$name.$libext"; then
7725 found_dir="$additional_libdir"
7726 found_a="$additional_libdir/lib$name.$libext"
7727 if test -f "$additional_libdir/lib$name.la"; then
7728 found_la="$additional_libdir/lib$name.la"
7733 if test "X$found_dir" = "X"; then
7734 for x in $LDFLAGS $LTLIBICONV; do
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7740 eval x=\"$x\"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7744 case "$x" in
7745 -L*)
7746 dir=`echo "X$x" | sed -e 's/^X-L//'`
7747 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7748 found_dir="$dir"
7749 found_so="$dir/lib$name.$shlibext"
7750 if test -f "$dir/lib$name.la"; then
7751 found_la="$dir/lib$name.la"
7753 else
7754 if test -f "$dir/lib$name.$libext"; then
7755 found_dir="$dir"
7756 found_a="$dir/lib$name.$libext"
7757 if test -f "$dir/lib$name.la"; then
7758 found_la="$dir/lib$name.la"
7763 esac
7764 if test "X$found_dir" != "X"; then
7765 break
7767 done
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7774 else
7775 haveit=
7776 for x in $ltrpathdirs; do
7777 if test "X$x" = "X$found_dir"; then
7778 haveit=yes
7779 break
7781 done
7782 if test -z "$haveit"; then
7783 ltrpathdirs="$ltrpathdirs $found_dir"
7785 if test "$hardcode_direct" = yes; then
7786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7787 else
7788 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7790 haveit=
7791 for x in $rpathdirs; do
7792 if test "X$x" = "X$found_dir"; then
7793 haveit=yes
7794 break
7796 done
7797 if test -z "$haveit"; then
7798 rpathdirs="$rpathdirs $found_dir"
7800 else
7801 haveit=
7802 for x in $LDFLAGS $LIBICONV; do
7804 acl_save_prefix="$prefix"
7805 prefix="$acl_final_prefix"
7806 acl_save_exec_prefix="$exec_prefix"
7807 exec_prefix="$acl_final_exec_prefix"
7808 eval x=\"$x\"
7809 exec_prefix="$acl_save_exec_prefix"
7810 prefix="$acl_save_prefix"
7812 if test "X$x" = "X-L$found_dir"; then
7813 haveit=yes
7814 break
7816 done
7817 if test -z "$haveit"; then
7818 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7820 if test "$hardcode_minus_L" != no; then
7821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7822 else
7823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7828 else
7829 if test "X$found_a" != "X"; then
7830 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7831 else
7832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7835 additional_includedir=
7836 case "$found_dir" in
7837 */lib | */lib/)
7838 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7839 additional_includedir="$basedir/include"
7841 esac
7842 if test "X$additional_includedir" != "X"; then
7843 if test "X$additional_includedir" != "X/usr/include"; then
7844 haveit=
7845 if test "X$additional_includedir" = "X/usr/local/include"; then
7846 if test -n "$GCC"; then
7847 case $host_os in
7848 linux*) haveit=yes;;
7849 esac
7852 if test -z "$haveit"; then
7853 for x in $CPPFLAGS $INCICONV; do
7855 acl_save_prefix="$prefix"
7856 prefix="$acl_final_prefix"
7857 acl_save_exec_prefix="$exec_prefix"
7858 exec_prefix="$acl_final_exec_prefix"
7859 eval x=\"$x\"
7860 exec_prefix="$acl_save_exec_prefix"
7861 prefix="$acl_save_prefix"
7863 if test "X$x" = "X-I$additional_includedir"; then
7864 haveit=yes
7865 break
7867 done
7868 if test -z "$haveit"; then
7869 if test -d "$additional_includedir"; then
7870 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7876 if test -n "$found_la"; then
7877 save_libdir="$libdir"
7878 case "$found_la" in
7879 */* | *\\*) . "$found_la" ;;
7880 *) . "./$found_la" ;;
7881 esac
7882 libdir="$save_libdir"
7883 for dep in $dependency_libs; do
7884 case "$dep" in
7885 -L*)
7886 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7887 if test "X$additional_libdir" != "X/usr/lib"; then
7888 haveit=
7889 if test "X$additional_libdir" = "X/usr/local/lib"; then
7890 if test -n "$GCC"; then
7891 case $host_os in
7892 linux*) haveit=yes;;
7893 esac
7896 if test -z "$haveit"; then
7897 haveit=
7898 for x in $LDFLAGS $LIBICONV; do
7900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 acl_save_exec_prefix="$exec_prefix"
7903 exec_prefix="$acl_final_exec_prefix"
7904 eval x=\"$x\"
7905 exec_prefix="$acl_save_exec_prefix"
7906 prefix="$acl_save_prefix"
7908 if test "X$x" = "X-L$additional_libdir"; then
7909 haveit=yes
7910 break
7912 done
7913 if test -z "$haveit"; then
7914 if test -d "$additional_libdir"; then
7915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7918 haveit=
7919 for x in $LDFLAGS $LTLIBICONV; do
7921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7925 eval x=\"$x\"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7929 if test "X$x" = "X-L$additional_libdir"; then
7930 haveit=yes
7931 break
7933 done
7934 if test -z "$haveit"; then
7935 if test -d "$additional_libdir"; then
7936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7942 -R*)
7943 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7944 if test "$enable_rpath" != no; then
7945 haveit=
7946 for x in $rpathdirs; do
7947 if test "X$x" = "X$dir"; then
7948 haveit=yes
7949 break
7951 done
7952 if test -z "$haveit"; then
7953 rpathdirs="$rpathdirs $dir"
7955 haveit=
7956 for x in $ltrpathdirs; do
7957 if test "X$x" = "X$dir"; then
7958 haveit=yes
7959 break
7961 done
7962 if test -z "$haveit"; then
7963 ltrpathdirs="$ltrpathdirs $dir"
7967 -l*)
7968 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7970 *.la)
7971 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7974 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7977 esac
7978 done
7980 else
7981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7986 done
7987 done
7988 if test "X$rpathdirs" != "X"; then
7989 if test -n "$hardcode_libdir_separator"; then
7990 alldirs=
7991 for found_dir in $rpathdirs; do
7992 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7993 done
7994 acl_save_libdir="$libdir"
7995 libdir="$alldirs"
7996 eval flag=\"$hardcode_libdir_flag_spec\"
7997 libdir="$acl_save_libdir"
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7999 else
8000 for found_dir in $rpathdirs; do
8001 acl_save_libdir="$libdir"
8002 libdir="$found_dir"
8003 eval flag=\"$hardcode_libdir_flag_spec\"
8004 libdir="$acl_save_libdir"
8005 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8006 done
8009 if test "X$ltrpathdirs" != "X"; then
8010 for found_dir in $ltrpathdirs; do
8011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8012 done
8022 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8023 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8024 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 $ac_includes_default
8035 main ()
8037 if ((ptrdiff_t *) 0)
8038 return 0;
8039 if (sizeof (ptrdiff_t))
8040 return 0;
8042 return 0;
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_ptrdiff_t=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_cv_type_ptrdiff_t=no
8073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8076 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8077 if test $ac_cv_type_ptrdiff_t = yes; then
8079 else
8081 cat >>confdefs.h <<\_ACEOF
8082 #define ptrdiff_t long
8083 _ACEOF
8098 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8099 stdlib.h string.h unistd.h sys/param.h
8101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110 else
8111 # Is the header compilable?
8112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h. */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 $ac_includes_default
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_header_compiler=no
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153 echo "${ECHO_T}$ac_header_compiler" >&6
8155 # Is the header present?
8156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <$ac_header>
8165 _ACEOF
8166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177 else
8178 ac_cpp_err=
8180 else
8181 ac_cpp_err=yes
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_header_preproc=no
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197 yes:no: )
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8204 no:yes:* )
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8218 cat <<\_ASBOX
8219 ## ------------------------------------------- ##
8220 ## Report this to debian-dpkg@lists.debian.org ##
8221 ## ------------------------------------------- ##
8222 _ASBOX
8224 sed "s/^/$as_me: WARNING: /" >&2
8226 esac
8227 echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 eval "$as_ac_Header=\$ac_header_preproc"
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239 cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8245 done
8270 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8273 __fsetlocking
8275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8276 echo "$as_me:$LINENO: checking for $ac_func" >&5
8277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_var+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8289 #define $ac_func innocuous_$ac_func
8291 /* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char $ac_func (); below.
8293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 <limits.h> exists even on freestanding compilers. */
8296 #ifdef __STDC__
8297 # include <limits.h>
8298 #else
8299 # include <assert.h>
8300 #endif
8302 #undef $ac_func
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 #ifdef __cplusplus
8306 extern "C"
8308 #endif
8309 /* We use char because int might match the return type of a gcc2
8310 builtin and then its argument prototype would still apply. */
8311 char $ac_func ();
8312 /* The GNU C library defines this for functions which it implements
8313 to always fail with ENOSYS. Some functions are actually named
8314 something starting with __ and the normal name is an alias. */
8315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8316 choke me
8317 #else
8318 char (*f) () = $ac_func;
8319 #endif
8320 #ifdef __cplusplus
8322 #endif
8325 main ()
8327 return f != $ac_func;
8329 return 0;
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 (eval $ac_try) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "$as_ac_var=yes"
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 eval "$as_ac_var=no"
8360 rm -f conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8365 if test `eval echo '${'$as_ac_var'}'` = yes; then
8366 cat >>confdefs.h <<_ACEOF
8367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8368 _ACEOF
8371 done
8375 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8376 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8377 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 #include <stdio.h>
8388 main ()
8391 #ifndef _snprintf
8392 char *p = (char *) _snprintf;
8393 #endif
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_have_decl__snprintf=yes
8421 else
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_have_decl__snprintf=no
8427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8430 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8431 if test $ac_cv_have_decl__snprintf = yes; then
8432 gt_value=1
8433 else
8434 gt_value=0
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_DECL__SNPRINTF $gt_value
8439 _ACEOF
8443 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8444 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8445 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 #include <stdio.h>
8456 main ()
8459 #ifndef _snwprintf
8460 char *p = (char *) _snwprintf;
8461 #endif
8464 return 0;
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_decl__snwprintf=yes
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_have_decl__snwprintf=no
8495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8498 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8499 if test $ac_cv_have_decl__snwprintf = yes; then
8500 gt_value=1
8501 else
8502 gt_value=0
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_DECL__SNWPRINTF $gt_value
8507 _ACEOF
8512 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8513 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8514 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <stdio.h>
8525 main ()
8528 #ifndef feof_unlocked
8529 char *p = (char *) feof_unlocked;
8530 #endif
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_have_decl_feof_unlocked=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_have_decl_feof_unlocked=no
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8566 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8567 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8568 if test $ac_cv_have_decl_feof_unlocked = yes; then
8569 gt_value=1
8570 else
8571 gt_value=0
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8576 _ACEOF
8580 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8581 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8582 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 #include <stdio.h>
8593 main ()
8596 #ifndef fgets_unlocked
8597 char *p = (char *) fgets_unlocked;
8598 #endif
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606 (eval $ac_compile) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_cv_have_decl_fgets_unlocked=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_cv_have_decl_fgets_unlocked=no
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8635 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8636 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8637 gt_value=1
8638 else
8639 gt_value=0
8642 cat >>confdefs.h <<_ACEOF
8643 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8644 _ACEOF
8648 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8649 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8650 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 #include <stdio.h>
8661 main ()
8664 #ifndef getc_unlocked
8665 char *p = (char *) getc_unlocked;
8666 #endif
8669 return 0;
8671 _ACEOF
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_have_decl_getc_unlocked=yes
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 ac_cv_have_decl_getc_unlocked=no
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8703 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8704 if test $ac_cv_have_decl_getc_unlocked = yes; then
8705 gt_value=1
8706 else
8707 gt_value=0
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8712 _ACEOF
8716 case $gt_cv_func_printf_posix in
8717 *yes) HAVE_POSIX_PRINTF=1 ;;
8718 *) HAVE_POSIX_PRINTF=0 ;;
8719 esac
8721 if test "$ac_cv_func_asprintf" = yes; then
8722 HAVE_ASPRINTF=1
8723 else
8724 HAVE_ASPRINTF=0
8727 if test "$ac_cv_func_snprintf" = yes; then
8728 HAVE_SNPRINTF=1
8729 else
8730 HAVE_SNPRINTF=0
8733 if test "$ac_cv_func_wprintf" = yes; then
8734 HAVE_WPRINTF=1
8735 else
8736 HAVE_WPRINTF=0
8745 am_save_CPPFLAGS="$CPPFLAGS"
8747 for element in $INCICONV; do
8748 haveit=
8749 for x in $CPPFLAGS; do
8751 acl_save_prefix="$prefix"
8752 prefix="$acl_final_prefix"
8753 acl_save_exec_prefix="$exec_prefix"
8754 exec_prefix="$acl_final_exec_prefix"
8755 eval x=\"$x\"
8756 exec_prefix="$acl_save_exec_prefix"
8757 prefix="$acl_save_prefix"
8759 if test "X$x" = "X$element"; then
8760 haveit=yes
8761 break
8763 done
8764 if test -z "$haveit"; then
8765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8767 done
8770 echo "$as_me:$LINENO: checking for iconv" >&5
8771 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8772 if test "${am_cv_func_iconv+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8776 am_cv_func_iconv="no, consider installing GNU libiconv"
8777 am_cv_lib_iconv=no
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 #include <stdlib.h>
8785 #include <iconv.h>
8787 main ()
8789 iconv_t cd = iconv_open("","");
8790 iconv(cd,NULL,NULL,NULL,NULL);
8791 iconv_close(cd);
8793 return 0;
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 am_cv_func_iconv=yes
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8823 rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 if test "$am_cv_func_iconv" != yes; then
8826 am_save_LIBS="$LIBS"
8827 LIBS="$LIBS $LIBICONV"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834 #include <stdlib.h>
8835 #include <iconv.h>
8837 main ()
8839 iconv_t cd = iconv_open("","");
8840 iconv(cd,NULL,NULL,NULL,NULL);
8841 iconv_close(cd);
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 am_cv_lib_iconv=yes
8868 am_cv_func_iconv=yes
8869 else
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8874 rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 LIBS="$am_save_LIBS"
8880 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8881 echo "${ECHO_T}$am_cv_func_iconv" >&6
8882 if test "$am_cv_func_iconv" = yes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_ICONV 1
8886 _ACEOF
8889 if test "$am_cv_lib_iconv" = yes; then
8890 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8891 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8892 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8893 echo "${ECHO_T}$LIBICONV" >&6
8894 else
8895 CPPFLAGS="$am_save_CPPFLAGS"
8896 LIBICONV=
8897 LTLIBICONV=
8902 if test "$am_cv_func_iconv" = yes; then
8903 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8904 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8905 if test "${am_cv_proto_iconv+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8916 #include <stdlib.h>
8917 #include <iconv.h>
8918 extern
8919 #ifdef __cplusplus
8921 #endif
8922 #if defined(__STDC__) || defined(__cplusplus)
8923 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8924 #else
8925 size_t iconv();
8926 #endif
8929 main ()
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 am_cv_proto_iconv_arg1=""
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 am_cv_proto_iconv_arg1="const"
8964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8968 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8969 echo "$as_me:$LINENO: result: ${ac_t:-
8970 }$am_cv_proto_iconv" >&5
8971 echo "${ECHO_T}${ac_t:-
8972 }$am_cv_proto_iconv" >&6
8974 cat >>confdefs.h <<_ACEOF
8975 #define ICONV_CONST $am_cv_proto_iconv_arg1
8976 _ACEOF
8981 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8982 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8983 if test "${am_cv_langinfo_codeset+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <langinfo.h>
8994 main ()
8996 char* cs = nl_langinfo(CODESET);
8998 return 0;
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 am_cv_langinfo_codeset=yes
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 am_cv_langinfo_codeset=no
9029 rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9034 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9035 if test $am_cv_langinfo_codeset = yes; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_LANGINFO_CODESET 1
9039 _ACEOF
9043 if test $ac_cv_header_locale_h = yes; then
9045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9046 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9047 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 #include <locale.h>
9058 main ()
9060 return LC_MESSAGES
9062 return 0;
9064 _ACEOF
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 am_cv_val_LC_MESSAGES=yes
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 am_cv_val_LC_MESSAGES=no
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9097 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9098 if test $am_cv_val_LC_MESSAGES = yes; then
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_LC_MESSAGES 1
9102 _ACEOF
9108 for ac_prog in bison
9110 # Extract the first word of "$ac_prog", so it can be a program name with args.
9111 set dummy $ac_prog; ac_word=$2
9112 echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9114 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 if test -n "$INTLBISON"; then
9118 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_INTLBISON="$ac_prog"
9128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9131 done
9132 done
9136 INTLBISON=$ac_cv_prog_INTLBISON
9137 if test -n "$INTLBISON"; then
9138 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9139 echo "${ECHO_T}$INTLBISON" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9145 test -n "$INTLBISON" && break
9146 done
9148 if test -z "$INTLBISON"; then
9149 ac_verc_fail=yes
9150 else
9151 echo "$as_me:$LINENO: checking version of bison" >&5
9152 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9153 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9154 case $ac_prog_version in
9155 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9156 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9157 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9158 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9159 esac
9160 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9161 echo "${ECHO_T}$ac_prog_version" >&6
9163 if test $ac_verc_fail = yes; then
9164 INTLBISON=:
9182 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9183 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9184 # Check whether --enable-nls or --disable-nls was given.
9185 if test "${enable_nls+set}" = set; then
9186 enableval="$enable_nls"
9187 USE_NLS=$enableval
9188 else
9189 USE_NLS=yes
9191 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9192 echo "${ECHO_T}$USE_NLS" >&6
9197 BUILD_INCLUDED_LIBINTL=no
9198 USE_INCLUDED_LIBINTL=no
9200 LIBINTL=
9201 LTLIBINTL=
9202 POSUB=
9204 if test "$USE_NLS" = "yes"; then
9205 gt_use_preinstalled_gnugettext=no
9207 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9208 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9210 # Check whether --with-included-gettext or --without-included-gettext was given.
9211 if test "${with_included_gettext+set}" = set; then
9212 withval="$with_included_gettext"
9213 nls_cv_force_use_gnu_gettext=$withval
9214 else
9215 nls_cv_force_use_gnu_gettext=no
9217 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9218 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9220 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9221 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9228 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9229 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9230 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 #include <libintl.h>
9240 extern int _nl_msg_cat_cntr;
9241 extern int *_nl_domain_bindings;
9243 main ()
9245 bindtextdomain ("", "");
9246 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 gt_cv_func_gnugettext1_libc=yes
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 gt_cv_func_gnugettext1_libc=no
9279 rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9283 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9285 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9289 use_additional=yes
9291 acl_save_prefix="$prefix"
9292 prefix="$acl_final_prefix"
9293 acl_save_exec_prefix="$exec_prefix"
9294 exec_prefix="$acl_final_exec_prefix"
9296 eval additional_includedir=\"$includedir\"
9297 eval additional_libdir=\"$libdir\"
9299 exec_prefix="$acl_save_exec_prefix"
9300 prefix="$acl_save_prefix"
9303 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9304 if test "${with_libintl_prefix+set}" = set; then
9305 withval="$with_libintl_prefix"
9307 if test "X$withval" = "Xno"; then
9308 use_additional=no
9309 else
9310 if test "X$withval" = "X"; then
9312 acl_save_prefix="$prefix"
9313 prefix="$acl_final_prefix"
9314 acl_save_exec_prefix="$exec_prefix"
9315 exec_prefix="$acl_final_exec_prefix"
9317 eval additional_includedir=\"$includedir\"
9318 eval additional_libdir=\"$libdir\"
9320 exec_prefix="$acl_save_exec_prefix"
9321 prefix="$acl_save_prefix"
9323 else
9324 additional_includedir="$withval/include"
9325 additional_libdir="$withval/lib"
9330 LIBINTL=
9331 LTLIBINTL=
9332 INCINTL=
9333 rpathdirs=
9334 ltrpathdirs=
9335 names_already_handled=
9336 names_next_round='intl '
9337 while test -n "$names_next_round"; do
9338 names_this_round="$names_next_round"
9339 names_next_round=
9340 for name in $names_this_round; do
9341 already_handled=
9342 for n in $names_already_handled; do
9343 if test "$n" = "$name"; then
9344 already_handled=yes
9345 break
9347 done
9348 if test -z "$already_handled"; then
9349 names_already_handled="$names_already_handled $name"
9350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9351 eval value=\"\$HAVE_LIB$uppername\"
9352 if test -n "$value"; then
9353 if test "$value" = yes; then
9354 eval value=\"\$LIB$uppername\"
9355 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9356 eval value=\"\$LTLIB$uppername\"
9357 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9358 else
9361 else
9362 found_dir=
9363 found_la=
9364 found_so=
9365 found_a=
9366 if test $use_additional = yes; then
9367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9368 found_dir="$additional_libdir"
9369 found_so="$additional_libdir/lib$name.$shlibext"
9370 if test -f "$additional_libdir/lib$name.la"; then
9371 found_la="$additional_libdir/lib$name.la"
9373 else
9374 if test -f "$additional_libdir/lib$name.$libext"; then
9375 found_dir="$additional_libdir"
9376 found_a="$additional_libdir/lib$name.$libext"
9377 if test -f "$additional_libdir/lib$name.la"; then
9378 found_la="$additional_libdir/lib$name.la"
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBINTL; do
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9390 eval x=\"$x\"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
9394 case "$x" in
9395 -L*)
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9398 found_dir="$dir"
9399 found_so="$dir/lib$name.$shlibext"
9400 if test -f "$dir/lib$name.la"; then
9401 found_la="$dir/lib$name.la"
9403 else
9404 if test -f "$dir/lib$name.$libext"; then
9405 found_dir="$dir"
9406 found_a="$dir/lib$name.$libext"
9407 if test -f "$dir/lib$name.la"; then
9408 found_la="$dir/lib$name.la"
9413 esac
9414 if test "X$found_dir" != "X"; then
9415 break
9417 done
9419 if test "X$found_dir" != "X"; then
9420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9421 if test "X$found_so" != "X"; then
9422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9424 else
9425 haveit=
9426 for x in $ltrpathdirs; do
9427 if test "X$x" = "X$found_dir"; then
9428 haveit=yes
9429 break
9431 done
9432 if test -z "$haveit"; then
9433 ltrpathdirs="$ltrpathdirs $found_dir"
9435 if test "$hardcode_direct" = yes; then
9436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9437 else
9438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9440 haveit=
9441 for x in $rpathdirs; do
9442 if test "X$x" = "X$found_dir"; then
9443 haveit=yes
9444 break
9446 done
9447 if test -z "$haveit"; then
9448 rpathdirs="$rpathdirs $found_dir"
9450 else
9451 haveit=
9452 for x in $LDFLAGS $LIBINTL; do
9454 acl_save_prefix="$prefix"
9455 prefix="$acl_final_prefix"
9456 acl_save_exec_prefix="$exec_prefix"
9457 exec_prefix="$acl_final_exec_prefix"
9458 eval x=\"$x\"
9459 exec_prefix="$acl_save_exec_prefix"
9460 prefix="$acl_save_prefix"
9462 if test "X$x" = "X-L$found_dir"; then
9463 haveit=yes
9464 break
9466 done
9467 if test -z "$haveit"; then
9468 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9470 if test "$hardcode_minus_L" != no; then
9471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9472 else
9473 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9478 else
9479 if test "X$found_a" != "X"; then
9480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9481 else
9482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9485 additional_includedir=
9486 case "$found_dir" in
9487 */lib | */lib/)
9488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9489 additional_includedir="$basedir/include"
9491 esac
9492 if test "X$additional_includedir" != "X"; then
9493 if test "X$additional_includedir" != "X/usr/include"; then
9494 haveit=
9495 if test "X$additional_includedir" = "X/usr/local/include"; then
9496 if test -n "$GCC"; then
9497 case $host_os in
9498 linux*) haveit=yes;;
9499 esac
9502 if test -z "$haveit"; then
9503 for x in $CPPFLAGS $INCINTL; do
9505 acl_save_prefix="$prefix"
9506 prefix="$acl_final_prefix"
9507 acl_save_exec_prefix="$exec_prefix"
9508 exec_prefix="$acl_final_exec_prefix"
9509 eval x=\"$x\"
9510 exec_prefix="$acl_save_exec_prefix"
9511 prefix="$acl_save_prefix"
9513 if test "X$x" = "X-I$additional_includedir"; then
9514 haveit=yes
9515 break
9517 done
9518 if test -z "$haveit"; then
9519 if test -d "$additional_includedir"; then
9520 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9526 if test -n "$found_la"; then
9527 save_libdir="$libdir"
9528 case "$found_la" in
9529 */* | *\\*) . "$found_la" ;;
9530 *) . "./$found_la" ;;
9531 esac
9532 libdir="$save_libdir"
9533 for dep in $dependency_libs; do
9534 case "$dep" in
9535 -L*)
9536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9537 if test "X$additional_libdir" != "X/usr/lib"; then
9538 haveit=
9539 if test "X$additional_libdir" = "X/usr/local/lib"; then
9540 if test -n "$GCC"; then
9541 case $host_os in
9542 linux*) haveit=yes;;
9543 esac
9546 if test -z "$haveit"; then
9547 haveit=
9548 for x in $LDFLAGS $LIBINTL; do
9550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9554 eval x=\"$x\"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9558 if test "X$x" = "X-L$additional_libdir"; then
9559 haveit=yes
9560 break
9562 done
9563 if test -z "$haveit"; then
9564 if test -d "$additional_libdir"; then
9565 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9568 haveit=
9569 for x in $LDFLAGS $LTLIBINTL; do
9571 acl_save_prefix="$prefix"
9572 prefix="$acl_final_prefix"
9573 acl_save_exec_prefix="$exec_prefix"
9574 exec_prefix="$acl_final_exec_prefix"
9575 eval x=\"$x\"
9576 exec_prefix="$acl_save_exec_prefix"
9577 prefix="$acl_save_prefix"
9579 if test "X$x" = "X-L$additional_libdir"; then
9580 haveit=yes
9581 break
9583 done
9584 if test -z "$haveit"; then
9585 if test -d "$additional_libdir"; then
9586 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9592 -R*)
9593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9594 if test "$enable_rpath" != no; then
9595 haveit=
9596 for x in $rpathdirs; do
9597 if test "X$x" = "X$dir"; then
9598 haveit=yes
9599 break
9601 done
9602 if test -z "$haveit"; then
9603 rpathdirs="$rpathdirs $dir"
9605 haveit=
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$dir"; then
9608 haveit=yes
9609 break
9611 done
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $dir"
9617 -l*)
9618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9620 *.la)
9621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9624 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9625 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9627 esac
9628 done
9630 else
9631 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9632 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9636 done
9637 done
9638 if test "X$rpathdirs" != "X"; then
9639 if test -n "$hardcode_libdir_separator"; then
9640 alldirs=
9641 for found_dir in $rpathdirs; do
9642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9643 done
9644 acl_save_libdir="$libdir"
9645 libdir="$alldirs"
9646 eval flag=\"$hardcode_libdir_flag_spec\"
9647 libdir="$acl_save_libdir"
9648 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9649 else
9650 for found_dir in $rpathdirs; do
9651 acl_save_libdir="$libdir"
9652 libdir="$found_dir"
9653 eval flag=\"$hardcode_libdir_flag_spec\"
9654 libdir="$acl_save_libdir"
9655 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9656 done
9659 if test "X$ltrpathdirs" != "X"; then
9660 for found_dir in $ltrpathdirs; do
9661 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9662 done
9665 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9666 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9667 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 gt_save_CPPFLAGS="$CPPFLAGS"
9671 CPPFLAGS="$CPPFLAGS $INCINTL"
9672 gt_save_LIBS="$LIBS"
9673 LIBS="$LIBS $LIBINTL"
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <libintl.h>
9681 extern int _nl_msg_cat_cntr;
9682 extern
9683 #ifdef __cplusplus
9685 #endif
9686 const char *_nl_expand_alias ();
9688 main ()
9690 bindtextdomain ("", "");
9691 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 gt_cv_func_gnugettext1_libintl=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 gt_cv_func_gnugettext1_libintl=no
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9727 LIBS="$LIBS $LIBICONV"
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h. */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9734 #include <libintl.h>
9735 extern int _nl_msg_cat_cntr;
9736 extern
9737 #ifdef __cplusplus
9739 #endif
9740 const char *_nl_expand_alias ();
9742 main ()
9744 bindtextdomain ("", "");
9745 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9747 return 0;
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 LIBINTL="$LIBINTL $LIBICONV"
9772 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9773 gt_cv_func_gnugettext1_libintl=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9783 CPPFLAGS="$gt_save_CPPFLAGS"
9784 LIBS="$gt_save_LIBS"
9786 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9787 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9790 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9791 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9792 && test "$PACKAGE" != gettext-runtime \
9793 && test "$PACKAGE" != gettext-tools; }; then
9794 gt_use_preinstalled_gnugettext=yes
9795 else
9796 LIBINTL=
9797 LTLIBINTL=
9798 INCINTL=
9802 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9803 nls_cv_use_gnu_gettext=yes
9807 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9808 BUILD_INCLUDED_LIBINTL=yes
9809 USE_INCLUDED_LIBINTL=yes
9810 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9811 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9812 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9817 CATOBJEXT=.gmo
9821 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9822 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9824 cat >>confdefs.h <<\_ACEOF
9825 #define ENABLE_NLS 1
9826 _ACEOF
9828 else
9829 USE_NLS=no
9833 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9834 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9835 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9836 echo "${ECHO_T}$USE_NLS" >&6
9837 if test "$USE_NLS" = "yes"; then
9838 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9839 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9841 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9842 gt_source="external libintl"
9843 else
9844 gt_source="libc"
9846 else
9847 gt_source="included intl directory"
9849 echo "$as_me:$LINENO: result: $gt_source" >&5
9850 echo "${ECHO_T}$gt_source" >&6
9853 if test "$USE_NLS" = "yes"; then
9855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9856 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9857 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9858 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9859 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9860 echo "${ECHO_T}$LIBINTL" >&6
9862 for element in $INCINTL; do
9863 haveit=
9864 for x in $CPPFLAGS; do
9866 acl_save_prefix="$prefix"
9867 prefix="$acl_final_prefix"
9868 acl_save_exec_prefix="$exec_prefix"
9869 exec_prefix="$acl_final_exec_prefix"
9870 eval x=\"$x\"
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9874 if test "X$x" = "X$element"; then
9875 haveit=yes
9876 break
9878 done
9879 if test -z "$haveit"; then
9880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9882 done
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_GETTEXT 1
9889 _ACEOF
9892 cat >>confdefs.h <<\_ACEOF
9893 #define HAVE_DCGETTEXT 1
9894 _ACEOF
9898 POSUB=po
9902 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9903 BUILD_INCLUDED_LIBINTL=yes
9910 nls_cv_header_intl=
9911 nls_cv_header_libgt=
9913 DATADIRNAME=share
9916 INSTOBJEXT=.mo
9919 GENCAT=gencat
9922 if test "$USE_INCLUDED_LIBINTL" = yes; then
9923 INTLOBJS="\$(GETTOBJS)"
9927 INTL_LIBTOOL_SUFFIX_PREFIX=
9931 INTLLIBS="$LIBINTL"
9939 # Allow compilation without dselect
9941 # Check whether --with-dselect or --without-dselect was given.
9942 if test "${with_dselect+set}" = set; then
9943 withval="$with_dselect"
9944 build_dselect=$with_dselect
9945 else
9946 build_dselect=yes
9950 if test "x$build_dselect" = "xyes"; then
9951 WITH_DSELECT_TRUE=
9952 WITH_DSELECT_FALSE='#'
9953 else
9954 WITH_DSELECT_TRUE='#'
9955 WITH_DSELECT_FALSE=
9959 # Allow compilation without start-stop-daemon
9961 # Check whether --with-start-stop-daemon or --without-start-stop-daemon was given.
9962 if test "${with_start_stop_daemon+set}" = set; then
9963 withval="$with_start_stop_daemon"
9964 build_start_stop_daemon=$with_start_stop_daemon
9965 else
9966 build_start_stop_daemon=yes
9970 if test "x$build_start_stop_daemon" = "xyes"; then
9971 WITH_START_STOP_DAEMON_TRUE=
9972 WITH_START_STOP_DAEMON_FALSE='#'
9973 else
9974 WITH_START_STOP_DAEMON_TRUE='#'
9975 WITH_START_STOP_DAEMON_FALSE=
9978 if test "x$build_start_stop_daemon" = "xyes"; then
9980 cat >>confdefs.h <<\_ACEOF
9981 #define WITH_START_STOP_DAEMON 1
9982 _ACEOF
9984 else
9985 cat >>confdefs.h <<\_ACEOF
9986 #define WITH_START_STOP_DAEMON 0
9987 _ACEOF
9991 # Allow alternate admin directory
9992 admindir="${localstatedir}/${PACKAGE_NAME}"
9994 # Check whether --with-admindir or --without-admindir was given.
9995 if test "${with_admindir+set}" = set; then
9996 withval="$with_admindir"
9997 case "$with_admindir" in
9998 "") { { echo "$as_me:$LINENO: error: invalid admindir specified" >&5
9999 echo "$as_me: error: invalid admindir specified" >&2;}
10000 { (exit 1); exit 1; }; } ;;
10001 *) admindir="$with_admindir" ;;
10002 esac
10007 # Checks for programs.
10008 ac_ext=c
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10013 if test -n "$ac_tool_prefix"; then
10014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10016 echo "$as_me:$LINENO: checking for $ac_word" >&5
10017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10018 if test "${ac_cv_prog_CC+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 if test -n "$CC"; then
10022 ac_cv_prog_CC="$CC" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10040 CC=$ac_cv_prog_CC
10041 if test -n "$CC"; then
10042 echo "$as_me:$LINENO: result: $CC" >&5
10043 echo "${ECHO_T}$CC" >&6
10044 else
10045 echo "$as_me:$LINENO: result: no" >&5
10046 echo "${ECHO_T}no" >&6
10050 if test -z "$ac_cv_prog_CC"; then
10051 ac_ct_CC=$CC
10052 # Extract the first word of "gcc", so it can be a program name with args.
10053 set dummy gcc; ac_word=$2
10054 echo "$as_me:$LINENO: checking for $ac_word" >&5
10055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 if test -n "$ac_ct_CC"; then
10060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10061 else
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_prog_ac_ct_CC="gcc"
10070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10079 if test -n "$ac_ct_CC"; then
10080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10081 echo "${ECHO_T}$ac_ct_CC" >&6
10082 else
10083 echo "$as_me:$LINENO: result: no" >&5
10084 echo "${ECHO_T}no" >&6
10087 CC=$ac_ct_CC
10088 else
10089 CC="$ac_cv_prog_CC"
10092 if test -z "$CC"; then
10093 if test -n "$ac_tool_prefix"; then
10094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10095 set dummy ${ac_tool_prefix}cc; ac_word=$2
10096 echo "$as_me:$LINENO: checking for $ac_word" >&5
10097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10098 if test "${ac_cv_prog_CC+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101 if test -n "$CC"; then
10102 ac_cv_prog_CC="$CC" # Let the user override the test.
10103 else
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111 ac_cv_prog_CC="${ac_tool_prefix}cc"
10112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 break 2
10115 done
10116 done
10120 CC=$ac_cv_prog_CC
10121 if test -n "$CC"; then
10122 echo "$as_me:$LINENO: result: $CC" >&5
10123 echo "${ECHO_T}$CC" >&6
10124 else
10125 echo "$as_me:$LINENO: result: no" >&5
10126 echo "${ECHO_T}no" >&6
10130 if test -z "$ac_cv_prog_CC"; then
10131 ac_ct_CC=$CC
10132 # Extract the first word of "cc", so it can be a program name with args.
10133 set dummy cc; ac_word=$2
10134 echo "$as_me:$LINENO: checking for $ac_word" >&5
10135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139 if test -n "$ac_ct_CC"; then
10140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10141 else
10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143 for as_dir in $PATH
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10149 ac_cv_prog_ac_ct_CC="cc"
10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 break 2
10153 done
10154 done
10158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10159 if test -n "$ac_ct_CC"; then
10160 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10161 echo "${ECHO_T}$ac_ct_CC" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6
10167 CC=$ac_ct_CC
10168 else
10169 CC="$ac_cv_prog_CC"
10173 if test -z "$CC"; then
10174 # Extract the first word of "cc", so it can be a program name with args.
10175 set dummy cc; ac_word=$2
10176 echo "$as_me:$LINENO: checking for $ac_word" >&5
10177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10178 if test "${ac_cv_prog_CC+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181 if test -n "$CC"; then
10182 ac_cv_prog_CC="$CC" # Let the user override the test.
10183 else
10184 ac_prog_rejected=no
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10193 ac_prog_rejected=yes
10194 continue
10196 ac_cv_prog_CC="cc"
10197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10200 done
10201 done
10203 if test $ac_prog_rejected = yes; then
10204 # We found a bogon in the path, so make sure we never use it.
10205 set dummy $ac_cv_prog_CC
10206 shift
10207 if test $# != 0; then
10208 # We chose a different compiler from the bogus one.
10209 # However, it has the same basename, so the bogon will be chosen
10210 # first if we set CC to just the basename; use the full file name.
10211 shift
10212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10217 CC=$ac_cv_prog_CC
10218 if test -n "$CC"; then
10219 echo "$as_me:$LINENO: result: $CC" >&5
10220 echo "${ECHO_T}$CC" >&6
10221 else
10222 echo "$as_me:$LINENO: result: no" >&5
10223 echo "${ECHO_T}no" >&6
10227 if test -z "$CC"; then
10228 if test -n "$ac_tool_prefix"; then
10229 for ac_prog in cl
10231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10233 echo "$as_me:$LINENO: checking for $ac_word" >&5
10234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10235 if test "${ac_cv_prog_CC+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238 if test -n "$CC"; then
10239 ac_cv_prog_CC="$CC" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10257 CC=$ac_cv_prog_CC
10258 if test -n "$CC"; then
10259 echo "$as_me:$LINENO: result: $CC" >&5
10260 echo "${ECHO_T}$CC" >&6
10261 else
10262 echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6
10266 test -n "$CC" && break
10267 done
10269 if test -z "$CC"; then
10270 ac_ct_CC=$CC
10271 for ac_prog in cl
10273 # Extract the first word of "$ac_prog", so it can be a program name with args.
10274 set dummy $ac_prog; ac_word=$2
10275 echo "$as_me:$LINENO: checking for $ac_word" >&5
10276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test -n "$ac_ct_CC"; then
10281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_prog_ac_ct_CC="$ac_prog"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10300 if test -n "$ac_ct_CC"; then
10301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10302 echo "${ECHO_T}$ac_ct_CC" >&6
10303 else
10304 echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6
10308 test -n "$ac_ct_CC" && break
10309 done
10311 CC=$ac_ct_CC
10317 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10318 See \`config.log' for more details." >&5
10319 echo "$as_me: error: no acceptable C compiler found in \$PATH
10320 See \`config.log' for more details." >&2;}
10321 { (exit 1); exit 1; }; }
10323 # Provide some information about the compiler.
10324 echo "$as_me:$LINENO:" \
10325 "checking for C compiler version" >&5
10326 ac_compiler=`set X $ac_compile; echo $2`
10327 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10328 (eval $ac_compiler --version </dev/null >&5) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }
10332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10333 (eval $ac_compiler -v </dev/null >&5) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }
10337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10338 (eval $ac_compiler -V </dev/null >&5) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }
10343 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10356 main ()
10358 #ifndef __GNUC__
10359 choke me
10360 #endif
10363 return 0;
10365 _ACEOF
10366 rm -f conftest.$ac_objext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10368 (eval $ac_compile) 2>conftest.er1
10369 ac_status=$?
10370 grep -v '^ *+' conftest.er1 >conftest.err
10371 rm -f conftest.er1
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_compiler_gnu=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_compiler_gnu=no
10394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10398 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10399 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10400 GCC=`test $ac_compiler_gnu = yes && echo yes`
10401 ac_test_CFLAGS=${CFLAGS+set}
10402 ac_save_CFLAGS=$CFLAGS
10403 CFLAGS="-g"
10404 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10405 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10406 if test "${ac_cv_prog_cc_g+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10417 main ()
10421 return 0;
10423 _ACEOF
10424 rm -f conftest.$ac_objext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_prog_cc_g=yes
10446 else
10447 echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10450 ac_cv_prog_cc_g=no
10452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10455 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10456 if test "$ac_test_CFLAGS" = set; then
10457 CFLAGS=$ac_save_CFLAGS
10458 elif test $ac_cv_prog_cc_g = yes; then
10459 if test "$GCC" = yes; then
10460 CFLAGS="-g -O2"
10461 else
10462 CFLAGS="-g"
10464 else
10465 if test "$GCC" = yes; then
10466 CFLAGS="-O2"
10467 else
10468 CFLAGS=
10471 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10472 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10473 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 ac_cv_prog_cc_stdc=no
10477 ac_save_CC=$CC
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <stdarg.h>
10485 #include <stdio.h>
10486 #include <sys/types.h>
10487 #include <sys/stat.h>
10488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10489 struct buf { int x; };
10490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10491 static char *e (p, i)
10492 char **p;
10493 int i;
10495 return p[i];
10497 static char *f (char * (*g) (char **, int), char **p, ...)
10499 char *s;
10500 va_list v;
10501 va_start (v,p);
10502 s = g (p, va_arg (v,int));
10503 va_end (v);
10504 return s;
10507 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10508 function prototypes and stuff, but not '\xHH' hex character constants.
10509 These don't provoke an error unfortunately, instead are silently treated
10510 as 'x'. The following induces an error, until -std1 is added to get
10511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10512 array size at least. It's necessary to write '\x00'==0 to get something
10513 that's true only with -std1. */
10514 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10516 int test (int i, double x);
10517 struct s1 {int (*f) (int a);};
10518 struct s2 {int (*f) (double a);};
10519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10520 int argc;
10521 char **argv;
10523 main ()
10525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10527 return 0;
10529 _ACEOF
10530 # Don't try gcc -ansi; that turns off useful extensions and
10531 # breaks some systems' header files.
10532 # AIX -qlanglvl=ansi
10533 # Ultrix and OSF/1 -std1
10534 # HP-UX 10.20 and later -Ae
10535 # HP-UX older versions -Aa -D_HPUX_SOURCE
10536 # SVR4 -Xc -D__EXTENSIONS__
10537 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10539 CC="$ac_save_CC $ac_arg"
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542 (eval $ac_compile) 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_cv_prog_cc_stdc=$ac_arg
10562 break
10563 else
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10568 rm -f conftest.err conftest.$ac_objext
10569 done
10570 rm -f conftest.$ac_ext conftest.$ac_objext
10571 CC=$ac_save_CC
10575 case "x$ac_cv_prog_cc_stdc" in
10576 x|xno)
10577 echo "$as_me:$LINENO: result: none needed" >&5
10578 echo "${ECHO_T}none needed" >&6 ;;
10580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10581 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10582 CC="$CC $ac_cv_prog_cc_stdc" ;;
10583 esac
10585 # Some people use a C++ compiler to compile C. Since we use `exit',
10586 # in C++ we need to declare it. In case someone uses the same compiler
10587 # for both compiling C and C++ we need to have the C++ compiler decide
10588 # the declaration of exit, since it's the most demanding environment.
10589 cat >conftest.$ac_ext <<_ACEOF
10590 #ifndef __cplusplus
10591 choke me
10592 #endif
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10596 (eval $ac_compile) 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
10615 for ac_declaration in \
10616 '' \
10617 'extern "C" void std::exit (int) throw (); using std::exit;' \
10618 'extern "C" void std::exit (int); using std::exit;' \
10619 'extern "C" void exit (int) throw ();' \
10620 'extern "C" void exit (int);' \
10621 'void exit (int);'
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 $ac_declaration
10630 #include <stdlib.h>
10632 main ()
10634 exit (42);
10636 return 0;
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest.$ac_objext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 continue
10667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668 cat >conftest.$ac_ext <<_ACEOF
10669 /* confdefs.h. */
10670 _ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_declaration
10676 main ()
10678 exit (42);
10680 return 0;
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10685 (eval $ac_compile) 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 break
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 done
10712 rm -f conftest*
10713 if test -n "$ac_declaration"; then
10714 echo '#ifdef __cplusplus' >>confdefs.h
10715 echo $ac_declaration >>confdefs.h
10716 echo '#endif' >>confdefs.h
10719 else
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 ac_ext=c
10726 ac_cpp='$CPP $CPPFLAGS'
10727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10731 depcc="$CC" am_compiler_list=
10733 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10739 # We make a subdir and do the tests there. Otherwise we can end up
10740 # making bogus files that we don't know about and never remove. For
10741 # instance it was reported that on HP-UX the gcc test will end up
10742 # making a dummy file named `D' -- because `-MD' means `put the output
10743 # in D'.
10744 mkdir conftest.dir
10745 # Copy depcomp to subdir because otherwise we won't find it if we're
10746 # using a relative directory.
10747 cp "$am_depcomp" conftest.dir
10748 cd conftest.dir
10749 # We will build objects and dependencies in a subdirectory because
10750 # it helps to detect inapplicable dependency modes. For instance
10751 # both Tru64's cc and ICC support -MD to output dependencies as a
10752 # side effect of compilation, but ICC will put the dependencies in
10753 # the current directory while Tru64 will put them in the object
10754 # directory.
10755 mkdir sub
10757 am_cv_CC_dependencies_compiler_type=none
10758 if test "$am_compiler_list" = ""; then
10759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10761 for depmode in $am_compiler_list; do
10762 # Setup a source with many dependencies, because some compilers
10763 # like to wrap large dependency lists on column 80 (with \), and
10764 # we should not choose a depcomp mode which is confused by this.
10766 # We need to recreate these files for each test, as the compiler may
10767 # overwrite some of them when testing with obscure command lines.
10768 # This happens at least with the AIX C compiler.
10769 : > sub/conftest.c
10770 for i in 1 2 3 4 5 6; do
10771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10773 # Solaris 8's {/usr,}/bin/sh.
10774 touch sub/conftst$i.h
10775 done
10776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10778 case $depmode in
10779 nosideeffect)
10780 # after this tag, mechanisms are not by side-effect, so they'll
10781 # only be used when explicitly requested
10782 if test "x$enable_dependency_tracking" = xyes; then
10783 continue
10784 else
10785 break
10788 none) break ;;
10789 esac
10790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10791 # mode. It turns out that the SunPro C++ compiler does not properly
10792 # handle `-M -o', and we need to detect this.
10793 if depmode=$depmode \
10794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10797 >/dev/null 2>conftest.err &&
10798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10799 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10801 # icc doesn't choke on unknown options, it will just issue warnings
10802 # or remarks (even with -Werror). So we grep stderr for any message
10803 # that says an option was ignored or not supported.
10804 # When given -MP, icc 7.0 and 7.1 complain thusly:
10805 # icc: Command line warning: ignoring option '-M'; no argument required
10806 # The diagnosis changed in icc 8.0:
10807 # icc: Command line remark: option '-MP' not supported
10808 if (grep 'ignoring option' conftest.err ||
10809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10810 am_cv_CC_dependencies_compiler_type=$depmode
10811 break
10814 done
10816 cd ..
10817 rm -rf conftest.dir
10818 else
10819 am_cv_CC_dependencies_compiler_type=none
10823 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
10825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10830 test "x$enable_dependency_tracking" != xno \
10831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10832 am__fastdepCC_TRUE=
10833 am__fastdepCC_FALSE='#'
10834 else
10835 am__fastdepCC_TRUE='#'
10836 am__fastdepCC_FALSE=
10840 ac_ext=cc
10841 ac_cpp='$CXXCPP $CPPFLAGS'
10842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10845 if test -n "$ac_tool_prefix"; then
10846 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10850 echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10852 if test "${ac_cv_prog_CXX+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 if test -n "$CXX"; then
10856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10857 else
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10874 CXX=$ac_cv_prog_CXX
10875 if test -n "$CXX"; then
10876 echo "$as_me:$LINENO: result: $CXX" >&5
10877 echo "${ECHO_T}$CXX" >&6
10878 else
10879 echo "$as_me:$LINENO: result: no" >&5
10880 echo "${ECHO_T}no" >&6
10883 test -n "$CXX" && break
10884 done
10886 if test -z "$CXX"; then
10887 ac_ct_CXX=$CXX
10888 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10890 # Extract the first word of "$ac_prog", so it can be a program name with args.
10891 set dummy $ac_prog; ac_word=$2
10892 echo "$as_me:$LINENO: checking for $ac_word" >&5
10893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10894 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 if test -n "$ac_ct_CXX"; then
10898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_ac_ct_CXX="$ac_prog"
10908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10917 if test -n "$ac_ct_CXX"; then
10918 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10919 echo "${ECHO_T}$ac_ct_CXX" >&6
10920 else
10921 echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6
10925 test -n "$ac_ct_CXX" && break
10926 done
10927 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10929 CXX=$ac_ct_CXX
10933 # Provide some information about the compiler.
10934 echo "$as_me:$LINENO:" \
10935 "checking for C++ compiler version" >&5
10936 ac_compiler=`set X $ac_compile; echo $2`
10937 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10938 (eval $ac_compiler --version </dev/null >&5) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }
10942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10943 (eval $ac_compiler -v </dev/null >&5) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }
10947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10948 (eval $ac_compiler -V </dev/null >&5) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }
10953 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10954 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10955 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10966 main ()
10968 #ifndef __GNUC__
10969 choke me
10970 #endif
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10978 (eval $ac_compile) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_compiler_gnu=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_compiler_gnu=no
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11008 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11010 GXX=`test $ac_compiler_gnu = yes && echo yes`
11011 ac_test_CXXFLAGS=${CXXFLAGS+set}
11012 ac_save_CXXFLAGS=$CXXFLAGS
11013 CXXFLAGS="-g"
11014 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11015 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11016 if test "${ac_cv_prog_cxx_g+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11027 main ()
11031 return 0;
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_prog_cxx_g=yes
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_cv_prog_cxx_g=no
11062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11065 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11066 if test "$ac_test_CXXFLAGS" = set; then
11067 CXXFLAGS=$ac_save_CXXFLAGS
11068 elif test $ac_cv_prog_cxx_g = yes; then
11069 if test "$GXX" = yes; then
11070 CXXFLAGS="-g -O2"
11071 else
11072 CXXFLAGS="-g"
11074 else
11075 if test "$GXX" = yes; then
11076 CXXFLAGS="-O2"
11077 else
11078 CXXFLAGS=
11081 for ac_declaration in \
11082 '' \
11083 'extern "C" void std::exit (int) throw (); using std::exit;' \
11084 'extern "C" void std::exit (int); using std::exit;' \
11085 'extern "C" void exit (int) throw ();' \
11086 'extern "C" void exit (int);' \
11087 'void exit (int);'
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 $ac_declaration
11096 #include <stdlib.h>
11098 main ()
11100 exit (42);
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107 (eval $ac_compile) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 continue
11133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 $ac_declaration
11142 main ()
11144 exit (42);
11146 return 0;
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 break
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11177 done
11178 rm -f conftest*
11179 if test -n "$ac_declaration"; then
11180 echo '#ifdef __cplusplus' >>confdefs.h
11181 echo $ac_declaration >>confdefs.h
11182 echo '#endif' >>confdefs.h
11185 ac_ext=c
11186 ac_cpp='$CPP $CPPFLAGS'
11187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191 depcc="$CXX" am_compiler_list=
11193 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11194 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11195 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11199 # We make a subdir and do the tests there. Otherwise we can end up
11200 # making bogus files that we don't know about and never remove. For
11201 # instance it was reported that on HP-UX the gcc test will end up
11202 # making a dummy file named `D' -- because `-MD' means `put the output
11203 # in D'.
11204 mkdir conftest.dir
11205 # Copy depcomp to subdir because otherwise we won't find it if we're
11206 # using a relative directory.
11207 cp "$am_depcomp" conftest.dir
11208 cd conftest.dir
11209 # We will build objects and dependencies in a subdirectory because
11210 # it helps to detect inapplicable dependency modes. For instance
11211 # both Tru64's cc and ICC support -MD to output dependencies as a
11212 # side effect of compilation, but ICC will put the dependencies in
11213 # the current directory while Tru64 will put them in the object
11214 # directory.
11215 mkdir sub
11217 am_cv_CXX_dependencies_compiler_type=none
11218 if test "$am_compiler_list" = ""; then
11219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11221 for depmode in $am_compiler_list; do
11222 # Setup a source with many dependencies, because some compilers
11223 # like to wrap large dependency lists on column 80 (with \), and
11224 # we should not choose a depcomp mode which is confused by this.
11226 # We need to recreate these files for each test, as the compiler may
11227 # overwrite some of them when testing with obscure command lines.
11228 # This happens at least with the AIX C compiler.
11229 : > sub/conftest.c
11230 for i in 1 2 3 4 5 6; do
11231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11233 # Solaris 8's {/usr,}/bin/sh.
11234 touch sub/conftst$i.h
11235 done
11236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11238 case $depmode in
11239 nosideeffect)
11240 # after this tag, mechanisms are not by side-effect, so they'll
11241 # only be used when explicitly requested
11242 if test "x$enable_dependency_tracking" = xyes; then
11243 continue
11244 else
11245 break
11248 none) break ;;
11249 esac
11250 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11251 # mode. It turns out that the SunPro C++ compiler does not properly
11252 # handle `-M -o', and we need to detect this.
11253 if depmode=$depmode \
11254 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11256 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11257 >/dev/null 2>conftest.err &&
11258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11259 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11261 # icc doesn't choke on unknown options, it will just issue warnings
11262 # or remarks (even with -Werror). So we grep stderr for any message
11263 # that says an option was ignored or not supported.
11264 # When given -MP, icc 7.0 and 7.1 complain thusly:
11265 # icc: Command line warning: ignoring option '-M'; no argument required
11266 # The diagnosis changed in icc 8.0:
11267 # icc: Command line remark: option '-MP' not supported
11268 if (grep 'ignoring option' conftest.err ||
11269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11270 am_cv_CXX_dependencies_compiler_type=$depmode
11271 break
11274 done
11276 cd ..
11277 rm -rf conftest.dir
11278 else
11279 am_cv_CXX_dependencies_compiler_type=none
11283 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11284 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11285 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11290 test "x$enable_dependency_tracking" != xno \
11291 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11292 am__fastdepCXX_TRUE=
11293 am__fastdepCXX_FALSE='#'
11294 else
11295 am__fastdepCXX_TRUE='#'
11296 am__fastdepCXX_FALSE=
11300 if test -n "$ac_tool_prefix"; then
11301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11303 echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305 if test "${ac_cv_prog_RANLIB+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308 if test -n "$RANLIB"; then
11309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11310 else
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11322 done
11323 done
11327 RANLIB=$ac_cv_prog_RANLIB
11328 if test -n "$RANLIB"; then
11329 echo "$as_me:$LINENO: result: $RANLIB" >&5
11330 echo "${ECHO_T}$RANLIB" >&6
11331 else
11332 echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6
11337 if test -z "$ac_cv_prog_RANLIB"; then
11338 ac_ct_RANLIB=$RANLIB
11339 # Extract the first word of "ranlib", so it can be a program name with args.
11340 set dummy ranlib; ac_word=$2
11341 echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 if test -n "$ac_ct_RANLIB"; then
11347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_ac_ct_RANLIB="ranlib"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11360 done
11361 done
11363 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11367 if test -n "$ac_ct_RANLIB"; then
11368 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11370 else
11371 echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11375 RANLIB=$ac_ct_RANLIB
11376 else
11377 RANLIB="$ac_cv_prog_RANLIB"
11380 # Extract the first word of "perl", so it can be a program name with args.
11381 set dummy perl; ac_word=$2
11382 echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384 if test "${ac_cv_path_PERL+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 case $PERL in
11388 [\\/]* | ?:[\\/]*)
11389 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11403 done
11404 done
11406 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
11408 esac
11410 PERL=$ac_cv_path_PERL
11412 if test -n "$PERL"; then
11413 echo "$as_me:$LINENO: result: $PERL" >&5
11414 echo "${ECHO_T}$PERL" >&6
11415 else
11416 echo "$as_me:$LINENO: result: no" >&5
11417 echo "${ECHO_T}no" >&6
11421 # Checks for operating system services and capabilities.
11422 # Check whether --enable-largefile or --disable-largefile was given.
11423 if test "${enable_largefile+set}" = set; then
11424 enableval="$enable_largefile"
11427 if test "$enable_largefile" != no; then
11429 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11430 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11431 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434 ac_cv_sys_largefile_CC=no
11435 if test "$GCC" != yes; then
11436 ac_save_CC=$CC
11437 while :; do
11438 # IRIX 6.2 and later do not support large files by default,
11439 # so use the C compiler's -n32 option if that helps.
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 #include <sys/types.h>
11447 /* Check that off_t can represent 2**63 - 1 correctly.
11448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11449 since some C++ compilers masquerading as C compilers
11450 incorrectly reject 9223372036854775807. */
11451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11453 && LARGE_OFF_T % 2147483647 == 1)
11454 ? 1 : -1];
11456 main ()
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest.$ac_objext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 break
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11490 rm -f conftest.err conftest.$ac_objext
11491 CC="$CC -n32"
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>conftest.er1
11495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try='test -s conftest.$ac_objext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 ac_cv_sys_largefile_CC=' -n32'; break
11514 else
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11519 rm -f conftest.err conftest.$ac_objext
11520 break
11521 done
11522 CC=$ac_save_CC
11523 rm -f conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11527 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
11528 if test "$ac_cv_sys_largefile_CC" != no; then
11529 CC=$CC$ac_cv_sys_largefile_CC
11532 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11533 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11534 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537 while :; do
11538 ac_cv_sys_file_offset_bits=no
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <sys/types.h>
11546 /* Check that off_t can represent 2**63 - 1 correctly.
11547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11548 since some C++ compilers masquerading as C compilers
11549 incorrectly reject 9223372036854775807. */
11550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11552 && LARGE_OFF_T % 2147483647 == 1)
11553 ? 1 : -1];
11555 main ()
11559 return 0;
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 break
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590 cat >conftest.$ac_ext <<_ACEOF
11591 /* confdefs.h. */
11592 _ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 #define _FILE_OFFSET_BITS 64
11597 #include <sys/types.h>
11598 /* Check that off_t can represent 2**63 - 1 correctly.
11599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11600 since some C++ compilers masquerading as C compilers
11601 incorrectly reject 9223372036854775807. */
11602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11604 && LARGE_OFF_T % 2147483647 == 1)
11605 ? 1 : -1];
11607 main ()
11611 return 0;
11613 _ACEOF
11614 rm -f conftest.$ac_objext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_sys_file_offset_bits=64; break
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11642 break
11643 done
11645 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11646 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11647 if test "$ac_cv_sys_file_offset_bits" != no; then
11649 cat >>confdefs.h <<_ACEOF
11650 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11651 _ACEOF
11654 rm -f conftest*
11655 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11656 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11657 if test "${ac_cv_sys_large_files+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 while :; do
11661 ac_cv_sys_large_files=no
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <sys/types.h>
11669 /* Check that off_t can represent 2**63 - 1 correctly.
11670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11671 since some C++ compilers masquerading as C compilers
11672 incorrectly reject 9223372036854775807. */
11673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11675 && LARGE_OFF_T % 2147483647 == 1)
11676 ? 1 : -1];
11678 main ()
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687 (eval $ac_compile) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11700 { ac_try='test -s conftest.$ac_objext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 break
11707 else
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #define _LARGE_FILES 1
11720 #include <sys/types.h>
11721 /* Check that off_t can represent 2**63 - 1 correctly.
11722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11723 since some C++ compilers masquerading as C compilers
11724 incorrectly reject 9223372036854775807. */
11725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11727 && LARGE_OFF_T % 2147483647 == 1)
11728 ? 1 : -1];
11730 main ()
11734 return 0;
11736 _ACEOF
11737 rm -f conftest.$ac_objext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest.$ac_objext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_sys_large_files=1; break
11759 else
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765 break
11766 done
11768 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11769 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11770 if test "$ac_cv_sys_large_files" != no; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define _LARGE_FILES $ac_cv_sys_large_files
11774 _ACEOF
11777 rm -f conftest*
11781 # Checks for libraries.
11783 # Check whether --with-zlib or --without-zlib was given.
11784 if test "${with_zlib+set}" = set; then
11785 withval="$with_zlib"
11786 case "$with_zlib" in
11787 yes)
11788 ZLIB_CFLAGS="${ZLIB_CFLAGS:+$ZLIB_CFLAGS }-DWITH_ZLIB"
11789 ZLIB_LIBS="${ZLIB_LIBS:+$ZLIB_LIBS }-lz"
11791 static)
11792 ZLIB_CFLAGS="${ZLIB_CFLAGS:+$ZLIB_CFLAGS }-DWITH_ZLIB"
11793 ZLIB_LIBS="${ZLIB_LIBS:+$ZLIB_LIBS }-Wl,-Bstatic -lz -Wl,-Bdynamic"
11795 esac
11799 # Check whether --with-bz2 or --without-bz2 was given.
11800 if test "${with_bz2+set}" = set; then
11801 withval="$with_bz2"
11802 case "$with_bz2" in
11803 yes)
11804 BZ2_CFLAGS="${BZ2_CFLAGS:+$BZ2_CFLAGS }-DWITH_BZ2"
11805 BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }-lbz2"
11807 static)
11808 BZ2_CFLAGS="${BZ2_CFLAGS:+$BZ2_CFLAGS }-DWITH_BZ2"
11809 BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
11811 esac
11814 if test "x$build_dselect" = "xyes"; then
11815 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
11816 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
11817 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-lncurses $LIBS"
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11829 /* Override any gcc2 internal prototype to avoid an error. */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 /* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11835 char initscr ();
11837 main ()
11839 initscr ();
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_lib_ncurses_initscr=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_lib_ncurses_initscr=no
11872 rm -f conftest.err conftest.$ac_objext \
11873 conftest$ac_exeext conftest.$ac_ext
11874 LIBS=$ac_check_lib_save_LIBS
11876 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
11877 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
11878 if test $ac_cv_lib_ncurses_initscr = yes; then
11879 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
11880 else
11881 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
11882 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
11883 if test "${ac_cv_lib_curses_initscr+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lcurses $LIBS"
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11901 char initscr ();
11903 main ()
11905 initscr ();
11907 return 0;
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_lib_curses_initscr=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_lib_curses_initscr=no
11938 rm -f conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11942 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
11943 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
11944 if test $ac_cv_lib_curses_initscr = yes; then
11945 CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
11946 else
11947 { echo "$as_me:$LINENO: WARNING: no curses library found" >&5
11948 echo "$as_me: WARNING: no curses library found" >&2;}
11955 if test "x$build_start_stop_daemon" = "xyes"; then
11956 echo "$as_me:$LINENO: checking for ihash_create in -lihash" >&5
11957 echo $ECHO_N "checking for ihash_create in -lihash... $ECHO_C" >&6
11958 if test "${ac_cv_lib_ihash_ihash_create+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lihash $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 /* Override any gcc2 internal prototype to avoid an error. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 /* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976 char ihash_create ();
11978 main ()
11980 ihash_create ();
11982 return 0;
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987 (eval $ac_link) 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 ac_cv_lib_ihash_ihash_create=yes
12007 else
12008 echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 ac_cv_lib_ihash_ihash_create=no
12013 rm -f conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_check_lib_save_LIBS
12017 echo "$as_me:$LINENO: result: $ac_cv_lib_ihash_ihash_create" >&5
12018 echo "${ECHO_T}$ac_cv_lib_ihash_ihash_create" >&6
12019 if test $ac_cv_lib_ihash_ihash_create = yes; then
12020 SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lihash"
12023 echo "$as_me:$LINENO: checking for proc_stat_list_create in -lps" >&5
12024 echo $ECHO_N "checking for proc_stat_list_create in -lps... $ECHO_C" >&6
12025 if test "${ac_cv_lib_ps_proc_stat_list_create+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028 ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-lps $LIBS"
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 #ifdef __cplusplus
12039 extern "C"
12040 #endif
12041 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12043 char proc_stat_list_create ();
12045 main ()
12047 proc_stat_list_create ();
12049 return 0;
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054 (eval $ac_link) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest$ac_exeext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_lib_ps_proc_stat_list_create=yes
12074 else
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_lib_ps_proc_stat_list_create=no
12080 rm -f conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12084 echo "$as_me:$LINENO: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
12085 echo "${ECHO_T}$ac_cv_lib_ps_proc_stat_list_create" >&6
12086 if test $ac_cv_lib_ps_proc_stat_list_create = yes; then
12087 SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lps"
12090 echo "$as_me:$LINENO: checking for fmt_past_time in -lshouldbeinlibc" >&5
12091 echo $ECHO_N "checking for fmt_past_time in -lshouldbeinlibc... $ECHO_C" >&6
12092 if test "${ac_cv_lib_shouldbeinlibc_fmt_past_time+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lshouldbeinlibc $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any gcc2 internal prototype to avoid an error. */
12105 #ifdef __cplusplus
12106 extern "C"
12107 #endif
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12110 char fmt_past_time ();
12112 main ()
12114 fmt_past_time ();
12116 return 0;
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121 (eval $ac_link) 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_lib_shouldbeinlibc_fmt_past_time=yes
12141 else
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_lib_shouldbeinlibc_fmt_past_time=no
12147 rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_shouldbeinlibc_fmt_past_time" >&5
12152 echo "${ECHO_T}$ac_cv_lib_shouldbeinlibc_fmt_past_time" >&6
12153 if test $ac_cv_lib_shouldbeinlibc_fmt_past_time = yes; then
12154 SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lshouldbeinlibc"
12157 echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
12158 echo $ECHO_N "checking for kvm_openfiles in -lkvm... $ECHO_C" >&6
12159 if test "${ac_cv_lib_kvm_kvm_openfiles+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lkvm $LIBS"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12171 /* Override any gcc2 internal prototype to avoid an error. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 /* We use char because int might match the return type of a gcc2
12176 builtin and then its argument prototype would still apply. */
12177 char kvm_openfiles ();
12179 main ()
12181 kvm_openfiles ();
12183 return 0;
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest$ac_exeext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_lib_kvm_kvm_openfiles=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_cv_lib_kvm_kvm_openfiles=no
12214 rm -f conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12218 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
12219 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_openfiles" >&6
12220 if test $ac_cv_lib_kvm_kvm_openfiles = yes; then
12221 SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lkvm"
12227 # Checks for header files.
12228 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12230 if test "${ac_cv_header_stdc+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #include <stdlib.h>
12240 #include <stdarg.h>
12241 #include <string.h>
12242 #include <float.h>
12245 main ()
12249 return 0;
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 (eval $ac_compile) 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_header_stdc=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_cv_header_stdc=no
12280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12282 if test $ac_cv_header_stdc = yes; then
12283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <string.h>
12292 _ACEOF
12293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12294 $EGREP "memchr" >/dev/null 2>&1; then
12296 else
12297 ac_cv_header_stdc=no
12299 rm -f conftest*
12303 if test $ac_cv_header_stdc = yes; then
12304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <stdlib.h>
12313 _ACEOF
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "free" >/dev/null 2>&1; then
12317 else
12318 ac_cv_header_stdc=no
12320 rm -f conftest*
12324 if test $ac_cv_header_stdc = yes; then
12325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12326 if test "$cross_compiling" = yes; then
12328 else
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <ctype.h>
12336 #if ((' ' & 0x0FF) == 0x020)
12337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12339 #else
12340 # define ISLOWER(c) \
12341 (('a' <= (c) && (c) <= 'i') \
12342 || ('j' <= (c) && (c) <= 'r') \
12343 || ('s' <= (c) && (c) <= 'z'))
12344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12345 #endif
12347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12349 main ()
12351 int i;
12352 for (i = 0; i < 256; i++)
12353 if (XOR (islower (i), ISLOWER (i))
12354 || toupper (i) != TOUPPER (i))
12355 exit(2);
12356 exit (0);
12358 _ACEOF
12359 rm -f conftest$ac_exeext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
12371 else
12372 echo "$as_me: program exited with status $ac_status" >&5
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ( exit $ac_status )
12377 ac_cv_header_stdc=no
12379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12384 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12385 if test $ac_cv_header_stdc = yes; then
12387 cat >>confdefs.h <<\_ACEOF
12388 #define STDC_HEADERS 1
12389 _ACEOF
12396 for ac_header in error.h sys/cdefs.h kvm.h
12398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12400 echo "$as_me:$LINENO: checking for $ac_header" >&5
12401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12407 else
12408 # Is the header compilable?
12409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 $ac_includes_default
12418 #include <$ac_header>
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_header_compiler=yes
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_header_compiler=no
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12450 echo "${ECHO_T}$ac_header_compiler" >&6
12452 # Is the header present?
12453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 #include <$ac_header>
12462 _ACEOF
12463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } >/dev/null; then
12471 if test -s conftest.err; then
12472 ac_cpp_err=$ac_c_preproc_warn_flag
12473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12474 else
12475 ac_cpp_err=
12477 else
12478 ac_cpp_err=yes
12480 if test -z "$ac_cpp_err"; then
12481 ac_header_preproc=yes
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_header_preproc=no
12488 rm -f conftest.err conftest.$ac_ext
12489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12490 echo "${ECHO_T}$ac_header_preproc" >&6
12492 # So? What about this header?
12493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12494 yes:no: )
12495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12499 ac_header_preproc=yes
12501 no:yes:* )
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12515 cat <<\_ASBOX
12516 ## ------------------------------------------- ##
12517 ## Report this to debian-dpkg@lists.debian.org ##
12518 ## ------------------------------------------- ##
12519 _ASBOX
12521 sed "s/^/$as_me: WARNING: /" >&2
12523 esac
12524 echo "$as_me:$LINENO: checking for $ac_header" >&5
12525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 eval "$as_ac_Header=\$ac_header_preproc"
12531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12538 _ACEOF
12542 done
12544 echo "$as_me:$LINENO: checking whether TIOCNOTTY is defined in sys/ioctl.h" >&5
12545 echo $ECHO_N "checking whether TIOCNOTTY is defined in sys/ioctl.h... $ECHO_C" >&6
12546 if test "${dpkg_cv_define_TIOCNOTTY+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h. */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 #include <sys/ioctl.h>
12558 main ()
12560 int i = TIOCNOTTY;
12563 return 0;
12565 _ACEOF
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 dpkg_cv_define_TIOCNOTTY=yes
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 dpkg_cv_define_TIOCNOTTY=no
12594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: $dpkg_cv_define_TIOCNOTTY" >&5
12597 echo "${ECHO_T}$dpkg_cv_define_TIOCNOTTY" >&6
12598 if test "x$dpkg_cv_define" = "xyes"; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_TIOCNOTTY 1
12602 _ACEOF
12604 else
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_TIOCNOTTY 0
12607 _ACEOF
12612 # Checks for typedefs, structures, and compiler characteristics.
12613 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12614 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12615 if test "${ac_cv_c_bigendian+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 # See if sys/param.h defines the BYTE_ORDER macro.
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12625 #include <sys/types.h>
12626 #include <sys/param.h>
12629 main ()
12631 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12632 bogus endian macros
12633 #endif
12636 return 0;
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 # It does; now see whether it defined to BIG_ENDIAN or not.
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 #include <sys/types.h>
12668 #include <sys/param.h>
12671 main ()
12673 #if BYTE_ORDER != BIG_ENDIAN
12674 not big endian
12675 #endif
12678 return 0;
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; } &&
12696 { ac_try='test -s conftest.$ac_objext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_c_bigendian=yes
12703 else
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 ac_cv_c_bigendian=no
12709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12710 else
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 # It does not; compile a test program.
12715 if test "$cross_compiling" = yes; then
12716 # try to guess the endianness by grepping values into an object file
12717 ac_cv_c_bigendian=unknown
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12725 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12726 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12727 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12728 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12729 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12731 main ()
12733 _ascii (); _ebcdic ();
12735 return 0;
12737 _ACEOF
12738 rm -f conftest.$ac_objext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12760 ac_cv_c_bigendian=yes
12762 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12763 if test "$ac_cv_c_bigendian" = unknown; then
12764 ac_cv_c_bigendian=no
12765 else
12766 # finding both strings is unlikely to happen, but who knows?
12767 ac_cv_c_bigendian=unknown
12770 else
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12776 else
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 main ()
12786 /* Are we little or big endian? From Harbison&Steele. */
12787 union
12789 long l;
12790 char c[sizeof (long)];
12791 } u;
12792 u.l = 1;
12793 exit (u.c[sizeof (long) - 1] == 1);
12795 _ACEOF
12796 rm -f conftest$ac_exeext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12798 (eval $ac_link) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_c_bigendian=no
12808 else
12809 echo "$as_me: program exited with status $ac_status" >&5
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ( exit $ac_status )
12814 ac_cv_c_bigendian=yes
12816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12821 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12822 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12823 case $ac_cv_c_bigendian in
12824 yes)
12826 cat >>confdefs.h <<\_ACEOF
12827 #define WORDS_BIGENDIAN 1
12828 _ACEOF
12833 { { echo "$as_me:$LINENO: error: unknown endianness
12834 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12835 echo "$as_me: error: unknown endianness
12836 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12837 { (exit 1); exit 1; }; } ;;
12838 esac
12840 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12842 if test "${ac_cv_c_const+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12853 main ()
12855 /* FIXME: Include the comments suggested by Paul. */
12856 #ifndef __cplusplus
12857 /* Ultrix mips cc rejects this. */
12858 typedef int charset[2];
12859 const charset x;
12860 /* SunOS 4.1.1 cc rejects this. */
12861 char const *const *ccp;
12862 char **p;
12863 /* NEC SVR4.0.2 mips cc rejects this. */
12864 struct point {int x, y;};
12865 static struct point const zero = {0,0};
12866 /* AIX XL C 1.02.0.0 rejects this.
12867 It does not let you subtract one const X* pointer from another in
12868 an arm of an if-expression whose if-part is not a constant
12869 expression */
12870 const char *g = "string";
12871 ccp = &g + (g ? g-g : 0);
12872 /* HPUX 7.0 cc rejects these. */
12873 ++ccp;
12874 p = (char**) ccp;
12875 ccp = (char const *const *) p;
12876 { /* SCO 3.2v4 cc rejects this. */
12877 char *t;
12878 char const *s = 0 ? (char *) 0 : (char const *) 0;
12880 *t++ = 0;
12882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12883 int x[] = {25, 17};
12884 const int *foo = &x[0];
12885 ++foo;
12887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12888 typedef const int *iptr;
12889 iptr p = 0;
12890 ++p;
12892 { /* AIX XL C 1.02.0.0 rejects this saying
12893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12894 struct s { int j; const int *ap[3]; };
12895 struct s *b; b->j = 5;
12897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12898 const int foo = 10;
12900 #endif
12903 return 0;
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12909 ac_status=$?
12910 grep -v '^ *+' conftest.er1 >conftest.err
12911 rm -f conftest.er1
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_cv_c_const=yes
12928 else
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_cv_c_const=no
12934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12937 echo "${ECHO_T}$ac_cv_c_const" >&6
12938 if test $ac_cv_c_const = no; then
12940 cat >>confdefs.h <<\_ACEOF
12941 #define const
12942 _ACEOF
12946 echo "$as_me:$LINENO: checking for inline" >&5
12947 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12948 if test "${ac_cv_c_inline+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 ac_cv_c_inline=no
12952 for ac_kw in inline __inline__ __inline; do
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #ifndef __cplusplus
12960 typedef int foo_t;
12961 static $ac_kw foo_t static_foo () {return 0; }
12962 $ac_kw foo_t foo () {return 0; }
12963 #endif
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_c_inline=$ac_kw; break
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994 done
12997 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12998 echo "${ECHO_T}$ac_cv_c_inline" >&6
13001 case $ac_cv_c_inline in
13002 inline | yes) ;;
13004 case $ac_cv_c_inline in
13005 no) ac_val=;;
13006 *) ac_val=$ac_cv_c_inline;;
13007 esac
13008 cat >>confdefs.h <<_ACEOF
13009 #ifndef __cplusplus
13010 #define inline $ac_val
13011 #endif
13012 _ACEOF
13014 esac
13016 echo "$as_me:$LINENO: checking for working volatile" >&5
13017 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
13018 if test "${ac_cv_c_volatile+set}" = set; then
13019 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 else
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13029 main ()
13032 volatile int x;
13033 int * volatile y;
13035 return 0;
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040 (eval $ac_compile) 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_c_volatile=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_cv_c_volatile=no
13066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13068 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13069 echo "${ECHO_T}$ac_cv_c_volatile" >&6
13070 if test $ac_cv_c_volatile = no; then
13072 cat >>confdefs.h <<\_ACEOF
13073 #define volatile
13074 _ACEOF
13078 echo "$as_me:$LINENO: checking whether compiler supports C99 features" >&5
13079 echo $ECHO_N "checking whether compiler supports C99 features... $ECHO_C" >&6
13080 if test "${dpkg_cv_c99+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 #include <stdio.h>
13091 #include <stdbool.h>
13092 #include <inttypes.h>
13095 /* Variadic macro arguments */
13096 #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
13099 main ()
13102 /* Compound initialisers */
13103 struct { int a, b; } foo = { .a = 1, .b = 2 };
13105 /* Boolean type */
13106 bool bar = false;
13108 /* Specific size type */
13109 uint32_t baz = 0;
13111 /* C99-style for-loop declarations */
13112 for (int i = 0; i < 10; i++)
13113 continue;
13115 /* Magic __func__ variable */
13116 printf("%s", __func__);
13119 return 0;
13121 _ACEOF
13122 rm -f conftest.$ac_objext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
13131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 dpkg_cv_c99=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 dpkg_cv_c99=no
13150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152 echo "$as_me:$LINENO: result: $dpkg_cv_c99" >&5
13153 echo "${ECHO_T}$dpkg_cv_c99" >&6
13154 if test "x$dpkg_cv_c99" = "xyes"; then
13156 cat >>confdefs.h <<\_ACEOF
13157 #define HAVE_C99 1
13158 _ACEOF
13160 else
13161 echo "$as_me:$LINENO: checking what argument makes compiler support C99 features" >&5
13162 echo $ECHO_N "checking what argument makes compiler support C99 features... $ECHO_C" >&6
13163 if test "${dpkg_cv_c99_arg+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 dpkg_cv_c99_arg=none
13167 dpkg_save_CC="$CC"
13168 for arg in "-std=gnu99" "-std=c99" "-c99"; do
13169 CC="$dpkg_save_CC $arg"
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13177 #include <stdio.h>
13178 #include <stdbool.h>
13179 #include <inttypes.h>
13182 /* Variadic macro arguments */
13183 #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
13186 main ()
13189 /* Compound initialisers */
13190 struct { int a, b; } foo = { .a = 1, .b = 2 };
13192 /* Boolean type */
13193 bool bar = false;
13195 /* Specific size type */
13196 uint32_t baz = 0;
13198 /* C99-style for-loop declarations */
13199 for (int i = 0; i < 10; i++)
13200 continue;
13202 /* Magic __func__ variable */
13203 printf("%s", __func__);
13206 return 0;
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 dpkg_arg_worked=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 dpkg_arg_worked=no
13237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13238 CC="$dpkg_save_CC"
13240 if test "x$dpkg_arg_worked" = "xyes"; then
13241 dpkg_cv_c99_arg="$arg"; break
13244 done
13246 echo "$as_me:$LINENO: result: $dpkg_cv_c99_arg" >&5
13247 echo "${ECHO_T}$dpkg_cv_c99_arg" >&6
13248 if test "x$dpkg_cv_c99_arg" != "xnone"; then
13249 CC="$CC $dpkg_cv_c99_arg"
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_C99 1
13252 _ACEOF
13258 echo "$as_me:$LINENO: checking for mode_t" >&5
13259 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13260 if test "${ac_cv_type_mode_t+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 $ac_includes_default
13271 main ()
13273 if ((mode_t *) 0)
13274 return 0;
13275 if (sizeof (mode_t))
13276 return 0;
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283 (eval $ac_compile) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest.$ac_objext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_type_mode_t=yes
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_cv_type_mode_t=no
13309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13313 if test $ac_cv_type_mode_t = yes; then
13315 else
13317 cat >>confdefs.h <<_ACEOF
13318 #define mode_t int
13319 _ACEOF
13323 echo "$as_me:$LINENO: checking for pid_t" >&5
13324 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13325 if test "${ac_cv_type_pid_t+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 $ac_includes_default
13336 main ()
13338 if ((pid_t *) 0)
13339 return 0;
13340 if (sizeof (pid_t))
13341 return 0;
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_type_pid_t=yes
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_type_pid_t=no
13374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13377 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13378 if test $ac_cv_type_pid_t = yes; then
13380 else
13382 cat >>confdefs.h <<_ACEOF
13383 #define pid_t int
13384 _ACEOF
13388 echo "$as_me:$LINENO: checking for size_t" >&5
13389 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13390 if test "${ac_cv_type_size_t+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13401 main ()
13403 if ((size_t *) 0)
13404 return 0;
13405 if (sizeof (size_t))
13406 return 0;
13408 return 0;
13410 _ACEOF
13411 rm -f conftest.$ac_objext
13412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_type_size_t=yes
13433 else
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_type_size_t=no
13439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13441 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13442 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13443 if test $ac_cv_type_size_t = yes; then
13445 else
13447 cat >>confdefs.h <<_ACEOF
13448 #define size_t unsigned
13449 _ACEOF
13453 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
13454 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
13455 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 $ac_includes_default
13466 main ()
13468 if ((ptrdiff_t *) 0)
13469 return 0;
13470 if (sizeof (ptrdiff_t))
13471 return 0;
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_type_ptrdiff_t=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_type_ptrdiff_t=no
13504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
13507 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
13508 if test $ac_cv_type_ptrdiff_t = yes; then
13510 else
13512 cat >>confdefs.h <<_ACEOF
13513 #define ptrdiff_t int
13514 _ACEOF
13518 echo "$as_me:$LINENO: checking for unsigned int" >&5
13519 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
13520 if test "${ac_cv_type_unsigned_int+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h. */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 $ac_includes_default
13531 main ()
13533 if ((unsigned int *) 0)
13534 return 0;
13535 if (sizeof (unsigned int))
13536 return 0;
13538 return 0;
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest.$ac_objext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_type_unsigned_int=yes
13563 else
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_cv_type_unsigned_int=no
13569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
13572 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
13574 echo "$as_me:$LINENO: checking size of unsigned int" >&5
13575 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
13576 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 if test "$ac_cv_type_unsigned_int" = yes; then
13580 # The cast to unsigned long works around a bug in the HP C Compiler
13581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13583 # This bug is HP SR number 8606223364.
13584 if test "$cross_compiling" = yes; then
13585 # Depending upon the size, compute the lo and hi bounds.
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13594 main ()
13596 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
13597 test_array [0] = 0
13600 return 0;
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_lo=0 ac_mid=0
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13634 main ()
13636 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13637 test_array [0] = 0
13640 return 0;
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_hi=$ac_mid; break
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_lo=`expr $ac_mid + 1`
13670 if test $ac_lo -le $ac_mid; then
13671 ac_lo= ac_hi=
13672 break
13674 ac_mid=`expr 2 '*' $ac_mid + 1`
13676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13677 done
13678 else
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h. */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13690 main ()
13692 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
13693 test_array [0] = 0
13696 return 0;
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest.$ac_objext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_hi=-1 ac_mid=-1
13721 while :; do
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h. */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13728 $ac_includes_default
13730 main ()
13732 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
13733 test_array [0] = 0
13736 return 0;
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_lo=$ac_mid; break
13761 else
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13765 ac_hi=`expr '(' $ac_mid ')' - 1`
13766 if test $ac_mid -le $ac_hi; then
13767 ac_lo= ac_hi=
13768 break
13770 ac_mid=`expr 2 '*' $ac_mid`
13772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13773 done
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_lo= ac_hi=
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 # Binary search between lo and hi bounds.
13784 while test "x$ac_lo" != "x$ac_hi"; do
13785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 $ac_includes_default
13794 main ()
13796 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
13797 test_array [0] = 0
13800 return 0;
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_hi=$ac_mid
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_lo=`expr '(' $ac_mid ')' + 1`
13831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13832 done
13833 case $ac_lo in
13834 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
13835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13836 See \`config.log' for more details." >&5
13837 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13838 See \`config.log' for more details." >&2;}
13839 { (exit 1); exit 1; }; } ;;
13840 esac
13841 else
13842 if test "$cross_compiling" = yes; then
13843 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13844 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13845 { (exit 1); exit 1; }; }
13846 else
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 $ac_includes_default
13854 long longval () { return (long) (sizeof (unsigned int)); }
13855 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
13856 #include <stdio.h>
13857 #include <stdlib.h>
13859 main ()
13862 FILE *f = fopen ("conftest.val", "w");
13863 if (! f)
13864 exit (1);
13865 if (((long) (sizeof (unsigned int))) < 0)
13867 long i = longval ();
13868 if (i != ((long) (sizeof (unsigned int))))
13869 exit (1);
13870 fprintf (f, "%ld\n", i);
13872 else
13874 unsigned long i = ulongval ();
13875 if (i != ((long) (sizeof (unsigned int))))
13876 exit (1);
13877 fprintf (f, "%lu\n", i);
13879 exit (ferror (f) || fclose (f) != 0);
13882 return 0;
13884 _ACEOF
13885 rm -f conftest$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_sizeof_unsigned_int=`cat conftest.val`
13897 else
13898 echo "$as_me: program exited with status $ac_status" >&5
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ( exit $ac_status )
13903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
13904 See \`config.log' for more details." >&5
13905 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
13906 See \`config.log' for more details." >&2;}
13907 { (exit 1); exit 1; }; }
13909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13912 rm -f conftest.val
13913 else
13914 ac_cv_sizeof_unsigned_int=0
13917 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
13918 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
13919 cat >>confdefs.h <<_ACEOF
13920 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13921 _ACEOF
13924 echo "$as_me:$LINENO: checking for unsigned long" >&5
13925 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13926 if test "${ac_cv_type_unsigned_long+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 $ac_includes_default
13937 main ()
13939 if ((unsigned long *) 0)
13940 return 0;
13941 if (sizeof (unsigned long))
13942 return 0;
13944 return 0;
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_type_unsigned_long=yes
13969 else
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_cv_type_unsigned_long=no
13975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13978 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13980 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13981 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13982 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985 if test "$ac_cv_type_unsigned_long" = yes; then
13986 # The cast to unsigned long works around a bug in the HP C Compiler
13987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13989 # This bug is HP SR number 8606223364.
13990 if test "$cross_compiling" = yes; then
13991 # Depending upon the size, compute the lo and hi bounds.
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 $ac_includes_default
14000 main ()
14002 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14003 test_array [0] = 0
14006 return 0;
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14012 ac_status=$?
14013 grep -v '^ *+' conftest.er1 >conftest.err
14014 rm -f conftest.er1
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; } &&
14024 { ac_try='test -s conftest.$ac_objext'
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_lo=0 ac_mid=0
14031 while :; do
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14040 main ()
14042 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14043 test_array [0] = 0
14046 return 0;
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051 (eval $ac_compile) 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } &&
14064 { ac_try='test -s conftest.$ac_objext'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; }; then
14070 ac_hi=$ac_mid; break
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 ac_lo=`expr $ac_mid + 1`
14076 if test $ac_lo -le $ac_mid; then
14077 ac_lo= ac_hi=
14078 break
14080 ac_mid=`expr 2 '*' $ac_mid + 1`
14082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14083 done
14084 else
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14096 main ()
14098 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14099 test_array [0] = 0
14102 return 0;
14104 _ACEOF
14105 rm -f conftest.$ac_objext
14106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest.$ac_objext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 ac_hi=-1 ac_mid=-1
14127 while :; do
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h. */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 $ac_includes_default
14136 main ()
14138 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14139 test_array [0] = 0
14142 return 0;
14144 _ACEOF
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest.$ac_objext'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166 ac_lo=$ac_mid; break
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ac_hi=`expr '(' $ac_mid ')' - 1`
14172 if test $ac_mid -le $ac_hi; then
14173 ac_lo= ac_hi=
14174 break
14176 ac_mid=`expr 2 '*' $ac_mid`
14178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14179 done
14180 else
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_lo= ac_hi=
14186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14189 # Binary search between lo and hi bounds.
14190 while test "x$ac_lo" != "x$ac_hi"; do
14191 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h. */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14200 main ()
14202 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14203 test_array [0] = 0
14206 return 0;
14208 _ACEOF
14209 rm -f conftest.$ac_objext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 ac_hi=$ac_mid
14231 else
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_lo=`expr '(' $ac_mid ')' + 1`
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14238 done
14239 case $ac_lo in
14240 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14241 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14242 See \`config.log' for more details." >&5
14243 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14244 See \`config.log' for more details." >&2;}
14245 { (exit 1); exit 1; }; } ;;
14246 esac
14247 else
14248 if test "$cross_compiling" = yes; then
14249 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14250 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14251 { (exit 1); exit 1; }; }
14252 else
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 long longval () { return (long) (sizeof (unsigned long)); }
14261 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14262 #include <stdio.h>
14263 #include <stdlib.h>
14265 main ()
14268 FILE *f = fopen ("conftest.val", "w");
14269 if (! f)
14270 exit (1);
14271 if (((long) (sizeof (unsigned long))) < 0)
14273 long i = longval ();
14274 if (i != ((long) (sizeof (unsigned long))))
14275 exit (1);
14276 fprintf (f, "%ld\n", i);
14278 else
14280 unsigned long i = ulongval ();
14281 if (i != ((long) (sizeof (unsigned long))))
14282 exit (1);
14283 fprintf (f, "%lu\n", i);
14285 exit (ferror (f) || fclose (f) != 0);
14288 return 0;
14290 _ACEOF
14291 rm -f conftest$ac_exeext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14293 (eval $ac_link) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14303 else
14304 echo "$as_me: program exited with status $ac_status" >&5
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 ( exit $ac_status )
14309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
14310 See \`config.log' for more details." >&5
14311 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
14312 See \`config.log' for more details." >&2;}
14313 { (exit 1); exit 1; }; }
14315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14318 rm -f conftest.val
14319 else
14320 ac_cv_sizeof_unsigned_long=0
14323 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14324 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14325 cat >>confdefs.h <<_ACEOF
14326 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14327 _ACEOF
14331 for ac_header in unistd.h
14333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14335 echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14342 else
14343 # Is the header compilable?
14344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_compiler=no
14383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14385 echo "${ECHO_T}$ac_header_compiler" >&6
14387 # Is the header present?
14388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h. */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 #include <$ac_header>
14397 _ACEOF
14398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } >/dev/null; then
14406 if test -s conftest.err; then
14407 ac_cpp_err=$ac_c_preproc_warn_flag
14408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14409 else
14410 ac_cpp_err=
14412 else
14413 ac_cpp_err=yes
14415 if test -z "$ac_cpp_err"; then
14416 ac_header_preproc=yes
14417 else
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14421 ac_header_preproc=no
14423 rm -f conftest.err conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14429 yes:no: )
14430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc=yes
14436 no:yes:* )
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14450 cat <<\_ASBOX
14451 ## ------------------------------------------- ##
14452 ## Report this to debian-dpkg@lists.debian.org ##
14453 ## ------------------------------------------- ##
14454 _ASBOX
14456 sed "s/^/$as_me: WARNING: /" >&2
14458 esac
14459 echo "$as_me:$LINENO: checking for $ac_header" >&5
14460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 eval "$as_ac_Header=\$ac_header_preproc"
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471 cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14473 _ACEOF
14477 done
14479 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
14480 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
14481 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 #include <signal.h>
14491 /* NetBSD declares sys_siglist in unistd.h. */
14492 #if HAVE_UNISTD_H
14493 # include <unistd.h>
14494 #endif
14498 main ()
14500 #ifndef sys_siglist
14501 char *p = (char *) sys_siglist;
14502 #endif
14505 return 0;
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_have_decl_sys_siglist=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_have_decl_sys_siglist=no
14536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
14539 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
14540 if test $ac_cv_have_decl_sys_siglist = yes; then
14542 cat >>confdefs.h <<_ACEOF
14543 #define HAVE_DECL_SYS_SIGLIST 1
14544 _ACEOF
14547 else
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_DECL_SYS_SIGLIST 0
14550 _ACEOF
14556 echo "$as_me:$LINENO: checking whether compiler supports __attribute__" >&5
14557 echo $ECHO_N "checking whether compiler supports __attribute__... $ECHO_C" >&6
14558 if test "${dpkg_cv_attribute+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14569 main ()
14571 extern int testfunction(int x) __attribute__((unused))
14574 return 0;
14576 _ACEOF
14577 rm -f conftest.$ac_objext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14579 (eval $ac_compile) 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 dpkg_cv_attribute=yes
14599 else
14600 echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14603 dpkg_cv_attribute=no
14605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14607 echo "$as_me:$LINENO: result: $dpkg_cv_attribute" >&5
14608 echo "${ECHO_T}$dpkg_cv_attribute" >&6
14609 if test "x$dpkg_cv_attribute" = "xyes"; then
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_C_ATTRIBUTE 1
14613 _ACEOF
14615 else
14616 cat >>confdefs.h <<\_ACEOF
14617 #define HAVE_C_ATTRIBUTE 0
14618 _ACEOF
14623 # Checks for library functions.
14624 echo "$as_me:$LINENO: checking for va_copy" >&5
14625 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
14626 if test "${dpkg_cv_va_copy+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 if test "$cross_compiling" = yes; then
14630 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14631 See \`config.log' for more details." >&5
14632 echo "$as_me: error: cannot run test program while cross compiling
14633 See \`config.log' for more details." >&2;}
14634 { (exit 1); exit 1; }; }
14635 else
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 #include <stdarg.h>
14643 main() {
14644 va_list v1, v2;
14645 va_copy (v1, v2);
14646 exit (0);
14648 _ACEOF
14649 rm -f conftest$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 dpkg_cv_va_copy=yes
14661 else
14662 echo "$as_me: program exited with status $ac_status" >&5
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ( exit $ac_status )
14667 dpkg_cv_va_copy=no
14669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: $dpkg_cv_va_copy" >&5
14673 echo "${ECHO_T}$dpkg_cv_va_copy" >&6
14674 if test "x$dpkg_cv_va_copy" = "xyes"; then
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_VA_COPY 1
14678 _ACEOF
14680 else
14681 echo "$as_me:$LINENO: checking for va_list assignment by copy" >&5
14682 echo $ECHO_N "checking for va_list assignment by copy... $ECHO_C" >&6
14683 if test "${dpkg_cv_va_list_copy+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686 cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h. */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 #include <stdarg.h>
14695 main ()
14697 va_list v1, v2;
14698 v1 = v2;
14701 return 0;
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest.$ac_objext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14725 dpkg_cv_va_list_copy=yes
14726 else
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 dpkg_cv_va_list_copy=no
14732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14734 echo "$as_me:$LINENO: result: $dpkg_cv_va_list_copy" >&5
14735 echo "${ECHO_T}$dpkg_cv_va_list_copy" >&6
14745 for ac_func in vsnprintf snprintf strerror strsignal scandir alphasort
14747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14748 echo "$as_me:$LINENO: checking for $ac_func" >&5
14749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14750 if eval "test \"\${$as_ac_var+set}\" = set"; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14761 #define $ac_func innocuous_$ac_func
14763 /* System header to define __stub macros and hopefully few prototypes,
14764 which can conflict with char $ac_func (); below.
14765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14766 <limits.h> exists even on freestanding compilers. */
14768 #ifdef __STDC__
14769 # include <limits.h>
14770 #else
14771 # include <assert.h>
14772 #endif
14774 #undef $ac_func
14776 /* Override any gcc2 internal prototype to avoid an error. */
14777 #ifdef __cplusplus
14778 extern "C"
14780 #endif
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14783 char $ac_func ();
14784 /* The GNU C library defines this for functions which it implements
14785 to always fail with ENOSYS. Some functions are actually named
14786 something starting with __ and the normal name is an alias. */
14787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14788 choke me
14789 #else
14790 char (*f) () = $ac_func;
14791 #endif
14792 #ifdef __cplusplus
14794 #endif
14797 main ()
14799 return f != $ac_func;
14801 return 0;
14803 _ACEOF
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest$ac_exeext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 eval "$as_ac_var=yes"
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14830 eval "$as_ac_var=no"
14832 rm -f conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 _ACEOF
14843 done
14851 for ac_func in unsetenv lchown setsid bcopy isascii memcpy
14853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14854 echo "$as_me:$LINENO: checking for $ac_func" >&5
14855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14856 if eval "test \"\${$as_ac_var+set}\" = set"; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14867 #define $ac_func innocuous_$ac_func
14869 /* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func (); below.
14871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872 <limits.h> exists even on freestanding compilers. */
14874 #ifdef __STDC__
14875 # include <limits.h>
14876 #else
14877 # include <assert.h>
14878 #endif
14880 #undef $ac_func
14882 /* Override any gcc2 internal prototype to avoid an error. */
14883 #ifdef __cplusplus
14884 extern "C"
14886 #endif
14887 /* We use char because int might match the return type of a gcc2
14888 builtin and then its argument prototype would still apply. */
14889 char $ac_func ();
14890 /* The GNU C library defines this for functions which it implements
14891 to always fail with ENOSYS. Some functions are actually named
14892 something starting with __ and the normal name is an alias. */
14893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14894 choke me
14895 #else
14896 char (*f) () = $ac_func;
14897 #endif
14898 #ifdef __cplusplus
14900 #endif
14903 main ()
14905 return f != $ac_func;
14907 return 0;
14909 _ACEOF
14910 rm -f conftest.$ac_objext conftest$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); }; } &&
14925 { ac_try='test -s conftest$ac_exeext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 eval "$as_ac_var=yes"
14932 else
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 eval "$as_ac_var=no"
14938 rm -f conftest.err conftest.$ac_objext \
14939 conftest$ac_exeext conftest.$ac_ext
14941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14943 if test `eval echo '${'$as_ac_var'}'` = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14946 _ACEOF
14949 done
14952 # Check whether --enable-compiler-warnings or --disable-compiler-warnings was given.
14953 if test "${enable_compiler_warnings+set}" = set; then
14954 enableval="$enable_compiler_warnings"
14955 if test "x$enable_compiler_warnings" = "xyes"; then
14956 if test "x$GCC" = "xyes"; then
14957 CFLAGS="-Wall -Werror $CFLAGS"
14959 if test "x$GXX" = "xyes"; then
14960 CXXFLAGS="-Wall -Werror $CXXFLAGS"
14964 # Check whether --enable-compiler-optimisations or --disable-compiler-optimisations was given.
14965 if test "${enable_compiler_optimisations+set}" = set; then
14966 enableval="$enable_compiler_optimisations"
14967 if test "x$enable_compiler_optimisations" = "xno"; then
14968 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g"`
14971 # Check whether --enable-linker-optimisations or --disable-linker-optimisations was given.
14972 if test "${enable_linker_optimisations+set}" = set; then
14973 enableval="$enable_linker_optimisations"
14974 if test "x$enable_linker_optimisations" = "xno"; then
14975 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`
14976 else
14977 LDFLAGS="$LDFLAGS -Wl,-O1"
14979 else
14980 LDFLAGS="$LDFLAGS -Wl,-O1"
14983 ac_config_files="$ac_config_files Makefile dpkg-deb/Makefile dpkg-split/Makefile dselect/Makefile getopt/Makefile intl/Makefile lib/Makefile man/Makefile man/C/Makefile man/de/Makefile man/es/Makefile man/fr/Makefile man/ja/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile methods/Makefile origins/Makefile po/Makefile.in scripts/Makefile src/Makefile utils/Makefile"
14985 ac_config_headers="$ac_config_headers config.h"
14987 cat >confcache <<\_ACEOF
14988 # This file is a shell script that caches the results of configure
14989 # tests run on this system so they can be shared between configure
14990 # scripts and configure runs, see configure's option --config-cache.
14991 # It is not useful on other systems. If it contains results you don't
14992 # want to keep, you may remove or edit it.
14994 # config.status only pays attention to the cache file if you give it
14995 # the --recheck option to rerun configure.
14997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14999 # following values.
15001 _ACEOF
15003 # The following way of writing the cache mishandles newlines in values,
15004 # but we know of no workaround that is simple, portable, and efficient.
15005 # So, don't put newlines in cache variables' values.
15006 # Ultrix sh set writes to stderr and can't be redirected directly,
15007 # and sets the high bit in the cache file unless we assign to the vars.
15009 (set) 2>&1 |
15010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15011 *ac_space=\ *)
15012 # `set' does not quote correctly, so add quotes (double-quote
15013 # substitution turns \\\\ into \\, and sed turns \\ into \).
15014 sed -n \
15015 "s/'/'\\\\''/g;
15016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15019 # `set' quotes correctly as required by POSIX, so do not add quotes.
15020 sed -n \
15021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15023 esac;
15025 sed '
15026 t clear
15027 : clear
15028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15029 t end
15030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15031 : end' >>confcache
15032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15033 if test -w $cache_file; then
15034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15035 cat confcache >$cache_file
15036 else
15037 echo "not updating unwritable cache $cache_file"
15040 rm -f confcache
15042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15043 # Let make expand exec_prefix.
15044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15048 # trailing colons and then remove the whole line if VPATH becomes empty
15049 # (actually we leave an empty line to preserve line numbers).
15050 if test "x$srcdir" = x.; then
15051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15052 s/:*\$(srcdir):*/:/;
15053 s/:*\${srcdir}:*/:/;
15054 s/:*@srcdir@:*/:/;
15055 s/^\([^=]*=[ ]*\):*/\1/;
15056 s/:*$//;
15057 s/^[^=]*=[ ]*$//;
15061 DEFS=-DHAVE_CONFIG_H
15063 ac_libobjs=
15064 ac_ltlibobjs=
15065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15066 # 1. Remove the extension, and $U if already installed.
15067 ac_i=`echo "$ac_i" |
15068 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15069 # 2. Add them.
15070 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15071 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15072 done
15073 LIBOBJS=$ac_libobjs
15075 LTLIBOBJS=$ac_ltlibobjs
15078 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15079 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15080 Usually this means the macro was only invoked conditionally." >&5
15081 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15082 Usually this means the macro was only invoked conditionally." >&2;}
15083 { (exit 1); exit 1; }; }
15085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15086 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15087 Usually this means the macro was only invoked conditionally." >&5
15088 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15089 Usually this means the macro was only invoked conditionally." >&2;}
15090 { (exit 1); exit 1; }; }
15092 if test -z "${WITH_DSELECT_TRUE}" && test -z "${WITH_DSELECT_FALSE}"; then
15093 { { echo "$as_me:$LINENO: error: conditional \"WITH_DSELECT\" was never defined.
15094 Usually this means the macro was only invoked conditionally." >&5
15095 echo "$as_me: error: conditional \"WITH_DSELECT\" was never defined.
15096 Usually this means the macro was only invoked conditionally." >&2;}
15097 { (exit 1); exit 1; }; }
15099 if test -z "${WITH_START_STOP_DAEMON_TRUE}" && test -z "${WITH_START_STOP_DAEMON_FALSE}"; then
15100 { { echo "$as_me:$LINENO: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
15101 Usually this means the macro was only invoked conditionally." >&5
15102 echo "$as_me: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
15103 Usually this means the macro was only invoked conditionally." >&2;}
15104 { (exit 1); exit 1; }; }
15106 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15107 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15108 Usually this means the macro was only invoked conditionally." >&5
15109 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15110 Usually this means the macro was only invoked conditionally." >&2;}
15111 { (exit 1); exit 1; }; }
15113 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15114 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15115 Usually this means the macro was only invoked conditionally." >&5
15116 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15117 Usually this means the macro was only invoked conditionally." >&2;}
15118 { (exit 1); exit 1; }; }
15121 : ${CONFIG_STATUS=./config.status}
15122 ac_clean_files_save=$ac_clean_files
15123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15124 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15125 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15126 cat >$CONFIG_STATUS <<_ACEOF
15127 #! $SHELL
15128 # Generated by $as_me.
15129 # Run this file to recreate the current configuration.
15130 # Compiler output produced by configure, useful for debugging
15131 # configure, is in config.log if it exists.
15133 debug=false
15134 ac_cs_recheck=false
15135 ac_cs_silent=false
15136 SHELL=\${CONFIG_SHELL-$SHELL}
15137 _ACEOF
15139 cat >>$CONFIG_STATUS <<\_ACEOF
15140 ## --------------------- ##
15141 ## M4sh Initialization. ##
15142 ## --------------------- ##
15144 # Be Bourne compatible
15145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15146 emulate sh
15147 NULLCMD=:
15148 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15149 # is contrary to our usage. Disable this feature.
15150 alias -g '${1+"$@"}'='"$@"'
15151 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15152 set -o posix
15154 DUALCASE=1; export DUALCASE # for MKS sh
15156 # Support unset when possible.
15157 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15158 as_unset=unset
15159 else
15160 as_unset=false
15164 # Work around bugs in pre-3.0 UWIN ksh.
15165 $as_unset ENV MAIL MAILPATH
15166 PS1='$ '
15167 PS2='> '
15168 PS4='+ '
15170 # NLS nuisances.
15171 for as_var in \
15172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15174 LC_TELEPHONE LC_TIME
15176 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15177 eval $as_var=C; export $as_var
15178 else
15179 $as_unset $as_var
15181 done
15183 # Required to use basename.
15184 if expr a : '\(a\)' >/dev/null 2>&1; then
15185 as_expr=expr
15186 else
15187 as_expr=false
15190 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15191 as_basename=basename
15192 else
15193 as_basename=false
15197 # Name of the executable.
15198 as_me=`$as_basename "$0" ||
15199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15200 X"$0" : 'X\(//\)$' \| \
15201 X"$0" : 'X\(/\)$' \| \
15202 . : '\(.\)' 2>/dev/null ||
15203 echo X/"$0" |
15204 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15205 /^X\/\(\/\/\)$/{ s//\1/; q; }
15206 /^X\/\(\/\).*/{ s//\1/; q; }
15207 s/.*/./; q'`
15210 # PATH needs CR, and LINENO needs CR and PATH.
15211 # Avoid depending upon Character Ranges.
15212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15215 as_cr_digits='0123456789'
15216 as_cr_alnum=$as_cr_Letters$as_cr_digits
15218 # The user is always right.
15219 if test "${PATH_SEPARATOR+set}" != set; then
15220 echo "#! /bin/sh" >conf$$.sh
15221 echo "exit 0" >>conf$$.sh
15222 chmod +x conf$$.sh
15223 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15224 PATH_SEPARATOR=';'
15225 else
15226 PATH_SEPARATOR=:
15228 rm -f conf$$.sh
15232 as_lineno_1=$LINENO
15233 as_lineno_2=$LINENO
15234 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15235 test "x$as_lineno_1" != "x$as_lineno_2" &&
15236 test "x$as_lineno_3" = "x$as_lineno_2" || {
15237 # Find who we are. Look in the path if we contain no path at all
15238 # relative or not.
15239 case $0 in
15240 *[\\/]* ) as_myself=$0 ;;
15241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15244 IFS=$as_save_IFS
15245 test -z "$as_dir" && as_dir=.
15246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15247 done
15250 esac
15251 # We did not find ourselves, most probably we were run as `sh COMMAND'
15252 # in which case we are not to be found in the path.
15253 if test "x$as_myself" = x; then
15254 as_myself=$0
15256 if test ! -f "$as_myself"; then
15257 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15258 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15259 { (exit 1); exit 1; }; }
15261 case $CONFIG_SHELL in
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15266 IFS=$as_save_IFS
15267 test -z "$as_dir" && as_dir=.
15268 for as_base in sh bash ksh sh5; do
15269 case $as_dir in
15271 if ("$as_dir/$as_base" -c '
15272 as_lineno_1=$LINENO
15273 as_lineno_2=$LINENO
15274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15275 test "x$as_lineno_1" != "x$as_lineno_2" &&
15276 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15277 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15278 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15279 CONFIG_SHELL=$as_dir/$as_base
15280 export CONFIG_SHELL
15281 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15282 fi;;
15283 esac
15284 done
15285 done
15287 esac
15289 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15290 # uniformly replaced by the line number. The first 'sed' inserts a
15291 # line-number line before each line; the second 'sed' does the real
15292 # work. The second script uses 'N' to pair each line-number line
15293 # with the numbered line, and appends trailing '-' during
15294 # substitution so that $LINENO is not a special case at line end.
15295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15296 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15297 sed '=' <$as_myself |
15298 sed '
15300 s,$,-,
15301 : loop
15302 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15303 t loop
15304 s,-$,,
15305 s,^['$as_cr_digits']*\n,,
15306 ' >$as_me.lineno &&
15307 chmod +x $as_me.lineno ||
15308 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15309 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15310 { (exit 1); exit 1; }; }
15312 # Don't try to exec as it changes $[0], causing all sort of problems
15313 # (the dirname of $[0] is not the place where we might find the
15314 # original and so on. Autoconf is especially sensible to this).
15315 . ./$as_me.lineno
15316 # Exit status is that of the last command.
15317 exit
15321 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15322 *c*,-n*) ECHO_N= ECHO_C='
15323 ' ECHO_T=' ' ;;
15324 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15325 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15326 esac
15328 if expr a : '\(a\)' >/dev/null 2>&1; then
15329 as_expr=expr
15330 else
15331 as_expr=false
15334 rm -f conf$$ conf$$.exe conf$$.file
15335 echo >conf$$.file
15336 if ln -s conf$$.file conf$$ 2>/dev/null; then
15337 # We could just check for DJGPP; but this test a) works b) is more generic
15338 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15339 if test -f conf$$.exe; then
15340 # Don't use ln at all; we don't have any links
15341 as_ln_s='cp -p'
15342 else
15343 as_ln_s='ln -s'
15345 elif ln conf$$.file conf$$ 2>/dev/null; then
15346 as_ln_s=ln
15347 else
15348 as_ln_s='cp -p'
15350 rm -f conf$$ conf$$.exe conf$$.file
15352 if mkdir -p . 2>/dev/null; then
15353 as_mkdir_p=:
15354 else
15355 test -d ./-p && rmdir ./-p
15356 as_mkdir_p=false
15359 as_executable_p="test -f"
15361 # Sed expression to map a string onto a valid CPP name.
15362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15364 # Sed expression to map a string onto a valid variable name.
15365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15368 # IFS
15369 # We need space, tab and new line, in precisely that order.
15370 as_nl='
15372 IFS=" $as_nl"
15374 # CDPATH.
15375 $as_unset CDPATH
15377 exec 6>&1
15379 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15380 # report actual input values of CONFIG_FILES etc. instead of their
15381 # values after options handling. Logging --version etc. is OK.
15382 exec 5>>config.log
15384 echo
15385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15386 ## Running $as_me. ##
15387 _ASBOX
15388 } >&5
15389 cat >&5 <<_CSEOF
15391 This file was extended by dpkg $as_me 1.13.6, which was
15392 generated by GNU Autoconf 2.59. Invocation command line was
15394 CONFIG_FILES = $CONFIG_FILES
15395 CONFIG_HEADERS = $CONFIG_HEADERS
15396 CONFIG_LINKS = $CONFIG_LINKS
15397 CONFIG_COMMANDS = $CONFIG_COMMANDS
15398 $ $0 $@
15400 _CSEOF
15401 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15402 echo >&5
15403 _ACEOF
15405 # Files that config.status was made for.
15406 if test -n "$ac_config_files"; then
15407 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15410 if test -n "$ac_config_headers"; then
15411 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15414 if test -n "$ac_config_links"; then
15415 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15418 if test -n "$ac_config_commands"; then
15419 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15422 cat >>$CONFIG_STATUS <<\_ACEOF
15424 ac_cs_usage="\
15425 \`$as_me' instantiates files from templates according to the
15426 current configuration.
15428 Usage: $0 [OPTIONS] [FILE]...
15430 -h, --help print this help, then exit
15431 -V, --version print version number, then exit
15432 -q, --quiet do not print progress messages
15433 -d, --debug don't remove temporary files
15434 --recheck update $as_me by reconfiguring in the same conditions
15435 --file=FILE[:TEMPLATE]
15436 instantiate the configuration file FILE
15437 --header=FILE[:TEMPLATE]
15438 instantiate the configuration header FILE
15440 Configuration files:
15441 $config_files
15443 Configuration headers:
15444 $config_headers
15446 Configuration commands:
15447 $config_commands
15449 Report bugs to <bug-autoconf@gnu.org>."
15450 _ACEOF
15452 cat >>$CONFIG_STATUS <<_ACEOF
15453 ac_cs_version="\\
15454 dpkg config.status 1.13.6
15455 configured by $0, generated by GNU Autoconf 2.59,
15456 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15458 Copyright (C) 2003 Free Software Foundation, Inc.
15459 This config.status script is free software; the Free Software Foundation
15460 gives unlimited permission to copy, distribute and modify it."
15461 srcdir=$srcdir
15462 INSTALL="$INSTALL"
15463 _ACEOF
15465 cat >>$CONFIG_STATUS <<\_ACEOF
15466 # If no file are specified by the user, then we need to provide default
15467 # value. By we need to know if files were specified by the user.
15468 ac_need_defaults=:
15469 while test $# != 0
15471 case $1 in
15472 --*=*)
15473 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15474 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15475 ac_shift=:
15478 ac_option=$1
15479 ac_optarg=$2
15480 ac_shift=shift
15482 *) # This is not an option, so the user has probably given explicit
15483 # arguments.
15484 ac_option=$1
15485 ac_need_defaults=false;;
15486 esac
15488 case $ac_option in
15489 # Handling of the options.
15490 _ACEOF
15491 cat >>$CONFIG_STATUS <<\_ACEOF
15492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15493 ac_cs_recheck=: ;;
15494 --version | --vers* | -V )
15495 echo "$ac_cs_version"; exit 0 ;;
15496 --he | --h)
15497 # Conflict between --help and --header
15498 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15499 Try \`$0 --help' for more information." >&5
15500 echo "$as_me: error: ambiguous option: $1
15501 Try \`$0 --help' for more information." >&2;}
15502 { (exit 1); exit 1; }; };;
15503 --help | --hel | -h )
15504 echo "$ac_cs_usage"; exit 0 ;;
15505 --debug | --d* | -d )
15506 debug=: ;;
15507 --file | --fil | --fi | --f )
15508 $ac_shift
15509 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15510 ac_need_defaults=false;;
15511 --header | --heade | --head | --hea )
15512 $ac_shift
15513 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15514 ac_need_defaults=false;;
15515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15517 ac_cs_silent=: ;;
15519 # This is an error.
15520 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15521 Try \`$0 --help' for more information." >&5
15522 echo "$as_me: error: unrecognized option: $1
15523 Try \`$0 --help' for more information." >&2;}
15524 { (exit 1); exit 1; }; } ;;
15526 *) ac_config_targets="$ac_config_targets $1" ;;
15528 esac
15529 shift
15530 done
15532 ac_configure_extra_args=
15534 if $ac_cs_silent; then
15535 exec 6>/dev/null
15536 ac_configure_extra_args="$ac_configure_extra_args --silent"
15539 _ACEOF
15540 cat >>$CONFIG_STATUS <<_ACEOF
15541 if \$ac_cs_recheck; then
15542 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15543 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15546 _ACEOF
15548 cat >>$CONFIG_STATUS <<_ACEOF
15550 # INIT-COMMANDS section.
15553 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15554 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15555 # from automake.
15556 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15557 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15558 LINGUAS="${LINGUAS-%UNSET%}"
15560 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15562 _ACEOF
15566 cat >>$CONFIG_STATUS <<\_ACEOF
15567 for ac_config_target in $ac_config_targets
15569 case "$ac_config_target" in
15570 # Handling of arguments.
15571 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15572 "dpkg-deb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
15573 "dpkg-split/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-split/Makefile" ;;
15574 "dselect/Makefile" ) CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
15575 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
15576 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15577 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15578 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15579 "man/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/C/Makefile" ;;
15580 "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
15581 "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
15582 "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
15583 "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
15584 "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
15585 "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
15586 "man/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
15587 "methods/Makefile" ) CONFIG_FILES="$CONFIG_FILES methods/Makefile" ;;
15588 "origins/Makefile" ) CONFIG_FILES="$CONFIG_FILES origins/Makefile" ;;
15589 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15590 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
15591 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15592 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15593 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15594 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15595 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15598 { (exit 1); exit 1; }; };;
15599 esac
15600 done
15602 # If the user did not use the arguments to specify the items to instantiate,
15603 # then the envvar interface is used. Set only those that are not.
15604 # We use the long form for the default assignment because of an extremely
15605 # bizarre bug on SunOS 4.1.3.
15606 if $ac_need_defaults; then
15607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15612 # Have a temporary directory for convenience. Make it in the build tree
15613 # simply because there is no reason to put it here, and in addition,
15614 # creating and moving files from /tmp can sometimes cause problems.
15615 # Create a temporary directory, and hook for its removal unless debugging.
15616 $debug ||
15618 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15619 trap '{ (exit 1); exit 1; }' 1 2 13 15
15622 # Create a (secure) tmp directory for tmp files.
15625 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15626 test -n "$tmp" && test -d "$tmp"
15627 } ||
15629 tmp=./confstat$$-$RANDOM
15630 (umask 077 && mkdir $tmp)
15631 } ||
15633 echo "$me: cannot create a temporary directory in ." >&2
15634 { (exit 1); exit 1; }
15637 _ACEOF
15639 cat >>$CONFIG_STATUS <<_ACEOF
15642 # CONFIG_FILES section.
15645 # No need to generate the scripts if there are no CONFIG_FILES.
15646 # This happens for instance when ./config.status config.h
15647 if test -n "\$CONFIG_FILES"; then
15648 # Protect against being on the right side of a sed subst in config.status.
15649 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15650 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15651 s,@SHELL@,$SHELL,;t t
15652 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15653 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15654 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15655 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15656 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15657 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15658 s,@exec_prefix@,$exec_prefix,;t t
15659 s,@prefix@,$prefix,;t t
15660 s,@program_transform_name@,$program_transform_name,;t t
15661 s,@bindir@,$bindir,;t t
15662 s,@sbindir@,$sbindir,;t t
15663 s,@libexecdir@,$libexecdir,;t t
15664 s,@datadir@,$datadir,;t t
15665 s,@sysconfdir@,$sysconfdir,;t t
15666 s,@sharedstatedir@,$sharedstatedir,;t t
15667 s,@localstatedir@,$localstatedir,;t t
15668 s,@libdir@,$libdir,;t t
15669 s,@includedir@,$includedir,;t t
15670 s,@oldincludedir@,$oldincludedir,;t t
15671 s,@infodir@,$infodir,;t t
15672 s,@mandir@,$mandir,;t t
15673 s,@build_alias@,$build_alias,;t t
15674 s,@host_alias@,$host_alias,;t t
15675 s,@target_alias@,$target_alias,;t t
15676 s,@DEFS@,$DEFS,;t t
15677 s,@ECHO_C@,$ECHO_C,;t t
15678 s,@ECHO_N@,$ECHO_N,;t t
15679 s,@ECHO_T@,$ECHO_T,;t t
15680 s,@LIBS@,$LIBS,;t t
15681 s,@build@,$build,;t t
15682 s,@build_cpu@,$build_cpu,;t t
15683 s,@build_vendor@,$build_vendor,;t t
15684 s,@build_os@,$build_os,;t t
15685 s,@host@,$host,;t t
15686 s,@host_cpu@,$host_cpu,;t t
15687 s,@host_vendor@,$host_vendor,;t t
15688 s,@host_os@,$host_os,;t t
15689 s,@target@,$target,;t t
15690 s,@target_cpu@,$target_cpu,;t t
15691 s,@target_vendor@,$target_vendor,;t t
15692 s,@target_os@,$target_os,;t t
15693 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15694 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15695 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15696 s,@CYGPATH_W@,$CYGPATH_W,;t t
15697 s,@PACKAGE@,$PACKAGE,;t t
15698 s,@VERSION@,$VERSION,;t t
15699 s,@ACLOCAL@,$ACLOCAL,;t t
15700 s,@AUTOCONF@,$AUTOCONF,;t t
15701 s,@AUTOMAKE@,$AUTOMAKE,;t t
15702 s,@AUTOHEADER@,$AUTOHEADER,;t t
15703 s,@MAKEINFO@,$MAKEINFO,;t t
15704 s,@AMTAR@,$AMTAR,;t t
15705 s,@install_sh@,$install_sh,;t t
15706 s,@STRIP@,$STRIP,;t t
15707 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15708 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15709 s,@mkdir_p@,$mkdir_p,;t t
15710 s,@AWK@,$AWK,;t t
15711 s,@SET_MAKE@,$SET_MAKE,;t t
15712 s,@am__leading_dot@,$am__leading_dot,;t t
15713 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15714 s,@USE_NLS@,$USE_NLS,;t t
15715 s,@MSGFMT@,$MSGFMT,;t t
15716 s,@GMSGFMT@,$GMSGFMT,;t t
15717 s,@XGETTEXT@,$XGETTEXT,;t t
15718 s,@MSGMERGE@,$MSGMERGE,;t t
15719 s,@CC@,$CC,;t t
15720 s,@CFLAGS@,$CFLAGS,;t t
15721 s,@LDFLAGS@,$LDFLAGS,;t t
15722 s,@CPPFLAGS@,$CPPFLAGS,;t t
15723 s,@ac_ct_CC@,$ac_ct_CC,;t t
15724 s,@EXEEXT@,$EXEEXT,;t t
15725 s,@OBJEXT@,$OBJEXT,;t t
15726 s,@DEPDIR@,$DEPDIR,;t t
15727 s,@am__include@,$am__include,;t t
15728 s,@am__quote@,$am__quote,;t t
15729 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15730 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15731 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15732 s,@CCDEPMODE@,$CCDEPMODE,;t t
15733 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15734 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15735 s,@RANLIB@,$RANLIB,;t t
15736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15737 s,@CPP@,$CPP,;t t
15738 s,@EGREP@,$EGREP,;t t
15739 s,@ALLOCA@,$ALLOCA,;t t
15740 s,@GLIBC21@,$GLIBC21,;t t
15741 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15742 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15743 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15744 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15745 s,@LIBICONV@,$LIBICONV,;t t
15746 s,@LTLIBICONV@,$LTLIBICONV,;t t
15747 s,@INTLBISON@,$INTLBISON,;t t
15748 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15749 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15750 s,@CATOBJEXT@,$CATOBJEXT,;t t
15751 s,@DATADIRNAME@,$DATADIRNAME,;t t
15752 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15753 s,@GENCAT@,$GENCAT,;t t
15754 s,@INTLOBJS@,$INTLOBJS,;t t
15755 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15756 s,@INTLLIBS@,$INTLLIBS,;t t
15757 s,@LIBINTL@,$LIBINTL,;t t
15758 s,@LTLIBINTL@,$LTLIBINTL,;t t
15759 s,@POSUB@,$POSUB,;t t
15760 s,@WITH_DSELECT_TRUE@,$WITH_DSELECT_TRUE,;t t
15761 s,@WITH_DSELECT_FALSE@,$WITH_DSELECT_FALSE,;t t
15762 s,@WITH_START_STOP_DAEMON_TRUE@,$WITH_START_STOP_DAEMON_TRUE,;t t
15763 s,@WITH_START_STOP_DAEMON_FALSE@,$WITH_START_STOP_DAEMON_FALSE,;t t
15764 s,@admindir@,$admindir,;t t
15765 s,@CXX@,$CXX,;t t
15766 s,@CXXFLAGS@,$CXXFLAGS,;t t
15767 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15768 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
15769 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
15770 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
15771 s,@PERL@,$PERL,;t t
15772 s,@ZLIB_CFLAGS@,$ZLIB_CFLAGS,;t t
15773 s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
15774 s,@BZ2_CFLAGS@,$BZ2_CFLAGS,;t t
15775 s,@BZ2_LIBS@,$BZ2_LIBS,;t t
15776 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
15777 s,@SSD_LIBS@,$SSD_LIBS,;t t
15778 s,@LIBOBJS@,$LIBOBJS,;t t
15779 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15780 CEOF
15782 _ACEOF
15784 cat >>$CONFIG_STATUS <<\_ACEOF
15785 # Split the substitutions into bite-sized pieces for seds with
15786 # small command number limits, like on Digital OSF/1 and HP-UX.
15787 ac_max_sed_lines=48
15788 ac_sed_frag=1 # Number of current file.
15789 ac_beg=1 # First line for current file.
15790 ac_end=$ac_max_sed_lines # Line after last line for current file.
15791 ac_more_lines=:
15792 ac_sed_cmds=
15793 while $ac_more_lines; do
15794 if test $ac_beg -gt 1; then
15795 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15796 else
15797 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15799 if test ! -s $tmp/subs.frag; then
15800 ac_more_lines=false
15801 else
15802 # The purpose of the label and of the branching condition is to
15803 # speed up the sed processing (if there are no `@' at all, there
15804 # is no need to browse any of the substitutions).
15805 # These are the two extra sed commands mentioned above.
15806 (echo ':t
15807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15808 if test -z "$ac_sed_cmds"; then
15809 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15810 else
15811 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15813 ac_sed_frag=`expr $ac_sed_frag + 1`
15814 ac_beg=$ac_end
15815 ac_end=`expr $ac_end + $ac_max_sed_lines`
15817 done
15818 if test -z "$ac_sed_cmds"; then
15819 ac_sed_cmds=cat
15821 fi # test -n "$CONFIG_FILES"
15823 _ACEOF
15824 cat >>$CONFIG_STATUS <<\_ACEOF
15825 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15827 case $ac_file in
15828 - | *:- | *:-:* ) # input from stdin
15829 cat >$tmp/stdin
15830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15834 * ) ac_file_in=$ac_file.in ;;
15835 esac
15837 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$ac_file" : 'X\(//\)[^/]' \| \
15841 X"$ac_file" : 'X\(//\)$' \| \
15842 X"$ac_file" : 'X\(/\)' \| \
15843 . : '\(.\)' 2>/dev/null ||
15844 echo X"$ac_file" |
15845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15847 /^X\(\/\/\)$/{ s//\1/; q; }
15848 /^X\(\/\).*/{ s//\1/; q; }
15849 s/.*/./; q'`
15850 { if $as_mkdir_p; then
15851 mkdir -p "$ac_dir"
15852 else
15853 as_dir="$ac_dir"
15854 as_dirs=
15855 while test ! -d "$as_dir"; do
15856 as_dirs="$as_dir $as_dirs"
15857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15859 X"$as_dir" : 'X\(//\)[^/]' \| \
15860 X"$as_dir" : 'X\(//\)$' \| \
15861 X"$as_dir" : 'X\(/\)' \| \
15862 . : '\(.\)' 2>/dev/null ||
15863 echo X"$as_dir" |
15864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15866 /^X\(\/\/\)$/{ s//\1/; q; }
15867 /^X\(\/\).*/{ s//\1/; q; }
15868 s/.*/./; q'`
15869 done
15870 test ! -n "$as_dirs" || mkdir $as_dirs
15871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15873 { (exit 1); exit 1; }; }; }
15875 ac_builddir=.
15877 if test "$ac_dir" != .; then
15878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15879 # A "../" for each directory in $ac_dir_suffix.
15880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15881 else
15882 ac_dir_suffix= ac_top_builddir=
15885 case $srcdir in
15886 .) # No --srcdir option. We are building in place.
15887 ac_srcdir=.
15888 if test -z "$ac_top_builddir"; then
15889 ac_top_srcdir=.
15890 else
15891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15892 fi ;;
15893 [\\/]* | ?:[\\/]* ) # Absolute path.
15894 ac_srcdir=$srcdir$ac_dir_suffix;
15895 ac_top_srcdir=$srcdir ;;
15896 *) # Relative path.
15897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15899 esac
15901 # Do not use `cd foo && pwd` to compute absolute paths, because
15902 # the directories may not exist.
15903 case `pwd` in
15904 .) ac_abs_builddir="$ac_dir";;
15906 case "$ac_dir" in
15907 .) ac_abs_builddir=`pwd`;;
15908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15910 esac;;
15911 esac
15912 case $ac_abs_builddir in
15913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15915 case ${ac_top_builddir}. in
15916 .) ac_abs_top_builddir=$ac_abs_builddir;;
15917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15919 esac;;
15920 esac
15921 case $ac_abs_builddir in
15922 .) ac_abs_srcdir=$ac_srcdir;;
15924 case $ac_srcdir in
15925 .) ac_abs_srcdir=$ac_abs_builddir;;
15926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15928 esac;;
15929 esac
15930 case $ac_abs_builddir in
15931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15933 case $ac_top_srcdir in
15934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15937 esac;;
15938 esac
15941 case $INSTALL in
15942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15943 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15944 esac
15946 # Let's still pretend it is `configure' which instantiates (i.e., don't
15947 # use $as_me), people would be surprised to read:
15948 # /* config.h. Generated by config.status. */
15949 if test x"$ac_file" = x-; then
15950 configure_input=
15951 else
15952 configure_input="$ac_file. "
15954 configure_input=$configure_input"Generated from `echo $ac_file_in |
15955 sed 's,.*/,,'` by configure."
15957 # First look for the input files in the build tree, otherwise in the
15958 # src tree.
15959 ac_file_inputs=`IFS=:
15960 for f in $ac_file_in; do
15961 case $f in
15962 -) echo $tmp/stdin ;;
15963 [\\/$]*)
15964 # Absolute (can't be DOS-style, as IFS=:)
15965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15966 echo "$as_me: error: cannot find input file: $f" >&2;}
15967 { (exit 1); exit 1; }; }
15968 echo "$f";;
15969 *) # Relative
15970 if test -f "$f"; then
15971 # Build tree
15972 echo "$f"
15973 elif test -f "$srcdir/$f"; then
15974 # Source tree
15975 echo "$srcdir/$f"
15976 else
15977 # /dev/null tree
15978 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15979 echo "$as_me: error: cannot find input file: $f" >&2;}
15980 { (exit 1); exit 1; }; }
15981 fi;;
15982 esac
15983 done` || { (exit 1); exit 1; }
15985 if test x"$ac_file" != x-; then
15986 { echo "$as_me:$LINENO: creating $ac_file" >&5
15987 echo "$as_me: creating $ac_file" >&6;}
15988 rm -f "$ac_file"
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<_ACEOF
15992 sed "$ac_vpsub
15993 $extrasub
15994 _ACEOF
15995 cat >>$CONFIG_STATUS <<\_ACEOF
15997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15998 s,@configure_input@,$configure_input,;t t
15999 s,@srcdir@,$ac_srcdir,;t t
16000 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16001 s,@top_srcdir@,$ac_top_srcdir,;t t
16002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16003 s,@builddir@,$ac_builddir,;t t
16004 s,@abs_builddir@,$ac_abs_builddir,;t t
16005 s,@top_builddir@,$ac_top_builddir,;t t
16006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16007 s,@INSTALL@,$ac_INSTALL,;t t
16008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16009 rm -f $tmp/stdin
16010 if test x"$ac_file" != x-; then
16011 mv $tmp/out $ac_file
16012 else
16013 cat $tmp/out
16014 rm -f $tmp/out
16017 done
16018 _ACEOF
16019 cat >>$CONFIG_STATUS <<\_ACEOF
16022 # CONFIG_HEADER section.
16025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16028 # ac_d sets the value in "#define NAME VALUE" lines.
16029 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16030 ac_dB='[ ].*$,\1#\2'
16031 ac_dC=' '
16032 ac_dD=',;t'
16033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16034 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16035 ac_uB='$,\1#\2define\3'
16036 ac_uC=' '
16037 ac_uD=',;t'
16039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16041 case $ac_file in
16042 - | *:- | *:-:* ) # input from stdin
16043 cat >$tmp/stdin
16044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16048 * ) ac_file_in=$ac_file.in ;;
16049 esac
16051 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16052 echo "$as_me: creating $ac_file" >&6;}
16054 # First look for the input files in the build tree, otherwise in the
16055 # src tree.
16056 ac_file_inputs=`IFS=:
16057 for f in $ac_file_in; do
16058 case $f in
16059 -) echo $tmp/stdin ;;
16060 [\\/$]*)
16061 # Absolute (can't be DOS-style, as IFS=:)
16062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16063 echo "$as_me: error: cannot find input file: $f" >&2;}
16064 { (exit 1); exit 1; }; }
16065 # Do quote $f, to prevent DOS paths from being IFS'd.
16066 echo "$f";;
16067 *) # Relative
16068 if test -f "$f"; then
16069 # Build tree
16070 echo "$f"
16071 elif test -f "$srcdir/$f"; then
16072 # Source tree
16073 echo "$srcdir/$f"
16074 else
16075 # /dev/null tree
16076 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16077 echo "$as_me: error: cannot find input file: $f" >&2;}
16078 { (exit 1); exit 1; }; }
16079 fi;;
16080 esac
16081 done` || { (exit 1); exit 1; }
16082 # Remove the trailing spaces.
16083 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16085 _ACEOF
16087 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16088 # `conftest.undefs', that substitutes the proper values into
16089 # config.h.in to produce config.h. The first handles `#define'
16090 # templates, and the second `#undef' templates.
16091 # And first: Protect against being on the right side of a sed subst in
16092 # config.status. Protect against being in an unquoted here document
16093 # in config.status.
16094 rm -f conftest.defines conftest.undefs
16095 # Using a here document instead of a string reduces the quoting nightmare.
16096 # Putting comments in sed scripts is not portable.
16098 # `end' is used to avoid that the second main sed command (meant for
16099 # 0-ary CPP macros) applies to n-ary macro definitions.
16100 # See the Autoconf documentation for `clear'.
16101 cat >confdef2sed.sed <<\_ACEOF
16102 s/[\\&,]/\\&/g
16103 s,[\\$`],\\&,g
16104 t clear
16105 : clear
16106 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16107 t end
16108 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16109 : end
16110 _ACEOF
16111 # If some macros were called several times there might be several times
16112 # the same #defines, which is useless. Nevertheless, we may not want to
16113 # sort them, since we want the *last* AC-DEFINE to be honored.
16114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16116 rm -f confdef2sed.sed
16118 # This sed command replaces #undef with comments. This is necessary, for
16119 # example, in the case of _POSIX_SOURCE, which is predefined and required
16120 # on some systems where configure will not decide to define it.
16121 cat >>conftest.undefs <<\_ACEOF
16122 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16123 _ACEOF
16125 # Break up conftest.defines because some shells have a limit on the size
16126 # of here documents, and old seds have small limits too (100 cmds).
16127 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16128 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16129 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16130 echo ' :' >>$CONFIG_STATUS
16131 rm -f conftest.tail
16132 while grep . conftest.defines >/dev/null
16134 # Write a limited-size here document to $tmp/defines.sed.
16135 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16136 # Speed up: don't consider the non `#define' lines.
16137 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16138 # Work around the forget-to-reset-the-flag bug.
16139 echo 't clr' >>$CONFIG_STATUS
16140 echo ': clr' >>$CONFIG_STATUS
16141 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16142 echo 'CEOF
16143 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16144 rm -f $tmp/in
16145 mv $tmp/out $tmp/in
16146 ' >>$CONFIG_STATUS
16147 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16148 rm -f conftest.defines
16149 mv conftest.tail conftest.defines
16150 done
16151 rm -f conftest.defines
16152 echo ' fi # grep' >>$CONFIG_STATUS
16153 echo >>$CONFIG_STATUS
16155 # Break up conftest.undefs because some shells have a limit on the size
16156 # of here documents, and old seds have small limits too (100 cmds).
16157 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16158 rm -f conftest.tail
16159 while grep . conftest.undefs >/dev/null
16161 # Write a limited-size here document to $tmp/undefs.sed.
16162 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16163 # Speed up: don't consider the non `#undef'
16164 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16165 # Work around the forget-to-reset-the-flag bug.
16166 echo 't clr' >>$CONFIG_STATUS
16167 echo ': clr' >>$CONFIG_STATUS
16168 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16169 echo 'CEOF
16170 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16171 rm -f $tmp/in
16172 mv $tmp/out $tmp/in
16173 ' >>$CONFIG_STATUS
16174 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16175 rm -f conftest.undefs
16176 mv conftest.tail conftest.undefs
16177 done
16178 rm -f conftest.undefs
16180 cat >>$CONFIG_STATUS <<\_ACEOF
16181 # Let's still pretend it is `configure' which instantiates (i.e., don't
16182 # use $as_me), people would be surprised to read:
16183 # /* config.h. Generated by config.status. */
16184 if test x"$ac_file" = x-; then
16185 echo "/* Generated by configure. */" >$tmp/config.h
16186 else
16187 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16189 cat $tmp/in >>$tmp/config.h
16190 rm -f $tmp/in
16191 if test x"$ac_file" != x-; then
16192 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16193 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16194 echo "$as_me: $ac_file is unchanged" >&6;}
16195 else
16196 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16198 X"$ac_file" : 'X\(//\)[^/]' \| \
16199 X"$ac_file" : 'X\(//\)$' \| \
16200 X"$ac_file" : 'X\(/\)' \| \
16201 . : '\(.\)' 2>/dev/null ||
16202 echo X"$ac_file" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16205 /^X\(\/\/\)$/{ s//\1/; q; }
16206 /^X\(\/\).*/{ s//\1/; q; }
16207 s/.*/./; q'`
16208 { if $as_mkdir_p; then
16209 mkdir -p "$ac_dir"
16210 else
16211 as_dir="$ac_dir"
16212 as_dirs=
16213 while test ! -d "$as_dir"; do
16214 as_dirs="$as_dir $as_dirs"
16215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16217 X"$as_dir" : 'X\(//\)[^/]' \| \
16218 X"$as_dir" : 'X\(//\)$' \| \
16219 X"$as_dir" : 'X\(/\)' \| \
16220 . : '\(.\)' 2>/dev/null ||
16221 echo X"$as_dir" |
16222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16224 /^X\(\/\/\)$/{ s//\1/; q; }
16225 /^X\(\/\).*/{ s//\1/; q; }
16226 s/.*/./; q'`
16227 done
16228 test ! -n "$as_dirs" || mkdir $as_dirs
16229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16231 { (exit 1); exit 1; }; }; }
16233 rm -f $ac_file
16234 mv $tmp/config.h $ac_file
16236 else
16237 cat $tmp/config.h
16238 rm -f $tmp/config.h
16240 # Compute $ac_file's index in $config_headers.
16241 _am_stamp_count=1
16242 for _am_header in $config_headers :; do
16243 case $_am_header in
16244 $ac_file | $ac_file:* )
16245 break ;;
16247 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16248 esac
16249 done
16250 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16251 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16252 X$ac_file : 'X\(//\)[^/]' \| \
16253 X$ac_file : 'X\(//\)$' \| \
16254 X$ac_file : 'X\(/\)' \| \
16255 . : '\(.\)' 2>/dev/null ||
16256 echo X$ac_file |
16257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16259 /^X\(\/\/\)$/{ s//\1/; q; }
16260 /^X\(\/\).*/{ s//\1/; q; }
16261 s/.*/./; q'`/stamp-h$_am_stamp_count
16262 done
16263 _ACEOF
16264 cat >>$CONFIG_STATUS <<\_ACEOF
16267 # CONFIG_COMMANDS section.
16269 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16270 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16271 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16272 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16273 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16274 X"$ac_dest" : 'X\(//\)[^/]' \| \
16275 X"$ac_dest" : 'X\(//\)$' \| \
16276 X"$ac_dest" : 'X\(/\)' \| \
16277 . : '\(.\)' 2>/dev/null ||
16278 echo X"$ac_dest" |
16279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16281 /^X\(\/\/\)$/{ s//\1/; q; }
16282 /^X\(\/\).*/{ s//\1/; q; }
16283 s/.*/./; q'`
16284 { if $as_mkdir_p; then
16285 mkdir -p "$ac_dir"
16286 else
16287 as_dir="$ac_dir"
16288 as_dirs=
16289 while test ! -d "$as_dir"; do
16290 as_dirs="$as_dir $as_dirs"
16291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16293 X"$as_dir" : 'X\(//\)[^/]' \| \
16294 X"$as_dir" : 'X\(//\)$' \| \
16295 X"$as_dir" : 'X\(/\)' \| \
16296 . : '\(.\)' 2>/dev/null ||
16297 echo X"$as_dir" |
16298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16300 /^X\(\/\/\)$/{ s//\1/; q; }
16301 /^X\(\/\).*/{ s//\1/; q; }
16302 s/.*/./; q'`
16303 done
16304 test ! -n "$as_dirs" || mkdir $as_dirs
16305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16307 { (exit 1); exit 1; }; }; }
16309 ac_builddir=.
16311 if test "$ac_dir" != .; then
16312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16313 # A "../" for each directory in $ac_dir_suffix.
16314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16315 else
16316 ac_dir_suffix= ac_top_builddir=
16319 case $srcdir in
16320 .) # No --srcdir option. We are building in place.
16321 ac_srcdir=.
16322 if test -z "$ac_top_builddir"; then
16323 ac_top_srcdir=.
16324 else
16325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16326 fi ;;
16327 [\\/]* | ?:[\\/]* ) # Absolute path.
16328 ac_srcdir=$srcdir$ac_dir_suffix;
16329 ac_top_srcdir=$srcdir ;;
16330 *) # Relative path.
16331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16333 esac
16335 # Do not use `cd foo && pwd` to compute absolute paths, because
16336 # the directories may not exist.
16337 case `pwd` in
16338 .) ac_abs_builddir="$ac_dir";;
16340 case "$ac_dir" in
16341 .) ac_abs_builddir=`pwd`;;
16342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16343 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16344 esac;;
16345 esac
16346 case $ac_abs_builddir in
16347 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16349 case ${ac_top_builddir}. in
16350 .) ac_abs_top_builddir=$ac_abs_builddir;;
16351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16353 esac;;
16354 esac
16355 case $ac_abs_builddir in
16356 .) ac_abs_srcdir=$ac_srcdir;;
16358 case $ac_srcdir in
16359 .) ac_abs_srcdir=$ac_abs_builddir;;
16360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16362 esac;;
16363 esac
16364 case $ac_abs_builddir in
16365 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16367 case $ac_top_srcdir in
16368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16371 esac;;
16372 esac
16375 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16376 echo "$as_me: executing $ac_dest commands" >&6;}
16377 case $ac_dest in
16378 default-1 )
16379 for ac_file in $CONFIG_FILES; do
16380 # Support "outfile[:infile[:infile...]]"
16381 case "$ac_file" in
16382 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16383 esac
16384 # PO directories have a Makefile.in generated from Makefile.in.in.
16385 case "$ac_file" in */Makefile.in)
16386 # Adjust a relative srcdir.
16387 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16388 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16389 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16390 # In autoconf-2.13 it is called $ac_given_srcdir.
16391 # In autoconf-2.50 it is called $srcdir.
16392 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16393 case "$ac_given_srcdir" in
16394 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16395 /*) top_srcdir="$ac_given_srcdir" ;;
16396 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16397 esac
16398 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16399 rm -f "$ac_dir/POTFILES"
16400 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16401 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16402 POMAKEFILEDEPS="POTFILES.in"
16403 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16404 # on $ac_dir but don't depend on user-specified configuration
16405 # parameters.
16406 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16407 # The LINGUAS file contains the set of available languages.
16408 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16409 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16411 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16412 # Hide the ALL_LINGUAS assigment from automake.
16413 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16414 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16415 else
16416 # The set of available languages was given in configure.in.
16417 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16419 # Compute POFILES
16420 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16421 # Compute UPDATEPOFILES
16422 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16423 # Compute DUMMYPOFILES
16424 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16425 # Compute GMOFILES
16426 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16427 case "$ac_given_srcdir" in
16428 .) srcdirpre= ;;
16429 *) srcdirpre='$(srcdir)/' ;;
16430 esac
16431 POFILES=
16432 UPDATEPOFILES=
16433 DUMMYPOFILES=
16434 GMOFILES=
16435 for lang in $ALL_LINGUAS; do
16436 POFILES="$POFILES $srcdirpre$lang.po"
16437 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16438 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16439 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16440 done
16441 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16442 # environment variable.
16443 INST_LINGUAS=
16444 if test -n "$ALL_LINGUAS"; then
16445 for presentlang in $ALL_LINGUAS; do
16446 useit=no
16447 if test "%UNSET%" != "$LINGUAS"; then
16448 desiredlanguages="$LINGUAS"
16449 else
16450 desiredlanguages="$ALL_LINGUAS"
16452 for desiredlang in $desiredlanguages; do
16453 # Use the presentlang catalog if desiredlang is
16454 # a. equal to presentlang, or
16455 # b. a variant of presentlang (because in this case,
16456 # presentlang can be used as a fallback for messages
16457 # which are not translated in the desiredlang catalog).
16458 case "$desiredlang" in
16459 "$presentlang"*) useit=yes;;
16460 esac
16461 done
16462 if test $useit = yes; then
16463 INST_LINGUAS="$INST_LINGUAS $presentlang"
16465 done
16467 CATALOGS=
16468 if test -n "$INST_LINGUAS"; then
16469 for lang in $INST_LINGUAS; do
16470 CATALOGS="$CATALOGS $lang.gmo"
16471 done
16473 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16474 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"
16475 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16476 if test -f "$f"; then
16477 case "$f" in
16478 *.orig | *.bak | *~) ;;
16479 *) cat "$f" >> "$ac_dir/Makefile" ;;
16480 esac
16482 done
16485 esac
16486 done ;;
16487 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16488 # Strip MF so we end up with the name of the file.
16489 mf=`echo "$mf" | sed -e 's/:.*$//'`
16490 # Check whether this is an Automake generated Makefile or not.
16491 # We used to match only the files named `Makefile.in', but
16492 # some people rename them; so instead we look at the file content.
16493 # Grep'ing the first line is not enough: some people post-process
16494 # each Makefile.in and add a new line on top of each file to say so.
16495 # So let's grep whole file.
16496 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16497 dirpart=`(dirname "$mf") 2>/dev/null ||
16498 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16499 X"$mf" : 'X\(//\)[^/]' \| \
16500 X"$mf" : 'X\(//\)$' \| \
16501 X"$mf" : 'X\(/\)' \| \
16502 . : '\(.\)' 2>/dev/null ||
16503 echo X"$mf" |
16504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16506 /^X\(\/\/\)$/{ s//\1/; q; }
16507 /^X\(\/\).*/{ s//\1/; q; }
16508 s/.*/./; q'`
16509 else
16510 continue
16512 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16513 # Extract the definition of DEP_FILES from the Makefile without
16514 # running `make'.
16515 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16516 test -z "$DEPDIR" && continue
16517 # When using ansi2knr, U may be empty or an underscore; expand it
16518 U=`sed -n 's/^U = //p' < "$mf"`
16519 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16520 # We invoke sed twice because it is the simplest approach to
16521 # changing $(DEPDIR) to its actual value in the expansion.
16522 for file in `sed -n '
16523 /^DEP_FILES = .*\\\\$/ {
16524 s/^DEP_FILES = //
16525 :loop
16526 s/\\\\$//
16529 /\\\\$/ b loop
16532 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16534 # Make sure the directory exists.
16535 test -f "$dirpart/$file" && continue
16536 fdir=`(dirname "$file") 2>/dev/null ||
16537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16538 X"$file" : 'X\(//\)[^/]' \| \
16539 X"$file" : 'X\(//\)$' \| \
16540 X"$file" : 'X\(/\)' \| \
16541 . : '\(.\)' 2>/dev/null ||
16542 echo X"$file" |
16543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16545 /^X\(\/\/\)$/{ s//\1/; q; }
16546 /^X\(\/\).*/{ s//\1/; q; }
16547 s/.*/./; q'`
16548 { if $as_mkdir_p; then
16549 mkdir -p $dirpart/$fdir
16550 else
16551 as_dir=$dirpart/$fdir
16552 as_dirs=
16553 while test ! -d "$as_dir"; do
16554 as_dirs="$as_dir $as_dirs"
16555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16557 X"$as_dir" : 'X\(//\)[^/]' \| \
16558 X"$as_dir" : 'X\(//\)$' \| \
16559 X"$as_dir" : 'X\(/\)' \| \
16560 . : '\(.\)' 2>/dev/null ||
16561 echo X"$as_dir" |
16562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16564 /^X\(\/\/\)$/{ s//\1/; q; }
16565 /^X\(\/\).*/{ s//\1/; q; }
16566 s/.*/./; q'`
16567 done
16568 test ! -n "$as_dirs" || mkdir $as_dirs
16569 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16570 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16571 { (exit 1); exit 1; }; }; }
16573 # echo "creating $dirpart/$file"
16574 echo '# dummy' > "$dirpart/$file"
16575 done
16576 done
16578 esac
16579 done
16580 _ACEOF
16582 cat >>$CONFIG_STATUS <<\_ACEOF
16584 { (exit 0); exit 0; }
16585 _ACEOF
16586 chmod +x $CONFIG_STATUS
16587 ac_clean_files=$ac_clean_files_save
16590 # configure is writing to config.log, and then calls config.status.
16591 # config.status does its own redirection, appending to config.log.
16592 # Unfortunately, on DOS this fails, as config.log is still kept open
16593 # by configure, so config.status won't be able to write to it; its
16594 # output is simply discarded. So we exec the FD to /dev/null,
16595 # effectively closing config.log, so it can be properly (re)opened and
16596 # appended to by config.status. When coming back to configure, we
16597 # need to make the FD available again.
16598 if test "$no_create" != yes; then
16599 ac_cs_success=:
16600 ac_config_status_args=
16601 test "$silent" = yes &&
16602 ac_config_status_args="$ac_config_status_args --quiet"
16603 exec 5>/dev/null
16604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16605 exec 5>>config.log
16606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16607 # would make configure fail if this is the last instruction.
16608 $ac_cs_success || { (exit 1); exit 1; }