]>
Commit | Line | Data |
---|---|---|
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 | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22 | set -o posix | |
23 | fi | |
24 | DUALCASE=1; export DUALCASE # for MKS sh | |
25 | ||
26 | # Support unset when possible. | |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
28 | as_unset=unset | |
29 | else | |
30 | as_unset=false | |
31 | fi | |
32 | ||
33 | ||
34 | # Work around bugs in pre-3.0 UWIN ksh. | |
35 | $as_unset ENV MAIL MAILPATH | |
36 | PS1='$ ' | |
37 | PS2='> ' | |
38 | PS4='+ ' | |
39 | ||
40 | # NLS nuisances. | |
41 | for as_var in \ | |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44 | LC_TELEPHONE LC_TIME | |
45 | do | |
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 | |
51 | done | |
52 | ||
53 | # Required to use basename. | |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
55 | as_expr=expr | |
56 | else | |
57 | as_expr=false | |
58 | fi | |
59 | ||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
61 | as_basename=basename | |
62 | else | |
63 | as_basename=false | |
64 | fi | |
65 | ||
66 | ||
67 | # Name of the executable. | |
68 | as_me=`$as_basename "$0" || | |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
70 | X"$0" : 'X\(//\)$' \| \ | |
71 | X"$0" : 'X\(/\)$' \| \ | |
72 | . : '\(.\)' 2>/dev/null || | |
73 | echo X/"$0" | | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
76 | /^X\/\(\/\).*/{ s//\1/; q; } | |
77 | s/.*/./; q'` | |
78 | ||
79 | ||
80 | # PATH needs CR, and LINENO needs CR and PATH. | |
81 | # Avoid depending upon Character Ranges. | |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
85 | as_cr_digits='0123456789' | |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
87 | ||
88 | # The user is always right. | |
89 | if test "${PATH_SEPARATOR+set}" != set; then | |
90 | echo "#! /bin/sh" >conf$$.sh | |
91 | echo "exit 0" >>conf$$.sh | |
92 | chmod +x conf$$.sh | |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
94 | PATH_SEPARATOR=';' | |
95 | else | |
96 | PATH_SEPARATOR=: | |
97 | fi | |
98 | rm -f conf$$.sh | |
99 | fi | |
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 | |
112 | for as_dir in $PATH | |
113 | do | |
114 | IFS=$as_save_IFS | |
115 | test -z "$as_dir" && as_dir=. | |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
117 | done | |
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 | |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
134 | do | |
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 | |
154 | done | |
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 | ||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
190 | *c*,-n*) ECHO_N= ECHO_C=' | |
191 | ' ECHO_T=' ' ;; | |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
194 | esac | |
195 | ||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
197 | as_expr=expr | |
198 | else | |
199 | as_expr=false | |
200 | fi | |
201 | ||
202 | rm -f conf$$ conf$$.exe conf$$.file | |
203 | echo >conf$$.file | |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
205 | # We could just check for DJGPP; but this test a) works b) is more generic | |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
207 | if test -f conf$$.exe; then | |
208 | # Don't use ln at all; we don't have any links | |
209 | as_ln_s='cp -p' | |
210 | else | |
211 | as_ln_s='ln -s' | |
212 | fi | |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
214 | as_ln_s=ln | |
215 | else | |
216 | as_ln_s='cp -p' | |
217 | fi | |
218 | rm -f conf$$ conf$$.exe conf$$.file | |
219 | ||
220 | if mkdir -p . 2>/dev/null; then | |
221 | as_mkdir_p=: | |
222 | else | |
223 | test -d ./-p && rmdir ./-p | |
224 | as_mkdir_p=false | |
225 | fi | |
226 | ||
227 | as_executable_p="test -f" | |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
231 | ||
232 | # Sed expression to map a string onto a valid variable name. | |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
234 | ||
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $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. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
257 | ac_config_libobj_dir=. | |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
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. | |
270 | PACKAGE_NAME='util-linux' | |
271 | PACKAGE_TARNAME='util-linux' | |
ca3ea756 KZ |
272 | PACKAGE_VERSION='2.13-pre4' |
273 | PACKAGE_STRING='util-linux 2.13-pre4' | |
48d7b13a KZ |
274 | PACKAGE_BUGREPORT='bunk@stusta.de' |
275 | ||
276 | ac_unique_file="mount/mount.c" | |
277 | ac_default_prefix=/ | |
278 | # Factoring default headers for most tests. | |
279 | ac_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 | 315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 |
316 | ac_subst_files='' |
317 | ||
318 | # Initialize some variables set by options. | |
319 | ac_init_help= | |
320 | ac_init_version=false | |
321 | # The variables have the same names as the options, with | |
322 | # dashes changed to underlines. | |
323 | cache_file=/dev/null | |
324 | exec_prefix=NONE | |
325 | no_create= | |
326 | no_recursion= | |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
334 | verbose= | |
335 | x_includes=NONE | |
336 | x_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. | |
343 | bindir='${exec_prefix}/bin' | |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
356 | ac_prev= | |
357 | for ac_option | |
358 | do | |
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 | |
630 | Try \`$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 | |
653 | done | |
654 | ||
655 | if 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; }; } | |
659 | fi | |
660 | ||
661 | # Be sure to have absolute paths. | |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
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 | |
670 | done | |
671 | ||
672 | # Be sure to have absolute paths. | |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
675 | do | |
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 | |
682 | done | |
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. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if 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 | |
700 | fi | |
701 | ||
702 | ac_tool_prefix= | |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
706 | ||
707 | ||
708 | # Find the source files, if location was not specified. | |
709 | if 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 || | |
718 | echo 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 | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if 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 | |
739 | fi | |
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; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
48d7b13a KZ |
776 | |
777 | # | |
778 | # Report the --help message. | |
779 | # | |
780 | if 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 | |
786 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
787 | ||
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
789 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
790 | ||
791 | Defaults for the options are specified in brackets. | |
792 | ||
793 | Configuration: | |
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 | |
807 | Installation 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 | ||
813 | By default, \`make install' will install all the files in | |
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
816 | for instance \`--prefix=\$HOME'. | |
817 | ||
818 | For better control, use the options below. | |
819 | ||
820 | Fine 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 | ||
837 | Program 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 | ||
842 | System 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 | |
846 | fi | |
847 | ||
848 | if 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 | ||
854 | Optional 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 | ||
890 | Optional 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 | |
902 | Some 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 | |
911 | Use these variables to override the choices made by `configure' or to help | |
912 | it to find libraries and programs with nonstandard names/locations. | |
913 | ||
914 | Report bugs to <bunk@stusta.de>. | |
915 | _ACEOF | |
916 | fi | |
917 | ||
918 | if 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 | ||
925 | if 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'` | |
929 | else | |
930 | ac_dir_suffix= ac_top_builddir= | |
931 | fi | |
932 | ||
933 | case $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 ;; | |
947 | esac | |
948 | ||
949 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
950 | # the directories may not exist. | |
951 | case `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;; | |
959 | esac | |
960 | case $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;; | |
968 | esac | |
969 | case $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;; | |
977 | esac | |
978 | case $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;; | |
986 | esac | |
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 | |
1005 | fi | |
1006 | ||
1007 | test -n "$ac_init_help" && exit 0 | |
1008 | if $ac_init_version; then | |
1009 | cat <<\_ACEOF | |
ca3ea756 | 1010 | util-linux configure 2.13-pre4 |
48d7b13a KZ |
1011 | generated by GNU Autoconf 2.59 |
1012 | ||
1013 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1014 | This configure script is free software; the Free Software Foundation | |
1015 | gives unlimited permission to copy, distribute and modify it. | |
1016 | _ACEOF | |
1017 | exit 0 | |
1018 | fi | |
1019 | exec 5>config.log | |
1020 | cat >&5 <<_ACEOF | |
1021 | This file contains any messages produced by compilers while | |
1022 | running configure, to aid debugging if configure makes a mistake. | |
1023 | ||
ca3ea756 | 1024 | It was created by util-linux $as_me 2.13-pre4, which was |
48d7b13a KZ |
1025 | generated by GNU Autoconf 2.59. Invocation command line was |
1026 | ||
1027 | $ $0 $@ | |
1028 | ||
1029 | _ACEOF | |
1030 | { | |
1031 | cat <<_ASUNAME | |
1032 | ## --------- ## | |
1033 | ## Platform. ## | |
1034 | ## --------- ## | |
1035 | ||
1036 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1037 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1038 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1039 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1040 | uname -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` | |
1048 | hostinfo = `(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 | ||
1055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1056 | for as_dir in $PATH | |
1057 | do | |
1058 | IFS=$as_save_IFS | |
1059 | test -z "$as_dir" && as_dir=. | |
1060 | echo "PATH: $as_dir" | |
1061 | done | |
1062 | ||
1063 | } >&5 | |
1064 | ||
1065 | cat >&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. | |
1080 | ac_configure_args= | |
1081 | ac_configure_args0= | |
1082 | ac_configure_args1= | |
1083 | ac_sep= | |
1084 | ac_must_keep_next=false | |
1085 | for ac_pass in 1 2 | |
1086 | do | |
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 | |
1122 | done | |
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. | |
1131 | trap '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 | |
1205 | for ac_signal in 1 2 13 15; do | |
1206 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1207 | done | |
1208 | ac_signal=0 | |
1209 | ||
1210 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1211 | rm -rf conftest* confdefs.h | |
1212 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1213 | echo >confdefs.h | |
1214 | ||
1215 | # Predefined preprocessor variables. | |
1216 | ||
1217 | cat >>confdefs.h <<_ACEOF | |
1218 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1219 | _ACEOF | |
1220 | ||
1221 | ||
1222 | cat >>confdefs.h <<_ACEOF | |
1223 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1224 | _ACEOF | |
1225 | ||
1226 | ||
1227 | cat >>confdefs.h <<_ACEOF | |
1228 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1229 | _ACEOF | |
1230 | ||
1231 | ||
1232 | cat >>confdefs.h <<_ACEOF | |
1233 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1234 | _ACEOF | |
1235 | ||
1236 | ||
1237 | cat >>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. | |
1244 | if 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 | |
1250 | fi | |
1251 | for 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 | |
1254 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1255 | sed 's/^/| /' "$ac_site_file" >&5 | |
1256 | . "$ac_site_file" | |
1257 | fi | |
1258 | done | |
1259 | ||
1260 | if 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 | |
1265 | echo "$as_me: loading cache $cache_file" >&6;} | |
1266 | case $cache_file in | |
1267 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1268 | *) . ./$cache_file;; | |
1269 | esac | |
1270 | fi | |
1271 | else | |
1272 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1273 | echo "$as_me: creating cache $cache_file" >&6;} | |
1274 | >$cache_file | |
1275 | fi | |
1276 | ||
1277 | # Check that the precious variables saved in the cache have kept the same | |
1278 | # value. | |
1279 | ac_cache_corrupted=false | |
1280 | for 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 | |
1289 | echo "$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 | |
1293 | echo "$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 | |
1299 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1300 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1301 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1302 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1303 | echo "$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 | |
1319 | done | |
1320 | if $ac_cache_corrupted; then | |
1321 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1322 | echo "$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 | |
1324 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1325 | { (exit 1); exit 1; }; } | |
1326 | fi | |
1327 | ||
1328 | ac_ext=c | |
1329 | ac_cpp='$CPP $CPPFLAGS' | |
1330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1332 | ac_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 | ||
1363 | ac_aux_dir= | |
1364 | for 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 | |
1378 | done | |
1379 | if test -z "$ac_aux_dir"; then | |
1380 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | |
1381 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | |
1382 | { (exit 1); exit 1; }; } | |
1383 | fi | |
1384 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1385 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1386 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1387 | ||
1388 | ||
1389 | am__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. | |
1403 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1404 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1405 | if test -z "$INSTALL"; then | |
1406 | if test "${ac_cv_path_install+set}" = set; then | |
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1408 | else | |
1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1410 | for as_dir in $PATH | |
1411 | do | |
1412 | IFS=$as_save_IFS | |
1413 | test -z "$as_dir" && as_dir=. | |
1414 | # Account for people who put trailing slashes in PATH elements. | |
1415 | case $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 | ;; | |
1443 | esac | |
1444 | done | |
1445 | ||
1446 | ||
1447 | fi | |
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 | |
1457 | fi | |
1458 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1459 | echo "${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. | |
1463 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1464 | ||
1465 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1466 | ||
1467 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1468 | ||
1469 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1470 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1471 | # Just in case | |
1472 | sleep 1 | |
1473 | echo 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). | |
1479 | if ( | |
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 | |
1494 | alias in your environment" >&5 | |
1495 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1496 | alias in your environment" >&2;} | |
1497 | { (exit 1); exit 1; }; } | |
1498 | fi | |
1499 | ||
1500 | test "$2" = conftest.file | |
1501 | ) | |
1502 | then | |
1503 | # Ok. | |
1504 | : | |
1505 | else | |
1506 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1507 | Check your system clock" >&5 | |
1508 | echo "$as_me: error: newly created file is older than distributed files! | |
1509 | Check your system clock" >&2;} | |
1510 | { (exit 1); exit 1; }; } | |
1511 | fi | |
1512 | echo "$as_me:$LINENO: result: yes" >&5 | |
1513 | echo "${ECHO_T}yes" >&6 | |
1514 | test "$program_prefix" != NONE && | |
1515 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1516 | # Use a double $ so make ignores it. | |
1517 | test "$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. | |
1521 | cat <<\_ACEOF >conftest.sed | |
1522 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1523 | _ACEOF | |
1524 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1525 | rm conftest.sed | |
1526 | ||
1527 | # expand $ac_aux_dir to an absolute path | |
1528 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1529 | ||
1530 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1531 | # Use eval to expand $SHELL | |
1532 | if eval "$MISSING --run true"; then | |
1533 | am_missing_run="$MISSING --run " | |
1534 | else | |
1535 | am_missing_run= | |
1536 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1537 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1538 | fi | |
1539 | ||
1540 | if 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 --' | |
1556 | else | |
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 | |
1571 | fi | |
1572 | ||
1573 | for ac_prog in gawk mawk nawk awk | |
1574 | do | |
1575 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1576 | set dummy $ac_prog; ac_word=$2 | |
1577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1579 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1581 | else | |
1582 | if test -n "$AWK"; then | |
1583 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1584 | else | |
1585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1586 | for as_dir in $PATH | |
1587 | do | |
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 | |
1596 | done | |
1597 | done | |
1598 | ||
1599 | fi | |
1600 | fi | |
1601 | AWK=$ac_cv_prog_AWK | |
1602 | if test -n "$AWK"; then | |
1603 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1604 | echo "${ECHO_T}$AWK" >&6 | |
1605 | else | |
1606 | echo "$as_me:$LINENO: result: no" >&5 | |
1607 | echo "${ECHO_T}no" >&6 | |
1608 | fi | |
1609 | ||
1610 | test -n "$AWK" && break | |
1611 | done | |
1612 | ||
1613 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1614 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1615 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1616 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1618 | else | |
1619 | cat >conftest.make <<\_ACEOF | |
1620 | all: | |
1621 | @echo 'ac_maketemp="$(MAKE)"' | |
1622 | _ACEOF | |
1623 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1624 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1625 | if test -n "$ac_maketemp"; then | |
1626 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1627 | else | |
1628 | eval ac_cv_prog_make_${ac_make}_set=no | |
1629 | fi | |
1630 | rm -f conftest.make | |
1631 | fi | |
1632 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1633 | echo "$as_me:$LINENO: result: yes" >&5 | |
1634 | echo "${ECHO_T}yes" >&6 | |
1635 | SET_MAKE= | |
1636 | else | |
1637 | echo "$as_me:$LINENO: result: no" >&5 | |
1638 | echo "${ECHO_T}no" >&6 | |
1639 | SET_MAKE="MAKE=${MAKE-make}" | |
1640 | fi | |
1641 | ||
1642 | rm -rf .tst 2>/dev/null | |
1643 | mkdir .tst 2>/dev/null | |
1644 | if test -d .tst; then | |
1645 | am__leading_dot=. | |
1646 | else | |
1647 | am__leading_dot=_ | |
1648 | fi | |
1649 | rmdir .tst 2>/dev/null | |
1650 | ||
1651 | # test to see if srcdir already configured | |
1652 | if 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 | |
1655 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1656 | { (exit 1); exit 1; }; } | |
1657 | fi | |
1658 | ||
1659 | # test whether we have cygpath | |
1660 | if 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 | |
1666 | fi | |
1667 | ||
1668 | ||
1669 | # Define the identity of the package. | |
1670 | PACKAGE='util-linux' | |
ca3ea756 | 1671 | VERSION='2.13-pre4' |
48d7b13a KZ |
1672 | |
1673 | ||
1674 | cat >>confdefs.h <<_ACEOF | |
1675 | #define PACKAGE "$PACKAGE" | |
1676 | _ACEOF | |
1677 | ||
1678 | ||
1679 | cat >>confdefs.h <<_ACEOF | |
1680 | #define VERSION "$VERSION" | |
1681 | _ACEOF | |
1682 | ||
1683 | # Some tools Automake needs. | |
1684 | ||
1685 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1686 | ||
1687 | ||
1688 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1689 | ||
1690 | ||
1691 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1692 | ||
1693 | ||
1694 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1695 | ||
1696 | ||
1697 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1698 | ||
1699 | install_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. | |
1705 | if 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. | |
1708 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1711 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1713 | else | |
1714 | if test -n "$STRIP"; then | |
1715 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1716 | else | |
1717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1718 | for as_dir in $PATH | |
1719 | do | |
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 | |
1728 | done | |
1729 | done | |
1730 | ||
1731 | fi | |
1732 | fi | |
1733 | STRIP=$ac_cv_prog_STRIP | |
1734 | if test -n "$STRIP"; then | |
1735 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1736 | echo "${ECHO_T}$STRIP" >&6 | |
1737 | else | |
1738 | echo "$as_me:$LINENO: result: no" >&5 | |
1739 | echo "${ECHO_T}no" >&6 | |
1740 | fi | |
1741 | ||
1742 | fi | |
1743 | if 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. | |
1746 | set dummy strip; ac_word=$2 | |
1747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1749 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1751 | else | |
1752 | if test -n "$ac_ct_STRIP"; then | |
1753 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1754 | else | |
1755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1756 | for as_dir in $PATH | |
1757 | do | |
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 | |
1766 | done | |
1767 | done | |
1768 | ||
1769 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1770 | fi | |
1771 | fi | |
1772 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1773 | if test -n "$ac_ct_STRIP"; then | |
1774 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1775 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1776 | else | |
1777 | echo "$as_me:$LINENO: result: no" >&5 | |
1778 | echo "${ECHO_T}no" >&6 | |
1779 | fi | |
1780 | ||
1781 | STRIP=$ac_ct_STRIP | |
1782 | else | |
1783 | STRIP="$ac_cv_prog_STRIP" | |
1784 | fi | |
1785 | ||
1786 | fi | |
1787 | INSTALL_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 | ||
1793 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1794 | ||
1795 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ||
1806 | ||
baf39af1 KZ |
1807 | if 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. | |
1809 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1812 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
1813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1814 | else | |
1815 | if test -n "$RANLIB"; then | |
1816 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1817 | else | |
1818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1819 | for as_dir in $PATH | |
1820 | do | |
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 | |
1829 | done | |
1830 | done | |
48d7b13a | 1831 | |
baf39af1 KZ |
1832 | fi |
1833 | fi | |
1834 | RANLIB=$ac_cv_prog_RANLIB | |
1835 | if test -n "$RANLIB"; then | |
1836 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
1837 | echo "${ECHO_T}$RANLIB" >&6 | |
48d7b13a | 1838 | else |
baf39af1 KZ |
1839 | echo "$as_me:$LINENO: result: no" >&5 |
1840 | echo "${ECHO_T}no" >&6 | |
1841 | fi | |
48d7b13a | 1842 | |
baf39af1 KZ |
1843 | fi |
1844 | if 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. | |
1847 | set dummy ranlib; ac_word=$2 | |
1848 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1850 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1852 | else | |
1853 | if test -n "$ac_ct_RANLIB"; then | |
1854 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
1855 | else | |
1856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1857 | for as_dir in $PATH | |
1858 | do | |
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 | |
1867 | done | |
1868 | done | |
48d7b13a | 1869 | |
baf39af1 KZ |
1870 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
1871 | fi | |
1872 | fi | |
1873 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
1874 | if test -n "$ac_ct_RANLIB"; then | |
1875 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
1876 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
48d7b13a | 1877 | else |
baf39af1 KZ |
1878 | echo "$as_me:$LINENO: result: no" >&5 |
1879 | echo "${ECHO_T}no" >&6 | |
1880 | fi | |
48d7b13a | 1881 | |
baf39af1 | 1882 | RANLIB=$ac_ct_RANLIB |
48d7b13a | 1883 | else |
baf39af1 KZ |
1884 | RANLIB="$ac_cv_prog_RANLIB" |
1885 | fi | |
48d7b13a | 1886 | |
48d7b13a | 1887 | |
baf39af1 KZ |
1888 | # Extract the first word of "perl", so it can be a program name with args. |
1889 | set dummy perl; ac_word=$2 | |
1890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1892 | if test "${ac_cv_path_PERL+set}" = set; then | |
48d7b13a KZ |
1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1894 | else | |
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 | |
1901 | for as_dir in $PATH | |
1902 | do | |
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 | |
1911 | done | |
1912 | done | |
48d7b13a | 1913 | |
baf39af1 KZ |
1914 | ;; |
1915 | esac | |
48d7b13a | 1916 | fi |
baf39af1 | 1917 | PERL=$ac_cv_path_PERL |
48d7b13a | 1918 | |
baf39af1 KZ |
1919 | if test -n "$PERL"; then |
1920 | echo "$as_me:$LINENO: result: $PERL" >&5 | |
1921 | echo "${ECHO_T}$PERL" >&6 | |
48d7b13a | 1922 | else |
baf39af1 KZ |
1923 | echo "$as_me:$LINENO: result: no" >&5 |
1924 | echo "${ECHO_T}no" >&6 | |
48d7b13a | 1925 | fi |
48d7b13a KZ |
1926 | |
1927 | ||
1928 | DEPDIR="${am__leading_dot}deps" | |
1929 | ||
1930 | ac_config_commands="$ac_config_commands depfiles" | |
1931 | ||
1932 | ||
1933 | am_make=${MAKE-make} | |
1934 | cat > confinc << 'END' | |
1935 | am__doit: | |
1936 | @echo done | |
1937 | .PHONY: am__doit | |
1938 | END | |
1939 | # If we don't find an include directive, just comment out the code. | |
1940 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
1941 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
1942 | am__include="#" | |
1943 | am__quote= | |
1944 | _am_result=none | |
1945 | # First try GNU make style include. | |
1946 | echo "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'. | |
1952 | if 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 | |
1956 | fi | |
1957 | # Now try BSD make style include. | |
1958 | if 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 | |
1965 | fi | |
1966 | ||
1967 | ||
1968 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
1969 | echo "${ECHO_T}$_am_result" >&6 | |
1970 | rm -f confinc confmf | |
1971 | ||
1972 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
1973 | if test "${enable_dependency_tracking+set}" = set; then | |
1974 | enableval="$enable_dependency_tracking" | |
1975 | ||
1976 | fi; | |
1977 | if test "x$enable_dependency_tracking" != xno; then | |
1978 | am_depcomp="$ac_aux_dir/depcomp" | |
1979 | AMDEPBACKSLASH='\' | |
1980 | fi | |
1981 | ||
1982 | ||
1983 | if test "x$enable_dependency_tracking" != xno; then | |
1984 | AMDEP_TRUE= | |
1985 | AMDEP_FALSE='#' | |
1986 | else | |
1987 | AMDEP_TRUE='#' | |
1988 | AMDEP_FALSE= | |
1989 | fi | |
1990 | ||
1991 | ||
1992 | ||
1993 | ac_ext=c | |
1994 | ac_cpp='$CPP $CPPFLAGS' | |
1995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1998 | if 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. | |
2000 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2003 | if test "${ac_cv_prog_CC+set}" = set; then | |
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2005 | else | |
2006 | if test -n "$CC"; then | |
2007 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2008 | else | |
2009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2010 | for as_dir in $PATH | |
2011 | do | |
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 | |
2020 | done | |
2021 | done | |
2022 | ||
2023 | fi | |
2024 | fi | |
2025 | CC=$ac_cv_prog_CC | |
2026 | if test -n "$CC"; then | |
2027 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2028 | echo "${ECHO_T}$CC" >&6 | |
2029 | else | |
2030 | echo "$as_me:$LINENO: result: no" >&5 | |
2031 | echo "${ECHO_T}no" >&6 | |
2032 | fi | |
2033 | ||
2034 | fi | |
2035 | if 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. | |
2038 | set dummy gcc; ac_word=$2 | |
2039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2041 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2043 | else | |
2044 | if test -n "$ac_ct_CC"; then | |
2045 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2046 | else | |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
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 | |
2058 | done | |
2059 | done | |
2060 | ||
2061 | fi | |
2062 | fi | |
2063 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2064 | if test -n "$ac_ct_CC"; then | |
2065 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2066 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2067 | else | |
2068 | echo "$as_me:$LINENO: result: no" >&5 | |
2069 | echo "${ECHO_T}no" >&6 | |
2070 | fi | |
2071 | ||
2072 | CC=$ac_ct_CC | |
2073 | else | |
2074 | CC="$ac_cv_prog_CC" | |
2075 | fi | |
2076 | ||
2077 | if 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. | |
2080 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2083 | if test "${ac_cv_prog_CC+set}" = set; then | |
2084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2085 | else | |
2086 | if test -n "$CC"; then | |
2087 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2088 | else | |
2089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2090 | for as_dir in $PATH | |
2091 | do | |
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 | |
2100 | done | |
2101 | done | |
2102 | ||
2103 | fi | |
2104 | fi | |
2105 | CC=$ac_cv_prog_CC | |
2106 | if test -n "$CC"; then | |
2107 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2108 | echo "${ECHO_T}$CC" >&6 | |
2109 | else | |
2110 | echo "$as_me:$LINENO: result: no" >&5 | |
2111 | echo "${ECHO_T}no" >&6 | |
2112 | fi | |
2113 | ||
2114 | fi | |
2115 | if 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. | |
2118 | set dummy cc; ac_word=$2 | |
2119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2121 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2123 | else | |
2124 | if test -n "$ac_ct_CC"; then | |
2125 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2126 | else | |
2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2128 | for as_dir in $PATH | |
2129 | do | |
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 | |
2138 | done | |
2139 | done | |
2140 | ||
2141 | fi | |
2142 | fi | |
2143 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2144 | if test -n "$ac_ct_CC"; then | |
2145 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2146 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2147 | else | |
2148 | echo "$as_me:$LINENO: result: no" >&5 | |
2149 | echo "${ECHO_T}no" >&6 | |
2150 | fi | |
2151 | ||
2152 | CC=$ac_ct_CC | |
2153 | else | |
2154 | CC="$ac_cv_prog_CC" | |
2155 | fi | |
2156 | ||
2157 | fi | |
2158 | if test -z "$CC"; then | |
2159 | # Extract the first word of "cc", so it can be a program name with args. | |
2160 | set dummy cc; ac_word=$2 | |
2161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2163 | if test "${ac_cv_prog_CC+set}" = set; then | |
2164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2165 | else | |
2166 | if test -n "$CC"; then | |
2167 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2168 | else | |
2169 | ac_prog_rejected=no | |
2170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2171 | for as_dir in $PATH | |
2172 | do | |
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 | |
2185 | done | |
2186 | done | |
2187 | ||
2188 | if 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 | |
2199 | fi | |
2200 | fi | |
2201 | fi | |
2202 | CC=$ac_cv_prog_CC | |
2203 | if test -n "$CC"; then | |
2204 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2205 | echo "${ECHO_T}$CC" >&6 | |
2206 | else | |
2207 | echo "$as_me:$LINENO: result: no" >&5 | |
2208 | echo "${ECHO_T}no" >&6 | |
2209 | fi | |
2210 | ||
2211 | fi | |
2212 | if 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. | |
2217 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2220 | if test "${ac_cv_prog_CC+set}" = set; then | |
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2222 | else | |
2223 | if test -n "$CC"; then | |
2224 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2225 | else | |
2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2227 | for as_dir in $PATH | |
2228 | do | |
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 | |
2237 | done | |
2238 | done | |
2239 | ||
2240 | fi | |
2241 | fi | |
2242 | CC=$ac_cv_prog_CC | |
2243 | if test -n "$CC"; then | |
2244 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2245 | echo "${ECHO_T}$CC" >&6 | |
2246 | else | |
2247 | echo "$as_me:$LINENO: result: no" >&5 | |
2248 | echo "${ECHO_T}no" >&6 | |
2249 | fi | |
2250 | ||
2251 | test -n "$CC" && break | |
2252 | done | |
2253 | fi | |
2254 | if test -z "$CC"; then | |
2255 | ac_ct_CC=$CC | |
2256 | for ac_prog in cl | |
2257 | do | |
2258 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2259 | set dummy $ac_prog; ac_word=$2 | |
2260 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2262 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2264 | else | |
2265 | if test -n "$ac_ct_CC"; then | |
2266 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2267 | else | |
2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2269 | for as_dir in $PATH | |
2270 | do | |
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 | |
2279 | done | |
2280 | done | |
2281 | ||
2282 | fi | |
2283 | fi | |
2284 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2285 | if test -n "$ac_ct_CC"; then | |
2286 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2287 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2288 | else | |
2289 | echo "$as_me:$LINENO: result: no" >&5 | |
2290 | echo "${ECHO_T}no" >&6 | |
2291 | fi | |
2292 | ||
2293 | test -n "$ac_ct_CC" && break | |
2294 | done | |
2295 | ||
2296 | CC=$ac_ct_CC | |
2297 | fi | |
2298 | ||
2299 | fi | |
2300 | ||
2301 | ||
2302 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2303 | See \`config.log' for more details." >&5 | |
2304 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2305 | See \`config.log' for more details." >&2;} | |
2306 | { (exit 1); exit 1; }; } | |
2307 | ||
2308 | # Provide some information about the compiler. | |
2309 | echo "$as_me:$LINENO:" \ | |
2310 | "checking for C compiler version" >&5 | |
2311 | ac_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 | ||
2328 | cat >conftest.$ac_ext <<_ACEOF | |
2329 | /* confdefs.h. */ | |
2330 | _ACEOF | |
2331 | cat confdefs.h >>conftest.$ac_ext | |
2332 | cat >>conftest.$ac_ext <<_ACEOF | |
2333 | /* end confdefs.h. */ | |
2334 | ||
2335 | int | |
2336 | main () | |
2337 | { | |
2338 | ||
2339 | ; | |
2340 | return 0; | |
2341 | } | |
2342 | _ACEOF | |
2343 | ac_clean_files_save=$ac_clean_files | |
2344 | ac_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. | |
2348 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2349 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2350 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2351 | if { (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. | |
2362 | ac_cv_exeext= | |
2363 | # b.out is created by i960 compilers. | |
2364 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2365 | do | |
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 | |
2387 | done | |
2388 | else | |
2389 | echo "$as_me: failed program was:" >&5 | |
2390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2391 | ||
2392 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2393 | See \`config.log' for more details." >&5 | |
2394 | echo "$as_me: error: C compiler cannot create executables | |
2395 | See \`config.log' for more details." >&2;} | |
2396 | { (exit 77); exit 77; }; } | |
2397 | fi | |
2398 | ||
2399 | ac_exeext=$ac_cv_exeext | |
2400 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2401 | echo "${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. | |
2405 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2406 | echo $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. | |
2409 | if 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. | |
2422 | If you meant to cross compile, use \`--host'. | |
2423 | See \`config.log' for more details." >&5 | |
2424 | echo "$as_me: error: cannot run C compiled programs. | |
2425 | If you meant to cross compile, use \`--host'. | |
2426 | See \`config.log' for more details." >&2;} | |
2427 | { (exit 1); exit 1; }; } | |
2428 | fi | |
2429 | fi | |
2430 | fi | |
2431 | echo "$as_me:$LINENO: result: yes" >&5 | |
2432 | echo "${ECHO_T}yes" >&6 | |
2433 | ||
2434 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2435 | ac_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. | |
2438 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2439 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2440 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2441 | echo "${ECHO_T}$cross_compiling" >&6 | |
2442 | ||
2443 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2444 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2445 | if { (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'. | |
2454 | for 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 | |
2463 | done | |
2464 | else | |
2465 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2466 | See \`config.log' for more details." >&5 | |
2467 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2468 | See \`config.log' for more details." >&2;} | |
2469 | { (exit 1); exit 1; }; } | |
2470 | fi | |
2471 | ||
2472 | rm -f conftest$ac_cv_exeext | |
2473 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2474 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2475 | ||
2476 | rm -f conftest.$ac_ext | |
2477 | EXEEXT=$ac_cv_exeext | |
2478 | ac_exeext=$EXEEXT | |
2479 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2480 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2481 | if test "${ac_cv_objext+set}" = set; then | |
2482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2483 | else | |
2484 | cat >conftest.$ac_ext <<_ACEOF | |
2485 | /* confdefs.h. */ | |
2486 | _ACEOF | |
2487 | cat confdefs.h >>conftest.$ac_ext | |
2488 | cat >>conftest.$ac_ext <<_ACEOF | |
2489 | /* end confdefs.h. */ | |
2490 | ||
2491 | int | |
2492 | main () | |
2493 | { | |
2494 | ||
2495 | ; | |
2496 | return 0; | |
2497 | } | |
2498 | _ACEOF | |
2499 | rm -f conftest.o conftest.obj | |
2500 | if { (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 | |
2511 | done | |
2512 | else | |
2513 | echo "$as_me: failed program was:" >&5 | |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2515 | ||
2516 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2517 | See \`config.log' for more details." >&5 | |
2518 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2519 | See \`config.log' for more details." >&2;} | |
2520 | { (exit 1); exit 1; }; } | |
2521 | fi | |
2522 | ||
2523 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2524 | fi | |
2525 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2526 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2527 | OBJEXT=$ac_cv_objext | |
2528 | ac_objext=$OBJEXT | |
2529 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2530 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2531 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2533 | else | |
2534 | cat >conftest.$ac_ext <<_ACEOF | |
2535 | /* confdefs.h. */ | |
2536 | _ACEOF | |
2537 | cat confdefs.h >>conftest.$ac_ext | |
2538 | cat >>conftest.$ac_ext <<_ACEOF | |
2539 | /* end confdefs.h. */ | |
2540 | ||
2541 | int | |
2542 | main () | |
2543 | { | |
2544 | #ifndef __GNUC__ | |
2545 | choke me | |
2546 | #endif | |
2547 | ||
2548 | ; | |
2549 | return 0; | |
2550 | } | |
2551 | _ACEOF | |
2552 | rm -f conftest.$ac_objext | |
2553 | if { (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 | |
2574 | else | |
2575 | echo "$as_me: failed program was:" >&5 | |
2576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2577 | ||
2578 | ac_compiler_gnu=no | |
2579 | fi | |
2580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2581 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2582 | ||
2583 | fi | |
2584 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2585 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2586 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2587 | ac_test_CFLAGS=${CFLAGS+set} | |
2588 | ac_save_CFLAGS=$CFLAGS | |
2589 | CFLAGS="-g" | |
2590 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2591 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2592 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2594 | else | |
2595 | cat >conftest.$ac_ext <<_ACEOF | |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
2601 | ||
2602 | int | |
2603 | main () | |
2604 | { | |
2605 | ||
2606 | ; | |
2607 | return 0; | |
2608 | } | |
2609 | _ACEOF | |
2610 | rm -f conftest.$ac_objext | |
2611 | if { (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 | |
2632 | else | |
2633 | echo "$as_me: failed program was:" >&5 | |
2634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2635 | ||
2636 | ac_cv_prog_cc_g=no | |
2637 | fi | |
2638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2639 | fi | |
2640 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2641 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2642 | if test "$ac_test_CFLAGS" = set; then | |
2643 | CFLAGS=$ac_save_CFLAGS | |
2644 | elif 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 | |
2650 | else | |
2651 | if test "$GCC" = yes; then | |
2652 | CFLAGS="-O2" | |
2653 | else | |
2654 | CFLAGS= | |
2655 | fi | |
2656 | fi | |
2657 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2658 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2659 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2661 | else | |
2662 | ac_cv_prog_cc_stdc=no | |
2663 | ac_save_CC=$CC | |
2664 | cat >conftest.$ac_ext <<_ACEOF | |
2665 | /* confdefs.h. */ | |
2666 | _ACEOF | |
2667 | cat confdefs.h >>conftest.$ac_ext | |
2668 | cat >>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. */ | |
2675 | struct buf { int x; }; | |
2676 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2677 | static char *e (p, i) | |
2678 | char **p; | |
2679 | int i; | |
2680 | { | |
2681 | return p[i]; | |
2682 | } | |
2683 | static 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. */ | |
2700 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2701 | ||
2702 | int test (int i, double x); | |
2703 | struct s1 {int (*f) (int a);}; | |
2704 | struct s2 {int (*f) (double a);}; | |
2705 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2706 | int argc; | |
2707 | char **argv; | |
2708 | int | |
2709 | main () | |
2710 | { | |
2711 | return 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__ | |
2723 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2724 | do | |
2725 | CC="$ac_save_CC $ac_arg" | |
2726 | rm -f conftest.$ac_objext | |
2727 | if { (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 | |
2748 | break | |
2749 | else | |
2750 | echo "$as_me: failed program was:" >&5 | |
2751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2752 | ||
2753 | fi | |
2754 | rm -f conftest.err conftest.$ac_objext | |
2755 | done | |
2756 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2757 | CC=$ac_save_CC | |
2758 | ||
2759 | fi | |
2760 | ||
2761 | case "x$ac_cv_prog_cc_stdc" in | |
2762 | x|xno) | |
2763 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2764 | echo "${ECHO_T}none needed" >&6 ;; | |
2765 | *) | |
2766 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2767 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2768 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2769 | esac | |
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. | |
2775 | cat >conftest.$ac_ext <<_ACEOF | |
2776 | #ifndef __cplusplus | |
2777 | choke me | |
2778 | #endif | |
2779 | _ACEOF | |
2780 | rm -f conftest.$ac_objext | |
2781 | if { (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);' | |
2808 | do | |
2809 | cat >conftest.$ac_ext <<_ACEOF | |
2810 | /* confdefs.h. */ | |
2811 | _ACEOF | |
2812 | cat confdefs.h >>conftest.$ac_ext | |
2813 | cat >>conftest.$ac_ext <<_ACEOF | |
2814 | /* end confdefs.h. */ | |
2815 | $ac_declaration | |
2816 | #include <stdlib.h> | |
2817 | int | |
2818 | main () | |
2819 | { | |
2820 | exit (42); | |
2821 | ; | |
2822 | return 0; | |
2823 | } | |
2824 | _ACEOF | |
2825 | rm -f conftest.$ac_objext | |
2826 | if { (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 | : | |
2847 | else | |
2848 | echo "$as_me: failed program was:" >&5 | |
2849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2850 | ||
2851 | continue | |
2852 | fi | |
2853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2854 | cat >conftest.$ac_ext <<_ACEOF | |
2855 | /* confdefs.h. */ | |
2856 | _ACEOF | |
2857 | cat confdefs.h >>conftest.$ac_ext | |
2858 | cat >>conftest.$ac_ext <<_ACEOF | |
2859 | /* end confdefs.h. */ | |
2860 | $ac_declaration | |
2861 | int | |
2862 | main () | |
2863 | { | |
2864 | exit (42); | |
2865 | ; | |
2866 | return 0; | |
2867 | } | |
2868 | _ACEOF | |
2869 | rm -f conftest.$ac_objext | |
2870 | if { (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 | |
2891 | else | |
2892 | echo "$as_me: failed program was:" >&5 | |
2893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2894 | ||
2895 | fi | |
2896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2897 | done | |
2898 | rm -f conftest* | |
2899 | if test -n "$ac_declaration"; then | |
2900 | echo '#ifdef __cplusplus' >>confdefs.h | |
2901 | echo $ac_declaration >>confdefs.h | |
2902 | echo '#endif' >>confdefs.h | |
2903 | fi | |
2904 | ||
2905 | else | |
2906 | echo "$as_me: failed program was:" >&5 | |
2907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2908 | ||
2909 | fi | |
2910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2911 | ac_ext=c | |
2912 | ac_cpp='$CPP $CPPFLAGS' | |
2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2916 | ||
2917 | depcc="$CC" am_compiler_list= | |
2918 | ||
2919 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2920 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2921 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2923 | else | |
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 | |
3004 | else | |
3005 | am_cv_CC_dependencies_compiler_type=none | |
3006 | fi | |
3007 | ||
3008 | fi | |
3009 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3010 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3011 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3012 | ||
3013 | ||
3014 | ||
3015 | if | |
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='#' | |
3020 | else | |
3021 | am__fastdepCC_TRUE='#' | |
3022 | am__fastdepCC_FALSE= | |
3023 | fi | |
3024 | ||
3025 | ||
48d7b13a | 3026 | |
baf39af1 KZ |
3027 | # Check whether --enable-largefile or --disable-largefile was given. |
3028 | if test "${enable_largefile+set}" = set; then | |
3029 | enableval="$enable_largefile" | |
48d7b13a | 3030 | |
baf39af1 KZ |
3031 | fi; |
3032 | if 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 |
3035 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
3036 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
48d7b13a KZ |
3037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3038 | else | |
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 | |
3048 | cat confdefs.h >>conftest.$ac_ext | |
3049 | cat >>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 |
3060 | int |
3061 | main () | |
3062 | { | |
3063 | ||
3064 | ; | |
3065 | return 0; | |
3066 | } | |
3067 | _ACEOF | |
baf39af1 KZ |
3068 | rm -f conftest.$ac_objext |
3069 | if { (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 |
3090 | else |
3091 | echo "$as_me: failed program was:" >&5 | |
3092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3093 | ||
48d7b13a | 3094 | fi |
baf39af1 KZ |
3095 | rm -f conftest.err conftest.$ac_objext |
3096 | CC="$CC -n32" | |
3097 | rm -f conftest.$ac_objext | |
3098 | if { (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 |
3119 | else |
3120 | echo "$as_me: failed program was:" >&5 | |
3121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3122 | ||
48d7b13a | 3123 | fi |
baf39af1 KZ |
3124 | rm -f conftest.err conftest.$ac_objext |
3125 | break | |
3126 | done | |
3127 | CC=$ac_save_CC | |
3128 | rm -f conftest.$ac_ext | |
3129 | fi | |
48d7b13a | 3130 | fi |
baf39af1 KZ |
3131 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
3132 | echo "${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 |
3138 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
3139 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48d7b13a | 3141 | else |
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 | |
3147 | cat confdefs.h >>conftest.$ac_ext | |
3148 | cat >>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]; | |
3159 | int | |
3160 | main () | |
3161 | { | |
3162 | ||
3163 | ; | |
3164 | return 0; | |
3165 | } | |
48d7b13a | 3166 | _ACEOF |
baf39af1 KZ |
3167 | rm -f conftest.$ac_objext |
3168 | if { (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 | 3189 | else |
baf39af1 KZ |
3190 | echo "$as_me: failed program was:" >&5 |
3191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48d7b13a | 3192 | |
48d7b13a | 3193 | fi |
baf39af1 KZ |
3194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3195 | cat >conftest.$ac_ext <<_ACEOF | |
3196 | /* confdefs.h. */ | |
3197 | _ACEOF | |
3198 | cat confdefs.h >>conftest.$ac_ext | |
3199 | cat >>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]; | |
3211 | int | |
3212 | main () | |
3213 | { | |
48d7b13a | 3214 | |
baf39af1 KZ |
3215 | ; |
3216 | return 0; | |
3217 | } | |
3218 | _ACEOF | |
3219 | rm -f conftest.$ac_objext | |
3220 | if { (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 | 3241 | else |
baf39af1 KZ |
3242 | echo "$as_me: failed program was:" >&5 |
3243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48d7b13a | 3244 | |
baf39af1 KZ |
3245 | fi |
3246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3247 | break | |
3248 | done | |
3249 | fi | |
3250 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
3251 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
3252 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
48d7b13a | 3253 | |
baf39af1 KZ |
3254 | cat >>confdefs.h <<_ACEOF |
3255 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3256 | _ACEOF | |
48d7b13a | 3257 | |
baf39af1 KZ |
3258 | fi |
3259 | rm -f conftest* | |
3260 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
3261 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
3262 | if test "${ac_cv_sys_large_files+set}" = set; then | |
48d7b13a KZ |
3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3264 | else | |
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 | |
3270 | cat confdefs.h >>conftest.$ac_ext | |
3271 | cat >>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]; | |
3282 | int | |
3283 | main () | |
3284 | { | |
3285 | ||
3286 | ; | |
3287 | return 0; | |
3288 | } | |
3289 | _ACEOF | |
baf39af1 | 3290 | rm -f conftest.$ac_objext |
48d7b13a KZ |
3291 | if { (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 | |
3312 | else | |
3313 | echo "$as_me: failed program was:" >&5 | |
3314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3315 | ||
3316 | fi | |
baf39af1 KZ |
3317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3318 | cat >conftest.$ac_ext <<_ACEOF | |
3319 | /* confdefs.h. */ | |
3320 | _ACEOF | |
3321 | cat confdefs.h >>conftest.$ac_ext | |
3322 | cat >>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]; | |
3334 | int | |
3335 | main () | |
3336 | { | |
3337 | ||
3338 | ; | |
3339 | return 0; | |
3340 | } | |
3341 | _ACEOF | |
3342 | rm -f conftest.$ac_objext | |
48d7b13a KZ |
3343 | if { (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 | |
3364 | else | |
3365 | echo "$as_me: failed program was:" >&5 | |
3366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3367 | ||
3368 | fi | |
3369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3370 | break | |
3371 | done | |
3372 | fi | |
3373 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
3374 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3375 | if test "$ac_cv_sys_large_files" != no; then | |
3376 | ||
3377 | cat >>confdefs.h <<_ACEOF | |
3378 | #define _LARGE_FILES $ac_cv_sys_large_files | |
3379 | _ACEOF | |
3380 | ||
3381 | fi | |
3382 | rm -f conftest* | |
3383 | fi | |
3384 | ||
3385 | ||
3386 | ac_ext=c | |
3387 | ac_cpp='$CPP $CPPFLAGS' | |
3388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3391 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3392 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3393 | # On Suns, sometimes $CPP names a directory. | |
3394 | if test -n "$CPP" && test -d "$CPP"; then | |
3395 | CPP= | |
3396 | fi | |
3397 | if test -z "$CPP"; then | |
3398 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3400 | else | |
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 | |
3405 | for ac_c_preproc_warn_flag in '' yes | |
3406 | do | |
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 | |
3416 | cat confdefs.h >>conftest.$ac_ext | |
3417 | cat >>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 | |
3426 | if { (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 | |
3440 | else | |
3441 | ac_cpp_err=yes | |
3442 | fi | |
3443 | if test -z "$ac_cpp_err"; then | |
3444 | : | |
3445 | else | |
3446 | echo "$as_me: failed program was:" >&5 | |
3447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3448 | ||
3449 | # Broken: fails on valid input. | |
3450 | continue | |
3451 | fi | |
3452 | rm -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 | |
3459 | cat confdefs.h >>conftest.$ac_ext | |
3460 | cat >>conftest.$ac_ext <<_ACEOF | |
3461 | /* end confdefs.h. */ | |
3462 | #include <ac_nonexistent.h> | |
3463 | _ACEOF | |
3464 | if { (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 | |
3478 | else | |
3479 | ac_cpp_err=yes | |
3480 | fi | |
3481 | if test -z "$ac_cpp_err"; then | |
3482 | # Broken: success on invalid input. | |
3483 | continue | |
48d7b13a KZ |
3484 | else |
3485 | echo "$as_me: failed program was:" >&5 | |
3486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3487 | ||
baf39af1 KZ |
3488 | # Passes both tests. |
3489 | ac_preproc_ok=: | |
3490 | break | |
48d7b13a | 3491 | fi |
baf39af1 KZ |
3492 | rm -f conftest.err conftest.$ac_ext |
3493 | ||
3494 | done | |
3495 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3496 | rm -f conftest.err conftest.$ac_ext | |
3497 | if $ac_preproc_ok; then | |
3498 | break | |
48d7b13a | 3499 | fi |
48d7b13a | 3500 | |
baf39af1 KZ |
3501 | done |
3502 | ac_cv_prog_CPP=$CPP | |
3503 | ||
3504 | fi | |
3505 | CPP=$ac_cv_prog_CPP | |
48d7b13a | 3506 | else |
baf39af1 KZ |
3507 | ac_cv_prog_CPP=$CPP |
3508 | fi | |
3509 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3510 | echo "${ECHO_T}$CPP" >&6 | |
3511 | ac_preproc_ok=false | |
3512 | for ac_c_preproc_warn_flag in '' yes | |
3513 | do | |
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 | |
3523 | cat confdefs.h >>conftest.$ac_ext | |
3524 | cat >>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 |
3533 | if { (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 | |
3547 | else | |
3548 | ac_cpp_err=yes | |
3549 | fi | |
3550 | if test -z "$ac_cpp_err"; then | |
3551 | : | |
48d7b13a KZ |
3552 | else |
3553 | echo "$as_me: failed program was:" >&5 | |
3554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3555 | ||
baf39af1 KZ |
3556 | # Broken: fails on valid input. |
3557 | continue | |
48d7b13a | 3558 | fi |
baf39af1 KZ |
3559 | rm -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 | |
3566 | cat confdefs.h >>conftest.$ac_ext | |
3567 | cat >>conftest.$ac_ext <<_ACEOF | |
3568 | /* end confdefs.h. */ | |
baf39af1 | 3569 | #include <ac_nonexistent.h> |
48d7b13a | 3570 | _ACEOF |
baf39af1 KZ |
3571 | if { (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 | |
3585 | else | |
3586 | ac_cpp_err=yes | |
3587 | fi | |
3588 | if test -z "$ac_cpp_err"; then | |
3589 | # Broken: success on invalid input. | |
3590 | continue | |
48d7b13a KZ |
3591 | else |
3592 | echo "$as_me: failed program was:" >&5 | |
3593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3594 | ||
baf39af1 KZ |
3595 | # Passes both tests. |
3596 | ac_preproc_ok=: | |
3597 | break | |
48d7b13a | 3598 | fi |
baf39af1 KZ |
3599 | rm -f conftest.err conftest.$ac_ext |
3600 | ||
48d7b13a | 3601 | done |
baf39af1 KZ |
3602 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3603 | rm -f conftest.err conftest.$ac_ext | |
3604 | if $ac_preproc_ok; then | |
3605 | : | |
3606 | else | |
3607 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3608 | See \`config.log' for more details." >&5 | |
3609 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3610 | See \`config.log' for more details." >&2;} | |
3611 | { (exit 1); exit 1; }; } | |
48d7b13a | 3612 | fi |
48d7b13a | 3613 | |
baf39af1 KZ |
3614 | ac_ext=c |
3615 | ac_cpp='$CPP $CPPFLAGS' | |
3616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
48d7b13a | 3619 | |
baf39af1 KZ |
3620 | |
3621 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3622 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3623 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3625 | else | |
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 | 3630 | fi |
baf39af1 KZ |
3631 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3632 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3633 | EGREP=$ac_cv_prog_egrep | |
3634 | ||
3635 | ||
3636 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3637 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3638 | if test "${ac_cv_header_stdc+set}" = set; then | |
48d7b13a KZ |
3639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3640 | else | |
48d7b13a KZ |
3641 | cat >conftest.$ac_ext <<_ACEOF |
3642 | /* confdefs.h. */ | |
3643 | _ACEOF | |
baf39af1 KZ |
3644 | cat confdefs.h >>conftest.$ac_ext |
3645 | cat >>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 |
3652 | int |
3653 | main () | |
3654 | { | |
3655 | ||
3656 | ; | |
3657 | return 0; | |
3658 | } | |
3659 | _ACEOF | |
3660 | rm -f conftest.$ac_objext | |
3661 | if { (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 |
3682 | else |
3683 | echo "$as_me: failed program was:" >&5 | |
3684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3685 | ||
baf39af1 | 3686 | ac_cv_header_stdc=no |
48d7b13a KZ |
3687 | fi |
3688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
baf39af1 KZ |
3689 | |
3690 | if 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 | |
3695 | cat confdefs.h >>conftest.$ac_ext | |
3696 | cat >>conftest.$ac_ext <<_ACEOF | |
3697 | /* end confdefs.h. */ | |
baf39af1 KZ |
3698 | #include <string.h> |
3699 | ||
3700 | _ACEOF | |
3701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3702 | $EGREP "memchr" >/dev/null 2>&1; then | |
3703 | : | |
3704 | else | |
3705 | ac_cv_header_stdc=no | |
3706 | fi | |
3707 | rm -f conftest* | |
3708 | ||
3709 | fi | |
3710 | ||
3711 | if 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 | |
3716 | cat confdefs.h >>conftest.$ac_ext | |
3717 | cat >>conftest.$ac_ext <<_ACEOF | |
3718 | /* end confdefs.h. */ | |
3719 | #include <stdlib.h> | |
3720 | ||
3721 | _ACEOF | |
3722 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3723 | $EGREP "free" >/dev/null 2>&1; then | |
3724 | : | |
3725 | else | |
3726 | ac_cv_header_stdc=no | |
3727 | fi | |
3728 | rm -f conftest* | |
3729 | ||
3730 | fi | |
3731 | ||
3732 | if 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 | : | |
3736 | else | |
3737 | cat >conftest.$ac_ext <<_ACEOF | |
3738 | /* confdefs.h. */ | |
3739 | _ACEOF | |
3740 | cat confdefs.h >>conftest.$ac_ext | |
3741 | cat >>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 |
3756 | int |
3757 | main () | |
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 |
3767 | rm -f conftest$ac_exeext |
3768 | if { (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 | : | |
3779 | else | |
3780 | echo "$as_me: program exited with status $ac_status" >&5 | |
3781 | echo "$as_me: failed program was:" >&5 | |
3782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3783 | ||
3784 | ( exit $ac_status ) | |
3785 | ac_cv_header_stdc=no | |
3786 | fi | |
3787 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3788 | fi | |
3789 | fi | |
3790 | fi | |
3791 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3792 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3793 | if test $ac_cv_header_stdc = yes; then | |
3794 | ||
3795 | cat >>confdefs.h <<\_ACEOF | |
3796 | #define STDC_HEADERS 1 | |
3797 | _ACEOF | |
3798 | ||
3799 | fi | |
3800 | ||
3801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3802 | ||
3803 | ||
3804 | ||
3805 | ||
3806 | ||
3807 | ||
3808 | ||
3809 | ||
3810 | ||
3811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3812 | inttypes.h stdint.h unistd.h | |
3813 | do | |
3814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3815 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3819 | else | |
3820 | cat >conftest.$ac_ext <<_ACEOF | |
3821 | /* confdefs.h. */ | |
3822 | _ACEOF | |
3823 | cat confdefs.h >>conftest.$ac_ext | |
3824 | cat >>conftest.$ac_ext <<_ACEOF | |
3825 | /* end confdefs.h. */ | |
3826 | $ac_includes_default | |
3827 | ||
3828 | #include <$ac_header> | |
3829 | _ACEOF | |
48d7b13a KZ |
3830 | rm -f conftest.$ac_objext |
3831 | if { (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 |
3852 | else |
3853 | echo "$as_me: failed program was:" >&5 | |
3854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3855 | ||
baf39af1 | 3856 | eval "$as_ac_Header=no" |
48d7b13a KZ |
3857 | fi |
3858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
48d7b13a | 3859 | fi |
baf39af1 KZ |
3860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3861 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3862 | if 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 | ||
3867 | fi | |
baf39af1 KZ |
3868 | |
3869 | done | |
48d7b13a KZ |
3870 | |
3871 | ||
3872 | ||
3873 | for ac_header in scsi/scsi.h | |
3874 | do | |
3875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3881 | fi | |
3882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3884 | else | |
3885 | # Is the header compilable? | |
3886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3888 | cat >conftest.$ac_ext <<_ACEOF | |
3889 | /* confdefs.h. */ | |
3890 | _ACEOF | |
3891 | cat confdefs.h >>conftest.$ac_ext | |
3892 | cat >>conftest.$ac_ext <<_ACEOF | |
3893 | /* end confdefs.h. */ | |
3894 | $ac_includes_default | |
3895 | #include <$ac_header> | |
3896 | _ACEOF | |
3897 | rm -f conftest.$ac_objext | |
3898 | if { (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 | |
3919 | else | |
3920 | echo "$as_me: failed program was:" >&5 | |
3921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3922 | ||
3923 | ac_header_compiler=no | |
3924 | fi | |
3925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3927 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3928 | ||
3929 | # Is the header present? | |
3930 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3932 | cat >conftest.$ac_ext <<_ACEOF | |
3933 | /* confdefs.h. */ | |
3934 | _ACEOF | |
3935 | cat confdefs.h >>conftest.$ac_ext | |
3936 | cat >>conftest.$ac_ext <<_ACEOF | |
3937 | /* end confdefs.h. */ | |
3938 | #include <$ac_header> | |
3939 | _ACEOF | |
3940 | if { (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 | |
3954 | else | |
3955 | ac_cpp_err=yes | |
3956 | fi | |
3957 | if test -z "$ac_cpp_err"; then | |
3958 | ac_header_preproc=yes | |
3959 | else | |
3960 | echo "$as_me: failed program was:" >&5 | |
3961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3962 | ||
3963 | ac_header_preproc=no | |
3964 | fi | |
3965 | rm -f conftest.err conftest.$ac_ext | |
3966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3967 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3968 | ||
3969 | # So? What about this header? | |
3970 | case $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 | |
3973 | echo "$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 | |
3975 | echo "$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 | |
3980 | echo "$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 | |
3982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3984 | echo "$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 | |
3986 | echo "$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 | |
3988 | echo "$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 | |
3990 | echo "$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 | ;; | |
4000 | esac | |
4001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4005 | else | |
4006 | eval "$as_ac_Header=\$ac_header_preproc" | |
4007 | fi | |
4008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4010 | ||
4011 | fi | |
4012 | if 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 | ||
4017 | fi | |
4018 | ||
4019 | done | |
4020 | ||
4021 | ||
4022 | for ac_header in linux/compiler.h | |
4023 | do | |
4024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4030 | fi | |
4031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4033 | else | |
4034 | # Is the header compilable? | |
4035 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4037 | cat >conftest.$ac_ext <<_ACEOF | |
4038 | /* confdefs.h. */ | |
4039 | _ACEOF | |
4040 | cat confdefs.h >>conftest.$ac_ext | |
4041 | cat >>conftest.$ac_ext <<_ACEOF | |
4042 | /* end confdefs.h. */ | |
4043 | $ac_includes_default | |
4044 | #include <$ac_header> | |
4045 | _ACEOF | |
4046 | rm -f conftest.$ac_objext | |
4047 | if { (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 | |
4068 | else | |
4069 | echo "$as_me: failed program was:" >&5 | |
4070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4071 | ||
4072 | ac_header_compiler=no | |
4073 | fi | |
4074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4077 | ||
4078 | # Is the header present? | |
4079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4081 | cat >conftest.$ac_ext <<_ACEOF | |
4082 | /* confdefs.h. */ | |
4083 | _ACEOF | |
4084 | cat confdefs.h >>conftest.$ac_ext | |
4085 | cat >>conftest.$ac_ext <<_ACEOF | |
4086 | /* end confdefs.h. */ | |
4087 | #include <$ac_header> | |
4088 | _ACEOF | |
4089 | if { (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 | |
4103 | else | |
4104 | ac_cpp_err=yes | |
4105 | fi | |
4106 | if test -z "$ac_cpp_err"; then | |
4107 | ac_header_preproc=yes | |
4108 | else | |
4109 | echo "$as_me: failed program was:" >&5 | |
4110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4111 | ||
4112 | ac_header_preproc=no | |
4113 | fi | |
4114 | rm -f conftest.err conftest.$ac_ext | |
4115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4117 | ||
4118 | # So? What about this header? | |
4119 | case $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 | |
4122 | echo "$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 | |
4124 | echo "$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 | |
4129 | echo "$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 | |
4131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4133 | echo "$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 | |
4135 | echo "$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 | |
4137 | echo "$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 | |
4139 | echo "$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 | ;; | |
4149 | esac | |
4150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4154 | else | |
4155 | eval "$as_ac_Header=\$ac_header_preproc" | |
4156 | fi | |
4157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4159 | ||
4160 | fi | |
4161 | if 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 | ||
4166 | fi | |
4167 | ||
4168 | done | |
4169 | ||
4170 | ||
4171 | for ac_header in linux/blkpg.h | |
4172 | do | |
4173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4178 | else | |
4179 | cat >conftest.$ac_ext <<_ACEOF | |
4180 | /* confdefs.h. */ | |
4181 | _ACEOF | |
4182 | cat confdefs.h >>conftest.$ac_ext | |
4183 | cat >>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 | |
4193 | rm -f conftest.$ac_objext | |
4194 | if { (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" | |
4215 | else | |
4216 | echo "$as_me: failed program was:" >&5 | |
4217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4218 | ||
4219 | eval "$as_ac_Header=no" | |
4220 | fi | |
4221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4222 | fi | |
4223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4225 | if 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 | ||
4230 | fi | |
4231 | ||
4232 | done | |
4233 | ||
4234 | ||
4235 | for ac_header in langinfo.h | |
4236 | do | |
4237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4243 | fi | |
4244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4246 | else | |
4247 | # Is the header compilable? | |
4248 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4249 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4250 | cat >conftest.$ac_ext <<_ACEOF | |
4251 | /* confdefs.h. */ | |
4252 | _ACEOF | |
4253 | cat confdefs.h >>conftest.$ac_ext | |
4254 | cat >>conftest.$ac_ext <<_ACEOF | |
4255 | /* end confdefs.h. */ | |
4256 | $ac_includes_default | |
4257 | #include <$ac_header> | |
4258 | _ACEOF | |
4259 | rm -f conftest.$ac_objext | |
4260 | if { (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 | |
4281 | else | |
4282 | echo "$as_me: failed program was:" >&5 | |
4283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4284 | ||
4285 | ac_header_compiler=no | |
4286 | fi | |
4287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4288 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4289 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4290 | ||
4291 | # Is the header present? | |
4292 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4293 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4294 | cat >conftest.$ac_ext <<_ACEOF | |
4295 | /* confdefs.h. */ | |
4296 | _ACEOF | |
4297 | cat confdefs.h >>conftest.$ac_ext | |
4298 | cat >>conftest.$ac_ext <<_ACEOF | |
4299 | /* end confdefs.h. */ | |
4300 | #include <$ac_header> | |
4301 | _ACEOF | |
4302 | if { (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 | |
4316 | else | |
4317 | ac_cpp_err=yes | |
4318 | fi | |
4319 | if test -z "$ac_cpp_err"; then | |
4320 | ac_header_preproc=yes | |
4321 | else | |
4322 | echo "$as_me: failed program was:" >&5 | |
4323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4324 | ||
4325 | ac_header_preproc=no | |
4326 | fi | |
4327 | rm -f conftest.err conftest.$ac_ext | |
4328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4329 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4330 | ||
4331 | # So? What about this header? | |
4332 | case $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 | |
4335 | echo "$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 | |
4337 | echo "$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 | |
4342 | echo "$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 | |
4344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4346 | echo "$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 | |
4348 | echo "$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 | |
4350 | echo "$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 | |
4352 | echo "$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 | ;; | |
4362 | esac | |
4363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4367 | else | |
4368 | eval "$as_ac_Header=\$ac_header_preproc" | |
4369 | fi | |
4370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4372 | ||
4373 | fi | |
4374 | if 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 | ||
4379 | fi | |
4380 | ||
4381 | done | |
4382 | ||
4383 | ||
4384 | for ac_header in sys/user.h | |
4385 | do | |
4386 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4387 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4392 | fi | |
4393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4394 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4395 | else | |
4396 | # Is the header compilable? | |
4397 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4398 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4399 | cat >conftest.$ac_ext <<_ACEOF | |
4400 | /* confdefs.h. */ | |
4401 | _ACEOF | |
4402 | cat confdefs.h >>conftest.$ac_ext | |
4403 | cat >>conftest.$ac_ext <<_ACEOF | |
4404 | /* end confdefs.h. */ | |
4405 | $ac_includes_default | |
4406 | #include <$ac_header> | |
4407 | _ACEOF | |
4408 | rm -f conftest.$ac_objext | |
4409 | if { (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 | |
4430 | else | |
4431 | echo "$as_me: failed program was:" >&5 | |
4432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4433 | ||
4434 | ac_header_compiler=no | |
4435 | fi | |
4436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4437 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4438 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4439 | ||
4440 | # Is the header present? | |
4441 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4443 | cat >conftest.$ac_ext <<_ACEOF | |
4444 | /* confdefs.h. */ | |
4445 | _ACEOF | |
4446 | cat confdefs.h >>conftest.$ac_ext | |
4447 | cat >>conftest.$ac_ext <<_ACEOF | |
4448 | /* end confdefs.h. */ | |
4449 | #include <$ac_header> | |
4450 | _ACEOF | |
4451 | if { (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 | |
4465 | else | |
4466 | ac_cpp_err=yes | |
4467 | fi | |
4468 | if test -z "$ac_cpp_err"; then | |
4469 | ac_header_preproc=yes | |
4470 | else | |
4471 | echo "$as_me: failed program was:" >&5 | |
4472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4473 | ||
4474 | ac_header_preproc=no | |
4475 | fi | |
4476 | rm -f conftest.err conftest.$ac_ext | |
4477 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4478 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4479 | ||
4480 | # So? What about this header? | |
4481 | case $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 | |
4484 | echo "$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 | |
4486 | echo "$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 | |
4491 | echo "$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 | |
4493 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4494 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4495 | echo "$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 | |
4497 | echo "$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 | |
4499 | echo "$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 | |
4501 | echo "$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 | ;; | |
4511 | esac | |
4512 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4513 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4516 | else | |
4517 | eval "$as_ac_Header=\$ac_header_preproc" | |
4518 | fi | |
4519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4520 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4521 | ||
4522 | fi | |
4523 | if 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 | ||
4528 | fi | |
4529 | ||
4530 | done | |
4531 | ||
4532 | ||
4533 | for ac_header in asm/page.h | |
4534 | do | |
4535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4536 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4541 | fi | |
4542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4544 | else | |
4545 | # Is the header compilable? | |
4546 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4547 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4548 | cat >conftest.$ac_ext <<_ACEOF | |
4549 | /* confdefs.h. */ | |
4550 | _ACEOF | |
4551 | cat confdefs.h >>conftest.$ac_ext | |
4552 | cat >>conftest.$ac_ext <<_ACEOF | |
4553 | /* end confdefs.h. */ | |
4554 | $ac_includes_default | |
4555 | #include <$ac_header> | |
4556 | _ACEOF | |
4557 | rm -f conftest.$ac_objext | |
4558 | if { (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 | |
4579 | else | |
4580 | echo "$as_me: failed program was:" >&5 | |
4581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4582 | ||
4583 | ac_header_compiler=no | |
4584 | fi | |
4585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4587 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4588 | ||
4589 | # Is the header present? | |
4590 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4591 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4592 | cat >conftest.$ac_ext <<_ACEOF | |
4593 | /* confdefs.h. */ | |
4594 | _ACEOF | |
4595 | cat confdefs.h >>conftest.$ac_ext | |
4596 | cat >>conftest.$ac_ext <<_ACEOF | |
4597 | /* end confdefs.h. */ | |
4598 | #include <$ac_header> | |
4599 | _ACEOF | |
4600 | if { (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 | |
4614 | else | |
4615 | ac_cpp_err=yes | |
4616 | fi | |
4617 | if test -z "$ac_cpp_err"; then | |
4618 | ac_header_preproc=yes | |
4619 | else | |
4620 | echo "$as_me: failed program was:" >&5 | |
4621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4622 | ||
4623 | ac_header_preproc=no | |
4624 | fi | |
4625 | rm -f conftest.err conftest.$ac_ext | |
4626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4627 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4628 | ||
4629 | # So? What about this header? | |
4630 | case $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 | |
4633 | echo "$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 | |
4635 | echo "$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 | |
4640 | echo "$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 | |
4642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4643 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4644 | echo "$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 | |
4646 | echo "$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 | |
4648 | echo "$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 | |
4650 | echo "$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 | ;; | |
4660 | esac | |
4661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4665 | else | |
4666 | eval "$as_ac_Header=\$ac_header_preproc" | |
4667 | fi | |
4668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4670 | ||
4671 | fi | |
4672 | if 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 | ||
4677 | fi | |
4678 | ||
4679 | done | |
4680 | ||
4681 | ||
4682 | for ac_header in rpcsvc/nfs_prot.h | |
4683 | do | |
4684 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4686 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4687 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4690 | fi | |
4691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4693 | else | |
4694 | # Is the header compilable? | |
4695 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4696 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4697 | cat >conftest.$ac_ext <<_ACEOF | |
4698 | /* confdefs.h. */ | |
4699 | _ACEOF | |
4700 | cat confdefs.h >>conftest.$ac_ext | |
4701 | cat >>conftest.$ac_ext <<_ACEOF | |
4702 | /* end confdefs.h. */ | |
4703 | $ac_includes_default | |
4704 | #include <$ac_header> | |
4705 | _ACEOF | |
4706 | rm -f conftest.$ac_objext | |
4707 | if { (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 | |
4728 | else | |
4729 | echo "$as_me: failed program was:" >&5 | |
4730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4731 | ||
4732 | ac_header_compiler=no | |
4733 | fi | |
4734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4735 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4736 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4737 | ||
4738 | # Is the header present? | |
4739 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4741 | cat >conftest.$ac_ext <<_ACEOF | |
4742 | /* confdefs.h. */ | |
4743 | _ACEOF | |
4744 | cat confdefs.h >>conftest.$ac_ext | |
4745 | cat >>conftest.$ac_ext <<_ACEOF | |
4746 | /* end confdefs.h. */ | |
4747 | #include <$ac_header> | |
4748 | _ACEOF | |
4749 | if { (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 | |
4763 | else | |
4764 | ac_cpp_err=yes | |
4765 | fi | |
4766 | if test -z "$ac_cpp_err"; then | |
4767 | ac_header_preproc=yes | |
4768 | else | |
4769 | echo "$as_me: failed program was:" >&5 | |
4770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4771 | ||
4772 | ac_header_preproc=no | |
4773 | fi | |
4774 | rm -f conftest.err conftest.$ac_ext | |
4775 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4776 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4777 | ||
4778 | # So? What about this header? | |
4779 | case $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 | |
4782 | echo "$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 | |
4784 | echo "$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 | |
4789 | echo "$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 | |
4791 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4792 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4793 | echo "$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 | |
4795 | echo "$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 | |
4797 | echo "$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 | |
4799 | echo "$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 | ;; | |
4809 | esac | |
4810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4814 | else | |
4815 | eval "$as_ac_Header=\$ac_header_preproc" | |
4816 | fi | |
4817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4818 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4819 | ||
4820 | fi | |
4821 | if 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 | ||
4826 | fi | |
4827 | ||
4828 | done | |
4829 | ||
4830 | ||
4831 | for ac_header in sys/io.h | |
4832 | do | |
4833 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4839 | fi | |
4840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4842 | else | |
4843 | # Is the header compilable? | |
4844 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4845 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4846 | cat >conftest.$ac_ext <<_ACEOF | |
4847 | /* confdefs.h. */ | |
4848 | _ACEOF | |
4849 | cat confdefs.h >>conftest.$ac_ext | |
4850 | cat >>conftest.$ac_ext <<_ACEOF | |
4851 | /* end confdefs.h. */ | |
4852 | $ac_includes_default | |
4853 | #include <$ac_header> | |
4854 | _ACEOF | |
4855 | rm -f conftest.$ac_objext | |
4856 | if { (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 | |
4877 | else | |
4878 | echo "$as_me: failed program was:" >&5 | |
4879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4880 | ||
4881 | ac_header_compiler=no | |
4882 | fi | |
4883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4884 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4885 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4886 | ||
4887 | # Is the header present? | |
4888 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4890 | cat >conftest.$ac_ext <<_ACEOF | |
4891 | /* confdefs.h. */ | |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | #include <$ac_header> | |
4897 | _ACEOF | |
4898 | if { (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 | |
4912 | else | |
4913 | ac_cpp_err=yes | |
4914 | fi | |
4915 | if test -z "$ac_cpp_err"; then | |
4916 | ac_header_preproc=yes | |
4917 | else | |
4918 | echo "$as_me: failed program was:" >&5 | |
4919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4920 | ||
4921 | ac_header_preproc=no | |
4922 | fi | |
4923 | rm -f conftest.err conftest.$ac_ext | |
4924 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4925 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4926 | ||
4927 | # So? What about this header? | |
4928 | case $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 | |
4931 | echo "$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 | |
4933 | echo "$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 | |
4938 | echo "$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 | |
4940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4942 | echo "$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 | |
4944 | echo "$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 | |
4946 | echo "$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 | |
4948 | echo "$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 | ;; | |
4958 | esac | |
4959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4963 | else | |
4964 | eval "$as_ac_Header=\$ac_header_preproc" | |
4965 | fi | |
4966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4968 | ||
4969 | fi | |
4970 | if 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 | ||
4975 | fi | |
4976 | ||
4977 | done | |
4978 | ||
4979 | ||
4980 | for ac_header in pty.h | |
4981 | do | |
4982 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4988 | fi | |
4989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4991 | else | |
4992 | # Is the header compilable? | |
4993 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4994 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4995 | cat >conftest.$ac_ext <<_ACEOF | |
4996 | /* confdefs.h. */ | |
4997 | _ACEOF | |
4998 | cat confdefs.h >>conftest.$ac_ext | |
4999 | cat >>conftest.$ac_ext <<_ACEOF | |
5000 | /* end confdefs.h. */ | |
5001 | $ac_includes_default | |
5002 | #include <$ac_header> | |
5003 | _ACEOF | |
5004 | rm -f conftest.$ac_objext | |
5005 | if { (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 | |
5026 | else | |
5027 | echo "$as_me: failed program was:" >&5 | |
5028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5029 | ||
5030 | ac_header_compiler=no | |
5031 | fi | |
5032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5033 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5034 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5035 | ||
5036 | # Is the header present? | |
5037 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5038 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5039 | cat >conftest.$ac_ext <<_ACEOF | |
5040 | /* confdefs.h. */ | |
5041 | _ACEOF | |
5042 | cat confdefs.h >>conftest.$ac_ext | |
5043 | cat >>conftest.$ac_ext <<_ACEOF | |
5044 | /* end confdefs.h. */ | |
5045 | #include <$ac_header> | |
5046 | _ACEOF | |
5047 | if { (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 | |
5061 | else | |
5062 | ac_cpp_err=yes | |
5063 | fi | |
5064 | if test -z "$ac_cpp_err"; then | |
5065 | ac_header_preproc=yes | |
5066 | else | |
5067 | echo "$as_me: failed program was:" >&5 | |
5068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5069 | ||
5070 | ac_header_preproc=no | |
5071 | fi | |
5072 | rm -f conftest.err conftest.$ac_ext | |
5073 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5074 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5075 | ||
5076 | # So? What about this header? | |
5077 | case $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 | |
5080 | echo "$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 | |
5082 | echo "$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 | |
5087 | echo "$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 | |
5089 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5090 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5091 | echo "$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 | |
5093 | echo "$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 | |
5095 | echo "$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 | |
5097 | echo "$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 | ;; | |
5107 | esac | |
5108 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5109 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5112 | else | |
5113 | eval "$as_ac_Header=\$ac_header_preproc" | |
5114 | fi | |
5115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5117 | ||
5118 | fi | |
5119 | if 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 | ||
5124 | fi | |
5125 | ||
5126 | done | |
5127 | ||
5128 | ||
5129 | ||
5130 | for ac_header in linux/raw.h | |
5131 | do | |
5132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5134 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5138 | fi | |
5139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5140 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5141 | else | |
5142 | # Is the header compilable? | |
5143 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5144 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
5146 | /* confdefs.h. */ | |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
5150 | /* end confdefs.h. */ | |
5151 | $ac_includes_default | |
5152 | #include <$ac_header> | |
5153 | _ACEOF | |
5154 | rm -f conftest.$ac_objext | |
5155 | if { (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 | |
5176 | else | |
5177 | echo "$as_me: failed program was:" >&5 | |
5178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5179 | ||
5180 | ac_header_compiler=no | |
5181 | fi | |
5182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5183 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5184 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5185 | ||
5186 | # Is the header present? | |
5187 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5188 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5189 | cat >conftest.$ac_ext <<_ACEOF | |
5190 | /* confdefs.h. */ | |
5191 | _ACEOF | |
5192 | cat confdefs.h >>conftest.$ac_ext | |
5193 | cat >>conftest.$ac_ext <<_ACEOF | |
5194 | /* end confdefs.h. */ | |
5195 | #include <$ac_header> | |
5196 | _ACEOF | |
5197 | if { (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 | |
5211 | else | |
5212 | ac_cpp_err=yes | |
5213 | fi | |
5214 | if test -z "$ac_cpp_err"; then | |
5215 | ac_header_preproc=yes | |
5216 | else | |
5217 | echo "$as_me: failed program was:" >&5 | |
5218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5219 | ||
5220 | ac_header_preproc=no | |
5221 | fi | |
5222 | rm -f conftest.err conftest.$ac_ext | |
5223 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5224 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5225 | ||
5226 | # So? What about this header? | |
5227 | case $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 | |
5230 | echo "$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 | |
5232 | echo "$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 | |
5237 | echo "$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 | |
5239 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5240 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5241 | echo "$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 | |
5243 | echo "$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 | |
5245 | echo "$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 | |
5247 | echo "$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 | ;; | |
5257 | esac | |
5258 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5260 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5262 | else | |
5263 | eval "$as_ac_Header=\$ac_header_preproc" | |
5264 | fi | |
5265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5266 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5267 | ||
5268 | fi | |
5269 | if 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 | ||
5274 | fi | |
5275 | ||
5276 | done | |
5277 | ||
5278 | ||
5279 | ||
5280 | if test x$ac_cv_header_linux_raw_h = xyes; then | |
5281 | HAVE_RAW_TRUE= | |
5282 | HAVE_RAW_FALSE='#' | |
5283 | else | |
5284 | HAVE_RAW_TRUE='#' | |
5285 | HAVE_RAW_FALSE= | |
5286 | fi | |
5287 | ||
5288 | ||
5289 | ||
48d7b13a KZ |
5290 | |
5291 | ||
5292 | for ac_func in inet_aton | |
5293 | do | |
5294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5299 | else | |
5300 | cat >conftest.$ac_ext <<_ACEOF | |
5301 | /* confdefs.h. */ | |
5302 | _ACEOF | |
5303 | cat confdefs.h >>conftest.$ac_ext | |
5304 | cat >>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 | |
5325 | extern "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. */ | |
5330 | char $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) | |
5335 | choke me | |
5336 | #else | |
5337 | char (*f) () = $ac_func; | |
5338 | #endif | |
5339 | #ifdef __cplusplus | |
5340 | } | |
5341 | #endif | |
5342 | ||
5343 | int | |
5344 | main () | |
5345 | { | |
5346 | return f != $ac_func; | |
5347 | ; | |
5348 | return 0; | |
5349 | } | |
5350 | _ACEOF | |
5351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5352 | if { (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" | |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
5377 | eval "$as_ac_var=no" | |
5378 | fi | |
5379 | rm -f conftest.err conftest.$ac_objext \ | |
5380 | conftest$ac_exeext conftest.$ac_ext | |
5381 | fi | |
5382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5384 | if 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 | ||
5389 | fi | |
5390 | done | |
5391 | ||
5392 | ||
5393 | for ac_func in fsync | |
5394 | do | |
5395 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5396 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5397 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5398 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5400 | else | |
5401 | cat >conftest.$ac_ext <<_ACEOF | |
5402 | /* confdefs.h. */ | |
5403 | _ACEOF | |
5404 | cat confdefs.h >>conftest.$ac_ext | |
5405 | cat >>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 | |
5426 | extern "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. */ | |
5431 | char $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) | |
5436 | choke me | |
5437 | #else | |
5438 | char (*f) () = $ac_func; | |
5439 | #endif | |
5440 | #ifdef __cplusplus | |
5441 | } | |
5442 | #endif | |
5443 | ||
5444 | int | |
5445 | main () | |
5446 | { | |
5447 | return f != $ac_func; | |
5448 | ; | |
5449 | return 0; | |
5450 | } | |
5451 | _ACEOF | |
5452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5453 | if { (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" | |
5474 | else | |
5475 | echo "$as_me: failed program was:" >&5 | |
5476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5477 | ||
5478 | eval "$as_ac_var=no" | |
5479 | fi | |
5480 | rm -f conftest.err conftest.$ac_objext \ | |
5481 | conftest$ac_exeext conftest.$ac_ext | |
5482 | fi | |
5483 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5484 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5485 | if 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 | ||
5490 | fi | |
5491 | done | |
5492 | ||
5493 | ||
5494 | for ac_func in getdomainname | |
5495 | do | |
5496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5497 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5499 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5501 | else | |
5502 | cat >conftest.$ac_ext <<_ACEOF | |
5503 | /* confdefs.h. */ | |
5504 | _ACEOF | |
5505 | cat confdefs.h >>conftest.$ac_ext | |
5506 | cat >>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 | |
5527 | extern "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. */ | |
5532 | char $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) | |
5537 | choke me | |
5538 | #else | |
5539 | char (*f) () = $ac_func; | |
5540 | #endif | |
5541 | #ifdef __cplusplus | |
5542 | } | |
5543 | #endif | |
5544 | ||
5545 | int | |
5546 | main () | |
5547 | { | |
5548 | return f != $ac_func; | |
5549 | ; | |
5550 | return 0; | |
5551 | } | |
5552 | _ACEOF | |
5553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5554 | if { (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" | |
5575 | else | |
5576 | echo "$as_me: failed program was:" >&5 | |
5577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5578 | ||
5579 | eval "$as_ac_var=no" | |
5580 | fi | |
5581 | rm -f conftest.err conftest.$ac_objext \ | |
5582 | conftest$ac_exeext conftest.$ac_ext | |
5583 | fi | |
5584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5585 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5586 | if 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 | ||
5591 | fi | |
5592 | done | |
5593 | ||
5594 | ||
5595 | for ac_func in nanosleep | |
5596 | do | |
5597 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5598 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5599 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5600 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5602 | else | |
5603 | cat >conftest.$ac_ext <<_ACEOF | |
5604 | /* confdefs.h. */ | |
5605 | _ACEOF | |
5606 | cat confdefs.h >>conftest.$ac_ext | |
5607 | cat >>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 | |
5628 | extern "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. */ | |
5633 | char $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) | |
5638 | choke me | |
5639 | #else | |
5640 | char (*f) () = $ac_func; | |
5641 | #endif | |
5642 | #ifdef __cplusplus | |
5643 | } | |
5644 | #endif | |
5645 | ||
5646 | int | |
5647 | main () | |
5648 | { | |
5649 | return f != $ac_func; | |
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5655 | if { (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" | |
5676 | else | |
5677 | echo "$as_me: failed program was:" >&5 | |
5678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5679 | ||
5680 | eval "$as_ac_var=no" | |
5681 | fi | |
5682 | rm -f conftest.err conftest.$ac_objext \ | |
5683 | conftest$ac_exeext conftest.$ac_ext | |
5684 | fi | |
5685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5686 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5687 | if 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 | ||
5692 | fi | |
5693 | done | |
5694 | ||
5695 | ||
5696 | for ac_func in personality | |
5697 | do | |
5698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5699 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5701 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5703 | else | |
5704 | cat >conftest.$ac_ext <<_ACEOF | |
5705 | /* confdefs.h. */ | |
5706 | _ACEOF | |
5707 | cat confdefs.h >>conftest.$ac_ext | |
5708 | cat >>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 | |
5729 | extern "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. */ | |
5734 | char $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) | |
5739 | choke me | |
5740 | #else | |
5741 | char (*f) () = $ac_func; | |
5742 | #endif | |
5743 | #ifdef __cplusplus | |
5744 | } | |
5745 | #endif | |
5746 | ||
5747 | int | |
5748 | main () | |
5749 | { | |
5750 | return f != $ac_func; | |
5751 | ; | |
5752 | return 0; | |
5753 | } | |
5754 | _ACEOF | |
5755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5756 | if { (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" | |
5777 | else | |
5778 | echo "$as_me: failed program was:" >&5 | |
5779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5780 | ||
5781 | eval "$as_ac_var=no" | |
5782 | fi | |
5783 | rm -f conftest.err conftest.$ac_objext \ | |
5784 | conftest$ac_exeext conftest.$ac_ext | |
5785 | fi | |
5786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5787 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5788 | if 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 | ||
5793 | fi | |
5794 | done | |
5795 | ||
5796 | ||
5797 | for ac_func in updwtmp | |
5798 | do | |
5799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5800 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5802 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5804 | else | |
5805 | cat >conftest.$ac_ext <<_ACEOF | |
5806 | /* confdefs.h. */ | |
5807 | _ACEOF | |
5808 | cat confdefs.h >>conftest.$ac_ext | |
5809 | cat >>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 | |
5830 | extern "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. */ | |
5835 | char $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) | |
5840 | choke me | |
5841 | #else | |
5842 | char (*f) () = $ac_func; | |
5843 | #endif | |
5844 | #ifdef __cplusplus | |
5845 | } | |
5846 | #endif | |
5847 | ||
5848 | int | |
5849 | main () | |
5850 | { | |
5851 | return f != $ac_func; | |
5852 | ; | |
5853 | return 0; | |
5854 | } | |
5855 | _ACEOF | |
5856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5857 | if { (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" | |
5878 | else | |
5879 | echo "$as_me: failed program was:" >&5 | |
5880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5881 | ||
5882 | eval "$as_ac_var=no" | |
5883 | fi | |
5884 | rm -f conftest.err conftest.$ac_objext \ | |
5885 | conftest$ac_exeext conftest.$ac_ext | |
5886 | fi | |
5887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5888 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5889 | if 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 | ||
5894 | fi | |
5895 | done | |
5896 | ||
5897 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5898 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 | |
5899 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5901 | else | |
5902 | while :; do | |
5903 | ac_cv_sys_largefile_source=no | |
5904 | cat >conftest.$ac_ext <<_ACEOF | |
5905 | /* confdefs.h. */ | |
5906 | _ACEOF | |
5907 | cat confdefs.h >>conftest.$ac_ext | |
5908 | cat >>conftest.$ac_ext <<_ACEOF | |
5909 | /* end confdefs.h. */ | |
5910 | #include <stdio.h> | |
5911 | int | |
5912 | main () | |
5913 | { | |
5914 | return !fseeko; | |
5915 | ; | |
5916 | return 0; | |
5917 | } | |
5918 | _ACEOF | |
5919 | rm -f conftest.$ac_objext | |
5920 | if { (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 | |
5941 | else | |
5942 | echo "$as_me: failed program was:" >&5 | |
5943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5944 | ||
5945 | fi | |
5946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5947 | cat >conftest.$ac_ext <<_ACEOF | |
5948 | /* confdefs.h. */ | |
5949 | _ACEOF | |
5950 | cat confdefs.h >>conftest.$ac_ext | |
5951 | cat >>conftest.$ac_ext <<_ACEOF | |
5952 | /* end confdefs.h. */ | |
5953 | #define _LARGEFILE_SOURCE 1 | |
5954 | #include <stdio.h> | |
5955 | int | |
5956 | main () | |
5957 | { | |
5958 | return !fseeko; | |
5959 | ; | |
5960 | return 0; | |
5961 | } | |
5962 | _ACEOF | |
5963 | rm -f conftest.$ac_objext | |
5964 | if { (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 | |
5985 | else | |
5986 | echo "$as_me: failed program was:" >&5 | |
5987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5988 | ||
5989 | fi | |
5990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5991 | break | |
5992 | done | |
5993 | fi | |
5994 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
5995 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
5996 | if test "$ac_cv_sys_largefile_source" != no; then | |
5997 | ||
5998 | cat >>confdefs.h <<_ACEOF | |
5999 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
6000 | _ACEOF | |
6001 | ||
6002 | fi | |
6003 | rm -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. | |
6008 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
6009 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
6010 | if test "${ac_cv_func_fseeko+set}" = set; then | |
6011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6012 | else | |
6013 | cat >conftest.$ac_ext <<_ACEOF | |
6014 | /* confdefs.h. */ | |
6015 | _ACEOF | |
6016 | cat confdefs.h >>conftest.$ac_ext | |
6017 | cat >>conftest.$ac_ext <<_ACEOF | |
6018 | /* end confdefs.h. */ | |
6019 | #include <stdio.h> | |
6020 | int | |
6021 | main () | |
6022 | { | |
6023 | return fseeko && fseeko (stdin, 0, 0); | |
6024 | ; | |
6025 | return 0; | |
6026 | } | |
6027 | _ACEOF | |
6028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6029 | if { (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 | |
6050 | else | |
6051 | echo "$as_me: failed program was:" >&5 | |
6052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6053 | ||
6054 | ac_cv_func_fseeko=no | |
6055 | fi | |
6056 | rm -f conftest.err conftest.$ac_objext \ | |
6057 | conftest$ac_exeext conftest.$ac_ext | |
6058 | fi | |
6059 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
6060 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
6061 | if test $ac_cv_func_fseeko = yes; then | |
6062 | ||
6063 | cat >>confdefs.h <<\_ACEOF | |
6064 | #define HAVE_FSEEKO 1 | |
6065 | _ACEOF | |
6066 | ||
6067 | fi | |
6068 | ||
6069 | ||
6070 | for ac_func in lchown | |
6071 | do | |
6072 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6073 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6074 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6075 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6077 | else | |
6078 | cat >conftest.$ac_ext <<_ACEOF | |
6079 | /* confdefs.h. */ | |
6080 | _ACEOF | |
6081 | cat confdefs.h >>conftest.$ac_ext | |
6082 | cat >>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 | |
6103 | extern "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. */ | |
6108 | char $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) | |
6113 | choke me | |
6114 | #else | |
6115 | char (*f) () = $ac_func; | |
6116 | #endif | |
6117 | #ifdef __cplusplus | |
6118 | } | |
6119 | #endif | |
6120 | ||
6121 | int | |
6122 | main () | |
6123 | { | |
6124 | return f != $ac_func; | |
6125 | ; | |
6126 | return 0; | |
6127 | } | |
6128 | _ACEOF | |
6129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6130 | if { (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" | |
6151 | else | |
6152 | echo "$as_me: failed program was:" >&5 | |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6154 | ||
6155 | eval "$as_ac_var=no" | |
6156 | fi | |
6157 | rm -f conftest.err conftest.$ac_objext \ | |
6158 | conftest$ac_exeext conftest.$ac_ext | |
6159 | fi | |
6160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6161 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6162 | if 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 | ||
6167 | fi | |
6168 | done | |
6169 | ||
6170 | ||
6171 | for ac_func in rpmatch | |
6172 | do | |
6173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6176 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6178 | else | |
6179 | cat >conftest.$ac_ext <<_ACEOF | |
6180 | /* confdefs.h. */ | |
6181 | _ACEOF | |
6182 | cat confdefs.h >>conftest.$ac_ext | |
6183 | cat >>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 | |
6204 | extern "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. */ | |
6209 | char $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) | |
6214 | choke me | |
6215 | #else | |
6216 | char (*f) () = $ac_func; | |
6217 | #endif | |
6218 | #ifdef __cplusplus | |
6219 | } | |
6220 | #endif | |
6221 | ||
6222 | int | |
6223 | main () | |
6224 | { | |
6225 | return f != $ac_func; | |
6226 | ; | |
6227 | return 0; | |
6228 | } | |
6229 | _ACEOF | |
6230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6231 | if { (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" | |
6252 | else | |
6253 | echo "$as_me: failed program was:" >&5 | |
6254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6255 | ||
6256 | eval "$as_ac_var=no" | |
6257 | fi | |
6258 | rm -f conftest.err conftest.$ac_objext \ | |
6259 | conftest$ac_exeext conftest.$ac_ext | |
6260 | fi | |
6261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6262 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6263 | if 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 | ||
6268 | fi | |
6269 | done | |
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5 | |
6275 | echo $ECHO_N "checking for uuid_is_null in -luuid... $ECHO_C" >&6 | |
6276 | if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then | |
6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6278 | else | |
6279 | ac_check_lib_save_LIBS=$LIBS | |
6280 | LIBS="-luuid $LIBS" | |
6281 | cat >conftest.$ac_ext <<_ACEOF | |
6282 | /* confdefs.h. */ | |
6283 | _ACEOF | |
6284 | cat confdefs.h >>conftest.$ac_ext | |
6285 | cat >>conftest.$ac_ext <<_ACEOF | |
6286 | /* end confdefs.h. */ | |
6287 | ||
6288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6289 | #ifdef __cplusplus | |
6290 | extern "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. */ | |
6294 | char uuid_is_null (); | |
6295 | int | |
6296 | main () | |
6297 | { | |
6298 | uuid_is_null (); | |
6299 | ; | |
6300 | return 0; | |
6301 | } | |
6302 | _ACEOF | |
6303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6304 | if { (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 | |
6325 | else | |
6326 | echo "$as_me: failed program was:" >&5 | |
6327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6328 | ||
6329 | ac_cv_lib_uuid_uuid_is_null=no | |
6330 | fi | |
6331 | rm -f conftest.err conftest.$ac_objext \ | |
6332 | conftest$ac_exeext conftest.$ac_ext | |
6333 | LIBS=$ac_check_lib_save_LIBS | |
6334 | fi | |
6335 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
6336 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_is_null" >&6 | |
6337 | if 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 | ||
6344 | fi | |
6345 | ||
6346 | ||
6347 | ||
6348 | if test x$ac_cv_lib_uuid_uuid_is_null = xyes; then | |
6349 | HAVE_UUID_TRUE= | |
6350 | HAVE_UUID_FALSE='#' | |
6351 | else | |
6352 | HAVE_UUID_TRUE='#' | |
6353 | HAVE_UUID_FALSE= | |
6354 | fi | |
6355 | ||
6356 | ||
6357 | ||
6358 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 | |
6359 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 | |
6360 | if test "${ac_cv_lib_util_openpty+set}" = set; then | |
6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6362 | else | |
6363 | ac_check_lib_save_LIBS=$LIBS | |
6364 | LIBS="-lutil $LIBS" | |
6365 | cat >conftest.$ac_ext <<_ACEOF | |
6366 | /* confdefs.h. */ | |
6367 | _ACEOF | |
6368 | cat confdefs.h >>conftest.$ac_ext | |
6369 | cat >>conftest.$ac_ext <<_ACEOF | |
6370 | /* end confdefs.h. */ | |
6371 | ||
6372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6373 | #ifdef __cplusplus | |
6374 | extern "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. */ | |
6378 | char openpty (); | |
6379 | int | |
6380 | main () | |
6381 | { | |
6382 | openpty (); | |
6383 | ; | |
6384 | return 0; | |
6385 | } | |
6386 | _ACEOF | |
6387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6388 | if { (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 | |
6409 | else | |
6410 | echo "$as_me: failed program was:" >&5 | |
6411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6412 | ||
6413 | ac_cv_lib_util_openpty=no | |
6414 | fi | |
6415 | rm -f conftest.err conftest.$ac_objext \ | |
6416 | conftest$ac_exeext conftest.$ac_ext | |
6417 | LIBS=$ac_check_lib_save_LIBS | |
6418 | fi | |
6419 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 | |
6420 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 | |
6421 | if 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 | ||
6428 | fi | |
6429 | ||
6430 | ||
6431 | ||
6432 | if test x$ac_cv_lib_util_openpty = xyes; then | |
6433 | HAVE_LIBUTIL_TRUE= | |
6434 | HAVE_LIBUTIL_FALSE='#' | |
6435 | else | |
6436 | HAVE_LIBUTIL_TRUE='#' | |
6437 | HAVE_LIBUTIL_FALSE= | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | ||
6442 | echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5 | |
6443 | echo $ECHO_N "checking for tgetnum in -ltermcap... $ECHO_C" >&6 | |
6444 | if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then | |
6445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6446 | else | |
6447 | ac_check_lib_save_LIBS=$LIBS | |
6448 | LIBS="-ltermcap $LIBS" | |
6449 | cat >conftest.$ac_ext <<_ACEOF | |
6450 | /* confdefs.h. */ | |
6451 | _ACEOF | |
6452 | cat confdefs.h >>conftest.$ac_ext | |
6453 | cat >>conftest.$ac_ext <<_ACEOF | |
6454 | /* end confdefs.h. */ | |
6455 | ||
6456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6457 | #ifdef __cplusplus | |
6458 | extern "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. */ | |
6462 | char tgetnum (); | |
6463 | int | |
6464 | main () | |
6465 | { | |
6466 | tgetnum (); | |
6467 | ; | |
6468 | return 0; | |
6469 | } | |
6470 | _ACEOF | |
6471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6472 | if { (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 | |
6493 | else | |
6494 | echo "$as_me: failed program was:" >&5 | |
6495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6496 | ||
6497 | ac_cv_lib_termcap_tgetnum=no | |
6498 | fi | |
6499 | rm -f conftest.err conftest.$ac_objext \ | |
6500 | conftest$ac_exeext conftest.$ac_ext | |
6501 | LIBS=$ac_check_lib_save_LIBS | |
6502 | fi | |
6503 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5 | |
6504 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetnum" >&6 | |
6505 | if 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 | ||
6512 | fi | |
6513 | ||
6514 | ||
6515 | ||
6516 | if test x$ac_cv_lib_termcap_tgetnum = xyes; then | |
6517 | HAVE_TERMCAP_TRUE= | |
6518 | HAVE_TERMCAP_FALSE='#' | |
6519 | else | |
6520 | HAVE_TERMCAP_TRUE='#' | |
6521 | HAVE_TERMCAP_FALSE= | |
6522 | fi | |
6523 | ||
6524 | ||
6525 | ||
48d7b13a KZ |
6526 | echo "$as_me:$LINENO: checking for blkid_known_fstype in -lblkid" >&5 |
6527 | echo $ECHO_N "checking for blkid_known_fstype in -lblkid... $ECHO_C" >&6 | |
6528 | if test "${ac_cv_lib_blkid_blkid_known_fstype+set}" = set; then | |
6529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6530 | else | |
6531 | ac_check_lib_save_LIBS=$LIBS | |
6532 | LIBS="-lblkid $LIBS" | |
6533 | cat >conftest.$ac_ext <<_ACEOF | |
6534 | /* confdefs.h. */ | |
6535 | _ACEOF | |
6536 | cat confdefs.h >>conftest.$ac_ext | |
6537 | cat >>conftest.$ac_ext <<_ACEOF | |
6538 | /* end confdefs.h. */ | |
6539 | ||
6540 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6541 | #ifdef __cplusplus | |
6542 | extern "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. */ | |
6546 | char blkid_known_fstype (); | |
6547 | int | |
6548 | main () | |
6549 | { | |
6550 | blkid_known_fstype (); | |
6551 | ; | |
6552 | return 0; | |
6553 | } | |
6554 | _ACEOF | |
6555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6556 | if { (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 | |
6577 | else | |
6578 | echo "$as_me: failed program was:" >&5 | |
6579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6580 | ||
6581 | ac_cv_lib_blkid_blkid_known_fstype=no | |
6582 | fi | |
6583 | rm -f conftest.err conftest.$ac_objext \ | |
6584 | conftest$ac_exeext conftest.$ac_ext | |
6585 | LIBS=$ac_check_lib_save_LIBS | |
6586 | fi | |
6587 | echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_known_fstype" >&5 | |
6588 | echo "${ECHO_T}$ac_cv_lib_blkid_blkid_known_fstype" >&6 | |
6589 | if 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 | ||
6596 | fi | |
6597 | ||
6598 | ||
6599 | ||
6600 | if test x$ac_cv_lib_blkid_blkid_known_fstype = xyes; then | |
6601 | HAVE_BLKID_TRUE= | |
6602 | HAVE_BLKID_FALSE='#' | |
6603 | else | |
6604 | HAVE_BLKID_TRUE='#' | |
6605 | HAVE_BLKID_FALSE= | |
6606 | fi | |
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 | |
6626 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
6627 | # Check whether --enable-nls or --disable-nls was given. | |
6628 | if test "${enable_nls+set}" = set; then | |
6629 | enableval="$enable_nls" | |
6630 | USE_NLS=$enableval | |
6631 | else | |
6632 | USE_NLS=yes | |
6633 | fi; | |
6634 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
6635 | echo "${ECHO_T}$USE_NLS" >&6 | |
6636 | ||
6637 | ||
6638 | ||
6639 | ||
6640 | ||
6641 | ||
6642 | # Prepare PATH_SEPARATOR. | |
6643 | # The user is always right. | |
6644 | if 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 | |
6654 | fi | |
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. | |
6658 | cat >conf$$.file <<_ASEOF | |
6659 | #! /bin/sh | |
6660 | exit 0 | |
6661 | _ASEOF | |
6662 | chmod +x conf$$.file | |
6663 | if test -x conf$$.file >/dev/null 2>&1; then | |
6664 | ac_executable_p="test -x" | |
6665 | else | |
6666 | ac_executable_p="test -f" | |
6667 | fi | |
6668 | rm -f conf$$.file | |
6669 | ||
6670 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6671 | set dummy msgfmt; ac_word=$2 | |
6672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6674 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6676 | else | |
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 | ;; | |
6700 | esac | |
6701 | fi | |
6702 | MSGFMT="$ac_cv_path_MSGFMT" | |
6703 | if test "$MSGFMT" != ":"; then | |
6704 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
6705 | echo "${ECHO_T}$MSGFMT" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6712 | set dummy gmsgfmt; ac_word=$2 | |
6713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6715 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6717 | else | |
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 | |
6724 | for as_dir in $PATH | |
6725 | do | |
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 | |
6734 | done | |
6735 | done | |
6736 | ||
6737 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6738 | ;; | |
6739 | esac | |
6740 | fi | |
6741 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6742 | ||
6743 | if test -n "$GMSGFMT"; then | |
6744 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
6745 | echo "${ECHO_T}$GMSGFMT" >&6 | |
6746 | else | |
6747 | echo "$as_me:$LINENO: result: no" >&5 | |
6748 | echo "${ECHO_T}no" >&6 | |
6749 | fi | |
6750 | ||
6751 | ||
6752 | ||
6753 | # Prepare PATH_SEPARATOR. | |
6754 | # The user is always right. | |
6755 | if 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 | |
6765 | fi | |
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. | |
6769 | cat >conf$$.file <<_ASEOF | |
6770 | #! /bin/sh | |
6771 | exit 0 | |
6772 | _ASEOF | |
6773 | chmod +x conf$$.file | |
6774 | if test -x conf$$.file >/dev/null 2>&1; then | |
6775 | ac_executable_p="test -x" | |
6776 | else | |
6777 | ac_executable_p="test -f" | |
6778 | fi | |
6779 | rm -f conf$$.file | |
6780 | ||
6781 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6782 | set dummy xgettext; ac_word=$2 | |
6783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6785 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6787 | else | |
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 | ;; | |
6811 | esac | |
6812 | fi | |
6813 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6814 | if test "$XGETTEXT" != ":"; then | |
6815 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
6816 | echo "${ECHO_T}$XGETTEXT" >&6 | |
6817 | else | |
6818 | echo "$as_me:$LINENO: result: no" >&5 | |
6819 | echo "${ECHO_T}no" >&6 | |
6820 | fi | |
6821 | ||
6822 | rm -f messages.po | |
6823 | ||
6824 | ||
6825 | # Prepare PATH_SEPARATOR. | |
6826 | # The user is always right. | |
6827 | if 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 | |
6837 | fi | |
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. | |
6841 | cat >conf$$.file <<_ASEOF | |
6842 | #! /bin/sh | |
6843 | exit 0 | |
6844 | _ASEOF | |
6845 | chmod +x conf$$.file | |
6846 | if test -x conf$$.file >/dev/null 2>&1; then | |
6847 | ac_executable_p="test -x" | |
6848 | else | |
6849 | ac_executable_p="test -f" | |
6850 | fi | |
6851 | rm -f conf$$.file | |
6852 | ||
6853 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6854 | set dummy msgmerge; ac_word=$2 | |
6855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6857 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6859 | else | |
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 | ;; | |
6882 | esac | |
6883 | fi | |
6884 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6885 | if test "$MSGMERGE" != ":"; then | |
6886 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
6887 | echo "${ECHO_T}$MSGMERGE" >&6 | |
6888 | else | |
6889 | echo "$as_me:$LINENO: result: no" >&5 | |
6890 | echo "${ECHO_T}no" >&6 | |
6891 | fi | |
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 | |
6901 | echo "${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 | |
6912 | echo "${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 | |
6940 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
6941 | { (exit 1); exit 1; }; } | |
6942 | ||
6943 | echo "$as_me:$LINENO: checking build system type" >&5 | |
6944 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
6945 | if test "${ac_cv_build+set}" = set; then | |
6946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6947 | else | |
6948 | ac_cv_build_alias=$build_alias | |
6949 | test -z "$ac_cv_build_alias" && | |
6950 | ac_cv_build_alias=`$ac_config_guess` | |
6951 | test -z "$ac_cv_build_alias" && | |
6952 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
6953 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
6954 | { (exit 1); exit 1; }; } | |
6955 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
6956 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
6957 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
6958 | { (exit 1); exit 1; }; } | |
6959 | ||
6960 | fi | |
6961 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
6962 | echo "${ECHO_T}$ac_cv_build" >&6 | |
6963 | build=$ac_cv_build | |
6964 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6965 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6966 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6967 | ||
6968 | ||
6969 | echo "$as_me:$LINENO: checking host system type" >&5 | |
6970 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
6971 | if test "${ac_cv_host+set}" = set; then | |
6972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6973 | else | |
6974 | ac_cv_host_alias=$host_alias | |
6975 | test -z "$ac_cv_host_alias" && | |
6976 | ac_cv_host_alias=$ac_cv_build_alias | |
6977 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
6978 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
6979 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
6980 | { (exit 1); exit 1; }; } | |
6981 | ||
6982 | fi | |
6983 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
6984 | echo "${ECHO_T}$ac_cv_host" >&6 | |
6985 | host=$ac_cv_host | |
6986 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6987 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6988 | host_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. | |
6993 | if test "${with_gnu_ld+set}" = set; then | |
6994 | withval="$with_gnu_ld" | |
6995 | test "$withval" = no || with_gnu_ld=yes | |
6996 | else | |
6997 | with_gnu_ld=no | |
6998 | fi; | |
6999 | # Prepare PATH_SEPARATOR. | |
7000 | # The user is always right. | |
7001 | if 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 | |
7011 | fi | |
7012 | ac_prog=ld | |
7013 | if 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 | |
7016 | echo $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 | |
7044 | elif test "$with_gnu_ld" = yes; then | |
7045 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
7046 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
7047 | else | |
7048 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
7049 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
7050 | fi | |
7051 | if test "${acl_cv_path_LD+set}" = set; then | |
7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7053 | else | |
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" | |
7072 | else | |
7073 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7074 | fi | |
7075 | fi | |
7076 | ||
7077 | LD="$acl_cv_path_LD" | |
7078 | if test -n "$LD"; then | |
7079 | echo "$as_me:$LINENO: result: $LD" >&5 | |
7080 | echo "${ECHO_T}$LD" >&6 | |
7081 | else | |
7082 | echo "$as_me:$LINENO: result: no" >&5 | |
7083 | echo "${ECHO_T}no" >&6 | |
7084 | fi | |
7085 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
7086 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
7087 | { (exit 1); exit 1; }; } | |
7088 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
7089 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
7090 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
7091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7092 | else | |
7093 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
7094 | case `$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 ;; | |
7099 | esac | |
7100 | fi | |
7101 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
7102 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
7103 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
7109 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
7110 | if test "${acl_cv_rpath+set}" = set; then | |
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7112 | else | |
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 | ||
7120 | fi | |
7121 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
7122 | echo "${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. | |
7131 | if test "${enable_rpath+set}" = set; then | |
7132 | enableval="$enable_rpath" | |
7133 | : | |
7134 | else | |
7135 | enable_rpath=yes | |
7136 | fi; | |
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. | |
7159 | if 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 | ||
7184 | fi; | |
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 | |
7538 | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 | |
7539 | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then | |
7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7541 | else | |
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 | |
7549 | cat confdefs.h >>conftest.$ac_ext | |
7550 | cat >>conftest.$ac_ext <<_ACEOF | |
7551 | /* end confdefs.h. */ | |
7552 | #include <CFPreferences.h> | |
7553 | int | |
7554 | main () | |
7555 | { | |
7556 | CFPreferencesCopyAppValue(NULL, NULL) | |
7557 | ; | |
7558 | return 0; | |
7559 | } | |
7560 | _ACEOF | |
7561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7562 | if { (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 | |
7583 | else | |
7584 | echo "$as_me: failed program was:" >&5 | |
7585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7586 | ||
7587 | gt_cv_func_CFPreferencesCopyAppValue=no | |
7588 | fi | |
7589 | rm -f conftest.err conftest.$ac_objext \ | |
7590 | conftest$ac_exeext conftest.$ac_ext | |
7591 | CPPFLAGS="$gt_save_CPPFLAGS" | |
7592 | LIBS="$gt_save_LIBS" | |
7593 | fi | |
7594 | echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
7595 | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 | |
7596 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
7597 | ||
7598 | cat >>confdefs.h <<\_ACEOF | |
7599 | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 | |
7600 | _ACEOF | |
7601 | ||
7602 | fi | |
7603 | echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 | |
7604 | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 | |
7605 | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then | |
7606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7607 | else | |
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 | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
7618 | #include <CFLocale.h> | |
7619 | int | |
7620 | main () | |
7621 | { | |
7622 | CFLocaleCopyCurrent(); | |
7623 | ; | |
7624 | return 0; | |
7625 | } | |
7626 | _ACEOF | |
7627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7628 | if { (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 | |
7649 | else | |
7650 | echo "$as_me: failed program was:" >&5 | |
7651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7652 | ||
7653 | gt_cv_func_CFLocaleCopyCurrent=no | |
7654 | fi | |
7655 | rm -f conftest.err conftest.$ac_objext \ | |
7656 | conftest$ac_exeext conftest.$ac_ext | |
7657 | CPPFLAGS="$gt_save_CPPFLAGS" | |
7658 | LIBS="$gt_save_LIBS" | |
7659 | fi | |
7660 | echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
7661 | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 | |
7662 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
7663 | ||
7664 | cat >>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 | |
7678 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
7679 | # Check whether --enable-nls or --disable-nls was given. | |
7680 | if test "${enable_nls+set}" = set; then | |
7681 | enableval="$enable_nls" | |
7682 | USE_NLS=$enableval | |
7683 | else | |
7684 | USE_NLS=yes | |
7685 | fi; | |
7686 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7687 | echo "${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 | |
7705 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 | |
7706 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then | |
7707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7708 | else | |
7709 | cat >conftest.$ac_ext <<_ACEOF | |
7710 | /* confdefs.h. */ | |
7711 | _ACEOF | |
7712 | cat confdefs.h >>conftest.$ac_ext | |
7713 | cat >>conftest.$ac_ext <<_ACEOF | |
7714 | /* end confdefs.h. */ | |
7715 | #include <libintl.h> | |
7716 | extern int _nl_msg_cat_cntr; | |
7717 | extern int *_nl_domain_bindings; | |
7718 | int | |
7719 | main () | |
7720 | { | |
7721 | bindtextdomain ("", ""); | |
7722 | return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | |
7723 | ; | |
7724 | return 0; | |
7725 | } | |
7726 | _ACEOF | |
7727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7728 | if { (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 | |
7749 | else | |
7750 | echo "$as_me: failed program was:" >&5 | |
7751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7752 | ||
7753 | gt_cv_func_gnugettext1_libc=no | |
7754 | fi | |
7755 | rm -f conftest.err conftest.$ac_objext \ | |
7756 | conftest$ac_exeext conftest.$ac_ext | |
7757 | fi | |
7758 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 | |
7759 | echo "${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 | |
7793 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
7794 | if test "${am_cv_func_iconv+set}" = set; then | |
7795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7796 | else | |
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 | |
7803 | cat confdefs.h >>conftest.$ac_ext | |
7804 | cat >>conftest.$ac_ext <<_ACEOF | |
7805 | /* end confdefs.h. */ | |
7806 | #include <stdlib.h> | |
7807 | #include <iconv.h> | |
7808 | int | |
7809 | main () | |
7810 | { | |
7811 | iconv_t cd = iconv_open("",""); | |
7812 | iconv(cd,NULL,NULL,NULL,NULL); | |
7813 | iconv_close(cd); | |
7814 | ; | |
7815 | return 0; | |
7816 | } | |
7817 | _ACEOF | |
7818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7819 | if { (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 | |
7840 | else | |
7841 | echo "$as_me: failed program was:" >&5 | |
7842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7843 | ||
7844 | fi | |
7845 | rm -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 | |
7853 | cat confdefs.h >>conftest.$ac_ext | |
7854 | cat >>conftest.$ac_ext <<_ACEOF | |
7855 | /* end confdefs.h. */ | |
7856 | #include <stdlib.h> | |
7857 | #include <iconv.h> | |
7858 | int | |
7859 | main () | |
7860 | { | |
7861 | iconv_t cd = iconv_open("",""); | |
7862 | iconv(cd,NULL,NULL,NULL,NULL); | |
7863 | iconv_close(cd); | |
7864 | ; | |
7865 | return 0; | |
7866 | } | |
7867 | _ACEOF | |
7868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7869 | if { (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 | |
7891 | else | |
7892 | echo "$as_me: failed program was:" >&5 | |
7893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7894 | ||
7895 | fi | |
7896 | rm -f conftest.err conftest.$ac_objext \ | |
7897 | conftest$ac_exeext conftest.$ac_ext | |
7898 | LIBS="$am_save_LIBS" | |
7899 | fi | |
7900 | ||
7901 | fi | |
7902 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
7903 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
7904 | if test "$am_cv_func_iconv" = yes; then | |
7905 | ||
7906 | cat >>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 | |
7913 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
7914 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
7915 | echo "${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. | |
7942 | if 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 | ||
7967 | fi; | |
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 | |
8304 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 | |
8305 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then | |
8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8307 | else | |
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 | |
8315 | cat confdefs.h >>conftest.$ac_ext | |
8316 | cat >>conftest.$ac_ext <<_ACEOF | |
8317 | /* end confdefs.h. */ | |
8318 | #include <libintl.h> | |
8319 | extern int _nl_msg_cat_cntr; | |
8320 | extern | |
8321 | #ifdef __cplusplus | |
8322 | "C" | |
8323 | #endif | |
8324 | const char *_nl_expand_alias (const char *); | |
8325 | int | |
8326 | main () | |
8327 | { | |
8328 | bindtextdomain ("", ""); | |
8329 | return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
8330 | ; | |
8331 | return 0; | |
8332 | } | |
8333 | _ACEOF | |
8334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8335 | if { (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 | |
8356 | else | |
8357 | echo "$as_me: failed program was:" >&5 | |
8358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8359 | ||
8360 | gt_cv_func_gnugettext1_libintl=no | |
8361 | fi | |
8362 | rm -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 | |
8369 | cat confdefs.h >>conftest.$ac_ext | |
8370 | cat >>conftest.$ac_ext <<_ACEOF | |
8371 | /* end confdefs.h. */ | |
8372 | #include <libintl.h> | |
8373 | extern int _nl_msg_cat_cntr; | |
8374 | extern | |
8375 | #ifdef __cplusplus | |
8376 | "C" | |
8377 | #endif | |
8378 | const char *_nl_expand_alias (const char *); | |
8379 | int | |
8380 | main () | |
8381 | { | |
8382 | bindtextdomain ("", ""); | |
8383 | return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
8384 | ; | |
8385 | return 0; | |
8386 | } | |
8387 | _ACEOF | |
8388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8389 | if { (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 | ||
8413 | else | |
8414 | echo "$as_me: failed program was:" >&5 | |
8415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8416 | ||
8417 | fi | |
8418 | rm -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" | |
8423 | fi | |
8424 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 | |
8425 | echo "${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 | ||
8452 | cat >>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 | |
8462 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 | |
8463 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
8464 | echo "${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 | |
8467 | echo $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 | |
8478 | echo "${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 | |
8486 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 | |
8487 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 | |
8488 | echo "${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 | ||
8515 | cat >>confdefs.h <<\_ACEOF | |
8516 | #define HAVE_GETTEXT 1 | |
8517 | _ACEOF | |
8518 | ||
8519 | ||
8520 | cat >>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 | ||
8541 | for ac_header in ncurses.h | |
8542 | do | |
8543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8549 | fi | |
8550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8552 | else | |
8553 | # Is the header compilable? | |
8554 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8555 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8556 | cat >conftest.$ac_ext <<_ACEOF | |
8557 | /* confdefs.h. */ | |
8558 | _ACEOF | |
8559 | cat confdefs.h >>conftest.$ac_ext | |
8560 | cat >>conftest.$ac_ext <<_ACEOF | |
8561 | /* end confdefs.h. */ | |
8562 | $ac_includes_default | |
8563 | #include <$ac_header> | |
8564 | _ACEOF | |
8565 | rm -f conftest.$ac_objext | |
8566 | if { (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 | |
8587 | else | |
8588 | echo "$as_me: failed program was:" >&5 | |
8589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8590 | ||
8591 | ac_header_compiler=no | |
8592 | fi | |
8593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8594 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8595 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8596 | ||
8597 | # Is the header present? | |
8598 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8599 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8600 | cat >conftest.$ac_ext <<_ACEOF | |
8601 | /* confdefs.h. */ | |
8602 | _ACEOF | |
8603 | cat confdefs.h >>conftest.$ac_ext | |
8604 | cat >>conftest.$ac_ext <<_ACEOF | |
8605 | /* end confdefs.h. */ | |
8606 | #include <$ac_header> | |
8607 | _ACEOF | |
8608 | if { (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 | |
8622 | else | |
8623 | ac_cpp_err=yes | |
8624 | fi | |
8625 | if test -z "$ac_cpp_err"; then | |
8626 | ac_header_preproc=yes | |
8627 | else | |
8628 | echo "$as_me: failed program was:" >&5 | |
8629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8630 | ||
8631 | ac_header_preproc=no | |
8632 | fi | |
8633 | rm -f conftest.err conftest.$ac_ext | |
8634 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8635 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8636 | ||
8637 | # So? What about this header? | |
8638 | case $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 | |
8641 | echo "$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 | |
8643 | echo "$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 | |
8648 | echo "$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 | |
8650 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8652 | echo "$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 | |
8654 | echo "$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 | |
8656 | echo "$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 | |
8658 | echo "$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 | ;; | |
8668 | esac | |
8669 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8673 | else | |
8674 | eval "$as_ac_Header=\$ac_header_preproc" | |
8675 | fi | |
8676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8677 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8678 | ||
8679 | fi | |
8680 | if 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 | ||
8685 | fi | |
8686 | ||
8687 | done | |
8688 | ||
8689 | ||
8690 | for ac_header in ncurses/ncurses.h | |
8691 | do | |
8692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8698 | fi | |
8699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8701 | else | |
8702 | # Is the header compilable? | |
8703 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8704 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8705 | cat >conftest.$ac_ext <<_ACEOF | |
8706 | /* confdefs.h. */ | |
8707 | _ACEOF | |
8708 | cat confdefs.h >>conftest.$ac_ext | |
8709 | cat >>conftest.$ac_ext <<_ACEOF | |
8710 | /* end confdefs.h. */ | |
8711 | $ac_includes_default | |
8712 | #include <$ac_header> | |
8713 | _ACEOF | |
8714 | rm -f conftest.$ac_objext | |
8715 | if { (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 | |
8736 | else | |
8737 | echo "$as_me: failed program was:" >&5 | |
8738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8739 | ||
8740 | ac_header_compiler=no | |
8741 | fi | |
8742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8743 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8744 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8745 | ||
8746 | # Is the header present? | |
8747 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8748 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8749 | cat >conftest.$ac_ext <<_ACEOF | |
8750 | /* confdefs.h. */ | |
8751 | _ACEOF | |
8752 | cat confdefs.h >>conftest.$ac_ext | |
8753 | cat >>conftest.$ac_ext <<_ACEOF | |
8754 | /* end confdefs.h. */ | |
8755 | #include <$ac_header> | |
8756 | _ACEOF | |
8757 | if { (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 | |
8771 | else | |
8772 | ac_cpp_err=yes | |
8773 | fi | |
8774 | if test -z "$ac_cpp_err"; then | |
8775 | ac_header_preproc=yes | |
8776 | else | |
8777 | echo "$as_me: failed program was:" >&5 | |
8778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8779 | ||
8780 | ac_header_preproc=no | |
8781 | fi | |
8782 | rm -f conftest.err conftest.$ac_ext | |
8783 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8784 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8785 | ||
8786 | # So? What about this header? | |
8787 | case $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 | |
8790 | echo "$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 | |
8792 | echo "$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 | |
8797 | echo "$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 | |
8799 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8800 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8801 | echo "$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 | |
8803 | echo "$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 | |
8805 | echo "$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 | |
8807 | echo "$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 | ;; | |
8817 | esac | |
8818 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8822 | else | |
8823 | eval "$as_ac_Header=\$ac_header_preproc" | |
8824 | fi | |
8825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8827 | ||
8828 | fi | |
8829 | if 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 | ||
8834 | fi | |
8835 | ||
8836 | done | |
8837 | ||
8838 | ||
8839 | ||
9cb68977 | 8840 | if 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 | |
8843 | echo "$as_me: you have ncurses" >&6;} | |
8844 | else | |
8845 | { echo "$as_me:$LINENO: you do not have ncurses" >&5 | |
8846 | echo "$as_me: you do not have ncurses" >&6;} | |
8847 | fi | |
8848 | ||
8849 | ||
8850 | ||
8851 | if test x$have_ncurses = xyes; then | |
8852 | HAVE_NCURSES_TRUE= | |
8853 | HAVE_NCURSES_FALSE='#' | |
8854 | else | |
8855 | HAVE_NCURSES_TRUE='#' | |
8856 | HAVE_NCURSES_FALSE= | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | ||
8861 | ||
8862 | # Check whether --with-slang or --without-slang was given. | |
8863 | if test "${with_slang+set}" = set; then | |
8864 | withval="$with_slang" | |
8865 | with_slang=$withval | |
8866 | else | |
8867 | with_slang=no | |
8868 | ||
8869 | fi; | |
8870 | ||
8871 | if test x$with_slang = xyes; then | |
8872 | ||
8873 | for ac_header in slcurses.h | |
8874 | do | |
8875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8881 | fi | |
8882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8884 | else | |
8885 | # Is the header compilable? | |
8886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8888 | cat >conftest.$ac_ext <<_ACEOF | |
8889 | /* confdefs.h. */ | |
8890 | _ACEOF | |
8891 | cat confdefs.h >>conftest.$ac_ext | |
8892 | cat >>conftest.$ac_ext <<_ACEOF | |
8893 | /* end confdefs.h. */ | |
8894 | $ac_includes_default | |
8895 | #include <$ac_header> | |
8896 | _ACEOF | |
8897 | rm -f conftest.$ac_objext | |
8898 | if { (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 | |
8919 | else | |
8920 | echo "$as_me: failed program was:" >&5 | |
8921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8922 | ||
8923 | ac_header_compiler=no | |
8924 | fi | |
8925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8927 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8928 | ||
8929 | # Is the header present? | |
8930 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8932 | cat >conftest.$ac_ext <<_ACEOF | |
8933 | /* confdefs.h. */ | |
8934 | _ACEOF | |
8935 | cat confdefs.h >>conftest.$ac_ext | |
8936 | cat >>conftest.$ac_ext <<_ACEOF | |
8937 | /* end confdefs.h. */ | |
8938 | #include <$ac_header> | |
8939 | _ACEOF | |
8940 | if { (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 | |
8954 | else | |
8955 | ac_cpp_err=yes | |
8956 | fi | |
8957 | if test -z "$ac_cpp_err"; then | |
8958 | ac_header_preproc=yes | |
8959 | else | |
8960 | echo "$as_me: failed program was:" >&5 | |
8961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8962 | ||
8963 | ac_header_preproc=no | |
8964 | fi | |
8965 | rm -f conftest.err conftest.$ac_ext | |
8966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8967 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8968 | ||
8969 | # So? What about this header? | |
8970 | case $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 | |
8973 | echo "$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 | |
8975 | echo "$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 | |
8980 | echo "$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 | |
8982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8984 | echo "$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 | |
8986 | echo "$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 | |
8988 | echo "$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 | |
8990 | echo "$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 | ;; | |
9000 | esac | |
9001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9005 | else | |
9006 | eval "$as_ac_Header=\$ac_header_preproc" | |
9007 | fi | |
9008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9010 | ||
9011 | fi | |
9012 | if 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 | ||
9017 | fi | |
9018 | ||
9019 | done | |
9020 | ||
9021 | ||
9022 | for ac_header in slang/slcurses.h | |
9023 | do | |
9024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9030 | fi | |
9031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9033 | else | |
9034 | # Is the header compilable? | |
9035 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9037 | cat >conftest.$ac_ext <<_ACEOF | |
9038 | /* confdefs.h. */ | |
9039 | _ACEOF | |
9040 | cat confdefs.h >>conftest.$ac_ext | |
9041 | cat >>conftest.$ac_ext <<_ACEOF | |
9042 | /* end confdefs.h. */ | |
9043 | $ac_includes_default | |
9044 | #include <$ac_header> | |
9045 | _ACEOF | |
9046 | rm -f conftest.$ac_objext | |
9047 | if { (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 | |
9068 | else | |
9069 | echo "$as_me: failed program was:" >&5 | |
9070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9071 | ||
9072 | ac_header_compiler=no | |
9073 | fi | |
9074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9077 | ||
9078 | # Is the header present? | |
9079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9081 | cat >conftest.$ac_ext <<_ACEOF | |
9082 | /* confdefs.h. */ | |
9083 | _ACEOF | |
9084 | cat confdefs.h >>conftest.$ac_ext | |
9085 | cat >>conftest.$ac_ext <<_ACEOF | |
9086 | /* end confdefs.h. */ | |
9087 | #include <$ac_header> | |
9088 | _ACEOF | |
9089 | if { (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 | |
9103 | else | |
9104 | ac_cpp_err=yes | |
9105 | fi | |
9106 | if test -z "$ac_cpp_err"; then | |
9107 | ac_header_preproc=yes | |
9108 | else | |
9109 | echo "$as_me: failed program was:" >&5 | |
9110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9111 | ||
9112 | ac_header_preproc=no | |
9113 | fi | |
9114 | rm -f conftest.err conftest.$ac_ext | |
9115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9117 | ||
9118 | # So? What about this header? | |
9119 | case $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 | |
9122 | echo "$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 | |
9124 | echo "$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 | |
9129 | echo "$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 | |
9131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9133 | echo "$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 | |
9135 | echo "$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 | |
9137 | echo "$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 | |
9139 | echo "$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 | ;; | |
9149 | esac | |
9150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9154 | else | |
9155 | eval "$as_ac_Header=\$ac_header_preproc" | |
9156 | fi | |
9157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9159 | ||
9160 | fi | |
9161 | if 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 | ||
9166 | fi | |
9167 | ||
9168 | done | |
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 | |
9174 | echo "$as_me: error: slang selected but slcurses.h not found" >&2;} | |
9175 | { (exit 1); exit 1; }; } | |
9176 | fi | |
9177 | fi | |
9178 | ||
9179 | ||
9180 | ||
9181 | if test x$use_slang = xyes; then | |
9182 | USE_SLANG_TRUE= | |
9183 | USE_SLANG_FALSE='#' | |
9184 | else | |
9185 | USE_SLANG_TRUE='#' | |
9186 | USE_SLANG_FALSE= | |
9187 | fi | |
9188 | ||
9189 | ||
9190 | ||
9191 | cat >conftest.$ac_ext <<_ACEOF | |
9192 | /* confdefs.h. */ | |
9193 | _ACEOF | |
9194 | cat confdefs.h >>conftest.$ac_ext | |
9195 | cat >>conftest.$ac_ext <<_ACEOF | |
9196 | /* end confdefs.h. */ | |
9197 | ||
9198 | #define _XOPEN_SOURCE | |
9199 | #include <unistd.h> | |
9200 | ||
9201 | int | |
9202 | main () | |
9203 | { | |
9204 | ||
9205 | char *c = crypt("abc","pw"); | |
9206 | ||
9207 | ; | |
9208 | return 0; | |
9209 | } | |
9210 | _ACEOF | |
9211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9212 | if { (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 | : | |
9233 | else | |
9234 | echo "$as_me: failed program was:" >&5 | |
9235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9236 | ||
9237 | ||
48d7b13a KZ |
9238 | LIBS="$LIBS -lcrypt" |
9239 | cat >conftest.$ac_ext <<_ACEOF | |
9240 | /* confdefs.h. */ | |
9241 | _ACEOF | |
9242 | cat confdefs.h >>conftest.$ac_ext | |
9243 | cat >>conftest.$ac_ext <<_ACEOF | |
9244 | /* end confdefs.h. */ | |
9245 | ||
9246 | #define _XOPEN_SOURCE | |
9247 | #include <unistd.h> | |
9248 | ||
9249 | int | |
9250 | main () | |
9251 | { | |
9252 | ||
9253 | char *c = crypt("abc","pw"); | |
9254 | ||
9255 | ; | |
9256 | return 0; | |
9257 | } | |
9258 | _ACEOF | |
9259 | rm -f conftest.$ac_objext | |
9260 | if { (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 | ||
9282 | cat >>confdefs.h <<\_ACEOF | |
9283 | #define NEED_LIBCRYPT 1 | |
9284 | _ACEOF | |
9285 | ||
9286 | need_libcrypt=yes | |
9287 | ||
9288 | else | |
9289 | echo "$as_me: failed program was:" >&5 | |
9290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9291 | ||
9292 | ||
9293 | { { echo "$as_me:$LINENO: error: crypt() is not available" >&5 | |
9294 | echo "$as_me: error: crypt() is not available" >&2;} | |
9295 | { (exit 1); exit 1; }; } | |
9296 | ||
9297 | fi | |
9298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
48d7b13a KZ |
9299 | |
9300 | fi | |
9301 | rm -f conftest.err conftest.$ac_objext \ | |
9302 | conftest$ac_exeext conftest.$ac_ext | |
9303 | ||
9304 | ||
9305 | ||
9306 | if test x$need_libcrypt = xyes; then | |
9307 | NEED_LIBCRYPT_TRUE= | |
9308 | NEED_LIBCRYPT_FALSE='#' | |
9309 | else | |
9310 | NEED_LIBCRYPT_TRUE='#' | |
9311 | NEED_LIBCRYPT_FALSE= | |
9312 | fi | |
9313 | ||
9314 | ||
9315 | cat >conftest.$ac_ext <<_ACEOF | |
9316 | /* confdefs.h. */ | |
9317 | _ACEOF | |
9318 | cat confdefs.h >>conftest.$ac_ext | |
9319 | cat >>conftest.$ac_ext <<_ACEOF | |
9320 | /* end confdefs.h. */ | |
9321 | ||
9322 | #include <stdio.h> | |
9323 | ||
9324 | int | |
9325 | main () | |
9326 | { | |
9327 | ||
9328 | printf(__progname); | |
9329 | ||
9330 | ; | |
9331 | return 0; | |
9332 | } | |
9333 | _ACEOF | |
9334 | rm -f conftest.$ac_objext | |
9335 | if { (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 | ||
9356 | cat >>confdefs.h <<\_ACEOF | |
9357 | #define HAVE___PROGNAME 1 | |
9358 | _ACEOF | |
9359 | ||
9360 | ||
9361 | else | |
9362 | echo "$as_me: failed program was:" >&5 | |
9363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9364 | ||
9365 | fi | |
9366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9367 | ||
9368 | ||
9369 | cat >conftest.$ac_ext <<_ACEOF | |
9370 | /* confdefs.h. */ | |
9371 | _ACEOF | |
9372 | cat confdefs.h >>conftest.$ac_ext | |
9373 | cat >>conftest.$ac_ext <<_ACEOF | |
9374 | /* end confdefs.h. */ | |
9375 | ||
9376 | #include <wchar.h> | |
9377 | #include <wctype.h> | |
9378 | #include <stdio.h> | |
9379 | ||
9380 | int | |
9381 | main () | |
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 | |
9395 | rm -f conftest.$ac_objext | |
9396 | if { (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 | ||
9417 | cat >>confdefs.h <<\_ACEOF | |
9418 | #define HAVE_WIDECHAR 1 | |
9419 | _ACEOF | |
9420 | ||
9421 | else | |
9422 | echo "$as_me: failed program was:" >&5 | |
9423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9424 | ||
9425 | fi | |
9426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9427 | ||
9428 | ||
9429 | cat >conftest.$ac_ext <<_ACEOF | |
9430 | /* confdefs.h. */ | |
9431 | _ACEOF | |
9432 | cat confdefs.h >>conftest.$ac_ext | |
9433 | cat >>conftest.$ac_ext <<_ACEOF | |
9434 | /* end confdefs.h. */ | |
9435 | ||
9436 | #include <sys/syscall.h> | |
9437 | #include <unistd.h> | |
9438 | ||
9439 | int | |
9440 | main () | |
9441 | { | |
9442 | ||
9443 | int test = SYS_pivot_root; | |
9444 | ||
9445 | ; | |
9446 | return 0; | |
9447 | } | |
9448 | _ACEOF | |
9449 | rm -f conftest.$ac_objext | |
9450 | if { (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 | |
9471 | else | |
9472 | echo "$as_me: failed program was:" >&5 | |
9473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9474 | ||
9475 | fi | |
9476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9477 | ||
9478 | ||
9479 | ||
9480 | if test x$have_pivot_root = xtrue; then | |
9481 | HAVE_PIVOT_ROOT_TRUE= | |
9482 | HAVE_PIVOT_ROOT_FALSE='#' | |
9483 | else | |
9484 | HAVE_PIVOT_ROOT_TRUE='#' | |
9485 | HAVE_PIVOT_ROOT_FALSE= | |
9486 | fi | |
9487 | ||
9488 | ||
9489 | ||
9490 | cat >conftest.$ac_ext <<_ACEOF | |
9491 | /* confdefs.h. */ | |
9492 | _ACEOF | |
9493 | cat confdefs.h >>conftest.$ac_ext | |
9494 | cat >>conftest.$ac_ext <<_ACEOF | |
9495 | /* end confdefs.h. */ | |
9496 | ||
9497 | #include <time.h> | |
9498 | #include <unistd.h> | |
9499 | ||
9500 | int | |
9501 | main () | |
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 | |
9513 | rm -f conftest.$ac_objext | |
9514 | if { (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 | ||
9535 | cat >>confdefs.h <<\_ACEOF | |
9536 | #define HAVE_TM_GMTOFF 1 | |
9537 | _ACEOF | |
eb63b9b8 | 9538 | |
48d7b13a KZ |
9539 | else |
9540 | echo "$as_me: failed program was:" >&5 | |
9541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9542 | ||
9543 | fi | |
9544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9545 | ||
9546 | ||
9547 | case "$host" in | |
ca3ea756 KZ |
9548 | i?86-*) intel=true ;; |
9549 | m68*) m68k=true ;; | |
48d7b13a KZ |
9550 | sparc*) sparc=true ;; |
9551 | esac | |
9552 | ||
9553 | ||
9554 | ||
9555 | if test x$intel = xtrue; then | |
9556 | INTEL_TRUE= | |
9557 | INTEL_FALSE='#' | |
9558 | else | |
9559 | INTEL_TRUE='#' | |
9560 | INTEL_FALSE= | |
9561 | fi | |
9562 | ||
9563 | ||
9564 | ||
ca3ea756 KZ |
9565 | if test x$m68k = xtrue; then |
9566 | M68K_TRUE= | |
9567 | M68K_FALSE='#' | |
9568 | else | |
9569 | M68K_TRUE='#' | |
9570 | M68K_FALSE= | |
9571 | fi | |
9572 | ||
9573 | ||
9574 | ||
48d7b13a KZ |
9575 | if test x$sparc = xtrue; then |
9576 | SPARC_TRUE= | |
9577 | SPARC_FALSE='#' | |
9578 | else | |
9579 | SPARC_TRUE='#' | |
9580 | SPARC_FALSE= | |
9581 | fi | |
9582 | ||
9583 | ||
9584 | ||
9585 | # Check whether --enable-agetty or --disable-agetty was given. | |
9586 | if test "${enable_agetty+set}" = set; then | |
9587 | enableval="$enable_agetty" | |
baf39af1 | 9588 | enable_agetty=$enableval |
48d7b13a | 9589 | else |
baf39af1 | 9590 | enable_agetty=yes |
48d7b13a KZ |
9591 | |
9592 | fi; | |
9593 | ||
9594 | ||
baf39af1 | 9595 | if test x$enable_agetty = xyes; then |
48d7b13a KZ |
9596 | BUILD_AGETTY_TRUE= |
9597 | BUILD_AGETTY_FALSE='#' | |
9598 | else | |
9599 | BUILD_AGETTY_TRUE='#' | |
9600 | BUILD_AGETTY_FALSE= | |
9601 | fi | |
9602 | ||
9603 | ||
9604 | ||
9cb68977 KZ |
9605 | # Check whether --enable-cramfs or --disable-cramfs was given. |
9606 | if test "${enable_cramfs+set}" = set; then | |
9607 | enableval="$enable_cramfs" | |
9608 | enable_cramfs=$enableval | |
9609 | else | |
9610 | enable_cramfs=check | |
9611 | ||
9612 | fi; | |
9613 | ||
9614 | if test x$enable_cramfs != xno; then | |
9615 | ||
9616 | echo "$as_me:$LINENO: checking for crc32 in -lz" >&5 | |
9617 | echo $ECHO_N "checking for crc32 in -lz... $ECHO_C" >&6 | |
9618 | if test "${ac_cv_lib_z_crc32+set}" = set; then | |
9619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9620 | else | |
9621 | ac_check_lib_save_LIBS=$LIBS | |
9622 | LIBS="-lz $LIBS" | |
9623 | cat >conftest.$ac_ext <<_ACEOF | |
9624 | /* confdefs.h. */ | |
9625 | _ACEOF | |
9626 | cat confdefs.h >>conftest.$ac_ext | |
9627 | cat >>conftest.$ac_ext <<_ACEOF | |
9628 | /* end confdefs.h. */ | |
9629 | ||
9630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9631 | #ifdef __cplusplus | |
9632 | extern "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. */ | |
9636 | char crc32 (); | |
9637 | int | |
9638 | main () | |
9639 | { | |
9640 | crc32 (); | |
9641 | ; | |
9642 | return 0; | |
9643 | } | |
9644 | _ACEOF | |
9645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9646 | if { (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 | |
9667 | else | |
9668 | echo "$as_me: failed program was:" >&5 | |
9669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9670 | ||
9671 | ac_cv_lib_z_crc32=no | |
9672 | fi | |
9673 | rm -f conftest.err conftest.$ac_objext \ | |
9674 | conftest$ac_exeext conftest.$ac_ext | |
9675 | LIBS=$ac_check_lib_save_LIBS | |
9676 | fi | |
9677 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5 | |
9678 | echo "${ECHO_T}$ac_cv_lib_z_crc32" >&6 | |
9679 | if 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 | ||
9686 | fi | |
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 | |
9691 | echo "$as_me: error: cramfs selected but libz not found" >&2;} | |
9692 | { (exit 1); exit 1; }; } | |
9693 | fi | |
9694 | fi | |
9695 | ||
9696 | ||
9697 | ||
9698 | if test x$build_cramfs = xyes; then | |
9699 | BUILD_CRAMFS_TRUE= | |
9700 | BUILD_CRAMFS_FALSE='#' | |
9701 | else | |
9702 | BUILD_CRAMFS_TRUE='#' | |
9703 | BUILD_CRAMFS_FALSE= | |
9704 | fi | |
9705 | ||
9706 | ||
9707 | ||
48d7b13a KZ |
9708 | # Check whether --enable-elvtune or --disable-elvtune was given. |
9709 | if test "${enable_elvtune+set}" = set; then | |
9710 | enableval="$enable_elvtune" | |
baf39af1 | 9711 | enable_elvtune=$enableval |
48d7b13a | 9712 | else |
baf39af1 | 9713 | enable_elvtune=no |
48d7b13a KZ |
9714 | |
9715 | fi; | |
9716 | ||
9717 | ||
baf39af1 | 9718 | if test x$enable_elvtune = xyes; then |
48d7b13a KZ |
9719 | BUILD_ELVTUNE_TRUE= |
9720 | BUILD_ELVTUNE_FALSE='#' | |
9721 | else | |
9722 | BUILD_ELVTUNE_TRUE='#' | |
9723 | BUILD_ELVTUNE_FALSE= | |
9724 | fi | |
9725 | ||
9726 | ||
9727 | ||
9728 | # Check whether --enable-init or --disable-init was given. | |
9729 | if test "${enable_init+set}" = set; then | |
9730 | enableval="$enable_init" | |
baf39af1 | 9731 | enable_init=$enableval |
48d7b13a | 9732 | else |
baf39af1 | 9733 | enable_init=no |
48d7b13a KZ |
9734 | |
9735 | fi; | |
9736 | ||
9737 | ||
baf39af1 | 9738 | if test x$enable_init = xyes; then |
48d7b13a KZ |
9739 | BUILD_INIT_TRUE= |
9740 | BUILD_INIT_FALSE='#' | |
9741 | else | |
9742 | BUILD_INIT_TRUE='#' | |
9743 | BUILD_INIT_FALSE= | |
9744 | fi | |
9745 | ||
9746 | ||
9747 | ||
9748 | # Check whether --enable-kill or --disable-kill was given. | |
9749 | if test "${enable_kill+set}" = set; then | |
9750 | enableval="$enable_kill" | |
baf39af1 | 9751 | enable_kill=$enableval |
48d7b13a | 9752 | else |
baf39af1 | 9753 | enable_kill=no |
48d7b13a KZ |
9754 | |
9755 | fi; | |
9756 | ||
9757 | ||
baf39af1 | 9758 | if test x$enable_kill = xyes; then |
48d7b13a KZ |
9759 | BUILD_KILL_TRUE= |
9760 | BUILD_KILL_FALSE='#' | |
9761 | else | |
9762 | BUILD_KILL_TRUE='#' | |
9763 | BUILD_KILL_FALSE= | |
9764 | fi | |
9765 | ||
9766 | ||
9767 | ||
9768 | # Check whether --enable-last or --disable-last was given. | |
9769 | if test "${enable_last+set}" = set; then | |
9770 | enableval="$enable_last" | |
baf39af1 | 9771 | enable_last=$enableval |
48d7b13a | 9772 | else |
baf39af1 | 9773 | enable_last=no |
48d7b13a KZ |
9774 | |
9775 | fi; | |
9776 | ||
9777 | ||
baf39af1 | 9778 | if test x$enable_last = xyes; then |
48d7b13a KZ |
9779 | BUILD_LAST_TRUE= |
9780 | BUILD_LAST_FALSE='#' | |
9781 | else | |
9782 | BUILD_LAST_TRUE='#' | |
9783 | BUILD_LAST_FALSE= | |
9784 | fi | |
9785 | ||
9786 | ||
9787 | ||
9788 | # Check whether --enable-mesg or --disable-mesg was given. | |
9789 | if test "${enable_mesg+set}" = set; then | |
9790 | enableval="$enable_mesg" | |
baf39af1 | 9791 | enable_mesg=$enableval |
48d7b13a | 9792 | else |
baf39af1 | 9793 | enable_mesg=no |
48d7b13a KZ |
9794 | |
9795 | fi; | |
9796 | ||
9797 | ||
baf39af1 | 9798 | if test x$enable_mesg = xyes; then |
48d7b13a KZ |
9799 | BUILD_MESG_TRUE= |
9800 | BUILD_MESG_FALSE='#' | |
9801 | else | |
9802 | BUILD_MESG_TRUE='#' | |
9803 | BUILD_MESG_FALSE= | |
9804 | fi | |
9805 | ||
9806 | ||
9807 | ||
9808 | # Check whether --enable-partx or --disable-partx was given. | |
9809 | if test "${enable_partx+set}" = set; then | |
9810 | enableval="$enable_partx" | |
baf39af1 | 9811 | enable_partx=$enableval |
48d7b13a | 9812 | else |
baf39af1 | 9813 | enable_partx=no |
48d7b13a KZ |
9814 | |
9815 | fi; | |
9816 | ||
9817 | ||
baf39af1 | 9818 | if test x$enable_partx = xyes; then |
48d7b13a KZ |
9819 | BUILD_PARTX_TRUE= |
9820 | BUILD_PARTX_FALSE='#' | |
9821 | else | |
9822 | BUILD_PARTX_TRUE='#' | |
9823 | BUILD_PARTX_FALSE= | |
9824 | fi | |
9825 | ||
9826 | ||
9827 | ||
9828 | # Check whether --enable-raw or --disable-raw was given. | |
9829 | if test "${enable_raw+set}" = set; then | |
9830 | enableval="$enable_raw" | |
baf39af1 | 9831 | enable_raw=$enableval |
48d7b13a | 9832 | else |
baf39af1 | 9833 | enable_raw=no |
48d7b13a KZ |
9834 | |
9835 | fi; | |
9836 | ||
9837 | ||
baf39af1 | 9838 | if test x$enable_raw = xyes; then |
48d7b13a KZ |
9839 | BUILD_RAW_TRUE= |
9840 | BUILD_RAW_FALSE='#' | |
9841 | else | |
9842 | BUILD_RAW_TRUE='#' | |
9843 | BUILD_RAW_FALSE= | |
9844 | fi | |
9845 | ||
9846 | ||
9847 | ||
9848 | # Check whether --enable-rdev or --disable-rdev was given. | |
9849 | if test "${enable_rdev+set}" = set; then | |
9850 | enableval="$enable_rdev" | |
baf39af1 | 9851 | enable_rdev=$enableval |
48d7b13a | 9852 | else |
baf39af1 | 9853 | enable_rdev=no |
48d7b13a KZ |
9854 | |
9855 | fi; | |
9856 | ||
9857 | ||
baf39af1 | 9858 | if test x$enable_rdev = xyes; then |
48d7b13a KZ |
9859 | BUILD_RDEV_TRUE= |
9860 | BUILD_RDEV_FALSE='#' | |
9861 | else | |
9862 | BUILD_RDEV_TRUE='#' | |
9863 | BUILD_RDEV_FALSE= | |
9864 | fi | |
9865 | ||
9866 | ||
9867 | ||
9868 | # Check whether --enable-rename or --disable-rename was given. | |
9869 | if test "${enable_rename+set}" = set; then | |
9870 | enableval="$enable_rename" | |
baf39af1 | 9871 | enable_agetty=$enableval |
48d7b13a | 9872 | else |
baf39af1 | 9873 | enable_rename=yes |
48d7b13a KZ |
9874 | |
9875 | fi; | |
9876 | ||
9877 | ||
baf39af1 | 9878 | if test x$enable_rename = xyes; then |
48d7b13a KZ |
9879 | BUILD_RENAME_TRUE= |
9880 | BUILD_RENAME_FALSE='#' | |
9881 | else | |
9882 | BUILD_RENAME_TRUE='#' | |
9883 | BUILD_RENAME_FALSE= | |
9884 | fi | |
9885 | ||
9886 | ||
9887 | ||
9888 | # Check whether --enable-reset or --disable-reset was given. | |
9889 | if test "${enable_reset+set}" = set; then | |
9890 | enableval="$enable_reset" | |
baf39af1 | 9891 | enable_reset=$enableval |
48d7b13a | 9892 | else |
baf39af1 | 9893 | enable_reset=no |
48d7b13a KZ |
9894 | |
9895 | fi; | |
9896 | ||
9897 | ||
baf39af1 | 9898 | if test x$enable_reset = xyes; then |
48d7b13a KZ |
9899 | BUILD_RESET_TRUE= |
9900 | BUILD_RESET_FALSE='#' | |
9901 | else | |
9902 | BUILD_RESET_TRUE='#' | |
9903 | BUILD_RESET_FALSE= | |
9904 | fi | |
9905 | ||
9906 | ||
9907 | ||
9908 | # Check whether --enable-login-utils or --disable-login-utils was given. | |
9909 | if test "${enable_login_utils+set}" = set; then | |
9910 | enableval="$enable_login_utils" | |
baf39af1 | 9911 | enable_login_utils=$enableval |
48d7b13a | 9912 | else |
baf39af1 | 9913 | enable_login_utils=no |
48d7b13a KZ |
9914 | |
9915 | fi; | |
9916 | ||
9917 | ||
baf39af1 | 9918 | if test x$enable_login_utils = xyes; then |
48d7b13a KZ |
9919 | BUILD_LOGIN_UTILS_TRUE= |
9920 | BUILD_LOGIN_UTILS_FALSE='#' | |
9921 | else | |
9922 | BUILD_LOGIN_UTILS_TRUE='#' | |
9923 | BUILD_LOGIN_UTILS_FALSE= | |
9924 | fi | |
9925 | ||
9926 | ||
9927 | ||
9cb68977 KZ |
9928 | # Check whether --with-pam or --without-pam was given. |
9929 | if test "${with_pam+set}" = set; then | |
9930 | withval="$with_pam" | |
9931 | with_pam=$withval | |
9932 | else | |
9933 | with_pam=not_checked | |
9934 | ||
9935 | fi; | |
9936 | ||
9937 | if test x$enable_login_utils = xyes && test x$with_pam != xno; then | |
9938 | ||
9939 | for ac_header in security/pam_misc.h | |
9940 | do | |
9941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9947 | fi | |
9948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9950 | else | |
9951 | # Is the header compilable? | |
9952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9954 | cat >conftest.$ac_ext <<_ACEOF | |
9955 | /* confdefs.h. */ | |
9956 | _ACEOF | |
9957 | cat confdefs.h >>conftest.$ac_ext | |
9958 | cat >>conftest.$ac_ext <<_ACEOF | |
9959 | /* end confdefs.h. */ | |
9960 | $ac_includes_default | |
9961 | #include <$ac_header> | |
9962 | _ACEOF | |
9963 | rm -f conftest.$ac_objext | |
9964 | if { (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 | |
9985 | else | |
9986 | echo "$as_me: failed program was:" >&5 | |
9987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9988 | ||
9989 | ac_header_compiler=no | |
9990 | fi | |
9991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9993 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9994 | ||
9995 | # Is the header present? | |
9996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9998 | cat >conftest.$ac_ext <<_ACEOF | |
9999 | /* confdefs.h. */ | |
10000 | _ACEOF | |
10001 | cat confdefs.h >>conftest.$ac_ext | |
10002 | cat >>conftest.$ac_ext <<_ACEOF | |
10003 | /* end confdefs.h. */ | |
10004 | #include <$ac_header> | |
10005 | _ACEOF | |
10006 | if { (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 | |
10020 | else | |
10021 | ac_cpp_err=yes | |
10022 | fi | |
10023 | if test -z "$ac_cpp_err"; then | |
10024 | ac_header_preproc=yes | |
10025 | else | |
10026 | echo "$as_me: failed program was:" >&5 | |
10027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10028 | ||
10029 | ac_header_preproc=no | |
10030 | fi | |
10031 | rm -f conftest.err conftest.$ac_ext | |
10032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10033 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10034 | ||
10035 | # So? What about this header? | |
10036 | case $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 | |
10039 | echo "$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 | |
10041 | echo "$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 | |
10046 | echo "$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 | |
10048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10050 | echo "$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 | |
10052 | echo "$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 | |
10054 | echo "$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 | |
10056 | echo "$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 | ;; | |
10066 | esac | |
10067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10071 | else | |
10072 | eval "$as_ac_Header=\$ac_header_preproc" | |
10073 | fi | |
10074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10076 | ||
10077 | fi | |
10078 | if 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 | ||
10083 | fi | |
10084 | ||
10085 | done | |
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 | |
10089 | echo "$as_me: error: PAM selected but security/pam_misc.h not found" >&2;} | |
10090 | { (exit 1); exit 1; }; } | |
10091 | fi | |
10092 | fi | |
10093 | ||
10094 | ||
10095 | if test x$ac_cv_header_security_pam_misc_h = xyes; then | |
10096 | HAVE_PAM_TRUE= | |
10097 | HAVE_PAM_FALSE='#' | |
10098 | else | |
10099 | HAVE_PAM_TRUE='#' | |
10100 | HAVE_PAM_FALSE= | |
10101 | fi | |
10102 | ||
10103 | ||
10104 | ||
10105 | # Check whether --with-selinux or --without-selinux was given. | |
10106 | if test "${with_selinux+set}" = set; then | |
10107 | withval="$with_selinux" | |
10108 | with_selinux=$withval | |
10109 | else | |
10110 | with_selinux=not_checked | |
10111 | ||
10112 | fi; | |
10113 | ||
10114 | if test x$enable_login_utils = xyes && test x$with_selinux != xno; then | |
10115 | ||
10116 | echo "$as_me:$LINENO: checking for getprevcon in -lselinux" >&5 | |
10117 | echo $ECHO_N "checking for getprevcon in -lselinux... $ECHO_C" >&6 | |
10118 | if test "${ac_cv_lib_selinux_getprevcon+set}" = set; then | |
10119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10120 | else | |
10121 | ac_check_lib_save_LIBS=$LIBS | |
10122 | LIBS="-lselinux $LIBS" | |
10123 | cat >conftest.$ac_ext <<_ACEOF | |
10124 | /* confdefs.h. */ | |
10125 | _ACEOF | |
10126 | cat confdefs.h >>conftest.$ac_ext | |
10127 | cat >>conftest.$ac_ext <<_ACEOF | |
10128 | /* end confdefs.h. */ | |
10129 | ||
10130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10131 | #ifdef __cplusplus | |
10132 | extern "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. */ | |
10136 | char getprevcon (); | |
10137 | int | |
10138 | main () | |
10139 | { | |
10140 | getprevcon (); | |
10141 | ; | |
10142 | return 0; | |
10143 | } | |
10144 | _ACEOF | |
10145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10146 | if { (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 | |
10167 | else | |
10168 | echo "$as_me: failed program was:" >&5 | |
10169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10170 | ||
10171 | ac_cv_lib_selinux_getprevcon=no | |
10172 | fi | |
10173 | rm -f conftest.err conftest.$ac_objext \ | |
10174 | conftest$ac_exeext conftest.$ac_ext | |
10175 | LIBS=$ac_check_lib_save_LIBS | |
10176 | fi | |
10177 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getprevcon" >&5 | |
10178 | echo "${ECHO_T}$ac_cv_lib_selinux_getprevcon" >&6 | |
10179 | if 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 | ||
10186 | fi | |
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 | |
10190 | echo "$as_me: error: SELinux selected but libselinux not found" >&2;} | |
10191 | { (exit 1); exit 1; }; } | |
10192 | fi | |
10193 | fi | |
10194 | ||
10195 | ||
10196 | if test x$ac_cv_lib_selinux_getprevcon = xyes; then | |
10197 | HAVE_SELINUX_TRUE= | |
10198 | HAVE_SELINUX_FALSE='#' | |
10199 | else | |
10200 | HAVE_SELINUX_TRUE='#' | |
10201 | HAVE_SELINUX_FALSE= | |
10202 | fi | |
10203 | ||
10204 | ||
10205 | ||
10206 | ||
48d7b13a KZ |
10207 | # Check whether --enable-schedutils or --disable-schedutils was given. |
10208 | if test "${enable_schedutils+set}" = set; then | |
10209 | enableval="$enable_schedutils" | |
baf39af1 | 10210 | enable_schedutils=$enableval |
48d7b13a | 10211 | else |
baf39af1 | 10212 | enable_schedutils=yes |
48d7b13a KZ |
10213 | |
10214 | fi; | |
10215 | ||
10216 | ||
baf39af1 | 10217 | if test x$enable_schedutils = xyes; then |
48d7b13a KZ |
10218 | BUILD_SCHEDUTILS_TRUE= |
10219 | BUILD_SCHEDUTILS_FALSE='#' | |
10220 | else | |
10221 | BUILD_SCHEDUTILS_TRUE='#' | |
10222 | BUILD_SCHEDUTILS_FALSE= | |
10223 | fi | |
10224 | ||
10225 | ||
10226 | ||
10227 | # Check whether --enable-wall or --disable-wall was given. | |
10228 | if test "${enable_wall+set}" = set; then | |
10229 | enableval="$enable_wall" | |
baf39af1 | 10230 | enable_wall=$enableval |
48d7b13a | 10231 | else |
baf39af1 | 10232 | enable_wall=yes |
48d7b13a KZ |
10233 | |
10234 | fi; | |
10235 | ||
10236 | ||
baf39af1 | 10237 | if test x$enable_wall = xyes; then |
48d7b13a KZ |
10238 | BUILD_WALL_TRUE= |
10239 | BUILD_WALL_FALSE='#' | |
10240 | else | |
10241 | BUILD_WALL_TRUE='#' | |
10242 | BUILD_WALL_FALSE= | |
10243 | fi | |
10244 | ||
10245 | ||
10246 | ||
10247 | # Check whether --enable-write or --disable-write was given. | |
10248 | if test "${enable_write+set}" = set; then | |
10249 | enableval="$enable_write" | |
baf39af1 | 10250 | enable_write=$enableval |
48d7b13a | 10251 | else |
baf39af1 | 10252 | enable_write=no |
48d7b13a KZ |
10253 | |
10254 | fi; | |
10255 | ||
10256 | ||
baf39af1 | 10257 | if test x$enable_write = xyes; then |
48d7b13a KZ |
10258 | BUILD_WRITE_TRUE= |
10259 | BUILD_WRITE_FALSE='#' | |
10260 | else | |
10261 | BUILD_WRITE_TRUE='#' | |
10262 | BUILD_WRITE_FALSE= | |
10263 | fi | |
10264 | ||
10265 | ||
10266 | ||
10267 | # Check whether --enable-chsh-only-listed or --disable-chsh-only-listed was given. | |
10268 | if test "${enable_chsh_only_listed+set}" = set; then | |
10269 | enableval="$enable_chsh_only_listed" | |
baf39af1 | 10270 | enable_login_chsh_only_listed=$enableval |
48d7b13a | 10271 | else |
baf39af1 | 10272 | enable_chsh_only_listed=yes |
48d7b13a KZ |
10273 | |
10274 | fi; | |
10275 | ||
baf39af1 | 10276 | if test x$enable_chsh_only_listed = xyes; then |
48d7b13a KZ |
10277 | |
10278 | cat >>confdefs.h <<\_ACEOF | |
10279 | #define ONLY_LISTED_SHELLS 1 | |
10280 | _ACEOF | |
10281 | ||
10282 | fi | |
10283 | ||
10284 | ||
10285 | # Check whether --enable-login-chown-vcs or --disable-login-chown-vcs was given. | |
10286 | if test "${enable_login_chown_vcs+set}" = set; then | |
10287 | enableval="$enable_login_chown_vcs" | |
baf39af1 | 10288 | enable_login_chown_vcs=$enableval |
48d7b13a | 10289 | else |
baf39af1 | 10290 | enable_login_chown_vcs=no |
48d7b13a KZ |
10291 | |
10292 | fi; | |
10293 | ||
baf39af1 | 10294 | if test x$enable_login_chown_vcs = xyes; then |
48d7b13a KZ |
10295 | |
10296 | cat >>confdefs.h <<\_ACEOF | |
10297 | #define LOGIN_CHOWN_VCS 1 | |
10298 | _ACEOF | |
10299 | ||
10300 | fi | |
10301 | ||
10302 | ||
10303 | # Check whether --enable-login-stat-mail or --disable-login-stat-mail was given. | |
10304 | if test "${enable_login_stat_mail+set}" = set; then | |
10305 | enableval="$enable_login_stat_mail" | |
baf39af1 | 10306 | enable_login_stat_mail=$enableval |
48d7b13a | 10307 | else |
baf39af1 | 10308 | enable_login_stat_mail=no |
48d7b13a KZ |
10309 | |
10310 | fi; | |
10311 | ||
baf39af1 | 10312 | if test x$enable_login_stat_mail = xyes; then |
48d7b13a KZ |
10313 | |
10314 | cat >>confdefs.h <<\_ACEOF | |
10315 | #define LOGIN_STAT_MAIL 1 | |
10316 | _ACEOF | |
10317 | ||
10318 | fi | |
10319 | ||
10320 | ||
10321 | # Check whether --enable-pg-bell or --disable-pg-bell was given. | |
10322 | if test "${enable_pg_bell+set}" = set; then | |
10323 | enableval="$enable_pg_bell" | |
baf39af1 | 10324 | enable_pg_bell=$enableval |
48d7b13a | 10325 | else |
baf39af1 | 10326 | enable_pg_bell=yes |
48d7b13a KZ |
10327 | |
10328 | fi; | |
10329 | ||
baf39af1 | 10330 | if test x$enable_pg_bell = xyes; then |
48d7b13a KZ |
10331 | |
10332 | cat >>confdefs.h <<\_ACEOF | |
10333 | #define PG_BELL 1 | |
10334 | _ACEOF | |
10335 | ||
10336 | fi | |
10337 | ||
10338 | ||
10339 | # Check whether --enable-require-password or --disable-require-password was given. | |
10340 | if test "${enable_require_password+set}" = set; then | |
10341 | enableval="$enable_require_password" | |
baf39af1 | 10342 | enable_require_password=$enableval |
48d7b13a | 10343 | else |
baf39af1 | 10344 | enable_require_password=yes |
48d7b13a KZ |
10345 | |
10346 | fi; | |
10347 | ||
baf39af1 | 10348 | if test x$enable_require_password = xyes; then |
48d7b13a KZ |
10349 | |
10350 | cat >>confdefs.h <<\_ACEOF | |
10351 | #define REQUIRE_PASSWORD 1 | |
10352 | _ACEOF | |
10353 | ||
10354 | fi | |
10355 | ||
10356 | ||
10357 | # Check whether --enable-use-tty-group or --disable-use-tty-group was given. | |
10358 | if test "${enable_use_tty_group+set}" = set; then | |
10359 | enableval="$enable_use_tty_group" | |
baf39af1 | 10360 | enable_use_tty_group=$enableval |
48d7b13a | 10361 | else |
baf39af1 | 10362 | enable_use_tty_group=yes |
48d7b13a KZ |
10363 | |
10364 | fi; | |
10365 | ||
10366 | ||
baf39af1 | 10367 | if test x$enable_use_tty_group = xyes; then |
48d7b13a KZ |
10368 | USE_TTY_GROUP_TRUE= |
10369 | USE_TTY_GROUP_FALSE='#' | |
10370 | else | |
10371 | USE_TTY_GROUP_TRUE='#' | |
10372 | USE_TTY_GROUP_FALSE= | |
10373 | fi | |
10374 | ||
10375 | ||
baf39af1 | 10376 | if test x$enable_use_tty_group = xyes; then |
48d7b13a KZ |
10377 | |
10378 | cat >>confdefs.h <<\_ACEOF | |
10379 | #define USE_TTY_GROUP 1 | |
10380 | _ACEOF | |
10381 | ||
10382 | fi | |
10383 | ||
10384 | ||
9cb68977 | 10385 | LIBS="" |
48d7b13a | 10386 | |
baf39af1 | 10387 | CPPFLAGS="-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 | ||
10396 | cat >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 | |
10441 | if 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 | |
10448 | fi | |
10449 | rm -f confcache | |
10450 | ||
10451 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10452 | # Let make expand exec_prefix. | |
10453 | test "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). | |
10459 | if test "x$srcdir" = x.; then | |
10460 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10461 | s/:*\$(srcdir):*/:/; | |
10462 | s/:*\${srcdir}:*/:/; | |
10463 | s/:*@srcdir@:*/:/; | |
10464 | s/^\([^=]*=[ ]*\):*/\1/; | |
10465 | s/:*$//; | |
10466 | s/^[^=]*=[ ]*$//; | |
10467 | }' | |
10468 | fi | |
10469 | ||
10470 | DEFS=-DHAVE_CONFIG_H | |
10471 | ||
10472 | ac_libobjs= | |
10473 | ac_ltlibobjs= | |
10474 | for 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' | |
10481 | done | |
10482 | LIBOBJS=$ac_libobjs | |
10483 | ||
10484 | LTLIBOBJS=$ac_ltlibobjs | |
10485 | ||
10486 | ||
10487 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10488 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
10489 | Usually this means the macro was only invoked conditionally." >&5 | |
10490 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
10491 | Usually this means the macro was only invoked conditionally." >&2;} | |
10492 | { (exit 1); exit 1; }; } | |
10493 | fi | |
10494 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10495 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10496 | Usually this means the macro was only invoked conditionally." >&5 | |
10497 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10498 | Usually this means the macro was only invoked conditionally." >&2;} | |
10499 | { (exit 1); exit 1; }; } | |
10500 | fi | |
48d7b13a KZ |
10501 | if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then |
10502 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined. | |
10503 | Usually this means the macro was only invoked conditionally." >&5 | |
10504 | echo "$as_me: error: conditional \"HAVE_RAW\" was never defined. | |
10505 | Usually this means the macro was only invoked conditionally." >&2;} | |
10506 | { (exit 1); exit 1; }; } | |
10507 | fi | |
48d7b13a KZ |
10508 | if test -z "${HAVE_UUID_TRUE}" && test -z "${HAVE_UUID_FALSE}"; then |
10509 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_UUID\" was never defined. | |
10510 | Usually this means the macro was only invoked conditionally." >&5 | |
10511 | echo "$as_me: error: conditional \"HAVE_UUID\" was never defined. | |
10512 | Usually this means the macro was only invoked conditionally." >&2;} | |
10513 | { (exit 1); exit 1; }; } | |
10514 | fi | |
10515 | if test -z "${HAVE_LIBUTIL_TRUE}" && test -z "${HAVE_LIBUTIL_FALSE}"; then | |
10516 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBUTIL\" was never defined. | |
10517 | Usually this means the macro was only invoked conditionally." >&5 | |
10518 | echo "$as_me: error: conditional \"HAVE_LIBUTIL\" was never defined. | |
10519 | Usually this means the macro was only invoked conditionally." >&2;} | |
10520 | { (exit 1); exit 1; }; } | |
10521 | fi | |
10522 | if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then | |
10523 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_TERMCAP\" was never defined. | |
10524 | Usually this means the macro was only invoked conditionally." >&5 | |
10525 | echo "$as_me: error: conditional \"HAVE_TERMCAP\" was never defined. | |
10526 | Usually this means the macro was only invoked conditionally." >&2;} | |
10527 | { (exit 1); exit 1; }; } | |
10528 | fi | |
48d7b13a KZ |
10529 | if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then |
10530 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_BLKID\" was never defined. | |
10531 | Usually this means the macro was only invoked conditionally." >&5 | |
10532 | echo "$as_me: error: conditional \"HAVE_BLKID\" was never defined. | |
10533 | Usually this means the macro was only invoked conditionally." >&2;} | |
10534 | { (exit 1); exit 1; }; } | |
10535 | fi | |
48d7b13a KZ |
10536 | if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then |
10537 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined. | |
10538 | Usually this means the macro was only invoked conditionally." >&5 | |
10539 | echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined. | |
10540 | Usually this means the macro was only invoked conditionally." >&2;} | |
10541 | { (exit 1); exit 1; }; } | |
10542 | fi | |
10543 | if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then | |
10544 | { { echo "$as_me:$LINENO: error: conditional \"USE_SLANG\" was never defined. | |
10545 | Usually this means the macro was only invoked conditionally." >&5 | |
10546 | echo "$as_me: error: conditional \"USE_SLANG\" was never defined. | |
10547 | Usually this means the macro was only invoked conditionally." >&2;} | |
10548 | { (exit 1); exit 1; }; } | |
10549 | fi | |
10550 | if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then | |
10551 | { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBCRYPT\" was never defined. | |
10552 | Usually this means the macro was only invoked conditionally." >&5 | |
10553 | echo "$as_me: error: conditional \"NEED_LIBCRYPT\" was never defined. | |
10554 | Usually this means the macro was only invoked conditionally." >&2;} | |
10555 | { (exit 1); exit 1; }; } | |
10556 | fi | |
10557 | if 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. | |
10559 | Usually this means the macro was only invoked conditionally." >&5 | |
10560 | echo "$as_me: error: conditional \"HAVE_PIVOT_ROOT\" was never defined. | |
10561 | Usually this means the macro was only invoked conditionally." >&2;} | |
10562 | { (exit 1); exit 1; }; } | |
10563 | fi | |
10564 | if test -z "${INTEL_TRUE}" && test -z "${INTEL_FALSE}"; then | |
10565 | { { echo "$as_me:$LINENO: error: conditional \"INTEL\" was never defined. | |
10566 | Usually this means the macro was only invoked conditionally." >&5 | |
10567 | echo "$as_me: error: conditional \"INTEL\" was never defined. | |
10568 | Usually this means the macro was only invoked conditionally." >&2;} | |
10569 | { (exit 1); exit 1; }; } | |
10570 | fi | |
ca3ea756 KZ |
10571 | if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then |
10572 | { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined. | |
10573 | Usually this means the macro was only invoked conditionally." >&5 | |
10574 | echo "$as_me: error: conditional \"M68K\" was never defined. | |
10575 | Usually this means the macro was only invoked conditionally." >&2;} | |
10576 | { (exit 1); exit 1; }; } | |
10577 | fi | |
48d7b13a KZ |
10578 | if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then |
10579 | { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined. | |
10580 | Usually this means the macro was only invoked conditionally." >&5 | |
10581 | echo "$as_me: error: conditional \"SPARC\" was never defined. | |
10582 | Usually this means the macro was only invoked conditionally." >&2;} | |
10583 | { (exit 1); exit 1; }; } | |
10584 | fi | |
10585 | if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then | |
10586 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_AGETTY\" was never defined. | |
10587 | Usually this means the macro was only invoked conditionally." >&5 | |
10588 | echo "$as_me: error: conditional \"BUILD_AGETTY\" was never defined. | |
10589 | Usually this means the macro was only invoked conditionally." >&2;} | |
10590 | { (exit 1); exit 1; }; } | |
10591 | fi | |
9cb68977 KZ |
10592 | if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then |
10593 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRAMFS\" was never defined. | |
10594 | Usually this means the macro was only invoked conditionally." >&5 | |
10595 | echo "$as_me: error: conditional \"BUILD_CRAMFS\" was never defined. | |
10596 | Usually this means the macro was only invoked conditionally." >&2;} | |
10597 | { (exit 1); exit 1; }; } | |
10598 | fi | |
48d7b13a KZ |
10599 | if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then |
10600 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_ELVTUNE\" was never defined. | |
10601 | Usually this means the macro was only invoked conditionally." >&5 | |
10602 | echo "$as_me: error: conditional \"BUILD_ELVTUNE\" was never defined. | |
10603 | Usually this means the macro was only invoked conditionally." >&2;} | |
10604 | { (exit 1); exit 1; }; } | |
10605 | fi | |
10606 | if test -z "${BUILD_INIT_TRUE}" && test -z "${BUILD_INIT_FALSE}"; then | |
10607 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_INIT\" was never defined. | |
10608 | Usually this means the macro was only invoked conditionally." >&5 | |
10609 | echo "$as_me: error: conditional \"BUILD_INIT\" was never defined. | |
10610 | Usually this means the macro was only invoked conditionally." >&2;} | |
10611 | { (exit 1); exit 1; }; } | |
10612 | fi | |
10613 | if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then | |
10614 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_KILL\" was never defined. | |
10615 | Usually this means the macro was only invoked conditionally." >&5 | |
10616 | echo "$as_me: error: conditional \"BUILD_KILL\" was never defined. | |
10617 | Usually this means the macro was only invoked conditionally." >&2;} | |
10618 | { (exit 1); exit 1; }; } | |
10619 | fi | |
10620 | if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then | |
10621 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_LAST\" was never defined. | |
10622 | Usually this means the macro was only invoked conditionally." >&5 | |
10623 | echo "$as_me: error: conditional \"BUILD_LAST\" was never defined. | |
10624 | Usually this means the macro was only invoked conditionally." >&2;} | |
10625 | { (exit 1); exit 1; }; } | |
10626 | fi | |
10627 | if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then | |
10628 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_MESG\" was never defined. | |
10629 | Usually this means the macro was only invoked conditionally." >&5 | |
10630 | echo "$as_me: error: conditional \"BUILD_MESG\" was never defined. | |
10631 | Usually this means the macro was only invoked conditionally." >&2;} | |
10632 | { (exit 1); exit 1; }; } | |
10633 | fi | |
10634 | if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then | |
10635 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_PARTX\" was never defined. | |
10636 | Usually this means the macro was only invoked conditionally." >&5 | |
10637 | echo "$as_me: error: conditional \"BUILD_PARTX\" was never defined. | |
10638 | Usually this means the macro was only invoked conditionally." >&2;} | |
10639 | { (exit 1); exit 1; }; } | |
10640 | fi | |
10641 | if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then | |
10642 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_RAW\" was never defined. | |
10643 | Usually this means the macro was only invoked conditionally." >&5 | |
10644 | echo "$as_me: error: conditional \"BUILD_RAW\" was never defined. | |
10645 | Usually this means the macro was only invoked conditionally." >&2;} | |
10646 | { (exit 1); exit 1; }; } | |
10647 | fi | |
10648 | if test -z "${BUILD_RDEV_TRUE}" && test -z "${BUILD_RDEV_FALSE}"; then | |
10649 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_RDEV\" was never defined. | |
10650 | Usually this means the macro was only invoked conditionally." >&5 | |
10651 | echo "$as_me: error: conditional \"BUILD_RDEV\" was never defined. | |
10652 | Usually this means the macro was only invoked conditionally." >&2;} | |
10653 | { (exit 1); exit 1; }; } | |
10654 | fi | |
10655 | if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then | |
10656 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_RENAME\" was never defined. | |
10657 | Usually this means the macro was only invoked conditionally." >&5 | |
10658 | echo "$as_me: error: conditional \"BUILD_RENAME\" was never defined. | |
10659 | Usually this means the macro was only invoked conditionally." >&2;} | |
10660 | { (exit 1); exit 1; }; } | |
10661 | fi | |
10662 | if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then | |
10663 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_RESET\" was never defined. | |
10664 | Usually this means the macro was only invoked conditionally." >&5 | |
10665 | echo "$as_me: error: conditional \"BUILD_RESET\" was never defined. | |
10666 | Usually this means the macro was only invoked conditionally." >&2;} | |
10667 | { (exit 1); exit 1; }; } | |
10668 | fi | |
10669 | if 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. | |
10671 | Usually this means the macro was only invoked conditionally." >&5 | |
10672 | echo "$as_me: error: conditional \"BUILD_LOGIN_UTILS\" was never defined. | |
10673 | Usually this means the macro was only invoked conditionally." >&2;} | |
10674 | { (exit 1); exit 1; }; } | |
10675 | fi | |
9cb68977 KZ |
10676 | if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then |
10677 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined. | |
10678 | Usually this means the macro was only invoked conditionally." >&5 | |
10679 | echo "$as_me: error: conditional \"HAVE_PAM\" was never defined. | |
10680 | Usually this means the macro was only invoked conditionally." >&2;} | |
10681 | { (exit 1); exit 1; }; } | |
10682 | fi | |
10683 | if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then | |
10684 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined. | |
10685 | Usually this means the macro was only invoked conditionally." >&5 | |
10686 | echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined. | |
10687 | Usually this means the macro was only invoked conditionally." >&2;} | |
10688 | { (exit 1); exit 1; }; } | |
10689 | fi | |
48d7b13a KZ |
10690 | if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then |
10691 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_SCHEDUTILS\" was never defined. | |
10692 | Usually this means the macro was only invoked conditionally." >&5 | |
10693 | echo "$as_me: error: conditional \"BUILD_SCHEDUTILS\" was never defined. | |
10694 | Usually this means the macro was only invoked conditionally." >&2;} | |
10695 | { (exit 1); exit 1; }; } | |
10696 | fi | |
10697 | if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then | |
10698 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_WALL\" was never defined. | |
10699 | Usually this means the macro was only invoked conditionally." >&5 | |
10700 | echo "$as_me: error: conditional \"BUILD_WALL\" was never defined. | |
10701 | Usually this means the macro was only invoked conditionally." >&2;} | |
10702 | { (exit 1); exit 1; }; } | |
10703 | fi | |
10704 | if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then | |
10705 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_WRITE\" was never defined. | |
10706 | Usually this means the macro was only invoked conditionally." >&5 | |
10707 | echo "$as_me: error: conditional \"BUILD_WRITE\" was never defined. | |
10708 | Usually this means the macro was only invoked conditionally." >&2;} | |
10709 | { (exit 1); exit 1; }; } | |
10710 | fi | |
10711 | if 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. | |
10713 | Usually this means the macro was only invoked conditionally." >&5 | |
10714 | echo "$as_me: error: conditional \"USE_TTY_GROUP\" was never defined. | |
10715 | Usually this means the macro was only invoked conditionally." >&2;} | |
10716 | { (exit 1); exit 1; }; } | |
10717 | fi | |
eb63b9b8 | 10718 | |
48d7b13a KZ |
10719 | : ${CONFIG_STATUS=./config.status} |
10720 | ac_clean_files_save=$ac_clean_files | |
10721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10722 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10723 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10724 | cat >$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 |
10731 | debug=false |
10732 | ac_cs_recheck=false | |
10733 | ac_cs_silent=false | |
10734 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10735 | _ACEOF | |
66ee8158 | 10736 | |
48d7b13a KZ |
10737 | cat >>$CONFIG_STATUS <<\_ACEOF |
10738 | ## --------------------- ## | |
10739 | ## M4sh Initialization. ## | |
10740 | ## --------------------- ## | |
7eda085c | 10741 | |
48d7b13a KZ |
10742 | # Be Bourne compatible |
10743 | if 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+"$@"}'='"$@"' | |
10749 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
10750 | set -o posix | |
10751 | fi | |
10752 | DUALCASE=1; export DUALCASE # for MKS sh | |
7eda085c | 10753 | |
48d7b13a KZ |
10754 | # Support unset when possible. |
10755 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10756 | as_unset=unset | |
b22550fa | 10757 | else |
48d7b13a | 10758 | as_unset=false |
e8f26419 | 10759 | fi |
66ee8158 | 10760 | |
66ee8158 | 10761 | |
48d7b13a KZ |
10762 | # Work around bugs in pre-3.0 UWIN ksh. |
10763 | $as_unset ENV MAIL MAILPATH | |
10764 | PS1='$ ' | |
10765 | PS2='> ' | |
10766 | PS4='+ ' | |
66ee8158 | 10767 | |
48d7b13a KZ |
10768 | # NLS nuisances. |
10769 | for 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 | |
10773 | do | |
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 | |
10779 | done | |
66ee8158 | 10780 | |
48d7b13a KZ |
10781 | # Required to use basename. |
10782 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10783 | as_expr=expr | |
10784 | else | |
10785 | as_expr=false | |
66ee8158 KZ |
10786 | fi |
10787 | ||
48d7b13a KZ |
10788 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
10789 | as_basename=basename | |
10790 | else | |
10791 | as_basename=false | |
66ee8158 KZ |
10792 | fi |
10793 | ||
66ee8158 | 10794 | |
48d7b13a KZ |
10795 | # Name of the executable. |
10796 | as_me=`$as_basename "$0" || | |
10797 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10798 | X"$0" : 'X\(//\)$' \| \ | |
10799 | X"$0" : 'X\(/\)$' \| \ | |
10800 | . : '\(.\)' 2>/dev/null || | |
10801 | echo 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. | |
10810 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10811 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10812 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10813 | as_cr_digits='0123456789' | |
10814 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
1d4ad1de | 10815 | |
48d7b13a KZ |
10816 | # The user is always right. |
10817 | if 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 |
10827 | fi |
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 | |
10840 | for as_dir in $PATH | |
10841 | do | |
10842 | IFS=$as_save_IFS | |
10843 | test -z "$as_dir" && as_dir=. | |
10844 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10845 | done | |
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 | |
10856 | echo "$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 | |
10862 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
10863 | do | |
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 | |
10883 | done | |
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 | |
10907 | echo "$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 |
10919 | case `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= ;; | |
10924 | esac | |
7eda085c | 10925 | |
48d7b13a KZ |
10926 | if expr a : '\(a\)' >/dev/null 2>&1; then |
10927 | as_expr=expr | |
66ee8158 | 10928 | else |
48d7b13a | 10929 | as_expr=false |
66ee8158 | 10930 | fi |
66ee8158 | 10931 | |
48d7b13a KZ |
10932 | rm -f conf$$ conf$$.exe conf$$.file |
10933 | echo >conf$$.file | |
10934 | if 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 | |
10943 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10944 | as_ln_s=ln | |
66ee8158 | 10945 | else |
48d7b13a | 10946 | as_ln_s='cp -p' |
66ee8158 | 10947 | fi |
48d7b13a | 10948 | rm -f conf$$ conf$$.exe conf$$.file |
66ee8158 | 10949 | |
48d7b13a KZ |
10950 | if mkdir -p . 2>/dev/null; then |
10951 | as_mkdir_p=: | |
c07ebfa1 | 10952 | else |
48d7b13a KZ |
10953 | test -d ./-p && rmdir ./-p |
10954 | as_mkdir_p=false | |
c07ebfa1 | 10955 | fi |
c07ebfa1 | 10956 | |
48d7b13a KZ |
10957 | as_executable_p="test -f" |
10958 | ||
10959 | # Sed expression to map a string onto a valid CPP name. | |
10960 | as_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. | |
10963 | as_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. | |
10968 | as_nl=' | |
10969 | ' | |
10970 | IFS=" $as_nl" | |
10971 | ||
10972 | # CDPATH. | |
10973 | $as_unset CDPATH | |
10974 | ||
10975 | exec 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. | |
10980 | exec 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 | |
10987 | cat >&5 <<_CSEOF | |
10988 | ||
ca3ea756 | 10989 | This file was extended by util-linux $as_me 2.13-pre4, which was |
48d7b13a KZ |
10990 | generated 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 | |
10999 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11000 | echo >&5 | |
11001 | _ACEOF | |
11002 | ||
11003 | # Files that config.status was made for. | |
11004 | if test -n "$ac_config_files"; then | |
11005 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
63cccae4 | 11006 | fi |
63cccae4 | 11007 | |
48d7b13a KZ |
11008 | if test -n "$ac_config_headers"; then |
11009 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
63cccae4 | 11010 | fi |
66ee8158 | 11011 | |
48d7b13a KZ |
11012 | if test -n "$ac_config_links"; then |
11013 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7eda085c | 11014 | fi |
7eda085c | 11015 | |
48d7b13a KZ |
11016 | if test -n "$ac_config_commands"; then |
11017 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7eda085c | 11018 | fi |
7eda085c | 11019 | |
48d7b13a KZ |
11020 | cat >>$CONFIG_STATUS <<\_ACEOF |
11021 | ||
11022 | ac_cs_usage="\ | |
11023 | \`$as_me' instantiates files from templates according to the | |
11024 | current configuration. | |
11025 | ||
11026 | Usage: $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 | ||
11038 | Configuration files: | |
11039 | $config_files | |
11040 | ||
11041 | Configuration headers: | |
11042 | $config_headers | |
11043 | ||
11044 | Configuration commands: | |
11045 | $config_commands | |
11046 | ||
11047 | Report bugs to <bug-autoconf@gnu.org>." | |
11048 | _ACEOF | |
11049 | ||
11050 | cat >>$CONFIG_STATUS <<_ACEOF | |
11051 | ac_cs_version="\\ | |
ca3ea756 | 11052 | util-linux config.status 2.13-pre4 |
48d7b13a KZ |
11053 | configured by $0, generated by GNU Autoconf 2.59, |
11054 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
11055 | ||
11056 | Copyright (C) 2003 Free Software Foundation, Inc. | |
11057 | This config.status script is free software; the Free Software Foundation | |
11058 | gives unlimited permission to copy, distribute and modify it." | |
11059 | srcdir=$srcdir | |
11060 | INSTALL="$INSTALL" | |
11061 | _ACEOF | |
11062 | ||
11063 | cat >>$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. | |
11066 | ac_need_defaults=: | |
11067 | while test $# != 0 | |
11068 | do | |
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 | |
11089 | cat >>$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 | |
11097 | Try \`$0 --help' for more information." >&5 | |
11098 | echo "$as_me: error: ambiguous option: $1 | |
11099 | Try \`$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 | |
11119 | Try \`$0 --help' for more information." >&5 | |
11120 | echo "$as_me: error: unrecognized option: $1 | |
11121 | Try \`$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 | |
11128 | done | |
11129 | ||
11130 | ac_configure_extra_args= | |
11131 | ||
11132 | if $ac_cs_silent; then | |
11133 | exec 6>/dev/null | |
11134 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7eda085c KZ |
11135 | fi |
11136 | ||
48d7b13a KZ |
11137 | _ACEOF |
11138 | cat >>$CONFIG_STATUS <<_ACEOF | |
11139 | if \$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 | 11142 | fi |
7eda085c | 11143 | |
48d7b13a | 11144 | _ACEOF |
7eda085c | 11145 | |
48d7b13a | 11146 | cat >>$CONFIG_STATUS <<_ACEOF |
7eda085c | 11147 | # |
48d7b13a | 11148 | # INIT-COMMANDS section. |
ffc43748 | 11149 | # |
7eda085c | 11150 | |
48d7b13a KZ |
11151 | AMDEP_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 | ||
11164 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11165 | for ac_config_target in $ac_config_targets | |
11166 | do | |
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 | |
11187 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11188 | { (exit 1); exit 1; }; };; | |
11189 | esac | |
11190 | done | |
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. | |
11196 | if $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 | 11200 | fi |
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 | ||
11229 | cat >>$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 | |
11237 | if 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 | |
11241 | s,@SHELL@,$SHELL,;t t | |
11242 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11243 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11244 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11245 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11246 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11247 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11248 | s,@exec_prefix@,$exec_prefix,;t t | |
11249 | s,@prefix@,$prefix,;t t | |
11250 | s,@program_transform_name@,$program_transform_name,;t t | |
11251 | s,@bindir@,$bindir,;t t | |
11252 | s,@sbindir@,$sbindir,;t t | |
11253 | s,@libexecdir@,$libexecdir,;t t | |
11254 | s,@datadir@,$datadir,;t t | |
11255 | s,@sysconfdir@,$sysconfdir,;t t | |
11256 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11257 | s,@localstatedir@,$localstatedir,;t t | |
11258 | s,@libdir@,$libdir,;t t | |
11259 | s,@includedir@,$includedir,;t t | |
11260 | s,@oldincludedir@,$oldincludedir,;t t | |
11261 | s,@infodir@,$infodir,;t t | |
11262 | s,@mandir@,$mandir,;t t | |
11263 | s,@build_alias@,$build_alias,;t t | |
11264 | s,@host_alias@,$host_alias,;t t | |
11265 | s,@target_alias@,$target_alias,;t t | |
11266 | s,@DEFS@,$DEFS,;t t | |
11267 | s,@ECHO_C@,$ECHO_C,;t t | |
11268 | s,@ECHO_N@,$ECHO_N,;t t | |
11269 | s,@ECHO_T@,$ECHO_T,;t t | |
11270 | s,@LIBS@,$LIBS,;t t | |
11271 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11272 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11273 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11274 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
11275 | s,@PACKAGE@,$PACKAGE,;t t | |
11276 | s,@VERSION@,$VERSION,;t t | |
11277 | s,@ACLOCAL@,$ACLOCAL,;t t | |
11278 | s,@AUTOCONF@,$AUTOCONF,;t t | |
11279 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
11280 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
11281 | s,@MAKEINFO@,$MAKEINFO,;t t | |
11282 | s,@install_sh@,$install_sh,;t t | |
11283 | s,@STRIP@,$STRIP,;t t | |
11284 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
11285 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
11286 | s,@mkdir_p@,$mkdir_p,;t t | |
11287 | s,@AWK@,$AWK,;t t | |
11288 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11289 | s,@am__leading_dot@,$am__leading_dot,;t t | |
11290 | s,@AMTAR@,$AMTAR,;t t | |
11291 | s,@am__tar@,$am__tar,;t t | |
11292 | s,@am__untar@,$am__untar,;t t | |
baf39af1 KZ |
11293 | s,@RANLIB@,$RANLIB,;t t |
11294 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11295 | s,@PERL@,$PERL,;t t | |
48d7b13a KZ |
11296 | s,@CC@,$CC,;t t |
11297 | s,@CFLAGS@,$CFLAGS,;t t | |
11298 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11299 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11300 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11301 | s,@EXEEXT@,$EXEEXT,;t t | |
11302 | s,@OBJEXT@,$OBJEXT,;t t | |
11303 | s,@DEPDIR@,$DEPDIR,;t t | |
11304 | s,@am__include@,$am__include,;t t | |
11305 | s,@am__quote@,$am__quote,;t t | |
11306 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
11307 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
11308 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
11309 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
11310 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
11311 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
48d7b13a | 11312 | s,@CPP@,$CPP,;t t |
baf39af1 | 11313 | s,@EGREP@,$EGREP,;t t |
48d7b13a KZ |
11314 | s,@HAVE_RAW_TRUE@,$HAVE_RAW_TRUE,;t t |
11315 | s,@HAVE_RAW_FALSE@,$HAVE_RAW_FALSE,;t t | |
48d7b13a KZ |
11316 | s,@HAVE_UUID_TRUE@,$HAVE_UUID_TRUE,;t t |
11317 | s,@HAVE_UUID_FALSE@,$HAVE_UUID_FALSE,;t t | |
11318 | s,@HAVE_LIBUTIL_TRUE@,$HAVE_LIBUTIL_TRUE,;t t | |
11319 | s,@HAVE_LIBUTIL_FALSE@,$HAVE_LIBUTIL_FALSE,;t t | |
11320 | s,@HAVE_TERMCAP_TRUE@,$HAVE_TERMCAP_TRUE,;t t | |
11321 | s,@HAVE_TERMCAP_FALSE@,$HAVE_TERMCAP_FALSE,;t t | |
48d7b13a KZ |
11322 | s,@HAVE_BLKID_TRUE@,$HAVE_BLKID_TRUE,;t t |
11323 | s,@HAVE_BLKID_FALSE@,$HAVE_BLKID_FALSE,;t t | |
48d7b13a KZ |
11324 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
11325 | s,@USE_NLS@,$USE_NLS,;t t | |
11326 | s,@MSGFMT@,$MSGFMT,;t t | |
11327 | s,@GMSGFMT@,$GMSGFMT,;t t | |
11328 | s,@XGETTEXT@,$XGETTEXT,;t t | |
11329 | s,@MSGMERGE@,$MSGMERGE,;t t | |
baf39af1 KZ |
11330 | s,@build@,$build,;t t |
11331 | s,@build_cpu@,$build_cpu,;t t | |
11332 | s,@build_vendor@,$build_vendor,;t t | |
11333 | s,@build_os@,$build_os,;t t | |
11334 | s,@host@,$host,;t t | |
11335 | s,@host_cpu@,$host_cpu,;t t | |
11336 | s,@host_vendor@,$host_vendor,;t t | |
11337 | s,@host_os@,$host_os,;t t | |
48d7b13a KZ |
11338 | s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t |
11339 | s,@LIBICONV@,$LIBICONV,;t t | |
11340 | s,@LTLIBICONV@,$LTLIBICONV,;t t | |
11341 | s,@INTLLIBS@,$INTLLIBS,;t t | |
11342 | s,@LIBINTL@,$LIBINTL,;t t | |
11343 | s,@LTLIBINTL@,$LTLIBINTL,;t t | |
11344 | s,@POSUB@,$POSUB,;t t | |
11345 | s,@HAVE_NCURSES_TRUE@,$HAVE_NCURSES_TRUE,;t t | |
11346 | s,@HAVE_NCURSES_FALSE@,$HAVE_NCURSES_FALSE,;t t | |
11347 | s,@USE_SLANG_TRUE@,$USE_SLANG_TRUE,;t t | |
11348 | s,@USE_SLANG_FALSE@,$USE_SLANG_FALSE,;t t | |
11349 | s,@NEED_LIBCRYPT_TRUE@,$NEED_LIBCRYPT_TRUE,;t t | |
11350 | s,@NEED_LIBCRYPT_FALSE@,$NEED_LIBCRYPT_FALSE,;t t | |
11351 | s,@HAVE_PIVOT_ROOT_TRUE@,$HAVE_PIVOT_ROOT_TRUE,;t t | |
11352 | s,@HAVE_PIVOT_ROOT_FALSE@,$HAVE_PIVOT_ROOT_FALSE,;t t | |
11353 | s,@INTEL_TRUE@,$INTEL_TRUE,;t t | |
11354 | s,@INTEL_FALSE@,$INTEL_FALSE,;t t | |
ca3ea756 KZ |
11355 | s,@M68K_TRUE@,$M68K_TRUE,;t t |
11356 | s,@M68K_FALSE@,$M68K_FALSE,;t t | |
48d7b13a KZ |
11357 | s,@SPARC_TRUE@,$SPARC_TRUE,;t t |
11358 | s,@SPARC_FALSE@,$SPARC_FALSE,;t t | |
11359 | s,@BUILD_AGETTY_TRUE@,$BUILD_AGETTY_TRUE,;t t | |
11360 | s,@BUILD_AGETTY_FALSE@,$BUILD_AGETTY_FALSE,;t t | |
9cb68977 KZ |
11361 | s,@BUILD_CRAMFS_TRUE@,$BUILD_CRAMFS_TRUE,;t t |
11362 | s,@BUILD_CRAMFS_FALSE@,$BUILD_CRAMFS_FALSE,;t t | |
48d7b13a KZ |
11363 | s,@BUILD_ELVTUNE_TRUE@,$BUILD_ELVTUNE_TRUE,;t t |
11364 | s,@BUILD_ELVTUNE_FALSE@,$BUILD_ELVTUNE_FALSE,;t t | |
11365 | s,@BUILD_INIT_TRUE@,$BUILD_INIT_TRUE,;t t | |
11366 | s,@BUILD_INIT_FALSE@,$BUILD_INIT_FALSE,;t t | |
11367 | s,@BUILD_KILL_TRUE@,$BUILD_KILL_TRUE,;t t | |
11368 | s,@BUILD_KILL_FALSE@,$BUILD_KILL_FALSE,;t t | |
11369 | s,@BUILD_LAST_TRUE@,$BUILD_LAST_TRUE,;t t | |
11370 | s,@BUILD_LAST_FALSE@,$BUILD_LAST_FALSE,;t t | |
11371 | s,@BUILD_MESG_TRUE@,$BUILD_MESG_TRUE,;t t | |
11372 | s,@BUILD_MESG_FALSE@,$BUILD_MESG_FALSE,;t t | |
11373 | s,@BUILD_PARTX_TRUE@,$BUILD_PARTX_TRUE,;t t | |
11374 | s,@BUILD_PARTX_FALSE@,$BUILD_PARTX_FALSE,;t t | |
11375 | s,@BUILD_RAW_TRUE@,$BUILD_RAW_TRUE,;t t | |
11376 | s,@BUILD_RAW_FALSE@,$BUILD_RAW_FALSE,;t t | |
11377 | s,@BUILD_RDEV_TRUE@,$BUILD_RDEV_TRUE,;t t | |
11378 | s,@BUILD_RDEV_FALSE@,$BUILD_RDEV_FALSE,;t t | |
11379 | s,@BUILD_RENAME_TRUE@,$BUILD_RENAME_TRUE,;t t | |
11380 | s,@BUILD_RENAME_FALSE@,$BUILD_RENAME_FALSE,;t t | |
11381 | s,@BUILD_RESET_TRUE@,$BUILD_RESET_TRUE,;t t | |
11382 | s,@BUILD_RESET_FALSE@,$BUILD_RESET_FALSE,;t t | |
11383 | s,@BUILD_LOGIN_UTILS_TRUE@,$BUILD_LOGIN_UTILS_TRUE,;t t | |
11384 | s,@BUILD_LOGIN_UTILS_FALSE@,$BUILD_LOGIN_UTILS_FALSE,;t t | |
9cb68977 KZ |
11385 | s,@HAVE_PAM_TRUE@,$HAVE_PAM_TRUE,;t t |
11386 | s,@HAVE_PAM_FALSE@,$HAVE_PAM_FALSE,;t t | |
11387 | s,@HAVE_SELINUX_TRUE@,$HAVE_SELINUX_TRUE,;t t | |
11388 | s,@HAVE_SELINUX_FALSE@,$HAVE_SELINUX_FALSE,;t t | |
48d7b13a KZ |
11389 | s,@BUILD_SCHEDUTILS_TRUE@,$BUILD_SCHEDUTILS_TRUE,;t t |
11390 | s,@BUILD_SCHEDUTILS_FALSE@,$BUILD_SCHEDUTILS_FALSE,;t t | |
11391 | s,@BUILD_WALL_TRUE@,$BUILD_WALL_TRUE,;t t | |
11392 | s,@BUILD_WALL_FALSE@,$BUILD_WALL_FALSE,;t t | |
11393 | s,@BUILD_WRITE_TRUE@,$BUILD_WRITE_TRUE,;t t | |
11394 | s,@BUILD_WRITE_FALSE@,$BUILD_WRITE_FALSE,;t t | |
11395 | s,@USE_TTY_GROUP_TRUE@,$USE_TTY_GROUP_TRUE,;t t | |
11396 | s,@USE_TTY_GROUP_FALSE@,$USE_TTY_GROUP_FALSE,;t t | |
11397 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11398 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
11399 | CEOF | |
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 | |
11440 | fi # test -n "$CONFIG_FILES" | |
11441 | ||
11442 | _ACEOF | |
11443 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11444 | for 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 || | |
11463 | echo 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 || | |
11482 | echo 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 | |
11491 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11492 | { (exit 1); exit 1; }; }; } | |
11493 | ||
11494 | ac_builddir=. | |
11495 | ||
11496 | if 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 | 11500 | else |
48d7b13a | 11501 | ac_dir_suffix= ac_top_builddir= |
22853e4a | 11502 | fi |
48d7b13a KZ |
11503 | |
11504 | case $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 ;; | |
11518 | esac | |
11519 | ||
11520 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11521 | # the directories may not exist. | |
11522 | case `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;; | |
11530 | esac | |
11531 | case $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;; | |
11539 | esac | |
11540 | case $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;; | |
11548 | esac | |
11549 | case $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;; | |
11557 | esac | |
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 | |
11585 | echo "$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 | |
11598 | echo "$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 | |
11606 | echo "$as_me: creating $ac_file" >&6;} | |
11607 | rm -f "$ac_file" | |
11608 | fi | |
11609 | _ACEOF | |
11610 | cat >>$CONFIG_STATUS <<_ACEOF | |
11611 | sed "$ac_vpsub | |
11612 | $extrasub | |
11613 | _ACEOF | |
11614 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11615 | :t | |
11616 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11617 | s,@configure_input@,$configure_input,;t t | |
11618 | s,@srcdir@,$ac_srcdir,;t t | |
11619 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11620 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11621 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11622 | s,@builddir@,$ac_builddir,;t t | |
11623 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11624 | s,@top_builddir@,$ac_top_builddir,;t t | |
11625 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11626 | s,@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 | ||
11636 | done | |
11637 | _ACEOF | |
11638 | cat >>$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. |
11648 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
11649 | ac_dB='[ ].*$,\1#\2' | |
11650 | ac_dC=' ' | |
11651 | ac_dD=',;t' | |
11652 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
11653 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11654 | ac_uB='$,\1#\2define\3' | |
11655 | ac_uC=' ' | |
11656 | ac_uD=',;t' | |
22853e4a | 11657 | |
48d7b13a KZ |
11658 | for 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 | |
11671 | echo "$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 | |
11682 | echo "$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 | |
11696 | echo "$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. | |
11713 | rm -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'. | |
11720 | cat >confdef2sed.sed <<\_ACEOF | |
11721 | s/[\\&,]/\\&/g | |
11722 | s,[\\$`],\\&,g | |
11723 | t clear | |
11724 | : clear | |
11725 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
11726 | t end | |
11727 | s,^[ ]*#[ ]*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. | |
11733 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
11734 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
11735 | rm -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. | |
11740 | cat >>conftest.undefs <<\_ACEOF | |
11741 | s,^[ ]*#[ ]*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). | |
11746 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
11747 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
11748 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
11749 | echo ' :' >>$CONFIG_STATUS | |
11750 | rm -f conftest.tail | |
11751 | while grep . conftest.defines >/dev/null | |
11752 | do | |
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 | |
11769 | done | |
11770 | rm -f conftest.defines | |
11771 | echo ' fi # grep' >>$CONFIG_STATUS | |
11772 | echo >>$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). | |
11776 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
11777 | rm -f conftest.tail | |
11778 | while grep . conftest.undefs >/dev/null | |
11779 | do | |
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 | |
11796 | done | |
11797 | rm -f conftest.undefs | |
11798 | ||
11799 | cat >>$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 | |
11813 | echo "$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 || | |
11821 | echo 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 || | |
11840 | echo 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 | |
11849 | echo "$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 | |
11861 | for _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 | |
11868 | done | |
11869 | echo "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 || | |
11875 | echo 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 | |
11881 | done | |
11882 | _ACEOF | |
11883 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f0c8eda1 KZ |
11884 | |
11885 | # | |
48d7b13a | 11886 | # CONFIG_COMMANDS section. |
f0c8eda1 | 11887 | # |
48d7b13a KZ |
11888 | for 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 || | |
11897 | echo 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 || | |
11916 | echo 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 | |
11925 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11926 | { (exit 1); exit 1; }; }; } | |
11927 | ||
11928 | ac_builddir=. | |
11929 | ||
11930 | if 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 | 11934 | else |
48d7b13a | 11935 | ac_dir_suffix= ac_top_builddir= |
f0c8eda1 | 11936 | fi |
f0c8eda1 | 11937 | |
48d7b13a KZ |
11938 | case $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 ;; | |
11952 | esac | |
11953 | ||
11954 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11955 | # the directories may not exist. | |
11956 | case `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;; | |
11964 | esac | |
11965 | case $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;; | |
11973 | esac | |
11974 | case $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;; | |
11982 | esac | |
11983 | case $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;; | |
11991 | esac | |
11992 | ||
11993 | ||
11994 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
11995 | echo "$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 || | |
12013 | echo 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 || | |
12046 | echo 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 || | |
12065 | echo 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 | |
12074 | echo "$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 | |
12080 | done | |
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 | |
12195 | done | |
12196 | _ACEOF | |
12197 | ||
12198 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12199 | ||
12200 | { (exit 0); exit 0; } | |
12201 | _ACEOF | |
12202 | chmod +x $CONFIG_STATUS | |
12203 | ac_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. | |
12214 | if 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 | 12225 | fi |
48d7b13a | 12226 |