]> git.ipfire.org Git - thirdparty/util-linux.git/blame - configure
Imported from util-linux-2.13-pre4 tarball.
[thirdparty/util-linux.git] / configure
CommitLineData
48d7b13a
KZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ca3ea756 3# Generated by GNU Autoconf 2.59 for util-linux 2.13-pre4.
48d7b13a
KZ
4#
5# Report bugs to <bunk@stusta.de>.
6#
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## --------------------- ##
13
14# Be Bourne compatible
15if 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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
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
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
139 /*)
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
154done
155;;
156 esac
157
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 '
168 N
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; }; }
179
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
186}
187
188
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
48d7b13a
KZ
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
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}
268
269# Identity of this package.
270PACKAGE_NAME='util-linux'
271PACKAGE_TARNAME='util-linux'
ca3ea756
KZ
272PACKAGE_VERSION='2.13-pre4'
273PACKAGE_STRING='util-linux 2.13-pre4'
48d7b13a
KZ
274PACKAGE_BUGREPORT='bunk@stusta.de'
275
276ac_unique_file="mount/mount.c"
277ac_default_prefix=/
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
ca3ea756 315ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RANLIB ac_ct_RANLIB PERL 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 CPP EGREP HAVE_RAW_TRUE HAVE_RAW_FALSE HAVE_UUID_TRUE HAVE_UUID_FALSE HAVE_LIBUTIL_TRUE HAVE_LIBUTIL_FALSE HAVE_TERMCAP_TRUE HAVE_TERMCAP_FALSE HAVE_BLKID_TRUE HAVE_BLKID_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB HAVE_NCURSES_TRUE HAVE_NCURSES_FALSE USE_SLANG_TRUE USE_SLANG_FALSE NEED_LIBCRYPT_TRUE NEED_LIBCRYPT_FALSE HAVE_PIVOT_ROOT_TRUE HAVE_PIVOT_ROOT_FALSE INTEL_TRUE INTEL_FALSE M68K_TRUE M68K_FALSE SPARC_TRUE SPARC_FALSE BUILD_AGETTY_TRUE BUILD_AGETTY_FALSE BUILD_CRAMFS_TRUE BUILD_CRAMFS_FALSE BUILD_ELVTUNE_TRUE BUILD_ELVTUNE_FALSE BUILD_INIT_TRUE BUILD_INIT_FALSE BUILD_KILL_TRUE BUILD_KILL_FALSE BUILD_LAST_TRUE BUILD_LAST_FALSE BUILD_MESG_TRUE BUILD_MESG_FALSE BUILD_PARTX_TRUE BUILD_PARTX_FALSE BUILD_RAW_TRUE BUILD_RAW_FALSE BUILD_RDEV_TRUE BUILD_RDEV_FALSE BUILD_RENAME_TRUE BUILD_RENAME_FALSE BUILD_RESET_TRUE BUILD_RESET_FALSE BUILD_LOGIN_UTILS_TRUE BUILD_LOGIN_UTILS_FALSE HAVE_PAM_TRUE HAVE_PAM_FALSE HAVE_SELINUX_TRUE HAVE_SELINUX_FALSE BUILD_SCHEDUTILS_TRUE BUILD_SCHEDUTILS_FALSE BUILD_WALL_TRUE BUILD_WALL_FALSE BUILD_WRITE_TRUE BUILD_WRITE_FALSE USE_TTY_GROUP_TRUE USE_TTY_GROUP_FALSE LIBOBJS LTLIBOBJS'
48d7b13a
KZ
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
48d7b13a
KZ
776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
ca3ea756 784\`configure' configures util-linux 2.13-pre4 to adapt to many kinds of systems.
48d7b13a
KZ
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792
793Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804_ACEOF
805
806 cat <<_ACEOF
807Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813By default, \`make install' will install all the files in
814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816for instance \`--prefix=\$HOME'.
817
818For better control, use the options below.
819
820Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833_ACEOF
834
835 cat <<\_ACEOF
836
837Program names:
838 --program-prefix=PREFIX prepend PREFIX to installed program names
839 --program-suffix=SUFFIX append SUFFIX to installed program names
840 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841
842System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849 case $ac_init_help in
ca3ea756 850 short | recursive ) echo "Configuration of util-linux 2.13-pre4:";;
48d7b13a
KZ
851 esac
852 cat <<\_ACEOF
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
baf39af1 857 --disable-largefile omit support for large files
48d7b13a
KZ
858 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
48d7b13a
KZ
860 --disable-nls do not use Native Language Support
861 --disable-rpath do not hardcode runtime library paths
862 --disable-agetty do not build agetty
9cb68977 863 --disable-cramfs do not build fsck.cramfs, mkfs.cramfs
48d7b13a
KZ
864 --enable-elvtune build elvtune (only works with 2.2 and 2.4 kernels)
865 --enable-init build simpleinit, shutdown, initctl
866 --enable-kill build kill
867 --enable-last build last
868 --enable-mesg build mesg
869 --enable-partx build addpart, delpart, partx
870 --enable-raw build raw
871 --enable-rdev build rdev on i386
872 --disable-rename do not build rename
873 --enable-reset build reset
874 --enable-login-utils build chfn, chsh, login, newgrp, vipw
875 --disable-schedutils do not build chrt, ionice, teskset
876 --disable-wall do not build wall
877 --enable-write build write
878 --disable-chsh-only-listed
879 chsh: allow shells not in /etc/shells
880 --enable-login-chown-vcs
881 let login chown /dev/vcsN
882 --enable-login-stat-mail
883 let login stat() the mailbox
884 --disable-pg-bell let pg not ring the bell on invalid keys
885 --disable-require-password
886 do not require the user to enter the password in
887 chfn and chsh
888 --disable-use-tty-group do not install wall and write setgid tty
889
890Optional Packages:
891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
48d7b13a
KZ
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
895 --without-libiconv-prefix don't search for libiconv in includedir and libdir
896 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
897 --without-libintl-prefix don't search for libintl in includedir and libdir
898 --with-slang compile cfdisk with slang
9cb68977
KZ
899 --without-pam compile login-utils without PAM support
900 --without-selinux compile login-utils without SELinux support
48d7b13a
KZ
901
902Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CPP C preprocessor
48d7b13a
KZ
910
911Use these variables to override the choices made by `configure' or to help
912it to find libraries and programs with nonstandard names/locations.
913
914Report bugs to <bunk@stusta.de>.
915_ACEOF
916fi
917
918if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929else
930 ac_dir_suffix= ac_top_builddir=
931fi
932
933case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947esac
948
949# Do not use `cd foo && pwd` to compute absolute paths, because
950# the directories may not exist.
951case `pwd` in
952.) ac_abs_builddir="$ac_dir";;
953*)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_builddir=${ac_top_builddir}.;;
962*)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968esac
969case $ac_abs_builddir in
970.) ac_abs_srcdir=$ac_srcdir;;
971*)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977esac
978case $ac_abs_builddir in
979.) ac_abs_top_srcdir=$ac_top_srcdir;;
980*)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd "$ac_popdir"
1004 done
1005fi
1006
1007test -n "$ac_init_help" && exit 0
1008if $ac_init_version; then
1009 cat <<\_ACEOF
ca3ea756 1010util-linux configure 2.13-pre4
48d7b13a
KZ
1011generated by GNU Autoconf 2.59
1012
1013Copyright (C) 2003 Free Software Foundation, Inc.
1014This configure script is free software; the Free Software Foundation
1015gives unlimited permission to copy, distribute and modify it.
1016_ACEOF
1017 exit 0
1018fi
1019exec 5>config.log
1020cat >&5 <<_ACEOF
1021This file contains any messages produced by compilers while
1022running configure, to aid debugging if configure makes a mistake.
1023
ca3ea756 1024It was created by util-linux $as_me 2.13-pre4, which was
48d7b13a
KZ
1025generated by GNU Autoconf 2.59. Invocation command line was
1026
1027 $ $0 $@
1028
1029_ACEOF
1030{
1031cat <<_ASUNAME
1032## --------- ##
1033## Platform. ##
1034## --------- ##
1035
1036hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044
1045/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052
1053_ASUNAME
1054
1055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056for as_dir in $PATH
1057do
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061done
1062
1063} >&5
1064
1065cat >&5 <<_ACEOF
1066
1067
1068## ----------- ##
1069## Core tests. ##
1070## ----------- ##
1071
1072_ACEOF
1073
1074
1075# Keep a trace of the command line.
1076# Strip out --no-create and --no-recursion so they do not pile up.
1077# Strip out --silent because we don't want to record it for future runs.
1078# Also quote any args containing shell meta-characters.
1079# Make two passes to allow for proper duplicate-argument suppression.
1080ac_configure_args=
1081ac_configure_args0=
1082ac_configure_args1=
1083ac_sep=
1084ac_must_keep_next=false
1085for ac_pass in 1 2
1086do
1087 for ac_arg
1088 do
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 2)
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1112 ;;
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1115 fi
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1119 ;;
1120 esac
1121 done
1122done
1123$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126# When interrupted or exit'd, cleanup temporary files, and complete
1127# config.log. We remove comments because anyway the quotes in there
1128# would cause problems or look ugly.
1129# WARNING: Be sure not to use single quotes in there, as some shells,
1130# such as our DU 5.0 friend, will then `close' the trap.
1131trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1133 {
1134 echo
1135
1136 cat <<\_ASBOX
1137## ---------------- ##
1138## Cache variables. ##
1139## ---------------- ##
1140_ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1143{
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 ;;
1151 *)
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ;;
1155 esac;
1156}
1157 echo
1158
1159 cat <<\_ASBOX
1160## ----------------- ##
1161## Output variables. ##
1162## ----------------- ##
1163_ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174## ------------- ##
1175## Output files. ##
1176## ------------- ##
1177_ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1180 do
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1185 fi
1186
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189## ----------- ##
1190## confdefs.h. ##
1191## ----------- ##
1192_ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1196 fi
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1204 ' 0
1205for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207done
1208ac_signal=0
1209
1210# confdefs.h avoids OS command line length limits that DEFS can exceed.
1211rm -rf conftest* confdefs.h
1212# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213echo >confdefs.h
1214
1215# Predefined preprocessor variables.
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_NAME "$PACKAGE_NAME"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_VERSION "$PACKAGE_VERSION"
1229_ACEOF
1230
1231
1232cat >>confdefs.h <<_ACEOF
1233#define PACKAGE_STRING "$PACKAGE_STRING"
1234_ACEOF
1235
1236
1237cat >>confdefs.h <<_ACEOF
1238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239_ACEOF
1240
1241
1242# Let the site file select an alternate cache file if it wants to.
1243# Prefer explicitly selected file to automatically selected ones.
1244if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 fi
1250fi
1251for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1257 fi
1258done
1259
1260if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1270 fi
1271else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1275fi
1276
1277# Check that the precious variables saved in the cache have kept the same
1278# value.
1279ac_cache_corrupted=false
1280for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1296 *)
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1318 fi
1319done
1320if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1326fi
1327
1328ac_ext=c
1329ac_cpp='$CPP $CPPFLAGS'
1330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
baf39af1
KZ
1358
1359
48d7b13a
KZ
1360
1361
1362
1363ac_aux_dir=
1364for ac_dir in config $srcdir/config; do
1365 if test -f $ac_dir/install-sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1368 break
1369 elif test -f $ac_dir/install.sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1372 break
1373 elif test -f $ac_dir/shtool; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 break
1377 fi
1378done
1379if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1381echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1382 { (exit 1); exit 1; }; }
1383fi
1384ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1387
1388
1389am__api_version="1.9"
1390# Find a good install program. We prefer a C program (faster),
1391# so one script is as good as another. But avoid the broken or
1392# incompatible versions:
1393# SysV /etc/install, /usr/sbin/install
1394# SunOS /usr/etc/install
1395# IRIX /sbin/install
1396# AIX /bin/install
1397# AmigaOS /C/install, which installs bootblocks on floppy discs
1398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1401# OS/2's system install, which has a completely different semantic
1402# ./install, which can be erroneously created by make from ./install.sh.
1403echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1405if test -z "$INSTALL"; then
1406if test "${ac_cv_path_install+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410for as_dir in $PATH
1411do
1412 IFS=$as_save_IFS
1413 test -z "$as_dir" && as_dir=.
1414 # Account for people who put trailing slashes in PATH elements.
1415case $as_dir/ in
1416 ./ | .// | /cC/* | \
1417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1418 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1419 /usr/ucb/* ) ;;
1420 *)
1421 # OSF1 and SCO ODT 3.0 have their own names for install.
1422 # Don't use installbsd from OSF since it installs stuff as root
1423 # by default.
1424 for ac_prog in ginstall scoinst install; do
1425 for ac_exec_ext in '' $ac_executable_extensions; do
1426 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1427 if test $ac_prog = install &&
1428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429 # AIX install. It has an incompatible calling convention.
1430 :
1431 elif test $ac_prog = install &&
1432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433 # program-specific install script used by HP pwplus--don't use.
1434 :
1435 else
1436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437 break 3
1438 fi
1439 fi
1440 done
1441 done
1442 ;;
1443esac
1444done
1445
1446
1447fi
1448 if test "${ac_cv_path_install+set}" = set; then
1449 INSTALL=$ac_cv_path_install
1450 else
1451 # As a last resort, use the slow shell script. We don't cache a
1452 # path for INSTALL within a source directory, because that will
1453 # break other packages using the cache if that directory is
1454 # removed, or if the path is relative.
1455 INSTALL=$ac_install_sh
1456 fi
1457fi
1458echo "$as_me:$LINENO: result: $INSTALL" >&5
1459echo "${ECHO_T}$INSTALL" >&6
1460
1461# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462# It thinks the first close brace ends the variable substitution.
1463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464
1465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1466
1467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468
1469echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1470echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1471# Just in case
1472sleep 1
1473echo timestamp > conftest.file
1474# Do `set' in a subshell so we don't clobber the current shell's
1475# arguments. Must try -L first in case configure is actually a
1476# symlink; some systems play weird games with the mod time of symlinks
1477# (eg FreeBSD returns the mod time of the symlink's containing
1478# directory).
1479if (
1480 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1481 if test "$*" = "X"; then
1482 # -L didn't work.
1483 set X `ls -t $srcdir/configure conftest.file`
1484 fi
1485 rm -f conftest.file
1486 if test "$*" != "X $srcdir/configure conftest.file" \
1487 && test "$*" != "X conftest.file $srcdir/configure"; then
1488
1489 # If neither matched, then we have a broken ls. This can happen
1490 # if, for instance, CONFIG_SHELL is bash and it inherits a
1491 # broken ls alias from the environment. This has actually
1492 # happened. Such a system could not be considered "sane".
1493 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1494alias in your environment" >&5
1495echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1496alias in your environment" >&2;}
1497 { (exit 1); exit 1; }; }
1498 fi
1499
1500 test "$2" = conftest.file
1501 )
1502then
1503 # Ok.
1504 :
1505else
1506 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1507Check your system clock" >&5
1508echo "$as_me: error: newly created file is older than distributed files!
1509Check your system clock" >&2;}
1510 { (exit 1); exit 1; }; }
1511fi
1512echo "$as_me:$LINENO: result: yes" >&5
1513echo "${ECHO_T}yes" >&6
1514test "$program_prefix" != NONE &&
1515 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1516# Use a double $ so make ignores it.
1517test "$program_suffix" != NONE &&
1518 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1519# Double any \ or $. echo might interpret backslashes.
1520# By default was `s,x,x', remove it if useless.
1521cat <<\_ACEOF >conftest.sed
1522s/[\\$]/&&/g;s/;s,x,x,$//
1523_ACEOF
1524program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1525rm conftest.sed
1526
1527# expand $ac_aux_dir to an absolute path
1528am_aux_dir=`cd $ac_aux_dir && pwd`
1529
1530test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1531# Use eval to expand $SHELL
1532if eval "$MISSING --run true"; then
1533 am_missing_run="$MISSING --run "
1534else
1535 am_missing_run=
1536 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1537echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1538fi
1539
1540if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1541 # We used to keeping the `.' as first argument, in order to
1542 # allow $(mkdir_p) to be used without argument. As in
1543 # $(mkdir_p) $(somedir)
1544 # where $(somedir) is conditionally defined. However this is wrong
1545 # for two reasons:
1546 # 1. if the package is installed by a user who cannot write `.'
1547 # make install will fail,
1548 # 2. the above comment should most certainly read
1549 # $(mkdir_p) $(DESTDIR)$(somedir)
1550 # so it does not work when $(somedir) is undefined and
1551 # $(DESTDIR) is not.
1552 # To support the latter case, we have to write
1553 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1554 # so the `.' trick is pointless.
1555 mkdir_p='mkdir -p --'
1556else
1557 # On NextStep and OpenStep, the `mkdir' command does not
1558 # recognize any option. It will interpret all options as
1559 # directories to create, and then abort because `.' already
1560 # exists.
1561 for d in ./-p ./--version;
1562 do
1563 test -d $d && rmdir $d
1564 done
1565 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1566 if test -f "$ac_aux_dir/mkinstalldirs"; then
1567 mkdir_p='$(mkinstalldirs)'
1568 else
1569 mkdir_p='$(install_sh) -d'
1570 fi
1571fi
1572
1573for ac_prog in gawk mawk nawk awk
1574do
1575 # Extract the first word of "$ac_prog", so it can be a program name with args.
1576set dummy $ac_prog; ac_word=$2
1577echo "$as_me:$LINENO: checking for $ac_word" >&5
1578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579if test "${ac_cv_prog_AWK+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 if test -n "$AWK"; then
1583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1584else
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_AWK="$ac_prog"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 break 2
1595 fi
1596done
1597done
1598
1599fi
1600fi
1601AWK=$ac_cv_prog_AWK
1602if test -n "$AWK"; then
1603 echo "$as_me:$LINENO: result: $AWK" >&5
1604echo "${ECHO_T}$AWK" >&6
1605else
1606 echo "$as_me:$LINENO: result: no" >&5
1607echo "${ECHO_T}no" >&6
1608fi
1609
1610 test -n "$AWK" && break
1611done
1612
1613echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1614echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1615set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1616if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 cat >conftest.make <<\_ACEOF
1620all:
1621 @echo 'ac_maketemp="$(MAKE)"'
1622_ACEOF
1623# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1624eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1625if test -n "$ac_maketemp"; then
1626 eval ac_cv_prog_make_${ac_make}_set=yes
1627else
1628 eval ac_cv_prog_make_${ac_make}_set=no
1629fi
1630rm -f conftest.make
1631fi
1632if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1633 echo "$as_me:$LINENO: result: yes" >&5
1634echo "${ECHO_T}yes" >&6
1635 SET_MAKE=
1636else
1637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639 SET_MAKE="MAKE=${MAKE-make}"
1640fi
1641
1642rm -rf .tst 2>/dev/null
1643mkdir .tst 2>/dev/null
1644if test -d .tst; then
1645 am__leading_dot=.
1646else
1647 am__leading_dot=_
1648fi
1649rmdir .tst 2>/dev/null
1650
1651# test to see if srcdir already configured
1652if test "`cd $srcdir && pwd`" != "`pwd`" &&
1653 test -f $srcdir/config.status; then
1654 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1655echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1656 { (exit 1); exit 1; }; }
1657fi
1658
1659# test whether we have cygpath
1660if test -z "$CYGPATH_W"; then
1661 if (cygpath --version) >/dev/null 2>/dev/null; then
1662 CYGPATH_W='cygpath -w'
1663 else
1664 CYGPATH_W=echo
1665 fi
1666fi
1667
1668
1669# Define the identity of the package.
1670 PACKAGE='util-linux'
ca3ea756 1671 VERSION='2.13-pre4'
48d7b13a
KZ
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE "$PACKAGE"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define VERSION "$VERSION"
1681_ACEOF
1682
1683# Some tools Automake needs.
1684
1685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1686
1687
1688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1689
1690
1691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1692
1693
1694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1695
1696
1697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1698
1699install_sh=${install_sh-"$am_aux_dir/install-sh"}
1700
1701# Installed binaries are usually stripped using `strip' when the user
1702# run `make install-strip'. However `strip' might not be the right
1703# tool to use in cross-compilation environments, therefore Automake
1704# will honor the `STRIP' environment variable to overrule this program.
1705if test "$cross_compiling" != no; then
1706 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1708set dummy ${ac_tool_prefix}strip; ac_word=$2
1709echo "$as_me:$LINENO: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_STRIP+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$STRIP"; then
1715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1716else
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728done
1729done
1730
1731fi
1732fi
1733STRIP=$ac_cv_prog_STRIP
1734if test -n "$STRIP"; then
1735 echo "$as_me:$LINENO: result: $STRIP" >&5
1736echo "${ECHO_T}$STRIP" >&6
1737else
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
1740fi
1741
1742fi
1743if test -z "$ac_cv_prog_STRIP"; then
1744 ac_ct_STRIP=$STRIP
1745 # Extract the first word of "strip", so it can be a program name with args.
1746set dummy strip; ac_word=$2
1747echo "$as_me:$LINENO: checking for $ac_word" >&5
1748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752 if test -n "$ac_ct_STRIP"; then
1753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1754else
1755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756for as_dir in $PATH
1757do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_ac_ct_STRIP="strip"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 break 2
1765 fi
1766done
1767done
1768
1769 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1770fi
1771fi
1772ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1773if test -n "$ac_ct_STRIP"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1775echo "${ECHO_T}$ac_ct_STRIP" >&6
1776else
1777 echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779fi
1780
1781 STRIP=$ac_ct_STRIP
1782else
1783 STRIP="$ac_cv_prog_STRIP"
1784fi
1785
1786fi
1787INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1788
1789# We need awk for the "check" target. The system "awk" is bad on
1790# some platforms.
1791# Always define AMTAR for backward compatibility.
1792
1793AMTAR=${AMTAR-"${am_missing_run}tar"}
1794
1795am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
baf39af1
KZ
1807if test -n "$ac_tool_prefix"; then
1808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_RANLIB+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$RANLIB"; then
1816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
1830done
48d7b13a 1831
baf39af1
KZ
1832fi
1833fi
1834RANLIB=$ac_cv_prog_RANLIB
1835if test -n "$RANLIB"; then
1836 echo "$as_me:$LINENO: result: $RANLIB" >&5
1837echo "${ECHO_T}$RANLIB" >&6
48d7b13a 1838else
baf39af1
KZ
1839 echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
48d7b13a 1842
baf39af1
KZ
1843fi
1844if test -z "$ac_cv_prog_RANLIB"; then
1845 ac_ct_RANLIB=$RANLIB
1846 # Extract the first word of "ranlib", so it can be a program name with args.
1847set dummy ranlib; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 if test -n "$ac_ct_RANLIB"; then
1854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_ac_ct_RANLIB="ranlib"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867done
1868done
48d7b13a 1869
baf39af1
KZ
1870 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1871fi
1872fi
1873ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1874if test -n "$ac_ct_RANLIB"; then
1875 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1876echo "${ECHO_T}$ac_ct_RANLIB" >&6
48d7b13a 1877else
baf39af1
KZ
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
48d7b13a 1881
baf39af1 1882 RANLIB=$ac_ct_RANLIB
48d7b13a 1883else
baf39af1
KZ
1884 RANLIB="$ac_cv_prog_RANLIB"
1885fi
48d7b13a 1886
48d7b13a 1887
baf39af1
KZ
1888# Extract the first word of "perl", so it can be a program name with args.
1889set dummy perl; ac_word=$2
1890echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892if test "${ac_cv_path_PERL+set}" = set; then
48d7b13a
KZ
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
baf39af1
KZ
1895 case $PERL in
1896 [\\/]* | ?:[\\/]*)
1897 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1898 ;;
1899 *)
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
48d7b13a 1913
baf39af1
KZ
1914 ;;
1915esac
48d7b13a 1916fi
baf39af1 1917PERL=$ac_cv_path_PERL
48d7b13a 1918
baf39af1
KZ
1919if test -n "$PERL"; then
1920 echo "$as_me:$LINENO: result: $PERL" >&5
1921echo "${ECHO_T}$PERL" >&6
48d7b13a 1922else
baf39af1
KZ
1923 echo "$as_me:$LINENO: result: no" >&5
1924echo "${ECHO_T}no" >&6
48d7b13a 1925fi
48d7b13a
KZ
1926
1927
1928DEPDIR="${am__leading_dot}deps"
1929
1930 ac_config_commands="$ac_config_commands depfiles"
1931
1932
1933am_make=${MAKE-make}
1934cat > confinc << 'END'
1935am__doit:
1936 @echo done
1937.PHONY: am__doit
1938END
1939# If we don't find an include directive, just comment out the code.
1940echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1941echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1942am__include="#"
1943am__quote=
1944_am_result=none
1945# First try GNU make style include.
1946echo "include confinc" > confmf
1947# We grep out `Entering directory' and `Leaving directory'
1948# messages which can occur if `w' ends up in MAKEFLAGS.
1949# In particular we don't look at `^make:' because GNU make might
1950# be invoked under some other name (usually "gmake"), in which
1951# case it prints its new name instead of `make'.
1952if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1953 am__include=include
1954 am__quote=
1955 _am_result=GNU
1956fi
1957# Now try BSD make style include.
1958if test "$am__include" = "#"; then
1959 echo '.include "confinc"' > confmf
1960 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1961 am__include=.include
1962 am__quote="\""
1963 _am_result=BSD
1964 fi
1965fi
1966
1967
1968echo "$as_me:$LINENO: result: $_am_result" >&5
1969echo "${ECHO_T}$_am_result" >&6
1970rm -f confinc confmf
1971
1972# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1973if test "${enable_dependency_tracking+set}" = set; then
1974 enableval="$enable_dependency_tracking"
1975
1976fi;
1977if test "x$enable_dependency_tracking" != xno; then
1978 am_depcomp="$ac_aux_dir/depcomp"
1979 AMDEPBACKSLASH='\'
1980fi
1981
1982
1983if test "x$enable_dependency_tracking" != xno; then
1984 AMDEP_TRUE=
1985 AMDEP_FALSE='#'
1986else
1987 AMDEP_TRUE='#'
1988 AMDEP_FALSE=
1989fi
1990
1991
1992
1993ac_ext=c
1994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998if test -n "$ac_tool_prefix"; then
1999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001echo "$as_me:$LINENO: checking for $ac_word" >&5
2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2008else
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2019 fi
2020done
2021done
2022
2023fi
2024fi
2025CC=$ac_cv_prog_CC
2026if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028echo "${ECHO_T}$CC" >&6
2029else
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034fi
2035if test -z "$ac_cv_prog_CC"; then
2036 ac_ct_CC=$CC
2037 # Extract the first word of "gcc", so it can be a program name with args.
2038set dummy gcc; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_ac_ct_CC="gcc"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058done
2059done
2060
2061fi
2062fi
2063ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064if test -n "$ac_ct_CC"; then
2065 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066echo "${ECHO_T}$ac_ct_CC" >&6
2067else
2068 echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
2070fi
2071
2072 CC=$ac_ct_CC
2073else
2074 CC="$ac_cv_prog_CC"
2075fi
2076
2077if test -z "$CC"; then
2078 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080set dummy ${ac_tool_prefix}cc; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="${ac_tool_prefix}cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
2103fi
2104fi
2105CC=$ac_cv_prog_CC
2106if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108echo "${ECHO_T}$CC" >&6
2109else
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114fi
2115if test -z "$ac_cv_prog_CC"; then
2116 ac_ct_CC=$CC
2117 # Extract the first word of "cc", so it can be a program name with args.
2118set dummy cc; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_ac_ct_CC="cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148 echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152 CC=$ac_ct_CC
2153else
2154 CC="$ac_cv_prog_CC"
2155fi
2156
2157fi
2158if test -z "$CC"; then
2159 # Extract the first word of "cc", so it can be a program name with args.
2160set dummy cc; ac_word=$2
2161echo "$as_me:$LINENO: checking for $ac_word" >&5
2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2168else
2169 ac_prog_rejected=no
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178 ac_prog_rejected=yes
2179 continue
2180 fi
2181 ac_cv_prog_CC="cc"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2184 fi
2185done
2186done
2187
2188if test $ac_prog_rejected = yes; then
2189 # We found a bogon in the path, so make sure we never use it.
2190 set dummy $ac_cv_prog_CC
2191 shift
2192 if test $# != 0; then
2193 # We chose a different compiler from the bogus one.
2194 # However, it has the same basename, so the bogon will be chosen
2195 # first if we set CC to just the basename; use the full file name.
2196 shift
2197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2198 fi
2199fi
2200fi
2201fi
2202CC=$ac_cv_prog_CC
2203if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205echo "${ECHO_T}$CC" >&6
2206else
2207 echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6
2209fi
2210
2211fi
2212if test -z "$CC"; then
2213 if test -n "$ac_tool_prefix"; then
2214 for ac_prog in cl
2215 do
2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218echo "$as_me:$LINENO: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2236 fi
2237done
2238done
2239
2240fi
2241fi
2242CC=$ac_cv_prog_CC
2243if test -n "$CC"; then
2244 echo "$as_me:$LINENO: result: $CC" >&5
2245echo "${ECHO_T}$CC" >&6
2246else
2247 echo "$as_me:$LINENO: result: no" >&5
2248echo "${ECHO_T}no" >&6
2249fi
2250
2251 test -n "$CC" && break
2252 done
2253fi
2254if test -z "$CC"; then
2255 ac_ct_CC=$CC
2256 for ac_prog in cl
2257do
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259set dummy $ac_prog; ac_word=$2
2260echo "$as_me:$LINENO: checking for $ac_word" >&5
2261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_ac_ct_CC="$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279done
2280done
2281
2282fi
2283fi
2284ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285if test -n "$ac_ct_CC"; then
2286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287echo "${ECHO_T}$ac_ct_CC" >&6
2288else
2289 echo "$as_me:$LINENO: result: no" >&5
2290echo "${ECHO_T}no" >&6
2291fi
2292
2293 test -n "$ac_ct_CC" && break
2294done
2295
2296 CC=$ac_ct_CC
2297fi
2298
2299fi
2300
2301
2302test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: no acceptable C compiler found in \$PATH
2305See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307
2308# Provide some information about the compiler.
2309echo "$as_me:$LINENO:" \
2310 "checking for C compiler version" >&5
2311ac_compiler=`set X $ac_compile; echo $2`
2312{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2313 (eval $ac_compiler --version </dev/null >&5) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2318 (eval $ac_compiler -v </dev/null >&5) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }
2322{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2323 (eval $ac_compiler -V </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327
2328cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */
2334
2335int
2336main ()
2337{
2338
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343ac_clean_files_save=$ac_clean_files
2344ac_clean_files="$ac_clean_files a.out a.exe b.out"
2345# Try to create an executable without -o first, disregard a.out.
2346# It will help us diagnose broken compilers, and finding out an intuition
2347# of exeext.
2348echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2349echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2350ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2351if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2352 (eval $ac_link_default) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # Find the output, starting from the most likely. This scheme is
2357# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2358# resort.
2359
2360# Be careful to initialize this variable, since it used to be cached.
2361# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2362ac_cv_exeext=
2363# b.out is created by i960 compilers.
2364for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2365do
2366 test -f "$ac_file" || continue
2367 case $ac_file in
2368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2369 ;;
2370 conftest.$ac_ext )
2371 # This is the source file.
2372 ;;
2373 [ab].out )
2374 # We found the default executable, but exeext='' is most
2375 # certainly right.
2376 break;;
2377 *.* )
2378 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 # FIXME: I believe we export ac_cv_exeext for Libtool,
2380 # but it would be cool to find out if it's true. Does anybody
2381 # maintain Libtool? --akim.
2382 export ac_cv_exeext
2383 break;;
2384 * )
2385 break;;
2386 esac
2387done
2388else
2389 echo "$as_me: failed program was:" >&5
2390sed 's/^/| /' conftest.$ac_ext >&5
2391
2392{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2393See \`config.log' for more details." >&5
2394echo "$as_me: error: C compiler cannot create executables
2395See \`config.log' for more details." >&2;}
2396 { (exit 77); exit 77; }; }
2397fi
2398
2399ac_exeext=$ac_cv_exeext
2400echo "$as_me:$LINENO: result: $ac_file" >&5
2401echo "${ECHO_T}$ac_file" >&6
2402
2403# Check the compiler produces executables we can run. If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2406echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2407# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2408# If not cross compiling, check that we can run a simple program.
2409if test "$cross_compiling" != yes; then
2410 if { ac_try='./$ac_file'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2416 cross_compiling=no
2417 else
2418 if test "$cross_compiling" = maybe; then
2419 cross_compiling=yes
2420 else
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422If you meant to cross compile, use \`--host'.
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot run C compiled programs.
2425If you meant to cross compile, use \`--host'.
2426See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }
2428 fi
2429 fi
2430fi
2431echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433
2434rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435ac_clean_files=$ac_clean_files_save
2436# Check the compiler produces executables we can run. If not, either
2437# the compiler is broken, or we cross compile.
2438echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2440echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441echo "${ECHO_T}$cross_compiling" >&6
2442
2443echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2452# work properly (i.e., refer to `conftest.exe'), while it won't with
2453# `rm'.
2454for ac_file in conftest.exe conftest conftest.*; do
2455 test -f "$ac_file" || continue
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 export ac_cv_exeext
2460 break;;
2461 * ) break;;
2462 esac
2463done
2464else
2465 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2466See \`config.log' for more details." >&5
2467echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2468See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2470fi
2471
2472rm -f conftest$ac_cv_exeext
2473echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2474echo "${ECHO_T}$ac_cv_exeext" >&6
2475
2476rm -f conftest.$ac_ext
2477EXEEXT=$ac_cv_exeext
2478ac_exeext=$EXEEXT
2479echo "$as_me:$LINENO: checking for suffix of object files" >&5
2480echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2481if test "${ac_cv_objext+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490
2491int
2492main ()
2493{
2494
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499rm -f conftest.o conftest.obj
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2502 ac_status=$?
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2506 case $ac_file in
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2509 break;;
2510 esac
2511done
2512else
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2517See \`config.log' for more details." >&5
2518echo "$as_me: error: cannot compute suffix of object files: cannot compile
2519See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2521fi
2522
2523rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524fi
2525echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526echo "${ECHO_T}$ac_cv_objext" >&6
2527OBJEXT=$ac_cv_objext
2528ac_objext=$OBJEXT
2529echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2531if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
2540
2541int
2542main ()
2543{
2544#ifndef __GNUC__
2545 choke me
2546#endif
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 ac_compiler_gnu=yes
2574else
2575 echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578ac_compiler_gnu=no
2579fi
2580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583fi
2584echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2586GCC=`test $ac_compiler_gnu = yes && echo yes`
2587ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS
2589CFLAGS="-g"
2590echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2592if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv_prog_cc_g=yes
2632else
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
2636ac_cv_prog_cc_g=no
2637fi
2638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2642if test "$ac_test_CFLAGS" = set; then
2643 CFLAGS=$ac_save_CFLAGS
2644elif test $ac_cv_prog_cc_g = yes; then
2645 if test "$GCC" = yes; then
2646 CFLAGS="-g -O2"
2647 else
2648 CFLAGS="-g"
2649 fi
2650else
2651 if test "$GCC" = yes; then
2652 CFLAGS="-O2"
2653 else
2654 CFLAGS=
2655 fi
2656fi
2657echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2658echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2659if test "${ac_cv_prog_cc_stdc+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 ac_cv_prog_cc_stdc=no
2663ac_save_CC=$CC
2664cat >conftest.$ac_ext <<_ACEOF
2665/* confdefs.h. */
2666_ACEOF
2667cat confdefs.h >>conftest.$ac_ext
2668cat >>conftest.$ac_ext <<_ACEOF
2669/* end confdefs.h. */
2670#include <stdarg.h>
2671#include <stdio.h>
2672#include <sys/types.h>
2673#include <sys/stat.h>
2674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675struct buf { int x; };
2676FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677static char *e (p, i)
2678 char **p;
2679 int i;
2680{
2681 return p[i];
2682}
2683static char *f (char * (*g) (char **, int), char **p, ...)
2684{
2685 char *s;
2686 va_list v;
2687 va_start (v,p);
2688 s = g (p, va_arg (v,int));
2689 va_end (v);
2690 return s;
2691}
2692
2693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2694 function prototypes and stuff, but not '\xHH' hex character constants.
2695 These don't provoke an error unfortunately, instead are silently treated
2696 as 'x'. The following induces an error, until -std1 is added to get
2697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2698 array size at least. It's necessary to write '\x00'==0 to get something
2699 that's true only with -std1. */
2700int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2701
2702int test (int i, double x);
2703struct s1 {int (*f) (int a);};
2704struct s2 {int (*f) (double a);};
2705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2706int argc;
2707char **argv;
2708int
2709main ()
2710{
2711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716# Don't try gcc -ansi; that turns off useful extensions and
2717# breaks some systems' header files.
2718# AIX -qlanglvl=ansi
2719# Ultrix and OSF/1 -std1
2720# HP-UX 10.20 and later -Ae
2721# HP-UX older versions -Aa -D_HPUX_SOURCE
2722# SVR4 -Xc -D__EXTENSIONS__
2723for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2724do
2725 CC="$ac_save_CC $ac_arg"
2726 rm -f conftest.$ac_objext
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>conftest.er1
2729 ac_status=$?
2730 grep -v '^ *+' conftest.er1 >conftest.err
2731 rm -f conftest.er1
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_prog_cc_stdc=$ac_arg
2748break
2749else
2750 echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext
2755done
2756rm -f conftest.$ac_ext conftest.$ac_objext
2757CC=$ac_save_CC
2758
2759fi
2760
2761case "x$ac_cv_prog_cc_stdc" in
2762 x|xno)
2763 echo "$as_me:$LINENO: result: none needed" >&5
2764echo "${ECHO_T}none needed" >&6 ;;
2765 *)
2766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2767echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2768 CC="$CC $ac_cv_prog_cc_stdc" ;;
2769esac
2770
2771# Some people use a C++ compiler to compile C. Since we use `exit',
2772# in C++ we need to declare it. In case someone uses the same compiler
2773# for both compiling C and C++ we need to have the C++ compiler decide
2774# the declaration of exit, since it's the most demanding environment.
2775cat >conftest.$ac_ext <<_ACEOF
2776#ifndef __cplusplus
2777 choke me
2778#endif
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 for ac_declaration in \
2802 '' \
2803 'extern "C" void std::exit (int) throw (); using std::exit;' \
2804 'extern "C" void std::exit (int); using std::exit;' \
2805 'extern "C" void exit (int) throw ();' \
2806 'extern "C" void exit (int);' \
2807 'void exit (int);'
2808do
2809 cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h. */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
2815$ac_declaration
2816#include <stdlib.h>
2817int
2818main ()
2819{
2820exit (42);
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 :
2847else
2848 echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851continue
2852fi
2853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 cat >conftest.$ac_ext <<_ACEOF
2855/* confdefs.h. */
2856_ACEOF
2857cat confdefs.h >>conftest.$ac_ext
2858cat >>conftest.$ac_ext <<_ACEOF
2859/* end confdefs.h. */
2860$ac_declaration
2861int
2862main ()
2863{
2864exit (42);
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext
2870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 break
2891else
2892 echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895fi
2896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897done
2898rm -f conftest*
2899if test -n "$ac_declaration"; then
2900 echo '#ifdef __cplusplus' >>confdefs.h
2901 echo $ac_declaration >>confdefs.h
2902 echo '#endif' >>confdefs.h
2903fi
2904
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917depcc="$CC" am_compiler_list=
2918
2919echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2920echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2921if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2925 # We make a subdir and do the tests there. Otherwise we can end up
2926 # making bogus files that we don't know about and never remove. For
2927 # instance it was reported that on HP-UX the gcc test will end up
2928 # making a dummy file named `D' -- because `-MD' means `put the output
2929 # in D'.
2930 mkdir conftest.dir
2931 # Copy depcomp to subdir because otherwise we won't find it if we're
2932 # using a relative directory.
2933 cp "$am_depcomp" conftest.dir
2934 cd conftest.dir
2935 # We will build objects and dependencies in a subdirectory because
2936 # it helps to detect inapplicable dependency modes. For instance
2937 # both Tru64's cc and ICC support -MD to output dependencies as a
2938 # side effect of compilation, but ICC will put the dependencies in
2939 # the current directory while Tru64 will put them in the object
2940 # directory.
2941 mkdir sub
2942
2943 am_cv_CC_dependencies_compiler_type=none
2944 if test "$am_compiler_list" = ""; then
2945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2946 fi
2947 for depmode in $am_compiler_list; do
2948 # Setup a source with many dependencies, because some compilers
2949 # like to wrap large dependency lists on column 80 (with \), and
2950 # we should not choose a depcomp mode which is confused by this.
2951 #
2952 # We need to recreate these files for each test, as the compiler may
2953 # overwrite some of them when testing with obscure command lines.
2954 # This happens at least with the AIX C compiler.
2955 : > sub/conftest.c
2956 for i in 1 2 3 4 5 6; do
2957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2959 # Solaris 8's {/usr,}/bin/sh.
2960 touch sub/conftst$i.h
2961 done
2962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2963
2964 case $depmode in
2965 nosideeffect)
2966 # after this tag, mechanisms are not by side-effect, so they'll
2967 # only be used when explicitly requested
2968 if test "x$enable_dependency_tracking" = xyes; then
2969 continue
2970 else
2971 break
2972 fi
2973 ;;
2974 none) break ;;
2975 esac
2976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2977 # mode. It turns out that the SunPro C++ compiler does not properly
2978 # handle `-M -o', and we need to detect this.
2979 if depmode=$depmode \
2980 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2982 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2983 >/dev/null 2>conftest.err &&
2984 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2985 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2986 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2987 # icc doesn't choke on unknown options, it will just issue warnings
2988 # or remarks (even with -Werror). So we grep stderr for any message
2989 # that says an option was ignored or not supported.
2990 # When given -MP, icc 7.0 and 7.1 complain thusly:
2991 # icc: Command line warning: ignoring option '-M'; no argument required
2992 # The diagnosis changed in icc 8.0:
2993 # icc: Command line remark: option '-MP' not supported
2994 if (grep 'ignoring option' conftest.err ||
2995 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2996 am_cv_CC_dependencies_compiler_type=$depmode
2997 break
2998 fi
2999 fi
3000 done
3001
3002 cd ..
3003 rm -rf conftest.dir
3004else
3005 am_cv_CC_dependencies_compiler_type=none
3006fi
3007
3008fi
3009echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3010echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3011CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3012
3013
3014
3015if
3016 test "x$enable_dependency_tracking" != xno \
3017 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3018 am__fastdepCC_TRUE=
3019 am__fastdepCC_FALSE='#'
3020else
3021 am__fastdepCC_TRUE='#'
3022 am__fastdepCC_FALSE=
3023fi
3024
3025
48d7b13a 3026
baf39af1
KZ
3027# Check whether --enable-largefile or --disable-largefile was given.
3028if test "${enable_largefile+set}" = set; then
3029 enableval="$enable_largefile"
48d7b13a 3030
baf39af1
KZ
3031fi;
3032if test "$enable_largefile" != no; then
48d7b13a 3033
baf39af1
KZ
3034 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3035echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3036if test "${ac_cv_sys_largefile_CC+set}" = set; then
48d7b13a
KZ
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038else
baf39af1
KZ
3039 ac_cv_sys_largefile_CC=no
3040 if test "$GCC" != yes; then
3041 ac_save_CC=$CC
3042 while :; do
3043 # IRIX 6.2 and later do not support large files by default,
3044 # so use the C compiler's -n32 option if that helps.
3045 cat >conftest.$ac_ext <<_ACEOF
48d7b13a
KZ
3046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
baf39af1
KZ
3051#include <sys/types.h>
3052 /* Check that off_t can represent 2**63 - 1 correctly.
3053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3054 since some C++ compilers masquerading as C compilers
3055 incorrectly reject 9223372036854775807. */
3056#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3058 && LARGE_OFF_T % 2147483647 == 1)
3059 ? 1 : -1];
48d7b13a
KZ
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
baf39af1
KZ
3068 rm -f conftest.$ac_objext
3069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
48d7b13a
KZ
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
baf39af1 3083 { ac_try='test -s conftest.$ac_objext'
48d7b13a
KZ
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
baf39af1 3089 break
48d7b13a
KZ
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
48d7b13a 3094fi
baf39af1
KZ
3095rm -f conftest.err conftest.$ac_objext
3096 CC="$CC -n32"
3097 rm -f conftest.$ac_objext
3098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>conftest.er1
48d7b13a
KZ
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
48d7b13a 3109 ac_status=$?
48d7b13a 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_sys_largefile_CC=' -n32'; break
48d7b13a
KZ
3119else
3120 echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
48d7b13a 3123fi
baf39af1
KZ
3124rm -f conftest.err conftest.$ac_objext
3125 break
3126 done
3127 CC=$ac_save_CC
3128 rm -f conftest.$ac_ext
3129 fi
48d7b13a 3130fi
baf39af1
KZ
3131echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3132echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3133 if test "$ac_cv_sys_largefile_CC" != no; then
3134 CC=$CC$ac_cv_sys_largefile_CC
3135 fi
48d7b13a 3136
baf39af1
KZ
3137 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3138echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3139if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
48d7b13a 3141else
baf39af1
KZ
3142 while :; do
3143 ac_cv_sys_file_offset_bits=no
48d7b13a
KZ
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
baf39af1
KZ
3150#include <sys/types.h>
3151 /* Check that off_t can represent 2**63 - 1 correctly.
3152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3153 since some C++ compilers masquerading as C compilers
3154 incorrectly reject 9223372036854775807. */
3155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3157 && LARGE_OFF_T % 2147483647 == 1)
3158 ? 1 : -1];
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
48d7b13a 3166_ACEOF
baf39af1
KZ
3167rm -f conftest.$ac_objext
3168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
48d7b13a
KZ
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
48d7b13a
KZ
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3187 (exit $ac_status); }; }; then
3188 break
48d7b13a 3189else
baf39af1
KZ
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
48d7b13a 3192
48d7b13a 3193fi
baf39af1
KZ
3194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201#define _FILE_OFFSET_BITS 64
3202#include <sys/types.h>
3203 /* Check that off_t can represent 2**63 - 1 correctly.
3204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3205 since some C++ compilers masquerading as C compilers
3206 incorrectly reject 9223372036854775807. */
3207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3209 && LARGE_OFF_T % 2147483647 == 1)
3210 ? 1 : -1];
3211int
3212main ()
3213{
48d7b13a 3214
baf39af1
KZ
3215 ;
3216 return 0;
3217}
3218_ACEOF
3219rm -f conftest.$ac_objext
3220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 ac_cv_sys_file_offset_bits=64; break
48d7b13a 3241else
baf39af1
KZ
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
48d7b13a 3244
baf39af1
KZ
3245fi
3246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 break
3248done
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3251echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3252if test "$ac_cv_sys_file_offset_bits" != no; then
48d7b13a 3253
baf39af1
KZ
3254cat >>confdefs.h <<_ACEOF
3255#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3256_ACEOF
48d7b13a 3257
baf39af1
KZ
3258fi
3259rm -f conftest*
3260 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3261echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3262if test "${ac_cv_sys_large_files+set}" = set; then
48d7b13a
KZ
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
baf39af1
KZ
3265 while :; do
3266 ac_cv_sys_large_files=no
3267 cat >conftest.$ac_ext <<_ACEOF
48d7b13a
KZ
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <sys/types.h>
3274 /* Check that off_t can represent 2**63 - 1 correctly.
3275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3276 since some C++ compilers masquerading as C compilers
3277 incorrectly reject 9223372036854775807. */
3278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3280 && LARGE_OFF_T % 2147483647 == 1)
3281 ? 1 : -1];
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
baf39af1 3290rm -f conftest.$ac_objext
48d7b13a
KZ
3291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 break
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316fi
baf39af1
KZ
3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324#define _LARGE_FILES 1
3325#include <sys/types.h>
3326 /* Check that off_t can represent 2**63 - 1 correctly.
3327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3328 since some C++ compilers masquerading as C compilers
3329 incorrectly reject 9223372036854775807. */
3330#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3332 && LARGE_OFF_T % 2147483647 == 1)
3333 ? 1 : -1];
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.$ac_objext
48d7b13a
KZ
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_sys_large_files=1; break
3364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368fi
3369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370 break
3371done
3372fi
3373echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3374echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3375if test "$ac_cv_sys_large_files" != no; then
3376
3377cat >>confdefs.h <<_ACEOF
3378#define _LARGE_FILES $ac_cv_sys_large_files
3379_ACEOF
3380
3381fi
3382rm -f conftest*
3383fi
3384
3385
3386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#ifdef __STDC__
3420# include <limits.h>
3421#else
3422# include <assert.h>
3423#endif
3424 Syntax error
3425_ACEOF
3426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null; then
3434 if test -s conftest.err; then
3435 ac_cpp_err=$ac_c_preproc_warn_flag
3436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 else
3438 ac_cpp_err=
3439 fi
3440else
3441 ac_cpp_err=yes
3442fi
3443if test -z "$ac_cpp_err"; then
3444 :
3445else
3446 echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 # Broken: fails on valid input.
3450continue
3451fi
3452rm -f conftest.err conftest.$ac_ext
3453
3454 # OK, works on sane cases. Now check whether non-existent headers
3455 # can be detected and how.
3456 cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h. */
3462#include <ac_nonexistent.h>
3463_ACEOF
3464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475 else
3476 ac_cpp_err=
3477 fi
3478else
3479 ac_cpp_err=yes
3480fi
3481if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3483continue
48d7b13a
KZ
3484else
3485 echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
baf39af1
KZ
3488 # Passes both tests.
3489ac_preproc_ok=:
3490break
48d7b13a 3491fi
baf39af1
KZ
3492rm -f conftest.err conftest.$ac_ext
3493
3494done
3495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496rm -f conftest.err conftest.$ac_ext
3497if $ac_preproc_ok; then
3498 break
48d7b13a 3499fi
48d7b13a 3500
baf39af1
KZ
3501 done
3502 ac_cv_prog_CPP=$CPP
3503
3504fi
3505 CPP=$ac_cv_prog_CPP
48d7b13a 3506else
baf39af1
KZ
3507 ac_cv_prog_CPP=$CPP
3508fi
3509echo "$as_me:$LINENO: result: $CPP" >&5
3510echo "${ECHO_T}$CPP" >&6
3511ac_preproc_ok=false
3512for ac_c_preproc_warn_flag in '' yes
3513do
3514 # Use a header file that comes with gcc, so configuring glibc
3515 # with a fresh cross-compiler works.
3516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3517 # <limits.h> exists even on freestanding compilers.
3518 # On the NeXT, cc -E runs the code through the compiler's parser,
3519 # not just through cpp. "Syntax error" is here to catch this case.
48d7b13a
KZ
3520 cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
baf39af1
KZ
3526#ifdef __STDC__
3527# include <limits.h>
3528#else
3529# include <assert.h>
3530#endif
3531 Syntax error
48d7b13a 3532_ACEOF
baf39af1
KZ
3533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48d7b13a
KZ
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3540 (exit $ac_status); } >/dev/null; then
3541 if test -s conftest.err; then
3542 ac_cpp_err=$ac_c_preproc_warn_flag
3543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3544 else
3545 ac_cpp_err=
3546 fi
3547else
3548 ac_cpp_err=yes
3549fi
3550if test -z "$ac_cpp_err"; then
3551 :
48d7b13a
KZ
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
baf39af1
KZ
3556 # Broken: fails on valid input.
3557continue
48d7b13a 3558fi
baf39af1
KZ
3559rm -f conftest.err conftest.$ac_ext
3560
3561 # OK, works on sane cases. Now check whether non-existent headers
3562 # can be detected and how.
48d7b13a
KZ
3563 cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
baf39af1 3569#include <ac_nonexistent.h>
48d7b13a 3570_ACEOF
baf39af1
KZ
3571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48d7b13a
KZ
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
baf39af1
KZ
3578 (exit $ac_status); } >/dev/null; then
3579 if test -s conftest.err; then
3580 ac_cpp_err=$ac_c_preproc_warn_flag
3581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 else
3583 ac_cpp_err=
3584 fi
3585else
3586 ac_cpp_err=yes
3587fi
3588if test -z "$ac_cpp_err"; then
3589 # Broken: success on invalid input.
3590continue
48d7b13a
KZ
3591else
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
baf39af1
KZ
3595 # Passes both tests.
3596ac_preproc_ok=:
3597break
48d7b13a 3598fi
baf39af1
KZ
3599rm -f conftest.err conftest.$ac_ext
3600
48d7b13a 3601done
baf39af1
KZ
3602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603rm -f conftest.err conftest.$ac_ext
3604if $ac_preproc_ok; then
3605 :
3606else
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details." >&5
3609echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
48d7b13a 3612fi
48d7b13a 3613
baf39af1
KZ
3614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
48d7b13a 3619
baf39af1
KZ
3620
3621echo "$as_me:$LINENO: checking for egrep" >&5
3622echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3623if test "${ac_cv_prog_egrep+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3627 then ac_cv_prog_egrep='grep -E'
3628 else ac_cv_prog_egrep='egrep'
3629 fi
48d7b13a 3630fi
baf39af1
KZ
3631echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3632echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3633 EGREP=$ac_cv_prog_egrep
3634
3635
3636echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3637echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3638if test "${ac_cv_header_stdc+set}" = set; then
48d7b13a
KZ
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
48d7b13a
KZ
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
baf39af1
KZ
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647#include <stdlib.h>
3648#include <stdarg.h>
3649#include <string.h>
3650#include <float.h>
3651
48d7b13a
KZ
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
baf39af1 3681 ac_cv_header_stdc=yes
48d7b13a
KZ
3682else
3683 echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
baf39af1 3686ac_cv_header_stdc=no
48d7b13a
KZ
3687fi
3688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
baf39af1
KZ
3689
3690if test $ac_cv_header_stdc = yes; then
3691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48d7b13a
KZ
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
baf39af1
KZ
3698#include <string.h>
3699
3700_ACEOF
3701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3702 $EGREP "memchr" >/dev/null 2>&1; then
3703 :
3704else
3705 ac_cv_header_stdc=no
3706fi
3707rm -f conftest*
3708
3709fi
3710
3711if test $ac_cv_header_stdc = yes; then
3712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719#include <stdlib.h>
3720
3721_ACEOF
3722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3723 $EGREP "free" >/dev/null 2>&1; then
3724 :
3725else
3726 ac_cv_header_stdc=no
3727fi
3728rm -f conftest*
3729
3730fi
3731
3732if test $ac_cv_header_stdc = yes; then
3733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3734 if test "$cross_compiling" = yes; then
3735 :
3736else
3737 cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h. */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h. */
3743#include <ctype.h>
3744#if ((' ' & 0x0FF) == 0x020)
3745# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3746# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3747#else
3748# define ISLOWER(c) \
3749 (('a' <= (c) && (c) <= 'i') \
3750 || ('j' <= (c) && (c) <= 'r') \
3751 || ('s' <= (c) && (c) <= 'z'))
3752# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3753#endif
3754
3755#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48d7b13a
KZ
3756int
3757main ()
3758{
baf39af1
KZ
3759 int i;
3760 for (i = 0; i < 256; i++)
3761 if (XOR (islower (i), ISLOWER (i))
3762 || toupper (i) != TOUPPER (i))
3763 exit(2);
3764 exit (0);
48d7b13a
KZ
3765}
3766_ACEOF
baf39af1
KZ
3767rm -f conftest$ac_exeext
3768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3769 (eval $ac_link) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 :
3779else
3780 echo "$as_me: program exited with status $ac_status" >&5
3781echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784( exit $ac_status )
3785ac_cv_header_stdc=no
3786fi
3787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3788fi
3789fi
3790fi
3791echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3792echo "${ECHO_T}$ac_cv_header_stdc" >&6
3793if test $ac_cv_header_stdc = yes; then
3794
3795cat >>confdefs.h <<\_ACEOF
3796#define STDC_HEADERS 1
3797_ACEOF
3798
3799fi
3800
3801# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3812 inttypes.h stdint.h unistd.h
3813do
3814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3815echo "$as_me:$LINENO: checking for $ac_header" >&5
3816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3817if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 cat >conftest.$ac_ext <<_ACEOF
3821/* confdefs.h. */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h. */
3826$ac_includes_default
3827
3828#include <$ac_header>
3829_ACEOF
48d7b13a
KZ
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
baf39af1 3851 eval "$as_ac_Header=yes"
48d7b13a
KZ
3852else
3853 echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
baf39af1 3856eval "$as_ac_Header=no"
48d7b13a
KZ
3857fi
3858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48d7b13a 3859fi
baf39af1
KZ
3860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3862if test `eval echo '${'$as_ac_Header'}'` = yes; then
3863 cat >>confdefs.h <<_ACEOF
3864#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48d7b13a
KZ
3865_ACEOF
3866
3867fi
baf39af1
KZ
3868
3869done
48d7b13a
KZ
3870
3871
3872
3873for ac_header in scsi/scsi.h
3874do
3875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876if eval "test \"\${$as_ac_Header+set}\" = set"; then
3877 echo "$as_me:$LINENO: checking for $ac_header" >&5
3878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3879if eval "test \"\${$as_ac_Header+set}\" = set"; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881fi
3882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884else
3885 # Is the header compilable?
3886echo "$as_me:$LINENO: checking $ac_header usability" >&5
3887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3888cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894$ac_includes_default
3895#include <$ac_header>
3896_ACEOF
3897rm -f conftest.$ac_objext
3898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_header_compiler=yes
3919else
3920 echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923ac_header_compiler=no
3924fi
3925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3927echo "${ECHO_T}$ac_header_compiler" >&6
3928
3929# Is the header present?
3930echo "$as_me:$LINENO: checking $ac_header presence" >&5
3931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3932cat >conftest.$ac_ext <<_ACEOF
3933/* confdefs.h. */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h. */
3938#include <$ac_header>
3939_ACEOF
3940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } >/dev/null; then
3948 if test -s conftest.err; then
3949 ac_cpp_err=$ac_c_preproc_warn_flag
3950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3951 else
3952 ac_cpp_err=
3953 fi
3954else
3955 ac_cpp_err=yes
3956fi
3957if test -z "$ac_cpp_err"; then
3958 ac_header_preproc=yes
3959else
3960 echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 ac_header_preproc=no
3964fi
3965rm -f conftest.err conftest.$ac_ext
3966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3967echo "${ECHO_T}$ac_header_preproc" >&6
3968
3969# So? What about this header?
3970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3971 yes:no: )
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3976 ac_header_preproc=yes
3977 ;;
3978 no:yes:* )
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3991 (
3992 cat <<\_ASBOX
3993## ----------------------------- ##
3994## Report this to bunk@stusta.de ##
3995## ----------------------------- ##
3996_ASBOX
3997 ) |
3998 sed "s/^/$as_me: WARNING: /" >&2
3999 ;;
4000esac
4001echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4003if eval "test \"\${$as_ac_Header+set}\" = set"; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 eval "$as_ac_Header=\$ac_header_preproc"
4007fi
4008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010
4011fi
4012if test `eval echo '${'$as_ac_Header'}'` = yes; then
4013 cat >>confdefs.h <<_ACEOF
4014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015_ACEOF
4016
4017fi
4018
4019done
4020
4021
4022for ac_header in linux/compiler.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo "$as_me:$LINENO: checking for $ac_header" >&5
4027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030fi
4031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4033else
4034 # Is the header compilable?
4035echo "$as_me:$LINENO: checking $ac_header usability" >&5
4036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4037cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_includes_default
4044#include <$ac_header>
4045_ACEOF
4046rm -f conftest.$ac_objext
4047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; } &&
4061 { ac_try='test -s conftest.$ac_objext'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 (eval $ac_try) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 ac_header_compiler=yes
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072ac_header_compiler=no
4073fi
4074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4076echo "${ECHO_T}$ac_header_compiler" >&6
4077
4078# Is the header present?
4079echo "$as_me:$LINENO: checking $ac_header presence" >&5
4080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4081cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h. */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h. */
4087#include <$ac_header>
4088_ACEOF
4089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } >/dev/null; then
4097 if test -s conftest.err; then
4098 ac_cpp_err=$ac_c_preproc_warn_flag
4099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4100 else
4101 ac_cpp_err=
4102 fi
4103else
4104 ac_cpp_err=yes
4105fi
4106if test -z "$ac_cpp_err"; then
4107 ac_header_preproc=yes
4108else
4109 echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_header_preproc=no
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4116echo "${ECHO_T}$ac_header_preproc" >&6
4117
4118# So? What about this header?
4119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4120 yes:no: )
4121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4125 ac_header_preproc=yes
4126 ;;
4127 no:yes:* )
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4140 (
4141 cat <<\_ASBOX
4142## ----------------------------- ##
4143## Report this to bunk@stusta.de ##
4144## ----------------------------- ##
4145_ASBOX
4146 ) |
4147 sed "s/^/$as_me: WARNING: /" >&2
4148 ;;
4149esac
4150echo "$as_me:$LINENO: checking for $ac_header" >&5
4151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4152if eval "test \"\${$as_ac_Header+set}\" = set"; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 eval "$as_ac_Header=\$ac_header_preproc"
4156fi
4157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4159
4160fi
4161if test `eval echo '${'$as_ac_Header'}'` = yes; then
4162 cat >>confdefs.h <<_ACEOF
4163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4164_ACEOF
4165
4166fi
4167
4168done
4169
4170
4171for ac_header in linux/blkpg.h
4172do
4173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174echo "$as_me:$LINENO: checking for $ac_header" >&5
4175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4176if eval "test \"\${$as_ac_Header+set}\" = set"; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h. */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h. */
4185
4186#ifdef HAVE_LINUX_COMPILER_H
4187#include <linux/compiler.h>
4188#endif
4189
4190
4191#include <$ac_header>
4192_ACEOF
4193rm -f conftest.$ac_objext
4194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195 (eval $ac_compile) 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } &&
4202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest.$ac_objext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 eval "$as_ac_Header=yes"
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219eval "$as_ac_Header=no"
4220fi
4221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222fi
4223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225if test `eval echo '${'$as_ac_Header'}'` = yes; then
4226 cat >>confdefs.h <<_ACEOF
4227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4228_ACEOF
4229
4230fi
4231
4232done
4233
4234
4235for ac_header in langinfo.h
4236do
4237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243fi
4244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4246else
4247 # Is the header compilable?
4248echo "$as_me:$LINENO: checking $ac_header usability" >&5
4249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4250cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256$ac_includes_default
4257#include <$ac_header>
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 ac_header_compiler=yes
4281else
4282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285ac_header_compiler=no
4286fi
4287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4289echo "${ECHO_T}$ac_header_compiler" >&6
4290
4291# Is the header present?
4292echo "$as_me:$LINENO: checking $ac_header presence" >&5
4293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4294cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300#include <$ac_header>
4301_ACEOF
4302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null; then
4310 if test -s conftest.err; then
4311 ac_cpp_err=$ac_c_preproc_warn_flag
4312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4313 else
4314 ac_cpp_err=
4315 fi
4316else
4317 ac_cpp_err=yes
4318fi
4319if test -z "$ac_cpp_err"; then
4320 ac_header_preproc=yes
4321else
4322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 ac_header_preproc=no
4326fi
4327rm -f conftest.err conftest.$ac_ext
4328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4329echo "${ECHO_T}$ac_header_preproc" >&6
4330
4331# So? What about this header?
4332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4333 yes:no: )
4334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4338 ac_header_preproc=yes
4339 ;;
4340 no:yes:* )
4341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4353 (
4354 cat <<\_ASBOX
4355## ----------------------------- ##
4356## Report this to bunk@stusta.de ##
4357## ----------------------------- ##
4358_ASBOX
4359 ) |
4360 sed "s/^/$as_me: WARNING: /" >&2
4361 ;;
4362esac
4363echo "$as_me:$LINENO: checking for $ac_header" >&5
4364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 eval "$as_ac_Header=\$ac_header_preproc"
4369fi
4370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372
4373fi
4374if test `eval echo '${'$as_ac_Header'}'` = yes; then
4375 cat >>confdefs.h <<_ACEOF
4376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377_ACEOF
4378
4379fi
4380
4381done
4382
4383
4384for ac_header in sys/user.h
4385do
4386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387if eval "test \"\${$as_ac_Header+set}\" = set"; then
4388 echo "$as_me:$LINENO: checking for $ac_header" >&5
4389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4390if eval "test \"\${$as_ac_Header+set}\" = set"; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392fi
4393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395else
4396 # Is the header compilable?
4397echo "$as_me:$LINENO: checking $ac_header usability" >&5
4398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405$ac_includes_default
4406#include <$ac_header>
4407_ACEOF
4408rm -f conftest.$ac_objext
4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_header_compiler=yes
4430else
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434ac_header_compiler=no
4435fi
4436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4438echo "${ECHO_T}$ac_header_compiler" >&6
4439
4440# Is the header present?
4441echo "$as_me:$LINENO: checking $ac_header presence" >&5
4442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4443cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449#include <$ac_header>
4450_ACEOF
4451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev/null; then
4459 if test -s conftest.err; then
4460 ac_cpp_err=$ac_c_preproc_warn_flag
4461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4462 else
4463 ac_cpp_err=
4464 fi
4465else
4466 ac_cpp_err=yes
4467fi
4468if test -z "$ac_cpp_err"; then
4469 ac_header_preproc=yes
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_header_preproc=no
4475fi
4476rm -f conftest.err conftest.$ac_ext
4477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4478echo "${ECHO_T}$ac_header_preproc" >&6
4479
4480# So? What about this header?
4481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4482 yes:no: )
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4487 ac_header_preproc=yes
4488 ;;
4489 no:yes:* )
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4502 (
4503 cat <<\_ASBOX
4504## ----------------------------- ##
4505## Report this to bunk@stusta.de ##
4506## ----------------------------- ##
4507_ASBOX
4508 ) |
4509 sed "s/^/$as_me: WARNING: /" >&2
4510 ;;
4511esac
4512echo "$as_me:$LINENO: checking for $ac_header" >&5
4513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4514if eval "test \"\${$as_ac_Header+set}\" = set"; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 eval "$as_ac_Header=\$ac_header_preproc"
4518fi
4519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521
4522fi
4523if test `eval echo '${'$as_ac_Header'}'` = yes; then
4524 cat >>confdefs.h <<_ACEOF
4525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4526_ACEOF
4527
4528fi
4529
4530done
4531
4532
4533for ac_header in asm/page.h
4534do
4535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4536if eval "test \"\${$as_ac_Header+set}\" = set"; then
4537 echo "$as_me:$LINENO: checking for $ac_header" >&5
4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541fi
4542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4544else
4545 # Is the header compilable?
4546echo "$as_me:$LINENO: checking $ac_header usability" >&5
4547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4548cat >conftest.$ac_ext <<_ACEOF
4549/* confdefs.h. */
4550_ACEOF
4551cat confdefs.h >>conftest.$ac_ext
4552cat >>conftest.$ac_ext <<_ACEOF
4553/* end confdefs.h. */
4554$ac_includes_default
4555#include <$ac_header>
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_header_compiler=yes
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583ac_header_compiler=no
4584fi
4585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4587echo "${ECHO_T}$ac_header_compiler" >&6
4588
4589# Is the header present?
4590echo "$as_me:$LINENO: checking $ac_header presence" >&5
4591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4592cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h. */
4598#include <$ac_header>
4599_ACEOF
4600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null; then
4608 if test -s conftest.err; then
4609 ac_cpp_err=$ac_c_preproc_warn_flag
4610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4611 else
4612 ac_cpp_err=
4613 fi
4614else
4615 ac_cpp_err=yes
4616fi
4617if test -z "$ac_cpp_err"; then
4618 ac_header_preproc=yes
4619else
4620 echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_header_preproc=no
4624fi
4625rm -f conftest.err conftest.$ac_ext
4626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4627echo "${ECHO_T}$ac_header_preproc" >&6
4628
4629# So? What about this header?
4630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4631 yes:no: )
4632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4636 ac_header_preproc=yes
4637 ;;
4638 no:yes:* )
4639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4646echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4651 (
4652 cat <<\_ASBOX
4653## ----------------------------- ##
4654## Report this to bunk@stusta.de ##
4655## ----------------------------- ##
4656_ASBOX
4657 ) |
4658 sed "s/^/$as_me: WARNING: /" >&2
4659 ;;
4660esac
4661echo "$as_me:$LINENO: checking for $ac_header" >&5
4662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4663if eval "test \"\${$as_ac_Header+set}\" = set"; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 eval "$as_ac_Header=\$ac_header_preproc"
4667fi
4668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4670
4671fi
4672if test `eval echo '${'$as_ac_Header'}'` = yes; then
4673 cat >>confdefs.h <<_ACEOF
4674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675_ACEOF
4676
4677fi
4678
4679done
4680
4681
4682for ac_header in rpcsvc/nfs_prot.h
4683do
4684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685if eval "test \"\${$as_ac_Header+set}\" = set"; then
4686 echo "$as_me:$LINENO: checking for $ac_header" >&5
4687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690fi
4691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693else
4694 # Is the header compilable?
4695echo "$as_me:$LINENO: checking $ac_header usability" >&5
4696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4697cat >conftest.$ac_ext <<_ACEOF
4698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703$ac_includes_default
4704#include <$ac_header>
4705_ACEOF
4706rm -f conftest.$ac_objext
4707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_header_compiler=yes
4728else
4729 echo "$as_me: failed program was:" >&5
4730sed 's/^/| /' conftest.$ac_ext >&5
4731
4732ac_header_compiler=no
4733fi
4734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4736echo "${ECHO_T}$ac_header_compiler" >&6
4737
4738# Is the header present?
4739echo "$as_me:$LINENO: checking $ac_header presence" >&5
4740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4741cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
4747#include <$ac_header>
4748_ACEOF
4749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null; then
4757 if test -s conftest.err; then
4758 ac_cpp_err=$ac_c_preproc_warn_flag
4759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4760 else
4761 ac_cpp_err=
4762 fi
4763else
4764 ac_cpp_err=yes
4765fi
4766if test -z "$ac_cpp_err"; then
4767 ac_header_preproc=yes
4768else
4769 echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_preproc=no
4773fi
4774rm -f conftest.err conftest.$ac_ext
4775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4776echo "${ECHO_T}$ac_header_preproc" >&6
4777
4778# So? What about this header?
4779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4780 yes:no: )
4781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4785 ac_header_preproc=yes
4786 ;;
4787 no:yes:* )
4788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4800 (
4801 cat <<\_ASBOX
4802## ----------------------------- ##
4803## Report this to bunk@stusta.de ##
4804## ----------------------------- ##
4805_ASBOX
4806 ) |
4807 sed "s/^/$as_me: WARNING: /" >&2
4808 ;;
4809esac
4810echo "$as_me:$LINENO: checking for $ac_header" >&5
4811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4812if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 eval "$as_ac_Header=\$ac_header_preproc"
4816fi
4817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819
4820fi
4821if test `eval echo '${'$as_ac_Header'}'` = yes; then
4822 cat >>confdefs.h <<_ACEOF
4823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824_ACEOF
4825
4826fi
4827
4828done
4829
4830
4831for ac_header in sys/io.h
4832do
4833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839fi
4840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842else
4843 # Is the header compilable?
4844echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846cat >conftest.$ac_ext <<_ACEOF
4847/* confdefs.h. */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h. */
4852$ac_includes_default
4853#include <$ac_header>
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_header_compiler=yes
4877else
4878 echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881ac_header_compiler=no
4882fi
4883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885echo "${ECHO_T}$ac_header_compiler" >&6
4886
4887# Is the header present?
4888echo "$as_me:$LINENO: checking $ac_header presence" >&5
4889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4890cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <$ac_header>
4897_ACEOF
4898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } >/dev/null; then
4906 if test -s conftest.err; then
4907 ac_cpp_err=$ac_c_preproc_warn_flag
4908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4909 else
4910 ac_cpp_err=
4911 fi
4912else
4913 ac_cpp_err=yes
4914fi
4915if test -z "$ac_cpp_err"; then
4916 ac_header_preproc=yes
4917else
4918 echo "$as_me: failed program was:" >&5
4919sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_header_preproc=no
4922fi
4923rm -f conftest.err conftest.$ac_ext
4924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4925echo "${ECHO_T}$ac_header_preproc" >&6
4926
4927# So? What about this header?
4928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4929 yes:no: )
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4934 ac_header_preproc=yes
4935 ;;
4936 no:yes:* )
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4949 (
4950 cat <<\_ASBOX
4951## ----------------------------- ##
4952## Report this to bunk@stusta.de ##
4953## ----------------------------- ##
4954_ASBOX
4955 ) |
4956 sed "s/^/$as_me: WARNING: /" >&2
4957 ;;
4958esac
4959echo "$as_me:$LINENO: checking for $ac_header" >&5
4960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4961if eval "test \"\${$as_ac_Header+set}\" = set"; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 eval "$as_ac_Header=\$ac_header_preproc"
4965fi
4966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968
4969fi
4970if test `eval echo '${'$as_ac_Header'}'` = yes; then
4971 cat >>confdefs.h <<_ACEOF
4972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973_ACEOF
4974
4975fi
4976
4977done
4978
4979
4980for ac_header in pty.h
4981do
4982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983if eval "test \"\${$as_ac_Header+set}\" = set"; then
4984 echo "$as_me:$LINENO: checking for $ac_header" >&5
4985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4986if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988fi
4989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4991else
4992 # Is the header compilable?
4993echo "$as_me:$LINENO: checking $ac_header usability" >&5
4994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4995cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
5001$ac_includes_default
5002#include <$ac_header>
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_header_compiler=yes
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030ac_header_compiler=no
5031fi
5032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034echo "${ECHO_T}$ac_header_compiler" >&6
5035
5036# Is the header present?
5037echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5039cat >conftest.$ac_ext <<_ACEOF
5040/* confdefs.h. */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h. */
5045#include <$ac_header>
5046_ACEOF
5047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null; then
5055 if test -s conftest.err; then
5056 ac_cpp_err=$ac_c_preproc_warn_flag
5057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5058 else
5059 ac_cpp_err=
5060 fi
5061else
5062 ac_cpp_err=yes
5063fi
5064if test -z "$ac_cpp_err"; then
5065 ac_header_preproc=yes
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 ac_header_preproc=no
5071fi
5072rm -f conftest.err conftest.$ac_ext
5073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5074echo "${ECHO_T}$ac_header_preproc" >&6
5075
5076# So? What about this header?
5077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5078 yes:no: )
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5083 ac_header_preproc=yes
5084 ;;
5085 no:yes:* )
5086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5098 (
5099 cat <<\_ASBOX
5100## ----------------------------- ##
5101## Report this to bunk@stusta.de ##
5102## ----------------------------- ##
5103_ASBOX
5104 ) |
5105 sed "s/^/$as_me: WARNING: /" >&2
5106 ;;
5107esac
5108echo "$as_me:$LINENO: checking for $ac_header" >&5
5109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5110if eval "test \"\${$as_ac_Header+set}\" = set"; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 eval "$as_ac_Header=\$ac_header_preproc"
5114fi
5115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5117
5118fi
5119if test `eval echo '${'$as_ac_Header'}'` = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122_ACEOF
5123
5124fi
5125
5126done
5127
5128
5129
5130for ac_header in linux/raw.h
5131do
5132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133if eval "test \"\${$as_ac_Header+set}\" = set"; then
5134 echo "$as_me:$LINENO: checking for $ac_header" >&5
5135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5136if eval "test \"\${$as_ac_Header+set}\" = set"; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138fi
5139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5141else
5142 # Is the header compilable?
5143echo "$as_me:$LINENO: checking $ac_header usability" >&5
5144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5145cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151$ac_includes_default
5152#include <$ac_header>
5153_ACEOF
5154rm -f conftest.$ac_objext
5155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_header_compiler=yes
5176else
5177 echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180ac_header_compiler=no
5181fi
5182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5184echo "${ECHO_T}$ac_header_compiler" >&6
5185
5186# Is the header present?
5187echo "$as_me:$LINENO: checking $ac_header presence" >&5
5188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5189cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195#include <$ac_header>
5196_ACEOF
5197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null; then
5205 if test -s conftest.err; then
5206 ac_cpp_err=$ac_c_preproc_warn_flag
5207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5208 else
5209 ac_cpp_err=
5210 fi
5211else
5212 ac_cpp_err=yes
5213fi
5214if test -z "$ac_cpp_err"; then
5215 ac_header_preproc=yes
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_header_preproc=no
5221fi
5222rm -f conftest.err conftest.$ac_ext
5223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224echo "${ECHO_T}$ac_header_preproc" >&6
5225
5226# So? What about this header?
5227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5228 yes:no: )
5229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5233 ac_header_preproc=yes
5234 ;;
5235 no:yes:* )
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5248 (
5249 cat <<\_ASBOX
5250## ----------------------------- ##
5251## Report this to bunk@stusta.de ##
5252## ----------------------------- ##
5253_ASBOX
5254 ) |
5255 sed "s/^/$as_me: WARNING: /" >&2
5256 ;;
5257esac
5258echo "$as_me:$LINENO: checking for $ac_header" >&5
5259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5260if eval "test \"\${$as_ac_Header+set}\" = set"; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 eval "$as_ac_Header=\$ac_header_preproc"
5264fi
5265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267
5268fi
5269if test `eval echo '${'$as_ac_Header'}'` = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272_ACEOF
5273
5274fi
5275
5276done
5277
5278
5279
5280if test x$ac_cv_header_linux_raw_h = xyes; then
5281 HAVE_RAW_TRUE=
5282 HAVE_RAW_FALSE='#'
5283else
5284 HAVE_RAW_TRUE='#'
5285 HAVE_RAW_FALSE=
5286fi
5287
5288
5289
48d7b13a
KZ
5290
5291
5292for ac_func in inet_aton
5293do
5294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5295echo "$as_me:$LINENO: checking for $ac_func" >&5
5296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5297if eval "test \"\${$as_ac_var+set}\" = set"; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300 cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5308#define $ac_func innocuous_$ac_func
5309
5310/* System header to define __stub macros and hopefully few prototypes,
5311 which can conflict with char $ac_func (); below.
5312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5313 <limits.h> exists even on freestanding compilers. */
5314
5315#ifdef __STDC__
5316# include <limits.h>
5317#else
5318# include <assert.h>
5319#endif
5320
5321#undef $ac_func
5322
5323/* Override any gcc2 internal prototype to avoid an error. */
5324#ifdef __cplusplus
5325extern "C"
5326{
5327#endif
5328/* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5330char $ac_func ();
5331/* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5335choke me
5336#else
5337char (*f) () = $ac_func;
5338#endif
5339#ifdef __cplusplus
5340}
5341#endif
5342
5343int
5344main ()
5345{
5346return f != $ac_func;
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351rm -f conftest.$ac_objext conftest$ac_exeext
5352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5353 (eval $ac_link) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5372 eval "$as_ac_var=yes"
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377eval "$as_ac_var=no"
5378fi
5379rm -f conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext conftest.$ac_ext
5381fi
5382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5384if test `eval echo '${'$as_ac_var'}'` = yes; then
5385 cat >>confdefs.h <<_ACEOF
5386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5387_ACEOF
5388
5389fi
5390done
5391
5392
5393for ac_func in fsync
5394do
5395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5396echo "$as_me:$LINENO: checking for $ac_func" >&5
5397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5398if eval "test \"\${$as_ac_var+set}\" = set"; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h. */
5407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5409#define $ac_func innocuous_$ac_func
5410
5411/* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char $ac_func (); below.
5413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414 <limits.h> exists even on freestanding compilers. */
5415
5416#ifdef __STDC__
5417# include <limits.h>
5418#else
5419# include <assert.h>
5420#endif
5421
5422#undef $ac_func
5423
5424/* Override any gcc2 internal prototype to avoid an error. */
5425#ifdef __cplusplus
5426extern "C"
5427{
5428#endif
5429/* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5431char $ac_func ();
5432/* The GNU C library defines this for functions which it implements
5433 to always fail with ENOSYS. Some functions are actually named
5434 something starting with __ and the normal name is an alias. */
5435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5436choke me
5437#else
5438char (*f) () = $ac_func;
5439#endif
5440#ifdef __cplusplus
5441}
5442#endif
5443
5444int
5445main ()
5446{
5447return f != $ac_func;
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext conftest$ac_exeext
5453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 eval "$as_ac_var=yes"
5474else
5475 echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478eval "$as_ac_var=no"
5479fi
5480rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482fi
5483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5485if test `eval echo '${'$as_ac_var'}'` = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5488_ACEOF
5489
5490fi
5491done
5492
5493
5494for ac_func in getdomainname
5495do
5496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5497echo "$as_me:$LINENO: checking for $ac_func" >&5
5498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5499if eval "test \"\${$as_ac_var+set}\" = set"; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5510#define $ac_func innocuous_$ac_func
5511
5512/* System header to define __stub macros and hopefully few prototypes,
5513 which can conflict with char $ac_func (); below.
5514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515 <limits.h> exists even on freestanding compilers. */
5516
5517#ifdef __STDC__
5518# include <limits.h>
5519#else
5520# include <assert.h>
5521#endif
5522
5523#undef $ac_func
5524
5525/* Override any gcc2 internal prototype to avoid an error. */
5526#ifdef __cplusplus
5527extern "C"
5528{
5529#endif
5530/* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5532char $ac_func ();
5533/* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5537choke me
5538#else
5539char (*f) () = $ac_func;
5540#endif
5541#ifdef __cplusplus
5542}
5543#endif
5544
5545int
5546main ()
5547{
5548return f != $ac_func;
5549 ;
5550 return 0;
5551}
5552_ACEOF
5553rm -f conftest.$ac_objext conftest$ac_exeext
5554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 eval "$as_ac_var=yes"
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579eval "$as_ac_var=no"
5580fi
5581rm -f conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5586if test `eval echo '${'$as_ac_var'}'` = yes; then
5587 cat >>confdefs.h <<_ACEOF
5588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5589_ACEOF
5590
5591fi
5592done
5593
5594
5595for ac_func in nanosleep
5596do
5597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5598echo "$as_me:$LINENO: checking for $ac_func" >&5
5599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5600if eval "test \"\${$as_ac_var+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602else
5603 cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h. */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h. */
5609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5611#define $ac_func innocuous_$ac_func
5612
5613/* System header to define __stub macros and hopefully few prototypes,
5614 which can conflict with char $ac_func (); below.
5615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5616 <limits.h> exists even on freestanding compilers. */
5617
5618#ifdef __STDC__
5619# include <limits.h>
5620#else
5621# include <assert.h>
5622#endif
5623
5624#undef $ac_func
5625
5626/* Override any gcc2 internal prototype to avoid an error. */
5627#ifdef __cplusplus
5628extern "C"
5629{
5630#endif
5631/* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633char $ac_func ();
5634/* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5638choke me
5639#else
5640char (*f) () = $ac_func;
5641#endif
5642#ifdef __cplusplus
5643}
5644#endif
5645
5646int
5647main ()
5648{
5649return f != $ac_func;
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext conftest$ac_exeext
5655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest$ac_exeext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 eval "$as_ac_var=yes"
5676else
5677 echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
5680eval "$as_ac_var=no"
5681fi
5682rm -f conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684fi
5685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5686echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5687if test `eval echo '${'$as_ac_var'}'` = yes; then
5688 cat >>confdefs.h <<_ACEOF
5689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5690_ACEOF
5691
5692fi
5693done
5694
5695
5696for ac_func in personality
5697do
5698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5699echo "$as_me:$LINENO: checking for $ac_func" >&5
5700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5701if eval "test \"\${$as_ac_var+set}\" = set"; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 cat >conftest.$ac_ext <<_ACEOF
5705/* confdefs.h. */
5706_ACEOF
5707cat confdefs.h >>conftest.$ac_ext
5708cat >>conftest.$ac_ext <<_ACEOF
5709/* end confdefs.h. */
5710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5712#define $ac_func innocuous_$ac_func
5713
5714/* System header to define __stub macros and hopefully few prototypes,
5715 which can conflict with char $ac_func (); below.
5716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 <limits.h> exists even on freestanding compilers. */
5718
5719#ifdef __STDC__
5720# include <limits.h>
5721#else
5722# include <assert.h>
5723#endif
5724
5725#undef $ac_func
5726
5727/* Override any gcc2 internal prototype to avoid an error. */
5728#ifdef __cplusplus
5729extern "C"
5730{
5731#endif
5732/* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5734char $ac_func ();
5735/* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5739choke me
5740#else
5741char (*f) () = $ac_func;
5742#endif
5743#ifdef __cplusplus
5744}
5745#endif
5746
5747int
5748main ()
5749{
5750return f != $ac_func;
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext conftest$ac_exeext
5756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; } &&
5770 { ac_try='test -s conftest$ac_exeext'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; }; then
5776 eval "$as_ac_var=yes"
5777else
5778 echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781eval "$as_ac_var=no"
5782fi
5783rm -f conftest.err conftest.$ac_objext \
5784 conftest$ac_exeext conftest.$ac_ext
5785fi
5786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5788if test `eval echo '${'$as_ac_var'}'` = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5791_ACEOF
5792
5793fi
5794done
5795
5796
5797for ac_func in updwtmp
5798do
5799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5800echo "$as_me:$LINENO: checking for $ac_func" >&5
5801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5802if eval "test \"\${$as_ac_var+set}\" = set"; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
5811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5813#define $ac_func innocuous_$ac_func
5814
5815/* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func (); below.
5817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 <limits.h> exists even on freestanding compilers. */
5819
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825
5826#undef $ac_func
5827
5828/* Override any gcc2 internal prototype to avoid an error. */
5829#ifdef __cplusplus
5830extern "C"
5831{
5832#endif
5833/* We use char because int might match the return type of a gcc2
5834 builtin and then its argument prototype would still apply. */
5835char $ac_func ();
5836/* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840choke me
5841#else
5842char (*f) () = $ac_func;
5843#endif
5844#ifdef __cplusplus
5845}
5846#endif
5847
5848int
5849main ()
5850{
5851return f != $ac_func;
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext conftest$ac_exeext
5857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try='test -s conftest$ac_exeext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 eval "$as_ac_var=yes"
5878else
5879 echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882eval "$as_ac_var=no"
5883fi
5884rm -f conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886fi
5887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5889if test `eval echo '${'$as_ac_var'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5892_ACEOF
5893
5894fi
5895done
5896
5897echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5898echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
5899if test "${ac_cv_sys_largefile_source+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 while :; do
5903 ac_cv_sys_largefile_source=no
5904 cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h. */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h. */
5910#include <stdio.h>
5911int
5912main ()
5913{
5914return !fseeko;
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 break
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945fi
5946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953#define _LARGEFILE_SOURCE 1
5954#include <stdio.h>
5955int
5956main ()
5957{
5958return !fseeko;
5959 ;
5960 return 0;
5961}
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
5972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_sys_largefile_source=1; break
5985else
5986 echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989fi
5990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 break
5992done
5993fi
5994echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5995echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
5996if test "$ac_cv_sys_largefile_source" != no; then
5997
5998cat >>confdefs.h <<_ACEOF
5999#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6000_ACEOF
6001
6002fi
6003rm -f conftest*
6004
6005# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6006# in glibc 2.1.3, but that breaks too many other things.
6007# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6008echo "$as_me:$LINENO: checking for fseeko" >&5
6009echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
6010if test "${ac_cv_func_fseeko+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019#include <stdio.h>
6020int
6021main ()
6022{
6023return fseeko && fseeko (stdin, 0, 0);
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext conftest$ac_exeext
6029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest$ac_exeext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_func_fseeko=yes
6050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054ac_cv_func_fseeko=no
6055fi
6056rm -f conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058fi
6059echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
6060echo "${ECHO_T}$ac_cv_func_fseeko" >&6
6061if test $ac_cv_func_fseeko = yes; then
6062
6063cat >>confdefs.h <<\_ACEOF
6064#define HAVE_FSEEKO 1
6065_ACEOF
6066
6067fi
6068
6069
6070for ac_func in lchown
6071do
6072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6073echo "$as_me:$LINENO: checking for $ac_func" >&5
6074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6075if eval "test \"\${$as_ac_var+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6086#define $ac_func innocuous_$ac_func
6087
6088/* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func (); below.
6090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 <limits.h> exists even on freestanding compilers. */
6092
6093#ifdef __STDC__
6094# include <limits.h>
6095#else
6096# include <assert.h>
6097#endif
6098
6099#undef $ac_func
6100
6101/* Override any gcc2 internal prototype to avoid an error. */
6102#ifdef __cplusplus
6103extern "C"
6104{
6105#endif
6106/* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108char $ac_func ();
6109/* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6113choke me
6114#else
6115char (*f) () = $ac_func;
6116#endif
6117#ifdef __cplusplus
6118}
6119#endif
6120
6121int
6122main ()
6123{
6124return f != $ac_func;
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext conftest$ac_exeext
6130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 eval "$as_ac_var=yes"
6151else
6152 echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155eval "$as_ac_var=no"
6156fi
6157rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6159fi
6160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6162if test `eval echo '${'$as_ac_var'}'` = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6165_ACEOF
6166
6167fi
6168done
6169
6170
6171for ac_func in rpmatch
6172do
6173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6174echo "$as_me:$LINENO: checking for $ac_func" >&5
6175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6176if eval "test \"\${$as_ac_var+set}\" = set"; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6187#define $ac_func innocuous_$ac_func
6188
6189/* System header to define __stub macros and hopefully few prototypes,
6190 which can conflict with char $ac_func (); below.
6191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6192 <limits.h> exists even on freestanding compilers. */
6193
6194#ifdef __STDC__
6195# include <limits.h>
6196#else
6197# include <assert.h>
6198#endif
6199
6200#undef $ac_func
6201
6202/* Override any gcc2 internal prototype to avoid an error. */
6203#ifdef __cplusplus
6204extern "C"
6205{
6206#endif
6207/* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209char $ac_func ();
6210/* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6214choke me
6215#else
6216char (*f) () = $ac_func;
6217#endif
6218#ifdef __cplusplus
6219}
6220#endif
6221
6222int
6223main ()
6224{
6225return f != $ac_func;
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext conftest$ac_exeext
6231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest$ac_exeext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 eval "$as_ac_var=yes"
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256eval "$as_ac_var=no"
6257fi
6258rm -f conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6260fi
6261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6263if test `eval echo '${'$as_ac_var'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6266_ACEOF
6267
6268fi
6269done
6270
6271
6272
6273
6274echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
6275echo $ECHO_N "checking for uuid_is_null in -luuid... $ECHO_C" >&6
6276if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 ac_check_lib_save_LIBS=$LIBS
6280LIBS="-luuid $LIBS"
6281cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287
6288/* Override any gcc2 internal prototype to avoid an error. */
6289#ifdef __cplusplus
6290extern "C"
6291#endif
6292/* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294char uuid_is_null ();
6295int
6296main ()
6297{
6298uuid_is_null ();
6299 ;
6300 return 0;
6301}
6302_ACEOF
6303rm -f conftest.$ac_objext conftest$ac_exeext
6304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_lib_uuid_uuid_is_null=yes
6325else
6326 echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
6329ac_cv_lib_uuid_uuid_is_null=no
6330fi
6331rm -f conftest.err conftest.$ac_objext \
6332 conftest$ac_exeext conftest.$ac_ext
6333LIBS=$ac_check_lib_save_LIBS
6334fi
6335echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
6336echo "${ECHO_T}$ac_cv_lib_uuid_uuid_is_null" >&6
6337if test $ac_cv_lib_uuid_uuid_is_null = yes; then
6338 cat >>confdefs.h <<_ACEOF
6339#define HAVE_LIBUUID 1
6340_ACEOF
6341
6342 LIBS="-luuid $LIBS"
6343
6344fi
6345
6346
6347
6348if test x$ac_cv_lib_uuid_uuid_is_null = xyes; then
6349 HAVE_UUID_TRUE=
6350 HAVE_UUID_FALSE='#'
6351else
6352 HAVE_UUID_TRUE='#'
6353 HAVE_UUID_FALSE=
6354fi
6355
6356
6357
6358echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
6359echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
6360if test "${ac_cv_lib_util_openpty+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 ac_check_lib_save_LIBS=$LIBS
6364LIBS="-lutil $LIBS"
6365cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371
6372/* Override any gcc2 internal prototype to avoid an error. */
6373#ifdef __cplusplus
6374extern "C"
6375#endif
6376/* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378char openpty ();
6379int
6380main ()
6381{
6382openpty ();
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387rm -f conftest.$ac_objext conftest$ac_exeext
6388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest$ac_exeext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_lib_util_openpty=yes
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413ac_cv_lib_util_openpty=no
6414fi
6415rm -f conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6417LIBS=$ac_check_lib_save_LIBS
6418fi
6419echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
6420echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
6421if test $ac_cv_lib_util_openpty = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423#define HAVE_LIBUTIL 1
6424_ACEOF
6425
6426 LIBS="-lutil $LIBS"
6427
6428fi
6429
6430
6431
6432if test x$ac_cv_lib_util_openpty = xyes; then
6433 HAVE_LIBUTIL_TRUE=
6434 HAVE_LIBUTIL_FALSE='#'
6435else
6436 HAVE_LIBUTIL_TRUE='#'
6437 HAVE_LIBUTIL_FALSE=
6438fi
6439
6440
6441
6442echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5
6443echo $ECHO_N "checking for tgetnum in -ltermcap... $ECHO_C" >&6
6444if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446else
6447 ac_check_lib_save_LIBS=$LIBS
6448LIBS="-ltermcap $LIBS"
6449cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455
6456/* Override any gcc2 internal prototype to avoid an error. */
6457#ifdef __cplusplus
6458extern "C"
6459#endif
6460/* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6462char tgetnum ();
6463int
6464main ()
6465{
6466tgetnum ();
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471rm -f conftest.$ac_objext conftest$ac_exeext
6472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_lib_termcap_tgetnum=yes
6493else
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_cv_lib_termcap_tgetnum=no
6498fi
6499rm -f conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6501LIBS=$ac_check_lib_save_LIBS
6502fi
6503echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5
6504echo "${ECHO_T}$ac_cv_lib_termcap_tgetnum" >&6
6505if test $ac_cv_lib_termcap_tgetnum = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507#define HAVE_LIBTERMCAP 1
6508_ACEOF
6509
6510 LIBS="-ltermcap $LIBS"
6511
6512fi
6513
6514
6515
6516if test x$ac_cv_lib_termcap_tgetnum = xyes; then
6517 HAVE_TERMCAP_TRUE=
6518 HAVE_TERMCAP_FALSE='#'
6519else
6520 HAVE_TERMCAP_TRUE='#'
6521 HAVE_TERMCAP_FALSE=
6522fi
6523
6524
6525
48d7b13a
KZ
6526echo "$as_me:$LINENO: checking for blkid_known_fstype in -lblkid" >&5
6527echo $ECHO_N "checking for blkid_known_fstype in -lblkid... $ECHO_C" >&6
6528if test "${ac_cv_lib_blkid_blkid_known_fstype+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531 ac_check_lib_save_LIBS=$LIBS
6532LIBS="-lblkid $LIBS"
6533cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h. */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h. */
6539
6540/* Override any gcc2 internal prototype to avoid an error. */
6541#ifdef __cplusplus
6542extern "C"
6543#endif
6544/* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546char blkid_known_fstype ();
6547int
6548main ()
6549{
6550blkid_known_fstype ();
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext conftest$ac_exeext
6556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_lib_blkid_blkid_known_fstype=yes
6577else
6578 echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581ac_cv_lib_blkid_blkid_known_fstype=no
6582fi
6583rm -f conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
6585LIBS=$ac_check_lib_save_LIBS
6586fi
6587echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_known_fstype" >&5
6588echo "${ECHO_T}$ac_cv_lib_blkid_blkid_known_fstype" >&6
6589if test $ac_cv_lib_blkid_blkid_known_fstype = yes; then
6590 cat >>confdefs.h <<_ACEOF
6591#define HAVE_LIBBLKID 1
6592_ACEOF
6593
6594 LIBS="-lblkid $LIBS"
6595
6596fi
6597
6598
6599
6600if test x$ac_cv_lib_blkid_blkid_known_fstype = xyes; then
6601 HAVE_BLKID_TRUE=
6602 HAVE_BLKID_FALSE='#'
6603else
6604 HAVE_BLKID_TRUE='#'
6605 HAVE_BLKID_FALSE=
6606fi
6607
6608
6609
48d7b13a
KZ
6610
6611
6612 MKINSTALLDIRS=
6613 if test -n "$ac_aux_dir"; then
6614 case "$ac_aux_dir" in
6615 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6616 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6617 esac
6618 fi
6619 if test -z "$MKINSTALLDIRS"; then
6620 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6621 fi
6622
6623
6624
6625 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6626echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6627 # Check whether --enable-nls or --disable-nls was given.
6628if test "${enable_nls+set}" = set; then
6629 enableval="$enable_nls"
6630 USE_NLS=$enableval
6631else
6632 USE_NLS=yes
6633fi;
6634 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6635echo "${ECHO_T}$USE_NLS" >&6
6636
6637
6638
6639
6640
6641
6642# Prepare PATH_SEPARATOR.
6643# The user is always right.
6644if test "${PATH_SEPARATOR+set}" != set; then
6645 echo "#! /bin/sh" >conf$$.sh
6646 echo "exit 0" >>conf$$.sh
6647 chmod +x conf$$.sh
6648 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6649 PATH_SEPARATOR=';'
6650 else
6651 PATH_SEPARATOR=:
6652 fi
6653 rm -f conf$$.sh
6654fi
6655
6656# Find out how to test for executable files. Don't use a zero-byte file,
6657# as systems may use methods other than mode bits to determine executability.
6658cat >conf$$.file <<_ASEOF
6659#! /bin/sh
6660exit 0
6661_ASEOF
6662chmod +x conf$$.file
6663if test -x conf$$.file >/dev/null 2>&1; then
6664 ac_executable_p="test -x"
6665else
6666 ac_executable_p="test -f"
6667fi
6668rm -f conf$$.file
6669
6670# Extract the first word of "msgfmt", so it can be a program name with args.
6671set dummy msgfmt; ac_word=$2
6672echo "$as_me:$LINENO: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674if test "${ac_cv_path_MSGFMT+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677 case "$MSGFMT" in
6678 [\\/]* | ?:[\\/]*)
6679 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6680 ;;
6681 *)
6682 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6683 for ac_dir in $PATH; do
6684 IFS="$ac_save_IFS"
6685 test -z "$ac_dir" && ac_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6688 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6689 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6690 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6691 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6692 break 2
6693 fi
6694 fi
6695 done
6696 done
6697 IFS="$ac_save_IFS"
6698 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6699 ;;
6700esac
6701fi
6702MSGFMT="$ac_cv_path_MSGFMT"
6703if test "$MSGFMT" != ":"; then
6704 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6705echo "${ECHO_T}$MSGFMT" >&6
6706else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709fi
6710
6711 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6712set dummy gmsgfmt; ac_word=$2
6713echo "$as_me:$LINENO: checking for $ac_word" >&5
6714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715if test "${ac_cv_path_GMSGFMT+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 case $GMSGFMT in
6719 [\\/]* | ?:[\\/]*)
6720 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6721 ;;
6722 *)
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735done
6736
6737 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6738 ;;
6739esac
6740fi
6741GMSGFMT=$ac_cv_path_GMSGFMT
6742
6743if test -n "$GMSGFMT"; then
6744 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6745echo "${ECHO_T}$GMSGFMT" >&6
6746else
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
6749fi
6750
6751
6752
6753# Prepare PATH_SEPARATOR.
6754# The user is always right.
6755if test "${PATH_SEPARATOR+set}" != set; then
6756 echo "#! /bin/sh" >conf$$.sh
6757 echo "exit 0" >>conf$$.sh
6758 chmod +x conf$$.sh
6759 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6760 PATH_SEPARATOR=';'
6761 else
6762 PATH_SEPARATOR=:
6763 fi
6764 rm -f conf$$.sh
6765fi
6766
6767# Find out how to test for executable files. Don't use a zero-byte file,
6768# as systems may use methods other than mode bits to determine executability.
6769cat >conf$$.file <<_ASEOF
6770#! /bin/sh
6771exit 0
6772_ASEOF
6773chmod +x conf$$.file
6774if test -x conf$$.file >/dev/null 2>&1; then
6775 ac_executable_p="test -x"
6776else
6777 ac_executable_p="test -f"
6778fi
6779rm -f conf$$.file
6780
6781# Extract the first word of "xgettext", so it can be a program name with args.
6782set dummy xgettext; ac_word=$2
6783echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6785if test "${ac_cv_path_XGETTEXT+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 case "$XGETTEXT" in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6794 for ac_dir in $PATH; do
6795 IFS="$ac_save_IFS"
6796 test -z "$ac_dir" && ac_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6799 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6800 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6801 (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
6802 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6803 break 2
6804 fi
6805 fi
6806 done
6807 done
6808 IFS="$ac_save_IFS"
6809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6810 ;;
6811esac
6812fi
6813XGETTEXT="$ac_cv_path_XGETTEXT"
6814if test "$XGETTEXT" != ":"; then
6815 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6816echo "${ECHO_T}$XGETTEXT" >&6
6817else
6818 echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6
6820fi
6821
6822 rm -f messages.po
6823
6824
6825# Prepare PATH_SEPARATOR.
6826# The user is always right.
6827if test "${PATH_SEPARATOR+set}" != set; then
6828 echo "#! /bin/sh" >conf$$.sh
6829 echo "exit 0" >>conf$$.sh
6830 chmod +x conf$$.sh
6831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6832 PATH_SEPARATOR=';'
6833 else
6834 PATH_SEPARATOR=:
6835 fi
6836 rm -f conf$$.sh
6837fi
6838
6839# Find out how to test for executable files. Don't use a zero-byte file,
6840# as systems may use methods other than mode bits to determine executability.
6841cat >conf$$.file <<_ASEOF
6842#! /bin/sh
6843exit 0
6844_ASEOF
6845chmod +x conf$$.file
6846if test -x conf$$.file >/dev/null 2>&1; then
6847 ac_executable_p="test -x"
6848else
6849 ac_executable_p="test -f"
6850fi
6851rm -f conf$$.file
6852
6853# Extract the first word of "msgmerge", so it can be a program name with args.
6854set dummy msgmerge; ac_word=$2
6855echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6857if test "${ac_cv_path_MSGMERGE+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860 case "$MSGMERGE" in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6863 ;;
6864 *)
6865 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6866 for ac_dir in $PATH; do
6867 IFS="$ac_save_IFS"
6868 test -z "$ac_dir" && ac_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6871 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6872 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6873 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6874 break 2
6875 fi
6876 fi
6877 done
6878 done
6879 IFS="$ac_save_IFS"
6880 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6881 ;;
6882esac
6883fi
6884MSGMERGE="$ac_cv_path_MSGMERGE"
6885if test "$MSGMERGE" != ":"; then
6886 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6887echo "${ECHO_T}$MSGMERGE" >&6
6888else
6889 echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6
6891fi
6892
6893
6894 if test "$GMSGFMT" != ":"; then
6895 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6896 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6897 : ;
6898 else
6899 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6900 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6901echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6902 GMSGFMT=":"
6903 fi
6904 fi
6905
6906 if test "$XGETTEXT" != ":"; then
6907 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6908 (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
6909 : ;
6910 else
6911 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6912echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6913 XGETTEXT=":"
6914 fi
6915 rm -f messages.po
6916 fi
6917
6918 ac_config_commands="$ac_config_commands default-1"
6919
6920
6921
6922 if test "X$prefix" = "XNONE"; then
6923 acl_final_prefix="$ac_default_prefix"
6924 else
6925 acl_final_prefix="$prefix"
6926 fi
6927 if test "X$exec_prefix" = "XNONE"; then
6928 acl_final_exec_prefix='${prefix}'
6929 else
6930 acl_final_exec_prefix="$exec_prefix"
6931 fi
6932 acl_save_prefix="$prefix"
6933 prefix="$acl_final_prefix"
6934 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6935 prefix="$acl_save_prefix"
6936
baf39af1
KZ
6937# Make sure we can run config.sub.
6938$ac_config_sub sun4 >/dev/null 2>&1 ||
6939 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6940echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6941 { (exit 1); exit 1; }; }
6942
6943echo "$as_me:$LINENO: checking build system type" >&5
6944echo $ECHO_N "checking build system type... $ECHO_C" >&6
6945if test "${ac_cv_build+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948 ac_cv_build_alias=$build_alias
6949test -z "$ac_cv_build_alias" &&
6950 ac_cv_build_alias=`$ac_config_guess`
6951test -z "$ac_cv_build_alias" &&
6952 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6953echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6954 { (exit 1); exit 1; }; }
6955ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6956 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6957echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6958 { (exit 1); exit 1; }; }
6959
6960fi
6961echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6962echo "${ECHO_T}$ac_cv_build" >&6
6963build=$ac_cv_build
6964build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6965build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6966build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6967
6968
6969echo "$as_me:$LINENO: checking host system type" >&5
6970echo $ECHO_N "checking host system type... $ECHO_C" >&6
6971if test "${ac_cv_host+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 ac_cv_host_alias=$host_alias
6975test -z "$ac_cv_host_alias" &&
6976 ac_cv_host_alias=$ac_cv_build_alias
6977ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6978 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6979echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6980 { (exit 1); exit 1; }; }
6981
6982fi
6983echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6984echo "${ECHO_T}$ac_cv_host" >&6
6985host=$ac_cv_host
6986host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6987host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6988host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6989
6990
48d7b13a
KZ
6991
6992# Check whether --with-gnu-ld or --without-gnu-ld was given.
6993if test "${with_gnu_ld+set}" = set; then
6994 withval="$with_gnu_ld"
6995 test "$withval" = no || with_gnu_ld=yes
6996else
6997 with_gnu_ld=no
6998fi;
6999# Prepare PATH_SEPARATOR.
7000# The user is always right.
7001if test "${PATH_SEPARATOR+set}" != set; then
7002 echo "#! /bin/sh" >conf$$.sh
7003 echo "exit 0" >>conf$$.sh
7004 chmod +x conf$$.sh
7005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7006 PATH_SEPARATOR=';'
7007 else
7008 PATH_SEPARATOR=:
7009 fi
7010 rm -f conf$$.sh
7011fi
7012ac_prog=ld
7013if test "$GCC" = yes; then
7014 # Check if gcc -print-prog-name=ld gives a path.
7015 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7016echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7017 case $host in
7018 *-*-mingw*)
7019 # gcc leaves a trailing carriage return which upsets mingw
7020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7021 *)
7022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7023 esac
7024 case $ac_prog in
7025 # Accept absolute paths.
7026 [\\/]* | [A-Za-z]:[\\/]*)
7027 re_direlt='/[^/][^/]*/\.\./'
7028 # Canonicalize the path of ld
7029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7032 done
7033 test -z "$LD" && LD="$ac_prog"
7034 ;;
7035 "")
7036 # If it fails, then pretend we aren't using GCC.
7037 ac_prog=ld
7038 ;;
7039 *)
7040 # If it is relative, then search for the first ld in PATH.
7041 with_gnu_ld=unknown
7042 ;;
7043 esac
7044elif test "$with_gnu_ld" = yes; then
7045 echo "$as_me:$LINENO: checking for GNU ld" >&5
7046echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7047else
7048 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7049echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7050fi
7051if test "${acl_cv_path_LD+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 if test -z "$LD"; then
7055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7056 for ac_dir in $PATH; do
7057 test -z "$ac_dir" && ac_dir=.
7058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7059 acl_cv_path_LD="$ac_dir/$ac_prog"
7060 # Check to see if the program is GNU ld. I'd rather use --version,
7061 # but apparently some GNU ld's only accept -v.
7062 # Break only if it was the GNU/non-GNU ld that we prefer.
7063 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7064 *GNU* | *'with BFD'*)
7065 test "$with_gnu_ld" != no && break ;;
7066 *)
7067 test "$with_gnu_ld" != yes && break ;;
7068 esac
7069 fi
7070 done
7071 IFS="$ac_save_ifs"
7072else
7073 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7074fi
7075fi
7076
7077LD="$acl_cv_path_LD"
7078if test -n "$LD"; then
7079 echo "$as_me:$LINENO: result: $LD" >&5
7080echo "${ECHO_T}$LD" >&6
7081else
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
7084fi
7085test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7086echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7087 { (exit 1); exit 1; }; }
7088echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7089echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7090if test "${acl_cv_prog_gnu_ld+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7094case `$LD -v 2>&1 </dev/null` in
7095*GNU* | *'with BFD'*)
7096 acl_cv_prog_gnu_ld=yes ;;
7097*)
7098 acl_cv_prog_gnu_ld=no ;;
7099esac
7100fi
7101echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7102echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7103with_gnu_ld=$acl_cv_prog_gnu_ld
7104
7105
7106
7107
7108 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7109echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7110if test "${acl_cv_rpath+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113
7114 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7115 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7116 . ./conftest.sh
7117 rm -f ./conftest.sh
7118 acl_cv_rpath=done
7119
7120fi
7121echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7122echo "${ECHO_T}$acl_cv_rpath" >&6
7123 wl="$acl_cv_wl"
7124 libext="$acl_cv_libext"
7125 shlibext="$acl_cv_shlibext"
7126 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7127 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7128 hardcode_direct="$acl_cv_hardcode_direct"
7129 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7130 # Check whether --enable-rpath or --disable-rpath was given.
7131if test "${enable_rpath+set}" = set; then
7132 enableval="$enable_rpath"
7133 :
7134else
7135 enable_rpath=yes
7136fi;
7137
7138
7139
7140
7141
7142
7143
7144 use_additional=yes
7145
7146 acl_save_prefix="$prefix"
7147 prefix="$acl_final_prefix"
7148 acl_save_exec_prefix="$exec_prefix"
7149 exec_prefix="$acl_final_exec_prefix"
7150
7151 eval additional_includedir=\"$includedir\"
7152 eval additional_libdir=\"$libdir\"
7153
7154 exec_prefix="$acl_save_exec_prefix"
7155 prefix="$acl_save_prefix"
7156
7157
7158# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7159if test "${with_libiconv_prefix+set}" = set; then
7160 withval="$with_libiconv_prefix"
7161
7162 if test "X$withval" = "Xno"; then
7163 use_additional=no
7164 else
7165 if test "X$withval" = "X"; then
7166
7167 acl_save_prefix="$prefix"
7168 prefix="$acl_final_prefix"
7169 acl_save_exec_prefix="$exec_prefix"
7170 exec_prefix="$acl_final_exec_prefix"
7171
7172 eval additional_includedir=\"$includedir\"
7173 eval additional_libdir=\"$libdir\"
7174
7175 exec_prefix="$acl_save_exec_prefix"
7176 prefix="$acl_save_prefix"
7177
7178 else
7179 additional_includedir="$withval/include"
7180 additional_libdir="$withval/lib"
7181 fi
7182 fi
7183
7184fi;
7185 LIBICONV=
7186 LTLIBICONV=
7187 INCICONV=
7188 rpathdirs=
7189 ltrpathdirs=
7190 names_already_handled=
7191 names_next_round='iconv '
7192 while test -n "$names_next_round"; do
7193 names_this_round="$names_next_round"
7194 names_next_round=
7195 for name in $names_this_round; do
7196 already_handled=
7197 for n in $names_already_handled; do
7198 if test "$n" = "$name"; then
7199 already_handled=yes
7200 break
7201 fi
7202 done
7203 if test -z "$already_handled"; then
7204 names_already_handled="$names_already_handled $name"
7205 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7206 eval value=\"\$HAVE_LIB$uppername\"
7207 if test -n "$value"; then
7208 if test "$value" = yes; then
7209 eval value=\"\$LIB$uppername\"
7210 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7211 eval value=\"\$LTLIB$uppername\"
7212 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7213 else
7214 :
7215 fi
7216 else
7217 found_dir=
7218 found_la=
7219 found_so=
7220 found_a=
7221 if test $use_additional = yes; then
7222 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7223 found_dir="$additional_libdir"
7224 found_so="$additional_libdir/lib$name.$shlibext"
7225 if test -f "$additional_libdir/lib$name.la"; then
7226 found_la="$additional_libdir/lib$name.la"
7227 fi
7228 else
7229 if test -f "$additional_libdir/lib$name.$libext"; then
7230 found_dir="$additional_libdir"
7231 found_a="$additional_libdir/lib$name.$libext"
7232 if test -f "$additional_libdir/lib$name.la"; then
7233 found_la="$additional_libdir/lib$name.la"
7234 fi
7235 fi
7236 fi
7237 fi
7238 if test "X$found_dir" = "X"; then
7239 for x in $LDFLAGS $LTLIBICONV; do
7240
7241 acl_save_prefix="$prefix"
7242 prefix="$acl_final_prefix"
7243 acl_save_exec_prefix="$exec_prefix"
7244 exec_prefix="$acl_final_exec_prefix"
7245 eval x=\"$x\"
7246 exec_prefix="$acl_save_exec_prefix"
7247 prefix="$acl_save_prefix"
7248
7249 case "$x" in
7250 -L*)
7251 dir=`echo "X$x" | sed -e 's/^X-L//'`
7252 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7253 found_dir="$dir"
7254 found_so="$dir/lib$name.$shlibext"
7255 if test -f "$dir/lib$name.la"; then
7256 found_la="$dir/lib$name.la"
7257 fi
7258 else
7259 if test -f "$dir/lib$name.$libext"; then
7260 found_dir="$dir"
7261 found_a="$dir/lib$name.$libext"
7262 if test -f "$dir/lib$name.la"; then
7263 found_la="$dir/lib$name.la"
7264 fi
7265 fi
7266 fi
7267 ;;
7268 esac
7269 if test "X$found_dir" != "X"; then
7270 break
7271 fi
7272 done
7273 fi
7274 if test "X$found_dir" != "X"; then
7275 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7276 if test "X$found_so" != "X"; then
7277 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7278 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7279 else
7280 haveit=
7281 for x in $ltrpathdirs; do
7282 if test "X$x" = "X$found_dir"; then
7283 haveit=yes
7284 break
7285 fi
7286 done
7287 if test -z "$haveit"; then
7288 ltrpathdirs="$ltrpathdirs $found_dir"
7289 fi
7290 if test "$hardcode_direct" = yes; then
7291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7292 else
7293 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7294 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7295 haveit=
7296 for x in $rpathdirs; do
7297 if test "X$x" = "X$found_dir"; then
7298 haveit=yes
7299 break
7300 fi
7301 done
7302 if test -z "$haveit"; then
7303 rpathdirs="$rpathdirs $found_dir"
7304 fi
7305 else
7306 haveit=
7307 for x in $LDFLAGS $LIBICONV; do
7308
7309 acl_save_prefix="$prefix"
7310 prefix="$acl_final_prefix"
7311 acl_save_exec_prefix="$exec_prefix"
7312 exec_prefix="$acl_final_exec_prefix"
7313 eval x=\"$x\"
7314 exec_prefix="$acl_save_exec_prefix"
7315 prefix="$acl_save_prefix"
7316
7317 if test "X$x" = "X-L$found_dir"; then
7318 haveit=yes
7319 break
7320 fi
7321 done
7322 if test -z "$haveit"; then
7323 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7324 fi
7325 if test "$hardcode_minus_L" != no; then
7326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7327 else
7328 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7329 fi
7330 fi
7331 fi
7332 fi
7333 else
7334 if test "X$found_a" != "X"; then
7335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7336 else
7337 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7338 fi
7339 fi
7340 additional_includedir=
7341 case "$found_dir" in
7342 */lib | */lib/)
7343 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7344 additional_includedir="$basedir/include"
7345 ;;
7346 esac
7347 if test "X$additional_includedir" != "X"; then
7348 if test "X$additional_includedir" != "X/usr/include"; then
7349 haveit=
7350 if test "X$additional_includedir" = "X/usr/local/include"; then
7351 if test -n "$GCC"; then
7352 case $host_os in
7353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7354 esac
7355 fi
7356 fi
7357 if test -z "$haveit"; then
7358 for x in $CPPFLAGS $INCICONV; do
7359
7360 acl_save_prefix="$prefix"
7361 prefix="$acl_final_prefix"
7362 acl_save_exec_prefix="$exec_prefix"
7363 exec_prefix="$acl_final_exec_prefix"
7364 eval x=\"$x\"
7365 exec_prefix="$acl_save_exec_prefix"
7366 prefix="$acl_save_prefix"
7367
7368 if test "X$x" = "X-I$additional_includedir"; then
7369 haveit=yes
7370 break
7371 fi
7372 done
7373 if test -z "$haveit"; then
7374 if test -d "$additional_includedir"; then
7375 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7376 fi
7377 fi
7378 fi
7379 fi
7380 fi
7381 if test -n "$found_la"; then
7382 save_libdir="$libdir"
7383 case "$found_la" in
7384 */* | *\\*) . "$found_la" ;;
7385 *) . "./$found_la" ;;
7386 esac
7387 libdir="$save_libdir"
7388 for dep in $dependency_libs; do
7389 case "$dep" in
7390 -L*)
7391 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7392 if test "X$additional_libdir" != "X/usr/lib"; then
7393 haveit=
7394 if test "X$additional_libdir" = "X/usr/local/lib"; then
7395 if test -n "$GCC"; then
7396 case $host_os in
7397 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7398 esac
7399 fi
7400 fi
7401 if test -z "$haveit"; then
7402 haveit=
7403 for x in $LDFLAGS $LIBICONV; do
7404
7405 acl_save_prefix="$prefix"
7406 prefix="$acl_final_prefix"
7407 acl_save_exec_prefix="$exec_prefix"
7408 exec_prefix="$acl_final_exec_prefix"
7409 eval x=\"$x\"
7410 exec_prefix="$acl_save_exec_prefix"
7411 prefix="$acl_save_prefix"
7412
7413 if test "X$x" = "X-L$additional_libdir"; then
7414 haveit=yes
7415 break
7416 fi
7417 done
7418 if test -z "$haveit"; then
7419 if test -d "$additional_libdir"; then
7420 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7421 fi
7422 fi
7423 haveit=
7424 for x in $LDFLAGS $LTLIBICONV; do
7425
7426 acl_save_prefix="$prefix"
7427 prefix="$acl_final_prefix"
7428 acl_save_exec_prefix="$exec_prefix"
7429 exec_prefix="$acl_final_exec_prefix"
7430 eval x=\"$x\"
7431 exec_prefix="$acl_save_exec_prefix"
7432 prefix="$acl_save_prefix"
7433
7434 if test "X$x" = "X-L$additional_libdir"; then
7435 haveit=yes
7436 break
7437 fi
7438 done
7439 if test -z "$haveit"; then
7440 if test -d "$additional_libdir"; then
7441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7442 fi
7443 fi
7444 fi
7445 fi
7446 ;;
7447 -R*)
7448 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7449 if test "$enable_rpath" != no; then
7450 haveit=
7451 for x in $rpathdirs; do
7452 if test "X$x" = "X$dir"; then
7453 haveit=yes
7454 break
7455 fi
7456 done
7457 if test -z "$haveit"; then
7458 rpathdirs="$rpathdirs $dir"
7459 fi
7460 haveit=
7461 for x in $ltrpathdirs; do
7462 if test "X$x" = "X$dir"; then
7463 haveit=yes
7464 break
7465 fi
7466 done
7467 if test -z "$haveit"; then
7468 ltrpathdirs="$ltrpathdirs $dir"
7469 fi
7470 fi
7471 ;;
7472 -l*)
7473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7474 ;;
7475 *.la)
7476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7477 ;;
7478 *)
7479 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7481 ;;
7482 esac
7483 done
7484 fi
7485 else
7486 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7488 fi
7489 fi
7490 fi
7491 done
7492 done
7493 if test "X$rpathdirs" != "X"; then
7494 if test -n "$hardcode_libdir_separator"; then
7495 alldirs=
7496 for found_dir in $rpathdirs; do
7497 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7498 done
7499 acl_save_libdir="$libdir"
7500 libdir="$alldirs"
7501 eval flag=\"$hardcode_libdir_flag_spec\"
7502 libdir="$acl_save_libdir"
7503 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7504 else
7505 for found_dir in $rpathdirs; do
7506 acl_save_libdir="$libdir"
7507 libdir="$found_dir"
7508 eval flag=\"$hardcode_libdir_flag_spec\"
7509 libdir="$acl_save_libdir"
7510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7511 done
7512 fi
7513 fi
7514 if test "X$ltrpathdirs" != "X"; then
7515 for found_dir in $ltrpathdirs; do
7516 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7517 done
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7538echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
7539if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 gt_save_CPPFLAGS="$CPPFLAGS"
7543 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7544 gt_save_LIBS="$LIBS"
7545 LIBS="$LIBS -framework CoreFoundation"
7546 cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h. */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h. */
7552#include <CFPreferences.h>
7553int
7554main ()
7555{
7556CFPreferencesCopyAppValue(NULL, NULL)
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561rm -f conftest.$ac_objext conftest$ac_exeext
7562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563 (eval $ac_link) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 gt_cv_func_CFPreferencesCopyAppValue=yes
7583else
7584 echo "$as_me: failed program was:" >&5
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
7587gt_cv_func_CFPreferencesCopyAppValue=no
7588fi
7589rm -f conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7591 CPPFLAGS="$gt_save_CPPFLAGS"
7592 LIBS="$gt_save_LIBS"
7593fi
7594echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7595echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
7596 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7597
7598cat >>confdefs.h <<\_ACEOF
7599#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7600_ACEOF
7601
7602 fi
7603 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7604echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
7605if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
7608 gt_save_CPPFLAGS="$CPPFLAGS"
7609 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7610 gt_save_LIBS="$LIBS"
7611 LIBS="$LIBS -framework CoreFoundation"
7612 cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
7618#include <CFLocale.h>
7619int
7620main ()
7621{
7622CFLocaleCopyCurrent();
7623 ;
7624 return 0;
7625}
7626_ACEOF
7627rm -f conftest.$ac_objext conftest$ac_exeext
7628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629 (eval $ac_link) 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest$ac_exeext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 gt_cv_func_CFLocaleCopyCurrent=yes
7649else
7650 echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653gt_cv_func_CFLocaleCopyCurrent=no
7654fi
7655rm -f conftest.err conftest.$ac_objext \
7656 conftest$ac_exeext conftest.$ac_ext
7657 CPPFLAGS="$gt_save_CPPFLAGS"
7658 LIBS="$gt_save_LIBS"
7659fi
7660echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7661echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
7662 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7663
7664cat >>confdefs.h <<\_ACEOF
7665#define HAVE_CFLOCALECOPYCURRENT 1
7666_ACEOF
7667
7668 fi
7669 INTL_MACOSX_LIBS=
7670 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7671 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7672 fi
7673
7674
7675
7676
7677 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7678echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7679 # Check whether --enable-nls or --disable-nls was given.
7680if test "${enable_nls+set}" = set; then
7681 enableval="$enable_nls"
7682 USE_NLS=$enableval
7683else
7684 USE_NLS=yes
7685fi;
7686 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7687echo "${ECHO_T}$USE_NLS" >&6
7688
7689
7690
7691
7692 LIBINTL=
7693 LTLIBINTL=
7694 POSUB=
7695
7696 if test "$USE_NLS" = "yes"; then
7697 gt_use_preinstalled_gnugettext=no
7698
7699
7700
7701
7702
7703
7704 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
7705echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
7706if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709 cat >conftest.$ac_ext <<_ACEOF
7710/* confdefs.h. */
7711_ACEOF
7712cat confdefs.h >>conftest.$ac_ext
7713cat >>conftest.$ac_ext <<_ACEOF
7714/* end confdefs.h. */
7715#include <libintl.h>
7716extern int _nl_msg_cat_cntr;
7717extern int *_nl_domain_bindings;
7718int
7719main ()
7720{
7721bindtextdomain ("", "");
7722return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
7723 ;
7724 return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext conftest$ac_exeext
7728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 gt_cv_func_gnugettext1_libc=yes
7749else
7750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753gt_cv_func_gnugettext1_libc=no
7754fi
7755rm -f conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757fi
7758echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
7759echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
7760
7761 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7762
7763
7764
7765
7766
7767 am_save_CPPFLAGS="$CPPFLAGS"
7768
7769 for element in $INCICONV; do
7770 haveit=
7771 for x in $CPPFLAGS; do
7772
7773 acl_save_prefix="$prefix"
7774 prefix="$acl_final_prefix"
7775 acl_save_exec_prefix="$exec_prefix"
7776 exec_prefix="$acl_final_exec_prefix"
7777 eval x=\"$x\"
7778 exec_prefix="$acl_save_exec_prefix"
7779 prefix="$acl_save_prefix"
7780
7781 if test "X$x" = "X$element"; then
7782 haveit=yes
7783 break
7784 fi
7785 done
7786 if test -z "$haveit"; then
7787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7788 fi
7789 done
7790
7791
7792 echo "$as_me:$LINENO: checking for iconv" >&5
7793echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7794if test "${am_cv_func_iconv+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797
7798 am_cv_func_iconv="no, consider installing GNU libiconv"
7799 am_cv_lib_iconv=no
7800 cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h. */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h. */
7806#include <stdlib.h>
7807#include <iconv.h>
7808int
7809main ()
7810{
7811iconv_t cd = iconv_open("","");
7812 iconv(cd,NULL,NULL,NULL,NULL);
7813 iconv_close(cd);
7814 ;
7815 return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext conftest$ac_exeext
7819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 am_cv_func_iconv=yes
7840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844fi
7845rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 if test "$am_cv_func_iconv" != yes; then
7848 am_save_LIBS="$LIBS"
7849 LIBS="$LIBS $LIBICONV"
7850 cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856#include <stdlib.h>
7857#include <iconv.h>
7858int
7859main ()
7860{
7861iconv_t cd = iconv_open("","");
7862 iconv(cd,NULL,NULL,NULL,NULL);
7863 iconv_close(cd);
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 am_cv_lib_iconv=yes
7890 am_cv_func_iconv=yes
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895fi
7896rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS="$am_save_LIBS"
7899 fi
7900
7901fi
7902echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7903echo "${ECHO_T}$am_cv_func_iconv" >&6
7904 if test "$am_cv_func_iconv" = yes; then
7905
7906cat >>confdefs.h <<\_ACEOF
7907#define HAVE_ICONV 1
7908_ACEOF
7909
7910 fi
7911 if test "$am_cv_lib_iconv" = yes; then
7912 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7913echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7914 echo "$as_me:$LINENO: result: $LIBICONV" >&5
7915echo "${ECHO_T}$LIBICONV" >&6
7916 else
7917 CPPFLAGS="$am_save_CPPFLAGS"
7918 LIBICONV=
7919 LTLIBICONV=
7920 fi
7921
7922
7923
7924
7925
7926
7927 use_additional=yes
7928
7929 acl_save_prefix="$prefix"
7930 prefix="$acl_final_prefix"
7931 acl_save_exec_prefix="$exec_prefix"
7932 exec_prefix="$acl_final_exec_prefix"
7933
7934 eval additional_includedir=\"$includedir\"
7935 eval additional_libdir=\"$libdir\"
7936
7937 exec_prefix="$acl_save_exec_prefix"
7938 prefix="$acl_save_prefix"
7939
7940
7941# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
7942if test "${with_libintl_prefix+set}" = set; then
7943 withval="$with_libintl_prefix"
7944
7945 if test "X$withval" = "Xno"; then
7946 use_additional=no
7947 else
7948 if test "X$withval" = "X"; then
7949
7950 acl_save_prefix="$prefix"
7951 prefix="$acl_final_prefix"
7952 acl_save_exec_prefix="$exec_prefix"
7953 exec_prefix="$acl_final_exec_prefix"
7954
7955 eval additional_includedir=\"$includedir\"
7956 eval additional_libdir=\"$libdir\"
7957
7958 exec_prefix="$acl_save_exec_prefix"
7959 prefix="$acl_save_prefix"
7960
7961 else
7962 additional_includedir="$withval/include"
7963 additional_libdir="$withval/lib"
7964 fi
7965 fi
7966
7967fi;
7968 LIBINTL=
7969 LTLIBINTL=
7970 INCINTL=
7971 rpathdirs=
7972 ltrpathdirs=
7973 names_already_handled=
7974 names_next_round='intl '
7975 while test -n "$names_next_round"; do
7976 names_this_round="$names_next_round"
7977 names_next_round=
7978 for name in $names_this_round; do
7979 already_handled=
7980 for n in $names_already_handled; do
7981 if test "$n" = "$name"; then
7982 already_handled=yes
7983 break
7984 fi
7985 done
7986 if test -z "$already_handled"; then
7987 names_already_handled="$names_already_handled $name"
7988 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7989 eval value=\"\$HAVE_LIB$uppername\"
7990 if test -n "$value"; then
7991 if test "$value" = yes; then
7992 eval value=\"\$LIB$uppername\"
7993 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7994 eval value=\"\$LTLIB$uppername\"
7995 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7996 else
7997 :
7998 fi
7999 else
8000 found_dir=
8001 found_la=
8002 found_so=
8003 found_a=
8004 if test $use_additional = yes; then
8005 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8006 found_dir="$additional_libdir"
8007 found_so="$additional_libdir/lib$name.$shlibext"
8008 if test -f "$additional_libdir/lib$name.la"; then
8009 found_la="$additional_libdir/lib$name.la"
8010 fi
8011 else
8012 if test -f "$additional_libdir/lib$name.$libext"; then
8013 found_dir="$additional_libdir"
8014 found_a="$additional_libdir/lib$name.$libext"
8015 if test -f "$additional_libdir/lib$name.la"; then
8016 found_la="$additional_libdir/lib$name.la"
8017 fi
8018 fi
8019 fi
8020 fi
8021 if test "X$found_dir" = "X"; then
8022 for x in $LDFLAGS $LTLIBINTL; do
8023
8024 acl_save_prefix="$prefix"
8025 prefix="$acl_final_prefix"
8026 acl_save_exec_prefix="$exec_prefix"
8027 exec_prefix="$acl_final_exec_prefix"
8028 eval x=\"$x\"
8029 exec_prefix="$acl_save_exec_prefix"
8030 prefix="$acl_save_prefix"
8031
8032 case "$x" in
8033 -L*)
8034 dir=`echo "X$x" | sed -e 's/^X-L//'`
8035 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8036 found_dir="$dir"
8037 found_so="$dir/lib$name.$shlibext"
8038 if test -f "$dir/lib$name.la"; then
8039 found_la="$dir/lib$name.la"
8040 fi
8041 else
8042 if test -f "$dir/lib$name.$libext"; then
8043 found_dir="$dir"
8044 found_a="$dir/lib$name.$libext"
8045 if test -f "$dir/lib$name.la"; then
8046 found_la="$dir/lib$name.la"
8047 fi
8048 fi
8049 fi
8050 ;;
8051 esac
8052 if test "X$found_dir" != "X"; then
8053 break
8054 fi
8055 done
8056 fi
8057 if test "X$found_dir" != "X"; then
8058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8059 if test "X$found_so" != "X"; then
8060 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8062 else
8063 haveit=
8064 for x in $ltrpathdirs; do
8065 if test "X$x" = "X$found_dir"; then
8066 haveit=yes
8067 break
8068 fi
8069 done
8070 if test -z "$haveit"; then
8071 ltrpathdirs="$ltrpathdirs $found_dir"
8072 fi
8073 if test "$hardcode_direct" = yes; then
8074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8075 else
8076 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8078 haveit=
8079 for x in $rpathdirs; do
8080 if test "X$x" = "X$found_dir"; then
8081 haveit=yes
8082 break
8083 fi
8084 done
8085 if test -z "$haveit"; then
8086 rpathdirs="$rpathdirs $found_dir"
8087 fi
8088 else
8089 haveit=
8090 for x in $LDFLAGS $LIBINTL; do
8091
8092 acl_save_prefix="$prefix"
8093 prefix="$acl_final_prefix"
8094 acl_save_exec_prefix="$exec_prefix"
8095 exec_prefix="$acl_final_exec_prefix"
8096 eval x=\"$x\"
8097 exec_prefix="$acl_save_exec_prefix"
8098 prefix="$acl_save_prefix"
8099
8100 if test "X$x" = "X-L$found_dir"; then
8101 haveit=yes
8102 break
8103 fi
8104 done
8105 if test -z "$haveit"; then
8106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8107 fi
8108 if test "$hardcode_minus_L" != no; then
8109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8110 else
8111 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8112 fi
8113 fi
8114 fi
8115 fi
8116 else
8117 if test "X$found_a" != "X"; then
8118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8119 else
8120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8121 fi
8122 fi
8123 additional_includedir=
8124 case "$found_dir" in
8125 */lib | */lib/)
8126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8127 additional_includedir="$basedir/include"
8128 ;;
8129 esac
8130 if test "X$additional_includedir" != "X"; then
8131 if test "X$additional_includedir" != "X/usr/include"; then
8132 haveit=
8133 if test "X$additional_includedir" = "X/usr/local/include"; then
8134 if test -n "$GCC"; then
8135 case $host_os in
8136 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8137 esac
8138 fi
8139 fi
8140 if test -z "$haveit"; then
8141 for x in $CPPFLAGS $INCINTL; do
8142
8143 acl_save_prefix="$prefix"
8144 prefix="$acl_final_prefix"
8145 acl_save_exec_prefix="$exec_prefix"
8146 exec_prefix="$acl_final_exec_prefix"
8147 eval x=\"$x\"
8148 exec_prefix="$acl_save_exec_prefix"
8149 prefix="$acl_save_prefix"
8150
8151 if test "X$x" = "X-I$additional_includedir"; then
8152 haveit=yes
8153 break
8154 fi
8155 done
8156 if test -z "$haveit"; then
8157 if test -d "$additional_includedir"; then
8158 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8159 fi
8160 fi
8161 fi
8162 fi
8163 fi
8164 if test -n "$found_la"; then
8165 save_libdir="$libdir"
8166 case "$found_la" in
8167 */* | *\\*) . "$found_la" ;;
8168 *) . "./$found_la" ;;
8169 esac
8170 libdir="$save_libdir"
8171 for dep in $dependency_libs; do
8172 case "$dep" in
8173 -L*)
8174 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8175 if test "X$additional_libdir" != "X/usr/lib"; then
8176 haveit=
8177 if test "X$additional_libdir" = "X/usr/local/lib"; then
8178 if test -n "$GCC"; then
8179 case $host_os in
8180 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8181 esac
8182 fi
8183 fi
8184 if test -z "$haveit"; then
8185 haveit=
8186 for x in $LDFLAGS $LIBINTL; do
8187
8188 acl_save_prefix="$prefix"
8189 prefix="$acl_final_prefix"
8190 acl_save_exec_prefix="$exec_prefix"
8191 exec_prefix="$acl_final_exec_prefix"
8192 eval x=\"$x\"
8193 exec_prefix="$acl_save_exec_prefix"
8194 prefix="$acl_save_prefix"
8195
8196 if test "X$x" = "X-L$additional_libdir"; then
8197 haveit=yes
8198 break
8199 fi
8200 done
8201 if test -z "$haveit"; then
8202 if test -d "$additional_libdir"; then
8203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8204 fi
8205 fi
8206 haveit=
8207 for x in $LDFLAGS $LTLIBINTL; do
8208
8209 acl_save_prefix="$prefix"
8210 prefix="$acl_final_prefix"
8211 acl_save_exec_prefix="$exec_prefix"
8212 exec_prefix="$acl_final_exec_prefix"
8213 eval x=\"$x\"
8214 exec_prefix="$acl_save_exec_prefix"
8215 prefix="$acl_save_prefix"
8216
8217 if test "X$x" = "X-L$additional_libdir"; then
8218 haveit=yes
8219 break
8220 fi
8221 done
8222 if test -z "$haveit"; then
8223 if test -d "$additional_libdir"; then
8224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8225 fi
8226 fi
8227 fi
8228 fi
8229 ;;
8230 -R*)
8231 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8232 if test "$enable_rpath" != no; then
8233 haveit=
8234 for x in $rpathdirs; do
8235 if test "X$x" = "X$dir"; then
8236 haveit=yes
8237 break
8238 fi
8239 done
8240 if test -z "$haveit"; then
8241 rpathdirs="$rpathdirs $dir"
8242 fi
8243 haveit=
8244 for x in $ltrpathdirs; do
8245 if test "X$x" = "X$dir"; then
8246 haveit=yes
8247 break
8248 fi
8249 done
8250 if test -z "$haveit"; then
8251 ltrpathdirs="$ltrpathdirs $dir"
8252 fi
8253 fi
8254 ;;
8255 -l*)
8256 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8257 ;;
8258 *.la)
8259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8260 ;;
8261 *)
8262 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8264 ;;
8265 esac
8266 done
8267 fi
8268 else
8269 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8271 fi
8272 fi
8273 fi
8274 done
8275 done
8276 if test "X$rpathdirs" != "X"; then
8277 if test -n "$hardcode_libdir_separator"; then
8278 alldirs=
8279 for found_dir in $rpathdirs; do
8280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8281 done
8282 acl_save_libdir="$libdir"
8283 libdir="$alldirs"
8284 eval flag=\"$hardcode_libdir_flag_spec\"
8285 libdir="$acl_save_libdir"
8286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8287 else
8288 for found_dir in $rpathdirs; do
8289 acl_save_libdir="$libdir"
8290 libdir="$found_dir"
8291 eval flag=\"$hardcode_libdir_flag_spec\"
8292 libdir="$acl_save_libdir"
8293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8294 done
8295 fi
8296 fi
8297 if test "X$ltrpathdirs" != "X"; then
8298 for found_dir in $ltrpathdirs; do
8299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8300 done
8301 fi
8302
8303 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8304echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8305if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308 gt_save_CPPFLAGS="$CPPFLAGS"
8309 CPPFLAGS="$CPPFLAGS $INCINTL"
8310 gt_save_LIBS="$LIBS"
8311 LIBS="$LIBS $LIBINTL"
8312 cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
8318#include <libintl.h>
8319extern int _nl_msg_cat_cntr;
8320extern
8321#ifdef __cplusplus
8322"C"
8323#endif
8324const char *_nl_expand_alias (const char *);
8325int
8326main ()
8327{
8328bindtextdomain ("", "");
8329return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
8335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 gt_cv_func_gnugettext1_libintl=yes
8356else
8357 echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360gt_cv_func_gnugettext1_libintl=no
8361fi
8362rm -f conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8365 LIBS="$LIBS $LIBICONV"
8366 cat >conftest.$ac_ext <<_ACEOF
8367/* confdefs.h. */
8368_ACEOF
8369cat confdefs.h >>conftest.$ac_ext
8370cat >>conftest.$ac_ext <<_ACEOF
8371/* end confdefs.h. */
8372#include <libintl.h>
8373extern int _nl_msg_cat_cntr;
8374extern
8375#ifdef __cplusplus
8376"C"
8377#endif
8378const char *_nl_expand_alias (const char *);
8379int
8380main ()
8381{
8382bindtextdomain ("", "");
8383return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8384 ;
8385 return 0;
8386}
8387_ACEOF
8388rm -f conftest.$ac_objext conftest$ac_exeext
8389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390 (eval $ac_link) 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 LIBINTL="$LIBINTL $LIBICONV"
8410 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8411 gt_cv_func_gnugettext1_libintl=yes
8412
8413else
8414 echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417fi
8418rm -f conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 fi
8421 CPPFLAGS="$gt_save_CPPFLAGS"
8422 LIBS="$gt_save_LIBS"
8423fi
8424echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8425echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
8426 fi
8427
8428 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8429 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8430 && test "$PACKAGE" != gettext-runtime \
8431 && test "$PACKAGE" != gettext-tools; }; then
8432 gt_use_preinstalled_gnugettext=yes
8433 else
8434 LIBINTL=
8435 LTLIBINTL=
8436 INCINTL=
8437 fi
8438
8439
8440
8441 if test -n "$INTL_MACOSX_LIBS"; then
8442 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8443 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8444 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8445 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8446 fi
8447 fi
8448
8449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8451
8452cat >>confdefs.h <<\_ACEOF
8453#define ENABLE_NLS 1
8454_ACEOF
8455
8456 else
8457 USE_NLS=no
8458 fi
8459 fi
8460
8461 echo "$as_me:$LINENO: checking whether to use NLS" >&5
8462echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
8463 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8464echo "${ECHO_T}$USE_NLS" >&6
8465 if test "$USE_NLS" = "yes"; then
8466 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8467echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
8468 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8469 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8470 gt_source="external libintl"
8471 else
8472 gt_source="libc"
8473 fi
8474 else
8475 gt_source="included intl directory"
8476 fi
8477 echo "$as_me:$LINENO: result: $gt_source" >&5
8478echo "${ECHO_T}$gt_source" >&6
8479 fi
8480
8481 if test "$USE_NLS" = "yes"; then
8482
8483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8485 echo "$as_me:$LINENO: checking how to link with libintl" >&5
8486echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
8487 echo "$as_me:$LINENO: result: $LIBINTL" >&5
8488echo "${ECHO_T}$LIBINTL" >&6
8489
8490 for element in $INCINTL; do
8491 haveit=
8492 for x in $CPPFLAGS; do
8493
8494 acl_save_prefix="$prefix"
8495 prefix="$acl_final_prefix"
8496 acl_save_exec_prefix="$exec_prefix"
8497 exec_prefix="$acl_final_exec_prefix"
8498 eval x=\"$x\"
8499 exec_prefix="$acl_save_exec_prefix"
8500 prefix="$acl_save_prefix"
8501
8502 if test "X$x" = "X$element"; then
8503 haveit=yes
8504 break
8505 fi
8506 done
8507 if test -z "$haveit"; then
8508 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8509 fi
8510 done
8511
8512 fi
8513
8514
8515cat >>confdefs.h <<\_ACEOF
8516#define HAVE_GETTEXT 1
8517_ACEOF
8518
8519
8520cat >>confdefs.h <<\_ACEOF
8521#define HAVE_DCGETTEXT 1
8522_ACEOF
8523
8524 fi
8525
8526 POSUB=po
8527 fi
8528
8529
8530
8531 INTLLIBS="$LIBINTL"
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541for ac_header in ncurses.h
8542do
8543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8544if eval "test \"\${$as_ac_Header+set}\" = set"; then
8545 echo "$as_me:$LINENO: checking for $ac_header" >&5
8546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8547if eval "test \"\${$as_ac_Header+set}\" = set"; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549fi
8550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552else
8553 # Is the header compilable?
8554echo "$as_me:$LINENO: checking $ac_header usability" >&5
8555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8556cat >conftest.$ac_ext <<_ACEOF
8557/* confdefs.h. */
8558_ACEOF
8559cat confdefs.h >>conftest.$ac_ext
8560cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */
8562$ac_includes_default
8563#include <$ac_header>
8564_ACEOF
8565rm -f conftest.$ac_objext
8566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567 (eval $ac_compile) 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_header_compiler=yes
8587else
8588 echo "$as_me: failed program was:" >&5
8589sed 's/^/| /' conftest.$ac_ext >&5
8590
8591ac_header_compiler=no
8592fi
8593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595echo "${ECHO_T}$ac_header_compiler" >&6
8596
8597# Is the header present?
8598echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606#include <$ac_header>
8607_ACEOF
8608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } >/dev/null; then
8616 if test -s conftest.err; then
8617 ac_cpp_err=$ac_c_preproc_warn_flag
8618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8619 else
8620 ac_cpp_err=
8621 fi
8622else
8623 ac_cpp_err=yes
8624fi
8625if test -z "$ac_cpp_err"; then
8626 ac_header_preproc=yes
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631 ac_header_preproc=no
8632fi
8633rm -f conftest.err conftest.$ac_ext
8634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8635echo "${ECHO_T}$ac_header_preproc" >&6
8636
8637# So? What about this header?
8638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8639 yes:no: )
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8644 ac_header_preproc=yes
8645 ;;
8646 no:yes:* )
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8659 (
8660 cat <<\_ASBOX
8661## ----------------------------- ##
8662## Report this to bunk@stusta.de ##
8663## ----------------------------- ##
8664_ASBOX
8665 ) |
8666 sed "s/^/$as_me: WARNING: /" >&2
8667 ;;
8668esac
8669echo "$as_me:$LINENO: checking for $ac_header" >&5
8670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8671if eval "test \"\${$as_ac_Header+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674 eval "$as_ac_Header=\$ac_header_preproc"
8675fi
8676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8678
8679fi
8680if test `eval echo '${'$as_ac_Header'}'` = yes; then
8681 cat >>confdefs.h <<_ACEOF
8682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8683_ACEOF
8684
8685fi
8686
8687done
8688
8689
8690for ac_header in ncurses/ncurses.h
8691do
8692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo "$as_me:$LINENO: checking for $ac_header" >&5
8695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8696if eval "test \"\${$as_ac_Header+set}\" = set"; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698fi
8699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701else
8702 # Is the header compilable?
8703echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8705cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711$ac_includes_default
8712#include <$ac_header>
8713_ACEOF
8714rm -f conftest.$ac_objext
8715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8716 (eval $ac_compile) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest.$ac_objext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_header_compiler=yes
8736else
8737 echo "$as_me: failed program was:" >&5
8738sed 's/^/| /' conftest.$ac_ext >&5
8739
8740ac_header_compiler=no
8741fi
8742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8744echo "${ECHO_T}$ac_header_compiler" >&6
8745
8746# Is the header present?
8747echo "$as_me:$LINENO: checking $ac_header presence" >&5
8748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8749cat >conftest.$ac_ext <<_ACEOF
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755#include <$ac_header>
8756_ACEOF
8757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } >/dev/null; then
8765 if test -s conftest.err; then
8766 ac_cpp_err=$ac_c_preproc_warn_flag
8767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8768 else
8769 ac_cpp_err=
8770 fi
8771else
8772 ac_cpp_err=yes
8773fi
8774if test -z "$ac_cpp_err"; then
8775 ac_header_preproc=yes
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_header_preproc=no
8781fi
8782rm -f conftest.err conftest.$ac_ext
8783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8784echo "${ECHO_T}$ac_header_preproc" >&6
8785
8786# So? What about this header?
8787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8788 yes:no: )
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8793 ac_header_preproc=yes
8794 ;;
8795 no:yes:* )
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8808 (
8809 cat <<\_ASBOX
8810## ----------------------------- ##
8811## Report this to bunk@stusta.de ##
8812## ----------------------------- ##
8813_ASBOX
8814 ) |
8815 sed "s/^/$as_me: WARNING: /" >&2
8816 ;;
8817esac
8818echo "$as_me:$LINENO: checking for $ac_header" >&5
8819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8820if eval "test \"\${$as_ac_Header+set}\" = set"; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822else
8823 eval "$as_ac_Header=\$ac_header_preproc"
8824fi
8825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8827
8828fi
8829if test `eval echo '${'$as_ac_Header'}'` = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8832_ACEOF
8833
8834fi
8835
8836done
8837
8838
8839
9cb68977 8840if test x$ac_cv_header_ncurses_h = xyes || x$ac_cv_header_ncurses_ncurses_h = xyes; then
48d7b13a
KZ
8841 have_ncurses=yes
8842 { echo "$as_me:$LINENO: you have ncurses" >&5
8843echo "$as_me: you have ncurses" >&6;}
8844else
8845 { echo "$as_me:$LINENO: you do not have ncurses" >&5
8846echo "$as_me: you do not have ncurses" >&6;}
8847fi
8848
8849
8850
8851if test x$have_ncurses = xyes; then
8852 HAVE_NCURSES_TRUE=
8853 HAVE_NCURSES_FALSE='#'
8854else
8855 HAVE_NCURSES_TRUE='#'
8856 HAVE_NCURSES_FALSE=
8857fi
8858
8859
8860
8861
8862# Check whether --with-slang or --without-slang was given.
8863if test "${with_slang+set}" = set; then
8864 withval="$with_slang"
8865 with_slang=$withval
8866else
8867 with_slang=no
8868
8869fi;
8870
8871if test x$with_slang = xyes; then
8872
8873for ac_header in slcurses.h
8874do
8875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8876if eval "test \"\${$as_ac_Header+set}\" = set"; then
8877 echo "$as_me:$LINENO: checking for $ac_header" >&5
8878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8879if eval "test \"\${$as_ac_Header+set}\" = set"; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881fi
8882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8884else
8885 # Is the header compilable?
8886echo "$as_me:$LINENO: checking $ac_header usability" >&5
8887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8888cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h. */
8890_ACEOF
8891cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF
8893/* end confdefs.h. */
8894$ac_includes_default
8895#include <$ac_header>
8896_ACEOF
8897rm -f conftest.$ac_objext
8898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899 (eval $ac_compile) 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; } &&
8912 { ac_try='test -s conftest.$ac_objext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 ac_header_compiler=yes
8919else
8920 echo "$as_me: failed program was:" >&5
8921sed 's/^/| /' conftest.$ac_ext >&5
8922
8923ac_header_compiler=no
8924fi
8925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8927echo "${ECHO_T}$ac_header_compiler" >&6
8928
8929# Is the header present?
8930echo "$as_me:$LINENO: checking $ac_header presence" >&5
8931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8932cat >conftest.$ac_ext <<_ACEOF
8933/* confdefs.h. */
8934_ACEOF
8935cat confdefs.h >>conftest.$ac_ext
8936cat >>conftest.$ac_ext <<_ACEOF
8937/* end confdefs.h. */
8938#include <$ac_header>
8939_ACEOF
8940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } >/dev/null; then
8948 if test -s conftest.err; then
8949 ac_cpp_err=$ac_c_preproc_warn_flag
8950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8951 else
8952 ac_cpp_err=
8953 fi
8954else
8955 ac_cpp_err=yes
8956fi
8957if test -z "$ac_cpp_err"; then
8958 ac_header_preproc=yes
8959else
8960 echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_header_preproc=no
8964fi
8965rm -f conftest.err conftest.$ac_ext
8966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8967echo "${ECHO_T}$ac_header_preproc" >&6
8968
8969# So? What about this header?
8970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8971 yes:no: )
8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8976 ac_header_preproc=yes
8977 ;;
8978 no:yes:* )
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8991 (
8992 cat <<\_ASBOX
8993## ----------------------------- ##
8994## Report this to bunk@stusta.de ##
8995## ----------------------------- ##
8996_ASBOX
8997 ) |
8998 sed "s/^/$as_me: WARNING: /" >&2
8999 ;;
9000esac
9001echo "$as_me:$LINENO: checking for $ac_header" >&5
9002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9003if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005else
9006 eval "$as_ac_Header=\$ac_header_preproc"
9007fi
9008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9010
9011fi
9012if test `eval echo '${'$as_ac_Header'}'` = yes; then
9013 cat >>confdefs.h <<_ACEOF
9014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9015_ACEOF
9016
9017fi
9018
9019done
9020
9021
9022for ac_header in slang/slcurses.h
9023do
9024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025if eval "test \"\${$as_ac_Header+set}\" = set"; then
9026 echo "$as_me:$LINENO: checking for $ac_header" >&5
9027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9028if eval "test \"\${$as_ac_Header+set}\" = set"; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030fi
9031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9033else
9034 # Is the header compilable?
9035echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043$ac_includes_default
9044#include <$ac_header>
9045_ACEOF
9046rm -f conftest.$ac_objext
9047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9048 (eval $ac_compile) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest.$ac_objext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_header_compiler=yes
9068else
9069 echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072ac_header_compiler=no
9073fi
9074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9076echo "${ECHO_T}$ac_header_compiler" >&6
9077
9078# Is the header present?
9079echo "$as_me:$LINENO: checking $ac_header presence" >&5
9080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9081cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
9087#include <$ac_header>
9088_ACEOF
9089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } >/dev/null; then
9097 if test -s conftest.err; then
9098 ac_cpp_err=$ac_c_preproc_warn_flag
9099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9100 else
9101 ac_cpp_err=
9102 fi
9103else
9104 ac_cpp_err=yes
9105fi
9106if test -z "$ac_cpp_err"; then
9107 ac_header_preproc=yes
9108else
9109 echo "$as_me: failed program was:" >&5
9110sed 's/^/| /' conftest.$ac_ext >&5
9111
9112 ac_header_preproc=no
9113fi
9114rm -f conftest.err conftest.$ac_ext
9115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9116echo "${ECHO_T}$ac_header_preproc" >&6
9117
9118# So? What about this header?
9119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9120 yes:no: )
9121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9125 ac_header_preproc=yes
9126 ;;
9127 no:yes:* )
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9140 (
9141 cat <<\_ASBOX
9142## ----------------------------- ##
9143## Report this to bunk@stusta.de ##
9144## ----------------------------- ##
9145_ASBOX
9146 ) |
9147 sed "s/^/$as_me: WARNING: /" >&2
9148 ;;
9149esac
9150echo "$as_me:$LINENO: checking for $ac_header" >&5
9151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9152if eval "test \"\${$as_ac_Header+set}\" = set"; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 eval "$as_ac_Header=\$ac_header_preproc"
9156fi
9157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9159
9160fi
9161if test `eval echo '${'$as_ac_Header'}'` = yes; then
9162 cat >>confdefs.h <<_ACEOF
9163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9164_ACEOF
9165
9166fi
9167
9168done
9169
9cb68977 9170 if test x$ac_cv_header_slcurses_h = xyes || x$ac_cv_header_slang_slcurses_h = xyes; then
48d7b13a
KZ
9171 use_slang=yes
9172 else
9173 { { echo "$as_me:$LINENO: error: slang selected but slcurses.h not found" >&5
9174echo "$as_me: error: slang selected but slcurses.h not found" >&2;}
9175 { (exit 1); exit 1; }; }
9176 fi
9177fi
9178
9179
9180
9181if test x$use_slang = xyes; then
9182 USE_SLANG_TRUE=
9183 USE_SLANG_FALSE='#'
9184else
9185 USE_SLANG_TRUE='#'
9186 USE_SLANG_FALSE=
9187fi
9188
9189
9190
9191cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197
9198#define _XOPEN_SOURCE
9199#include <unistd.h>
9200
9201int
9202main ()
9203{
9204
9205char *c = crypt("abc","pw");
9206
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext conftest$ac_exeext
9212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 :
9233else
9234 echo "$as_me: failed program was:" >&5
9235sed 's/^/| /' conftest.$ac_ext >&5
9236
9237
48d7b13a
KZ
9238 LIBS="$LIBS -lcrypt"
9239 cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h. */
9245
9246 #define _XOPEN_SOURCE
9247 #include <unistd.h>
9248
9249int
9250main ()
9251{
9252
9253 char *c = crypt("abc","pw");
9254
9255 ;
9256 return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext
9260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261 (eval $ac_compile) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; } &&
9274 { ac_try='test -s conftest.$ac_objext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280
9281
9282cat >>confdefs.h <<\_ACEOF
9283#define NEED_LIBCRYPT 1
9284_ACEOF
9285
9286 need_libcrypt=yes
9287
9288else
9289 echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
9292
9293 { { echo "$as_me:$LINENO: error: crypt() is not available" >&5
9294echo "$as_me: error: crypt() is not available" >&2;}
9295 { (exit 1); exit 1; }; }
9296
9297fi
9298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48d7b13a
KZ
9299
9300fi
9301rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9303
9304
9305
9306if test x$need_libcrypt = xyes; then
9307 NEED_LIBCRYPT_TRUE=
9308 NEED_LIBCRYPT_FALSE='#'
9309else
9310 NEED_LIBCRYPT_TRUE='#'
9311 NEED_LIBCRYPT_FALSE=
9312fi
9313
9314
9315cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321
9322#include <stdio.h>
9323
9324int
9325main ()
9326{
9327
9328printf(__progname);
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334rm -f conftest.$ac_objext
9335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355
9356cat >>confdefs.h <<\_ACEOF
9357#define HAVE___PROGNAME 1
9358_ACEOF
9359
9360
9361else
9362 echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365fi
9366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9367
9368
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h. */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h. */
9375
9376#include <wchar.h>
9377#include <wctype.h>
9378#include <stdio.h>
9379
9380int
9381main ()
9382{
9383
9384 wchar_t wc;
9385 wint_t w;
9386 w = fgetwc(stdin);
9387 if (w == WEOF) exit(1);
9388 wc = w;
9389 fputwc(wc,stdout);
9390
9391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext
9396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416
9417cat >>confdefs.h <<\_ACEOF
9418#define HAVE_WIDECHAR 1
9419_ACEOF
9420
9421else
9422 echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425fi
9426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9427
9428
9429cat >conftest.$ac_ext <<_ACEOF
9430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
9435
9436#include <sys/syscall.h>
9437#include <unistd.h>
9438
9439int
9440main ()
9441{
9442
9443int test = SYS_pivot_root;
9444
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext
9450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451 (eval $ac_compile) 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest.$ac_objext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 have_pivot_root=true
9471else
9472 echo "$as_me: failed program was:" >&5
9473sed 's/^/| /' conftest.$ac_ext >&5
9474
9475fi
9476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9477
9478
9479
9480if test x$have_pivot_root = xtrue; then
9481 HAVE_PIVOT_ROOT_TRUE=
9482 HAVE_PIVOT_ROOT_FALSE='#'
9483else
9484 HAVE_PIVOT_ROOT_TRUE='#'
9485 HAVE_PIVOT_ROOT_FALSE=
9486fi
9487
9488
9489
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496
9497#include <time.h>
9498#include <unistd.h>
9499
9500int
9501main ()
9502{
9503
9504 int a = 0;
9505 struct tm *tm = localtime(0);
9506 if (a == -1) /* false */
9507 sleep(tm->tm_gmtoff);
9508
9509 ;
9510 return 0;
9511}
9512_ACEOF
9513rm -f conftest.$ac_objext
9514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9515 (eval $ac_compile) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest.$ac_objext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534
9535cat >>confdefs.h <<\_ACEOF
9536#define HAVE_TM_GMTOFF 1
9537_ACEOF
eb63b9b8 9538
48d7b13a
KZ
9539else
9540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
9543fi
9544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9545
9546
9547case "$host" in
ca3ea756
KZ
9548 i?86-*) intel=true ;;
9549 m68*) m68k=true ;;
48d7b13a
KZ
9550 sparc*) sparc=true ;;
9551esac
9552
9553
9554
9555if test x$intel = xtrue; then
9556 INTEL_TRUE=
9557 INTEL_FALSE='#'
9558else
9559 INTEL_TRUE='#'
9560 INTEL_FALSE=
9561fi
9562
9563
9564
ca3ea756
KZ
9565if test x$m68k = xtrue; then
9566 M68K_TRUE=
9567 M68K_FALSE='#'
9568else
9569 M68K_TRUE='#'
9570 M68K_FALSE=
9571fi
9572
9573
9574
48d7b13a
KZ
9575if test x$sparc = xtrue; then
9576 SPARC_TRUE=
9577 SPARC_FALSE='#'
9578else
9579 SPARC_TRUE='#'
9580 SPARC_FALSE=
9581fi
9582
9583
9584
9585# Check whether --enable-agetty or --disable-agetty was given.
9586if test "${enable_agetty+set}" = set; then
9587 enableval="$enable_agetty"
baf39af1 9588 enable_agetty=$enableval
48d7b13a 9589else
baf39af1 9590 enable_agetty=yes
48d7b13a
KZ
9591
9592fi;
9593
9594
baf39af1 9595if test x$enable_agetty = xyes; then
48d7b13a
KZ
9596 BUILD_AGETTY_TRUE=
9597 BUILD_AGETTY_FALSE='#'
9598else
9599 BUILD_AGETTY_TRUE='#'
9600 BUILD_AGETTY_FALSE=
9601fi
9602
9603
9604
9cb68977
KZ
9605# Check whether --enable-cramfs or --disable-cramfs was given.
9606if test "${enable_cramfs+set}" = set; then
9607 enableval="$enable_cramfs"
9608 enable_cramfs=$enableval
9609else
9610 enable_cramfs=check
9611
9612fi;
9613
9614if test x$enable_cramfs != xno; then
9615
9616echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
9617echo $ECHO_N "checking for crc32 in -lz... $ECHO_C" >&6
9618if test "${ac_cv_lib_z_crc32+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621 ac_check_lib_save_LIBS=$LIBS
9622LIBS="-lz $LIBS"
9623cat >conftest.$ac_ext <<_ACEOF
9624/* confdefs.h. */
9625_ACEOF
9626cat confdefs.h >>conftest.$ac_ext
9627cat >>conftest.$ac_ext <<_ACEOF
9628/* end confdefs.h. */
9629
9630/* Override any gcc2 internal prototype to avoid an error. */
9631#ifdef __cplusplus
9632extern "C"
9633#endif
9634/* We use char because int might match the return type of a gcc2
9635 builtin and then its argument prototype would still apply. */
9636char crc32 ();
9637int
9638main ()
9639{
9640crc32 ();
9641 ;
9642 return 0;
9643}
9644_ACEOF
9645rm -f conftest.$ac_objext conftest$ac_exeext
9646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9647 (eval $ac_link) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9666 ac_cv_lib_z_crc32=yes
9667else
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671ac_cv_lib_z_crc32=no
9672fi
9673rm -f conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675LIBS=$ac_check_lib_save_LIBS
9676fi
9677echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
9678echo "${ECHO_T}$ac_cv_lib_z_crc32" >&6
9679if test $ac_cv_lib_z_crc32 = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681#define HAVE_LIBZ 1
9682_ACEOF
9683
9684 LIBS="-lz $LIBS"
9685
9686fi
9687
9688 build_cramfs=$ac_cv_lib_z_crc32
9689 if test x$enable_cramfs = xyes && test x$ac_cv_lib_z_crc32 = xno; then
9690 { { echo "$as_me:$LINENO: error: cramfs selected but libz not found" >&5
9691echo "$as_me: error: cramfs selected but libz not found" >&2;}
9692 { (exit 1); exit 1; }; }
9693 fi
9694fi
9695
9696
9697
9698if test x$build_cramfs = xyes; then
9699 BUILD_CRAMFS_TRUE=
9700 BUILD_CRAMFS_FALSE='#'
9701else
9702 BUILD_CRAMFS_TRUE='#'
9703 BUILD_CRAMFS_FALSE=
9704fi
9705
9706
9707
48d7b13a
KZ
9708# Check whether --enable-elvtune or --disable-elvtune was given.
9709if test "${enable_elvtune+set}" = set; then
9710 enableval="$enable_elvtune"
baf39af1 9711 enable_elvtune=$enableval
48d7b13a 9712else
baf39af1 9713 enable_elvtune=no
48d7b13a
KZ
9714
9715fi;
9716
9717
baf39af1 9718if test x$enable_elvtune = xyes; then
48d7b13a
KZ
9719 BUILD_ELVTUNE_TRUE=
9720 BUILD_ELVTUNE_FALSE='#'
9721else
9722 BUILD_ELVTUNE_TRUE='#'
9723 BUILD_ELVTUNE_FALSE=
9724fi
9725
9726
9727
9728# Check whether --enable-init or --disable-init was given.
9729if test "${enable_init+set}" = set; then
9730 enableval="$enable_init"
baf39af1 9731 enable_init=$enableval
48d7b13a 9732else
baf39af1 9733 enable_init=no
48d7b13a
KZ
9734
9735fi;
9736
9737
baf39af1 9738if test x$enable_init = xyes; then
48d7b13a
KZ
9739 BUILD_INIT_TRUE=
9740 BUILD_INIT_FALSE='#'
9741else
9742 BUILD_INIT_TRUE='#'
9743 BUILD_INIT_FALSE=
9744fi
9745
9746
9747
9748# Check whether --enable-kill or --disable-kill was given.
9749if test "${enable_kill+set}" = set; then
9750 enableval="$enable_kill"
baf39af1 9751 enable_kill=$enableval
48d7b13a 9752else
baf39af1 9753 enable_kill=no
48d7b13a
KZ
9754
9755fi;
9756
9757
baf39af1 9758if test x$enable_kill = xyes; then
48d7b13a
KZ
9759 BUILD_KILL_TRUE=
9760 BUILD_KILL_FALSE='#'
9761else
9762 BUILD_KILL_TRUE='#'
9763 BUILD_KILL_FALSE=
9764fi
9765
9766
9767
9768# Check whether --enable-last or --disable-last was given.
9769if test "${enable_last+set}" = set; then
9770 enableval="$enable_last"
baf39af1 9771 enable_last=$enableval
48d7b13a 9772else
baf39af1 9773 enable_last=no
48d7b13a
KZ
9774
9775fi;
9776
9777
baf39af1 9778if test x$enable_last = xyes; then
48d7b13a
KZ
9779 BUILD_LAST_TRUE=
9780 BUILD_LAST_FALSE='#'
9781else
9782 BUILD_LAST_TRUE='#'
9783 BUILD_LAST_FALSE=
9784fi
9785
9786
9787
9788# Check whether --enable-mesg or --disable-mesg was given.
9789if test "${enable_mesg+set}" = set; then
9790 enableval="$enable_mesg"
baf39af1 9791 enable_mesg=$enableval
48d7b13a 9792else
baf39af1 9793 enable_mesg=no
48d7b13a
KZ
9794
9795fi;
9796
9797
baf39af1 9798if test x$enable_mesg = xyes; then
48d7b13a
KZ
9799 BUILD_MESG_TRUE=
9800 BUILD_MESG_FALSE='#'
9801else
9802 BUILD_MESG_TRUE='#'
9803 BUILD_MESG_FALSE=
9804fi
9805
9806
9807
9808# Check whether --enable-partx or --disable-partx was given.
9809if test "${enable_partx+set}" = set; then
9810 enableval="$enable_partx"
baf39af1 9811 enable_partx=$enableval
48d7b13a 9812else
baf39af1 9813 enable_partx=no
48d7b13a
KZ
9814
9815fi;
9816
9817
baf39af1 9818if test x$enable_partx = xyes; then
48d7b13a
KZ
9819 BUILD_PARTX_TRUE=
9820 BUILD_PARTX_FALSE='#'
9821else
9822 BUILD_PARTX_TRUE='#'
9823 BUILD_PARTX_FALSE=
9824fi
9825
9826
9827
9828# Check whether --enable-raw or --disable-raw was given.
9829if test "${enable_raw+set}" = set; then
9830 enableval="$enable_raw"
baf39af1 9831 enable_raw=$enableval
48d7b13a 9832else
baf39af1 9833 enable_raw=no
48d7b13a
KZ
9834
9835fi;
9836
9837
baf39af1 9838if test x$enable_raw = xyes; then
48d7b13a
KZ
9839 BUILD_RAW_TRUE=
9840 BUILD_RAW_FALSE='#'
9841else
9842 BUILD_RAW_TRUE='#'
9843 BUILD_RAW_FALSE=
9844fi
9845
9846
9847
9848# Check whether --enable-rdev or --disable-rdev was given.
9849if test "${enable_rdev+set}" = set; then
9850 enableval="$enable_rdev"
baf39af1 9851 enable_rdev=$enableval
48d7b13a 9852else
baf39af1 9853 enable_rdev=no
48d7b13a
KZ
9854
9855fi;
9856
9857
baf39af1 9858if test x$enable_rdev = xyes; then
48d7b13a
KZ
9859 BUILD_RDEV_TRUE=
9860 BUILD_RDEV_FALSE='#'
9861else
9862 BUILD_RDEV_TRUE='#'
9863 BUILD_RDEV_FALSE=
9864fi
9865
9866
9867
9868# Check whether --enable-rename or --disable-rename was given.
9869if test "${enable_rename+set}" = set; then
9870 enableval="$enable_rename"
baf39af1 9871 enable_agetty=$enableval
48d7b13a 9872else
baf39af1 9873 enable_rename=yes
48d7b13a
KZ
9874
9875fi;
9876
9877
baf39af1 9878if test x$enable_rename = xyes; then
48d7b13a
KZ
9879 BUILD_RENAME_TRUE=
9880 BUILD_RENAME_FALSE='#'
9881else
9882 BUILD_RENAME_TRUE='#'
9883 BUILD_RENAME_FALSE=
9884fi
9885
9886
9887
9888# Check whether --enable-reset or --disable-reset was given.
9889if test "${enable_reset+set}" = set; then
9890 enableval="$enable_reset"
baf39af1 9891 enable_reset=$enableval
48d7b13a 9892else
baf39af1 9893 enable_reset=no
48d7b13a
KZ
9894
9895fi;
9896
9897
baf39af1 9898if test x$enable_reset = xyes; then
48d7b13a
KZ
9899 BUILD_RESET_TRUE=
9900 BUILD_RESET_FALSE='#'
9901else
9902 BUILD_RESET_TRUE='#'
9903 BUILD_RESET_FALSE=
9904fi
9905
9906
9907
9908# Check whether --enable-login-utils or --disable-login-utils was given.
9909if test "${enable_login_utils+set}" = set; then
9910 enableval="$enable_login_utils"
baf39af1 9911 enable_login_utils=$enableval
48d7b13a 9912else
baf39af1 9913 enable_login_utils=no
48d7b13a
KZ
9914
9915fi;
9916
9917
baf39af1 9918if test x$enable_login_utils = xyes; then
48d7b13a
KZ
9919 BUILD_LOGIN_UTILS_TRUE=
9920 BUILD_LOGIN_UTILS_FALSE='#'
9921else
9922 BUILD_LOGIN_UTILS_TRUE='#'
9923 BUILD_LOGIN_UTILS_FALSE=
9924fi
9925
9926
9927
9cb68977
KZ
9928# Check whether --with-pam or --without-pam was given.
9929if test "${with_pam+set}" = set; then
9930 withval="$with_pam"
9931 with_pam=$withval
9932else
9933 with_pam=not_checked
9934
9935fi;
9936
9937if test x$enable_login_utils = xyes && test x$with_pam != xno; then
9938
9939for ac_header in security/pam_misc.h
9940do
9941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942if eval "test \"\${$as_ac_Header+set}\" = set"; then
9943 echo "$as_me:$LINENO: checking for $ac_header" >&5
9944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9945if eval "test \"\${$as_ac_Header+set}\" = set"; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947fi
9948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9950else
9951 # Is the header compilable?
9952echo "$as_me:$LINENO: checking $ac_header usability" >&5
9953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9954cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960$ac_includes_default
9961#include <$ac_header>
9962_ACEOF
9963rm -f conftest.$ac_objext
9964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965 (eval $ac_compile) 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
9984 ac_header_compiler=yes
9985else
9986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989ac_header_compiler=no
9990fi
9991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6
9994
9995# Is the header present?
9996echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <$ac_header>
10005_ACEOF
10006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } >/dev/null; then
10014 if test -s conftest.err; then
10015 ac_cpp_err=$ac_c_preproc_warn_flag
10016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10017 else
10018 ac_cpp_err=
10019 fi
10020else
10021 ac_cpp_err=yes
10022fi
10023if test -z "$ac_cpp_err"; then
10024 ac_header_preproc=yes
10025else
10026 echo "$as_me: failed program was:" >&5
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_header_preproc=no
10030fi
10031rm -f conftest.err conftest.$ac_ext
10032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10033echo "${ECHO_T}$ac_header_preproc" >&6
10034
10035# So? What about this header?
10036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10037 yes:no: )
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10042 ac_header_preproc=yes
10043 ;;
10044 no:yes:* )
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10057 (
10058 cat <<\_ASBOX
10059## ----------------------------- ##
10060## Report this to bunk@stusta.de ##
10061## ----------------------------- ##
10062_ASBOX
10063 ) |
10064 sed "s/^/$as_me: WARNING: /" >&2
10065 ;;
10066esac
10067echo "$as_me:$LINENO: checking for $ac_header" >&5
10068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10069if eval "test \"\${$as_ac_Header+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 eval "$as_ac_Header=\$ac_header_preproc"
10073fi
10074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10076
10077fi
10078if test `eval echo '${'$as_ac_Header'}'` = yes; then
10079 cat >>confdefs.h <<_ACEOF
10080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10081_ACEOF
10082
10083fi
10084
10085done
10086
10087 if test x$with_pam = xyes && test x$ac_cv_header_security_pam_misc_h = xno; then
10088 { { echo "$as_me:$LINENO: error: PAM selected but security/pam_misc.h not found" >&5
10089echo "$as_me: error: PAM selected but security/pam_misc.h not found" >&2;}
10090 { (exit 1); exit 1; }; }
10091 fi
10092fi
10093
10094
10095if test x$ac_cv_header_security_pam_misc_h = xyes; then
10096 HAVE_PAM_TRUE=
10097 HAVE_PAM_FALSE='#'
10098else
10099 HAVE_PAM_TRUE='#'
10100 HAVE_PAM_FALSE=
10101fi
10102
10103
10104
10105# Check whether --with-selinux or --without-selinux was given.
10106if test "${with_selinux+set}" = set; then
10107 withval="$with_selinux"
10108 with_selinux=$withval
10109else
10110 with_selinux=not_checked
10111
10112fi;
10113
10114if test x$enable_login_utils = xyes && test x$with_selinux != xno; then
10115
10116echo "$as_me:$LINENO: checking for getprevcon in -lselinux" >&5
10117echo $ECHO_N "checking for getprevcon in -lselinux... $ECHO_C" >&6
10118if test "${ac_cv_lib_selinux_getprevcon+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121 ac_check_lib_save_LIBS=$LIBS
10122LIBS="-lselinux $LIBS"
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129
10130/* Override any gcc2 internal prototype to avoid an error. */
10131#ifdef __cplusplus
10132extern "C"
10133#endif
10134/* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136char getprevcon ();
10137int
10138main ()
10139{
10140getprevcon ();
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_lib_selinux_getprevcon=yes
10167else
10168 echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171ac_cv_lib_selinux_getprevcon=no
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175LIBS=$ac_check_lib_save_LIBS
10176fi
10177echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getprevcon" >&5
10178echo "${ECHO_T}$ac_cv_lib_selinux_getprevcon" >&6
10179if test $ac_cv_lib_selinux_getprevcon = yes; then
10180 cat >>confdefs.h <<_ACEOF
10181#define HAVE_LIBSELINUX 1
10182_ACEOF
10183
10184 LIBS="-lselinux $LIBS"
10185
10186fi
10187
10188 if test x$with_selinux = xyes && test x$ac_cv_lib_selinux_getprevcon = xno; then
10189 { { echo "$as_me:$LINENO: error: SELinux selected but libselinux not found" >&5
10190echo "$as_me: error: SELinux selected but libselinux not found" >&2;}
10191 { (exit 1); exit 1; }; }
10192 fi
10193fi
10194
10195
10196if test x$ac_cv_lib_selinux_getprevcon = xyes; then
10197 HAVE_SELINUX_TRUE=
10198 HAVE_SELINUX_FALSE='#'
10199else
10200 HAVE_SELINUX_TRUE='#'
10201 HAVE_SELINUX_FALSE=
10202fi
10203
10204
10205
10206
48d7b13a
KZ
10207# Check whether --enable-schedutils or --disable-schedutils was given.
10208if test "${enable_schedutils+set}" = set; then
10209 enableval="$enable_schedutils"
baf39af1 10210 enable_schedutils=$enableval
48d7b13a 10211else
baf39af1 10212 enable_schedutils=yes
48d7b13a
KZ
10213
10214fi;
10215
10216
baf39af1 10217if test x$enable_schedutils = xyes; then
48d7b13a
KZ
10218 BUILD_SCHEDUTILS_TRUE=
10219 BUILD_SCHEDUTILS_FALSE='#'
10220else
10221 BUILD_SCHEDUTILS_TRUE='#'
10222 BUILD_SCHEDUTILS_FALSE=
10223fi
10224
10225
10226
10227# Check whether --enable-wall or --disable-wall was given.
10228if test "${enable_wall+set}" = set; then
10229 enableval="$enable_wall"
baf39af1 10230 enable_wall=$enableval
48d7b13a 10231else
baf39af1 10232 enable_wall=yes
48d7b13a
KZ
10233
10234fi;
10235
10236
baf39af1 10237if test x$enable_wall = xyes; then
48d7b13a
KZ
10238 BUILD_WALL_TRUE=
10239 BUILD_WALL_FALSE='#'
10240else
10241 BUILD_WALL_TRUE='#'
10242 BUILD_WALL_FALSE=
10243fi
10244
10245
10246
10247# Check whether --enable-write or --disable-write was given.
10248if test "${enable_write+set}" = set; then
10249 enableval="$enable_write"
baf39af1 10250 enable_write=$enableval
48d7b13a 10251else
baf39af1 10252 enable_write=no
48d7b13a
KZ
10253
10254fi;
10255
10256
baf39af1 10257if test x$enable_write = xyes; then
48d7b13a
KZ
10258 BUILD_WRITE_TRUE=
10259 BUILD_WRITE_FALSE='#'
10260else
10261 BUILD_WRITE_TRUE='#'
10262 BUILD_WRITE_FALSE=
10263fi
10264
10265
10266
10267# Check whether --enable-chsh-only-listed or --disable-chsh-only-listed was given.
10268if test "${enable_chsh_only_listed+set}" = set; then
10269 enableval="$enable_chsh_only_listed"
baf39af1 10270 enable_login_chsh_only_listed=$enableval
48d7b13a 10271else
baf39af1 10272 enable_chsh_only_listed=yes
48d7b13a
KZ
10273
10274fi;
10275
baf39af1 10276if test x$enable_chsh_only_listed = xyes; then
48d7b13a
KZ
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define ONLY_LISTED_SHELLS 1
10280_ACEOF
10281
10282fi
10283
10284
10285# Check whether --enable-login-chown-vcs or --disable-login-chown-vcs was given.
10286if test "${enable_login_chown_vcs+set}" = set; then
10287 enableval="$enable_login_chown_vcs"
baf39af1 10288 enable_login_chown_vcs=$enableval
48d7b13a 10289else
baf39af1 10290 enable_login_chown_vcs=no
48d7b13a
KZ
10291
10292fi;
10293
baf39af1 10294if test x$enable_login_chown_vcs = xyes; then
48d7b13a
KZ
10295
10296cat >>confdefs.h <<\_ACEOF
10297#define LOGIN_CHOWN_VCS 1
10298_ACEOF
10299
10300fi
10301
10302
10303# Check whether --enable-login-stat-mail or --disable-login-stat-mail was given.
10304if test "${enable_login_stat_mail+set}" = set; then
10305 enableval="$enable_login_stat_mail"
baf39af1 10306 enable_login_stat_mail=$enableval
48d7b13a 10307else
baf39af1 10308 enable_login_stat_mail=no
48d7b13a
KZ
10309
10310fi;
10311
baf39af1 10312if test x$enable_login_stat_mail = xyes; then
48d7b13a
KZ
10313
10314cat >>confdefs.h <<\_ACEOF
10315#define LOGIN_STAT_MAIL 1
10316_ACEOF
10317
10318fi
10319
10320
10321# Check whether --enable-pg-bell or --disable-pg-bell was given.
10322if test "${enable_pg_bell+set}" = set; then
10323 enableval="$enable_pg_bell"
baf39af1 10324 enable_pg_bell=$enableval
48d7b13a 10325else
baf39af1 10326 enable_pg_bell=yes
48d7b13a
KZ
10327
10328fi;
10329
baf39af1 10330if test x$enable_pg_bell = xyes; then
48d7b13a
KZ
10331
10332cat >>confdefs.h <<\_ACEOF
10333#define PG_BELL 1
10334_ACEOF
10335
10336fi
10337
10338
10339# Check whether --enable-require-password or --disable-require-password was given.
10340if test "${enable_require_password+set}" = set; then
10341 enableval="$enable_require_password"
baf39af1 10342 enable_require_password=$enableval
48d7b13a 10343else
baf39af1 10344 enable_require_password=yes
48d7b13a
KZ
10345
10346fi;
10347
baf39af1 10348if test x$enable_require_password = xyes; then
48d7b13a
KZ
10349
10350cat >>confdefs.h <<\_ACEOF
10351#define REQUIRE_PASSWORD 1
10352_ACEOF
10353
10354fi
10355
10356
10357# Check whether --enable-use-tty-group or --disable-use-tty-group was given.
10358if test "${enable_use_tty_group+set}" = set; then
10359 enableval="$enable_use_tty_group"
baf39af1 10360 enable_use_tty_group=$enableval
48d7b13a 10361else
baf39af1 10362 enable_use_tty_group=yes
48d7b13a
KZ
10363
10364fi;
10365
10366
baf39af1 10367if test x$enable_use_tty_group = xyes; then
48d7b13a
KZ
10368 USE_TTY_GROUP_TRUE=
10369 USE_TTY_GROUP_FALSE='#'
10370else
10371 USE_TTY_GROUP_TRUE='#'
10372 USE_TTY_GROUP_FALSE=
10373fi
10374
10375
baf39af1 10376if test x$enable_use_tty_group = xyes; then
48d7b13a
KZ
10377
10378cat >>confdefs.h <<\_ACEOF
10379#define USE_TTY_GROUP 1
10380_ACEOF
10381
10382fi
10383
10384
9cb68977 10385LIBS=""
48d7b13a 10386
baf39af1 10387CPPFLAGS="-fsigned-char -Wall -Wmissing-prototypes -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -fomit-frame-pointer $CPPFLAGS"
48d7b13a
KZ
10388
10389
10390 ac_config_headers="$ac_config_headers config.h"
10391
10392
10393 ac_config_files="$ac_config_files Makefile disk-utils/Makefile fdisk/Makefile getopt/Makefile hwclock/Makefile lib/Makefile login-utils/Makefile misc-utils/Makefile mount/Makefile partx/Makefile po/Makefile.in schedutils/Makefile sys-utils/Makefile text-utils/Makefile"
10394
10395
10396cat >confcache <<\_ACEOF
10397# This file is a shell script that caches the results of configure
10398# tests run on this system so they can be shared between configure
10399# scripts and configure runs, see configure's option --config-cache.
10400# It is not useful on other systems. If it contains results you don't
10401# want to keep, you may remove or edit it.
10402#
10403# config.status only pays attention to the cache file if you give it
10404# the --recheck option to rerun configure.
10405#
10406# `ac_cv_env_foo' variables (set or unset) will be overridden when
10407# loading this file, other *unset* `ac_cv_foo' will be assigned the
10408# following values.
10409
10410_ACEOF
10411
10412# The following way of writing the cache mishandles newlines in values,
10413# but we know of no workaround that is simple, portable, and efficient.
10414# So, don't put newlines in cache variables' values.
10415# Ultrix sh set writes to stderr and can't be redirected directly,
10416# and sets the high bit in the cache file unless we assign to the vars.
10417{
10418 (set) 2>&1 |
10419 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10420 *ac_space=\ *)
10421 # `set' does not quote correctly, so add quotes (double-quote
10422 # substitution turns \\\\ into \\, and sed turns \\ into \).
10423 sed -n \
10424 "s/'/'\\\\''/g;
10425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10426 ;;
10427 *)
10428 # `set' quotes correctly as required by POSIX, so do not add quotes.
10429 sed -n \
10430 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10431 ;;
10432 esac;
10433} |
10434 sed '
10435 t clear
10436 : clear
10437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10438 t end
10439 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10440 : end' >>confcache
10441if diff $cache_file confcache >/dev/null 2>&1; then :; else
10442 if test -w $cache_file; then
10443 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10444 cat confcache >$cache_file
10445 else
10446 echo "not updating unwritable cache $cache_file"
10447 fi
10448fi
10449rm -f confcache
10450
10451test "x$prefix" = xNONE && prefix=$ac_default_prefix
10452# Let make expand exec_prefix.
10453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10454
10455# VPATH may cause trouble with some makes, so we remove $(srcdir),
10456# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10457# trailing colons and then remove the whole line if VPATH becomes empty
10458# (actually we leave an empty line to preserve line numbers).
10459if test "x$srcdir" = x.; then
10460 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10461s/:*\$(srcdir):*/:/;
10462s/:*\${srcdir}:*/:/;
10463s/:*@srcdir@:*/:/;
10464s/^\([^=]*=[ ]*\):*/\1/;
10465s/:*$//;
10466s/^[^=]*=[ ]*$//;
10467}'
10468fi
10469
10470DEFS=-DHAVE_CONFIG_H
10471
10472ac_libobjs=
10473ac_ltlibobjs=
10474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10475 # 1. Remove the extension, and $U if already installed.
10476 ac_i=`echo "$ac_i" |
10477 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10478 # 2. Add them.
10479 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10480 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10481done
10482LIBOBJS=$ac_libobjs
10483
10484LTLIBOBJS=$ac_ltlibobjs
10485
10486
10487if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10488 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10489Usually this means the macro was only invoked conditionally." >&5
10490echo "$as_me: error: conditional \"AMDEP\" was never defined.
10491Usually this means the macro was only invoked conditionally." >&2;}
10492 { (exit 1); exit 1; }; }
10493fi
10494if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10495 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10496Usually this means the macro was only invoked conditionally." >&5
10497echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10498Usually this means the macro was only invoked conditionally." >&2;}
10499 { (exit 1); exit 1; }; }
10500fi
48d7b13a
KZ
10501if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
10502 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined.
10503Usually this means the macro was only invoked conditionally." >&5
10504echo "$as_me: error: conditional \"HAVE_RAW\" was never defined.
10505Usually this means the macro was only invoked conditionally." >&2;}
10506 { (exit 1); exit 1; }; }
10507fi
48d7b13a
KZ
10508if test -z "${HAVE_UUID_TRUE}" && test -z "${HAVE_UUID_FALSE}"; then
10509 { { echo "$as_me:$LINENO: error: conditional \"HAVE_UUID\" was never defined.
10510Usually this means the macro was only invoked conditionally." >&5
10511echo "$as_me: error: conditional \"HAVE_UUID\" was never defined.
10512Usually this means the macro was only invoked conditionally." >&2;}
10513 { (exit 1); exit 1; }; }
10514fi
10515if test -z "${HAVE_LIBUTIL_TRUE}" && test -z "${HAVE_LIBUTIL_FALSE}"; then
10516 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBUTIL\" was never defined.
10517Usually this means the macro was only invoked conditionally." >&5
10518echo "$as_me: error: conditional \"HAVE_LIBUTIL\" was never defined.
10519Usually this means the macro was only invoked conditionally." >&2;}
10520 { (exit 1); exit 1; }; }
10521fi
10522if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
10523 { { echo "$as_me:$LINENO: error: conditional \"HAVE_TERMCAP\" was never defined.
10524Usually this means the macro was only invoked conditionally." >&5
10525echo "$as_me: error: conditional \"HAVE_TERMCAP\" was never defined.
10526Usually this means the macro was only invoked conditionally." >&2;}
10527 { (exit 1); exit 1; }; }
10528fi
48d7b13a
KZ
10529if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
10530 { { echo "$as_me:$LINENO: error: conditional \"HAVE_BLKID\" was never defined.
10531Usually this means the macro was only invoked conditionally." >&5
10532echo "$as_me: error: conditional \"HAVE_BLKID\" was never defined.
10533Usually this means the macro was only invoked conditionally." >&2;}
10534 { (exit 1); exit 1; }; }
10535fi
48d7b13a
KZ
10536if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
10537 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
10538Usually this means the macro was only invoked conditionally." >&5
10539echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
10540Usually this means the macro was only invoked conditionally." >&2;}
10541 { (exit 1); exit 1; }; }
10542fi
10543if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then
10544 { { echo "$as_me:$LINENO: error: conditional \"USE_SLANG\" was never defined.
10545Usually this means the macro was only invoked conditionally." >&5
10546echo "$as_me: error: conditional \"USE_SLANG\" was never defined.
10547Usually this means the macro was only invoked conditionally." >&2;}
10548 { (exit 1); exit 1; }; }
10549fi
10550if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then
10551 { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBCRYPT\" was never defined.
10552Usually this means the macro was only invoked conditionally." >&5
10553echo "$as_me: error: conditional \"NEED_LIBCRYPT\" was never defined.
10554Usually this means the macro was only invoked conditionally." >&2;}
10555 { (exit 1); exit 1; }; }
10556fi
10557if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
10558 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
10559Usually this means the macro was only invoked conditionally." >&5
10560echo "$as_me: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
10561Usually this means the macro was only invoked conditionally." >&2;}
10562 { (exit 1); exit 1; }; }
10563fi
10564if test -z "${INTEL_TRUE}" && test -z "${INTEL_FALSE}"; then
10565 { { echo "$as_me:$LINENO: error: conditional \"INTEL\" was never defined.
10566Usually this means the macro was only invoked conditionally." >&5
10567echo "$as_me: error: conditional \"INTEL\" was never defined.
10568Usually this means the macro was only invoked conditionally." >&2;}
10569 { (exit 1); exit 1; }; }
10570fi
ca3ea756
KZ
10571if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
10572 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
10573Usually this means the macro was only invoked conditionally." >&5
10574echo "$as_me: error: conditional \"M68K\" was never defined.
10575Usually this means the macro was only invoked conditionally." >&2;}
10576 { (exit 1); exit 1; }; }
10577fi
48d7b13a
KZ
10578if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
10579 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
10580Usually this means the macro was only invoked conditionally." >&5
10581echo "$as_me: error: conditional \"SPARC\" was never defined.
10582Usually this means the macro was only invoked conditionally." >&2;}
10583 { (exit 1); exit 1; }; }
10584fi
10585if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
10586 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AGETTY\" was never defined.
10587Usually this means the macro was only invoked conditionally." >&5
10588echo "$as_me: error: conditional \"BUILD_AGETTY\" was never defined.
10589Usually this means the macro was only invoked conditionally." >&2;}
10590 { (exit 1); exit 1; }; }
10591fi
9cb68977
KZ
10592if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
10593 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRAMFS\" was never defined.
10594Usually this means the macro was only invoked conditionally." >&5
10595echo "$as_me: error: conditional \"BUILD_CRAMFS\" was never defined.
10596Usually this means the macro was only invoked conditionally." >&2;}
10597 { (exit 1); exit 1; }; }
10598fi
48d7b13a
KZ
10599if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then
10600 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ELVTUNE\" was never defined.
10601Usually this means the macro was only invoked conditionally." >&5
10602echo "$as_me: error: conditional \"BUILD_ELVTUNE\" was never defined.
10603Usually this means the macro was only invoked conditionally." >&2;}
10604 { (exit 1); exit 1; }; }
10605fi
10606if test -z "${BUILD_INIT_TRUE}" && test -z "${BUILD_INIT_FALSE}"; then
10607 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INIT\" was never defined.
10608Usually this means the macro was only invoked conditionally." >&5
10609echo "$as_me: error: conditional \"BUILD_INIT\" was never defined.
10610Usually this means the macro was only invoked conditionally." >&2;}
10611 { (exit 1); exit 1; }; }
10612fi
10613if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
10614 { { echo "$as_me:$LINENO: error: conditional \"BUILD_KILL\" was never defined.
10615Usually this means the macro was only invoked conditionally." >&5
10616echo "$as_me: error: conditional \"BUILD_KILL\" was never defined.
10617Usually this means the macro was only invoked conditionally." >&2;}
10618 { (exit 1); exit 1; }; }
10619fi
10620if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
10621 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LAST\" was never defined.
10622Usually this means the macro was only invoked conditionally." >&5
10623echo "$as_me: error: conditional \"BUILD_LAST\" was never defined.
10624Usually this means the macro was only invoked conditionally." >&2;}
10625 { (exit 1); exit 1; }; }
10626fi
10627if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
10628 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MESG\" was never defined.
10629Usually this means the macro was only invoked conditionally." >&5
10630echo "$as_me: error: conditional \"BUILD_MESG\" was never defined.
10631Usually this means the macro was only invoked conditionally." >&2;}
10632 { (exit 1); exit 1; }; }
10633fi
10634if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
10635 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PARTX\" was never defined.
10636Usually this means the macro was only invoked conditionally." >&5
10637echo "$as_me: error: conditional \"BUILD_PARTX\" was never defined.
10638Usually this means the macro was only invoked conditionally." >&2;}
10639 { (exit 1); exit 1; }; }
10640fi
10641if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
10642 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RAW\" was never defined.
10643Usually this means the macro was only invoked conditionally." >&5
10644echo "$as_me: error: conditional \"BUILD_RAW\" was never defined.
10645Usually this means the macro was only invoked conditionally." >&2;}
10646 { (exit 1); exit 1; }; }
10647fi
10648if test -z "${BUILD_RDEV_TRUE}" && test -z "${BUILD_RDEV_FALSE}"; then
10649 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RDEV\" was never defined.
10650Usually this means the macro was only invoked conditionally." >&5
10651echo "$as_me: error: conditional \"BUILD_RDEV\" was never defined.
10652Usually this means the macro was only invoked conditionally." >&2;}
10653 { (exit 1); exit 1; }; }
10654fi
10655if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
10656 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RENAME\" was never defined.
10657Usually this means the macro was only invoked conditionally." >&5
10658echo "$as_me: error: conditional \"BUILD_RENAME\" was never defined.
10659Usually this means the macro was only invoked conditionally." >&2;}
10660 { (exit 1); exit 1; }; }
10661fi
10662if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
10663 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RESET\" was never defined.
10664Usually this means the macro was only invoked conditionally." >&5
10665echo "$as_me: error: conditional \"BUILD_RESET\" was never defined.
10666Usually this means the macro was only invoked conditionally." >&2;}
10667 { (exit 1); exit 1; }; }
10668fi
10669if test -z "${BUILD_LOGIN_UTILS_TRUE}" && test -z "${BUILD_LOGIN_UTILS_FALSE}"; then
10670 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
10671Usually this means the macro was only invoked conditionally." >&5
10672echo "$as_me: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
10673Usually this means the macro was only invoked conditionally." >&2;}
10674 { (exit 1); exit 1; }; }
10675fi
9cb68977
KZ
10676if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
10677 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
10678Usually this means the macro was only invoked conditionally." >&5
10679echo "$as_me: error: conditional \"HAVE_PAM\" was never defined.
10680Usually this means the macro was only invoked conditionally." >&2;}
10681 { (exit 1); exit 1; }; }
10682fi
10683if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
10684 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined.
10685Usually this means the macro was only invoked conditionally." >&5
10686echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined.
10687Usually this means the macro was only invoked conditionally." >&2;}
10688 { (exit 1); exit 1; }; }
10689fi
48d7b13a
KZ
10690if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then
10691 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
10692Usually this means the macro was only invoked conditionally." >&5
10693echo "$as_me: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
10694Usually this means the macro was only invoked conditionally." >&2;}
10695 { (exit 1); exit 1; }; }
10696fi
10697if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
10698 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WALL\" was never defined.
10699Usually this means the macro was only invoked conditionally." >&5
10700echo "$as_me: error: conditional \"BUILD_WALL\" was never defined.
10701Usually this means the macro was only invoked conditionally." >&2;}
10702 { (exit 1); exit 1; }; }
10703fi
10704if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
10705 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WRITE\" was never defined.
10706Usually this means the macro was only invoked conditionally." >&5
10707echo "$as_me: error: conditional \"BUILD_WRITE\" was never defined.
10708Usually this means the macro was only invoked conditionally." >&2;}
10709 { (exit 1); exit 1; }; }
10710fi
10711if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
10712 { { echo "$as_me:$LINENO: error: conditional \"USE_TTY_GROUP\" was never defined.
10713Usually this means the macro was only invoked conditionally." >&5
10714echo "$as_me: error: conditional \"USE_TTY_GROUP\" was never defined.
10715Usually this means the macro was only invoked conditionally." >&2;}
10716 { (exit 1); exit 1; }; }
10717fi
eb63b9b8 10718
48d7b13a
KZ
10719: ${CONFIG_STATUS=./config.status}
10720ac_clean_files_save=$ac_clean_files
10721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10722{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10723echo "$as_me: creating $CONFIG_STATUS" >&6;}
10724cat >$CONFIG_STATUS <<_ACEOF
10725#! $SHELL
10726# Generated by $as_me.
10727# Run this file to recreate the current configuration.
10728# Compiler output produced by configure, useful for debugging
10729# configure, is in config.log if it exists.
7eda085c 10730
48d7b13a
KZ
10731debug=false
10732ac_cs_recheck=false
10733ac_cs_silent=false
10734SHELL=\${CONFIG_SHELL-$SHELL}
10735_ACEOF
66ee8158 10736
48d7b13a
KZ
10737cat >>$CONFIG_STATUS <<\_ACEOF
10738## --------------------- ##
10739## M4sh Initialization. ##
10740## --------------------- ##
7eda085c 10741
48d7b13a
KZ
10742# Be Bourne compatible
10743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10744 emulate sh
10745 NULLCMD=:
10746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10747 # is contrary to our usage. Disable this feature.
10748 alias -g '${1+"$@"}'='"$@"'
10749elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10750 set -o posix
10751fi
10752DUALCASE=1; export DUALCASE # for MKS sh
7eda085c 10753
48d7b13a
KZ
10754# Support unset when possible.
10755if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10756 as_unset=unset
b22550fa 10757else
48d7b13a 10758 as_unset=false
e8f26419 10759fi
66ee8158 10760
66ee8158 10761
48d7b13a
KZ
10762# Work around bugs in pre-3.0 UWIN ksh.
10763$as_unset ENV MAIL MAILPATH
10764PS1='$ '
10765PS2='> '
10766PS4='+ '
66ee8158 10767
48d7b13a
KZ
10768# NLS nuisances.
10769for as_var in \
10770 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10771 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10772 LC_TELEPHONE LC_TIME
10773do
10774 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10775 eval $as_var=C; export $as_var
10776 else
10777 $as_unset $as_var
10778 fi
10779done
66ee8158 10780
48d7b13a
KZ
10781# Required to use basename.
10782if expr a : '\(a\)' >/dev/null 2>&1; then
10783 as_expr=expr
10784else
10785 as_expr=false
66ee8158
KZ
10786fi
10787
48d7b13a
KZ
10788if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10789 as_basename=basename
10790else
10791 as_basename=false
66ee8158
KZ
10792fi
10793
66ee8158 10794
48d7b13a
KZ
10795# Name of the executable.
10796as_me=`$as_basename "$0" ||
10797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10798 X"$0" : 'X\(//\)$' \| \
10799 X"$0" : 'X\(/\)$' \| \
10800 . : '\(.\)' 2>/dev/null ||
10801echo X/"$0" |
10802 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10803 /^X\/\(\/\/\)$/{ s//\1/; q; }
10804 /^X\/\(\/\).*/{ s//\1/; q; }
10805 s/.*/./; q'`
66ee8158 10806
756bfd01 10807
48d7b13a
KZ
10808# PATH needs CR, and LINENO needs CR and PATH.
10809# Avoid depending upon Character Ranges.
10810as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10811as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10812as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10813as_cr_digits='0123456789'
10814as_cr_alnum=$as_cr_Letters$as_cr_digits
1d4ad1de 10815
48d7b13a
KZ
10816# The user is always right.
10817if test "${PATH_SEPARATOR+set}" != set; then
10818 echo "#! /bin/sh" >conf$$.sh
10819 echo "exit 0" >>conf$$.sh
10820 chmod +x conf$$.sh
10821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10822 PATH_SEPARATOR=';'
10823 else
10824 PATH_SEPARATOR=:
10825 fi
10826 rm -f conf$$.sh
66ee8158
KZ
10827fi
10828
ffc43748 10829
48d7b13a
KZ
10830 as_lineno_1=$LINENO
10831 as_lineno_2=$LINENO
10832 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10833 test "x$as_lineno_1" != "x$as_lineno_2" &&
10834 test "x$as_lineno_3" = "x$as_lineno_2" || {
10835 # Find who we are. Look in the path if we contain no path at all
10836 # relative or not.
10837 case $0 in
10838 *[\\/]* ) as_myself=$0 ;;
10839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10845done
66ee8158 10846
48d7b13a
KZ
10847 ;;
10848 esac
10849 # We did not find ourselves, most probably we were run as `sh COMMAND'
10850 # in which case we are not to be found in the path.
10851 if test "x$as_myself" = x; then
10852 as_myself=$0
10853 fi
10854 if test ! -f "$as_myself"; then
10855 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10856echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10857 { (exit 1); exit 1; }; }
10858 fi
10859 case $CONFIG_SHELL in
10860 '')
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10863do
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for as_base in sh bash ksh sh5; do
10867 case $as_dir in
10868 /*)
10869 if ("$as_dir/$as_base" -c '
10870 as_lineno_1=$LINENO
10871 as_lineno_2=$LINENO
10872 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10873 test "x$as_lineno_1" != "x$as_lineno_2" &&
10874 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10875 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10876 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10877 CONFIG_SHELL=$as_dir/$as_base
10878 export CONFIG_SHELL
10879 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10880 fi;;
10881 esac
10882 done
10883done
10884;;
10885 esac
0b0bb920 10886
48d7b13a
KZ
10887 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10888 # uniformly replaced by the line number. The first 'sed' inserts a
10889 # line-number line before each line; the second 'sed' does the real
10890 # work. The second script uses 'N' to pair each line-number line
10891 # with the numbered line, and appends trailing '-' during
10892 # substitution so that $LINENO is not a special case at line end.
10893 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10894 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10895 sed '=' <$as_myself |
10896 sed '
10897 N
10898 s,$,-,
10899 : loop
10900 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10901 t loop
10902 s,-$,,
10903 s,^['$as_cr_digits']*\n,,
10904 ' >$as_me.lineno &&
10905 chmod +x $as_me.lineno ||
10906 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10907echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10908 { (exit 1); exit 1; }; }
66ee8158 10909
48d7b13a
KZ
10910 # Don't try to exec as it changes $[0], causing all sort of problems
10911 # (the dirname of $[0] is not the place where we might find the
10912 # original and so on. Autoconf is especially sensible to this).
10913 . ./$as_me.lineno
10914 # Exit status is that of the last command.
10915 exit
7eda085c 10916}
7eda085c 10917
7eda085c 10918
48d7b13a
KZ
10919case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10920 *c*,-n*) ECHO_N= ECHO_C='
10921' ECHO_T=' ' ;;
10922 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10923 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10924esac
7eda085c 10925
48d7b13a
KZ
10926if expr a : '\(a\)' >/dev/null 2>&1; then
10927 as_expr=expr
66ee8158 10928else
48d7b13a 10929 as_expr=false
66ee8158 10930fi
66ee8158 10931
48d7b13a
KZ
10932rm -f conf$$ conf$$.exe conf$$.file
10933echo >conf$$.file
10934if ln -s conf$$.file conf$$ 2>/dev/null; then
10935 # We could just check for DJGPP; but this test a) works b) is more generic
10936 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10937 if test -f conf$$.exe; then
10938 # Don't use ln at all; we don't have any links
10939 as_ln_s='cp -p'
10940 else
10941 as_ln_s='ln -s'
10942 fi
10943elif ln conf$$.file conf$$ 2>/dev/null; then
10944 as_ln_s=ln
66ee8158 10945else
48d7b13a 10946 as_ln_s='cp -p'
66ee8158 10947fi
48d7b13a 10948rm -f conf$$ conf$$.exe conf$$.file
66ee8158 10949
48d7b13a
KZ
10950if mkdir -p . 2>/dev/null; then
10951 as_mkdir_p=:
c07ebfa1 10952else
48d7b13a
KZ
10953 test -d ./-p && rmdir ./-p
10954 as_mkdir_p=false
c07ebfa1 10955fi
c07ebfa1 10956
48d7b13a
KZ
10957as_executable_p="test -f"
10958
10959# Sed expression to map a string onto a valid CPP name.
10960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10961
10962# Sed expression to map a string onto a valid variable name.
10963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10964
10965
10966# IFS
10967# We need space, tab and new line, in precisely that order.
10968as_nl='
10969'
10970IFS=" $as_nl"
10971
10972# CDPATH.
10973$as_unset CDPATH
10974
10975exec 6>&1
10976
10977# Open the log real soon, to keep \$[0] and so on meaningful, and to
10978# report actual input values of CONFIG_FILES etc. instead of their
10979# values after options handling. Logging --version etc. is OK.
10980exec 5>>config.log
10981{
10982 echo
10983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10984## Running $as_me. ##
10985_ASBOX
10986} >&5
10987cat >&5 <<_CSEOF
10988
ca3ea756 10989This file was extended by util-linux $as_me 2.13-pre4, which was
48d7b13a
KZ
10990generated by GNU Autoconf 2.59. Invocation command line was
10991
10992 CONFIG_FILES = $CONFIG_FILES
10993 CONFIG_HEADERS = $CONFIG_HEADERS
10994 CONFIG_LINKS = $CONFIG_LINKS
10995 CONFIG_COMMANDS = $CONFIG_COMMANDS
10996 $ $0 $@
10997
10998_CSEOF
10999echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11000echo >&5
11001_ACEOF
11002
11003# Files that config.status was made for.
11004if test -n "$ac_config_files"; then
11005 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63cccae4 11006fi
63cccae4 11007
48d7b13a
KZ
11008if test -n "$ac_config_headers"; then
11009 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
63cccae4 11010fi
66ee8158 11011
48d7b13a
KZ
11012if test -n "$ac_config_links"; then
11013 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7eda085c 11014fi
7eda085c 11015
48d7b13a
KZ
11016if test -n "$ac_config_commands"; then
11017 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7eda085c 11018fi
7eda085c 11019
48d7b13a
KZ
11020cat >>$CONFIG_STATUS <<\_ACEOF
11021
11022ac_cs_usage="\
11023\`$as_me' instantiates files from templates according to the
11024current configuration.
11025
11026Usage: $0 [OPTIONS] [FILE]...
11027
11028 -h, --help print this help, then exit
11029 -V, --version print version number, then exit
11030 -q, --quiet do not print progress messages
11031 -d, --debug don't remove temporary files
11032 --recheck update $as_me by reconfiguring in the same conditions
11033 --file=FILE[:TEMPLATE]
11034 instantiate the configuration file FILE
11035 --header=FILE[:TEMPLATE]
11036 instantiate the configuration header FILE
11037
11038Configuration files:
11039$config_files
11040
11041Configuration headers:
11042$config_headers
11043
11044Configuration commands:
11045$config_commands
11046
11047Report bugs to <bug-autoconf@gnu.org>."
11048_ACEOF
11049
11050cat >>$CONFIG_STATUS <<_ACEOF
11051ac_cs_version="\\
ca3ea756 11052util-linux config.status 2.13-pre4
48d7b13a
KZ
11053configured by $0, generated by GNU Autoconf 2.59,
11054 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11055
11056Copyright (C) 2003 Free Software Foundation, Inc.
11057This config.status script is free software; the Free Software Foundation
11058gives unlimited permission to copy, distribute and modify it."
11059srcdir=$srcdir
11060INSTALL="$INSTALL"
11061_ACEOF
11062
11063cat >>$CONFIG_STATUS <<\_ACEOF
11064# If no file are specified by the user, then we need to provide default
11065# value. By we need to know if files were specified by the user.
11066ac_need_defaults=:
11067while test $# != 0
11068do
11069 case $1 in
11070 --*=*)
11071 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11072 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11073 ac_shift=:
11074 ;;
11075 -*)
11076 ac_option=$1
11077 ac_optarg=$2
11078 ac_shift=shift
11079 ;;
11080 *) # This is not an option, so the user has probably given explicit
11081 # arguments.
11082 ac_option=$1
11083 ac_need_defaults=false;;
11084 esac
11085
11086 case $ac_option in
11087 # Handling of the options.
11088_ACEOF
11089cat >>$CONFIG_STATUS <<\_ACEOF
11090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11091 ac_cs_recheck=: ;;
11092 --version | --vers* | -V )
11093 echo "$ac_cs_version"; exit 0 ;;
11094 --he | --h)
11095 # Conflict between --help and --header
11096 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11097Try \`$0 --help' for more information." >&5
11098echo "$as_me: error: ambiguous option: $1
11099Try \`$0 --help' for more information." >&2;}
11100 { (exit 1); exit 1; }; };;
11101 --help | --hel | -h )
11102 echo "$ac_cs_usage"; exit 0 ;;
11103 --debug | --d* | -d )
11104 debug=: ;;
11105 --file | --fil | --fi | --f )
11106 $ac_shift
11107 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11108 ac_need_defaults=false;;
11109 --header | --heade | --head | --hea )
11110 $ac_shift
11111 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11112 ac_need_defaults=false;;
11113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11115 ac_cs_silent=: ;;
11116
11117 # This is an error.
11118 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11119Try \`$0 --help' for more information." >&5
11120echo "$as_me: error: unrecognized option: $1
11121Try \`$0 --help' for more information." >&2;}
11122 { (exit 1); exit 1; }; } ;;
11123
11124 *) ac_config_targets="$ac_config_targets $1" ;;
11125
11126 esac
11127 shift
11128done
11129
11130ac_configure_extra_args=
11131
11132if $ac_cs_silent; then
11133 exec 6>/dev/null
11134 ac_configure_extra_args="$ac_configure_extra_args --silent"
7eda085c
KZ
11135fi
11136
48d7b13a
KZ
11137_ACEOF
11138cat >>$CONFIG_STATUS <<_ACEOF
11139if \$ac_cs_recheck; then
11140 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11141 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7eda085c 11142fi
7eda085c 11143
48d7b13a 11144_ACEOF
7eda085c 11145
48d7b13a 11146cat >>$CONFIG_STATUS <<_ACEOF
7eda085c 11147#
48d7b13a 11148# INIT-COMMANDS section.
ffc43748 11149#
7eda085c 11150
48d7b13a
KZ
11151AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11152# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11153 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11154 # from automake.
11155 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11156 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11157 LINGUAS="${LINGUAS-%UNSET%}"
7eda085c 11158
7eda085c 11159
48d7b13a
KZ
11160_ACEOF
11161
11162
11163
11164cat >>$CONFIG_STATUS <<\_ACEOF
11165for ac_config_target in $ac_config_targets
11166do
11167 case "$ac_config_target" in
11168 # Handling of arguments.
11169 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11170 "disk-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES disk-utils/Makefile" ;;
11171 "fdisk/Makefile" ) CONFIG_FILES="$CONFIG_FILES fdisk/Makefile" ;;
11172 "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
11173 "hwclock/Makefile" ) CONFIG_FILES="$CONFIG_FILES hwclock/Makefile" ;;
11174 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11175 "login-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES login-utils/Makefile" ;;
11176 "misc-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc-utils/Makefile" ;;
11177 "mount/Makefile" ) CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
11178 "partx/Makefile" ) CONFIG_FILES="$CONFIG_FILES partx/Makefile" ;;
11179 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11180 "schedutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES schedutils/Makefile" ;;
11181 "sys-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys-utils/Makefile" ;;
11182 "text-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES text-utils/Makefile" ;;
11183 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11184 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11185 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11186 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11187echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11188 { (exit 1); exit 1; }; };;
11189 esac
11190done
11191
11192# If the user did not use the arguments to specify the items to instantiate,
11193# then the envvar interface is used. Set only those that are not.
11194# We use the long form for the default assignment because of an extremely
11195# bizarre bug on SunOS 4.1.3.
11196if $ac_need_defaults; then
11197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7eda085c 11200fi
eb63b9b8 11201
48d7b13a
KZ
11202# Have a temporary directory for convenience. Make it in the build tree
11203# simply because there is no reason to put it here, and in addition,
11204# creating and moving files from /tmp can sometimes cause problems.
11205# Create a temporary directory, and hook for its removal unless debugging.
11206$debug ||
11207{
11208 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11209 trap '{ (exit 1); exit 1; }' 1 2 13 15
eb63b9b8 11210}
eb63b9b8 11211
48d7b13a
KZ
11212# Create a (secure) tmp directory for tmp files.
11213
11214{
11215 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11216 test -n "$tmp" && test -d "$tmp"
11217} ||
22853e4a 11218{
48d7b13a
KZ
11219 tmp=./confstat$$-$RANDOM
11220 (umask 077 && mkdir $tmp)
11221} ||
11222{
11223 echo "$me: cannot create a temporary directory in ." >&2
11224 { (exit 1); exit 1; }
22853e4a 11225}
48d7b13a
KZ
11226
11227_ACEOF
11228
11229cat >>$CONFIG_STATUS <<_ACEOF
22853e4a
KZ
11230
11231#
48d7b13a 11232# CONFIG_FILES section.
22853e4a 11233#
48d7b13a
KZ
11234
11235# No need to generate the scripts if there are no CONFIG_FILES.
11236# This happens for instance when ./config.status config.h
11237if test -n "\$CONFIG_FILES"; then
11238 # Protect against being on the right side of a sed subst in config.status.
11239 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11240 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11241s,@SHELL@,$SHELL,;t t
11242s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11243s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11244s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11245s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11246s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11247s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11248s,@exec_prefix@,$exec_prefix,;t t
11249s,@prefix@,$prefix,;t t
11250s,@program_transform_name@,$program_transform_name,;t t
11251s,@bindir@,$bindir,;t t
11252s,@sbindir@,$sbindir,;t t
11253s,@libexecdir@,$libexecdir,;t t
11254s,@datadir@,$datadir,;t t
11255s,@sysconfdir@,$sysconfdir,;t t
11256s,@sharedstatedir@,$sharedstatedir,;t t
11257s,@localstatedir@,$localstatedir,;t t
11258s,@libdir@,$libdir,;t t
11259s,@includedir@,$includedir,;t t
11260s,@oldincludedir@,$oldincludedir,;t t
11261s,@infodir@,$infodir,;t t
11262s,@mandir@,$mandir,;t t
11263s,@build_alias@,$build_alias,;t t
11264s,@host_alias@,$host_alias,;t t
11265s,@target_alias@,$target_alias,;t t
11266s,@DEFS@,$DEFS,;t t
11267s,@ECHO_C@,$ECHO_C,;t t
11268s,@ECHO_N@,$ECHO_N,;t t
11269s,@ECHO_T@,$ECHO_T,;t t
11270s,@LIBS@,$LIBS,;t t
11271s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11272s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11273s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11274s,@CYGPATH_W@,$CYGPATH_W,;t t
11275s,@PACKAGE@,$PACKAGE,;t t
11276s,@VERSION@,$VERSION,;t t
11277s,@ACLOCAL@,$ACLOCAL,;t t
11278s,@AUTOCONF@,$AUTOCONF,;t t
11279s,@AUTOMAKE@,$AUTOMAKE,;t t
11280s,@AUTOHEADER@,$AUTOHEADER,;t t
11281s,@MAKEINFO@,$MAKEINFO,;t t
11282s,@install_sh@,$install_sh,;t t
11283s,@STRIP@,$STRIP,;t t
11284s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11285s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11286s,@mkdir_p@,$mkdir_p,;t t
11287s,@AWK@,$AWK,;t t
11288s,@SET_MAKE@,$SET_MAKE,;t t
11289s,@am__leading_dot@,$am__leading_dot,;t t
11290s,@AMTAR@,$AMTAR,;t t
11291s,@am__tar@,$am__tar,;t t
11292s,@am__untar@,$am__untar,;t t
baf39af1
KZ
11293s,@RANLIB@,$RANLIB,;t t
11294s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11295s,@PERL@,$PERL,;t t
48d7b13a
KZ
11296s,@CC@,$CC,;t t
11297s,@CFLAGS@,$CFLAGS,;t t
11298s,@LDFLAGS@,$LDFLAGS,;t t
11299s,@CPPFLAGS@,$CPPFLAGS,;t t
11300s,@ac_ct_CC@,$ac_ct_CC,;t t
11301s,@EXEEXT@,$EXEEXT,;t t
11302s,@OBJEXT@,$OBJEXT,;t t
11303s,@DEPDIR@,$DEPDIR,;t t
11304s,@am__include@,$am__include,;t t
11305s,@am__quote@,$am__quote,;t t
11306s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11307s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11308s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11309s,@CCDEPMODE@,$CCDEPMODE,;t t
11310s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11311s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
48d7b13a 11312s,@CPP@,$CPP,;t t
baf39af1 11313s,@EGREP@,$EGREP,;t t
48d7b13a
KZ
11314s,@HAVE_RAW_TRUE@,$HAVE_RAW_TRUE,;t t
11315s,@HAVE_RAW_FALSE@,$HAVE_RAW_FALSE,;t t
48d7b13a
KZ
11316s,@HAVE_UUID_TRUE@,$HAVE_UUID_TRUE,;t t
11317s,@HAVE_UUID_FALSE@,$HAVE_UUID_FALSE,;t t
11318s,@HAVE_LIBUTIL_TRUE@,$HAVE_LIBUTIL_TRUE,;t t
11319s,@HAVE_LIBUTIL_FALSE@,$HAVE_LIBUTIL_FALSE,;t t
11320s,@HAVE_TERMCAP_TRUE@,$HAVE_TERMCAP_TRUE,;t t
11321s,@HAVE_TERMCAP_FALSE@,$HAVE_TERMCAP_FALSE,;t t
48d7b13a
KZ
11322s,@HAVE_BLKID_TRUE@,$HAVE_BLKID_TRUE,;t t
11323s,@HAVE_BLKID_FALSE@,$HAVE_BLKID_FALSE,;t t
48d7b13a
KZ
11324s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11325s,@USE_NLS@,$USE_NLS,;t t
11326s,@MSGFMT@,$MSGFMT,;t t
11327s,@GMSGFMT@,$GMSGFMT,;t t
11328s,@XGETTEXT@,$XGETTEXT,;t t
11329s,@MSGMERGE@,$MSGMERGE,;t t
baf39af1
KZ
11330s,@build@,$build,;t t
11331s,@build_cpu@,$build_cpu,;t t
11332s,@build_vendor@,$build_vendor,;t t
11333s,@build_os@,$build_os,;t t
11334s,@host@,$host,;t t
11335s,@host_cpu@,$host_cpu,;t t
11336s,@host_vendor@,$host_vendor,;t t
11337s,@host_os@,$host_os,;t t
48d7b13a
KZ
11338s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
11339s,@LIBICONV@,$LIBICONV,;t t
11340s,@LTLIBICONV@,$LTLIBICONV,;t t
11341s,@INTLLIBS@,$INTLLIBS,;t t
11342s,@LIBINTL@,$LIBINTL,;t t
11343s,@LTLIBINTL@,$LTLIBINTL,;t t
11344s,@POSUB@,$POSUB,;t t
11345s,@HAVE_NCURSES_TRUE@,$HAVE_NCURSES_TRUE,;t t
11346s,@HAVE_NCURSES_FALSE@,$HAVE_NCURSES_FALSE,;t t
11347s,@USE_SLANG_TRUE@,$USE_SLANG_TRUE,;t t
11348s,@USE_SLANG_FALSE@,$USE_SLANG_FALSE,;t t
11349s,@NEED_LIBCRYPT_TRUE@,$NEED_LIBCRYPT_TRUE,;t t
11350s,@NEED_LIBCRYPT_FALSE@,$NEED_LIBCRYPT_FALSE,;t t
11351s,@HAVE_PIVOT_ROOT_TRUE@,$HAVE_PIVOT_ROOT_TRUE,;t t
11352s,@HAVE_PIVOT_ROOT_FALSE@,$HAVE_PIVOT_ROOT_FALSE,;t t
11353s,@INTEL_TRUE@,$INTEL_TRUE,;t t
11354s,@INTEL_FALSE@,$INTEL_FALSE,;t t
ca3ea756
KZ
11355s,@M68K_TRUE@,$M68K_TRUE,;t t
11356s,@M68K_FALSE@,$M68K_FALSE,;t t
48d7b13a
KZ
11357s,@SPARC_TRUE@,$SPARC_TRUE,;t t
11358s,@SPARC_FALSE@,$SPARC_FALSE,;t t
11359s,@BUILD_AGETTY_TRUE@,$BUILD_AGETTY_TRUE,;t t
11360s,@BUILD_AGETTY_FALSE@,$BUILD_AGETTY_FALSE,;t t
9cb68977
KZ
11361s,@BUILD_CRAMFS_TRUE@,$BUILD_CRAMFS_TRUE,;t t
11362s,@BUILD_CRAMFS_FALSE@,$BUILD_CRAMFS_FALSE,;t t
48d7b13a
KZ
11363s,@BUILD_ELVTUNE_TRUE@,$BUILD_ELVTUNE_TRUE,;t t
11364s,@BUILD_ELVTUNE_FALSE@,$BUILD_ELVTUNE_FALSE,;t t
11365s,@BUILD_INIT_TRUE@,$BUILD_INIT_TRUE,;t t
11366s,@BUILD_INIT_FALSE@,$BUILD_INIT_FALSE,;t t
11367s,@BUILD_KILL_TRUE@,$BUILD_KILL_TRUE,;t t
11368s,@BUILD_KILL_FALSE@,$BUILD_KILL_FALSE,;t t
11369s,@BUILD_LAST_TRUE@,$BUILD_LAST_TRUE,;t t
11370s,@BUILD_LAST_FALSE@,$BUILD_LAST_FALSE,;t t
11371s,@BUILD_MESG_TRUE@,$BUILD_MESG_TRUE,;t t
11372s,@BUILD_MESG_FALSE@,$BUILD_MESG_FALSE,;t t
11373s,@BUILD_PARTX_TRUE@,$BUILD_PARTX_TRUE,;t t
11374s,@BUILD_PARTX_FALSE@,$BUILD_PARTX_FALSE,;t t
11375s,@BUILD_RAW_TRUE@,$BUILD_RAW_TRUE,;t t
11376s,@BUILD_RAW_FALSE@,$BUILD_RAW_FALSE,;t t
11377s,@BUILD_RDEV_TRUE@,$BUILD_RDEV_TRUE,;t t
11378s,@BUILD_RDEV_FALSE@,$BUILD_RDEV_FALSE,;t t
11379s,@BUILD_RENAME_TRUE@,$BUILD_RENAME_TRUE,;t t
11380s,@BUILD_RENAME_FALSE@,$BUILD_RENAME_FALSE,;t t
11381s,@BUILD_RESET_TRUE@,$BUILD_RESET_TRUE,;t t
11382s,@BUILD_RESET_FALSE@,$BUILD_RESET_FALSE,;t t
11383s,@BUILD_LOGIN_UTILS_TRUE@,$BUILD_LOGIN_UTILS_TRUE,;t t
11384s,@BUILD_LOGIN_UTILS_FALSE@,$BUILD_LOGIN_UTILS_FALSE,;t t
9cb68977
KZ
11385s,@HAVE_PAM_TRUE@,$HAVE_PAM_TRUE,;t t
11386s,@HAVE_PAM_FALSE@,$HAVE_PAM_FALSE,;t t
11387s,@HAVE_SELINUX_TRUE@,$HAVE_SELINUX_TRUE,;t t
11388s,@HAVE_SELINUX_FALSE@,$HAVE_SELINUX_FALSE,;t t
48d7b13a
KZ
11389s,@BUILD_SCHEDUTILS_TRUE@,$BUILD_SCHEDUTILS_TRUE,;t t
11390s,@BUILD_SCHEDUTILS_FALSE@,$BUILD_SCHEDUTILS_FALSE,;t t
11391s,@BUILD_WALL_TRUE@,$BUILD_WALL_TRUE,;t t
11392s,@BUILD_WALL_FALSE@,$BUILD_WALL_FALSE,;t t
11393s,@BUILD_WRITE_TRUE@,$BUILD_WRITE_TRUE,;t t
11394s,@BUILD_WRITE_FALSE@,$BUILD_WRITE_FALSE,;t t
11395s,@USE_TTY_GROUP_TRUE@,$USE_TTY_GROUP_TRUE,;t t
11396s,@USE_TTY_GROUP_FALSE@,$USE_TTY_GROUP_FALSE,;t t
11397s,@LIBOBJS@,$LIBOBJS,;t t
11398s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11399CEOF
11400
11401_ACEOF
11402
11403 cat >>$CONFIG_STATUS <<\_ACEOF
11404 # Split the substitutions into bite-sized pieces for seds with
11405 # small command number limits, like on Digital OSF/1 and HP-UX.
11406 ac_max_sed_lines=48
11407 ac_sed_frag=1 # Number of current file.
11408 ac_beg=1 # First line for current file.
11409 ac_end=$ac_max_sed_lines # Line after last line for current file.
11410 ac_more_lines=:
11411 ac_sed_cmds=
11412 while $ac_more_lines; do
11413 if test $ac_beg -gt 1; then
11414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11415 else
11416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11417 fi
11418 if test ! -s $tmp/subs.frag; then
11419 ac_more_lines=false
11420 else
11421 # The purpose of the label and of the branching condition is to
11422 # speed up the sed processing (if there are no `@' at all, there
11423 # is no need to browse any of the substitutions).
11424 # These are the two extra sed commands mentioned above.
11425 (echo ':t
11426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11427 if test -z "$ac_sed_cmds"; then
11428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11429 else
11430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11431 fi
11432 ac_sed_frag=`expr $ac_sed_frag + 1`
11433 ac_beg=$ac_end
11434 ac_end=`expr $ac_end + $ac_max_sed_lines`
11435 fi
11436 done
11437 if test -z "$ac_sed_cmds"; then
11438 ac_sed_cmds=cat
11439 fi
11440fi # test -n "$CONFIG_FILES"
11441
11442_ACEOF
11443cat >>$CONFIG_STATUS <<\_ACEOF
11444for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11446 case $ac_file in
11447 - | *:- | *:-:* ) # input from stdin
11448 cat >$tmp/stdin
11449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11453 * ) ac_file_in=$ac_file.in ;;
11454 esac
11455
11456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11459 X"$ac_file" : 'X\(//\)[^/]' \| \
11460 X"$ac_file" : 'X\(//\)$' \| \
11461 X"$ac_file" : 'X\(/\)' \| \
11462 . : '\(.\)' 2>/dev/null ||
11463echo X"$ac_file" |
11464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11466 /^X\(\/\/\)$/{ s//\1/; q; }
11467 /^X\(\/\).*/{ s//\1/; q; }
11468 s/.*/./; q'`
11469 { if $as_mkdir_p; then
11470 mkdir -p "$ac_dir"
11471 else
11472 as_dir="$ac_dir"
11473 as_dirs=
11474 while test ! -d "$as_dir"; do
11475 as_dirs="$as_dir $as_dirs"
11476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11478 X"$as_dir" : 'X\(//\)[^/]' \| \
11479 X"$as_dir" : 'X\(//\)$' \| \
11480 X"$as_dir" : 'X\(/\)' \| \
11481 . : '\(.\)' 2>/dev/null ||
11482echo X"$as_dir" |
11483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11485 /^X\(\/\/\)$/{ s//\1/; q; }
11486 /^X\(\/\).*/{ s//\1/; q; }
11487 s/.*/./; q'`
11488 done
11489 test ! -n "$as_dirs" || mkdir $as_dirs
11490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11491echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11492 { (exit 1); exit 1; }; }; }
11493
11494 ac_builddir=.
11495
11496if test "$ac_dir" != .; then
11497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11498 # A "../" for each directory in $ac_dir_suffix.
11499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22853e4a 11500else
48d7b13a 11501 ac_dir_suffix= ac_top_builddir=
22853e4a 11502fi
48d7b13a
KZ
11503
11504case $srcdir in
11505 .) # No --srcdir option. We are building in place.
11506 ac_srcdir=.
11507 if test -z "$ac_top_builddir"; then
11508 ac_top_srcdir=.
11509 else
11510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11511 fi ;;
11512 [\\/]* | ?:[\\/]* ) # Absolute path.
11513 ac_srcdir=$srcdir$ac_dir_suffix;
11514 ac_top_srcdir=$srcdir ;;
11515 *) # Relative path.
11516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11518esac
11519
11520# Do not use `cd foo && pwd` to compute absolute paths, because
11521# the directories may not exist.
11522case `pwd` in
11523.) ac_abs_builddir="$ac_dir";;
11524*)
11525 case "$ac_dir" in
11526 .) ac_abs_builddir=`pwd`;;
11527 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11528 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11529 esac;;
11530esac
11531case $ac_abs_builddir in
11532.) ac_abs_top_builddir=${ac_top_builddir}.;;
11533*)
11534 case ${ac_top_builddir}. in
11535 .) ac_abs_top_builddir=$ac_abs_builddir;;
11536 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11537 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11538 esac;;
11539esac
11540case $ac_abs_builddir in
11541.) ac_abs_srcdir=$ac_srcdir;;
11542*)
11543 case $ac_srcdir in
11544 .) ac_abs_srcdir=$ac_abs_builddir;;
11545 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11546 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11547 esac;;
11548esac
11549case $ac_abs_builddir in
11550.) ac_abs_top_srcdir=$ac_top_srcdir;;
11551*)
11552 case $ac_top_srcdir in
11553 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11554 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11555 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11556 esac;;
11557esac
11558
11559
11560 case $INSTALL in
11561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11563 esac
11564
11565 # Let's still pretend it is `configure' which instantiates (i.e., don't
11566 # use $as_me), people would be surprised to read:
11567 # /* config.h. Generated by config.status. */
11568 if test x"$ac_file" = x-; then
11569 configure_input=
11570 else
11571 configure_input="$ac_file. "
11572 fi
11573 configure_input=$configure_input"Generated from `echo $ac_file_in |
11574 sed 's,.*/,,'` by configure."
11575
11576 # First look for the input files in the build tree, otherwise in the
11577 # src tree.
11578 ac_file_inputs=`IFS=:
11579 for f in $ac_file_in; do
11580 case $f in
11581 -) echo $tmp/stdin ;;
11582 [\\/$]*)
11583 # Absolute (can't be DOS-style, as IFS=:)
11584 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11585echo "$as_me: error: cannot find input file: $f" >&2;}
11586 { (exit 1); exit 1; }; }
11587 echo "$f";;
11588 *) # Relative
11589 if test -f "$f"; then
11590 # Build tree
11591 echo "$f"
11592 elif test -f "$srcdir/$f"; then
11593 # Source tree
11594 echo "$srcdir/$f"
11595 else
11596 # /dev/null tree
11597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11598echo "$as_me: error: cannot find input file: $f" >&2;}
11599 { (exit 1); exit 1; }; }
11600 fi;;
11601 esac
11602 done` || { (exit 1); exit 1; }
11603
11604 if test x"$ac_file" != x-; then
11605 { echo "$as_me:$LINENO: creating $ac_file" >&5
11606echo "$as_me: creating $ac_file" >&6;}
11607 rm -f "$ac_file"
11608 fi
11609_ACEOF
11610cat >>$CONFIG_STATUS <<_ACEOF
11611 sed "$ac_vpsub
11612$extrasub
11613_ACEOF
11614cat >>$CONFIG_STATUS <<\_ACEOF
11615:t
11616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11617s,@configure_input@,$configure_input,;t t
11618s,@srcdir@,$ac_srcdir,;t t
11619s,@abs_srcdir@,$ac_abs_srcdir,;t t
11620s,@top_srcdir@,$ac_top_srcdir,;t t
11621s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11622s,@builddir@,$ac_builddir,;t t
11623s,@abs_builddir@,$ac_abs_builddir,;t t
11624s,@top_builddir@,$ac_top_builddir,;t t
11625s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11626s,@INSTALL@,$ac_INSTALL,;t t
11627" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11628 rm -f $tmp/stdin
11629 if test x"$ac_file" != x-; then
11630 mv $tmp/out $ac_file
11631 else
11632 cat $tmp/out
11633 rm -f $tmp/out
11634 fi
11635
11636done
11637_ACEOF
11638cat >>$CONFIG_STATUS <<\_ACEOF
22853e4a
KZ
11639
11640#
48d7b13a 11641# CONFIG_HEADER section.
66ee8158 11642#
48d7b13a
KZ
11643
11644# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11645# NAME is the cpp macro being defined and VALUE is the value it is being given.
22853e4a 11646#
48d7b13a
KZ
11647# ac_d sets the value in "#define NAME VALUE" lines.
11648ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11649ac_dB='[ ].*$,\1#\2'
11650ac_dC=' '
11651ac_dD=',;t'
11652# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11653ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11654ac_uB='$,\1#\2define\3'
11655ac_uC=' '
11656ac_uD=',;t'
22853e4a 11657
48d7b13a
KZ
11658for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11660 case $ac_file in
11661 - | *:- | *:-:* ) # input from stdin
11662 cat >$tmp/stdin
11663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11667 * ) ac_file_in=$ac_file.in ;;
11668 esac
11669
11670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11671echo "$as_me: creating $ac_file" >&6;}
11672
11673 # First look for the input files in the build tree, otherwise in the
11674 # src tree.
11675 ac_file_inputs=`IFS=:
11676 for f in $ac_file_in; do
11677 case $f in
11678 -) echo $tmp/stdin ;;
11679 [\\/$]*)
11680 # Absolute (can't be DOS-style, as IFS=:)
11681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11682echo "$as_me: error: cannot find input file: $f" >&2;}
11683 { (exit 1); exit 1; }; }
11684 # Do quote $f, to prevent DOS paths from being IFS'd.
11685 echo "$f";;
11686 *) # Relative
11687 if test -f "$f"; then
11688 # Build tree
11689 echo "$f"
11690 elif test -f "$srcdir/$f"; then
11691 # Source tree
11692 echo "$srcdir/$f"
11693 else
11694 # /dev/null tree
11695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11696echo "$as_me: error: cannot find input file: $f" >&2;}
11697 { (exit 1); exit 1; }; }
11698 fi;;
11699 esac
11700 done` || { (exit 1); exit 1; }
11701 # Remove the trailing spaces.
11702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11703
11704_ACEOF
11705
11706# Transform confdefs.h into two sed scripts, `conftest.defines' and
11707# `conftest.undefs', that substitutes the proper values into
11708# config.h.in to produce config.h. The first handles `#define'
11709# templates, and the second `#undef' templates.
11710# And first: Protect against being on the right side of a sed subst in
11711# config.status. Protect against being in an unquoted here document
11712# in config.status.
11713rm -f conftest.defines conftest.undefs
11714# Using a here document instead of a string reduces the quoting nightmare.
11715# Putting comments in sed scripts is not portable.
11716#
11717# `end' is used to avoid that the second main sed command (meant for
11718# 0-ary CPP macros) applies to n-ary macro definitions.
11719# See the Autoconf documentation for `clear'.
11720cat >confdef2sed.sed <<\_ACEOF
11721s/[\\&,]/\\&/g
11722s,[\\$`],\\&,g
11723t clear
11724: clear
11725s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11726t end
11727s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11728: end
11729_ACEOF
11730# If some macros were called several times there might be several times
11731# the same #defines, which is useless. Nevertheless, we may not want to
11732# sort them, since we want the *last* AC-DEFINE to be honored.
11733uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11734sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11735rm -f confdef2sed.sed
11736
11737# This sed command replaces #undef with comments. This is necessary, for
11738# example, in the case of _POSIX_SOURCE, which is predefined and required
11739# on some systems where configure will not decide to define it.
11740cat >>conftest.undefs <<\_ACEOF
11741s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11742_ACEOF
11743
11744# Break up conftest.defines because some shells have a limit on the size
11745# of here documents, and old seds have small limits too (100 cmds).
11746echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11747echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11748echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11749echo ' :' >>$CONFIG_STATUS
11750rm -f conftest.tail
11751while grep . conftest.defines >/dev/null
11752do
11753 # Write a limited-size here document to $tmp/defines.sed.
11754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11755 # Speed up: don't consider the non `#define' lines.
11756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11757 # Work around the forget-to-reset-the-flag bug.
11758 echo 't clr' >>$CONFIG_STATUS
11759 echo ': clr' >>$CONFIG_STATUS
11760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11761 echo 'CEOF
11762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11763 rm -f $tmp/in
11764 mv $tmp/out $tmp/in
11765' >>$CONFIG_STATUS
11766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11767 rm -f conftest.defines
11768 mv conftest.tail conftest.defines
11769done
11770rm -f conftest.defines
11771echo ' fi # grep' >>$CONFIG_STATUS
11772echo >>$CONFIG_STATUS
11773
11774# Break up conftest.undefs because some shells have a limit on the size
11775# of here documents, and old seds have small limits too (100 cmds).
11776echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11777rm -f conftest.tail
11778while grep . conftest.undefs >/dev/null
11779do
11780 # Write a limited-size here document to $tmp/undefs.sed.
11781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11782 # Speed up: don't consider the non `#undef'
11783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11784 # Work around the forget-to-reset-the-flag bug.
11785 echo 't clr' >>$CONFIG_STATUS
11786 echo ': clr' >>$CONFIG_STATUS
11787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11788 echo 'CEOF
11789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11790 rm -f $tmp/in
11791 mv $tmp/out $tmp/in
11792' >>$CONFIG_STATUS
11793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11794 rm -f conftest.undefs
11795 mv conftest.tail conftest.undefs
11796done
11797rm -f conftest.undefs
11798
11799cat >>$CONFIG_STATUS <<\_ACEOF
11800 # Let's still pretend it is `configure' which instantiates (i.e., don't
11801 # use $as_me), people would be surprised to read:
11802 # /* config.h. Generated by config.status. */
11803 if test x"$ac_file" = x-; then
11804 echo "/* Generated by configure. */" >$tmp/config.h
11805 else
11806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11807 fi
11808 cat $tmp/in >>$tmp/config.h
11809 rm -f $tmp/in
11810 if test x"$ac_file" != x-; then
11811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11813echo "$as_me: $ac_file is unchanged" >&6;}
11814 else
11815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11817 X"$ac_file" : 'X\(//\)[^/]' \| \
11818 X"$ac_file" : 'X\(//\)$' \| \
11819 X"$ac_file" : 'X\(/\)' \| \
11820 . : '\(.\)' 2>/dev/null ||
11821echo X"$ac_file" |
11822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11824 /^X\(\/\/\)$/{ s//\1/; q; }
11825 /^X\(\/\).*/{ s//\1/; q; }
11826 s/.*/./; q'`
11827 { if $as_mkdir_p; then
11828 mkdir -p "$ac_dir"
11829 else
11830 as_dir="$ac_dir"
11831 as_dirs=
11832 while test ! -d "$as_dir"; do
11833 as_dirs="$as_dir $as_dirs"
11834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11836 X"$as_dir" : 'X\(//\)[^/]' \| \
11837 X"$as_dir" : 'X\(//\)$' \| \
11838 X"$as_dir" : 'X\(/\)' \| \
11839 . : '\(.\)' 2>/dev/null ||
11840echo X"$as_dir" |
11841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11843 /^X\(\/\/\)$/{ s//\1/; q; }
11844 /^X\(\/\).*/{ s//\1/; q; }
11845 s/.*/./; q'`
11846 done
11847 test ! -n "$as_dirs" || mkdir $as_dirs
11848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11849echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11850 { (exit 1); exit 1; }; }; }
11851
11852 rm -f $ac_file
11853 mv $tmp/config.h $ac_file
11854 fi
11855 else
11856 cat $tmp/config.h
11857 rm -f $tmp/config.h
11858 fi
11859# Compute $ac_file's index in $config_headers.
11860_am_stamp_count=1
11861for _am_header in $config_headers :; do
11862 case $_am_header in
11863 $ac_file | $ac_file:* )
11864 break ;;
11865 * )
11866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11867 esac
11868done
11869echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11870$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11871 X$ac_file : 'X\(//\)[^/]' \| \
11872 X$ac_file : 'X\(//\)$' \| \
11873 X$ac_file : 'X\(/\)' \| \
11874 . : '\(.\)' 2>/dev/null ||
11875echo X$ac_file |
11876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11878 /^X\(\/\/\)$/{ s//\1/; q; }
11879 /^X\(\/\).*/{ s//\1/; q; }
11880 s/.*/./; q'`/stamp-h$_am_stamp_count
11881done
11882_ACEOF
11883cat >>$CONFIG_STATUS <<\_ACEOF
f0c8eda1
KZ
11884
11885#
48d7b13a 11886# CONFIG_COMMANDS section.
f0c8eda1 11887#
48d7b13a
KZ
11888for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11889 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11890 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11891 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11892$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11893 X"$ac_dest" : 'X\(//\)[^/]' \| \
11894 X"$ac_dest" : 'X\(//\)$' \| \
11895 X"$ac_dest" : 'X\(/\)' \| \
11896 . : '\(.\)' 2>/dev/null ||
11897echo X"$ac_dest" |
11898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11900 /^X\(\/\/\)$/{ s//\1/; q; }
11901 /^X\(\/\).*/{ s//\1/; q; }
11902 s/.*/./; q'`
11903 { if $as_mkdir_p; then
11904 mkdir -p "$ac_dir"
11905 else
11906 as_dir="$ac_dir"
11907 as_dirs=
11908 while test ! -d "$as_dir"; do
11909 as_dirs="$as_dir $as_dirs"
11910 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11911$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11912 X"$as_dir" : 'X\(//\)[^/]' \| \
11913 X"$as_dir" : 'X\(//\)$' \| \
11914 X"$as_dir" : 'X\(/\)' \| \
11915 . : '\(.\)' 2>/dev/null ||
11916echo X"$as_dir" |
11917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11919 /^X\(\/\/\)$/{ s//\1/; q; }
11920 /^X\(\/\).*/{ s//\1/; q; }
11921 s/.*/./; q'`
11922 done
11923 test ! -n "$as_dirs" || mkdir $as_dirs
11924 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11925echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11926 { (exit 1); exit 1; }; }; }
11927
11928 ac_builddir=.
11929
11930if test "$ac_dir" != .; then
11931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11932 # A "../" for each directory in $ac_dir_suffix.
11933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
f0c8eda1 11934else
48d7b13a 11935 ac_dir_suffix= ac_top_builddir=
f0c8eda1 11936fi
f0c8eda1 11937
48d7b13a
KZ
11938case $srcdir in
11939 .) # No --srcdir option. We are building in place.
11940 ac_srcdir=.
11941 if test -z "$ac_top_builddir"; then
11942 ac_top_srcdir=.
11943 else
11944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11945 fi ;;
11946 [\\/]* | ?:[\\/]* ) # Absolute path.
11947 ac_srcdir=$srcdir$ac_dir_suffix;
11948 ac_top_srcdir=$srcdir ;;
11949 *) # Relative path.
11950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11952esac
11953
11954# Do not use `cd foo && pwd` to compute absolute paths, because
11955# the directories may not exist.
11956case `pwd` in
11957.) ac_abs_builddir="$ac_dir";;
11958*)
11959 case "$ac_dir" in
11960 .) ac_abs_builddir=`pwd`;;
11961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11963 esac;;
11964esac
11965case $ac_abs_builddir in
11966.) ac_abs_top_builddir=${ac_top_builddir}.;;
11967*)
11968 case ${ac_top_builddir}. in
11969 .) ac_abs_top_builddir=$ac_abs_builddir;;
11970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11972 esac;;
11973esac
11974case $ac_abs_builddir in
11975.) ac_abs_srcdir=$ac_srcdir;;
11976*)
11977 case $ac_srcdir in
11978 .) ac_abs_srcdir=$ac_abs_builddir;;
11979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11981 esac;;
11982esac
11983case $ac_abs_builddir in
11984.) ac_abs_top_srcdir=$ac_top_srcdir;;
11985*)
11986 case $ac_top_srcdir in
11987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11990 esac;;
11991esac
11992
11993
11994 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11995echo "$as_me: executing $ac_dest commands" >&6;}
11996 case $ac_dest in
11997 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11998 # Strip MF so we end up with the name of the file.
11999 mf=`echo "$mf" | sed -e 's/:.*$//'`
12000 # Check whether this is an Automake generated Makefile or not.
12001 # We used to match only the files named `Makefile.in', but
12002 # some people rename them; so instead we look at the file content.
12003 # Grep'ing the first line is not enough: some people post-process
12004 # each Makefile.in and add a new line on top of each file to say so.
12005 # So let's grep whole file.
12006 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12007 dirpart=`(dirname "$mf") 2>/dev/null ||
12008$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12009 X"$mf" : 'X\(//\)[^/]' \| \
12010 X"$mf" : 'X\(//\)$' \| \
12011 X"$mf" : 'X\(/\)' \| \
12012 . : '\(.\)' 2>/dev/null ||
12013echo X"$mf" |
12014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12016 /^X\(\/\/\)$/{ s//\1/; q; }
12017 /^X\(\/\).*/{ s//\1/; q; }
12018 s/.*/./; q'`
12019 else
12020 continue
12021 fi
12022 # Extract the definition of DEPDIR, am__include, and am__quote
12023 # from the Makefile without running `make'.
12024 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12025 test -z "$DEPDIR" && continue
12026 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12027 test -z "am__include" && continue
12028 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12029 # When using ansi2knr, U may be empty or an underscore; expand it
12030 U=`sed -n 's/^U = //p' < "$mf"`
12031 # Find all dependency output files, they are included files with
12032 # $(DEPDIR) in their names. We invoke sed twice because it is the
12033 # simplest approach to changing $(DEPDIR) to its actual value in the
12034 # expansion.
12035 for file in `sed -n "
12036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12038 # Make sure the directory exists.
12039 test -f "$dirpart/$file" && continue
12040 fdir=`(dirname "$file") 2>/dev/null ||
12041$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12042 X"$file" : 'X\(//\)[^/]' \| \
12043 X"$file" : 'X\(//\)$' \| \
12044 X"$file" : 'X\(/\)' \| \
12045 . : '\(.\)' 2>/dev/null ||
12046echo X"$file" |
12047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12049 /^X\(\/\/\)$/{ s//\1/; q; }
12050 /^X\(\/\).*/{ s//\1/; q; }
12051 s/.*/./; q'`
12052 { if $as_mkdir_p; then
12053 mkdir -p $dirpart/$fdir
12054 else
12055 as_dir=$dirpart/$fdir
12056 as_dirs=
12057 while test ! -d "$as_dir"; do
12058 as_dirs="$as_dir $as_dirs"
12059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12061 X"$as_dir" : 'X\(//\)[^/]' \| \
12062 X"$as_dir" : 'X\(//\)$' \| \
12063 X"$as_dir" : 'X\(/\)' \| \
12064 . : '\(.\)' 2>/dev/null ||
12065echo X"$as_dir" |
12066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12068 /^X\(\/\/\)$/{ s//\1/; q; }
12069 /^X\(\/\).*/{ s//\1/; q; }
12070 s/.*/./; q'`
12071 done
12072 test ! -n "$as_dirs" || mkdir $as_dirs
12073 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12074echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12075 { (exit 1); exit 1; }; }; }
12076
12077 # echo "creating $dirpart/$file"
12078 echo '# dummy' > "$dirpart/$file"
12079 done
12080done
12081 ;;
12082 default-1 )
12083 for ac_file in $CONFIG_FILES; do
12084 # Support "outfile[:infile[:infile...]]"
12085 case "$ac_file" in
12086 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12087 esac
12088 # PO directories have a Makefile.in generated from Makefile.in.in.
12089 case "$ac_file" in */Makefile.in)
12090 # Adjust a relative srcdir.
12091 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12092 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12093 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12094 # In autoconf-2.13 it is called $ac_given_srcdir.
12095 # In autoconf-2.50 it is called $srcdir.
12096 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12097 case "$ac_given_srcdir" in
12098 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12099 /*) top_srcdir="$ac_given_srcdir" ;;
12100 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12101 esac
12102 # Treat a directory as a PO directory if and only if it has a
12103 # POTFILES.in file. This allows packages to have multiple PO
12104 # directories under different names or in different locations.
12105 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12106 rm -f "$ac_dir/POTFILES"
12107 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12108 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12109 POMAKEFILEDEPS="POTFILES.in"
12110 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12111 # on $ac_dir but don't depend on user-specified configuration
12112 # parameters.
12113 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12114 # The LINGUAS file contains the set of available languages.
12115 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12116 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12117 fi
12118 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12119 # Hide the ALL_LINGUAS assigment from automake.
12120 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12121 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12122 else
12123 # The set of available languages was given in configure.in.
12124 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12125 fi
12126 # Compute POFILES
12127 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12128 # Compute UPDATEPOFILES
12129 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12130 # Compute DUMMYPOFILES
12131 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12132 # Compute GMOFILES
12133 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12134 case "$ac_given_srcdir" in
12135 .) srcdirpre= ;;
12136 *) srcdirpre='$(srcdir)/' ;;
12137 esac
12138 POFILES=
12139 UPDATEPOFILES=
12140 DUMMYPOFILES=
12141 GMOFILES=
12142 for lang in $ALL_LINGUAS; do
12143 POFILES="$POFILES $srcdirpre$lang.po"
12144 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12145 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12146 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12147 done
12148 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12149 # environment variable.
12150 INST_LINGUAS=
12151 if test -n "$ALL_LINGUAS"; then
12152 for presentlang in $ALL_LINGUAS; do
12153 useit=no
12154 if test "%UNSET%" != "$LINGUAS"; then
12155 desiredlanguages="$LINGUAS"
12156 else
12157 desiredlanguages="$ALL_LINGUAS"
12158 fi
12159 for desiredlang in $desiredlanguages; do
12160 # Use the presentlang catalog if desiredlang is
12161 # a. equal to presentlang, or
12162 # b. a variant of presentlang (because in this case,
12163 # presentlang can be used as a fallback for messages
12164 # which are not translated in the desiredlang catalog).
12165 case "$desiredlang" in
12166 "$presentlang"*) useit=yes;;
12167 esac
12168 done
12169 if test $useit = yes; then
12170 INST_LINGUAS="$INST_LINGUAS $presentlang"
12171 fi
12172 done
12173 fi
12174 CATALOGS=
12175 if test -n "$INST_LINGUAS"; then
12176 for lang in $INST_LINGUAS; do
12177 CATALOGS="$CATALOGS $lang.gmo"
12178 done
12179 fi
12180 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12181 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"
12182 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12183 if test -f "$f"; then
12184 case "$f" in
12185 *.orig | *.bak | *~) ;;
12186 *) cat "$f" >> "$ac_dir/Makefile" ;;
12187 esac
12188 fi
12189 done
12190 fi
12191 ;;
12192 esac
12193 done ;;
12194 esac
12195done
12196_ACEOF
12197
12198cat >>$CONFIG_STATUS <<\_ACEOF
12199
12200{ (exit 0); exit 0; }
12201_ACEOF
12202chmod +x $CONFIG_STATUS
12203ac_clean_files=$ac_clean_files_save
12204
12205
12206# configure is writing to config.log, and then calls config.status.
12207# config.status does its own redirection, appending to config.log.
12208# Unfortunately, on DOS this fails, as config.log is still kept open
12209# by configure, so config.status won't be able to write to it; its
12210# output is simply discarded. So we exec the FD to /dev/null,
12211# effectively closing config.log, so it can be properly (re)opened and
12212# appended to by config.status. When coming back to configure, we
12213# need to make the FD available again.
12214if test "$no_create" != yes; then
12215 ac_cs_success=:
12216 ac_config_status_args=
12217 test "$silent" = yes &&
12218 ac_config_status_args="$ac_config_status_args --quiet"
12219 exec 5>/dev/null
12220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12221 exec 5>>config.log
12222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12223 # would make configure fail if this is the last instruction.
12224 $ac_cs_success || { (exit 1); exit 1; }
c129767e 12225fi
48d7b13a 12226