]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8a2fc586 | 3 | # Generated by GNU Autoconf 2.59. |
795ca3e5 | 4 | # |
8a2fc586 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
795ca3e5 AK |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
8a2fc586 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
23 | |
24 | # Support unset when possible. | |
8a2fc586 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
8a2fc586 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
795ca3e5 | 185 | |
ad6254c5 AK |
186 | |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
8a2fc586 | 221 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
795ca3e5 | 254 | ac_default_prefix=/usr/local |
ad6254c5 AK |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="lib/device/dev-cache.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
795ca3e5 | 312 | ac_default_prefix=/usr |
72b2cb61 | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS' |
ad6254c5 | 314 | ac_subst_files='' |
795ca3e5 AK |
315 | |
316 | # Initialize some variables set by options. | |
ad6254c5 AK |
317 | ac_init_help= |
318 | ac_init_version=false | |
795ca3e5 AK |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
ad6254c5 | 321 | cache_file=/dev/null |
795ca3e5 | 322 | exec_prefix=NONE |
795ca3e5 | 323 | no_create= |
795ca3e5 AK |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
795ca3e5 AK |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
ad6254c5 AK |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
795ca3e5 AK |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
795ca3e5 AK |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
795ca3e5 AK |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
ad6254c5 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
ad6254c5 | 368 | case $ac_option in |
795ca3e5 AK |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 373 | bindir=$ac_optarg ;; |
795ca3e5 AK |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 376 | ac_prev=build_alias ;; |
795ca3e5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 378 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
795ca3e5 AK |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
ad6254c5 | 394 | datadir=$ac_optarg ;; |
795ca3e5 AK |
395 | |
396 | -disable-* | --disable-*) | |
ad6254c5 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 398 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
795ca3e5 AK |
404 | |
405 | -enable-* | --enable-*) | |
ad6254c5 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 407 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
414 | *) ac_optarg=yes ;; |
415 | esac | |
ad6254c5 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
795ca3e5 AK |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 425 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
ad6254c5 AK |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
795ca3e5 AK |
437 | |
438 | -host | --host | --hos | --ho) | |
ad6254c5 | 439 | ac_prev=host_alias ;; |
795ca3e5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 441 | host_alias=$ac_optarg ;; |
795ca3e5 AK |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 448 | includedir=$ac_optarg ;; |
795ca3e5 AK |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 453 | infodir=$ac_optarg ;; |
795ca3e5 AK |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 458 | libdir=$ac_optarg ;; |
795ca3e5 AK |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 465 | libexecdir=$ac_optarg ;; |
795ca3e5 AK |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ad6254c5 | 474 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 479 | mandir=$ac_optarg ;; |
795ca3e5 AK |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 486 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 500 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 505 | prefix=$ac_optarg ;; |
795ca3e5 AK |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 512 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 519 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 536 | program_transform_name=$ac_optarg ;; |
795ca3e5 AK |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
ad6254c5 | 546 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
ad6254c5 | 557 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 562 | site=$ac_optarg ;; |
795ca3e5 AK |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 567 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 574 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 577 | ac_prev=target_alias ;; |
795ca3e5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 579 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
ad6254c5 AK |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
795ca3e5 AK |
586 | |
587 | -with-* | --with-*) | |
ad6254c5 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 589 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
795ca3e5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ad6254c5 AK |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
596 | *) ac_optarg=yes ;; |
597 | esac | |
ad6254c5 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
599 | |
600 | -without-* | --without-*) | |
ad6254c5 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 602 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
795ca3e5 AK |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 618 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 625 | x_libraries=$ac_optarg ;; |
795ca3e5 | 626 | |
ad6254c5 AK |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
630 | ;; |
631 | ||
ad6254c5 AK |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
795ca3e5 | 642 | *) |
ad6254c5 AK |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
ad6254c5 AK |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
795ca3e5 | 657 | fi |
795ca3e5 | 658 | |
ad6254c5 AK |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
666 | { (exit 1); exit 1; }; };; | |
667 | esac | |
668 | done | |
795ca3e5 | 669 | |
ad6254c5 AK |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
8a2fc586 | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
795ca3e5 | 673 | do |
ad6254c5 AK |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
678 | { (exit 1); exit 1; }; };; | |
795ca3e5 AK |
679 | esac |
680 | done | |
681 | ||
ad6254c5 AK |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
684 | # FIXME: To remove some day. | |
685 | build=$build_alias | |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
689 | # FIXME: To remove some day. | |
690 | if test "x$host_alias" != x; then | |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
8106cdd5 | 699 | |
ad6254c5 AK |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
702 | ||
703 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 704 | |
795ca3e5 AK |
705 | |
706 | # Find the source files, if location was not specified. | |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
ad6254c5 AK |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
712 | X"$0" : 'X\(//\)[^/]' \| \ |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
716 | echo X"$0" | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
795ca3e5 AK |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
ad6254c5 AK |
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
732 | { (exit 1); exit 1; }; } | |
795ca3e5 | 733 | else |
ad6254c5 AK |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
735 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
736 | fi |
737 | fi | |
ad6254c5 AK |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
774 | ||
775 | # | |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
781 | cat <<_ACEOF | |
782 | \`configure' configures this package to adapt to many kinds of systems. | |
783 | ||
784 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
785 | ||
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
788 | ||
789 | Defaults for the options are specified in brackets. | |
790 | ||
791 | Configuration: | |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
802 | _ACEOF | |
803 | ||
804 | cat <<_ACEOF | |
805 | Installation directories: | |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 807 | [$ac_default_prefix] |
ad6254c5 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 809 | [PREFIX] |
ad6254c5 AK |
810 | |
811 | By default, \`make install' will install all the files in | |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
815 | ||
816 | For better control, use the options below. | |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
831 | _ACEOF | |
832 | ||
833 | cat <<\_ACEOF | |
834 | ||
835 | System types: | |
836 | --build=BUILD configure for building on BUILD [guessed] | |
837 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
838 | --target=TARGET configure for building compilers for TARGET [HOST] | |
839 | _ACEOF | |
840 | fi | |
841 | ||
842 | if test -n "$ac_init_help"; then | |
843 | ||
844 | cat <<\_ACEOF | |
845 | ||
846 | Optional Features: | |
847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
849 | --enable-jobs=NUM Number of jobs to run simultaneously | |
850 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
851 | device-mapper is missing from the kernel | |
852 | --enable-static_link Use this to link the tools to their libraries | |
853 | statically. Default is dynamic linking | |
854 | --enable-readline Enable readline support | |
855 | --disable-selinux Disable selinux support | |
856 | --enable-debug Enable debugging | |
857 | --disable-devmapper Disable device-mapper interaction | |
858 | --disable-o_direct Disable O_DIRECT | |
859 | --enable-cmdlib Build shared command library | |
860 | --enable-fsadm Enable fsadm | |
15d91f5a | 861 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
862 | --enable-nls Enable Native Language Support |
863 | ||
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-user=USER Set the owner of installed files | |
868 | --with-group=GROUP Set the group owner of installed files | |
869 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
870 | TYPE=internal | |
871 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
872 | TYPE=internal | |
873 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
874 | TYPE=internal | |
875 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
876 | TYPE=internal | |
877 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
878 | TYPE=internal | |
5c7fc7c4 | 879 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 880 | TYPE=none |
ad6254c5 AK |
881 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
882 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
883 | --with-confdir=DIR Configuration files in DIR /etc | |
884 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
885 | ||
886 | Some influential environment variables: | |
887 | CC C compiler command | |
888 | CFLAGS C compiler flags | |
889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
890 | nonstandard directory <lib dir> | |
891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
892 | headers in a nonstandard directory <include dir> | |
893 | CPP C preprocessor | |
894 | ||
895 | Use these variables to override the choices made by `configure' or to help | |
896 | it to find libraries and programs with nonstandard names/locations. | |
897 | ||
898 | _ACEOF | |
899 | fi | |
900 | ||
901 | if test "$ac_init_help" = "recursive"; then | |
902 | # If there are subdirs, report their specific --help. | |
903 | ac_popdir=`pwd` | |
904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
905 | test -d $ac_dir || continue | |
906 | ac_builddir=. | |
907 | ||
908 | if test "$ac_dir" != .; then | |
909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
910 | # A "../" for each directory in $ac_dir_suffix. | |
911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
912 | else | |
913 | ac_dir_suffix= ac_top_builddir= | |
914 | fi | |
915 | ||
916 | case $srcdir in | |
917 | .) # No --srcdir option. We are building in place. | |
918 | ac_srcdir=. | |
919 | if test -z "$ac_top_builddir"; then | |
920 | ac_top_srcdir=. | |
921 | else | |
922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
923 | fi ;; | |
924 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
925 | ac_srcdir=$srcdir$ac_dir_suffix; | |
926 | ac_top_srcdir=$srcdir ;; | |
927 | *) # Relative path. | |
928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
930 | esac | |
8a2fc586 AK |
931 | |
932 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
933 | # the directories may not exist. | |
934 | case `pwd` in | |
935 | .) ac_abs_builddir="$ac_dir";; | |
936 | *) | |
937 | case "$ac_dir" in | |
938 | .) ac_abs_builddir=`pwd`;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
945 | *) | |
946 | case ${ac_top_builddir}. in | |
947 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_srcdir=$ac_srcdir;; | |
954 | *) | |
955 | case $ac_srcdir in | |
956 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
959 | esac;; | |
960 | esac | |
961 | case $ac_abs_builddir in | |
962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
963 | *) | |
964 | case $ac_top_srcdir in | |
965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
968 | esac;; | |
969 | esac | |
ad6254c5 AK |
970 | |
971 | cd $ac_dir | |
972 | # Check for guested configure; otherwise get Cygnus style configure. | |
973 | if test -f $ac_srcdir/configure.gnu; then | |
974 | echo | |
975 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
976 | elif test -f $ac_srcdir/configure; then | |
977 | echo | |
978 | $SHELL $ac_srcdir/configure --help=recursive | |
979 | elif test -f $ac_srcdir/configure.ac || | |
8a2fc586 | 980 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
981 | echo |
982 | $ac_configure --help | |
983 | else | |
984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
985 | fi | |
986 | cd $ac_popdir | |
987 | done | |
988 | fi | |
989 | ||
990 | test -n "$ac_init_help" && exit 0 | |
991 | if $ac_init_version; then | |
992 | cat <<\_ACEOF | |
993 | ||
8a2fc586 | 994 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
995 | This configure script is free software; the Free Software Foundation |
996 | gives unlimited permission to copy, distribute and modify it. | |
997 | _ACEOF | |
998 | exit 0 | |
999 | fi | |
1000 | exec 5>config.log | |
1001 | cat >&5 <<_ACEOF | |
1002 | This file contains any messages produced by compilers while | |
1003 | running configure, to aid debugging if configure makes a mistake. | |
1004 | ||
1005 | It was created by $as_me, which was | |
8a2fc586 | 1006 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
1007 | |
1008 | $ $0 $@ | |
1009 | ||
1010 | _ACEOF | |
1011 | { | |
1012 | cat <<_ASUNAME | |
1013 | ## --------- ## | |
1014 | ## Platform. ## | |
1015 | ## --------- ## | |
1016 | ||
1017 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1018 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1019 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1020 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1021 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1024 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1028 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1029 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1030 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1031 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1032 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | _ASUNAME | |
1035 | ||
1036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1037 | for as_dir in $PATH | |
1038 | do | |
1039 | IFS=$as_save_IFS | |
1040 | test -z "$as_dir" && as_dir=. | |
1041 | echo "PATH: $as_dir" | |
1042 | done | |
1043 | ||
1044 | } >&5 | |
1045 | ||
1046 | cat >&5 <<_ACEOF | |
1047 | ||
1048 | ||
1049 | ## ----------- ## | |
1050 | ## Core tests. ## | |
1051 | ## ----------- ## | |
1052 | ||
1053 | _ACEOF | |
1054 | ||
1055 | ||
1056 | # Keep a trace of the command line. | |
1057 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1058 | # Strip out --silent because we don't want to record it for future runs. | |
1059 | # Also quote any args containing shell meta-characters. | |
1060 | # Make two passes to allow for proper duplicate-argument suppression. | |
1061 | ac_configure_args= | |
1062 | ac_configure_args0= | |
1063 | ac_configure_args1= | |
1064 | ac_sep= | |
1065 | ac_must_keep_next=false | |
1066 | for ac_pass in 1 2 | |
1067 | do | |
1068 | for ac_arg | |
1069 | do | |
1070 | case $ac_arg in | |
1071 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1073 | | -silent | --silent | --silen | --sile | --sil) | |
1074 | continue ;; | |
1075 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1076 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1077 | esac | |
1078 | case $ac_pass in | |
1079 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1080 | 2) | |
1081 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1082 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1083 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1084 | else |
8a2fc586 AK |
1085 | case $ac_arg in |
1086 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1087 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1088 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1089 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1090 | case "$ac_configure_args0 " in | |
1091 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1092 | esac | |
1093 | ;; | |
1094 | -* ) ac_must_keep_next=true ;; | |
1095 | esac | |
ad6254c5 AK |
1096 | fi |
1097 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1098 | # Get rid of the leading space. | |
1099 | ac_sep=" " | |
1100 | ;; | |
1101 | esac | |
1102 | done | |
1103 | done | |
1104 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1105 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1106 | ||
1107 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1108 | # config.log. We remove comments because anyway the quotes in there | |
1109 | # would cause problems or look ugly. | |
1110 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1111 | # such as our DU 5.0 friend, will then `close' the trap. | |
1112 | trap 'exit_status=$? | |
1113 | # Save into config.log some information that might help in debugging. | |
1114 | { | |
1115 | echo | |
1116 | ||
1117 | cat <<\_ASBOX | |
1118 | ## ---------------- ## | |
1119 | ## Cache variables. ## | |
1120 | ## ---------------- ## | |
1121 | _ASBOX | |
1122 | echo | |
1123 | # The following way of writing the cache mishandles newlines in values, | |
1124 | { | |
1125 | (set) 2>&1 | | |
1126 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1127 | *ac_space=\ *) | |
1128 | sed -n \ | |
8a2fc586 AK |
1129 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1131 | ;; |
1132 | *) | |
1133 | sed -n \ | |
8a2fc586 | 1134 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1135 | ;; |
1136 | esac; | |
1137 | } | |
1138 | echo | |
1139 | ||
1140 | cat <<\_ASBOX | |
1141 | ## ----------------- ## | |
1142 | ## Output variables. ## | |
1143 | ## ----------------- ## | |
1144 | _ASBOX | |
1145 | echo | |
1146 | for ac_var in $ac_subst_vars | |
1147 | do | |
1148 | eval ac_val=$`echo $ac_var` | |
1149 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1150 | done | sort | |
1151 | echo | |
1152 | ||
1153 | if test -n "$ac_subst_files"; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ------------- ## | |
1156 | ## Output files. ## | |
1157 | ## ------------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | for ac_var in $ac_subst_files | |
1161 | do | |
1162 | eval ac_val=$`echo $ac_var` | |
8a2fc586 | 1163 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1164 | done | sort |
1165 | echo | |
1166 | fi | |
1167 | ||
1168 | if test -s confdefs.h; then | |
1169 | cat <<\_ASBOX | |
1170 | ## ----------- ## | |
1171 | ## confdefs.h. ## | |
1172 | ## ----------- ## | |
1173 | _ASBOX | |
1174 | echo | |
1175 | sed "/^$/d" confdefs.h | sort | |
1176 | echo | |
1177 | fi | |
1178 | test "$ac_signal" != 0 && | |
1179 | echo "$as_me: caught signal $ac_signal" | |
1180 | echo "$as_me: exit $exit_status" | |
1181 | } >&5 | |
8a2fc586 | 1182 | rm -f core *.core && |
ad6254c5 AK |
1183 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1184 | exit $exit_status | |
1185 | ' 0 | |
1186 | for ac_signal in 1 2 13 15; do | |
1187 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1188 | done | |
1189 | ac_signal=0 | |
1190 | ||
1191 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1192 | rm -rf conftest* confdefs.h | |
1193 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1194 | echo >confdefs.h | |
1195 | ||
1196 | # Predefined preprocessor variables. | |
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1210 | _ACEOF | |
8106cdd5 | 1211 | |
ad6254c5 AK |
1212 | |
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1224 | # Prefer explicitly selected file to automatically selected ones. |
1225 | if test -z "$CONFIG_SITE"; then | |
1226 | if test "x$prefix" != xNONE; then | |
1227 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1228 | else | |
1229 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1230 | fi | |
1231 | fi | |
1232 | for ac_site_file in $CONFIG_SITE; do | |
1233 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1234 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1235 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1236 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1237 | . "$ac_site_file" |
1238 | fi | |
1239 | done | |
1240 | ||
1241 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1242 | # Some versions of bash will fail to source /dev/null (special |
1243 | # files actually), so we avoid doing that. | |
1244 | if test -f "$cache_file"; then | |
1245 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1246 | echo "$as_me: loading cache $cache_file" >&6;} | |
1247 | case $cache_file in | |
1248 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1249 | *) . ./$cache_file;; | |
1250 | esac | |
1251 | fi | |
795ca3e5 | 1252 | else |
ad6254c5 AK |
1253 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1254 | echo "$as_me: creating cache $cache_file" >&6;} | |
1255 | >$cache_file | |
1256 | fi | |
1257 | ||
1258 | # Check that the precious variables saved in the cache have kept the same | |
1259 | # value. | |
1260 | ac_cache_corrupted=false | |
1261 | for ac_var in `(set) 2>&1 | | |
8a2fc586 | 1262 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1263 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1264 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1265 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1266 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1267 | case $ac_old_set,$ac_new_set in | |
1268 | set,) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,set) | |
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1274 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1275 | ac_cache_corrupted=: ;; | |
1276 | ,);; | |
1277 | *) | |
1278 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8a2fc586 | 1279 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1280 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8a2fc586 | 1281 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1282 | echo "$as_me: former value: $ac_old_val" >&2;} |
8a2fc586 | 1283 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1284 | echo "$as_me: current value: $ac_new_val" >&2;} |
8a2fc586 | 1285 | ac_cache_corrupted=: |
ad6254c5 AK |
1286 | fi;; |
1287 | esac | |
1288 | # Pass precious variables to config.status. | |
1289 | if test "$ac_new_set" = set; then | |
1290 | case $ac_new_val in | |
1291 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1292 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1293 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1294 | esac | |
1295 | case " $ac_configure_args " in | |
1296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1297 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1298 | esac | |
1299 | fi | |
1300 | done | |
1301 | if $ac_cache_corrupted; then | |
1302 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1303 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1304 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1305 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1306 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1307 | fi |
1308 | ||
1309 | ac_ext=c | |
795ca3e5 | 1310 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
795ca3e5 AK |
1331 | |
1332 | ||
1333 | ||
72b2cb61 AK |
1334 | ################################################################################ |
1335 | ac_config_headers="$ac_config_headers lib/misc/configure.h" | |
1336 | ||
1337 | ||
80992638 | 1338 | ################################################################################ |
795ca3e5 AK |
1339 | ac_aux_dir= |
1340 | for ac_dir in autoconf $srcdir/autoconf; do | |
1341 | if test -f $ac_dir/install-sh; then | |
1342 | ac_aux_dir=$ac_dir | |
1343 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1344 | break | |
1345 | elif test -f $ac_dir/install.sh; then | |
1346 | ac_aux_dir=$ac_dir | |
1347 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1348 | break | |
ad6254c5 AK |
1349 | elif test -f $ac_dir/shtool; then |
1350 | ac_aux_dir=$ac_dir | |
1351 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1352 | break | |
795ca3e5 AK |
1353 | fi |
1354 | done | |
1355 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1356 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1357 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1358 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1359 | fi |
ad6254c5 AK |
1360 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1361 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1362 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1363 | |
1364 | ||
ad6254c5 | 1365 | ################################################################################ |
8ce0cbda | 1366 | # Make sure we can run config.sub. |
ad6254c5 AK |
1367 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1368 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1369 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1370 | { (exit 1); exit 1; }; } | |
1371 | ||
1372 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1373 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1374 | if test "${ac_cv_build+set}" = set; then | |
1375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1376 | else | |
1377 | ac_cv_build_alias=$build_alias | |
1378 | test -z "$ac_cv_build_alias" && | |
1379 | ac_cv_build_alias=`$ac_config_guess` | |
1380 | test -z "$ac_cv_build_alias" && | |
1381 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1382 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1383 | { (exit 1); exit 1; }; } | |
1384 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1385 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1386 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1387 | { (exit 1); exit 1; }; } | |
1388 | ||
1389 | fi | |
1390 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1391 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1392 | build=$ac_cv_build | |
1393 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1394 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1395 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1396 | ||
1397 | ||
1398 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1399 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1400 | if test "${ac_cv_host+set}" = set; then | |
1401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1402 | else | |
1403 | ac_cv_host_alias=$host_alias | |
1404 | test -z "$ac_cv_host_alias" && | |
1405 | ac_cv_host_alias=$ac_cv_build_alias | |
1406 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1407 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1408 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1409 | { (exit 1); exit 1; }; } | |
1410 | ||
1411 | fi | |
1412 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1413 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1414 | host=$ac_cv_host | |
1415 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1416 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1417 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1418 | ||
1419 | ||
1420 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1421 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1422 | if test "${ac_cv_target+set}" = set; then | |
1423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1424 | else | |
1425 | ac_cv_target_alias=$target_alias | |
1426 | test "x$ac_cv_target_alias" = "x" && | |
1427 | ac_cv_target_alias=$ac_cv_host_alias | |
1428 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1429 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1430 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1431 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1432 | |
ad6254c5 AK |
1433 | fi |
1434 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1435 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1436 | target=$ac_cv_target | |
1437 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1438 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1439 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1440 | |
8ce0cbda | 1441 | |
ad6254c5 AK |
1442 | # The aliases save the names the user supplied, while $host etc. |
1443 | # will get canonicalized. | |
1444 | test -n "$target_alias" && | |
8ce0cbda AK |
1445 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1446 | NONENONEs,x,x, && | |
1447 | program_prefix=${target_alias}- | |
1448 | ||
8ce0cbda AK |
1449 | case "$host_os" in |
1450 | linux*) | |
1451 | CFLAGS="$CFLAGS" | |
1452 | COPTIMISE_FLAG="-O2" | |
1453 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1454 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1455 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1456 | LDDEPS="$LDDEPS .export.sym" | |
1457 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1458 | LIB_SUFFIX="so" |
8ce0cbda AK |
1459 | DEVMAPPER=yes |
1460 | ODIRECT=yes | |
1461 | SELINUX=yes | |
1462 | CLUSTER=internal | |
1463 | FSADM=no ;; | |
1464 | darwin*) | |
1465 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1466 | COPTIMISE_FLAG="-O2" | |
1467 | CLDFLAGS="$CLDFLAGS" | |
1468 | CLDWHOLEARCHIVE="-all_load" | |
1469 | CLDNOWHOLEARCHIVE= | |
1470 | LDDEPS="$LDDEPS" | |
1471 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1472 | LIB_SUFFIX="dylib" |
a653923f | 1473 | DEVMAPPER=yes |
8ce0cbda AK |
1474 | ODIRECT=no |
1475 | SELINUX=no | |
1476 | CLUSTER=none | |
1477 | FSADM=no ;; | |
1478 | esac | |
1479 | ||
80992638 | 1480 | ################################################################################ |
ad6254c5 | 1481 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1482 | do |
ad6254c5 | 1483 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1484 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1487 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1489 | else |
1490 | if test -n "$AWK"; then | |
1491 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1492 | else | |
ad6254c5 AK |
1493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1494 | for as_dir in $PATH | |
1495 | do | |
1496 | IFS=$as_save_IFS | |
1497 | test -z "$as_dir" && as_dir=. | |
1498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1500 | ac_cv_prog_AWK="$ac_prog" | |
1501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1502 | break 2 | |
1503 | fi | |
1504 | done | |
1505 | done | |
1506 | ||
795ca3e5 AK |
1507 | fi |
1508 | fi | |
ad6254c5 | 1509 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1510 | if test -n "$AWK"; then |
ad6254c5 AK |
1511 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1512 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1513 | else |
ad6254c5 AK |
1514 | echo "$as_me:$LINENO: result: no" >&5 |
1515 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1516 | fi |
1517 | ||
ad6254c5 AK |
1518 | test -n "$AWK" && break |
1519 | done | |
1520 | ||
1521 | ac_ext=c | |
1522 | ac_cpp='$CPP $CPPFLAGS' | |
1523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1526 | if test -n "$ac_tool_prefix"; then | |
1527 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1528 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1531 | if test "${ac_cv_prog_CC+set}" = set; then | |
1532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1533 | else | |
1534 | if test -n "$CC"; then | |
1535 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1536 | else | |
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1538 | for as_dir in $PATH | |
1539 | do | |
1540 | IFS=$as_save_IFS | |
1541 | test -z "$as_dir" && as_dir=. | |
1542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1544 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1546 | break 2 | |
1547 | fi | |
1548 | done | |
8106cdd5 AK |
1549 | done |
1550 | ||
ad6254c5 AK |
1551 | fi |
1552 | fi | |
1553 | CC=$ac_cv_prog_CC | |
1554 | if test -n "$CC"; then | |
1555 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1556 | echo "${ECHO_T}$CC" >&6 | |
1557 | else | |
1558 | echo "$as_me:$LINENO: result: no" >&5 | |
1559 | echo "${ECHO_T}no" >&6 | |
1560 | fi | |
1561 | ||
1562 | fi | |
1563 | if test -z "$ac_cv_prog_CC"; then | |
1564 | ac_ct_CC=$CC | |
1565 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1566 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1569 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1571 | else | |
1572 | if test -n "$ac_ct_CC"; then | |
1573 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1574 | else | |
1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1576 | for as_dir in $PATH | |
1577 | do | |
1578 | IFS=$as_save_IFS | |
1579 | test -z "$as_dir" && as_dir=. | |
1580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1582 | ac_cv_prog_ac_ct_CC="gcc" | |
1583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1584 | break 2 | |
1585 | fi | |
1586 | done | |
1587 | done | |
1588 | ||
1589 | fi | |
1590 | fi | |
1591 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1592 | if test -n "$ac_ct_CC"; then | |
1593 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1594 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1595 | else | |
1596 | echo "$as_me:$LINENO: result: no" >&5 | |
1597 | echo "${ECHO_T}no" >&6 | |
1598 | fi | |
1599 | ||
1600 | CC=$ac_ct_CC | |
1601 | else | |
1602 | CC="$ac_cv_prog_CC" | |
1603 | fi | |
1604 | ||
1605 | if test -z "$CC"; then | |
1606 | if test -n "$ac_tool_prefix"; then | |
1607 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1608 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1611 | if test "${ac_cv_prog_CC+set}" = set; then | |
1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1613 | else |
1614 | if test -n "$CC"; then | |
1615 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1616 | else | |
ad6254c5 AK |
1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1618 | for as_dir in $PATH | |
1619 | do | |
1620 | IFS=$as_save_IFS | |
1621 | test -z "$as_dir" && as_dir=. | |
1622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1624 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1626 | break 2 | |
1627 | fi | |
1628 | done | |
1629 | done | |
1630 | ||
8106cdd5 AK |
1631 | fi |
1632 | fi | |
ad6254c5 | 1633 | CC=$ac_cv_prog_CC |
8106cdd5 | 1634 | if test -n "$CC"; then |
ad6254c5 AK |
1635 | echo "$as_me:$LINENO: result: $CC" >&5 |
1636 | echo "${ECHO_T}$CC" >&6 | |
1637 | else | |
1638 | echo "$as_me:$LINENO: result: no" >&5 | |
1639 | echo "${ECHO_T}no" >&6 | |
1640 | fi | |
1641 | ||
1642 | fi | |
1643 | if test -z "$ac_cv_prog_CC"; then | |
1644 | ac_ct_CC=$CC | |
1645 | # Extract the first word of "cc", so it can be a program name with args. | |
1646 | set dummy cc; ac_word=$2 | |
1647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1651 | else | |
1652 | if test -n "$ac_ct_CC"; then | |
1653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1654 | else | |
1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1656 | for as_dir in $PATH | |
1657 | do | |
1658 | IFS=$as_save_IFS | |
1659 | test -z "$as_dir" && as_dir=. | |
1660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1662 | ac_cv_prog_ac_ct_CC="cc" | |
1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1664 | break 2 | |
1665 | fi | |
1666 | done | |
1667 | done | |
1668 | ||
1669 | fi | |
1670 | fi | |
1671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1672 | if test -n "$ac_ct_CC"; then | |
1673 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1674 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1675 | else | |
1676 | echo "$as_me:$LINENO: result: no" >&5 | |
1677 | echo "${ECHO_T}no" >&6 | |
1678 | fi | |
1679 | ||
1680 | CC=$ac_ct_CC | |
8106cdd5 | 1681 | else |
ad6254c5 | 1682 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1683 | fi |
1684 | ||
ad6254c5 | 1685 | fi |
795ca3e5 AK |
1686 | if test -z "$CC"; then |
1687 | # Extract the first word of "cc", so it can be a program name with args. | |
1688 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1691 | if test "${ac_cv_prog_CC+set}" = set; then | |
1692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1693 | else |
1694 | if test -n "$CC"; then | |
1695 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1696 | else | |
795ca3e5 | 1697 | ac_prog_rejected=no |
ad6254c5 AK |
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1699 | for as_dir in $PATH | |
1700 | do | |
1701 | IFS=$as_save_IFS | |
1702 | test -z "$as_dir" && as_dir=. | |
1703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1705 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1706 | ac_prog_rejected=yes | |
1707 | continue | |
1708 | fi | |
1709 | ac_cv_prog_CC="cc" | |
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1711 | break 2 | |
1712 | fi | |
1713 | done | |
1714 | done | |
1715 | ||
795ca3e5 AK |
1716 | if test $ac_prog_rejected = yes; then |
1717 | # We found a bogon in the path, so make sure we never use it. | |
1718 | set dummy $ac_cv_prog_CC | |
1719 | shift | |
ad6254c5 | 1720 | if test $# != 0; then |
795ca3e5 AK |
1721 | # We chose a different compiler from the bogus one. |
1722 | # However, it has the same basename, so the bogon will be chosen | |
1723 | # first if we set CC to just the basename; use the full file name. | |
1724 | shift | |
ad6254c5 | 1725 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1726 | fi |
1727 | fi | |
1728 | fi | |
1729 | fi | |
ad6254c5 | 1730 | CC=$ac_cv_prog_CC |
795ca3e5 | 1731 | if test -n "$CC"; then |
ad6254c5 AK |
1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
1733 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1734 | else |
ad6254c5 AK |
1735 | echo "$as_me:$LINENO: result: no" >&5 |
1736 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1737 | fi |
1738 | ||
ad6254c5 AK |
1739 | fi |
1740 | if test -z "$CC"; then | |
1741 | if test -n "$ac_tool_prefix"; then | |
1742 | for ac_prog in cl | |
1743 | do | |
1744 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1745 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1748 | if test "${ac_cv_prog_CC+set}" = set; then | |
1749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1750 | else |
1751 | if test -n "$CC"; then | |
1752 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1753 | else | |
ad6254c5 AK |
1754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1755 | for as_dir in $PATH | |
1756 | do | |
1757 | IFS=$as_save_IFS | |
1758 | test -z "$as_dir" && as_dir=. | |
1759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1761 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1763 | break 2 | |
1764 | fi | |
1765 | done | |
1766 | done | |
1767 | ||
795ca3e5 AK |
1768 | fi |
1769 | fi | |
ad6254c5 | 1770 | CC=$ac_cv_prog_CC |
795ca3e5 | 1771 | if test -n "$CC"; then |
ad6254c5 AK |
1772 | echo "$as_me:$LINENO: result: $CC" >&5 |
1773 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1774 | else |
ad6254c5 AK |
1775 | echo "$as_me:$LINENO: result: no" >&5 |
1776 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1777 | fi |
ad6254c5 AK |
1778 | |
1779 | test -n "$CC" && break | |
1780 | done | |
1781 | fi | |
1782 | if test -z "$CC"; then | |
1783 | ac_ct_CC=$CC | |
1784 | for ac_prog in cl | |
1785 | do | |
1786 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1787 | set dummy $ac_prog; ac_word=$2 | |
1788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1790 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1792 | else | |
1793 | if test -n "$ac_ct_CC"; then | |
1794 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1795 | else | |
1796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1797 | for as_dir in $PATH | |
1798 | do | |
1799 | IFS=$as_save_IFS | |
1800 | test -z "$as_dir" && as_dir=. | |
1801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1803 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1805 | break 2 | |
795ca3e5 | 1806 | fi |
ad6254c5 AK |
1807 | done |
1808 | done | |
1809 | ||
1810 | fi | |
1811 | fi | |
1812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1813 | if test -n "$ac_ct_CC"; then | |
1814 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1815 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1816 | else | |
1817 | echo "$as_me:$LINENO: result: no" >&5 | |
1818 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1819 | fi |
1820 | ||
ad6254c5 AK |
1821 | test -n "$ac_ct_CC" && break |
1822 | done | |
795ca3e5 | 1823 | |
ad6254c5 AK |
1824 | CC=$ac_ct_CC |
1825 | fi | |
1826 | ||
1827 | fi | |
1828 | ||
1829 | ||
1830 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1831 | See \`config.log' for more details." >&5 | |
1832 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1833 | See \`config.log' for more details." >&2;} | |
1834 | { (exit 1); exit 1; }; } | |
1835 | ||
1836 | # Provide some information about the compiler. | |
1837 | echo "$as_me:$LINENO:" \ | |
1838 | "checking for C compiler version" >&5 | |
1839 | ac_compiler=`set X $ac_compile; echo $2` | |
1840 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1841 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1842 | ac_status=$? | |
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1844 | (exit $ac_status); } | |
1845 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1846 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1847 | ac_status=$? | |
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1849 | (exit $ac_status); } | |
1850 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1851 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1852 | ac_status=$? | |
1853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1854 | (exit $ac_status); } | |
1855 | ||
1856 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
1857 | /* confdefs.h. */ |
1858 | _ACEOF | |
1859 | cat confdefs.h >>conftest.$ac_ext | |
1860 | cat >>conftest.$ac_ext <<_ACEOF | |
1861 | /* end confdefs.h. */ | |
1862 | ||
1863 | int | |
1864 | main () | |
1865 | { | |
1866 | ||
1867 | ; | |
1868 | return 0; | |
1869 | } | |
1870 | _ACEOF | |
1871 | ac_clean_files_save=$ac_clean_files | |
1872 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1873 | # Try to create an executable without -o first, disregard a.out. | |
1874 | # It will help us diagnose broken compilers, and finding out an intuition | |
1875 | # of exeext. | |
8a2fc586 AK |
1876 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1877 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ad6254c5 AK |
1878 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1880 | (eval $ac_link_default) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
1884 | # Find the output, starting from the most likely. This scheme is | |
1885 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1886 | # resort. | |
1887 | ||
1888 | # Be careful to initialize this variable, since it used to be cached. | |
1889 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1890 | ac_cv_exeext= | |
1891 | # b.out is created by i960 compilers. | |
1892 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1893 | do | |
1894 | test -f "$ac_file" || continue | |
1895 | case $ac_file in | |
1896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
8a2fc586 | 1897 | ;; |
ad6254c5 | 1898 | conftest.$ac_ext ) |
8a2fc586 AK |
1899 | # This is the source file. |
1900 | ;; | |
ad6254c5 | 1901 | [ab].out ) |
8a2fc586 AK |
1902 | # We found the default executable, but exeext='' is most |
1903 | # certainly right. | |
1904 | break;; | |
ad6254c5 | 1905 | *.* ) |
8a2fc586 AK |
1906 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1907 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1908 | # but it would be cool to find out if it's true. Does anybody | |
1909 | # maintain Libtool? --akim. | |
1910 | export ac_cv_exeext | |
1911 | break;; | |
ad6254c5 | 1912 | * ) |
8a2fc586 | 1913 | break;; |
ad6254c5 AK |
1914 | esac |
1915 | done | |
1916 | else | |
1917 | echo "$as_me: failed program was:" >&5 | |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1919 | ||
1920 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1921 | See \`config.log' for more details." >&5 | |
1922 | echo "$as_me: error: C compiler cannot create executables | |
1923 | See \`config.log' for more details." >&2;} | |
1924 | { (exit 77); exit 77; }; } | |
1925 | fi | |
1926 | ||
1927 | ac_exeext=$ac_cv_exeext | |
1928 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1929 | echo "${ECHO_T}$ac_file" >&6 | |
1930 | ||
1931 | # Check the compiler produces executables we can run. If not, either | |
1932 | # the compiler is broken, or we cross compile. | |
1933 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1934 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1935 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1936 | # If not cross compiling, check that we can run a simple program. | |
1937 | if test "$cross_compiling" != yes; then | |
1938 | if { ac_try='./$ac_file' | |
1939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1940 | (eval $ac_try) 2>&5 | |
1941 | ac_status=$? | |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1943 | (exit $ac_status); }; }; then | |
1944 | cross_compiling=no | |
795ca3e5 | 1945 | else |
ad6254c5 AK |
1946 | if test "$cross_compiling" = maybe; then |
1947 | cross_compiling=yes | |
1948 | else | |
1949 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1950 | If you meant to cross compile, use \`--host'. | |
1951 | See \`config.log' for more details." >&5 | |
1952 | echo "$as_me: error: cannot run C compiled programs. | |
1953 | If you meant to cross compile, use \`--host'. | |
1954 | See \`config.log' for more details." >&2;} | |
1955 | { (exit 1); exit 1; }; } | |
1956 | fi | |
795ca3e5 | 1957 | fi |
80992638 | 1958 | fi |
ad6254c5 AK |
1959 | echo "$as_me:$LINENO: result: yes" >&5 |
1960 | echo "${ECHO_T}yes" >&6 | |
1961 | ||
1962 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1963 | ac_clean_files=$ac_clean_files_save | |
1964 | # Check the compiler produces executables we can run. If not, either | |
1965 | # the compiler is broken, or we cross compile. | |
1966 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1967 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1968 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1969 | echo "${ECHO_T}$cross_compiling" >&6 | |
1970 | ||
1971 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1972 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1974 | (eval $ac_link) 2>&5 | |
1975 | ac_status=$? | |
1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1977 | (exit $ac_status); }; then | |
1978 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1979 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1980 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1981 | # `rm'. | |
1982 | for ac_file in conftest.exe conftest conftest.*; do | |
1983 | test -f "$ac_file" || continue | |
1984 | case $ac_file in | |
1985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1986 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
8a2fc586 AK |
1987 | export ac_cv_exeext |
1988 | break;; | |
ad6254c5 AK |
1989 | * ) break;; |
1990 | esac | |
1991 | done | |
80992638 | 1992 | else |
ad6254c5 AK |
1993 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1994 | See \`config.log' for more details." >&5 | |
1995 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1996 | See \`config.log' for more details." >&2;} | |
1997 | { (exit 1); exit 1; }; } | |
1998 | fi | |
1999 | ||
2000 | rm -f conftest$ac_cv_exeext | |
2001 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2002 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2003 | ||
2004 | rm -f conftest.$ac_ext | |
2005 | EXEEXT=$ac_cv_exeext | |
2006 | ac_exeext=$EXEEXT | |
2007 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2008 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2009 | if test "${ac_cv_objext+set}" = set; then | |
2010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2011 | else |
ad6254c5 | 2012 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2013 | /* confdefs.h. */ |
2014 | _ACEOF | |
2015 | cat confdefs.h >>conftest.$ac_ext | |
2016 | cat >>conftest.$ac_ext <<_ACEOF | |
2017 | /* end confdefs.h. */ | |
2018 | ||
2019 | int | |
2020 | main () | |
2021 | { | |
2022 | ||
2023 | ; | |
2024 | return 0; | |
2025 | } | |
2026 | _ACEOF | |
2027 | rm -f conftest.o conftest.obj | |
2028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2029 | (eval $ac_compile) 2>&5 | |
2030 | ac_status=$? | |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2032 | (exit $ac_status); }; then | |
2033 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2034 | case $ac_file in | |
2035 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2036 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2037 | break;; | |
2038 | esac | |
2039 | done | |
2040 | else | |
2041 | echo "$as_me: failed program was:" >&5 | |
2042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2043 | ||
2044 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2045 | See \`config.log' for more details." >&5 | |
2046 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2047 | See \`config.log' for more details." >&2;} | |
2048 | { (exit 1); exit 1; }; } | |
2049 | fi | |
2050 | ||
2051 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2052 | fi | |
2053 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2054 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2055 | OBJEXT=$ac_cv_objext | |
2056 | ac_objext=$OBJEXT | |
2057 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2058 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2059 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2061 | else | |
2062 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2063 | /* confdefs.h. */ |
2064 | _ACEOF | |
2065 | cat confdefs.h >>conftest.$ac_ext | |
2066 | cat >>conftest.$ac_ext <<_ACEOF | |
2067 | /* end confdefs.h. */ | |
2068 | ||
2069 | int | |
2070 | main () | |
2071 | { | |
2072 | #ifndef __GNUC__ | |
2073 | choke me | |
2074 | #endif | |
80992638 | 2075 | |
ad6254c5 AK |
2076 | ; |
2077 | return 0; | |
2078 | } | |
2079 | _ACEOF | |
2080 | rm -f conftest.$ac_objext | |
2081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2082 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2083 | ac_status=$? |
8a2fc586 AK |
2084 | grep -v '^ *+' conftest.er1 >conftest.err |
2085 | rm -f conftest.er1 | |
2086 | cat conftest.err >&5 | |
ad6254c5 AK |
2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2088 | (exit $ac_status); } && | |
8a2fc586 AK |
2089 | { ac_try='test -z "$ac_c_werror_flag" |
2090 | || test ! -s conftest.err' | |
2091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2092 | (eval $ac_try) 2>&5 | |
2093 | ac_status=$? | |
2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2095 | (exit $ac_status); }; } && | |
2096 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2098 | (eval $ac_try) 2>&5 | |
2099 | ac_status=$? | |
2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2101 | (exit $ac_status); }; }; then | |
2102 | ac_compiler_gnu=yes | |
80992638 | 2103 | else |
ad6254c5 AK |
2104 | echo "$as_me: failed program was:" >&5 |
2105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2106 | ||
2107 | ac_compiler_gnu=no | |
8106cdd5 | 2108 | fi |
8a2fc586 | 2109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2110 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2111 | |
ad6254c5 AK |
2112 | fi |
2113 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2114 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2115 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2116 | ac_test_CFLAGS=${CFLAGS+set} | |
2117 | ac_save_CFLAGS=$CFLAGS | |
2118 | CFLAGS="-g" | |
2119 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2120 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2121 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2123 | else |
ad6254c5 | 2124 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2125 | /* confdefs.h. */ |
2126 | _ACEOF | |
2127 | cat confdefs.h >>conftest.$ac_ext | |
2128 | cat >>conftest.$ac_ext <<_ACEOF | |
2129 | /* end confdefs.h. */ | |
2130 | ||
2131 | int | |
2132 | main () | |
2133 | { | |
2134 | ||
2135 | ; | |
2136 | return 0; | |
2137 | } | |
2138 | _ACEOF | |
2139 | rm -f conftest.$ac_objext | |
2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2141 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2142 | ac_status=$? |
8a2fc586 AK |
2143 | grep -v '^ *+' conftest.er1 >conftest.err |
2144 | rm -f conftest.er1 | |
2145 | cat conftest.err >&5 | |
ad6254c5 AK |
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2147 | (exit $ac_status); } && | |
8a2fc586 AK |
2148 | { ac_try='test -z "$ac_c_werror_flag" |
2149 | || test ! -s conftest.err' | |
2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2151 | (eval $ac_try) 2>&5 | |
2152 | ac_status=$? | |
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2154 | (exit $ac_status); }; } && | |
2155 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2157 | (eval $ac_try) 2>&5 | |
2158 | ac_status=$? | |
2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2160 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2161 | ac_cv_prog_cc_g=yes |
2162 | else | |
ad6254c5 AK |
2163 | echo "$as_me: failed program was:" >&5 |
2164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2165 | |
ad6254c5 | 2166 | ac_cv_prog_cc_g=no |
8106cdd5 | 2167 | fi |
8a2fc586 | 2168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2169 | fi |
2170 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2171 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2172 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2173 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2174 | elif test $ac_cv_prog_cc_g = yes; then |
2175 | if test "$GCC" = yes; then | |
2176 | CFLAGS="-g -O2" | |
2177 | else | |
2178 | CFLAGS="-g" | |
2179 | fi | |
2180 | else | |
2181 | if test "$GCC" = yes; then | |
2182 | CFLAGS="-O2" | |
2183 | else | |
2184 | CFLAGS= | |
2185 | fi | |
2186 | fi | |
ad6254c5 AK |
2187 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2188 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2189 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2191 | else | |
2192 | ac_cv_prog_cc_stdc=no | |
2193 | ac_save_CC=$CC | |
2194 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2195 | /* confdefs.h. */ |
2196 | _ACEOF | |
2197 | cat confdefs.h >>conftest.$ac_ext | |
2198 | cat >>conftest.$ac_ext <<_ACEOF | |
2199 | /* end confdefs.h. */ | |
2200 | #include <stdarg.h> | |
2201 | #include <stdio.h> | |
2202 | #include <sys/types.h> | |
2203 | #include <sys/stat.h> | |
2204 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2205 | struct buf { int x; }; | |
2206 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2207 | static char *e (p, i) | |
2208 | char **p; | |
2209 | int i; | |
2210 | { | |
2211 | return p[i]; | |
2212 | } | |
2213 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2214 | { | |
2215 | char *s; | |
2216 | va_list v; | |
2217 | va_start (v,p); | |
2218 | s = g (p, va_arg (v,int)); | |
2219 | va_end (v); | |
2220 | return s; | |
2221 | } | |
8a2fc586 AK |
2222 | |
2223 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2224 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2225 | These don't provoke an error unfortunately, instead are silently treated | |
2226 | as 'x'. The following induces an error, until -std1 is added to get | |
2227 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2228 | array size at least. It's necessary to write '\x00'==0 to get something | |
2229 | that's true only with -std1. */ | |
2230 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2231 | ||
ad6254c5 AK |
2232 | int test (int i, double x); |
2233 | struct s1 {int (*f) (int a);}; | |
2234 | struct s2 {int (*f) (double a);}; | |
2235 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2236 | int argc; | |
2237 | char **argv; | |
2238 | int | |
2239 | main () | |
2240 | { | |
2241 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2242 | ; | |
2243 | return 0; | |
2244 | } | |
2245 | _ACEOF | |
2246 | # Don't try gcc -ansi; that turns off useful extensions and | |
2247 | # breaks some systems' header files. | |
2248 | # AIX -qlanglvl=ansi | |
2249 | # Ultrix and OSF/1 -std1 | |
2250 | # HP-UX 10.20 and later -Ae | |
2251 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2252 | # SVR4 -Xc -D__EXTENSIONS__ | |
2253 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2254 | do | |
2255 | CC="$ac_save_CC $ac_arg" | |
2256 | rm -f conftest.$ac_objext | |
2257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2258 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2259 | ac_status=$? |
8a2fc586 AK |
2260 | grep -v '^ *+' conftest.er1 >conftest.err |
2261 | rm -f conftest.er1 | |
2262 | cat conftest.err >&5 | |
ad6254c5 AK |
2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2264 | (exit $ac_status); } && | |
8a2fc586 AK |
2265 | { ac_try='test -z "$ac_c_werror_flag" |
2266 | || test ! -s conftest.err' | |
2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2268 | (eval $ac_try) 2>&5 | |
2269 | ac_status=$? | |
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2271 | (exit $ac_status); }; } && | |
2272 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2274 | (eval $ac_try) 2>&5 | |
2275 | ac_status=$? | |
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2277 | (exit $ac_status); }; }; then | |
2278 | ac_cv_prog_cc_stdc=$ac_arg | |
2279 | break | |
2280 | else | |
2281 | echo "$as_me: failed program was:" >&5 | |
2282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2283 | ||
2284 | fi | |
8a2fc586 | 2285 | rm -f conftest.err conftest.$ac_objext |
ad6254c5 AK |
2286 | done |
2287 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2288 | CC=$ac_save_CC | |
2289 | ||
2290 | fi | |
2291 | ||
2292 | case "x$ac_cv_prog_cc_stdc" in | |
2293 | x|xno) | |
2294 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2295 | echo "${ECHO_T}none needed" >&6 ;; | |
2296 | *) | |
2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2298 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2299 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2300 | esac | |
2301 | ||
2302 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2303 | # in C++ we need to declare it. In case someone uses the same compiler | |
2304 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2305 | # the declaration of exit, since it's the most demanding environment. | |
2306 | cat >conftest.$ac_ext <<_ACEOF | |
2307 | #ifndef __cplusplus | |
2308 | choke me | |
2309 | #endif | |
2310 | _ACEOF | |
2311 | rm -f conftest.$ac_objext | |
2312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2313 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2314 | ac_status=$? |
8a2fc586 AK |
2315 | grep -v '^ *+' conftest.er1 >conftest.err |
2316 | rm -f conftest.er1 | |
2317 | cat conftest.err >&5 | |
ad6254c5 AK |
2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2319 | (exit $ac_status); } && | |
8a2fc586 AK |
2320 | { ac_try='test -z "$ac_c_werror_flag" |
2321 | || test ! -s conftest.err' | |
2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2323 | (eval $ac_try) 2>&5 | |
2324 | ac_status=$? | |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2326 | (exit $ac_status); }; } && | |
2327 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2329 | (eval $ac_try) 2>&5 | |
2330 | ac_status=$? | |
2331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2332 | (exit $ac_status); }; }; then | |
2333 | for ac_declaration in \ | |
8a2fc586 | 2334 | '' \ |
ad6254c5 AK |
2335 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2336 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2337 | 'extern "C" void exit (int) throw ();' \ | |
2338 | 'extern "C" void exit (int);' \ | |
2339 | 'void exit (int);' | |
2340 | do | |
2341 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2342 | /* confdefs.h. */ |
2343 | _ACEOF | |
2344 | cat confdefs.h >>conftest.$ac_ext | |
2345 | cat >>conftest.$ac_ext <<_ACEOF | |
2346 | /* end confdefs.h. */ | |
c1c065a3 | 2347 | $ac_declaration |
8a2fc586 | 2348 | #include <stdlib.h> |
ad6254c5 AK |
2349 | int |
2350 | main () | |
2351 | { | |
2352 | exit (42); | |
2353 | ; | |
2354 | return 0; | |
2355 | } | |
2356 | _ACEOF | |
2357 | rm -f conftest.$ac_objext | |
2358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2359 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2360 | ac_status=$? |
8a2fc586 AK |
2361 | grep -v '^ *+' conftest.er1 >conftest.err |
2362 | rm -f conftest.er1 | |
2363 | cat conftest.err >&5 | |
ad6254c5 AK |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2365 | (exit $ac_status); } && | |
8a2fc586 AK |
2366 | { ac_try='test -z "$ac_c_werror_flag" |
2367 | || test ! -s conftest.err' | |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2369 | (eval $ac_try) 2>&5 | |
2370 | ac_status=$? | |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2372 | (exit $ac_status); }; } && | |
2373 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2375 | (eval $ac_try) 2>&5 | |
2376 | ac_status=$? | |
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2378 | (exit $ac_status); }; }; then | |
2379 | : | |
2380 | else | |
2381 | echo "$as_me: failed program was:" >&5 | |
2382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2383 | ||
2384 | continue | |
2385 | fi | |
8a2fc586 | 2386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2387 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2388 | /* confdefs.h. */ |
2389 | _ACEOF | |
2390 | cat confdefs.h >>conftest.$ac_ext | |
2391 | cat >>conftest.$ac_ext <<_ACEOF | |
2392 | /* end confdefs.h. */ | |
2393 | $ac_declaration | |
2394 | int | |
2395 | main () | |
2396 | { | |
2397 | exit (42); | |
2398 | ; | |
2399 | return 0; | |
2400 | } | |
2401 | _ACEOF | |
2402 | rm -f conftest.$ac_objext | |
2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2404 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2405 | ac_status=$? |
8a2fc586 AK |
2406 | grep -v '^ *+' conftest.er1 >conftest.err |
2407 | rm -f conftest.er1 | |
2408 | cat conftest.err >&5 | |
ad6254c5 AK |
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2410 | (exit $ac_status); } && | |
8a2fc586 AK |
2411 | { ac_try='test -z "$ac_c_werror_flag" |
2412 | || test ! -s conftest.err' | |
2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2414 | (eval $ac_try) 2>&5 | |
2415 | ac_status=$? | |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); }; } && | |
2418 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2420 | (eval $ac_try) 2>&5 | |
2421 | ac_status=$? | |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | (exit $ac_status); }; }; then | |
2424 | break | |
2425 | else | |
2426 | echo "$as_me: failed program was:" >&5 | |
2427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2428 | ||
2429 | fi | |
8a2fc586 | 2430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2431 | done |
2432 | rm -f conftest* | |
2433 | if test -n "$ac_declaration"; then | |
2434 | echo '#ifdef __cplusplus' >>confdefs.h | |
2435 | echo $ac_declaration >>confdefs.h | |
2436 | echo '#endif' >>confdefs.h | |
2437 | fi | |
2438 | ||
2439 | else | |
2440 | echo "$as_me: failed program was:" >&5 | |
2441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2442 | ||
2443 | fi | |
8a2fc586 | 2444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2445 | ac_ext=c |
2446 | ac_cpp='$CPP $CPPFLAGS' | |
2447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2450 | |
2451 | # Find a good install program. We prefer a C program (faster), | |
2452 | # so one script is as good as another. But avoid the broken or | |
2453 | # incompatible versions: | |
2454 | # SysV /etc/install, /usr/sbin/install | |
2455 | # SunOS /usr/etc/install | |
2456 | # IRIX /sbin/install | |
2457 | # AIX /bin/install | |
ad6254c5 | 2458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2462 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2463 | # ./install, which can be erroneously created by make from ./install.sh. |
ad6254c5 AK |
2464 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2465 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2466 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2467 | if test "${ac_cv_path_install+set}" = set; then |
2468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2469 | else | |
2470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2471 | for as_dir in $PATH | |
2472 | do | |
2473 | IFS=$as_save_IFS | |
2474 | test -z "$as_dir" && as_dir=. | |
2475 | # Account for people who put trailing slashes in PATH elements. | |
2476 | case $as_dir/ in | |
2477 | ./ | .// | /cC/* | \ | |
2478 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 2479 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2480 | /usr/ucb/* ) ;; |
2481 | *) | |
2482 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2483 | # Don't use installbsd from OSF since it installs stuff as root | |
2484 | # by default. | |
2485 | for ac_prog in ginstall scoinst install; do | |
2486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a2fc586 AK |
2487 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2488 | if test $ac_prog = install && | |
2489 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2490 | # AIX install. It has an incompatible calling convention. | |
2491 | : | |
2492 | elif test $ac_prog = install && | |
2493 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2494 | # program-specific install script used by HP pwplus--don't use. | |
2495 | : | |
2496 | else | |
2497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2498 | break 3 | |
2499 | fi | |
2500 | fi | |
795ca3e5 | 2501 | done |
ad6254c5 AK |
2502 | done |
2503 | ;; | |
2504 | esac | |
2505 | done | |
2506 | ||
795ca3e5 AK |
2507 | |
2508 | fi | |
2509 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2510 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2511 | else |
2512 | # As a last resort, use the slow shell script. We don't cache a | |
2513 | # path for INSTALL within a source directory, because that will | |
2514 | # break other packages using the cache if that directory is | |
2515 | # removed, or if the path is relative. | |
ad6254c5 | 2516 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2517 | fi |
2518 | fi | |
ad6254c5 AK |
2519 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2520 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2521 | |
2522 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2523 | # It thinks the first close brace ends the variable substitution. | |
2524 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2525 | ||
ad6254c5 | 2526 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2527 | |
2528 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2529 | ||
ad6254c5 AK |
2530 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2531 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2532 | LN_S=$as_ln_s | |
2533 | if test "$LN_S" = "ln -s"; then | |
2534 | echo "$as_me:$LINENO: result: yes" >&5 | |
2535 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2536 | else |
ad6254c5 AK |
2537 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2538 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2539 | fi |
2540 | ||
ad6254c5 AK |
2541 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2542 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8a2fc586 | 2543 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ad6254c5 AK |
2544 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2546 | else |
ad6254c5 | 2547 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2548 | all: |
ad6254c5 AK |
2549 | @echo 'ac_maketemp="$(MAKE)"' |
2550 | _ACEOF | |
795ca3e5 | 2551 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2552 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2553 | if test -n "$ac_maketemp"; then |
2554 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2555 | else | |
2556 | eval ac_cv_prog_make_${ac_make}_set=no | |
2557 | fi | |
ad6254c5 | 2558 | rm -f conftest.make |
795ca3e5 AK |
2559 | fi |
2560 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2561 | echo "$as_me:$LINENO: result: yes" >&5 |
2562 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2563 | SET_MAKE= |
2564 | else | |
ad6254c5 AK |
2565 | echo "$as_me:$LINENO: result: no" >&5 |
2566 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2567 | SET_MAKE="MAKE=${MAKE-make}" |
2568 | fi | |
2569 | ||
ad6254c5 AK |
2570 | if test -n "$ac_tool_prefix"; then |
2571 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2572 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2575 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2577 | else |
2578 | if test -n "$RANLIB"; then | |
2579 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2580 | else | |
ad6254c5 AK |
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2582 | for as_dir in $PATH | |
2583 | do | |
2584 | IFS=$as_save_IFS | |
2585 | test -z "$as_dir" && as_dir=. | |
2586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2588 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2590 | break 2 | |
2591 | fi | |
2592 | done | |
2593 | done | |
2594 | ||
795ca3e5 AK |
2595 | fi |
2596 | fi | |
ad6254c5 | 2597 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2598 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2599 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2600 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2601 | else |
ad6254c5 AK |
2602 | echo "$as_me:$LINENO: result: no" >&5 |
2603 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2604 | fi |
2605 | ||
795ca3e5 | 2606 | fi |
ad6254c5 AK |
2607 | if test -z "$ac_cv_prog_RANLIB"; then |
2608 | ac_ct_RANLIB=$RANLIB | |
2609 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2610 | set dummy ranlib; ac_word=$2 | |
2611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2613 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2615 | else |
ad6254c5 AK |
2616 | if test -n "$ac_ct_RANLIB"; then |
2617 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2618 | else | |
2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2620 | for as_dir in $PATH | |
2621 | do | |
2622 | IFS=$as_save_IFS | |
2623 | test -z "$as_dir" && as_dir=. | |
2624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2626 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2628 | break 2 | |
2629 | fi | |
2630 | done | |
795ca3e5 | 2631 | done |
8106cdd5 | 2632 | |
ad6254c5 | 2633 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2634 | fi |
80992638 | 2635 | fi |
ad6254c5 AK |
2636 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2637 | if test -n "$ac_ct_RANLIB"; then | |
2638 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2639 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2640 | else |
ad6254c5 AK |
2641 | echo "$as_me:$LINENO: result: no" >&5 |
2642 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2643 | fi |
8106cdd5 | 2644 | |
ad6254c5 | 2645 | RANLIB=$ac_ct_RANLIB |
80992638 | 2646 | else |
ad6254c5 | 2647 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2648 | fi |
795ca3e5 | 2649 | |
8a2fc586 AK |
2650 | # Extract the first word of "cflow", so it can be a program name with args. |
2651 | set dummy cflow; ac_word=$2 | |
2652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2654 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then | |
2655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2656 | else | |
2657 | case $CFLOW_CMD in | |
2658 | [\\/]* | ?:[\\/]*) | |
2659 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
2660 | ;; | |
2661 | *) | |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
2667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2669 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2671 | break 2 | |
2672 | fi | |
2673 | done | |
2674 | done | |
2675 | ||
2676 | ;; | |
2677 | esac | |
2678 | fi | |
2679 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
2680 | ||
2681 | if test -n "$CFLOW_CMD"; then | |
2682 | echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 | |
2683 | echo "${ECHO_T}$CFLOW_CMD" >&6 | |
2684 | else | |
2685 | echo "$as_me:$LINENO: result: no" >&5 | |
2686 | echo "${ECHO_T}no" >&6 | |
2687 | fi | |
2688 | ||
2689 | # Extract the first word of "cscope", so it can be a program name with args. | |
2690 | set dummy cscope; ac_word=$2 | |
2691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2693 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then | |
2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2695 | else | |
2696 | case $CSCOPE_CMD in | |
2697 | [\\/]* | ?:[\\/]*) | |
2698 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
2699 | ;; | |
2700 | *) | |
2701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2702 | for as_dir in $PATH | |
2703 | do | |
2704 | IFS=$as_save_IFS | |
2705 | test -z "$as_dir" && as_dir=. | |
2706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2708 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2710 | break 2 | |
2711 | fi | |
2712 | done | |
2713 | done | |
2714 | ||
2715 | ;; | |
2716 | esac | |
2717 | fi | |
2718 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
2719 | ||
2720 | if test -n "$CSCOPE_CMD"; then | |
2721 | echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 | |
2722 | echo "${ECHO_T}$CSCOPE_CMD" >&6 | |
2723 | else | |
2724 | echo "$as_me:$LINENO: result: no" >&5 | |
2725 | echo "${ECHO_T}no" >&6 | |
2726 | fi | |
2727 | ||
795ca3e5 | 2728 | |
ad6254c5 AK |
2729 | ################################################################################ |
2730 | ||
2731 | ||
2732 | ||
2733 | ||
2734 | ||
2735 | ||
2736 | ac_header_dirent=no | |
2737 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2738 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2739 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2740 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2743 | else |
ad6254c5 | 2744 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2745 | /* confdefs.h. */ |
2746 | _ACEOF | |
2747 | cat confdefs.h >>conftest.$ac_ext | |
2748 | cat >>conftest.$ac_ext <<_ACEOF | |
2749 | /* end confdefs.h. */ | |
2750 | #include <sys/types.h> | |
2751 | #include <$ac_hdr> | |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | if ((DIR *) 0) | |
2757 | return 0; | |
2758 | ; | |
2759 | return 0; | |
2760 | } | |
2761 | _ACEOF | |
2762 | rm -f conftest.$ac_objext | |
2763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2764 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2765 | ac_status=$? |
8a2fc586 AK |
2766 | grep -v '^ *+' conftest.er1 >conftest.err |
2767 | rm -f conftest.er1 | |
2768 | cat conftest.err >&5 | |
ad6254c5 AK |
2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2770 | (exit $ac_status); } && | |
8a2fc586 AK |
2771 | { ac_try='test -z "$ac_c_werror_flag" |
2772 | || test ! -s conftest.err' | |
2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2774 | (eval $ac_try) 2>&5 | |
2775 | ac_status=$? | |
2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2777 | (exit $ac_status); }; } && | |
2778 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2780 | (eval $ac_try) 2>&5 | |
2781 | ac_status=$? | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); }; }; then | |
2784 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2785 | else |
ad6254c5 AK |
2786 | echo "$as_me: failed program was:" >&5 |
2787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2788 | ||
2789 | eval "$as_ac_Header=no" | |
795ca3e5 | 2790 | fi |
8a2fc586 | 2791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 2792 | fi |
ad6254c5 AK |
2793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2795 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2796 | cat >>confdefs.h <<_ACEOF | |
2797 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2798 | _ACEOF | |
2799 | ||
2800 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2801 | fi |
8106cdd5 | 2802 | |
ad6254c5 AK |
2803 | done |
2804 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2805 | if test $ac_header_dirent = dirent.h; then | |
2806 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2807 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2808 | if test "${ac_cv_search_opendir+set}" = set; then | |
2809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2810 | else |
ad6254c5 AK |
2811 | ac_func_search_save_LIBS=$LIBS |
2812 | ac_cv_search_opendir=no | |
2813 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2814 | /* confdefs.h. */ |
2815 | _ACEOF | |
2816 | cat confdefs.h >>conftest.$ac_ext | |
2817 | cat >>conftest.$ac_ext <<_ACEOF | |
2818 | /* end confdefs.h. */ | |
2819 | ||
2820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2821 | #ifdef __cplusplus | |
2822 | extern "C" | |
2823 | #endif | |
2824 | /* We use char because int might match the return type of a gcc2 | |
2825 | builtin and then its argument prototype would still apply. */ | |
2826 | char opendir (); | |
2827 | int | |
2828 | main () | |
2829 | { | |
2830 | opendir (); | |
2831 | ; | |
2832 | return 0; | |
2833 | } | |
2834 | _ACEOF | |
2835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2837 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2838 | ac_status=$? |
8a2fc586 AK |
2839 | grep -v '^ *+' conftest.er1 >conftest.err |
2840 | rm -f conftest.er1 | |
2841 | cat conftest.err >&5 | |
ad6254c5 AK |
2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2843 | (exit $ac_status); } && | |
8a2fc586 AK |
2844 | { ac_try='test -z "$ac_c_werror_flag" |
2845 | || test ! -s conftest.err' | |
2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2847 | (eval $ac_try) 2>&5 | |
2848 | ac_status=$? | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); }; } && | |
2851 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2853 | (eval $ac_try) 2>&5 | |
2854 | ac_status=$? | |
2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2856 | (exit $ac_status); }; }; then | |
2857 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2858 | else |
ad6254c5 AK |
2859 | echo "$as_me: failed program was:" >&5 |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2861 | ||
2862 | fi | |
8a2fc586 AK |
2863 | rm -f conftest.err conftest.$ac_objext \ |
2864 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2865 | if test "$ac_cv_search_opendir" = no; then |
2866 | for ac_lib in dir; do | |
2867 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2868 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2869 | /* confdefs.h. */ |
2870 | _ACEOF | |
2871 | cat confdefs.h >>conftest.$ac_ext | |
2872 | cat >>conftest.$ac_ext <<_ACEOF | |
2873 | /* end confdefs.h. */ | |
795ca3e5 | 2874 | |
ad6254c5 AK |
2875 | /* Override any gcc2 internal prototype to avoid an error. */ |
2876 | #ifdef __cplusplus | |
2877 | extern "C" | |
2878 | #endif | |
2879 | /* We use char because int might match the return type of a gcc2 | |
2880 | builtin and then its argument prototype would still apply. */ | |
2881 | char opendir (); | |
2882 | int | |
2883 | main () | |
2884 | { | |
2885 | opendir (); | |
2886 | ; | |
2887 | return 0; | |
2888 | } | |
2889 | _ACEOF | |
2890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2892 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2893 | ac_status=$? |
8a2fc586 AK |
2894 | grep -v '^ *+' conftest.er1 >conftest.err |
2895 | rm -f conftest.er1 | |
2896 | cat conftest.err >&5 | |
ad6254c5 AK |
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2898 | (exit $ac_status); } && | |
8a2fc586 AK |
2899 | { ac_try='test -z "$ac_c_werror_flag" |
2900 | || test ! -s conftest.err' | |
2901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2902 | (eval $ac_try) 2>&5 | |
2903 | ac_status=$? | |
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2905 | (exit $ac_status); }; } && | |
2906 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2908 | (eval $ac_try) 2>&5 | |
2909 | ac_status=$? | |
2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2911 | (exit $ac_status); }; }; then | |
2912 | ac_cv_search_opendir="-l$ac_lib" | |
2913 | break | |
795ca3e5 | 2914 | else |
ad6254c5 AK |
2915 | echo "$as_me: failed program was:" >&5 |
2916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2917 | |
2918 | fi | |
8a2fc586 AK |
2919 | rm -f conftest.err conftest.$ac_objext \ |
2920 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2921 | done |
795ca3e5 | 2922 | fi |
ad6254c5 AK |
2923 | LIBS=$ac_func_search_save_LIBS |
2924 | fi | |
2925 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2926 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2927 | if test "$ac_cv_search_opendir" != no; then | |
2928 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2929 | |
2930 | fi | |
2931 | ||
795ca3e5 | 2932 | else |
ad6254c5 AK |
2933 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2934 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2935 | if test "${ac_cv_search_opendir+set}" = set; then | |
2936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2937 | else | |
2938 | ac_func_search_save_LIBS=$LIBS | |
2939 | ac_cv_search_opendir=no | |
2940 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2941 | /* confdefs.h. */ |
2942 | _ACEOF | |
2943 | cat confdefs.h >>conftest.$ac_ext | |
2944 | cat >>conftest.$ac_ext <<_ACEOF | |
2945 | /* end confdefs.h. */ | |
80992638 | 2946 | |
ad6254c5 AK |
2947 | /* Override any gcc2 internal prototype to avoid an error. */ |
2948 | #ifdef __cplusplus | |
2949 | extern "C" | |
2950 | #endif | |
2951 | /* We use char because int might match the return type of a gcc2 | |
2952 | builtin and then its argument prototype would still apply. */ | |
2953 | char opendir (); | |
2954 | int | |
2955 | main () | |
2956 | { | |
2957 | opendir (); | |
2958 | ; | |
2959 | return 0; | |
2960 | } | |
2961 | _ACEOF | |
2962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2964 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2965 | ac_status=$? |
8a2fc586 AK |
2966 | grep -v '^ *+' conftest.er1 >conftest.err |
2967 | rm -f conftest.er1 | |
2968 | cat conftest.err >&5 | |
ad6254c5 AK |
2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2970 | (exit $ac_status); } && | |
8a2fc586 AK |
2971 | { ac_try='test -z "$ac_c_werror_flag" |
2972 | || test ! -s conftest.err' | |
2973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2974 | (eval $ac_try) 2>&5 | |
2975 | ac_status=$? | |
2976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2977 | (exit $ac_status); }; } && | |
2978 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2980 | (eval $ac_try) 2>&5 | |
2981 | ac_status=$? | |
2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2983 | (exit $ac_status); }; }; then | |
2984 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2985 | else |
ad6254c5 AK |
2986 | echo "$as_me: failed program was:" >&5 |
2987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2988 | ||
2989 | fi | |
8a2fc586 AK |
2990 | rm -f conftest.err conftest.$ac_objext \ |
2991 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2992 | if test "$ac_cv_search_opendir" = no; then |
2993 | for ac_lib in x; do | |
2994 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2995 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2996 | /* confdefs.h. */ |
2997 | _ACEOF | |
2998 | cat confdefs.h >>conftest.$ac_ext | |
2999 | cat >>conftest.$ac_ext <<_ACEOF | |
3000 | /* end confdefs.h. */ | |
3001 | ||
3002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3003 | #ifdef __cplusplus | |
3004 | extern "C" | |
3005 | #endif | |
3006 | /* We use char because int might match the return type of a gcc2 | |
3007 | builtin and then its argument prototype would still apply. */ | |
3008 | char opendir (); | |
3009 | int | |
3010 | main () | |
3011 | { | |
3012 | opendir (); | |
3013 | ; | |
3014 | return 0; | |
3015 | } | |
3016 | _ACEOF | |
3017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 3019 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 3020 | ac_status=$? |
8a2fc586 AK |
3021 | grep -v '^ *+' conftest.er1 >conftest.err |
3022 | rm -f conftest.er1 | |
3023 | cat conftest.err >&5 | |
ad6254c5 AK |
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3025 | (exit $ac_status); } && | |
8a2fc586 AK |
3026 | { ac_try='test -z "$ac_c_werror_flag" |
3027 | || test ! -s conftest.err' | |
3028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3029 | (eval $ac_try) 2>&5 | |
3030 | ac_status=$? | |
3031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3032 | (exit $ac_status); }; } && | |
3033 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
3034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3035 | (eval $ac_try) 2>&5 | |
3036 | ac_status=$? | |
3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3038 | (exit $ac_status); }; }; then | |
3039 | ac_cv_search_opendir="-l$ac_lib" | |
3040 | break | |
3041 | else | |
3042 | echo "$as_me: failed program was:" >&5 | |
3043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 3044 | |
795ca3e5 | 3045 | fi |
8a2fc586 AK |
3046 | rm -f conftest.err conftest.$ac_objext \ |
3047 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
3048 | done |
3049 | fi | |
3050 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 3051 | fi |
ad6254c5 AK |
3052 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3053 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3054 | if test "$ac_cv_search_opendir" != no; then | |
3055 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 3056 | |
ad6254c5 | 3057 | fi |
8106cdd5 | 3058 | |
795ca3e5 | 3059 | fi |
8106cdd5 | 3060 | |
ad6254c5 AK |
3061 | ac_ext=c |
3062 | ac_cpp='$CPP $CPPFLAGS' | |
3063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3066 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3067 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3068 | # On Suns, sometimes $CPP names a directory. | |
3069 | if test -n "$CPP" && test -d "$CPP"; then | |
3070 | CPP= | |
3071 | fi | |
3072 | if test -z "$CPP"; then | |
3073 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3075 | else | |
3076 | # Double quotes because CPP needs to be expanded | |
3077 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3078 | do | |
3079 | ac_preproc_ok=false | |
3080 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3081 | do |
ad6254c5 AK |
3082 | # Use a header file that comes with gcc, so configuring glibc |
3083 | # with a fresh cross-compiler works. | |
3084 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3085 | # <limits.h> exists even on freestanding compilers. | |
3086 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3087 | # not just through cpp. "Syntax error" is here to catch this case. | |
3088 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3089 | /* confdefs.h. */ |
3090 | _ACEOF | |
3091 | cat confdefs.h >>conftest.$ac_ext | |
3092 | cat >>conftest.$ac_ext <<_ACEOF | |
3093 | /* end confdefs.h. */ | |
3094 | #ifdef __STDC__ | |
3095 | # include <limits.h> | |
3096 | #else | |
3097 | # include <assert.h> | |
3098 | #endif | |
8a2fc586 | 3099 | Syntax error |
ad6254c5 AK |
3100 | _ACEOF |
3101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3103 | ac_status=$? | |
3104 | grep -v '^ *+' conftest.er1 >conftest.err | |
3105 | rm -f conftest.er1 | |
3106 | cat conftest.err >&5 | |
3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3108 | (exit $ac_status); } >/dev/null; then | |
3109 | if test -s conftest.err; then | |
3110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3112 | else |
3113 | ac_cpp_err= | |
3114 | fi | |
3115 | else | |
3116 | ac_cpp_err=yes | |
8106cdd5 | 3117 | fi |
ad6254c5 AK |
3118 | if test -z "$ac_cpp_err"; then |
3119 | : | |
3120 | else | |
3121 | echo "$as_me: failed program was:" >&5 | |
3122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3123 | ||
3124 | # Broken: fails on valid input. | |
3125 | continue | |
3126 | fi | |
3127 | rm -f conftest.err conftest.$ac_ext | |
3128 | ||
3129 | # OK, works on sane cases. Now check whether non-existent headers | |
3130 | # can be detected and how. | |
3131 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3132 | /* confdefs.h. */ |
3133 | _ACEOF | |
3134 | cat confdefs.h >>conftest.$ac_ext | |
3135 | cat >>conftest.$ac_ext <<_ACEOF | |
3136 | /* end confdefs.h. */ | |
3137 | #include <ac_nonexistent.h> | |
3138 | _ACEOF | |
3139 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3140 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3141 | ac_status=$? | |
3142 | grep -v '^ *+' conftest.er1 >conftest.err | |
3143 | rm -f conftest.er1 | |
3144 | cat conftest.err >&5 | |
3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3146 | (exit $ac_status); } >/dev/null; then | |
3147 | if test -s conftest.err; then | |
3148 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3149 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3150 | else |
3151 | ac_cpp_err= | |
3152 | fi | |
3153 | else | |
3154 | ac_cpp_err=yes | |
8106cdd5 | 3155 | fi |
ad6254c5 AK |
3156 | if test -z "$ac_cpp_err"; then |
3157 | # Broken: success on invalid input. | |
3158 | continue | |
80992638 | 3159 | else |
ad6254c5 AK |
3160 | echo "$as_me: failed program was:" >&5 |
3161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3162 | ||
3163 | # Passes both tests. | |
3164 | ac_preproc_ok=: | |
3165 | break | |
795ca3e5 | 3166 | fi |
ad6254c5 AK |
3167 | rm -f conftest.err conftest.$ac_ext |
3168 | ||
795ca3e5 | 3169 | done |
ad6254c5 AK |
3170 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3171 | rm -f conftest.err conftest.$ac_ext | |
3172 | if $ac_preproc_ok; then | |
3173 | break | |
3174 | fi | |
795ca3e5 | 3175 | |
ad6254c5 AK |
3176 | done |
3177 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3178 | |
ad6254c5 AK |
3179 | fi |
3180 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3181 | else |
ad6254c5 | 3182 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3183 | fi |
ad6254c5 AK |
3184 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3185 | echo "${ECHO_T}$CPP" >&6 | |
3186 | ac_preproc_ok=false | |
3187 | for ac_c_preproc_warn_flag in '' yes | |
3188 | do | |
3189 | # Use a header file that comes with gcc, so configuring glibc | |
3190 | # with a fresh cross-compiler works. | |
3191 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3192 | # <limits.h> exists even on freestanding compilers. | |
3193 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3194 | # not just through cpp. "Syntax error" is here to catch this case. | |
3195 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3196 | /* confdefs.h. */ |
3197 | _ACEOF | |
3198 | cat confdefs.h >>conftest.$ac_ext | |
3199 | cat >>conftest.$ac_ext <<_ACEOF | |
3200 | /* end confdefs.h. */ | |
3201 | #ifdef __STDC__ | |
3202 | # include <limits.h> | |
3203 | #else | |
3204 | # include <assert.h> | |
3205 | #endif | |
8a2fc586 | 3206 | Syntax error |
ad6254c5 AK |
3207 | _ACEOF |
3208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3210 | ac_status=$? | |
3211 | grep -v '^ *+' conftest.er1 >conftest.err | |
3212 | rm -f conftest.er1 | |
3213 | cat conftest.err >&5 | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3215 | (exit $ac_status); } >/dev/null; then | |
3216 | if test -s conftest.err; then | |
3217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3219 | else |
3220 | ac_cpp_err= | |
3221 | fi | |
3222 | else | |
3223 | ac_cpp_err=yes | |
795ca3e5 | 3224 | fi |
ad6254c5 AK |
3225 | if test -z "$ac_cpp_err"; then |
3226 | : | |
3227 | else | |
3228 | echo "$as_me: failed program was:" >&5 | |
3229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3230 | ||
3231 | # Broken: fails on valid input. | |
3232 | continue | |
3233 | fi | |
3234 | rm -f conftest.err conftest.$ac_ext | |
3235 | ||
3236 | # OK, works on sane cases. Now check whether non-existent headers | |
3237 | # can be detected and how. | |
3238 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3239 | /* confdefs.h. */ |
3240 | _ACEOF | |
3241 | cat confdefs.h >>conftest.$ac_ext | |
3242 | cat >>conftest.$ac_ext <<_ACEOF | |
3243 | /* end confdefs.h. */ | |
3244 | #include <ac_nonexistent.h> | |
3245 | _ACEOF | |
3246 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3247 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3248 | ac_status=$? | |
3249 | grep -v '^ *+' conftest.er1 >conftest.err | |
3250 | rm -f conftest.er1 | |
3251 | cat conftest.err >&5 | |
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3253 | (exit $ac_status); } >/dev/null; then | |
3254 | if test -s conftest.err; then | |
3255 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3256 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3257 | else |
3258 | ac_cpp_err= | |
3259 | fi | |
3260 | else | |
3261 | ac_cpp_err=yes | |
3262 | fi | |
3263 | if test -z "$ac_cpp_err"; then | |
3264 | # Broken: success on invalid input. | |
3265 | continue | |
3266 | else | |
3267 | echo "$as_me: failed program was:" >&5 | |
3268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3269 | |
ad6254c5 AK |
3270 | # Passes both tests. |
3271 | ac_preproc_ok=: | |
3272 | break | |
795ca3e5 | 3273 | fi |
ad6254c5 | 3274 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3275 | |
ad6254c5 AK |
3276 | done |
3277 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3278 | rm -f conftest.err conftest.$ac_ext | |
3279 | if $ac_preproc_ok; then | |
3280 | : | |
795ca3e5 | 3281 | else |
ad6254c5 AK |
3282 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3283 | See \`config.log' for more details." >&5 | |
3284 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3285 | See \`config.log' for more details." >&2;} | |
3286 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3287 | fi |
795ca3e5 | 3288 | |
ad6254c5 AK |
3289 | ac_ext=c |
3290 | ac_cpp='$CPP $CPPFLAGS' | |
3291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3294 | ||
3295 | ||
3296 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3297 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3298 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3300 | else | |
3301 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3302 | then ac_cv_prog_egrep='grep -E' | |
3303 | else ac_cv_prog_egrep='egrep' | |
3304 | fi | |
795ca3e5 | 3305 | fi |
ad6254c5 AK |
3306 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3307 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3308 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3309 | |
795ca3e5 | 3310 | |
ad6254c5 AK |
3311 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3312 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3313 | if test "${ac_cv_header_stdc+set}" = set; then | |
3314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3315 | else |
ad6254c5 | 3316 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3317 | /* confdefs.h. */ |
3318 | _ACEOF | |
3319 | cat confdefs.h >>conftest.$ac_ext | |
3320 | cat >>conftest.$ac_ext <<_ACEOF | |
3321 | /* end confdefs.h. */ | |
80992638 | 3322 | #include <stdlib.h> |
ad6254c5 AK |
3323 | #include <stdarg.h> |
3324 | #include <string.h> | |
3325 | #include <float.h> | |
3326 | ||
3327 | int | |
3328 | main () | |
3329 | { | |
3330 | ||
3331 | ; | |
3332 | return 0; | |
3333 | } | |
3334 | _ACEOF | |
3335 | rm -f conftest.$ac_objext | |
3336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3337 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3338 | ac_status=$? |
8a2fc586 AK |
3339 | grep -v '^ *+' conftest.er1 >conftest.err |
3340 | rm -f conftest.er1 | |
3341 | cat conftest.err >&5 | |
ad6254c5 AK |
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3343 | (exit $ac_status); } && | |
8a2fc586 AK |
3344 | { ac_try='test -z "$ac_c_werror_flag" |
3345 | || test ! -s conftest.err' | |
3346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3347 | (eval $ac_try) 2>&5 | |
3348 | ac_status=$? | |
3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3350 | (exit $ac_status); }; } && | |
3351 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
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); }; }; then | |
3357 | ac_cv_header_stdc=yes | |
795ca3e5 | 3358 | else |
ad6254c5 AK |
3359 | echo "$as_me: failed program was:" >&5 |
3360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3361 | ||
3362 | ac_cv_header_stdc=no | |
795ca3e5 | 3363 | fi |
8a2fc586 | 3364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3365 | |
3366 | if test $ac_cv_header_stdc = yes; then | |
3367 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3368 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3369 | /* confdefs.h. */ |
3370 | _ACEOF | |
3371 | cat confdefs.h >>conftest.$ac_ext | |
3372 | cat >>conftest.$ac_ext <<_ACEOF | |
3373 | /* end confdefs.h. */ | |
3374 | #include <string.h> | |
8106cdd5 | 3375 | |
ad6254c5 AK |
3376 | _ACEOF |
3377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3378 | $EGREP "memchr" >/dev/null 2>&1; then | |
3379 | : | |
3380 | else | |
3381 | ac_cv_header_stdc=no | |
80992638 | 3382 | fi |
ad6254c5 | 3383 | rm -f conftest* |
795ca3e5 AK |
3384 | |
3385 | fi | |
3386 | ||
ad6254c5 AK |
3387 | if test $ac_cv_header_stdc = yes; then |
3388 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3389 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3390 | /* confdefs.h. */ |
3391 | _ACEOF | |
3392 | cat confdefs.h >>conftest.$ac_ext | |
3393 | cat >>conftest.$ac_ext <<_ACEOF | |
3394 | /* end confdefs.h. */ | |
80992638 | 3395 | #include <stdlib.h> |
ad6254c5 AK |
3396 | |
3397 | _ACEOF | |
80992638 | 3398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3399 | $EGREP "free" >/dev/null 2>&1; then |
3400 | : | |
795ca3e5 | 3401 | else |
ad6254c5 | 3402 | ac_cv_header_stdc=no |
795ca3e5 | 3403 | fi |
80992638 | 3404 | rm -f conftest* |
8106cdd5 | 3405 | |
795ca3e5 AK |
3406 | fi |
3407 | ||
ad6254c5 AK |
3408 | if test $ac_cv_header_stdc = yes; then |
3409 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3410 | if test "$cross_compiling" = yes; then | |
3411 | : | |
795ca3e5 | 3412 | else |
ad6254c5 | 3413 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3414 | /* confdefs.h. */ |
3415 | _ACEOF | |
3416 | cat confdefs.h >>conftest.$ac_ext | |
3417 | cat >>conftest.$ac_ext <<_ACEOF | |
3418 | /* end confdefs.h. */ | |
3419 | #include <ctype.h> | |
3420 | #if ((' ' & 0x0FF) == 0x020) | |
3421 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3422 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3423 | #else | |
3424 | # define ISLOWER(c) \ | |
8a2fc586 AK |
3425 | (('a' <= (c) && (c) <= 'i') \ |
3426 | || ('j' <= (c) && (c) <= 'r') \ | |
3427 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3428 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3429 | #endif |
ad6254c5 AK |
3430 | |
3431 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3432 | int | |
3433 | main () | |
3434 | { | |
3435 | int i; | |
3436 | for (i = 0; i < 256; i++) | |
3437 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 3438 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3439 | exit(2); |
3440 | exit (0); | |
3441 | } | |
3442 | _ACEOF | |
3443 | rm -f conftest$ac_exeext | |
3444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3445 | (eval $ac_link) 2>&5 | |
3446 | ac_status=$? | |
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3450 | (eval $ac_try) 2>&5 | |
3451 | ac_status=$? | |
3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3453 | (exit $ac_status); }; }; then | |
3454 | : | |
795ca3e5 | 3455 | else |
ad6254c5 AK |
3456 | echo "$as_me: program exited with status $ac_status" >&5 |
3457 | echo "$as_me: failed program was:" >&5 | |
3458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3459 | |
ad6254c5 AK |
3460 | ( exit $ac_status ) |
3461 | ac_cv_header_stdc=no | |
80992638 | 3462 | fi |
8a2fc586 | 3463 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3464 | fi |
3465 | fi | |
3466 | fi | |
3467 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3468 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3469 | if test $ac_cv_header_stdc = yes; then | |
3470 | ||
3471 | cat >>confdefs.h <<\_ACEOF | |
3472 | #define STDC_HEADERS 1 | |
3473 | _ACEOF | |
795ca3e5 AK |
3474 | |
3475 | fi | |
3476 | ||
ad6254c5 AK |
3477 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3478 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3479 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3481 | else |
ad6254c5 | 3482 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3483 | /* confdefs.h. */ |
3484 | _ACEOF | |
3485 | cat confdefs.h >>conftest.$ac_ext | |
3486 | cat >>conftest.$ac_ext <<_ACEOF | |
3487 | /* end confdefs.h. */ | |
80992638 | 3488 | #include <sys/types.h> |
ad6254c5 AK |
3489 | #include <sys/wait.h> |
3490 | #ifndef WEXITSTATUS | |
3491 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3492 | #endif | |
3493 | #ifndef WIFEXITED | |
3494 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3495 | #endif | |
3496 | ||
3497 | int | |
3498 | main () | |
3499 | { | |
3500 | int s; | |
3501 | wait (&s); | |
3502 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3503 | ; | |
3504 | return 0; | |
3505 | } | |
3506 | _ACEOF | |
3507 | rm -f conftest.$ac_objext | |
3508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3509 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3510 | ac_status=$? |
8a2fc586 AK |
3511 | grep -v '^ *+' conftest.er1 >conftest.err |
3512 | rm -f conftest.er1 | |
3513 | cat conftest.err >&5 | |
ad6254c5 AK |
3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3515 | (exit $ac_status); } && | |
8a2fc586 AK |
3516 | { ac_try='test -z "$ac_c_werror_flag" |
3517 | || test ! -s conftest.err' | |
3518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3519 | (eval $ac_try) 2>&5 | |
3520 | ac_status=$? | |
3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3522 | (exit $ac_status); }; } && | |
3523 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3525 | (eval $ac_try) 2>&5 | |
3526 | ac_status=$? | |
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3528 | (exit $ac_status); }; }; then | |
3529 | ac_cv_header_sys_wait_h=yes | |
3530 | else | |
3531 | echo "$as_me: failed program was:" >&5 | |
3532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3533 | ||
3534 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3535 | fi |
8a2fc586 | 3536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3537 | fi |
ad6254c5 AK |
3538 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3539 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3540 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3541 | |
ad6254c5 AK |
3542 | cat >>confdefs.h <<\_ACEOF |
3543 | #define HAVE_SYS_WAIT_H 1 | |
3544 | _ACEOF | |
795ca3e5 AK |
3545 | |
3546 | fi | |
3547 | ||
ad6254c5 AK |
3548 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3549 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3550 | if test "${ac_cv_header_time+set}" = set; then | |
3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3552 | else |
ad6254c5 | 3553 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3554 | /* confdefs.h. */ |
3555 | _ACEOF | |
3556 | cat confdefs.h >>conftest.$ac_ext | |
3557 | cat >>conftest.$ac_ext <<_ACEOF | |
3558 | /* end confdefs.h. */ | |
795ca3e5 AK |
3559 | #include <sys/types.h> |
3560 | #include <sys/time.h> | |
3561 | #include <time.h> | |
ad6254c5 AK |
3562 | |
3563 | int | |
3564 | main () | |
3565 | { | |
3566 | if ((struct tm *) 0) | |
3567 | return 0; | |
3568 | ; | |
3569 | return 0; | |
3570 | } | |
3571 | _ACEOF | |
3572 | rm -f conftest.$ac_objext | |
3573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3574 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3575 | ac_status=$? |
8a2fc586 AK |
3576 | grep -v '^ *+' conftest.er1 >conftest.err |
3577 | rm -f conftest.er1 | |
3578 | cat conftest.err >&5 | |
ad6254c5 AK |
3579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3580 | (exit $ac_status); } && | |
8a2fc586 AK |
3581 | { ac_try='test -z "$ac_c_werror_flag" |
3582 | || test ! -s conftest.err' | |
3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3584 | (eval $ac_try) 2>&5 | |
3585 | ac_status=$? | |
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3587 | (exit $ac_status); }; } && | |
3588 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3590 | (eval $ac_try) 2>&5 | |
3591 | ac_status=$? | |
3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3593 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3594 | ac_cv_header_time=yes |
3595 | else | |
ad6254c5 AK |
3596 | echo "$as_me: failed program was:" >&5 |
3597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3598 | ||
3599 | ac_cv_header_time=no | |
795ca3e5 | 3600 | fi |
8a2fc586 | 3601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3602 | fi |
ad6254c5 AK |
3603 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3604 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3605 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3606 | |
3607 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3608 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3609 | _ACEOF |
b896caa1 | 3610 | |
8106cdd5 | 3611 | fi |
b896caa1 | 3612 | |
b896caa1 | 3613 | |
ad6254c5 | 3614 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3615 | |
b896caa1 AK |
3616 | |
3617 | ||
795ca3e5 | 3618 | |
8106cdd5 | 3619 | |
80992638 | 3620 | |
795ca3e5 | 3621 | |
a38df97f | 3622 | |
80992638 | 3623 | |
ad6254c5 | 3624 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 3625 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3626 | do |
3627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3632 | else | |
3633 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3634 | /* confdefs.h. */ |
3635 | _ACEOF | |
3636 | cat confdefs.h >>conftest.$ac_ext | |
3637 | cat >>conftest.$ac_ext <<_ACEOF | |
3638 | /* end confdefs.h. */ | |
3639 | $ac_includes_default | |
3640 | ||
3641 | #include <$ac_header> | |
3642 | _ACEOF | |
3643 | rm -f conftest.$ac_objext | |
3644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3645 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3646 | ac_status=$? |
8a2fc586 AK |
3647 | grep -v '^ *+' conftest.er1 >conftest.err |
3648 | rm -f conftest.er1 | |
3649 | cat conftest.err >&5 | |
ad6254c5 AK |
3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3651 | (exit $ac_status); } && | |
8a2fc586 AK |
3652 | { ac_try='test -z "$ac_c_werror_flag" |
3653 | || test ! -s conftest.err' | |
3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3655 | (eval $ac_try) 2>&5 | |
3656 | ac_status=$? | |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3658 | (exit $ac_status); }; } && | |
3659 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3661 | (eval $ac_try) 2>&5 | |
3662 | ac_status=$? | |
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3664 | (exit $ac_status); }; }; then | |
3665 | eval "$as_ac_Header=yes" | |
3666 | else | |
3667 | echo "$as_me: failed program was:" >&5 | |
3668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3669 | |
ad6254c5 AK |
3670 | eval "$as_ac_Header=no" |
3671 | fi | |
8a2fc586 | 3672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3673 | fi |
ad6254c5 AK |
3674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3676 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3677 | cat >>confdefs.h <<_ACEOF | |
3678 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3679 | _ACEOF | |
a38df97f | 3680 | |
80992638 AK |
3681 | fi |
3682 | ||
ad6254c5 AK |
3683 | done |
3684 | ||
7d1552c9 | 3685 | |
7d1552c9 | 3686 | |
80992638 | 3687 | |
5a52dca9 | 3688 | |
5a52dca9 | 3689 | |
ad6254c5 AK |
3690 | |
3691 | ||
3692 | ||
3693 | ||
3694 | ||
3695 | for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h | |
3696 | do | |
3697 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3703 | fi | |
3704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3706 | else | |
3707 | # Is the header compilable? | |
3708 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3709 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3710 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3711 | /* confdefs.h. */ |
3712 | _ACEOF | |
3713 | cat confdefs.h >>conftest.$ac_ext | |
3714 | cat >>conftest.$ac_ext <<_ACEOF | |
3715 | /* end confdefs.h. */ | |
3716 | $ac_includes_default | |
3717 | #include <$ac_header> | |
3718 | _ACEOF | |
3719 | rm -f conftest.$ac_objext | |
3720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3721 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3722 | ac_status=$? |
8a2fc586 AK |
3723 | grep -v '^ *+' conftest.er1 >conftest.err |
3724 | rm -f conftest.er1 | |
3725 | cat conftest.err >&5 | |
ad6254c5 AK |
3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3727 | (exit $ac_status); } && | |
8a2fc586 AK |
3728 | { ac_try='test -z "$ac_c_werror_flag" |
3729 | || test ! -s conftest.err' | |
3730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3731 | (eval $ac_try) 2>&5 | |
3732 | ac_status=$? | |
3733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3734 | (exit $ac_status); }; } && | |
3735 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3737 | (eval $ac_try) 2>&5 | |
3738 | ac_status=$? | |
3739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3740 | (exit $ac_status); }; }; then | |
3741 | ac_header_compiler=yes | |
3742 | else | |
3743 | echo "$as_me: failed program was:" >&5 | |
3744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3745 | ||
3746 | ac_header_compiler=no | |
3747 | fi | |
8a2fc586 | 3748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3749 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3750 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3751 | ||
3752 | # Is the header present? | |
3753 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3754 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3755 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3756 | /* confdefs.h. */ |
3757 | _ACEOF | |
3758 | cat confdefs.h >>conftest.$ac_ext | |
3759 | cat >>conftest.$ac_ext <<_ACEOF | |
3760 | /* end confdefs.h. */ | |
3761 | #include <$ac_header> | |
3762 | _ACEOF | |
3763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3765 | ac_status=$? | |
3766 | grep -v '^ *+' conftest.er1 >conftest.err | |
3767 | rm -f conftest.er1 | |
3768 | cat conftest.err >&5 | |
3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3770 | (exit $ac_status); } >/dev/null; then | |
3771 | if test -s conftest.err; then | |
3772 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3773 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3774 | else |
3775 | ac_cpp_err= | |
3776 | fi | |
3777 | else | |
3778 | ac_cpp_err=yes | |
3779 | fi | |
3780 | if test -z "$ac_cpp_err"; then | |
3781 | ac_header_preproc=yes | |
3782 | else | |
3783 | echo "$as_me: failed program was:" >&5 | |
3784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3785 | ||
3786 | ac_header_preproc=no | |
3787 | fi | |
3788 | rm -f conftest.err conftest.$ac_ext | |
3789 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3790 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3791 | ||
3792 | # So? What about this header? | |
8a2fc586 AK |
3793 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3794 | yes:no: ) | |
ad6254c5 AK |
3795 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3796 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3797 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3798 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3799 | ac_header_preproc=yes | |
ad6254c5 | 3800 | ;; |
8a2fc586 | 3801 | no:yes:* ) |
ad6254c5 AK |
3802 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3803 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3804 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3805 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3806 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3807 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3808 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3809 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3810 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3811 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3812 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3813 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3814 | ( |
3815 | cat <<\_ASBOX | |
8a2fc586 AK |
3816 | ## ------------------------------------------ ## |
3817 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3818 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3819 | _ASBOX |
3820 | ) | | |
3821 | sed "s/^/$as_me: WARNING: /" >&2 | |
3822 | ;; | |
3823 | esac | |
3824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3828 | else | |
8a2fc586 | 3829 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 3830 | fi |
ad6254c5 AK |
3831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3833 | ||
3834 | fi | |
3835 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3836 | cat >>confdefs.h <<_ACEOF | |
3837 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3838 | _ACEOF | |
b896caa1 | 3839 | |
d8ac0fbc | 3840 | else |
ad6254c5 AK |
3841 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3842 | echo "$as_me: error: bailing out" >&2;} | |
3843 | { (exit 1); exit 1; }; } | |
80992638 AK |
3844 | fi |
3845 | ||
ad6254c5 | 3846 | done |
d8ac0fbc | 3847 | |
d8ac0fbc | 3848 | |
d8ac0fbc | 3849 | |
80992638 | 3850 | |
d3c8211f | 3851 | |
d3c8211f | 3852 | |
d3c8211f | 3853 | |
80992638 | 3854 | |
4922197a | 3855 | |
4922197a | 3856 | |
ad6254c5 AK |
3857 | |
3858 | ||
3859 | ||
3860 | for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h | |
3861 | do | |
3862 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3864 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3865 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3868 | fi | |
3869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3870 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3871 | else | |
3872 | # Is the header compilable? | |
3873 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3875 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3876 | /* confdefs.h. */ |
3877 | _ACEOF | |
3878 | cat confdefs.h >>conftest.$ac_ext | |
3879 | cat >>conftest.$ac_ext <<_ACEOF | |
3880 | /* end confdefs.h. */ | |
3881 | $ac_includes_default | |
3882 | #include <$ac_header> | |
3883 | _ACEOF | |
3884 | rm -f conftest.$ac_objext | |
3885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3886 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3887 | ac_status=$? |
8a2fc586 AK |
3888 | grep -v '^ *+' conftest.er1 >conftest.err |
3889 | rm -f conftest.er1 | |
3890 | cat conftest.err >&5 | |
ad6254c5 AK |
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3892 | (exit $ac_status); } && | |
8a2fc586 AK |
3893 | { ac_try='test -z "$ac_c_werror_flag" |
3894 | || test ! -s conftest.err' | |
3895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3896 | (eval $ac_try) 2>&5 | |
3897 | ac_status=$? | |
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3899 | (exit $ac_status); }; } && | |
3900 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3902 | (eval $ac_try) 2>&5 | |
3903 | ac_status=$? | |
3904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3905 | (exit $ac_status); }; }; then | |
3906 | ac_header_compiler=yes | |
3907 | else | |
3908 | echo "$as_me: failed program was:" >&5 | |
3909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3910 | ||
3911 | ac_header_compiler=no | |
3912 | fi | |
8a2fc586 | 3913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3914 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3915 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3916 | ||
3917 | # Is the header present? | |
3918 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3919 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3920 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3921 | /* confdefs.h. */ |
3922 | _ACEOF | |
3923 | cat confdefs.h >>conftest.$ac_ext | |
3924 | cat >>conftest.$ac_ext <<_ACEOF | |
3925 | /* end confdefs.h. */ | |
3926 | #include <$ac_header> | |
3927 | _ACEOF | |
3928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3930 | ac_status=$? | |
3931 | grep -v '^ *+' conftest.er1 >conftest.err | |
3932 | rm -f conftest.er1 | |
3933 | cat conftest.err >&5 | |
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3935 | (exit $ac_status); } >/dev/null; then | |
3936 | if test -s conftest.err; then | |
3937 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3939 | else |
3940 | ac_cpp_err= | |
3941 | fi | |
3942 | else | |
3943 | ac_cpp_err=yes | |
4922197a | 3944 | fi |
ad6254c5 AK |
3945 | if test -z "$ac_cpp_err"; then |
3946 | ac_header_preproc=yes | |
3947 | else | |
3948 | echo "$as_me: failed program was:" >&5 | |
3949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3950 | ||
3951 | ac_header_preproc=no | |
3952 | fi | |
3953 | rm -f conftest.err conftest.$ac_ext | |
3954 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3955 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3956 | ||
3957 | # So? What about this header? | |
8a2fc586 AK |
3958 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3959 | yes:no: ) | |
ad6254c5 AK |
3960 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3961 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3963 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3964 | ac_header_preproc=yes | |
ad6254c5 | 3965 | ;; |
8a2fc586 | 3966 | no:yes:* ) |
ad6254c5 AK |
3967 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3968 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3969 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3970 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3971 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3972 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3973 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3974 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3976 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3977 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3978 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3979 | ( |
3980 | cat <<\_ASBOX | |
8a2fc586 AK |
3981 | ## ------------------------------------------ ## |
3982 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3983 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3984 | _ASBOX |
3985 | ) | | |
3986 | sed "s/^/$as_me: WARNING: /" >&2 | |
3987 | ;; | |
3988 | esac | |
3989 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3991 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3993 | else | |
8a2fc586 | 3994 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
3995 | fi |
3996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3998 | ||
3999 | fi | |
4000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4001 | cat >>confdefs.h <<_ACEOF | |
4002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4003 | _ACEOF | |
4922197a | 4004 | |
4922197a | 4005 | else |
ad6254c5 AK |
4006 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4007 | echo "$as_me: error: bailing out" >&2;} | |
4008 | { (exit 1); exit 1; }; } | |
80992638 AK |
4009 | fi |
4010 | ||
ad6254c5 | 4011 | done |
4922197a | 4012 | |
4922197a | 4013 | |
ad6254c5 AK |
4014 | case "$host_os" in |
4015 | linux*) | |
4922197a | 4016 | |
ad6254c5 AK |
4017 | |
4018 | ||
4019 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4020 | do | |
4021 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4027 | fi | |
4028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 4030 | else |
ad6254c5 AK |
4031 | # Is the header compilable? |
4032 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4033 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4034 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4035 | /* confdefs.h. */ |
4036 | _ACEOF | |
4037 | cat confdefs.h >>conftest.$ac_ext | |
4038 | cat >>conftest.$ac_ext <<_ACEOF | |
4039 | /* end confdefs.h. */ | |
4040 | $ac_includes_default | |
4041 | #include <$ac_header> | |
4042 | _ACEOF | |
4043 | rm -f conftest.$ac_objext | |
4044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4045 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4046 | ac_status=$? |
8a2fc586 AK |
4047 | grep -v '^ *+' conftest.er1 >conftest.err |
4048 | rm -f conftest.er1 | |
4049 | cat conftest.err >&5 | |
ad6254c5 AK |
4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4051 | (exit $ac_status); } && | |
8a2fc586 AK |
4052 | { ac_try='test -z "$ac_c_werror_flag" |
4053 | || test ! -s conftest.err' | |
4054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4055 | (eval $ac_try) 2>&5 | |
4056 | ac_status=$? | |
4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4058 | (exit $ac_status); }; } && | |
4059 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4061 | (eval $ac_try) 2>&5 | |
4062 | ac_status=$? | |
4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4064 | (exit $ac_status); }; }; then | |
4065 | ac_header_compiler=yes | |
4066 | else | |
4067 | echo "$as_me: failed program was:" >&5 | |
4068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4069 | ||
4070 | ac_header_compiler=no | |
4071 | fi | |
8a2fc586 | 4072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4073 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4074 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4075 | ||
4076 | # Is the header present? | |
4077 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4078 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4079 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4080 | /* confdefs.h. */ |
4081 | _ACEOF | |
4082 | cat confdefs.h >>conftest.$ac_ext | |
4083 | cat >>conftest.$ac_ext <<_ACEOF | |
4084 | /* end confdefs.h. */ | |
4085 | #include <$ac_header> | |
4086 | _ACEOF | |
4087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4089 | ac_status=$? | |
4090 | grep -v '^ *+' conftest.er1 >conftest.err | |
4091 | rm -f conftest.er1 | |
4092 | cat conftest.err >&5 | |
4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 | (exit $ac_status); } >/dev/null; then | |
4095 | if test -s conftest.err; then | |
4096 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4098 | else |
4099 | ac_cpp_err= | |
4100 | fi | |
4101 | else | |
4102 | ac_cpp_err=yes | |
4103 | fi | |
4104 | if test -z "$ac_cpp_err"; then | |
4105 | ac_header_preproc=yes | |
4106 | else | |
4107 | echo "$as_me: failed program was:" >&5 | |
4108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4109 | ||
4110 | ac_header_preproc=no | |
4111 | fi | |
4112 | rm -f conftest.err conftest.$ac_ext | |
4113 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4114 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4115 | ||
4116 | # So? What about this header? | |
8a2fc586 AK |
4117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4118 | yes:no: ) | |
ad6254c5 AK |
4119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4123 | ac_header_preproc=yes | |
ad6254c5 | 4124 | ;; |
8a2fc586 | 4125 | no:yes:* ) |
ad6254c5 AK |
4126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4138 | ( |
4139 | cat <<\_ASBOX | |
8a2fc586 AK |
4140 | ## ------------------------------------------ ## |
4141 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4142 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4143 | _ASBOX |
4144 | ) | | |
4145 | sed "s/^/$as_me: WARNING: /" >&2 | |
4146 | ;; | |
4147 | esac | |
4148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4152 | else | |
8a2fc586 | 4153 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4154 | fi |
ad6254c5 AK |
4155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 4157 | |
ad6254c5 AK |
4158 | fi |
4159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4160 | cat >>confdefs.h <<_ACEOF | |
4161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4162 | _ACEOF | |
795ca3e5 | 4163 | |
795ca3e5 | 4164 | else |
ad6254c5 AK |
4165 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4166 | echo "$as_me: error: bailing out" >&2;} | |
4167 | { (exit 1); exit 1; }; } | |
80992638 AK |
4168 | fi |
4169 | ||
ad6254c5 AK |
4170 | done |
4171 | ;; | |
4172 | darwin*) | |
4173 | ||
795ca3e5 | 4174 | |
ad6254c5 AK |
4175 | for ac_header in machine/endian.h sys/disk.h |
4176 | do | |
4177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4183 | fi | |
4184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4186 | else | |
4187 | # Is the header compilable? | |
4188 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4190 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4191 | /* confdefs.h. */ |
4192 | _ACEOF | |
4193 | cat confdefs.h >>conftest.$ac_ext | |
4194 | cat >>conftest.$ac_ext <<_ACEOF | |
4195 | /* end confdefs.h. */ | |
4196 | $ac_includes_default | |
4197 | #include <$ac_header> | |
4198 | _ACEOF | |
4199 | rm -f conftest.$ac_objext | |
4200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4201 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4202 | ac_status=$? |
8a2fc586 AK |
4203 | grep -v '^ *+' conftest.er1 >conftest.err |
4204 | rm -f conftest.er1 | |
4205 | cat conftest.err >&5 | |
ad6254c5 AK |
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4207 | (exit $ac_status); } && | |
8a2fc586 AK |
4208 | { ac_try='test -z "$ac_c_werror_flag" |
4209 | || test ! -s conftest.err' | |
4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4211 | (eval $ac_try) 2>&5 | |
4212 | ac_status=$? | |
4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4214 | (exit $ac_status); }; } && | |
4215 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4217 | (eval $ac_try) 2>&5 | |
4218 | ac_status=$? | |
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4220 | (exit $ac_status); }; }; then | |
4221 | ac_header_compiler=yes | |
4222 | else | |
4223 | echo "$as_me: failed program was:" >&5 | |
4224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4225 | ||
4226 | ac_header_compiler=no | |
4227 | fi | |
8a2fc586 | 4228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4229 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4230 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4231 | ||
4232 | # Is the header present? | |
4233 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4234 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4235 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4236 | /* confdefs.h. */ |
4237 | _ACEOF | |
4238 | cat confdefs.h >>conftest.$ac_ext | |
4239 | cat >>conftest.$ac_ext <<_ACEOF | |
4240 | /* end confdefs.h. */ | |
4241 | #include <$ac_header> | |
4242 | _ACEOF | |
4243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4245 | ac_status=$? | |
4246 | grep -v '^ *+' conftest.er1 >conftest.err | |
4247 | rm -f conftest.er1 | |
4248 | cat conftest.err >&5 | |
4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4250 | (exit $ac_status); } >/dev/null; then | |
4251 | if test -s conftest.err; then | |
4252 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4254 | else |
4255 | ac_cpp_err= | |
4256 | fi | |
4257 | else | |
4258 | ac_cpp_err=yes | |
4259 | fi | |
4260 | if test -z "$ac_cpp_err"; then | |
4261 | ac_header_preproc=yes | |
4262 | else | |
4263 | echo "$as_me: failed program was:" >&5 | |
4264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4265 | ||
4266 | ac_header_preproc=no | |
4267 | fi | |
4268 | rm -f conftest.err conftest.$ac_ext | |
4269 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4270 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4271 | ||
4272 | # So? What about this header? | |
8a2fc586 AK |
4273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4274 | yes:no: ) | |
ad6254c5 AK |
4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4279 | ac_header_preproc=yes | |
ad6254c5 | 4280 | ;; |
8a2fc586 | 4281 | no:yes:* ) |
ad6254c5 AK |
4282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4294 | ( |
4295 | cat <<\_ASBOX | |
8a2fc586 AK |
4296 | ## ------------------------------------------ ## |
4297 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4298 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4299 | _ASBOX |
4300 | ) | | |
4301 | sed "s/^/$as_me: WARNING: /" >&2 | |
4302 | ;; | |
4303 | esac | |
4304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4308 | else | |
8a2fc586 | 4309 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4310 | fi |
ad6254c5 AK |
4311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4313 | |
ad6254c5 AK |
4314 | fi |
4315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4316 | cat >>confdefs.h <<_ACEOF | |
4317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4318 | _ACEOF | |
4319 | ||
4320 | else | |
4321 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4322 | echo "$as_me: error: bailing out" >&2;} | |
4323 | { (exit 1); exit 1; }; } | |
80992638 AK |
4324 | fi |
4325 | ||
ad6254c5 AK |
4326 | done |
4327 | ;; | |
4328 | esac | |
d3c8211f | 4329 | |
80992638 | 4330 | ################################################################################ |
ad6254c5 AK |
4331 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4332 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4333 | if test "${ac_cv_c_const+set}" = set; then | |
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4335 | else |
ad6254c5 | 4336 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4337 | /* confdefs.h. */ |
4338 | _ACEOF | |
4339 | cat confdefs.h >>conftest.$ac_ext | |
4340 | cat >>conftest.$ac_ext <<_ACEOF | |
4341 | /* end confdefs.h. */ | |
4342 | ||
4343 | int | |
4344 | main () | |
4345 | { | |
4346 | /* FIXME: Include the comments suggested by Paul. */ | |
4347 | #ifndef __cplusplus | |
4348 | /* Ultrix mips cc rejects this. */ | |
4349 | typedef int charset[2]; | |
4350 | const charset x; | |
4351 | /* SunOS 4.1.1 cc rejects this. */ | |
4352 | char const *const *ccp; | |
4353 | char **p; | |
4354 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4355 | struct point {int x, y;}; | |
4356 | static struct point const zero = {0,0}; | |
4357 | /* AIX XL C 1.02.0.0 rejects this. | |
4358 | It does not let you subtract one const X* pointer from another in | |
4359 | an arm of an if-expression whose if-part is not a constant | |
4360 | expression */ | |
4361 | const char *g = "string"; | |
4362 | ccp = &g + (g ? g-g : 0); | |
4363 | /* HPUX 7.0 cc rejects these. */ | |
4364 | ++ccp; | |
4365 | p = (char**) ccp; | |
4366 | ccp = (char const *const *) p; | |
4367 | { /* SCO 3.2v4 cc rejects this. */ | |
4368 | char *t; | |
4369 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4370 | ||
4371 | *t++ = 0; | |
4372 | } | |
4373 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4374 | int x[] = {25, 17}; | |
4375 | const int *foo = &x[0]; | |
4376 | ++foo; | |
4377 | } | |
4378 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4379 | typedef const int *iptr; | |
4380 | iptr p = 0; | |
4381 | ++p; | |
4382 | } | |
4383 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4384 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4385 | struct s { int j; const int *ap[3]; }; | |
4386 | struct s *b; b->j = 5; | |
4387 | } | |
4388 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4389 | const int foo = 10; | |
4390 | } | |
4391 | #endif | |
4392 | ||
4393 | ; | |
4394 | return 0; | |
4395 | } | |
4396 | _ACEOF | |
4397 | rm -f conftest.$ac_objext | |
4398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4399 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4400 | ac_status=$? |
8a2fc586 AK |
4401 | grep -v '^ *+' conftest.er1 >conftest.err |
4402 | rm -f conftest.er1 | |
4403 | cat conftest.err >&5 | |
ad6254c5 AK |
4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4405 | (exit $ac_status); } && | |
8a2fc586 AK |
4406 | { ac_try='test -z "$ac_c_werror_flag" |
4407 | || test ! -s conftest.err' | |
ad6254c5 AK |
4408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4409 | (eval $ac_try) 2>&5 | |
4410 | ac_status=$? | |
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a2fc586 AK |
4412 | (exit $ac_status); }; } && |
4413 | { ac_try='test -s conftest.$ac_objext' | |
4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4415 | (eval $ac_try) 2>&5 | |
4416 | ac_status=$? | |
4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4418 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4419 | ac_cv_c_const=yes |
4420 | else | |
4421 | echo "$as_me: failed program was:" >&5 | |
4422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4423 | ||
4424 | ac_cv_c_const=no | |
4425 | fi | |
8a2fc586 | 4426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4427 | fi |
ad6254c5 AK |
4428 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4429 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4430 | if test $ac_cv_c_const = no; then | |
80992638 | 4431 | |
ad6254c5 AK |
4432 | cat >>confdefs.h <<\_ACEOF |
4433 | #define const | |
4434 | _ACEOF | |
80992638 | 4435 | |
d3c8211f | 4436 | fi |
d3c8211f | 4437 | |
ad6254c5 AK |
4438 | echo "$as_me:$LINENO: checking for inline" >&5 |
4439 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4440 | if test "${ac_cv_c_inline+set}" = set; then | |
4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4442 | else |
ad6254c5 AK |
4443 | ac_cv_c_inline=no |
4444 | for ac_kw in inline __inline__ __inline; do | |
4445 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4446 | /* confdefs.h. */ |
4447 | _ACEOF | |
4448 | cat confdefs.h >>conftest.$ac_ext | |
4449 | cat >>conftest.$ac_ext <<_ACEOF | |
4450 | /* end confdefs.h. */ | |
4451 | #ifndef __cplusplus | |
4452 | typedef int foo_t; | |
4453 | static $ac_kw foo_t static_foo () {return 0; } | |
4454 | $ac_kw foo_t foo () {return 0; } | |
4455 | #endif | |
80992638 | 4456 | |
ad6254c5 AK |
4457 | _ACEOF |
4458 | rm -f conftest.$ac_objext | |
4459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4460 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4461 | ac_status=$? |
8a2fc586 AK |
4462 | grep -v '^ *+' conftest.er1 >conftest.err |
4463 | rm -f conftest.er1 | |
4464 | cat conftest.err >&5 | |
ad6254c5 AK |
4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4466 | (exit $ac_status); } && | |
8a2fc586 AK |
4467 | { ac_try='test -z "$ac_c_werror_flag" |
4468 | || test ! -s conftest.err' | |
4469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4470 | (eval $ac_try) 2>&5 | |
4471 | ac_status=$? | |
4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4473 | (exit $ac_status); }; } && | |
4474 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4476 | (eval $ac_try) 2>&5 | |
4477 | ac_status=$? | |
4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4479 | (exit $ac_status); }; }; then | |
4480 | ac_cv_c_inline=$ac_kw; break | |
4481 | else | |
4482 | echo "$as_me: failed program was:" >&5 | |
4483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4484 | |
8ce0cbda | 4485 | fi |
8a2fc586 | 4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4487 | done |
8ce0cbda | 4488 | |
8ce0cbda | 4489 | fi |
ad6254c5 AK |
4490 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4491 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
8a2fc586 AK |
4492 | |
4493 | ||
ad6254c5 AK |
4494 | case $ac_cv_c_inline in |
4495 | inline | yes) ;; | |
8a2fc586 AK |
4496 | *) |
4497 | case $ac_cv_c_inline in | |
4498 | no) ac_val=;; | |
4499 | *) ac_val=$ac_cv_c_inline;; | |
4500 | esac | |
4501 | cat >>confdefs.h <<_ACEOF | |
4502 | #ifndef __cplusplus | |
4503 | #define inline $ac_val | |
4504 | #endif | |
c1c065a3 | 4505 | _ACEOF |
8a2fc586 | 4506 | ;; |
ad6254c5 | 4507 | esac |
8ce0cbda | 4508 | |
ad6254c5 AK |
4509 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4510 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4511 | if test "${ac_cv_type_off_t+set}" = set; then | |
4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4513 | else | |
4514 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4515 | /* confdefs.h. */ |
4516 | _ACEOF | |
4517 | cat confdefs.h >>conftest.$ac_ext | |
4518 | cat >>conftest.$ac_ext <<_ACEOF | |
4519 | /* end confdefs.h. */ | |
4520 | $ac_includes_default | |
4521 | int | |
4522 | main () | |
4523 | { | |
4524 | if ((off_t *) 0) | |
4525 | return 0; | |
4526 | if (sizeof (off_t)) | |
4527 | return 0; | |
4528 | ; | |
4529 | return 0; | |
4530 | } | |
4531 | _ACEOF | |
4532 | rm -f conftest.$ac_objext | |
4533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4534 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4535 | ac_status=$? |
8a2fc586 AK |
4536 | grep -v '^ *+' conftest.er1 >conftest.err |
4537 | rm -f conftest.er1 | |
4538 | cat conftest.err >&5 | |
ad6254c5 AK |
4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4540 | (exit $ac_status); } && | |
8a2fc586 AK |
4541 | { ac_try='test -z "$ac_c_werror_flag" |
4542 | || test ! -s conftest.err' | |
4543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4544 | (eval $ac_try) 2>&5 | |
4545 | ac_status=$? | |
4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4547 | (exit $ac_status); }; } && | |
4548 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4550 | (eval $ac_try) 2>&5 | |
4551 | ac_status=$? | |
4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4553 | (exit $ac_status); }; }; then | |
4554 | ac_cv_type_off_t=yes | |
4555 | else | |
4556 | echo "$as_me: failed program was:" >&5 | |
4557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4558 | |
ad6254c5 | 4559 | ac_cv_type_off_t=no |
80992638 | 4560 | fi |
8a2fc586 | 4561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4562 | fi |
4563 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4564 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4565 | if test $ac_cv_type_off_t = yes; then | |
4566 | : | |
4567 | else | |
80992638 | 4568 | |
ad6254c5 AK |
4569 | cat >>confdefs.h <<_ACEOF |
4570 | #define off_t long | |
4571 | _ACEOF | |
199e490e | 4572 | |
b896caa1 AK |
4573 | fi |
4574 | ||
ad6254c5 AK |
4575 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4576 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4577 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4579 | else | |
4580 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4581 | /* confdefs.h. */ |
4582 | _ACEOF | |
4583 | cat confdefs.h >>conftest.$ac_ext | |
4584 | cat >>conftest.$ac_ext <<_ACEOF | |
4585 | /* end confdefs.h. */ | |
4586 | $ac_includes_default | |
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | if ((pid_t *) 0) | |
4591 | return 0; | |
4592 | if (sizeof (pid_t)) | |
4593 | return 0; | |
4594 | ; | |
4595 | return 0; | |
4596 | } | |
4597 | _ACEOF | |
4598 | rm -f conftest.$ac_objext | |
4599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4600 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4601 | ac_status=$? |
8a2fc586 AK |
4602 | grep -v '^ *+' conftest.er1 >conftest.err |
4603 | rm -f conftest.er1 | |
4604 | cat conftest.err >&5 | |
ad6254c5 AK |
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4606 | (exit $ac_status); } && | |
8a2fc586 AK |
4607 | { ac_try='test -z "$ac_c_werror_flag" |
4608 | || test ! -s conftest.err' | |
4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4610 | (eval $ac_try) 2>&5 | |
4611 | ac_status=$? | |
4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4613 | (exit $ac_status); }; } && | |
4614 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4616 | (eval $ac_try) 2>&5 | |
4617 | ac_status=$? | |
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); }; }; then | |
4620 | ac_cv_type_pid_t=yes | |
4621 | else | |
4622 | echo "$as_me: failed program was:" >&5 | |
4623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4624 | ||
4625 | ac_cv_type_pid_t=no | |
4626 | fi | |
8a2fc586 | 4627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4628 | fi |
ad6254c5 AK |
4629 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4630 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4631 | if test $ac_cv_type_pid_t = yes; then | |
4632 | : | |
4633 | else | |
80992638 | 4634 | |
ad6254c5 AK |
4635 | cat >>confdefs.h <<_ACEOF |
4636 | #define pid_t int | |
4637 | _ACEOF | |
2dc95e1c | 4638 | |
2dc95e1c AK |
4639 | fi |
4640 | ||
ad6254c5 AK |
4641 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4642 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4643 | if test "${ac_cv_type_size_t+set}" = set; then | |
4644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4645 | else |
ad6254c5 | 4646 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4647 | /* confdefs.h. */ |
4648 | _ACEOF | |
4649 | cat confdefs.h >>conftest.$ac_ext | |
4650 | cat >>conftest.$ac_ext <<_ACEOF | |
4651 | /* end confdefs.h. */ | |
4652 | $ac_includes_default | |
4653 | int | |
4654 | main () | |
4655 | { | |
4656 | if ((size_t *) 0) | |
4657 | return 0; | |
4658 | if (sizeof (size_t)) | |
4659 | return 0; | |
4660 | ; | |
4661 | return 0; | |
4662 | } | |
4663 | _ACEOF | |
4664 | rm -f conftest.$ac_objext | |
4665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4666 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4667 | ac_status=$? |
8a2fc586 AK |
4668 | grep -v '^ *+' conftest.er1 >conftest.err |
4669 | rm -f conftest.er1 | |
4670 | cat conftest.err >&5 | |
ad6254c5 AK |
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4672 | (exit $ac_status); } && | |
8a2fc586 AK |
4673 | { ac_try='test -z "$ac_c_werror_flag" |
4674 | || test ! -s conftest.err' | |
4675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4676 | (eval $ac_try) 2>&5 | |
4677 | ac_status=$? | |
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4679 | (exit $ac_status); }; } && | |
4680 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4682 | (eval $ac_try) 2>&5 | |
4683 | ac_status=$? | |
4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4685 | (exit $ac_status); }; }; then | |
4686 | ac_cv_type_size_t=yes | |
4687 | else | |
4688 | echo "$as_me: failed program was:" >&5 | |
4689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4690 | ||
4691 | ac_cv_type_size_t=no | |
80992638 | 4692 | fi |
8a2fc586 | 4693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4694 | fi |
4695 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4696 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4697 | if test $ac_cv_type_size_t = yes; then | |
4698 | : | |
4699 | else | |
80992638 | 4700 | |
ad6254c5 AK |
4701 | cat >>confdefs.h <<_ACEOF |
4702 | #define size_t unsigned | |
4703 | _ACEOF | |
8106cdd5 | 4704 | |
8106cdd5 AK |
4705 | fi |
4706 | ||
ad6254c5 AK |
4707 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4708 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4709 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4711 | else | |
4712 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4713 | /* confdefs.h. */ |
4714 | _ACEOF | |
4715 | cat confdefs.h >>conftest.$ac_ext | |
4716 | cat >>conftest.$ac_ext <<_ACEOF | |
4717 | /* end confdefs.h. */ | |
4718 | $ac_includes_default | |
4719 | int | |
4720 | main () | |
4721 | { | |
4722 | if ((mode_t *) 0) | |
4723 | return 0; | |
4724 | if (sizeof (mode_t)) | |
4725 | return 0; | |
4726 | ; | |
4727 | return 0; | |
4728 | } | |
4729 | _ACEOF | |
4730 | rm -f conftest.$ac_objext | |
4731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4732 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4733 | ac_status=$? |
8a2fc586 AK |
4734 | grep -v '^ *+' conftest.er1 >conftest.err |
4735 | rm -f conftest.er1 | |
4736 | cat conftest.err >&5 | |
ad6254c5 AK |
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4738 | (exit $ac_status); } && | |
8a2fc586 AK |
4739 | { ac_try='test -z "$ac_c_werror_flag" |
4740 | || test ! -s conftest.err' | |
4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4742 | (eval $ac_try) 2>&5 | |
4743 | ac_status=$? | |
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4745 | (exit $ac_status); }; } && | |
4746 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4748 | (eval $ac_try) 2>&5 | |
4749 | ac_status=$? | |
4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4751 | (exit $ac_status); }; }; then | |
4752 | ac_cv_type_mode_t=yes | |
4753 | else | |
4754 | echo "$as_me: failed program was:" >&5 | |
4755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4756 | ||
4757 | ac_cv_type_mode_t=no | |
80992638 | 4758 | fi |
8a2fc586 | 4759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4760 | fi |
4761 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4762 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4763 | if test $ac_cv_type_mode_t = yes; then | |
4764 | : | |
4765 | else | |
80992638 | 4766 | |
ad6254c5 AK |
4767 | cat >>confdefs.h <<_ACEOF |
4768 | #define mode_t int | |
4769 | _ACEOF | |
4770 | ||
4771 | fi | |
4772 | ||
4773 | ||
4774 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4775 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4776 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4778 | else | |
4779 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4780 | /* confdefs.h. */ |
4781 | _ACEOF | |
4782 | cat confdefs.h >>conftest.$ac_ext | |
4783 | cat >>conftest.$ac_ext <<_ACEOF | |
4784 | /* end confdefs.h. */ | |
4785 | $ac_includes_default | |
4786 | int | |
4787 | main () | |
4788 | { | |
4789 | static struct stat ac_aggr; | |
4790 | if (ac_aggr.st_rdev) | |
4791 | return 0; | |
4792 | ; | |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
4796 | rm -f conftest.$ac_objext | |
4797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4798 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4799 | ac_status=$? |
8a2fc586 AK |
4800 | grep -v '^ *+' conftest.er1 >conftest.err |
4801 | rm -f conftest.er1 | |
4802 | cat conftest.err >&5 | |
ad6254c5 AK |
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4804 | (exit $ac_status); } && | |
8a2fc586 AK |
4805 | { ac_try='test -z "$ac_c_werror_flag" |
4806 | || test ! -s conftest.err' | |
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4808 | (eval $ac_try) 2>&5 | |
4809 | ac_status=$? | |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4811 | (exit $ac_status); }; } && | |
4812 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4814 | (eval $ac_try) 2>&5 | |
4815 | ac_status=$? | |
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4817 | (exit $ac_status); }; }; then | |
4818 | ac_cv_member_struct_stat_st_rdev=yes | |
4819 | else | |
4820 | echo "$as_me: failed program was:" >&5 | |
4821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4822 | ||
4823 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4824 | /* confdefs.h. */ |
4825 | _ACEOF | |
4826 | cat confdefs.h >>conftest.$ac_ext | |
4827 | cat >>conftest.$ac_ext <<_ACEOF | |
4828 | /* end confdefs.h. */ | |
4829 | $ac_includes_default | |
4830 | int | |
4831 | main () | |
4832 | { | |
4833 | static struct stat ac_aggr; | |
4834 | if (sizeof ac_aggr.st_rdev) | |
4835 | return 0; | |
4836 | ; | |
4837 | return 0; | |
4838 | } | |
4839 | _ACEOF | |
4840 | rm -f conftest.$ac_objext | |
4841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4842 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4843 | ac_status=$? |
8a2fc586 AK |
4844 | grep -v '^ *+' conftest.er1 >conftest.err |
4845 | rm -f conftest.er1 | |
4846 | cat conftest.err >&5 | |
ad6254c5 AK |
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4848 | (exit $ac_status); } && | |
8a2fc586 AK |
4849 | { ac_try='test -z "$ac_c_werror_flag" |
4850 | || test ! -s conftest.err' | |
4851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4852 | (eval $ac_try) 2>&5 | |
4853 | ac_status=$? | |
4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4855 | (exit $ac_status); }; } && | |
4856 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4858 | (eval $ac_try) 2>&5 | |
4859 | ac_status=$? | |
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4861 | (exit $ac_status); }; }; then | |
4862 | ac_cv_member_struct_stat_st_rdev=yes | |
4863 | else | |
4864 | echo "$as_me: failed program was:" >&5 | |
4865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4866 | ||
4867 | ac_cv_member_struct_stat_st_rdev=no | |
4868 | fi | |
8a2fc586 | 4869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4870 | fi |
8a2fc586 | 4871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4872 | fi |
4873 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4874 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4875 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4876 | ||
4877 | cat >>confdefs.h <<_ACEOF | |
4878 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4879 | _ACEOF | |
4880 | ||
4881 | ||
4882 | cat >>confdefs.h <<\_ACEOF | |
4883 | #define HAVE_ST_RDEV 1 | |
4884 | _ACEOF | |
4885 | ||
4886 | fi | |
4887 | ||
4888 | ||
4889 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4890 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4891 | if test "${ac_cv_struct_tm+set}" = set; then | |
4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4893 | else | |
4894 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4895 | /* confdefs.h. */ |
4896 | _ACEOF | |
4897 | cat confdefs.h >>conftest.$ac_ext | |
4898 | cat >>conftest.$ac_ext <<_ACEOF | |
4899 | /* end confdefs.h. */ | |
4900 | #include <sys/types.h> | |
4901 | #include <time.h> | |
4902 | ||
4903 | int | |
4904 | main () | |
4905 | { | |
4906 | struct tm *tp; tp->tm_sec; | |
4907 | ; | |
4908 | return 0; | |
4909 | } | |
4910 | _ACEOF | |
4911 | rm -f conftest.$ac_objext | |
4912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4913 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4914 | ac_status=$? |
8a2fc586 AK |
4915 | grep -v '^ *+' conftest.er1 >conftest.err |
4916 | rm -f conftest.er1 | |
4917 | cat conftest.err >&5 | |
ad6254c5 AK |
4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4919 | (exit $ac_status); } && | |
8a2fc586 AK |
4920 | { ac_try='test -z "$ac_c_werror_flag" |
4921 | || test ! -s conftest.err' | |
4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4923 | (eval $ac_try) 2>&5 | |
4924 | ac_status=$? | |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4926 | (exit $ac_status); }; } && | |
4927 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4929 | (eval $ac_try) 2>&5 | |
4930 | ac_status=$? | |
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4932 | (exit $ac_status); }; }; then | |
4933 | ac_cv_struct_tm=time.h | |
4934 | else | |
4935 | echo "$as_me: failed program was:" >&5 | |
4936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4937 | ||
4938 | ac_cv_struct_tm=sys/time.h | |
4939 | fi | |
8a2fc586 | 4940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4941 | fi |
4942 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4943 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4944 | if test $ac_cv_struct_tm = sys/time.h; then | |
4945 | ||
4946 | cat >>confdefs.h <<\_ACEOF | |
4947 | #define TM_IN_SYS_TIME 1 | |
4948 | _ACEOF | |
4949 | ||
4950 | fi | |
809fae91 | 4951 | |
795ca3e5 | 4952 | |
80992638 | 4953 | ################################################################################ |
ad6254c5 AK |
4954 | |
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4969 | do | |
4970 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4971 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4972 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4973 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4975 | else |
ad6254c5 | 4976 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4977 | /* confdefs.h. */ |
4978 | _ACEOF | |
4979 | cat confdefs.h >>conftest.$ac_ext | |
4980 | cat >>conftest.$ac_ext <<_ACEOF | |
4981 | /* end confdefs.h. */ | |
8a2fc586 AK |
4982 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4983 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4984 | #define $ac_func innocuous_$ac_func | |
4985 | ||
ad6254c5 AK |
4986 | /* System header to define __stub macros and hopefully few prototypes, |
4987 | which can conflict with char $ac_func (); below. | |
4988 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4989 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 4990 | |
ad6254c5 AK |
4991 | #ifdef __STDC__ |
4992 | # include <limits.h> | |
4993 | #else | |
4994 | # include <assert.h> | |
4995 | #endif | |
8a2fc586 AK |
4996 | |
4997 | #undef $ac_func | |
4998 | ||
ad6254c5 AK |
4999 | /* Override any gcc2 internal prototype to avoid an error. */ |
5000 | #ifdef __cplusplus | |
5001 | extern "C" | |
5002 | { | |
5003 | #endif | |
5004 | /* We use char because int might match the return type of a gcc2 | |
5005 | builtin and then its argument prototype would still apply. */ | |
5006 | char $ac_func (); | |
5007 | /* The GNU C library defines this for functions which it implements | |
5008 | to always fail with ENOSYS. Some functions are actually named | |
5009 | something starting with __ and the normal name is an alias. */ | |
5010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5011 | choke me | |
5012 | #else | |
5013 | char (*f) () = $ac_func; | |
5014 | #endif | |
5015 | #ifdef __cplusplus | |
5016 | } | |
5017 | #endif | |
5018 | ||
5019 | int | |
5020 | main () | |
5021 | { | |
5022 | return f != $ac_func; | |
5023 | ; | |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
5027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5029 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5030 | ac_status=$? |
8a2fc586 AK |
5031 | grep -v '^ *+' conftest.er1 >conftest.err |
5032 | rm -f conftest.er1 | |
5033 | cat conftest.err >&5 | |
ad6254c5 AK |
5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5035 | (exit $ac_status); } && | |
8a2fc586 AK |
5036 | { ac_try='test -z "$ac_c_werror_flag" |
5037 | || test ! -s conftest.err' | |
5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5039 | (eval $ac_try) 2>&5 | |
5040 | ac_status=$? | |
5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 | (exit $ac_status); }; } && | |
5043 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5045 | (eval $ac_try) 2>&5 | |
5046 | ac_status=$? | |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); }; }; then | |
5049 | eval "$as_ac_var=yes" | |
795ca3e5 | 5050 | else |
ad6254c5 AK |
5051 | echo "$as_me: failed program was:" >&5 |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5053 | ||
5054 | eval "$as_ac_var=no" | |
795ca3e5 | 5055 | fi |
8a2fc586 AK |
5056 | rm -f conftest.err conftest.$ac_objext \ |
5057 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5058 | fi |
5059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5060 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5062 | cat >>confdefs.h <<_ACEOF | |
5063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5064 | _ACEOF | |
5065 | ||
5066 | else | |
5067 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
5068 | echo "$as_me: error: bailing out" >&2;} | |
5069 | { (exit 1); exit 1; }; } | |
5070 | fi | |
5071 | done | |
795ca3e5 | 5072 | |
ad6254c5 AK |
5073 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5074 | # for constant arguments. Useless! | |
5075 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
5076 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5077 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5079 | else | |
5080 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5081 | /* confdefs.h. */ |
5082 | _ACEOF | |
5083 | cat confdefs.h >>conftest.$ac_ext | |
5084 | cat >>conftest.$ac_ext <<_ACEOF | |
5085 | /* end confdefs.h. */ | |
5086 | #include <alloca.h> | |
5087 | int | |
5088 | main () | |
5089 | { | |
5090 | char *p = (char *) alloca (2 * sizeof (int)); | |
5091 | ; | |
5092 | return 0; | |
5093 | } | |
5094 | _ACEOF | |
5095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5097 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5098 | ac_status=$? |
8a2fc586 AK |
5099 | grep -v '^ *+' conftest.er1 >conftest.err |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
ad6254c5 AK |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5103 | (exit $ac_status); } && | |
8a2fc586 AK |
5104 | { ac_try='test -z "$ac_c_werror_flag" |
5105 | || test ! -s conftest.err' | |
5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5107 | (eval $ac_try) 2>&5 | |
5108 | ac_status=$? | |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5110 | (exit $ac_status); }; } && | |
5111 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5113 | (eval $ac_try) 2>&5 | |
5114 | ac_status=$? | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); }; }; then | |
5117 | ac_cv_working_alloca_h=yes | |
5118 | else | |
5119 | echo "$as_me: failed program was:" >&5 | |
5120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5121 | |
ad6254c5 AK |
5122 | ac_cv_working_alloca_h=no |
5123 | fi | |
8a2fc586 AK |
5124 | rm -f conftest.err conftest.$ac_objext \ |
5125 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5126 | fi |
5127 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5128 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5129 | if test $ac_cv_working_alloca_h = yes; then | |
5130 | ||
5131 | cat >>confdefs.h <<\_ACEOF | |
5132 | #define HAVE_ALLOCA_H 1 | |
5133 | _ACEOF | |
5134 | ||
5135 | fi | |
5136 | ||
5137 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5138 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5139 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5141 | else | |
5142 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5143 | /* confdefs.h. */ |
5144 | _ACEOF | |
5145 | cat confdefs.h >>conftest.$ac_ext | |
5146 | cat >>conftest.$ac_ext <<_ACEOF | |
5147 | /* end confdefs.h. */ | |
5148 | #ifdef __GNUC__ | |
5149 | # define alloca __builtin_alloca | |
5150 | #else | |
5151 | # ifdef _MSC_VER | |
5152 | # include <malloc.h> | |
5153 | # define alloca _alloca | |
5154 | # else | |
5155 | # if HAVE_ALLOCA_H | |
5156 | # include <alloca.h> | |
5157 | # else | |
5158 | # ifdef _AIX | |
5159 | #pragma alloca | |
5160 | # else | |
5161 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5162 | char *alloca (); | |
5163 | # endif | |
5164 | # endif | |
5165 | # endif | |
5166 | # endif | |
5167 | #endif | |
5168 | ||
5169 | int | |
5170 | main () | |
5171 | { | |
5172 | char *p = (char *) alloca (1); | |
5173 | ; | |
5174 | return 0; | |
5175 | } | |
5176 | _ACEOF | |
5177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5179 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5180 | ac_status=$? |
8a2fc586 AK |
5181 | grep -v '^ *+' conftest.er1 >conftest.err |
5182 | rm -f conftest.er1 | |
5183 | cat conftest.err >&5 | |
ad6254c5 AK |
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5185 | (exit $ac_status); } && | |
8a2fc586 AK |
5186 | { ac_try='test -z "$ac_c_werror_flag" |
5187 | || test ! -s conftest.err' | |
5188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5189 | (eval $ac_try) 2>&5 | |
5190 | ac_status=$? | |
5191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5192 | (exit $ac_status); }; } && | |
5193 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5195 | (eval $ac_try) 2>&5 | |
5196 | ac_status=$? | |
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5198 | (exit $ac_status); }; }; then | |
5199 | ac_cv_func_alloca_works=yes | |
5200 | else | |
5201 | echo "$as_me: failed program was:" >&5 | |
5202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5203 | ||
5204 | ac_cv_func_alloca_works=no | |
5205 | fi | |
8a2fc586 AK |
5206 | rm -f conftest.err conftest.$ac_objext \ |
5207 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5208 | fi |
5209 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5210 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5211 | ||
5212 | if test $ac_cv_func_alloca_works = yes; then | |
5213 | ||
5214 | cat >>confdefs.h <<\_ACEOF | |
5215 | #define HAVE_ALLOCA 1 | |
5216 | _ACEOF | |
5217 | ||
5218 | else | |
5219 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5220 | # that cause trouble. Some versions do not even contain alloca or | |
5221 | # contain a buggy version. If you still want to use their alloca, | |
5222 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5223 | ||
5224 | ALLOCA=alloca.$ac_objext | |
5225 | ||
5226 | cat >>confdefs.h <<\_ACEOF | |
5227 | #define C_ALLOCA 1 | |
5228 | _ACEOF | |
5229 | ||
5230 | ||
5231 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5232 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5233 | if test "${ac_cv_os_cray+set}" = set; then | |
5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5235 | else | |
5236 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5237 | /* confdefs.h. */ |
5238 | _ACEOF | |
5239 | cat confdefs.h >>conftest.$ac_ext | |
5240 | cat >>conftest.$ac_ext <<_ACEOF | |
5241 | /* end confdefs.h. */ | |
5242 | #if defined(CRAY) && ! defined(CRAY2) | |
5243 | webecray | |
5244 | #else | |
5245 | wenotbecray | |
5246 | #endif | |
5247 | ||
5248 | _ACEOF | |
795ca3e5 | 5249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5250 | $EGREP "webecray" >/dev/null 2>&1; then |
5251 | ac_cv_os_cray=yes | |
5252 | else | |
5253 | ac_cv_os_cray=no | |
795ca3e5 AK |
5254 | fi |
5255 | rm -f conftest* | |
5256 | ||
795ca3e5 | 5257 | fi |
ad6254c5 AK |
5258 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5259 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5260 | if test $ac_cv_os_cray = yes; then | |
5261 | for ac_func in _getb67 GETB67 getb67; do | |
5262 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5263 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5264 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5265 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5267 | else | |
5268 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5269 | /* confdefs.h. */ |
5270 | _ACEOF | |
5271 | cat confdefs.h >>conftest.$ac_ext | |
5272 | cat >>conftest.$ac_ext <<_ACEOF | |
5273 | /* end confdefs.h. */ | |
8a2fc586 AK |
5274 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5275 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5276 | #define $ac_func innocuous_$ac_func | |
5277 | ||
ad6254c5 AK |
5278 | /* System header to define __stub macros and hopefully few prototypes, |
5279 | which can conflict with char $ac_func (); below. | |
5280 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5281 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5282 | |
ad6254c5 AK |
5283 | #ifdef __STDC__ |
5284 | # include <limits.h> | |
5285 | #else | |
5286 | # include <assert.h> | |
5287 | #endif | |
8a2fc586 AK |
5288 | |
5289 | #undef $ac_func | |
5290 | ||
ad6254c5 AK |
5291 | /* Override any gcc2 internal prototype to avoid an error. */ |
5292 | #ifdef __cplusplus | |
5293 | extern "C" | |
5294 | { | |
5295 | #endif | |
5296 | /* We use char because int might match the return type of a gcc2 | |
5297 | builtin and then its argument prototype would still apply. */ | |
5298 | char $ac_func (); | |
5299 | /* The GNU C library defines this for functions which it implements | |
5300 | to always fail with ENOSYS. Some functions are actually named | |
5301 | something starting with __ and the normal name is an alias. */ | |
5302 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5303 | choke me | |
5304 | #else | |
5305 | char (*f) () = $ac_func; | |
5306 | #endif | |
5307 | #ifdef __cplusplus | |
5308 | } | |
5309 | #endif | |
5310 | ||
5311 | int | |
5312 | main () | |
5313 | { | |
5314 | return f != $ac_func; | |
5315 | ; | |
5316 | return 0; | |
5317 | } | |
5318 | _ACEOF | |
5319 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5321 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5322 | ac_status=$? |
8a2fc586 AK |
5323 | grep -v '^ *+' conftest.er1 >conftest.err |
5324 | rm -f conftest.er1 | |
5325 | cat conftest.err >&5 | |
ad6254c5 AK |
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5327 | (exit $ac_status); } && | |
8a2fc586 AK |
5328 | { ac_try='test -z "$ac_c_werror_flag" |
5329 | || test ! -s conftest.err' | |
5330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5331 | (eval $ac_try) 2>&5 | |
5332 | ac_status=$? | |
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5334 | (exit $ac_status); }; } && | |
5335 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5337 | (eval $ac_try) 2>&5 | |
5338 | ac_status=$? | |
5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5340 | (exit $ac_status); }; }; then | |
5341 | eval "$as_ac_var=yes" | |
5342 | else | |
5343 | echo "$as_me: failed program was:" >&5 | |
5344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5345 | ||
5346 | eval "$as_ac_var=no" | |
5347 | fi | |
8a2fc586 AK |
5348 | rm -f conftest.err conftest.$ac_objext \ |
5349 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5350 | fi |
5351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5352 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5353 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5354 | |
ad6254c5 AK |
5355 | cat >>confdefs.h <<_ACEOF |
5356 | #define CRAY_STACKSEG_END $ac_func | |
5357 | _ACEOF | |
5358 | ||
5359 | break | |
5360 | fi | |
5361 | ||
5362 | done | |
5363 | fi | |
5364 | ||
5365 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5366 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5367 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5369 | else | |
5370 | if test "$cross_compiling" = yes; then | |
5371 | ac_cv_c_stack_direction=0 | |
5372 | else | |
5373 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5374 | /* confdefs.h. */ |
5375 | _ACEOF | |
5376 | cat confdefs.h >>conftest.$ac_ext | |
5377 | cat >>conftest.$ac_ext <<_ACEOF | |
5378 | /* end confdefs.h. */ | |
5379 | int | |
5380 | find_stack_direction () | |
5381 | { | |
5382 | static char *addr = 0; | |
5383 | auto char dummy; | |
5384 | if (addr == 0) | |
5385 | { | |
5386 | addr = &dummy; | |
5387 | return find_stack_direction (); | |
5388 | } | |
5389 | else | |
5390 | return (&dummy > addr) ? 1 : -1; | |
5391 | } | |
5392 | ||
5393 | int | |
5394 | main () | |
5395 | { | |
5396 | exit (find_stack_direction () < 0); | |
5397 | } | |
5398 | _ACEOF | |
5399 | rm -f conftest$ac_exeext | |
5400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5401 | (eval $ac_link) 2>&5 | |
5402 | ac_status=$? | |
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5404 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5406 | (eval $ac_try) 2>&5 | |
5407 | ac_status=$? | |
5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5409 | (exit $ac_status); }; }; then | |
5410 | ac_cv_c_stack_direction=1 | |
5411 | else | |
5412 | echo "$as_me: program exited with status $ac_status" >&5 | |
5413 | echo "$as_me: failed program was:" >&5 | |
5414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5415 | ||
5416 | ( exit $ac_status ) | |
5417 | ac_cv_c_stack_direction=-1 | |
5418 | fi | |
8a2fc586 | 5419 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5420 | fi |
5421 | fi | |
5422 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5423 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5424 | ||
5425 | cat >>confdefs.h <<_ACEOF | |
5426 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5427 | _ACEOF | |
5428 | ||
5429 | ||
5430 | fi | |
5431 | ||
5432 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5433 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5434 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5436 | else | |
5437 | if test "$cross_compiling" = yes; then | |
5438 | ac_cv_func_closedir_void=yes | |
5439 | else | |
5440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5441 | /* confdefs.h. */ |
5442 | _ACEOF | |
5443 | cat confdefs.h >>conftest.$ac_ext | |
5444 | cat >>conftest.$ac_ext <<_ACEOF | |
5445 | /* end confdefs.h. */ | |
5446 | $ac_includes_default | |
5447 | #include <$ac_header_dirent> | |
5448 | #ifndef __cplusplus | |
5449 | int closedir (); | |
5450 | #endif | |
5451 | ||
5452 | int | |
5453 | main () | |
5454 | { | |
5455 | exit (closedir (opendir (".")) != 0); | |
5456 | ; | |
5457 | return 0; | |
5458 | } | |
5459 | _ACEOF | |
5460 | rm -f conftest$ac_exeext | |
5461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5462 | (eval $ac_link) 2>&5 | |
5463 | ac_status=$? | |
5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5467 | (eval $ac_try) 2>&5 | |
5468 | ac_status=$? | |
5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5470 | (exit $ac_status); }; }; then | |
5471 | ac_cv_func_closedir_void=no | |
5472 | else | |
5473 | echo "$as_me: program exited with status $ac_status" >&5 | |
5474 | echo "$as_me: failed program was:" >&5 | |
5475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5476 | ||
5477 | ( exit $ac_status ) | |
5478 | ac_cv_func_closedir_void=yes | |
5479 | fi | |
8a2fc586 | 5480 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5481 | fi |
5482 | fi | |
5483 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5484 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5485 | if test $ac_cv_func_closedir_void = yes; then | |
5486 | ||
5487 | cat >>confdefs.h <<\_ACEOF | |
5488 | #define CLOSEDIR_VOID 1 | |
5489 | _ACEOF | |
5490 | ||
5491 | fi | |
5492 | ||
5493 | ||
5494 | ||
5495 | for ac_header in unistd.h vfork.h | |
5496 | do | |
5497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5503 | fi | |
5504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5506 | else | |
5507 | # Is the header compilable? | |
5508 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5510 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5511 | /* confdefs.h. */ |
5512 | _ACEOF | |
5513 | cat confdefs.h >>conftest.$ac_ext | |
5514 | cat >>conftest.$ac_ext <<_ACEOF | |
5515 | /* end confdefs.h. */ | |
5516 | $ac_includes_default | |
5517 | #include <$ac_header> | |
5518 | _ACEOF | |
5519 | rm -f conftest.$ac_objext | |
5520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 5521 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 5522 | ac_status=$? |
8a2fc586 AK |
5523 | grep -v '^ *+' conftest.er1 >conftest.err |
5524 | rm -f conftest.er1 | |
5525 | cat conftest.err >&5 | |
ad6254c5 AK |
5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5527 | (exit $ac_status); } && | |
8a2fc586 AK |
5528 | { ac_try='test -z "$ac_c_werror_flag" |
5529 | || test ! -s conftest.err' | |
5530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5531 | (eval $ac_try) 2>&5 | |
5532 | ac_status=$? | |
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5534 | (exit $ac_status); }; } && | |
5535 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5537 | (eval $ac_try) 2>&5 | |
5538 | ac_status=$? | |
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5540 | (exit $ac_status); }; }; then | |
5541 | ac_header_compiler=yes | |
5542 | else | |
5543 | echo "$as_me: failed program was:" >&5 | |
5544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5545 | ||
5546 | ac_header_compiler=no | |
5547 | fi | |
8a2fc586 | 5548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5550 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5551 | ||
5552 | # Is the header present? | |
5553 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5555 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5556 | /* confdefs.h. */ |
5557 | _ACEOF | |
5558 | cat confdefs.h >>conftest.$ac_ext | |
5559 | cat >>conftest.$ac_ext <<_ACEOF | |
5560 | /* end confdefs.h. */ | |
5561 | #include <$ac_header> | |
5562 | _ACEOF | |
5563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5565 | ac_status=$? | |
5566 | grep -v '^ *+' conftest.er1 >conftest.err | |
5567 | rm -f conftest.er1 | |
5568 | cat conftest.err >&5 | |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5570 | (exit $ac_status); } >/dev/null; then | |
5571 | if test -s conftest.err; then | |
5572 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 5573 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
5574 | else |
5575 | ac_cpp_err= | |
795ca3e5 | 5576 | fi |
ad6254c5 AK |
5577 | else |
5578 | ac_cpp_err=yes | |
5579 | fi | |
5580 | if test -z "$ac_cpp_err"; then | |
5581 | ac_header_preproc=yes | |
5582 | else | |
5583 | echo "$as_me: failed program was:" >&5 | |
5584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5585 | ||
5586 | ac_header_preproc=no | |
5587 | fi | |
5588 | rm -f conftest.err conftest.$ac_ext | |
5589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5590 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5591 | ||
5592 | # So? What about this header? | |
8a2fc586 AK |
5593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5594 | yes:no: ) | |
ad6254c5 AK |
5595 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5596 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
5597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5598 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5599 | ac_header_preproc=yes | |
ad6254c5 | 5600 | ;; |
8a2fc586 | 5601 | no:yes:* ) |
ad6254c5 AK |
5602 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5603 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
5604 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5605 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5607 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5609 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
5610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
5612 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5613 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
5614 | ( |
5615 | cat <<\_ASBOX | |
8a2fc586 AK |
5616 | ## ------------------------------------------ ## |
5617 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5618 | ## ------------------------------------------ ## | |
ad6254c5 AK |
5619 | _ASBOX |
5620 | ) | | |
5621 | sed "s/^/$as_me: WARNING: /" >&2 | |
5622 | ;; | |
5623 | esac | |
5624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5628 | else | |
8a2fc586 | 5629 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
5630 | fi |
5631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5633 | ||
795ca3e5 | 5634 | fi |
ad6254c5 AK |
5635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5636 | cat >>confdefs.h <<_ACEOF | |
5637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5638 | _ACEOF | |
5639 | ||
5640 | fi | |
5641 | ||
5642 | done | |
795ca3e5 | 5643 | |
ad6254c5 AK |
5644 | |
5645 | ||
5646 | for ac_func in fork vfork | |
5647 | do | |
5648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5649 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5651 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5653 | else |
ad6254c5 | 5654 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5655 | /* confdefs.h. */ |
5656 | _ACEOF | |
5657 | cat confdefs.h >>conftest.$ac_ext | |
5658 | cat >>conftest.$ac_ext <<_ACEOF | |
5659 | /* end confdefs.h. */ | |
8a2fc586 AK |
5660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5662 | #define $ac_func innocuous_$ac_func | |
5663 | ||
ad6254c5 AK |
5664 | /* System header to define __stub macros and hopefully few prototypes, |
5665 | which can conflict with char $ac_func (); below. | |
5666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5667 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5668 | |
ad6254c5 AK |
5669 | #ifdef __STDC__ |
5670 | # include <limits.h> | |
5671 | #else | |
5672 | # include <assert.h> | |
795ca3e5 | 5673 | #endif |
8a2fc586 AK |
5674 | |
5675 | #undef $ac_func | |
5676 | ||
ad6254c5 | 5677 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5678 | #ifdef __cplusplus |
ad6254c5 AK |
5679 | extern "C" |
5680 | { | |
5681 | #endif | |
5682 | /* We use char because int might match the return type of a gcc2 | |
5683 | builtin and then its argument prototype would still apply. */ | |
5684 | char $ac_func (); | |
5685 | /* The GNU C library defines this for functions which it implements | |
5686 | to always fail with ENOSYS. Some functions are actually named | |
5687 | something starting with __ and the normal name is an alias. */ | |
5688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5689 | choke me | |
795ca3e5 | 5690 | #else |
ad6254c5 AK |
5691 | char (*f) () = $ac_func; |
5692 | #endif | |
5693 | #ifdef __cplusplus | |
5694 | } | |
795ca3e5 AK |
5695 | #endif |
5696 | ||
ad6254c5 AK |
5697 | int |
5698 | main () | |
5699 | { | |
5700 | return f != $ac_func; | |
5701 | ; | |
5702 | return 0; | |
5703 | } | |
5704 | _ACEOF | |
5705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5707 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5708 | ac_status=$? |
8a2fc586 AK |
5709 | grep -v '^ *+' conftest.er1 >conftest.err |
5710 | rm -f conftest.er1 | |
5711 | cat conftest.err >&5 | |
ad6254c5 AK |
5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5713 | (exit $ac_status); } && | |
8a2fc586 AK |
5714 | { ac_try='test -z "$ac_c_werror_flag" |
5715 | || test ! -s conftest.err' | |
5716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5717 | (eval $ac_try) 2>&5 | |
5718 | ac_status=$? | |
5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5720 | (exit $ac_status); }; } && | |
5721 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5723 | (eval $ac_try) 2>&5 | |
5724 | ac_status=$? | |
5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); }; }; then | |
5727 | eval "$as_ac_var=yes" | |
795ca3e5 | 5728 | else |
ad6254c5 AK |
5729 | echo "$as_me: failed program was:" >&5 |
5730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5731 | ||
5732 | eval "$as_ac_var=no" | |
795ca3e5 | 5733 | fi |
8a2fc586 AK |
5734 | rm -f conftest.err conftest.$ac_objext \ |
5735 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5736 | fi |
5737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5739 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5740 | cat >>confdefs.h <<_ACEOF | |
5741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5742 | _ACEOF | |
5743 | ||
5744 | fi | |
5745 | done | |
5746 | ||
5747 | if test "x$ac_cv_func_fork" = xyes; then | |
5748 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5749 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5750 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5752 | else | |
5753 | if test "$cross_compiling" = yes; then | |
5754 | ac_cv_func_fork_works=cross | |
5755 | else | |
5756 | cat >conftest.$ac_ext <<_ACEOF | |
5757 | /* By Ruediger Kuhlmann. */ | |
5758 | #include <sys/types.h> | |
5759 | #if HAVE_UNISTD_H | |
5760 | # include <unistd.h> | |
5761 | #endif | |
5762 | /* Some systems only have a dummy stub for fork() */ | |
5763 | int main () | |
5764 | { | |
8a2fc586 AK |
5765 | if (fork() < 0) |
5766 | exit (1); | |
5767 | exit (0); | |
ad6254c5 AK |
5768 | } |
5769 | _ACEOF | |
5770 | rm -f conftest$ac_exeext | |
5771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5772 | (eval $ac_link) 2>&5 | |
5773 | ac_status=$? | |
5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5775 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5777 | (eval $ac_try) 2>&5 | |
5778 | ac_status=$? | |
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5780 | (exit $ac_status); }; }; then | |
5781 | ac_cv_func_fork_works=yes | |
5782 | else | |
5783 | echo "$as_me: program exited with status $ac_status" >&5 | |
5784 | echo "$as_me: failed program was:" >&5 | |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | ||
5787 | ( exit $ac_status ) | |
5788 | ac_cv_func_fork_works=no | |
5789 | fi | |
8a2fc586 | 5790 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5791 | fi |
5792 | fi | |
5793 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5794 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5795 | ||
5796 | else | |
5797 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5798 | fi | |
5799 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5800 | case $host in | |
5801 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5802 | # Override, as these systems have only a dummy fork() stub | |
5803 | ac_cv_func_fork_works=no | |
5804 | ;; | |
5805 | *) | |
5806 | ac_cv_func_fork_works=yes | |
5807 | ;; | |
5808 | esac | |
5809 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5810 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5811 | fi | |
5812 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5813 | if test "x$ac_cv_func_vfork" = xyes; then | |
5814 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5815 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5816 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5818 | else | |
5819 | if test "$cross_compiling" = yes; then | |
5820 | ac_cv_func_vfork_works=cross | |
5821 | else | |
5822 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5823 | /* confdefs.h. */ |
5824 | _ACEOF | |
5825 | cat confdefs.h >>conftest.$ac_ext | |
5826 | cat >>conftest.$ac_ext <<_ACEOF | |
5827 | /* end confdefs.h. */ | |
5828 | /* Thanks to Paul Eggert for this test. */ | |
5829 | #include <stdio.h> | |
5830 | #include <stdlib.h> | |
5831 | #include <sys/types.h> | |
5832 | #include <sys/stat.h> | |
5833 | #include <sys/wait.h> | |
5834 | #if HAVE_UNISTD_H | |
5835 | # include <unistd.h> | |
5836 | #endif | |
5837 | #if HAVE_VFORK_H | |
5838 | # include <vfork.h> | |
5839 | #endif | |
5840 | /* On some sparc systems, changes by the child to local and incoming | |
5841 | argument registers are propagated back to the parent. The compiler | |
5842 | is told about this with #include <vfork.h>, but some compilers | |
5843 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5844 | static variable whose address is put into a register that is | |
5845 | clobbered by the vfork. */ | |
5846 | static void | |
5847 | #ifdef __cplusplus | |
5848 | sparc_address_test (int arg) | |
5849 | # else | |
5850 | sparc_address_test (arg) int arg; | |
5851 | #endif | |
5852 | { | |
5853 | static pid_t child; | |
5854 | if (!child) { | |
5855 | child = vfork (); | |
5856 | if (child < 0) { | |
5857 | perror ("vfork"); | |
5858 | _exit(2); | |
5859 | } | |
5860 | if (!child) { | |
5861 | arg = getpid(); | |
5862 | write(-1, "", 0); | |
5863 | _exit (arg); | |
5864 | } | |
5865 | } | |
5866 | } | |
5867 | ||
5868 | int | |
5869 | main () | |
5870 | { | |
5871 | pid_t parent = getpid (); | |
5872 | pid_t child; | |
5873 | ||
5874 | sparc_address_test (0); | |
5875 | ||
5876 | child = vfork (); | |
5877 | ||
5878 | if (child == 0) { | |
5879 | /* Here is another test for sparc vfork register problems. This | |
5880 | test uses lots of local variables, at least as many local | |
5881 | variables as main has allocated so far including compiler | |
5882 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5883 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5884 | reuse the register of parent for one of the local variables, | |
5885 | since it will think that parent can't possibly be used any more | |
5886 | in this routine. Assigning to the local variable will thus | |
5887 | munge parent in the parent process. */ | |
5888 | pid_t | |
5889 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5890 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5891 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5892 | use the same hardware register for all 8 local variables. */ | |
5893 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5894 | || p != p5 || p != p6 || p != p7) | |
5895 | _exit(1); | |
5896 | ||
5897 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5898 | from child file descriptors. If the child closes a descriptor | |
5899 | before it execs or exits, this munges the parent's descriptor | |
5900 | as well. Test for this by closing stdout in the child. */ | |
5901 | _exit(close(fileno(stdout)) != 0); | |
5902 | } else { | |
5903 | int status; | |
5904 | struct stat st; | |
5905 | ||
5906 | while (wait(&status) != child) | |
5907 | ; | |
5908 | exit( | |
5909 | /* Was there some problem with vforking? */ | |
5910 | child < 0 | |
5911 | ||
5912 | /* Did the child fail? (This shouldn't happen.) */ | |
5913 | || status | |
5914 | ||
5915 | /* Did the vfork/compiler bug occur? */ | |
5916 | || parent != getpid() | |
5917 | ||
5918 | /* Did the file descriptor bug occur? */ | |
5919 | || fstat(fileno(stdout), &st) != 0 | |
5920 | ); | |
5921 | } | |
5922 | } | |
5923 | _ACEOF | |
5924 | rm -f conftest$ac_exeext | |
5925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5926 | (eval $ac_link) 2>&5 | |
5927 | ac_status=$? | |
5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5931 | (eval $ac_try) 2>&5 | |
5932 | ac_status=$? | |
5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5934 | (exit $ac_status); }; }; then | |
5935 | ac_cv_func_vfork_works=yes | |
5936 | else | |
5937 | echo "$as_me: program exited with status $ac_status" >&5 | |
5938 | echo "$as_me: failed program was:" >&5 | |
5939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5940 | ||
5941 | ( exit $ac_status ) | |
5942 | ac_cv_func_vfork_works=no | |
5943 | fi | |
8a2fc586 | 5944 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5945 | fi |
5946 | fi | |
5947 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5948 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5949 | ||
5950 | fi; | |
5951 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 5952 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
5953 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5954 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5955 | fi | |
5956 | ||
5957 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5958 | ||
5959 | cat >>confdefs.h <<\_ACEOF | |
5960 | #define HAVE_WORKING_VFORK 1 | |
5961 | _ACEOF | |
5962 | ||
5963 | else | |
5964 | ||
5965 | cat >>confdefs.h <<\_ACEOF | |
5966 | #define vfork fork | |
5967 | _ACEOF | |
5968 | ||
5969 | fi | |
5970 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5971 | ||
5972 | cat >>confdefs.h <<\_ACEOF | |
5973 | #define HAVE_WORKING_FORK 1 | |
5974 | _ACEOF | |
5975 | ||
5976 | fi | |
5977 | ||
5978 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5979 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5980 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5982 | else | |
5983 | rm -f conftest.sym conftest.file | |
5984 | echo >conftest.file | |
5985 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5986 | if test "$cross_compiling" = yes; then | |
5987 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5988 | else | |
5989 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5990 | /* confdefs.h. */ |
5991 | _ACEOF | |
5992 | cat confdefs.h >>conftest.$ac_ext | |
5993 | cat >>conftest.$ac_ext <<_ACEOF | |
5994 | /* end confdefs.h. */ | |
5995 | $ac_includes_default | |
5996 | int | |
5997 | main () | |
5998 | { | |
5999 | struct stat sbuf; | |
6000 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6001 | That is better in the sense that it means we will not |
6002 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
6003 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
6004 | ; | |
6005 | return 0; | |
6006 | } | |
6007 | _ACEOF | |
6008 | rm -f conftest$ac_exeext | |
6009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6010 | (eval $ac_link) 2>&5 | |
6011 | ac_status=$? | |
6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6015 | (eval $ac_try) 2>&5 | |
6016 | ac_status=$? | |
6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6018 | (exit $ac_status); }; }; then | |
6019 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6020 | else | |
6021 | echo "$as_me: program exited with status $ac_status" >&5 | |
6022 | echo "$as_me: failed program was:" >&5 | |
6023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6024 | ||
6025 | ( exit $ac_status ) | |
6026 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6027 | fi | |
8a2fc586 | 6028 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6029 | fi |
6030 | else | |
6031 | # If the `ln -s' command failed, then we probably don't even | |
6032 | # have an lstat function. | |
6033 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6034 | fi | |
6035 | rm -f conftest.sym conftest.file | |
6036 | ||
6037 | fi | |
6038 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6039 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
6040 | ||
6041 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6042 | ||
6043 | cat >>confdefs.h <<_ACEOF | |
6044 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6045 | _ACEOF | |
6046 | ||
6047 | ||
6048 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
8a2fc586 AK |
6049 | case $LIBOBJS in |
6050 | "lstat.$ac_objext" | \ | |
6051 | *" lstat.$ac_objext" | \ | |
6052 | "lstat.$ac_objext "* | \ | |
6053 | *" lstat.$ac_objext "* ) ;; | |
6054 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6055 | esac | |
6056 | ||
ad6254c5 AK |
6057 | fi |
6058 | ||
6059 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
6060 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
6061 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
6062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6063 | else | |
6064 | if test "$cross_compiling" = yes; then | |
6065 | ac_cv_func_lstat_empty_string_bug=yes | |
6066 | else | |
6067 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6068 | /* confdefs.h. */ |
6069 | _ACEOF | |
6070 | cat confdefs.h >>conftest.$ac_ext | |
6071 | cat >>conftest.$ac_ext <<_ACEOF | |
6072 | /* end confdefs.h. */ | |
6073 | $ac_includes_default | |
6074 | int | |
6075 | main () | |
6076 | { | |
6077 | struct stat sbuf; | |
6078 | exit (lstat ("", &sbuf) ? 1 : 0); | |
6079 | ; | |
6080 | return 0; | |
6081 | } | |
6082 | _ACEOF | |
6083 | rm -f conftest$ac_exeext | |
6084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6085 | (eval $ac_link) 2>&5 | |
6086 | ac_status=$? | |
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6090 | (eval $ac_try) 2>&5 | |
6091 | ac_status=$? | |
6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6093 | (exit $ac_status); }; }; then | |
6094 | ac_cv_func_lstat_empty_string_bug=yes | |
6095 | else | |
6096 | echo "$as_me: program exited with status $ac_status" >&5 | |
6097 | echo "$as_me: failed program was:" >&5 | |
6098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6099 | ||
6100 | ( exit $ac_status ) | |
6101 | ac_cv_func_lstat_empty_string_bug=no | |
6102 | fi | |
8a2fc586 | 6103 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6104 | fi |
6105 | fi | |
6106 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6107 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
6108 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
8a2fc586 AK |
6109 | case $LIBOBJS in |
6110 | "lstat.$ac_objext" | \ | |
6111 | *" lstat.$ac_objext" | \ | |
6112 | "lstat.$ac_objext "* | \ | |
6113 | *" lstat.$ac_objext "* ) ;; | |
6114 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6115 | esac | |
6116 | ||
ad6254c5 AK |
6117 | |
6118 | cat >>confdefs.h <<_ACEOF | |
6119 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6120 | _ACEOF | |
6121 | ||
6122 | fi | |
6123 | ||
6124 | ||
6125 | for ac_header in stdlib.h | |
6126 | do | |
6127 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6129 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6133 | fi | |
6134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6135 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6136 | else | |
6137 | # Is the header compilable? | |
6138 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6139 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6140 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6141 | /* confdefs.h. */ |
6142 | _ACEOF | |
6143 | cat confdefs.h >>conftest.$ac_ext | |
6144 | cat >>conftest.$ac_ext <<_ACEOF | |
6145 | /* end confdefs.h. */ | |
6146 | $ac_includes_default | |
6147 | #include <$ac_header> | |
6148 | _ACEOF | |
6149 | rm -f conftest.$ac_objext | |
6150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6151 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6152 | ac_status=$? |
8a2fc586 AK |
6153 | grep -v '^ *+' conftest.er1 >conftest.err |
6154 | rm -f conftest.er1 | |
6155 | cat conftest.err >&5 | |
ad6254c5 AK |
6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6157 | (exit $ac_status); } && | |
8a2fc586 AK |
6158 | { ac_try='test -z "$ac_c_werror_flag" |
6159 | || test ! -s conftest.err' | |
6160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6161 | (eval $ac_try) 2>&5 | |
6162 | ac_status=$? | |
6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6164 | (exit $ac_status); }; } && | |
6165 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6167 | (eval $ac_try) 2>&5 | |
6168 | ac_status=$? | |
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6170 | (exit $ac_status); }; }; then | |
6171 | ac_header_compiler=yes | |
6172 | else | |
6173 | echo "$as_me: failed program was:" >&5 | |
6174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6175 | ||
6176 | ac_header_compiler=no | |
6177 | fi | |
8a2fc586 | 6178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6179 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6180 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6181 | ||
6182 | # Is the header present? | |
6183 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6184 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6185 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6186 | /* confdefs.h. */ |
6187 | _ACEOF | |
6188 | cat confdefs.h >>conftest.$ac_ext | |
6189 | cat >>conftest.$ac_ext <<_ACEOF | |
6190 | /* end confdefs.h. */ | |
6191 | #include <$ac_header> | |
6192 | _ACEOF | |
6193 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6194 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6195 | ac_status=$? | |
6196 | grep -v '^ *+' conftest.er1 >conftest.err | |
6197 | rm -f conftest.er1 | |
6198 | cat conftest.err >&5 | |
6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6200 | (exit $ac_status); } >/dev/null; then | |
6201 | if test -s conftest.err; then | |
6202 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6203 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6204 | else |
6205 | ac_cpp_err= | |
6206 | fi | |
6207 | else | |
6208 | ac_cpp_err=yes | |
6209 | fi | |
6210 | if test -z "$ac_cpp_err"; then | |
6211 | ac_header_preproc=yes | |
6212 | else | |
6213 | echo "$as_me: failed program was:" >&5 | |
6214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6215 | ||
6216 | ac_header_preproc=no | |
6217 | fi | |
6218 | rm -f conftest.err conftest.$ac_ext | |
6219 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6220 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6221 | ||
6222 | # So? What about this header? | |
8a2fc586 AK |
6223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6224 | yes:no: ) | |
ad6254c5 AK |
6225 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6226 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6228 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6229 | ac_header_preproc=yes | |
ad6254c5 | 6230 | ;; |
8a2fc586 | 6231 | no:yes:* ) |
ad6254c5 AK |
6232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6236 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6237 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6238 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6239 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6241 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6242 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6243 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6244 | ( |
6245 | cat <<\_ASBOX | |
8a2fc586 AK |
6246 | ## ------------------------------------------ ## |
6247 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6248 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6249 | _ASBOX |
6250 | ) | | |
6251 | sed "s/^/$as_me: WARNING: /" >&2 | |
6252 | ;; | |
6253 | esac | |
6254 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6258 | else | |
8a2fc586 | 6259 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6260 | fi |
6261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6262 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6263 | ||
6264 | fi | |
6265 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6266 | cat >>confdefs.h <<_ACEOF | |
6267 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6268 | _ACEOF | |
6269 | ||
6270 | fi | |
6271 | ||
6272 | done | |
6273 | ||
6274 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6275 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
6276 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6278 | else | |
6279 | if test "$cross_compiling" = yes; then | |
6280 | ac_cv_func_malloc_0_nonnull=no | |
6281 | else | |
6282 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6283 | /* confdefs.h. */ |
6284 | _ACEOF | |
6285 | cat confdefs.h >>conftest.$ac_ext | |
6286 | cat >>conftest.$ac_ext <<_ACEOF | |
6287 | /* end confdefs.h. */ | |
6288 | #if STDC_HEADERS || HAVE_STDLIB_H | |
6289 | # include <stdlib.h> | |
6290 | #else | |
6291 | char *malloc (); | |
6292 | #endif | |
6293 | ||
6294 | int | |
6295 | main () | |
6296 | { | |
6297 | exit (malloc (0) ? 0 : 1); | |
6298 | ; | |
6299 | return 0; | |
6300 | } | |
6301 | _ACEOF | |
6302 | rm -f conftest$ac_exeext | |
6303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6304 | (eval $ac_link) 2>&5 | |
6305 | ac_status=$? | |
6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6309 | (eval $ac_try) 2>&5 | |
6310 | ac_status=$? | |
6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6312 | (exit $ac_status); }; }; then | |
6313 | ac_cv_func_malloc_0_nonnull=yes | |
6314 | else | |
6315 | echo "$as_me: program exited with status $ac_status" >&5 | |
6316 | echo "$as_me: failed program was:" >&5 | |
6317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6318 | ||
6319 | ( exit $ac_status ) | |
6320 | ac_cv_func_malloc_0_nonnull=no | |
6321 | fi | |
8a2fc586 | 6322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6323 | fi |
6324 | fi | |
6325 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6326 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
6327 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6328 | ||
6329 | cat >>confdefs.h <<\_ACEOF | |
6330 | #define HAVE_MALLOC 1 | |
6331 | _ACEOF | |
6332 | ||
6333 | else | |
6334 | cat >>confdefs.h <<\_ACEOF | |
6335 | #define HAVE_MALLOC 0 | |
6336 | _ACEOF | |
6337 | ||
8a2fc586 AK |
6338 | case $LIBOBJS in |
6339 | "malloc.$ac_objext" | \ | |
6340 | *" malloc.$ac_objext" | \ | |
6341 | "malloc.$ac_objext "* | \ | |
6342 | *" malloc.$ac_objext "* ) ;; | |
6343 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; | |
6344 | esac | |
6345 | ||
ad6254c5 AK |
6346 | |
6347 | cat >>confdefs.h <<\_ACEOF | |
6348 | #define malloc rpl_malloc | |
6349 | _ACEOF | |
6350 | ||
6351 | fi | |
6352 | ||
6353 | ||
6354 | ||
6355 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
6356 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
6357 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6359 | else | |
6360 | if test "$cross_compiling" = yes; then | |
6361 | ac_cv_func_memcmp_working=no | |
6362 | else | |
6363 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6364 | /* confdefs.h. */ |
6365 | _ACEOF | |
6366 | cat confdefs.h >>conftest.$ac_ext | |
6367 | cat >>conftest.$ac_ext <<_ACEOF | |
6368 | /* end confdefs.h. */ | |
8a2fc586 | 6369 | $ac_includes_default |
ad6254c5 AK |
6370 | int |
6371 | main () | |
6372 | { | |
6373 | ||
6374 | /* Some versions of memcmp are not 8-bit clean. */ | |
6375 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
6376 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6377 | exit (1); | |
6378 | ||
6379 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6380 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6381 | William Lewis provided this test program. */ | |
6382 | { | |
6383 | char foo[21]; | |
6384 | char bar[21]; | |
6385 | int i; | |
6386 | for (i = 0; i < 4; i++) | |
6387 | { | |
8a2fc586 AK |
6388 | char *a = foo + i; |
6389 | char *b = bar + i; | |
6390 | strcpy (a, "--------01111111"); | |
6391 | strcpy (b, "--------10000000"); | |
6392 | if (memcmp (a, b, 16) >= 0) | |
6393 | exit (1); | |
ad6254c5 AK |
6394 | } |
6395 | exit (0); | |
6396 | } | |
6397 | ||
6398 | ; | |
6399 | return 0; | |
6400 | } | |
6401 | _ACEOF | |
6402 | rm -f conftest$ac_exeext | |
6403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6404 | (eval $ac_link) 2>&5 | |
6405 | ac_status=$? | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6409 | (eval $ac_try) 2>&5 | |
6410 | ac_status=$? | |
6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6412 | (exit $ac_status); }; }; then | |
6413 | ac_cv_func_memcmp_working=yes | |
6414 | else | |
6415 | echo "$as_me: program exited with status $ac_status" >&5 | |
6416 | echo "$as_me: failed program was:" >&5 | |
6417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6418 | ||
6419 | ( exit $ac_status ) | |
6420 | ac_cv_func_memcmp_working=no | |
6421 | fi | |
8a2fc586 | 6422 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6423 | fi |
6424 | fi | |
6425 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
6426 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
8a2fc586 AK |
6427 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
6428 | "memcmp.$ac_objext" | \ | |
6429 | *" memcmp.$ac_objext" | \ | |
6430 | "memcmp.$ac_objext "* | \ | |
6431 | *" memcmp.$ac_objext "* ) ;; | |
6432 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; | |
6433 | esac | |
6434 | ||
ad6254c5 AK |
6435 | |
6436 | ||
6437 | ||
6438 | for ac_header in stdlib.h unistd.h | |
6439 | do | |
6440 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6442 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6446 | fi | |
6447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6449 | else | |
6450 | # Is the header compilable? | |
6451 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6452 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6454 | /* confdefs.h. */ |
6455 | _ACEOF | |
6456 | cat confdefs.h >>conftest.$ac_ext | |
6457 | cat >>conftest.$ac_ext <<_ACEOF | |
6458 | /* end confdefs.h. */ | |
6459 | $ac_includes_default | |
6460 | #include <$ac_header> | |
6461 | _ACEOF | |
6462 | rm -f conftest.$ac_objext | |
6463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6464 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6465 | ac_status=$? |
8a2fc586 AK |
6466 | grep -v '^ *+' conftest.er1 >conftest.err |
6467 | rm -f conftest.er1 | |
6468 | cat conftest.err >&5 | |
ad6254c5 AK |
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6470 | (exit $ac_status); } && | |
8a2fc586 AK |
6471 | { ac_try='test -z "$ac_c_werror_flag" |
6472 | || test ! -s conftest.err' | |
6473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6474 | (eval $ac_try) 2>&5 | |
6475 | ac_status=$? | |
6476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6477 | (exit $ac_status); }; } && | |
6478 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6480 | (eval $ac_try) 2>&5 | |
6481 | ac_status=$? | |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); }; }; then | |
6484 | ac_header_compiler=yes | |
6485 | else | |
6486 | echo "$as_me: failed program was:" >&5 | |
6487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6488 | ||
6489 | ac_header_compiler=no | |
6490 | fi | |
8a2fc586 | 6491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6493 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6494 | ||
6495 | # Is the header present? | |
6496 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6497 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6498 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6499 | /* confdefs.h. */ |
6500 | _ACEOF | |
6501 | cat confdefs.h >>conftest.$ac_ext | |
6502 | cat >>conftest.$ac_ext <<_ACEOF | |
6503 | /* end confdefs.h. */ | |
6504 | #include <$ac_header> | |
6505 | _ACEOF | |
6506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6508 | ac_status=$? | |
6509 | grep -v '^ *+' conftest.er1 >conftest.err | |
6510 | rm -f conftest.er1 | |
6511 | cat conftest.err >&5 | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); } >/dev/null; then | |
6514 | if test -s conftest.err; then | |
6515 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6516 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6517 | else |
6518 | ac_cpp_err= | |
6519 | fi | |
6520 | else | |
6521 | ac_cpp_err=yes | |
6522 | fi | |
6523 | if test -z "$ac_cpp_err"; then | |
6524 | ac_header_preproc=yes | |
6525 | else | |
6526 | echo "$as_me: failed program was:" >&5 | |
6527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6528 | ||
6529 | ac_header_preproc=no | |
6530 | fi | |
6531 | rm -f conftest.err conftest.$ac_ext | |
6532 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6533 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6534 | ||
6535 | # So? What about this header? | |
8a2fc586 AK |
6536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6537 | yes:no: ) | |
ad6254c5 AK |
6538 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6539 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6541 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6542 | ac_header_preproc=yes | |
ad6254c5 | 6543 | ;; |
8a2fc586 | 6544 | no:yes:* ) |
ad6254c5 AK |
6545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6549 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6550 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6551 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6552 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6555 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6556 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6557 | ( |
6558 | cat <<\_ASBOX | |
8a2fc586 AK |
6559 | ## ------------------------------------------ ## |
6560 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6561 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6562 | _ASBOX |
6563 | ) | | |
6564 | sed "s/^/$as_me: WARNING: /" >&2 | |
6565 | ;; | |
6566 | esac | |
6567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6571 | else | |
8a2fc586 | 6572 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6573 | fi |
6574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6576 | ||
6577 | fi | |
6578 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6579 | cat >>confdefs.h <<_ACEOF | |
6580 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6581 | _ACEOF | |
6582 | ||
6583 | fi | |
6584 | ||
6585 | done | |
6586 | ||
6587 | ||
6588 | for ac_func in getpagesize | |
6589 | do | |
6590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6595 | else | |
6596 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6597 | /* confdefs.h. */ |
6598 | _ACEOF | |
6599 | cat confdefs.h >>conftest.$ac_ext | |
6600 | cat >>conftest.$ac_ext <<_ACEOF | |
6601 | /* end confdefs.h. */ | |
8a2fc586 AK |
6602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6604 | #define $ac_func innocuous_$ac_func | |
6605 | ||
ad6254c5 AK |
6606 | /* System header to define __stub macros and hopefully few prototypes, |
6607 | which can conflict with char $ac_func (); below. | |
6608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6609 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6610 | |
ad6254c5 AK |
6611 | #ifdef __STDC__ |
6612 | # include <limits.h> | |
6613 | #else | |
6614 | # include <assert.h> | |
6615 | #endif | |
8a2fc586 AK |
6616 | |
6617 | #undef $ac_func | |
6618 | ||
ad6254c5 AK |
6619 | /* Override any gcc2 internal prototype to avoid an error. */ |
6620 | #ifdef __cplusplus | |
6621 | extern "C" | |
6622 | { | |
6623 | #endif | |
6624 | /* We use char because int might match the return type of a gcc2 | |
6625 | builtin and then its argument prototype would still apply. */ | |
6626 | char $ac_func (); | |
6627 | /* The GNU C library defines this for functions which it implements | |
6628 | to always fail with ENOSYS. Some functions are actually named | |
6629 | something starting with __ and the normal name is an alias. */ | |
6630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6631 | choke me | |
6632 | #else | |
6633 | char (*f) () = $ac_func; | |
6634 | #endif | |
6635 | #ifdef __cplusplus | |
6636 | } | |
6637 | #endif | |
6638 | ||
6639 | int | |
6640 | main () | |
6641 | { | |
6642 | return f != $ac_func; | |
6643 | ; | |
6644 | return 0; | |
6645 | } | |
6646 | _ACEOF | |
6647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 6649 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6650 | ac_status=$? |
8a2fc586 AK |
6651 | grep -v '^ *+' conftest.er1 >conftest.err |
6652 | rm -f conftest.er1 | |
6653 | cat conftest.err >&5 | |
ad6254c5 AK |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6655 | (exit $ac_status); } && | |
8a2fc586 AK |
6656 | { ac_try='test -z "$ac_c_werror_flag" |
6657 | || test ! -s conftest.err' | |
6658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6659 | (eval $ac_try) 2>&5 | |
6660 | ac_status=$? | |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6662 | (exit $ac_status); }; } && | |
6663 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6665 | (eval $ac_try) 2>&5 | |
6666 | ac_status=$? | |
6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6668 | (exit $ac_status); }; }; then | |
6669 | eval "$as_ac_var=yes" | |
6670 | else | |
6671 | echo "$as_me: failed program was:" >&5 | |
6672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6673 | ||
6674 | eval "$as_ac_var=no" | |
6675 | fi | |
8a2fc586 AK |
6676 | rm -f conftest.err conftest.$ac_objext \ |
6677 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
6678 | fi |
6679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6680 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6681 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6682 | cat >>confdefs.h <<_ACEOF | |
6683 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6684 | _ACEOF | |
6685 | ||
6686 | fi | |
6687 | done | |
6688 | ||
6689 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6690 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6691 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6693 | else | |
6694 | if test "$cross_compiling" = yes; then | |
6695 | ac_cv_func_mmap_fixed_mapped=no | |
6696 | else | |
6697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6698 | /* confdefs.h. */ |
6699 | _ACEOF | |
6700 | cat confdefs.h >>conftest.$ac_ext | |
6701 | cat >>conftest.$ac_ext <<_ACEOF | |
6702 | /* end confdefs.h. */ | |
6703 | $ac_includes_default | |
6704 | /* malloc might have been renamed as rpl_malloc. */ | |
6705 | #undef malloc | |
6706 | ||
6707 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6708 | Here is a matrix of mmap possibilities: | |
6709 | mmap private not fixed | |
6710 | mmap private fixed at somewhere currently unmapped | |
6711 | mmap private fixed at somewhere already mapped | |
6712 | mmap shared not fixed | |
6713 | mmap shared fixed at somewhere currently unmapped | |
6714 | mmap shared fixed at somewhere already mapped | |
6715 | For private mappings, we should verify that changes cannot be read() | |
6716 | back from the file, nor mmap's back from the file at a different | |
6717 | address. (There have been systems where private was not correctly | |
6718 | implemented like the infamous i386 svr4.0, and systems where the | |
6719 | VM page cache was not coherent with the file system buffer cache | |
6720 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6721 | For shared mappings, we should conversely verify that changes get | |
6722 | propagated back to all the places they're supposed to be. | |
6723 | ||
6724 | Grep wants private fixed already mapped. | |
6725 | The main things grep needs to know about mmap are: | |
6726 | * does it exist and is it safe to write into the mmap'd area | |
6727 | * how to use it (BSD variants) */ | |
6728 | ||
6729 | #include <fcntl.h> | |
6730 | #include <sys/mman.h> | |
6731 | ||
6732 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6733 | char *malloc (); | |
6734 | #endif | |
6735 | ||
6736 | /* This mess was copied from the GNU getpagesize.h. */ | |
6737 | #if !HAVE_GETPAGESIZE | |
6738 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6739 | # if !HAVE_SYS_PARAM_H | |
6740 | # define HAVE_SYS_PARAM_H 1 | |
6741 | # endif | |
6742 | ||
6743 | # ifdef _SC_PAGESIZE | |
6744 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6745 | # else /* no _SC_PAGESIZE */ | |
6746 | # if HAVE_SYS_PARAM_H | |
6747 | # include <sys/param.h> | |
6748 | # ifdef EXEC_PAGESIZE | |
6749 | # define getpagesize() EXEC_PAGESIZE | |
6750 | # else /* no EXEC_PAGESIZE */ | |
6751 | # ifdef NBPG | |
6752 | # define getpagesize() NBPG * CLSIZE | |
6753 | # ifndef CLSIZE | |
6754 | # define CLSIZE 1 | |
6755 | # endif /* no CLSIZE */ | |
6756 | # else /* no NBPG */ | |
6757 | # ifdef NBPC | |
6758 | # define getpagesize() NBPC | |
6759 | # else /* no NBPC */ | |
6760 | # ifdef PAGESIZE | |
6761 | # define getpagesize() PAGESIZE | |
6762 | # endif /* PAGESIZE */ | |
6763 | # endif /* no NBPC */ | |
6764 | # endif /* no NBPG */ | |
6765 | # endif /* no EXEC_PAGESIZE */ | |
6766 | # else /* no HAVE_SYS_PARAM_H */ | |
6767 | # define getpagesize() 8192 /* punt totally */ | |
6768 | # endif /* no HAVE_SYS_PARAM_H */ | |
6769 | # endif /* no _SC_PAGESIZE */ | |
6770 | ||
6771 | #endif /* no HAVE_GETPAGESIZE */ | |
6772 | ||
6773 | int | |
6774 | main () | |
6775 | { | |
6776 | char *data, *data2, *data3; | |
6777 | int i, pagesize; | |
6778 | int fd; | |
6779 | ||
6780 | pagesize = getpagesize (); | |
6781 | ||
6782 | /* First, make a file with some known garbage in it. */ | |
6783 | data = (char *) malloc (pagesize); | |
6784 | if (!data) | |
6785 | exit (1); | |
6786 | for (i = 0; i < pagesize; ++i) | |
6787 | *(data + i) = rand (); | |
6788 | umask (0); | |
6789 | fd = creat ("conftest.mmap", 0600); | |
6790 | if (fd < 0) | |
6791 | exit (1); | |
6792 | if (write (fd, data, pagesize) != pagesize) | |
6793 | exit (1); | |
6794 | close (fd); | |
6795 | ||
6796 | /* Next, try to mmap the file at a fixed address which already has | |
6797 | something else allocated at it. If we can, also make sure that | |
6798 | we see the same garbage. */ | |
6799 | fd = open ("conftest.mmap", O_RDWR); | |
6800 | if (fd < 0) | |
6801 | exit (1); | |
6802 | data2 = (char *) malloc (2 * pagesize); | |
6803 | if (!data2) | |
6804 | exit (1); | |
8a2fc586 | 6805 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6806 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 6807 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6808 | exit (1); |
6809 | for (i = 0; i < pagesize; ++i) | |
6810 | if (*(data + i) != *(data2 + i)) | |
6811 | exit (1); | |
6812 | ||
6813 | /* Finally, make sure that changes to the mapped area do not | |
6814 | percolate back to the file as seen by read(). (This is a bug on | |
6815 | some variants of i386 svr4.0.) */ | |
6816 | for (i = 0; i < pagesize; ++i) | |
6817 | *(data2 + i) = *(data2 + i) + 1; | |
6818 | data3 = (char *) malloc (pagesize); | |
6819 | if (!data3) | |
6820 | exit (1); | |
6821 | if (read (fd, data3, pagesize) != pagesize) | |
6822 | exit (1); | |
6823 | for (i = 0; i < pagesize; ++i) | |
6824 | if (*(data + i) != *(data3 + i)) | |
6825 | exit (1); | |
6826 | close (fd); | |
6827 | exit (0); | |
6828 | } | |
6829 | _ACEOF | |
6830 | rm -f conftest$ac_exeext | |
6831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6832 | (eval $ac_link) 2>&5 | |
6833 | ac_status=$? | |
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6837 | (eval $ac_try) 2>&5 | |
6838 | ac_status=$? | |
6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6840 | (exit $ac_status); }; }; then | |
6841 | ac_cv_func_mmap_fixed_mapped=yes | |
6842 | else | |
6843 | echo "$as_me: program exited with status $ac_status" >&5 | |
6844 | echo "$as_me: failed program was:" >&5 | |
6845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6846 | ||
6847 | ( exit $ac_status ) | |
6848 | ac_cv_func_mmap_fixed_mapped=no | |
6849 | fi | |
8a2fc586 | 6850 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6851 | fi |
6852 | fi | |
6853 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6854 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6855 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6856 | ||
6857 | cat >>confdefs.h <<\_ACEOF | |
6858 | #define HAVE_MMAP 1 | |
6859 | _ACEOF | |
6860 | ||
6861 | fi | |
6862 | rm -f conftest.mmap | |
6863 | ||
6864 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6865 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6866 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6868 | else | |
6869 | if test "$cross_compiling" = yes; then | |
6870 | ac_cv_func_stat_empty_string_bug=yes | |
6871 | else | |
6872 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6873 | /* confdefs.h. */ |
6874 | _ACEOF | |
6875 | cat confdefs.h >>conftest.$ac_ext | |
6876 | cat >>conftest.$ac_ext <<_ACEOF | |
6877 | /* end confdefs.h. */ | |
6878 | $ac_includes_default | |
6879 | int | |
6880 | main () | |
6881 | { | |
6882 | struct stat sbuf; | |
6883 | exit (stat ("", &sbuf) ? 1 : 0); | |
6884 | ; | |
6885 | return 0; | |
6886 | } | |
6887 | _ACEOF | |
6888 | rm -f conftest$ac_exeext | |
6889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6890 | (eval $ac_link) 2>&5 | |
6891 | ac_status=$? | |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6895 | (eval $ac_try) 2>&5 | |
6896 | ac_status=$? | |
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6898 | (exit $ac_status); }; }; then | |
6899 | ac_cv_func_stat_empty_string_bug=yes | |
6900 | else | |
6901 | echo "$as_me: program exited with status $ac_status" >&5 | |
6902 | echo "$as_me: failed program was:" >&5 | |
6903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6904 | ||
6905 | ( exit $ac_status ) | |
6906 | ac_cv_func_stat_empty_string_bug=no | |
6907 | fi | |
8a2fc586 | 6908 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6909 | fi |
6910 | fi | |
6911 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6912 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6913 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
8a2fc586 AK |
6914 | case $LIBOBJS in |
6915 | "stat.$ac_objext" | \ | |
6916 | *" stat.$ac_objext" | \ | |
6917 | "stat.$ac_objext "* | \ | |
6918 | *" stat.$ac_objext "* ) ;; | |
6919 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
6920 | esac | |
6921 | ||
ad6254c5 AK |
6922 | |
6923 | cat >>confdefs.h <<_ACEOF | |
6924 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6925 | _ACEOF | |
6926 | ||
6927 | fi | |
6928 | ||
6929 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6930 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6931 | if test "${ac_cv_func_strtod+set}" = set; then | |
6932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6933 | else | |
6934 | if test "$cross_compiling" = yes; then | |
6935 | ac_cv_func_strtod=no | |
6936 | else | |
6937 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6938 | /* confdefs.h. */ |
6939 | _ACEOF | |
6940 | cat confdefs.h >>conftest.$ac_ext | |
6941 | cat >>conftest.$ac_ext <<_ACEOF | |
6942 | /* end confdefs.h. */ | |
6943 | ||
6944 | double strtod (); | |
6945 | int | |
6946 | main() | |
6947 | { | |
6948 | { | |
6949 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6950 | char *string = " +69"; | |
6951 | char *term; | |
6952 | double value; | |
6953 | value = strtod (string, &term); | |
6954 | if (value != 69 || term != (string + 4)) | |
6955 | exit (1); | |
6956 | } | |
6957 | ||
6958 | { | |
6959 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6960 | terminating character under some conditions. */ | |
6961 | char *string = "NaN"; | |
6962 | char *term; | |
6963 | strtod (string, &term); | |
6964 | if (term != string && *(term - 1) == 0) | |
6965 | exit (1); | |
6966 | } | |
6967 | exit (0); | |
6968 | } | |
6969 | ||
6970 | _ACEOF | |
6971 | rm -f conftest$ac_exeext | |
6972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6973 | (eval $ac_link) 2>&5 | |
6974 | ac_status=$? | |
6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6978 | (eval $ac_try) 2>&5 | |
6979 | ac_status=$? | |
6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6981 | (exit $ac_status); }; }; then | |
6982 | ac_cv_func_strtod=yes | |
6983 | else | |
6984 | echo "$as_me: program exited with status $ac_status" >&5 | |
6985 | echo "$as_me: failed program was:" >&5 | |
6986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6987 | ||
6988 | ( exit $ac_status ) | |
6989 | ac_cv_func_strtod=no | |
6990 | fi | |
8a2fc586 | 6991 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6992 | fi |
6993 | fi | |
6994 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6995 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6996 | if test $ac_cv_func_strtod = no; then | |
8a2fc586 AK |
6997 | case $LIBOBJS in |
6998 | "strtod.$ac_objext" | \ | |
6999 | *" strtod.$ac_objext" | \ | |
7000 | "strtod.$ac_objext "* | \ | |
7001 | *" strtod.$ac_objext "* ) ;; | |
7002 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; | |
7003 | esac | |
7004 | ||
ad6254c5 AK |
7005 | echo "$as_me:$LINENO: checking for pow" >&5 |
7006 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
7007 | if test "${ac_cv_func_pow+set}" = set; then | |
7008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7009 | else | |
7010 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7011 | /* confdefs.h. */ |
7012 | _ACEOF | |
7013 | cat confdefs.h >>conftest.$ac_ext | |
7014 | cat >>conftest.$ac_ext <<_ACEOF | |
7015 | /* end confdefs.h. */ | |
8a2fc586 AK |
7016 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7018 | #define pow innocuous_pow | |
7019 | ||
ad6254c5 AK |
7020 | /* System header to define __stub macros and hopefully few prototypes, |
7021 | which can conflict with char pow (); below. | |
7022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7023 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7024 | |
ad6254c5 AK |
7025 | #ifdef __STDC__ |
7026 | # include <limits.h> | |
7027 | #else | |
7028 | # include <assert.h> | |
7029 | #endif | |
8a2fc586 AK |
7030 | |
7031 | #undef pow | |
7032 | ||
ad6254c5 AK |
7033 | /* Override any gcc2 internal prototype to avoid an error. */ |
7034 | #ifdef __cplusplus | |
7035 | extern "C" | |
7036 | { | |
7037 | #endif | |
7038 | /* We use char because int might match the return type of a gcc2 | |
7039 | builtin and then its argument prototype would still apply. */ | |
7040 | char pow (); | |
7041 | /* The GNU C library defines this for functions which it implements | |
7042 | to always fail with ENOSYS. Some functions are actually named | |
7043 | something starting with __ and the normal name is an alias. */ | |
7044 | #if defined (__stub_pow) || defined (__stub___pow) | |
7045 | choke me | |
7046 | #else | |
7047 | char (*f) () = pow; | |
7048 | #endif | |
7049 | #ifdef __cplusplus | |
7050 | } | |
7051 | #endif | |
7052 | ||
7053 | int | |
7054 | main () | |
7055 | { | |
7056 | return f != pow; | |
7057 | ; | |
7058 | return 0; | |
7059 | } | |
7060 | _ACEOF | |
7061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7063 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7064 | ac_status=$? |
8a2fc586 AK |
7065 | grep -v '^ *+' conftest.er1 >conftest.err |
7066 | rm -f conftest.er1 | |
7067 | cat conftest.err >&5 | |
ad6254c5 AK |
7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7069 | (exit $ac_status); } && | |
8a2fc586 AK |
7070 | { ac_try='test -z "$ac_c_werror_flag" |
7071 | || test ! -s conftest.err' | |
7072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7073 | (eval $ac_try) 2>&5 | |
7074 | ac_status=$? | |
7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7076 | (exit $ac_status); }; } && | |
7077 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7079 | (eval $ac_try) 2>&5 | |
7080 | ac_status=$? | |
7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7082 | (exit $ac_status); }; }; then | |
7083 | ac_cv_func_pow=yes | |
7084 | else | |
7085 | echo "$as_me: failed program was:" >&5 | |
7086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7087 | ||
7088 | ac_cv_func_pow=no | |
7089 | fi | |
8a2fc586 AK |
7090 | rm -f conftest.err conftest.$ac_objext \ |
7091 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7092 | fi |
7093 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
7094 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
7095 | ||
7096 | if test $ac_cv_func_pow = no; then | |
7097 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
7098 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
7099 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7101 | else | |
7102 | ac_check_lib_save_LIBS=$LIBS | |
7103 | LIBS="-lm $LIBS" | |
7104 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7105 | /* confdefs.h. */ |
7106 | _ACEOF | |
7107 | cat confdefs.h >>conftest.$ac_ext | |
7108 | cat >>conftest.$ac_ext <<_ACEOF | |
7109 | /* end confdefs.h. */ | |
7110 | ||
7111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7112 | #ifdef __cplusplus | |
7113 | extern "C" | |
7114 | #endif | |
7115 | /* We use char because int might match the return type of a gcc2 | |
7116 | builtin and then its argument prototype would still apply. */ | |
7117 | char pow (); | |
7118 | int | |
7119 | main () | |
7120 | { | |
7121 | pow (); | |
7122 | ; | |
7123 | return 0; | |
7124 | } | |
7125 | _ACEOF | |
7126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7128 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7129 | ac_status=$? |
8a2fc586 AK |
7130 | grep -v '^ *+' conftest.er1 >conftest.err |
7131 | rm -f conftest.er1 | |
7132 | cat conftest.err >&5 | |
ad6254c5 AK |
7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7134 | (exit $ac_status); } && | |
8a2fc586 AK |
7135 | { ac_try='test -z "$ac_c_werror_flag" |
7136 | || test ! -s conftest.err' | |
7137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7138 | (eval $ac_try) 2>&5 | |
7139 | ac_status=$? | |
7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7141 | (exit $ac_status); }; } && | |
7142 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7144 | (eval $ac_try) 2>&5 | |
7145 | ac_status=$? | |
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7147 | (exit $ac_status); }; }; then | |
7148 | ac_cv_lib_m_pow=yes | |
7149 | else | |
7150 | echo "$as_me: failed program was:" >&5 | |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7152 | ||
7153 | ac_cv_lib_m_pow=no | |
7154 | fi | |
8a2fc586 AK |
7155 | rm -f conftest.err conftest.$ac_objext \ |
7156 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7157 | LIBS=$ac_check_lib_save_LIBS |
7158 | fi | |
7159 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
7160 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
7161 | if test $ac_cv_lib_m_pow = yes; then | |
7162 | POW_LIB=-lm | |
7163 | else | |
7164 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7165 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7166 | fi | |
7167 | ||
7168 | fi | |
7169 | ||
7170 | fi | |
7171 | ||
7172 | ||
7173 | ################################################################################ | |
7174 | ||
7175 | ||
7176 | ################################################################################ | |
7177 | # Check whether --enable-jobs or --disable-jobs was given. | |
7178 | if test "${enable_jobs+set}" = set; then | |
7179 | enableval="$enable_jobs" | |
7180 | JOBS=-j$enableval | |
7181 | else | |
7182 | JOBS=-j2 | |
7183 | fi; | |
7184 | ||
7185 | ################################################################################ | |
7186 | echo "$as_me:$LINENO: checking file owner" >&5 | |
7187 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
7188 | OWNER="root" | |
7189 | ||
7190 | ||
7191 | # Check whether --with-user or --without-user was given. | |
7192 | if test "${with_user+set}" = set; then | |
7193 | withval="$with_user" | |
7194 | OWNER="$withval" | |
7195 | fi; | |
7196 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7197 | echo "${ECHO_T}$OWNER" >&6 | |
7198 | ||
7199 | if test x$OWNER != x; then | |
7200 | OWNER="-o $OWNER" | |
7201 | fi | |
7202 | ||
7203 | ################################################################################ | |
7204 | echo "$as_me:$LINENO: checking group owner" >&5 | |
7205 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
7206 | GROUP="root" | |
7207 | ||
7208 | # Check whether --with-group or --without-group was given. | |
7209 | if test "${with_group+set}" = set; then | |
7210 | withval="$with_group" | |
7211 | GROUP="$withval" | |
7212 | fi; | |
7213 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7214 | echo "${ECHO_T}$GROUP" >&6 | |
7215 | ||
7216 | if test x$GROUP != x; then | |
7217 | GROUP="-g $GROUP" | |
7218 | fi | |
7219 | ||
7220 | ################################################################################ | |
7221 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
7222 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
7223 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
7224 | if test "${enable_lvm1_fallback+set}" = set; then | |
7225 | enableval="$enable_lvm1_fallback" | |
7226 | LVM1_FALLBACK=$enableval | |
7227 | else | |
7228 | LVM1_FALLBACK=no | |
7229 | fi; | |
7230 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7231 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
7232 | ||
7233 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
7234 | |
7235 | cat >>confdefs.h <<\_ACEOF | |
7236 | #define LVM1_FALLBACK 1 | |
7237 | _ACEOF | |
7238 | ||
ad6254c5 AK |
7239 | fi |
7240 | ||
7241 | ################################################################################ | |
7242 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
7243 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
7244 | ||
7245 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
7246 | if test "${with_lvm1+set}" = set; then | |
7247 | withval="$with_lvm1" | |
7248 | LVM1="$withval" | |
7249 | else | |
7250 | LVM1="internal" | |
7251 | fi; | |
7252 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7253 | echo "${ECHO_T}$LVM1" >&6 | |
7254 | ||
7255 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7256 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7257 | " >&5 | |
7258 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7259 | " >&2;} | |
7260 | { (exit 1); exit 1; }; } | |
7261 | fi; | |
7262 | ||
7263 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
7264 | |
7265 | cat >>confdefs.h <<\_ACEOF | |
7266 | #define LVM1_INTERNAL 1 | |
7267 | _ACEOF | |
7268 | ||
ad6254c5 AK |
7269 | fi |
7270 | ||
7271 | ################################################################################ | |
7272 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
7273 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
7274 | ||
7275 | # Check whether --with-pool or --without-pool was given. | |
7276 | if test "${with_pool+set}" = set; then | |
7277 | withval="$with_pool" | |
7278 | POOL="$withval" | |
7279 | else | |
7280 | POOL="internal" | |
7281 | fi; | |
7282 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
7283 | echo "${ECHO_T}$POOL" >&6 | |
7284 | ||
7285 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7286 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7287 | " >&5 | |
7288 | echo "$as_me: error: --with-pool parameter invalid | |
7289 | " >&2;} | |
7290 | { (exit 1); exit 1; }; } | |
7291 | fi; | |
7292 | ||
7293 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
7294 | |
7295 | cat >>confdefs.h <<\_ACEOF | |
7296 | #define POOL_INTERNAL 1 | |
7297 | _ACEOF | |
7298 | ||
ad6254c5 AK |
7299 | fi |
7300 | ||
7301 | ################################################################################ | |
7302 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
7303 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
7304 | ||
7305 | # Check whether --with-cluster or --without-cluster was given. | |
7306 | if test "${with_cluster+set}" = set; then | |
7307 | withval="$with_cluster" | |
7308 | CLUSTER="$withval" | |
7309 | fi; | |
7310 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7311 | echo "${ECHO_T}$CLUSTER" >&6 | |
7312 | ||
7313 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7314 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7315 | " >&5 | |
7316 | echo "$as_me: error: --with-cluster parameter invalid | |
7317 | " >&2;} | |
7318 | { (exit 1); exit 1; }; } | |
7319 | fi; | |
7320 | ||
7321 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
7322 | |
7323 | cat >>confdefs.h <<\_ACEOF | |
7324 | #define CLUSTER_LOCKING_INTERNAL 1 | |
7325 | _ACEOF | |
7326 | ||
ad6254c5 AK |
7327 | fi |
7328 | ||
7329 | ################################################################################ | |
7330 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
7331 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
7332 | ||
7333 | # Check whether --with-snapshots or --without-snapshots was given. | |
7334 | if test "${with_snapshots+set}" = set; then | |
7335 | withval="$with_snapshots" | |
7336 | SNAPSHOTS="$withval" | |
7337 | else | |
7338 | SNAPSHOTS="internal" | |
7339 | fi; | |
7340 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7341 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
7342 | ||
7343 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7344 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7345 | " >&5 | |
7346 | echo "$as_me: error: --with-snapshots parameter invalid | |
7347 | " >&2;} | |
7348 | { (exit 1); exit 1; }; } | |
7349 | fi; | |
7350 | ||
7351 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
7352 | |
7353 | cat >>confdefs.h <<\_ACEOF | |
7354 | #define SNAPSHOT_INTERNAL 1 | |
7355 | _ACEOF | |
7356 | ||
ad6254c5 AK |
7357 | fi |
7358 | ||
7359 | ################################################################################ | |
7360 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
7361 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
7362 | ||
7363 | # Check whether --with-mirrors or --without-mirrors was given. | |
7364 | if test "${with_mirrors+set}" = set; then | |
7365 | withval="$with_mirrors" | |
7366 | MIRRORS="$withval" | |
7367 | else | |
7368 | MIRRORS="internal" | |
7369 | fi; | |
7370 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7371 | echo "${ECHO_T}$MIRRORS" >&6 | |
7372 | ||
7373 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7374 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7375 | " >&5 | |
7376 | echo "$as_me: error: --with-mirrors parameter invalid | |
7377 | " >&2;} | |
7378 | { (exit 1); exit 1; }; } | |
7379 | fi; | |
7380 | ||
7381 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
7382 | |
7383 | cat >>confdefs.h <<\_ACEOF | |
7384 | #define MIRRORED_INTERNAL 1 | |
7385 | _ACEOF | |
7386 | ||
ad6254c5 AK |
7387 | fi |
7388 | ||
7389 | ################################################################################ | |
7390 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
7391 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
7392 | # Check whether --enable-static_link or --disable-static_link was given. | |
7393 | if test "${enable_static_link+set}" = set; then | |
7394 | enableval="$enable_static_link" | |
7395 | STATIC_LINK=$enableval | |
7396 | else | |
7397 | STATIC_LINK=no | |
7398 | fi; | |
7399 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7400 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
7401 | ||
7402 | ################################################################################ | |
7403 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
7404 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
7405 | # Check whether --enable-readline or --disable-readline was given. | |
7406 | if test "${enable_readline+set}" = set; then | |
7407 | enableval="$enable_readline" | |
7408 | READLINE=$enableval | |
7409 | else | |
7410 | READLINE=no | |
7411 | fi; | |
7412 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7413 | echo "${ECHO_T}$READLINE" >&6 | |
7414 | ||
7415 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
7416 | |
7417 | cat >>confdefs.h <<\_ACEOF | |
7418 | #define READLINE_SUPPORT 1 | |
7419 | _ACEOF | |
7420 | ||
ad6254c5 AK |
7421 | fi |
7422 | ||
7423 | ################################################################################ | |
7424 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
7425 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
7426 | # Check whether --enable-selinux or --disable-selinux was given. | |
7427 | if test "${enable_selinux+set}" = set; then | |
7428 | enableval="$enable_selinux" | |
7429 | SELINUX=$enableval | |
7430 | fi; | |
7431 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7432 | echo "${ECHO_T}$SELINUX" >&6 | |
7433 | ||
7434 | ################################################################################ | |
7435 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
7436 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
7437 | ||
7438 | # Check whether --with-clvmd or --without-clvmd was given. | |
7439 | if test "${with_clvmd+set}" = set; then | |
7440 | withval="$with_clvmd" | |
a266258f | 7441 | CLVMD="$withval" |
ad6254c5 | 7442 | else |
a266258f | 7443 | CLVMD="none" |
ad6254c5 | 7444 | fi; |
a266258f | 7445 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7446 | CLVMD=all |
b1098701 | 7447 | fi |
ad6254c5 AK |
7448 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7449 | echo "${ECHO_T}$CLVMD" >&6 | |
7450 | ||
a266258f | 7451 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7452 | CLUSTER=internal |
7453 | fi | |
7454 | ||
7455 | ################################################################################ | |
7456 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
7457 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
7458 | # Check whether --enable-debug or --disable-debug was given. | |
7459 | if test "${enable_debug+set}" = set; then | |
7460 | enableval="$enable_debug" | |
7461 | DEBUG=$enableval | |
7462 | else | |
7463 | DEBUG=no | |
7464 | fi; | |
7465 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7466 | echo "${ECHO_T}$DEBUG" >&6 | |
7467 | ||
7468 | if test x$DEBUG = xyes; then | |
7469 | COPTIMISE_FLAG= | |
8a2fc586 AK |
7470 | else |
7471 | CSCOPE_CMD= | |
ad6254c5 AK |
7472 | fi |
7473 | ||
7474 | ################################################################################ | |
7475 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
7476 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
7477 | ||
7478 | # Check whether --with-optimisation or --without-optimisation was given. | |
7479 | if test "${with_optimisation+set}" = set; then | |
7480 | withval="$with_optimisation" | |
7481 | COPTIMISE_FLAG="$withval" | |
7482 | fi; | |
7483 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
7484 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
7485 | ||
7486 | ################################################################################ | |
7487 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
7488 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
7489 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
7490 | if test "${enable_devmapper+set}" = set; then | |
7491 | enableval="$enable_devmapper" | |
7492 | DEVMAPPER=$enableval | |
7493 | fi; | |
7494 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
7495 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
7496 | ||
7497 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
7498 | |
7499 | cat >>confdefs.h <<\_ACEOF | |
7500 | #define DEVMAPPER_SUPPORT 1 | |
7501 | _ACEOF | |
7502 | ||
ad6254c5 AK |
7503 | fi |
7504 | ||
7505 | ################################################################################ | |
7506 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
7507 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
7508 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
7509 | if test "${enable_o_direct+set}" = set; then | |
7510 | enableval="$enable_o_direct" | |
7511 | ODIRECT=$enableval | |
7512 | fi; | |
7513 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
7514 | echo "${ECHO_T}$ODIRECT" >&6 | |
7515 | ||
7516 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
7517 | |
7518 | cat >>confdefs.h <<\_ACEOF | |
7519 | #define O_DIRECT_SUPPORT 1 | |
7520 | _ACEOF | |
7521 | ||
ad6254c5 AK |
7522 | fi |
7523 | ||
7524 | ################################################################################ | |
7525 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
7526 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
7527 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
7528 | if test "${enable_cmdlib+set}" = set; then | |
7529 | enableval="$enable_cmdlib" | |
7530 | CMDLIB=$enableval | |
7531 | else | |
7532 | CMDLIB=no | |
7533 | fi; | |
7534 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
7535 | echo "${ECHO_T}$CMDLIB" >&6 | |
7536 | ||
ad6254c5 AK |
7537 | ################################################################################ |
7538 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
7539 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
7540 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
7541 | if test "${enable_fsadm+set}" = set; then | |
7542 | enableval="$enable_fsadm" | |
7543 | FSADM=$enableval | |
7544 | fi; | |
7545 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
7546 | echo "${ECHO_T}$FSADM" >&6 | |
7547 | ||
06f62ad1 AK |
7548 | ################################################################################ |
7549 | echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
7550 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6 | |
7551 | # Check whether --enable-dmeventd or --disable-dmeventd was given. | |
7552 | if test "${enable_dmeventd+set}" = set; then | |
7553 | enableval="$enable_dmeventd" | |
7554 | DMEVENTD=$enableval | |
7555 | fi; | |
7556 | echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
7557 | echo "${ECHO_T}$DMEVENTD" >&6 | |
7558 | ||
7559 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
7560 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7561 | " >&5 | |
7562 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7563 | " >&2;} | |
7564 | { (exit 1); exit 1; }; } | |
7565 | fi | |
7566 | ||
15d91f5a | 7567 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
7568 | |
7569 | cat >>confdefs.h <<\_ACEOF | |
7570 | #define DMEVENTD 1 | |
7571 | _ACEOF | |
7572 | ||
15d91f5a | 7573 | fi |
ad6254c5 AK |
7574 | ################################################################################ |
7575 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
7576 | then exec_prefix=""; | |
7577 | fi; | |
7578 | ||
7579 | ################################################################################ | |
7580 | if test $ac_cv_c_compiler_gnu = yes; then | |
7581 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7582 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
7583 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7585 | else | |
7586 | ac_pattern="Autoconf.*'x'" | |
7587 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7588 | /* confdefs.h. */ |
7589 | _ACEOF | |
7590 | cat confdefs.h >>conftest.$ac_ext | |
7591 | cat >>conftest.$ac_ext <<_ACEOF | |
7592 | /* end confdefs.h. */ | |
7593 | #include <sgtty.h> | |
7594 | Autoconf TIOCGETP | |
7595 | _ACEOF | |
7596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7597 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7598 | ac_cv_prog_gcc_traditional=yes | |
7599 | else | |
7600 | ac_cv_prog_gcc_traditional=no | |
7601 | fi | |
7602 | rm -f conftest* | |
7603 | ||
7604 | ||
7605 | if test $ac_cv_prog_gcc_traditional = no; then | |
7606 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7607 | /* confdefs.h. */ |
7608 | _ACEOF | |
7609 | cat confdefs.h >>conftest.$ac_ext | |
7610 | cat >>conftest.$ac_ext <<_ACEOF | |
7611 | /* end confdefs.h. */ | |
7612 | #include <termio.h> | |
7613 | Autoconf TCGETA | |
7614 | _ACEOF | |
7615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7616 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7617 | ac_cv_prog_gcc_traditional=yes | |
7618 | fi | |
7619 | rm -f conftest* | |
7620 | ||
7621 | fi | |
7622 | fi | |
7623 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7624 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7625 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7626 | CC="$CC -traditional" | |
7627 | fi | |
7628 | fi | |
7629 | ||
7630 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7631 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7632 | if test "${ac_cv_type_signal+set}" = set; then | |
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7634 | else | |
7635 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7636 | /* confdefs.h. */ |
7637 | _ACEOF | |
7638 | cat confdefs.h >>conftest.$ac_ext | |
7639 | cat >>conftest.$ac_ext <<_ACEOF | |
7640 | /* end confdefs.h. */ | |
7641 | #include <sys/types.h> | |
7642 | #include <signal.h> | |
7643 | #ifdef signal | |
7644 | # undef signal | |
7645 | #endif | |
7646 | #ifdef __cplusplus | |
7647 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7648 | #else | |
7649 | void (*signal ()) (); | |
7650 | #endif | |
7651 | ||
7652 | int | |
7653 | main () | |
7654 | { | |
7655 | int i; | |
7656 | ; | |
7657 | return 0; | |
7658 | } | |
7659 | _ACEOF | |
7660 | rm -f conftest.$ac_objext | |
7661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 7662 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 7663 | ac_status=$? |
8a2fc586 AK |
7664 | grep -v '^ *+' conftest.er1 >conftest.err |
7665 | rm -f conftest.er1 | |
7666 | cat conftest.err >&5 | |
ad6254c5 AK |
7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7668 | (exit $ac_status); } && | |
8a2fc586 AK |
7669 | { ac_try='test -z "$ac_c_werror_flag" |
7670 | || test ! -s conftest.err' | |
7671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7672 | (eval $ac_try) 2>&5 | |
7673 | ac_status=$? | |
7674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7675 | (exit $ac_status); }; } && | |
7676 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
7677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7678 | (eval $ac_try) 2>&5 | |
7679 | ac_status=$? | |
7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7681 | (exit $ac_status); }; }; then | |
7682 | ac_cv_type_signal=void | |
7683 | else | |
7684 | echo "$as_me: failed program was:" >&5 | |
7685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7686 | ||
7687 | ac_cv_type_signal=int | |
7688 | fi | |
8a2fc586 | 7689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7690 | fi |
7691 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7692 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7693 | ||
7694 | cat >>confdefs.h <<_ACEOF | |
7695 | #define RETSIGTYPE $ac_cv_type_signal | |
7696 | _ACEOF | |
7697 | ||
7698 | ||
7699 | ||
7700 | for ac_func in vprintf | |
7701 | do | |
7702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7703 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7707 | else | |
7708 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7709 | /* confdefs.h. */ |
7710 | _ACEOF | |
7711 | cat confdefs.h >>conftest.$ac_ext | |
7712 | cat >>conftest.$ac_ext <<_ACEOF | |
7713 | /* end confdefs.h. */ | |
8a2fc586 AK |
7714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7716 | #define $ac_func innocuous_$ac_func | |
7717 | ||
ad6254c5 AK |
7718 | /* System header to define __stub macros and hopefully few prototypes, |
7719 | which can conflict with char $ac_func (); below. | |
7720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7721 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7722 | |
ad6254c5 AK |
7723 | #ifdef __STDC__ |
7724 | # include <limits.h> | |
7725 | #else | |
7726 | # include <assert.h> | |
7727 | #endif | |
8a2fc586 AK |
7728 | |
7729 | #undef $ac_func | |
7730 | ||
ad6254c5 AK |
7731 | /* Override any gcc2 internal prototype to avoid an error. */ |
7732 | #ifdef __cplusplus | |
7733 | extern "C" | |
7734 | { | |
7735 | #endif | |
7736 | /* We use char because int might match the return type of a gcc2 | |
7737 | builtin and then its argument prototype would still apply. */ | |
7738 | char $ac_func (); | |
7739 | /* The GNU C library defines this for functions which it implements | |
7740 | to always fail with ENOSYS. Some functions are actually named | |
7741 | something starting with __ and the normal name is an alias. */ | |
7742 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7743 | choke me | |
7744 | #else | |
7745 | char (*f) () = $ac_func; | |
7746 | #endif | |
7747 | #ifdef __cplusplus | |
7748 | } | |
7749 | #endif | |
7750 | ||
7751 | int | |
7752 | main () | |
7753 | { | |
7754 | return f != $ac_func; | |
7755 | ; | |
7756 | return 0; | |
7757 | } | |
7758 | _ACEOF | |
7759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7761 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7762 | ac_status=$? |
8a2fc586 AK |
7763 | grep -v '^ *+' conftest.er1 >conftest.err |
7764 | rm -f conftest.er1 | |
7765 | cat conftest.err >&5 | |
ad6254c5 AK |
7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7767 | (exit $ac_status); } && | |
8a2fc586 AK |
7768 | { ac_try='test -z "$ac_c_werror_flag" |
7769 | || test ! -s conftest.err' | |
7770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7771 | (eval $ac_try) 2>&5 | |
7772 | ac_status=$? | |
7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7774 | (exit $ac_status); }; } && | |
7775 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7777 | (eval $ac_try) 2>&5 | |
7778 | ac_status=$? | |
7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7780 | (exit $ac_status); }; }; then | |
7781 | eval "$as_ac_var=yes" | |
7782 | else | |
7783 | echo "$as_me: failed program was:" >&5 | |
7784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7785 | ||
7786 | eval "$as_ac_var=no" | |
7787 | fi | |
8a2fc586 AK |
7788 | rm -f conftest.err conftest.$ac_objext \ |
7789 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7790 | fi |
7791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7792 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7793 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7794 | cat >>confdefs.h <<_ACEOF | |
7795 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7796 | _ACEOF | |
7797 | ||
7798 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7799 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7800 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7802 | else | |
7803 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7804 | /* confdefs.h. */ |
7805 | _ACEOF | |
7806 | cat confdefs.h >>conftest.$ac_ext | |
7807 | cat >>conftest.$ac_ext <<_ACEOF | |
7808 | /* end confdefs.h. */ | |
8a2fc586 AK |
7809 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
7810 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7811 | #define _doprnt innocuous__doprnt | |
7812 | ||
ad6254c5 AK |
7813 | /* System header to define __stub macros and hopefully few prototypes, |
7814 | which can conflict with char _doprnt (); below. | |
7815 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7816 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7817 | |
ad6254c5 AK |
7818 | #ifdef __STDC__ |
7819 | # include <limits.h> | |
7820 | #else | |
7821 | # include <assert.h> | |
7822 | #endif | |
8a2fc586 AK |
7823 | |
7824 | #undef _doprnt | |
7825 | ||
ad6254c5 AK |
7826 | /* Override any gcc2 internal prototype to avoid an error. */ |
7827 | #ifdef __cplusplus | |
7828 | extern "C" | |
7829 | { | |
7830 | #endif | |
7831 | /* We use char because int might match the return type of a gcc2 | |
7832 | builtin and then its argument prototype would still apply. */ | |
7833 | char _doprnt (); | |
7834 | /* The GNU C library defines this for functions which it implements | |
7835 | to always fail with ENOSYS. Some functions are actually named | |
7836 | something starting with __ and the normal name is an alias. */ | |
7837 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7838 | choke me | |
7839 | #else | |
7840 | char (*f) () = _doprnt; | |
7841 | #endif | |
7842 | #ifdef __cplusplus | |
7843 | } | |
7844 | #endif | |
7845 | ||
7846 | int | |
7847 | main () | |
7848 | { | |
7849 | return f != _doprnt; | |
7850 | ; | |
7851 | return 0; | |
7852 | } | |
7853 | _ACEOF | |
7854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7856 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7857 | ac_status=$? |
8a2fc586 AK |
7858 | grep -v '^ *+' conftest.er1 >conftest.err |
7859 | rm -f conftest.er1 | |
7860 | cat conftest.err >&5 | |
ad6254c5 AK |
7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7862 | (exit $ac_status); } && | |
8a2fc586 AK |
7863 | { ac_try='test -z "$ac_c_werror_flag" |
7864 | || test ! -s conftest.err' | |
7865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7866 | (eval $ac_try) 2>&5 | |
7867 | ac_status=$? | |
7868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7869 | (exit $ac_status); }; } && | |
7870 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7872 | (eval $ac_try) 2>&5 | |
7873 | ac_status=$? | |
7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7875 | (exit $ac_status); }; }; then | |
7876 | ac_cv_func__doprnt=yes | |
7877 | else | |
7878 | echo "$as_me: failed program was:" >&5 | |
7879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7880 | ||
7881 | ac_cv_func__doprnt=no | |
7882 | fi | |
8a2fc586 AK |
7883 | rm -f conftest.err conftest.$ac_objext \ |
7884 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7885 | fi |
7886 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7887 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7888 | if test $ac_cv_func__doprnt = yes; then | |
7889 | ||
7890 | cat >>confdefs.h <<\_ACEOF | |
7891 | #define HAVE_DOPRNT 1 | |
7892 | _ACEOF | |
7893 | ||
7894 | fi | |
7895 | ||
7896 | fi | |
7897 | done | |
7898 | ||
7899 | ||
7900 | ||
7901 | ||
7902 | ||
7903 | for ac_func in mkdir rmdir uname | |
7904 | do | |
7905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7910 | else | |
7911 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7912 | /* confdefs.h. */ |
7913 | _ACEOF | |
7914 | cat confdefs.h >>conftest.$ac_ext | |
7915 | cat >>conftest.$ac_ext <<_ACEOF | |
7916 | /* end confdefs.h. */ | |
8a2fc586 AK |
7917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7919 | #define $ac_func innocuous_$ac_func | |
7920 | ||
ad6254c5 AK |
7921 | /* System header to define __stub macros and hopefully few prototypes, |
7922 | which can conflict with char $ac_func (); below. | |
7923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7924 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7925 | |
ad6254c5 AK |
7926 | #ifdef __STDC__ |
7927 | # include <limits.h> | |
7928 | #else | |
7929 | # include <assert.h> | |
7930 | #endif | |
8a2fc586 AK |
7931 | |
7932 | #undef $ac_func | |
7933 | ||
ad6254c5 AK |
7934 | /* Override any gcc2 internal prototype to avoid an error. */ |
7935 | #ifdef __cplusplus | |
7936 | extern "C" | |
7937 | { | |
7938 | #endif | |
7939 | /* We use char because int might match the return type of a gcc2 | |
7940 | builtin and then its argument prototype would still apply. */ | |
7941 | char $ac_func (); | |
7942 | /* The GNU C library defines this for functions which it implements | |
7943 | to always fail with ENOSYS. Some functions are actually named | |
7944 | something starting with __ and the normal name is an alias. */ | |
7945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7946 | choke me | |
7947 | #else | |
7948 | char (*f) () = $ac_func; | |
7949 | #endif | |
7950 | #ifdef __cplusplus | |
7951 | } | |
7952 | #endif | |
7953 | ||
7954 | int | |
7955 | main () | |
7956 | { | |
7957 | return f != $ac_func; | |
7958 | ; | |
7959 | return 0; | |
7960 | } | |
7961 | _ACEOF | |
7962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7964 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7965 | ac_status=$? |
8a2fc586 AK |
7966 | grep -v '^ *+' conftest.er1 >conftest.err |
7967 | rm -f conftest.er1 | |
7968 | cat conftest.err >&5 | |
ad6254c5 AK |
7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7970 | (exit $ac_status); } && | |
8a2fc586 AK |
7971 | { ac_try='test -z "$ac_c_werror_flag" |
7972 | || test ! -s conftest.err' | |
7973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7974 | (eval $ac_try) 2>&5 | |
7975 | ac_status=$? | |
7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7977 | (exit $ac_status); }; } && | |
7978 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7980 | (eval $ac_try) 2>&5 | |
7981 | ac_status=$? | |
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7983 | (exit $ac_status); }; }; then | |
7984 | eval "$as_ac_var=yes" | |
7985 | else | |
7986 | echo "$as_me: failed program was:" >&5 | |
7987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7988 | ||
7989 | eval "$as_ac_var=no" | |
7990 | fi | |
8a2fc586 AK |
7991 | rm -f conftest.err conftest.$ac_objext \ |
7992 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7993 | fi |
7994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7995 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7996 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7997 | cat >>confdefs.h <<_ACEOF | |
7998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7999 | _ACEOF | |
8000 | ||
8001 | else | |
8002 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8003 | echo "$as_me: error: bailing out" >&2;} | |
8004 | { (exit 1); exit 1; }; } | |
8005 | fi | |
8006 | done | |
8007 | ||
8008 | ||
8009 | ################################################################################ | |
8010 | if test x$READLINE = xyes; then | |
8011 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8012 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8013 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8015 | else | |
8016 | ac_func_search_save_LIBS=$LIBS | |
8017 | ac_cv_search_tgetent=no | |
8018 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8019 | /* confdefs.h. */ |
8020 | _ACEOF | |
8021 | cat confdefs.h >>conftest.$ac_ext | |
8022 | cat >>conftest.$ac_ext <<_ACEOF | |
8023 | /* end confdefs.h. */ | |
8024 | ||
8025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8026 | #ifdef __cplusplus | |
8027 | extern "C" | |
8028 | #endif | |
8029 | /* We use char because int might match the return type of a gcc2 | |
8030 | builtin and then its argument prototype would still apply. */ | |
8031 | char tgetent (); | |
8032 | int | |
8033 | main () | |
8034 | { | |
8035 | tgetent (); | |
8036 | ; | |
8037 | return 0; | |
8038 | } | |
8039 | _ACEOF | |
8040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8042 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8043 | ac_status=$? |
8a2fc586 AK |
8044 | grep -v '^ *+' conftest.er1 >conftest.err |
8045 | rm -f conftest.er1 | |
8046 | cat conftest.err >&5 | |
ad6254c5 AK |
8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8048 | (exit $ac_status); } && | |
8a2fc586 AK |
8049 | { ac_try='test -z "$ac_c_werror_flag" |
8050 | || test ! -s conftest.err' | |
8051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8052 | (eval $ac_try) 2>&5 | |
8053 | ac_status=$? | |
8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8055 | (exit $ac_status); }; } && | |
8056 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8058 | (eval $ac_try) 2>&5 | |
8059 | ac_status=$? | |
8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8061 | (exit $ac_status); }; }; then | |
8062 | ac_cv_search_tgetent="none required" | |
8063 | else | |
8064 | echo "$as_me: failed program was:" >&5 | |
8065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8066 | ||
8067 | fi | |
8a2fc586 AK |
8068 | rm -f conftest.err conftest.$ac_objext \ |
8069 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8070 | if test "$ac_cv_search_tgetent" = no; then |
8071 | for ac_lib in ncurses curses termcap termlib; do | |
8072 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8073 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8074 | /* confdefs.h. */ |
8075 | _ACEOF | |
8076 | cat confdefs.h >>conftest.$ac_ext | |
8077 | cat >>conftest.$ac_ext <<_ACEOF | |
8078 | /* end confdefs.h. */ | |
8079 | ||
8080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8081 | #ifdef __cplusplus | |
8082 | extern "C" | |
8083 | #endif | |
8084 | /* We use char because int might match the return type of a gcc2 | |
8085 | builtin and then its argument prototype would still apply. */ | |
8086 | char tgetent (); | |
8087 | int | |
8088 | main () | |
8089 | { | |
8090 | tgetent (); | |
8091 | ; | |
8092 | return 0; | |
8093 | } | |
8094 | _ACEOF | |
8095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8097 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8098 | ac_status=$? |
8a2fc586 AK |
8099 | grep -v '^ *+' conftest.er1 >conftest.err |
8100 | rm -f conftest.er1 | |
8101 | cat conftest.err >&5 | |
ad6254c5 AK |
8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8103 | (exit $ac_status); } && | |
8a2fc586 AK |
8104 | { ac_try='test -z "$ac_c_werror_flag" |
8105 | || test ! -s conftest.err' | |
8106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8107 | (eval $ac_try) 2>&5 | |
8108 | ac_status=$? | |
8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8110 | (exit $ac_status); }; } && | |
8111 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8113 | (eval $ac_try) 2>&5 | |
8114 | ac_status=$? | |
8115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8116 | (exit $ac_status); }; }; then | |
8117 | ac_cv_search_tgetent="-l$ac_lib" | |
8118 | break | |
8119 | else | |
8120 | echo "$as_me: failed program was:" >&5 | |
8121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8122 | ||
8123 | fi | |
8a2fc586 AK |
8124 | rm -f conftest.err conftest.$ac_objext \ |
8125 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8126 | done |
8127 | fi | |
8128 | LIBS=$ac_func_search_save_LIBS | |
8129 | fi | |
8130 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8131 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8132 | if test "$ac_cv_search_tgetent" != no; then | |
8133 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
8134 | ||
8135 | else | |
8136 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
8137 | --enable-readline option (which is enabled by default). Either disable readline | |
8138 | support with --disable-readline or download and install termcap from: | |
8139 | ftp.gnu.org/gnu/termcap | |
8140 | Note: if you are using precompiled packages you will also need the development | |
8141 | package as well (which may be called termcap-devel or something similar). | |
8142 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8143 | not found either - but you could try installing that as well. | |
8144 | " >&5 | |
8145 | echo "$as_me: error: termcap could not be found which is required for the | |
8146 | --enable-readline option (which is enabled by default). Either disable readline | |
8147 | support with --disable-readline or download and install termcap from: | |
8148 | ftp.gnu.org/gnu/termcap | |
8149 | Note: if you are using precompiled packages you will also need the development | |
8150 | package as well (which may be called termcap-devel or something similar). | |
8151 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8152 | not found either - but you could try installing that as well. | |
8153 | " >&2;} | |
8154 | { (exit 1); exit 1; }; } | |
8155 | ||
8156 | fi | |
8157 | ||
8158 | fi | |
8159 | ||
8160 | ################################################################################ | |
8161 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8162 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8163 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8165 | else | |
8166 | ac_check_lib_save_LIBS=$LIBS | |
8167 | LIBS="-ldl $LIBS" | |
8168 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8169 | /* confdefs.h. */ |
8170 | _ACEOF | |
8171 | cat confdefs.h >>conftest.$ac_ext | |
8172 | cat >>conftest.$ac_ext <<_ACEOF | |
8173 | /* end confdefs.h. */ | |
8174 | ||
8175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8176 | #ifdef __cplusplus | |
8177 | extern "C" | |
8178 | #endif | |
8179 | /* We use char because int might match the return type of a gcc2 | |
8180 | builtin and then its argument prototype would still apply. */ | |
8181 | char dlopen (); | |
8182 | int | |
8183 | main () | |
8184 | { | |
8185 | dlopen (); | |
8186 | ; | |
8187 | return 0; | |
8188 | } | |
8189 | _ACEOF | |
8190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8192 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8193 | ac_status=$? |
8a2fc586 AK |
8194 | grep -v '^ *+' conftest.er1 >conftest.err |
8195 | rm -f conftest.er1 | |
8196 | cat conftest.err >&5 | |
ad6254c5 AK |
8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8198 | (exit $ac_status); } && | |
8a2fc586 AK |
8199 | { ac_try='test -z "$ac_c_werror_flag" |
8200 | || test ! -s conftest.err' | |
8201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8202 | (eval $ac_try) 2>&5 | |
8203 | ac_status=$? | |
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8205 | (exit $ac_status); }; } && | |
8206 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8208 | (eval $ac_try) 2>&5 | |
8209 | ac_status=$? | |
8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8211 | (exit $ac_status); }; }; then | |
8212 | ac_cv_lib_dl_dlopen=yes | |
8213 | else | |
8214 | echo "$as_me: failed program was:" >&5 | |
8215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8216 | ||
8217 | ac_cv_lib_dl_dlopen=no | |
8218 | fi | |
8a2fc586 AK |
8219 | rm -f conftest.err conftest.$ac_objext \ |
8220 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8221 | LIBS=$ac_check_lib_save_LIBS |
8222 | fi | |
8223 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8224 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8225 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8226 | HAVE_LIBDL=yes | |
8227 | else | |
8228 | HAVE_LIBDL=no | |
8229 | fi | |
8230 | ||
8231 | ||
7e9e9502 | 8232 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8233 | |
8234 | cat >>confdefs.h <<\_ACEOF | |
8235 | #define HAVE_LIBDL 1 | |
8236 | _ACEOF | |
8237 | ||
ad6254c5 AK |
8238 | LIBS="-ldl $LIBS" |
8239 | else | |
8240 | HAVE_LIBDL=no | |
8241 | fi | |
8242 | ||
8243 | ################################################################################ | |
8244 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8245 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8246 | \) -a "x$STATIC_LINK" = xyes ]; | |
8247 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8248 | " >&5 | |
8249 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8250 | " >&2;} | |
8251 | { (exit 1); exit 1; }; } | |
8252 | fi | |
8253 | ||
8254 | ################################################################################ | |
8255 | if test x$SELINUX = xyes; then | |
8a2fc586 AK |
8256 | echo "$as_me:$LINENO: checking for sepol_check_context function" >&5 |
8257 | echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6 | |
8258 | echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 | |
8259 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6 | |
8260 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then | |
8261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8262 | else | |
8263 | ac_check_lib_save_LIBS=$LIBS | |
8264 | LIBS="-lsepol $LIBS" | |
8265 | cat >conftest.$ac_ext <<_ACEOF | |
8266 | /* confdefs.h. */ | |
8267 | _ACEOF | |
8268 | cat confdefs.h >>conftest.$ac_ext | |
8269 | cat >>conftest.$ac_ext <<_ACEOF | |
8270 | /* end confdefs.h. */ | |
8271 | ||
8272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8273 | #ifdef __cplusplus | |
8274 | extern "C" | |
8275 | #endif | |
8276 | /* We use char because int might match the return type of a gcc2 | |
8277 | builtin and then its argument prototype would still apply. */ | |
8278 | char sepol_check_context (); | |
8279 | int | |
8280 | main () | |
8281 | { | |
8282 | sepol_check_context (); | |
8283 | ; | |
8284 | return 0; | |
8285 | } | |
8286 | _ACEOF | |
8287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8289 | (eval $ac_link) 2>conftest.er1 | |
8290 | ac_status=$? | |
8291 | grep -v '^ *+' conftest.er1 >conftest.err | |
8292 | rm -f conftest.er1 | |
8293 | cat conftest.err >&5 | |
8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8295 | (exit $ac_status); } && | |
8296 | { ac_try='test -z "$ac_c_werror_flag" | |
8297 | || test ! -s conftest.err' | |
8298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8299 | (eval $ac_try) 2>&5 | |
8300 | ac_status=$? | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); }; } && | |
8303 | { ac_try='test -s conftest$ac_exeext' | |
8304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8305 | (eval $ac_try) 2>&5 | |
8306 | ac_status=$? | |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8308 | (exit $ac_status); }; }; then | |
8309 | ac_cv_lib_sepol_sepol_check_context=yes | |
8310 | else | |
8311 | echo "$as_me: failed program was:" >&5 | |
8312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8313 | ||
8314 | ac_cv_lib_sepol_sepol_check_context=no | |
8315 | fi | |
8316 | rm -f conftest.err conftest.$ac_objext \ | |
8317 | conftest$ac_exeext conftest.$ac_ext | |
8318 | LIBS=$ac_check_lib_save_LIBS | |
8319 | fi | |
8320 | echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 | |
8321 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6 | |
8322 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then | |
8323 | HAVE_SEPOL=yes | |
8324 | else | |
8325 | HAVE_SEPOL=no | |
8326 | fi | |
8327 | ||
8328 | echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5 | |
8329 | echo "${ECHO_T}$HAVE_SEPOL" >&6 | |
8330 | ||
8331 | if test x$HAVE_SEPOL = xyes; then | |
8332 | LIBS="-lsepol $LIBS" | |
8333 | fi | |
8334 | ||
ad6254c5 AK |
8335 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 |
8336 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
8337 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
8338 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
8339 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8341 | else | |
8342 | ac_check_lib_save_LIBS=$LIBS | |
8343 | LIBS="-lselinux $LIBS" | |
8344 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8345 | /* confdefs.h. */ |
8346 | _ACEOF | |
8347 | cat confdefs.h >>conftest.$ac_ext | |
8348 | cat >>conftest.$ac_ext <<_ACEOF | |
8349 | /* end confdefs.h. */ | |
8350 | ||
8351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8352 | #ifdef __cplusplus | |
8353 | extern "C" | |
8354 | #endif | |
8355 | /* We use char because int might match the return type of a gcc2 | |
8356 | builtin and then its argument prototype would still apply. */ | |
8357 | char is_selinux_enabled (); | |
8358 | int | |
8359 | main () | |
8360 | { | |
8361 | is_selinux_enabled (); | |
8362 | ; | |
8363 | return 0; | |
8364 | } | |
8365 | _ACEOF | |
8366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8368 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8369 | ac_status=$? |
8a2fc586 AK |
8370 | grep -v '^ *+' conftest.er1 >conftest.err |
8371 | rm -f conftest.er1 | |
8372 | cat conftest.err >&5 | |
ad6254c5 AK |
8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8374 | (exit $ac_status); } && | |
8a2fc586 AK |
8375 | { ac_try='test -z "$ac_c_werror_flag" |
8376 | || test ! -s conftest.err' | |
8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8378 | (eval $ac_try) 2>&5 | |
8379 | ac_status=$? | |
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 | (exit $ac_status); }; } && | |
8382 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8384 | (eval $ac_try) 2>&5 | |
8385 | ac_status=$? | |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8387 | (exit $ac_status); }; }; then | |
8388 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8389 | else | |
8390 | echo "$as_me: failed program was:" >&5 | |
8391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8392 | ||
8393 | ac_cv_lib_selinux_is_selinux_enabled=no | |
8394 | fi | |
8a2fc586 AK |
8395 | rm -f conftest.err conftest.$ac_objext \ |
8396 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8397 | LIBS=$ac_check_lib_save_LIBS |
8398 | fi | |
8399 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8400 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
8401 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
8402 | HAVE_SELINUX=yes | |
8403 | else | |
8404 | HAVE_SELINUX=no | |
8405 | fi | |
8406 | ||
8407 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
8408 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
8409 | ||
8410 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
8411 | |
8412 | cat >>confdefs.h <<\_ACEOF | |
8413 | #define HAVE_SELINUX 1 | |
8414 | _ACEOF | |
8415 | ||
ad6254c5 AK |
8416 | LIBS="-lselinux $LIBS" |
8417 | else | |
8418 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8419 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8420 | fi | |
8421 | fi | |
8422 | ||
8423 | ################################################################################ | |
8424 | ||
8425 | for ac_header in getopt.h | |
8426 | do | |
8427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8433 | fi | |
8434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8436 | else | |
8437 | # Is the header compilable? | |
8438 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8439 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8441 | /* confdefs.h. */ |
8442 | _ACEOF | |
8443 | cat confdefs.h >>conftest.$ac_ext | |
8444 | cat >>conftest.$ac_ext <<_ACEOF | |
8445 | /* end confdefs.h. */ | |
8446 | $ac_includes_default | |
8447 | #include <$ac_header> | |
8448 | _ACEOF | |
8449 | rm -f conftest.$ac_objext | |
8450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8451 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8452 | ac_status=$? |
8a2fc586 AK |
8453 | grep -v '^ *+' conftest.er1 >conftest.err |
8454 | rm -f conftest.er1 | |
8455 | cat conftest.err >&5 | |
ad6254c5 AK |
8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8457 | (exit $ac_status); } && | |
8a2fc586 AK |
8458 | { ac_try='test -z "$ac_c_werror_flag" |
8459 | || test ! -s conftest.err' | |
8460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8461 | (eval $ac_try) 2>&5 | |
8462 | ac_status=$? | |
8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8464 | (exit $ac_status); }; } && | |
8465 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8467 | (eval $ac_try) 2>&5 | |
8468 | ac_status=$? | |
8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8470 | (exit $ac_status); }; }; then | |
8471 | ac_header_compiler=yes | |
8472 | else | |
8473 | echo "$as_me: failed program was:" >&5 | |
8474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8475 | ||
8476 | ac_header_compiler=no | |
8477 | fi | |
8a2fc586 | 8478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8479 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8480 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8481 | ||
8482 | # Is the header present? | |
8483 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8484 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8485 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8486 | /* confdefs.h. */ |
8487 | _ACEOF | |
8488 | cat confdefs.h >>conftest.$ac_ext | |
8489 | cat >>conftest.$ac_ext <<_ACEOF | |
8490 | /* end confdefs.h. */ | |
8491 | #include <$ac_header> | |
8492 | _ACEOF | |
8493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8495 | ac_status=$? | |
8496 | grep -v '^ *+' conftest.er1 >conftest.err | |
8497 | rm -f conftest.er1 | |
8498 | cat conftest.err >&5 | |
8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8500 | (exit $ac_status); } >/dev/null; then | |
8501 | if test -s conftest.err; then | |
8502 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 8503 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8504 | else |
8505 | ac_cpp_err= | |
8506 | fi | |
8507 | else | |
8508 | ac_cpp_err=yes | |
8509 | fi | |
8510 | if test -z "$ac_cpp_err"; then | |
8511 | ac_header_preproc=yes | |
8512 | else | |
8513 | echo "$as_me: failed program was:" >&5 | |
8514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8515 | ||
8516 | ac_header_preproc=no | |
8517 | fi | |
8518 | rm -f conftest.err conftest.$ac_ext | |
8519 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8520 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8521 | ||
8522 | # So? What about this header? | |
8a2fc586 AK |
8523 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8524 | yes:no: ) | |
ad6254c5 AK |
8525 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8526 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
8527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8528 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8529 | ac_header_preproc=yes | |
ad6254c5 | 8530 | ;; |
8a2fc586 | 8531 | no:yes:* ) |
ad6254c5 AK |
8532 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8533 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
8534 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8535 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8536 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8537 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8538 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8539 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8541 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
8542 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8543 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8544 | ( |
8545 | cat <<\_ASBOX | |
8a2fc586 AK |
8546 | ## ------------------------------------------ ## |
8547 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8548 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8549 | _ASBOX |
8550 | ) | | |
8551 | sed "s/^/$as_me: WARNING: /" >&2 | |
8552 | ;; | |
8553 | esac | |
8554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8558 | else | |
8a2fc586 | 8559 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8560 | fi |
8561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8563 | ||
8564 | fi | |
8565 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8566 | cat >>confdefs.h <<_ACEOF | |
8567 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8568 | _ACEOF | |
72b2cb61 AK |
8569 | |
8570 | cat >>confdefs.h <<\_ACEOF | |
8571 | #define HAVE_GETOPTLONG 1 | |
8572 | _ACEOF | |
8573 | ||
ad6254c5 AK |
8574 | fi |
8575 | ||
8576 | done | |
8577 | ||
8578 | ||
8579 | ################################################################################ | |
8580 | if test x$READLINE = xyes; then | |
8581 | ||
8582 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
8583 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
8584 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
8585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8586 | else | |
8587 | ac_check_lib_save_LIBS=$LIBS | |
8588 | LIBS="-lreadline $LIBS" | |
8589 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8590 | /* confdefs.h. */ |
8591 | _ACEOF | |
8592 | cat confdefs.h >>conftest.$ac_ext | |
8593 | cat >>conftest.$ac_ext <<_ACEOF | |
8594 | /* end confdefs.h. */ | |
8595 | ||
8596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8597 | #ifdef __cplusplus | |
8598 | extern "C" | |
8599 | #endif | |
8600 | /* We use char because int might match the return type of a gcc2 | |
8601 | builtin and then its argument prototype would still apply. */ | |
8602 | char readline (); | |
8603 | int | |
8604 | main () | |
8605 | { | |
8606 | readline (); | |
8607 | ; | |
8608 | return 0; | |
8609 | } | |
8610 | _ACEOF | |
8611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8613 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8614 | ac_status=$? |
8a2fc586 AK |
8615 | grep -v '^ *+' conftest.er1 >conftest.err |
8616 | rm -f conftest.er1 | |
8617 | cat conftest.err >&5 | |
ad6254c5 AK |
8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8619 | (exit $ac_status); } && | |
8a2fc586 AK |
8620 | { ac_try='test -z "$ac_c_werror_flag" |
8621 | || test ! -s conftest.err' | |
8622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8623 | (eval $ac_try) 2>&5 | |
8624 | ac_status=$? | |
8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8626 | (exit $ac_status); }; } && | |
8627 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8629 | (eval $ac_try) 2>&5 | |
8630 | ac_status=$? | |
8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8632 | (exit $ac_status); }; }; then | |
8633 | ac_cv_lib_readline_readline=yes | |
8634 | else | |
8635 | echo "$as_me: failed program was:" >&5 | |
8636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8637 | ||
8638 | ac_cv_lib_readline_readline=no | |
8639 | fi | |
8a2fc586 AK |
8640 | rm -f conftest.err conftest.$ac_objext \ |
8641 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8642 | LIBS=$ac_check_lib_save_LIBS |
8643 | fi | |
8644 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
8645 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
8646 | if test $ac_cv_lib_readline_readline = yes; then | |
8647 | cat >>confdefs.h <<_ACEOF | |
8648 | #define HAVE_LIBREADLINE 1 | |
8649 | _ACEOF | |
8650 | ||
8651 | LIBS="-lreadline $LIBS" | |
8652 | ||
8653 | else | |
8654 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
8655 | --enable-readline option (which is enabled by default). Either disable readline | |
8656 | support with --disable-readline or download and install readline from: | |
8657 | ftp.gnu.org/gnu/readline | |
8658 | Note: if you are using precompiled packages you will also need the development | |
8659 | package as well (which may be called readline-devel or something similar). | |
8660 | " >&5 | |
8661 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
8662 | --enable-readline option (which is enabled by default). Either disable readline | |
8663 | support with --disable-readline or download and install readline from: | |
8664 | ftp.gnu.org/gnu/readline | |
8665 | Note: if you are using precompiled packages you will also need the development | |
8666 | package as well (which may be called readline-devel or something similar). | |
8667 | " >&2;} | |
8668 | { (exit 1); exit 1; }; } | |
8669 | ||
8670 | fi | |
8671 | ||
8672 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
8673 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
8674 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
8675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8676 | else | |
8677 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8678 | /* confdefs.h. */ |
8679 | _ACEOF | |
8680 | cat confdefs.h >>conftest.$ac_ext | |
8681 | cat >>conftest.$ac_ext <<_ACEOF | |
8682 | /* end confdefs.h. */ | |
8a2fc586 AK |
8683 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
8684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8685 | #define rl_completion_matches innocuous_rl_completion_matches | |
8686 | ||
ad6254c5 AK |
8687 | /* System header to define __stub macros and hopefully few prototypes, |
8688 | which can conflict with char rl_completion_matches (); below. | |
8689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8690 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8691 | |
ad6254c5 AK |
8692 | #ifdef __STDC__ |
8693 | # include <limits.h> | |
8694 | #else | |
8695 | # include <assert.h> | |
8696 | #endif | |
8a2fc586 AK |
8697 | |
8698 | #undef rl_completion_matches | |
8699 | ||
ad6254c5 AK |
8700 | /* Override any gcc2 internal prototype to avoid an error. */ |
8701 | #ifdef __cplusplus | |
8702 | extern "C" | |
8703 | { | |
8704 | #endif | |
8705 | /* We use char because int might match the return type of a gcc2 | |
8706 | builtin and then its argument prototype would still apply. */ | |
8707 | char rl_completion_matches (); | |
8708 | /* The GNU C library defines this for functions which it implements | |
8709 | to always fail with ENOSYS. Some functions are actually named | |
8710 | something starting with __ and the normal name is an alias. */ | |
8711 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
8712 | choke me | |
8713 | #else | |
8714 | char (*f) () = rl_completion_matches; | |
8715 | #endif | |
8716 | #ifdef __cplusplus | |
8717 | } | |
8718 | #endif | |
8719 | ||
8720 | int | |
8721 | main () | |
8722 | { | |
8723 | return f != rl_completion_matches; | |
8724 | ; | |
8725 | return 0; | |
8726 | } | |
8727 | _ACEOF | |
8728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8730 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8731 | ac_status=$? |
8a2fc586 AK |
8732 | grep -v '^ *+' conftest.er1 >conftest.err |
8733 | rm -f conftest.er1 | |
8734 | cat conftest.err >&5 | |
ad6254c5 AK |
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8736 | (exit $ac_status); } && | |
8a2fc586 AK |
8737 | { ac_try='test -z "$ac_c_werror_flag" |
8738 | || test ! -s conftest.err' | |
8739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8740 | (eval $ac_try) 2>&5 | |
8741 | ac_status=$? | |
8742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8743 | (exit $ac_status); }; } && | |
8744 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8746 | (eval $ac_try) 2>&5 | |
8747 | ac_status=$? | |
8748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8749 | (exit $ac_status); }; }; then | |
8750 | ac_cv_func_rl_completion_matches=yes | |
8751 | else | |
8752 | echo "$as_me: failed program was:" >&5 | |
8753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8754 | ||
8755 | ac_cv_func_rl_completion_matches=no | |
8756 | fi | |
8a2fc586 AK |
8757 | rm -f conftest.err conftest.$ac_objext \ |
8758 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8759 | fi |
8760 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
8761 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
8762 | if test $ac_cv_func_rl_completion_matches = yes; then | |
ad6254c5 | 8763 | |
72b2cb61 AK |
8764 | cat >>confdefs.h <<\_ACEOF |
8765 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
8766 | _ACEOF | |
8767 | ||
8768 | fi | |
ad6254c5 AK |
8769 | |
8770 | fi | |
8771 | ||
8772 | ################################################################################ | |
8773 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
8774 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
8775 | # Check whether --enable-nls or --disable-nls was given. | |
8776 | if test "${enable_nls+set}" = set; then | |
8777 | enableval="$enable_nls" | |
8778 | INTL=$enableval | |
8779 | else | |
8780 | INTL=no | |
8781 | fi; | |
8782 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
8783 | echo "${ECHO_T}$INTL" >&6 | |
8784 | ||
8785 | if test x$INTL = xyes; then | |
8786 | INTL_PACKAGE="lvm2" | |
8787 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8788 | set dummy msgfmt; ac_word=$2 | |
8789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8791 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8793 | else | |
8794 | case $MSGFMT in | |
8795 | [\\/]* | ?:[\\/]*) | |
8796 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8797 | ;; | |
8798 | *) | |
8799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8800 | for as_dir in $PATH | |
8801 | do | |
8802 | IFS=$as_save_IFS | |
8803 | test -z "$as_dir" && as_dir=. | |
8804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8806 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8808 | break 2 | |
8809 | fi | |
8810 | done | |
8811 | done | |
8812 | ||
8813 | ;; | |
8814 | esac | |
8815 | fi | |
8816 | MSGFMT=$ac_cv_path_MSGFMT | |
8817 | ||
8818 | if test -n "$MSGFMT"; then | |
8819 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
8820 | echo "${ECHO_T}$MSGFMT" >&6 | |
8821 | else | |
8822 | echo "$as_me:$LINENO: result: no" >&5 | |
8823 | echo "${ECHO_T}no" >&6 | |
8824 | fi | |
8825 | ||
8826 | if [ "x$MSGFMT" == x ]; | |
8827 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8828 | " >&5 | |
8829 | echo "$as_me: error: msgfmt not found in path $PATH | |
8830 | " >&2;} | |
8831 | { (exit 1); exit 1; }; } | |
8832 | fi; | |
8833 | ||
8834 | ||
8835 | # Check whether --with-localedir or --without-localedir was given. | |
8836 | if test "${with_localedir+set}" = set; then | |
8837 | withval="$with_localedir" | |
8838 | LOCALEDIR="$withval" | |
8839 | else | |
8840 | LOCALEDIR='${prefix}/share/locale' | |
8841 | fi; | |
8842 | fi | |
8843 | ||
8844 | ################################################################################ | |
8845 | ||
8846 | # Check whether --with-confdir or --without-confdir was given. | |
8847 | if test "${with_confdir+set}" = set; then | |
8848 | withval="$with_confdir" | |
8849 | CONFDIR="$withval" | |
8850 | else | |
8851 | CONFDIR='/etc' | |
8852 | fi; | |
8853 | ||
8854 | ||
8855 | # Check whether --with-staticdir or --without-staticdir was given. | |
8856 | if test "${with_staticdir+set}" = set; then | |
8857 | withval="$with_staticdir" | |
8858 | STATICDIR="$withval" | |
8859 | else | |
8860 | STATICDIR='${exec_prefix}/sbin' | |
8861 | fi; | |
8862 | ||
8863 | ################################################################################ | |
8864 | if test x$READLINE = xyes; then | |
8865 | ||
8866 | ||
8867 | for ac_header in readline/readline.h readline/history.h | |
8868 | do | |
8869 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8871 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8875 | fi | |
8876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8878 | else | |
8879 | # Is the header compilable? | |
8880 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8881 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8882 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8883 | /* confdefs.h. */ |
8884 | _ACEOF | |
8885 | cat confdefs.h >>conftest.$ac_ext | |
8886 | cat >>conftest.$ac_ext <<_ACEOF | |
8887 | /* end confdefs.h. */ | |
8888 | $ac_includes_default | |
8889 | #include <$ac_header> | |
8890 | _ACEOF | |
8891 | rm -f conftest.$ac_objext | |
8892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8893 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8894 | ac_status=$? |
8a2fc586 AK |
8895 | grep -v '^ *+' conftest.er1 >conftest.err |
8896 | rm -f conftest.er1 | |
8897 | cat conftest.err >&5 | |
ad6254c5 AK |
8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8899 | (exit $ac_status); } && | |
8a2fc586 AK |
8900 | { ac_try='test -z "$ac_c_werror_flag" |
8901 | || test ! -s conftest.err' | |
8902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8903 | (eval $ac_try) 2>&5 | |
8904 | ac_status=$? | |
8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8906 | (exit $ac_status); }; } && | |
8907 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8909 | (eval $ac_try) 2>&5 | |
8910 | ac_status=$? | |
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8912 | (exit $ac_status); }; }; then | |
8913 | ac_header_compiler=yes | |
8914 | else | |
8915 | echo "$as_me: failed program was:" >&5 | |
8916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8917 | ||
8918 | ac_header_compiler=no | |
8919 | fi | |
8a2fc586 | 8920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8921 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8922 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8923 | ||
8924 | # Is the header present? | |
8925 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8926 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8927 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8928 | /* confdefs.h. */ |
8929 | _ACEOF | |
8930 | cat confdefs.h >>conftest.$ac_ext | |
8931 | cat >>conftest.$ac_ext <<_ACEOF | |
8932 | /* end confdefs.h. */ | |
8933 | #include <$ac_header> | |
8934 | _ACEOF | |
8935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8937 | ac_status=$? | |
8938 | grep -v '^ *+' conftest.er1 >conftest.err | |
8939 | rm -f conftest.er1 | |
8940 | cat conftest.err >&5 | |
8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8942 | (exit $ac_status); } >/dev/null; then | |
8943 | if test -s conftest.err; then | |
8944 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 8945 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8946 | else |
8947 | ac_cpp_err= | |
8948 | fi | |
8949 | else | |
8950 | ac_cpp_err=yes | |
8951 | fi | |
8952 | if test -z "$ac_cpp_err"; then | |
8953 | ac_header_preproc=yes | |
8954 | else | |
8955 | echo "$as_me: failed program was:" >&5 | |
8956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8957 | ||
8958 | ac_header_preproc=no | |
8959 | fi | |
8960 | rm -f conftest.err conftest.$ac_ext | |
8961 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8962 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8963 | ||
8964 | # So? What about this header? | |
8a2fc586 AK |
8965 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8966 | yes:no: ) | |
ad6254c5 AK |
8967 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8968 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
8969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8970 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8971 | ac_header_preproc=yes | |
ad6254c5 | 8972 | ;; |
8a2fc586 | 8973 | no:yes:* ) |
ad6254c5 AK |
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8975 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
8976 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8977 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8978 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8979 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8980 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8981 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
8984 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8985 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8986 | ( |
8987 | cat <<\_ASBOX | |
8a2fc586 AK |
8988 | ## ------------------------------------------ ## |
8989 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8990 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8991 | _ASBOX |
8992 | ) | | |
8993 | sed "s/^/$as_me: WARNING: /" >&2 | |
8994 | ;; | |
8995 | esac | |
8996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9000 | else | |
8a2fc586 | 9001 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
9002 | fi |
9003 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9004 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9005 | ||
9006 | fi | |
9007 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9008 | cat >>confdefs.h <<_ACEOF | |
9009 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9010 | _ACEOF | |
9011 | ||
9012 | else | |
9013 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9014 | echo "$as_me: error: bailing out" >&2;} | |
9015 | { (exit 1); exit 1; }; } | |
9016 | fi | |
9017 | ||
9018 | done | |
9019 | ||
9020 | fi | |
9021 | ||
5c7fc7c4 | 9022 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9023 | |
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | ||
9032 | ||
9033 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
9034 | do | |
9035 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9037 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9041 | fi | |
9042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9043 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9044 | else | |
9045 | # Is the header compilable? | |
9046 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9047 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9048 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9049 | /* confdefs.h. */ |
9050 | _ACEOF | |
9051 | cat confdefs.h >>conftest.$ac_ext | |
9052 | cat >>conftest.$ac_ext <<_ACEOF | |
9053 | /* end confdefs.h. */ | |
9054 | $ac_includes_default | |
9055 | #include <$ac_header> | |
9056 | _ACEOF | |
9057 | rm -f conftest.$ac_objext | |
9058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9059 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9060 | ac_status=$? |
8a2fc586 AK |
9061 | grep -v '^ *+' conftest.er1 >conftest.err |
9062 | rm -f conftest.er1 | |
9063 | cat conftest.err >&5 | |
ad6254c5 AK |
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9065 | (exit $ac_status); } && | |
8a2fc586 AK |
9066 | { ac_try='test -z "$ac_c_werror_flag" |
9067 | || test ! -s conftest.err' | |
9068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9069 | (eval $ac_try) 2>&5 | |
9070 | ac_status=$? | |
9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9072 | (exit $ac_status); }; } && | |
9073 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9075 | (eval $ac_try) 2>&5 | |
9076 | ac_status=$? | |
9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9078 | (exit $ac_status); }; }; then | |
9079 | ac_header_compiler=yes | |
9080 | else | |
9081 | echo "$as_me: failed program was:" >&5 | |
9082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9083 | ||
9084 | ac_header_compiler=no | |
9085 | fi | |
8a2fc586 | 9086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9087 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9088 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9089 | ||
9090 | # Is the header present? | |
9091 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9092 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9093 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9094 | /* confdefs.h. */ |
9095 | _ACEOF | |
9096 | cat confdefs.h >>conftest.$ac_ext | |
9097 | cat >>conftest.$ac_ext <<_ACEOF | |
9098 | /* end confdefs.h. */ | |
9099 | #include <$ac_header> | |
9100 | _ACEOF | |
9101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9103 | ac_status=$? | |
9104 | grep -v '^ *+' conftest.er1 >conftest.err | |
9105 | rm -f conftest.er1 | |
9106 | cat conftest.err >&5 | |
9107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9108 | (exit $ac_status); } >/dev/null; then | |
9109 | if test -s conftest.err; then | |
9110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9112 | else |
9113 | ac_cpp_err= | |
9114 | fi | |
9115 | else | |
9116 | ac_cpp_err=yes | |
9117 | fi | |
9118 | if test -z "$ac_cpp_err"; then | |
9119 | ac_header_preproc=yes | |
9120 | else | |
9121 | echo "$as_me: failed program was:" >&5 | |
9122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9123 | ||
9124 | ac_header_preproc=no | |
9125 | fi | |
9126 | rm -f conftest.err conftest.$ac_ext | |
9127 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9128 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9129 | ||
9130 | # So? What about this header? | |
8a2fc586 AK |
9131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9132 | yes:no: ) | |
ad6254c5 AK |
9133 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9134 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9135 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9136 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9137 | ac_header_preproc=yes | |
ad6254c5 | 9138 | ;; |
8a2fc586 | 9139 | no:yes:* ) |
ad6254c5 AK |
9140 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9141 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9142 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9143 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9144 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9145 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9146 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9147 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9149 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9150 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9151 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9152 | ( |
9153 | cat <<\_ASBOX | |
8a2fc586 AK |
9154 | ## ------------------------------------------ ## |
9155 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9156 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9157 | _ASBOX |
9158 | ) | | |
9159 | sed "s/^/$as_me: WARNING: /" >&2 | |
9160 | ;; | |
9161 | esac | |
9162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9166 | else | |
8a2fc586 | 9167 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
9168 | fi |
9169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9171 | ||
9172 | fi | |
9173 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9174 | cat >>confdefs.h <<_ACEOF | |
9175 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9176 | _ACEOF | |
9177 | ||
9178 | else | |
9179 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9180 | echo "$as_me: error: bailing out" >&2;} | |
9181 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
9182 | fi |
9183 | ||
ad6254c5 AK |
9184 | done |
9185 | ||
9186 | ||
795ca3e5 | 9187 | |
8106cdd5 | 9188 | |
ad6254c5 AK |
9189 | |
9190 | ||
9191 | for ac_func in dup2 getmntent memmove select socket | |
9192 | do | |
9193 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9194 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9195 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9196 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9198 | else |
ad6254c5 | 9199 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9200 | /* confdefs.h. */ |
9201 | _ACEOF | |
9202 | cat confdefs.h >>conftest.$ac_ext | |
9203 | cat >>conftest.$ac_ext <<_ACEOF | |
9204 | /* end confdefs.h. */ | |
8a2fc586 AK |
9205 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9206 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9207 | #define $ac_func innocuous_$ac_func | |
9208 | ||
795ca3e5 | 9209 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9210 | which can conflict with char $ac_func (); below. |
9211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9212 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9213 | |
ad6254c5 AK |
9214 | #ifdef __STDC__ |
9215 | # include <limits.h> | |
9216 | #else | |
9217 | # include <assert.h> | |
9218 | #endif | |
8a2fc586 AK |
9219 | |
9220 | #undef $ac_func | |
9221 | ||
795ca3e5 | 9222 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9223 | #ifdef __cplusplus |
9224 | extern "C" | |
9225 | { | |
9226 | #endif | |
795ca3e5 | 9227 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9228 | builtin and then its argument prototype would still apply. */ |
9229 | char $ac_func (); | |
795ca3e5 AK |
9230 | /* The GNU C library defines this for functions which it implements |
9231 | to always fail with ENOSYS. Some functions are actually named | |
9232 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 9233 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
9234 | choke me |
9235 | #else | |
ad6254c5 AK |
9236 | char (*f) () = $ac_func; |
9237 | #endif | |
9238 | #ifdef __cplusplus | |
9239 | } | |
795ca3e5 AK |
9240 | #endif |
9241 | ||
ad6254c5 AK |
9242 | int |
9243 | main () | |
9244 | { | |
9245 | return f != $ac_func; | |
9246 | ; | |
9247 | return 0; | |
9248 | } | |
9249 | _ACEOF | |
9250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9252 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9253 | ac_status=$? |
8a2fc586 AK |
9254 | grep -v '^ *+' conftest.er1 >conftest.err |
9255 | rm -f conftest.er1 | |
9256 | cat conftest.err >&5 | |
ad6254c5 AK |
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9258 | (exit $ac_status); } && | |
8a2fc586 AK |
9259 | { ac_try='test -z "$ac_c_werror_flag" |
9260 | || test ! -s conftest.err' | |
9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9262 | (eval $ac_try) 2>&5 | |
9263 | ac_status=$? | |
9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9265 | (exit $ac_status); }; } && | |
9266 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9268 | (eval $ac_try) 2>&5 | |
9269 | ac_status=$? | |
9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9271 | (exit $ac_status); }; }; then | |
9272 | eval "$as_ac_var=yes" | |
795ca3e5 | 9273 | else |
ad6254c5 AK |
9274 | echo "$as_me: failed program was:" >&5 |
9275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9276 | ||
9277 | eval "$as_ac_var=no" | |
80992638 | 9278 | fi |
8a2fc586 AK |
9279 | rm -f conftest.err conftest.$ac_objext \ |
9280 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9281 | fi |
ad6254c5 AK |
9282 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9283 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9284 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9285 | cat >>confdefs.h <<_ACEOF | |
9286 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9287 | _ACEOF | |
80992638 AK |
9288 | |
9289 | else | |
ad6254c5 AK |
9290 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9291 | echo "$as_me: error: bailing out" >&2;} | |
9292 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9293 | fi |
ad6254c5 | 9294 | done |
795ca3e5 | 9295 | |
ad6254c5 AK |
9296 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
9297 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
9298 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
9299 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
9300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9301 | else |
ad6254c5 AK |
9302 | ac_check_lib_save_LIBS=$LIBS |
9303 | LIBS="-lsun $LIBS" | |
9304 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9305 | /* confdefs.h. */ |
9306 | _ACEOF | |
9307 | cat confdefs.h >>conftest.$ac_ext | |
9308 | cat >>conftest.$ac_ext <<_ACEOF | |
9309 | /* end confdefs.h. */ | |
9310 | ||
795ca3e5 | 9311 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9312 | #ifdef __cplusplus |
9313 | extern "C" | |
9314 | #endif | |
795ca3e5 | 9315 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9316 | builtin and then its argument prototype would still apply. */ |
9317 | char getmntent (); | |
9318 | int | |
9319 | main () | |
9320 | { | |
9321 | getmntent (); | |
9322 | ; | |
9323 | return 0; | |
9324 | } | |
9325 | _ACEOF | |
9326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9328 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9329 | ac_status=$? |
8a2fc586 AK |
9330 | grep -v '^ *+' conftest.er1 >conftest.err |
9331 | rm -f conftest.er1 | |
9332 | cat conftest.err >&5 | |
ad6254c5 AK |
9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9334 | (exit $ac_status); } && | |
8a2fc586 AK |
9335 | { ac_try='test -z "$ac_c_werror_flag" |
9336 | || test ! -s conftest.err' | |
9337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9338 | (eval $ac_try) 2>&5 | |
9339 | ac_status=$? | |
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9341 | (exit $ac_status); }; } && | |
9342 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9344 | (eval $ac_try) 2>&5 | |
9345 | ac_status=$? | |
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9347 | (exit $ac_status); }; }; then | |
9348 | ac_cv_lib_sun_getmntent=yes | |
9349 | else | |
9350 | echo "$as_me: failed program was:" >&5 | |
9351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 9352 | |
ad6254c5 AK |
9353 | ac_cv_lib_sun_getmntent=no |
9354 | fi | |
8a2fc586 AK |
9355 | rm -f conftest.err conftest.$ac_objext \ |
9356 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9357 | LIBS=$ac_check_lib_save_LIBS |
9358 | fi | |
9359 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
9360 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
9361 | if test $ac_cv_lib_sun_getmntent = yes; then | |
9362 | LIBS="-lsun $LIBS" | |
9363 | else | |
9364 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
9365 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
9366 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
9367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9368 | else | |
9369 | ac_check_lib_save_LIBS=$LIBS | |
9370 | LIBS="-lseq $LIBS" | |
9371 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9372 | /* confdefs.h. */ |
9373 | _ACEOF | |
9374 | cat confdefs.h >>conftest.$ac_ext | |
9375 | cat >>conftest.$ac_ext <<_ACEOF | |
9376 | /* end confdefs.h. */ | |
80992638 | 9377 | |
ad6254c5 AK |
9378 | /* Override any gcc2 internal prototype to avoid an error. */ |
9379 | #ifdef __cplusplus | |
9380 | extern "C" | |
795ca3e5 | 9381 | #endif |
ad6254c5 AK |
9382 | /* We use char because int might match the return type of a gcc2 |
9383 | builtin and then its argument prototype would still apply. */ | |
9384 | char getmntent (); | |
9385 | int | |
9386 | main () | |
9387 | { | |
9388 | getmntent (); | |
9389 | ; | |
9390 | return 0; | |
9391 | } | |
9392 | _ACEOF | |
9393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9395 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9396 | ac_status=$? |
8a2fc586 AK |
9397 | grep -v '^ *+' conftest.er1 >conftest.err |
9398 | rm -f conftest.er1 | |
9399 | cat conftest.err >&5 | |
ad6254c5 AK |
9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9401 | (exit $ac_status); } && | |
8a2fc586 AK |
9402 | { ac_try='test -z "$ac_c_werror_flag" |
9403 | || test ! -s conftest.err' | |
9404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9405 | (eval $ac_try) 2>&5 | |
9406 | ac_status=$? | |
9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9408 | (exit $ac_status); }; } && | |
9409 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9411 | (eval $ac_try) 2>&5 | |
9412 | ac_status=$? | |
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); }; }; then | |
9415 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 9416 | else |
ad6254c5 AK |
9417 | echo "$as_me: failed program was:" >&5 |
9418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9419 | ||
9420 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 9421 | fi |
8a2fc586 AK |
9422 | rm -f conftest.err conftest.$ac_objext \ |
9423 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 9424 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 9425 | fi |
ad6254c5 AK |
9426 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
9427 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
9428 | if test $ac_cv_lib_seq_getmntent = yes; then | |
9429 | LIBS="-lseq $LIBS" | |
9430 | else | |
9431 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
9432 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
9433 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
9434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9435 | else | |
9436 | ac_check_lib_save_LIBS=$LIBS | |
9437 | LIBS="-lgen $LIBS" | |
9438 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9439 | /* confdefs.h. */ |
9440 | _ACEOF | |
9441 | cat confdefs.h >>conftest.$ac_ext | |
9442 | cat >>conftest.$ac_ext <<_ACEOF | |
9443 | /* end confdefs.h. */ | |
795ca3e5 | 9444 | |
ad6254c5 AK |
9445 | /* Override any gcc2 internal prototype to avoid an error. */ |
9446 | #ifdef __cplusplus | |
9447 | extern "C" | |
9448 | #endif | |
9449 | /* We use char because int might match the return type of a gcc2 | |
9450 | builtin and then its argument prototype would still apply. */ | |
9451 | char getmntent (); | |
9452 | int | |
9453 | main () | |
9454 | { | |
9455 | getmntent (); | |
9456 | ; | |
9457 | return 0; | |
9458 | } | |
9459 | _ACEOF | |
9460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9462 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9463 | ac_status=$? |
8a2fc586 AK |
9464 | grep -v '^ *+' conftest.er1 >conftest.err |
9465 | rm -f conftest.er1 | |
9466 | cat conftest.err >&5 | |
ad6254c5 AK |
9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9468 | (exit $ac_status); } && | |
8a2fc586 AK |
9469 | { ac_try='test -z "$ac_c_werror_flag" |
9470 | || test ! -s conftest.err' | |
9471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9472 | (eval $ac_try) 2>&5 | |
9473 | ac_status=$? | |
9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9475 | (exit $ac_status); }; } && | |
9476 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9478 | (eval $ac_try) 2>&5 | |
9479 | ac_status=$? | |
9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9481 | (exit $ac_status); }; }; then | |
9482 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 9483 | else |
ad6254c5 AK |
9484 | echo "$as_me: failed program was:" >&5 |
9485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9486 | ||
9487 | ac_cv_lib_gen_getmntent=no | |
9488 | fi | |
8a2fc586 AK |
9489 | rm -f conftest.err conftest.$ac_objext \ |
9490 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9491 | LIBS=$ac_check_lib_save_LIBS |
9492 | fi | |
9493 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
9494 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
9495 | if test $ac_cv_lib_gen_getmntent = yes; then | |
9496 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
9497 | fi |
9498 | ||
9499 | fi | |
9500 | ||
ad6254c5 AK |
9501 | fi |
9502 | ||
9503 | ||
9504 | for ac_func in getmntent | |
795ca3e5 | 9505 | do |
ad6254c5 AK |
9506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9509 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9511 | else | |
9512 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9513 | /* confdefs.h. */ |
9514 | _ACEOF | |
9515 | cat confdefs.h >>conftest.$ac_ext | |
9516 | cat >>conftest.$ac_ext <<_ACEOF | |
9517 | /* end confdefs.h. */ | |
8a2fc586 AK |
9518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9520 | #define $ac_func innocuous_$ac_func | |
9521 | ||
795ca3e5 | 9522 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9523 | which can conflict with char $ac_func (); below. |
9524 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9525 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9526 | |
ad6254c5 AK |
9527 | #ifdef __STDC__ |
9528 | # include <limits.h> | |
9529 | #else | |
9530 | # include <assert.h> | |
9531 | #endif | |
8a2fc586 AK |
9532 | |
9533 | #undef $ac_func | |
9534 | ||
795ca3e5 | 9535 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9536 | #ifdef __cplusplus |
9537 | extern "C" | |
9538 | { | |
9539 | #endif | |
795ca3e5 | 9540 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9541 | builtin and then its argument prototype would still apply. */ |
9542 | char $ac_func (); | |
795ca3e5 AK |
9543 | /* The GNU C library defines this for functions which it implements |
9544 | to always fail with ENOSYS. Some functions are actually named | |
9545 | something starting with __ and the normal name is an alias. */ | |
9546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9547 | choke me | |
9548 | #else | |
ad6254c5 AK |
9549 | char (*f) () = $ac_func; |
9550 | #endif | |
9551 | #ifdef __cplusplus | |
9552 | } | |
795ca3e5 AK |
9553 | #endif |
9554 | ||
ad6254c5 AK |
9555 | int |
9556 | main () | |
9557 | { | |
9558 | return f != $ac_func; | |
9559 | ; | |
9560 | return 0; | |
9561 | } | |
9562 | _ACEOF | |
9563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9565 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9566 | ac_status=$? |
8a2fc586 AK |
9567 | grep -v '^ *+' conftest.er1 >conftest.err |
9568 | rm -f conftest.er1 | |
9569 | cat conftest.err >&5 | |
ad6254c5 AK |
9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9571 | (exit $ac_status); } && | |
8a2fc586 AK |
9572 | { ac_try='test -z "$ac_c_werror_flag" |
9573 | || test ! -s conftest.err' | |
9574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9575 | (eval $ac_try) 2>&5 | |
9576 | ac_status=$? | |
9577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9578 | (exit $ac_status); }; } && | |
9579 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9581 | (eval $ac_try) 2>&5 | |
9582 | ac_status=$? | |
9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9584 | (exit $ac_status); }; }; then | |
9585 | eval "$as_ac_var=yes" | |
795ca3e5 | 9586 | else |
ad6254c5 AK |
9587 | echo "$as_me: failed program was:" >&5 |
9588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9589 | ||
9590 | eval "$as_ac_var=no" | |
795ca3e5 | 9591 | fi |
8a2fc586 AK |
9592 | rm -f conftest.err conftest.$ac_objext \ |
9593 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9594 | fi |
ad6254c5 AK |
9595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9596 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9597 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9598 | cat >>confdefs.h <<_ACEOF | |
9599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9600 | _ACEOF | |
795ca3e5 | 9601 | |
795ca3e5 AK |
9602 | fi |
9603 | done | |
9604 | ||
9605 | ||
ad6254c5 AK |
9606 | # AC_FUNC_REALLOC |
9607 | ||
9608 | ||
9609 | for ac_header in sys/select.h sys/socket.h | |
9610 | do | |
9611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9617 | fi | |
9618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 9620 | else |
ad6254c5 AK |
9621 | # Is the header compilable? |
9622 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9624 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9625 | /* confdefs.h. */ |
9626 | _ACEOF | |
9627 | cat confdefs.h >>conftest.$ac_ext | |
9628 | cat >>conftest.$ac_ext <<_ACEOF | |
9629 | /* end confdefs.h. */ | |
9630 | $ac_includes_default | |
9631 | #include <$ac_header> | |
9632 | _ACEOF | |
9633 | rm -f conftest.$ac_objext | |
9634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9635 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9636 | ac_status=$? |
8a2fc586 AK |
9637 | grep -v '^ *+' conftest.er1 >conftest.err |
9638 | rm -f conftest.er1 | |
9639 | cat conftest.err >&5 | |
ad6254c5 AK |
9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9641 | (exit $ac_status); } && | |
8a2fc586 AK |
9642 | { ac_try='test -z "$ac_c_werror_flag" |
9643 | || test ! -s conftest.err' | |
9644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9645 | (eval $ac_try) 2>&5 | |
9646 | ac_status=$? | |
9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9648 | (exit $ac_status); }; } && | |
9649 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9651 | (eval $ac_try) 2>&5 | |
9652 | ac_status=$? | |
9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9654 | (exit $ac_status); }; }; then | |
9655 | ac_header_compiler=yes | |
80992638 | 9656 | else |
ad6254c5 AK |
9657 | echo "$as_me: failed program was:" >&5 |
9658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9659 | ||
9660 | ac_header_compiler=no | |
9661 | fi | |
8a2fc586 | 9662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9664 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9665 | ||
9666 | # Is the header present? | |
9667 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9669 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9670 | /* confdefs.h. */ |
9671 | _ACEOF | |
9672 | cat confdefs.h >>conftest.$ac_ext | |
9673 | cat >>conftest.$ac_ext <<_ACEOF | |
9674 | /* end confdefs.h. */ | |
9675 | #include <$ac_header> | |
9676 | _ACEOF | |
9677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9679 | ac_status=$? | |
9680 | grep -v '^ *+' conftest.er1 >conftest.err | |
9681 | rm -f conftest.er1 | |
9682 | cat conftest.err >&5 | |
9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9684 | (exit $ac_status); } >/dev/null; then | |
9685 | if test -s conftest.err; then | |
9686 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9688 | else |
9689 | ac_cpp_err= | |
9690 | fi | |
9691 | else | |
9692 | ac_cpp_err=yes | |
795ca3e5 | 9693 | fi |
ad6254c5 AK |
9694 | if test -z "$ac_cpp_err"; then |
9695 | ac_header_preproc=yes | |
9696 | else | |
9697 | echo "$as_me: failed program was:" >&5 | |
9698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9699 | ||
9700 | ac_header_preproc=no | |
9701 | fi | |
9702 | rm -f conftest.err conftest.$ac_ext | |
9703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9704 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9705 | ||
9706 | # So? What about this header? | |
8a2fc586 AK |
9707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9708 | yes:no: ) | |
ad6254c5 AK |
9709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9713 | ac_header_preproc=yes | |
ad6254c5 | 9714 | ;; |
8a2fc586 | 9715 | no:yes:* ) |
ad6254c5 AK |
9716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9728 | ( |
9729 | cat <<\_ASBOX | |
8a2fc586 AK |
9730 | ## ------------------------------------------ ## |
9731 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9732 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9733 | _ASBOX |
9734 | ) | | |
9735 | sed "s/^/$as_me: WARNING: /" >&2 | |
9736 | ;; | |
9737 | esac | |
9738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9742 | else | |
8a2fc586 | 9743 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9744 | fi |
ad6254c5 AK |
9745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 9747 | |
795ca3e5 | 9748 | fi |
ad6254c5 AK |
9749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9750 | cat >>confdefs.h <<_ACEOF | |
9751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9752 | _ACEOF | |
9753 | ||
795ca3e5 AK |
9754 | fi |
9755 | ||
ad6254c5 AK |
9756 | done |
9757 | ||
9758 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
9759 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
9760 | if test "${ac_cv_func_select_args+set}" = set; then | |
9761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9762 | else |
ad6254c5 AK |
9763 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9764 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
9765 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9766 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9767 | /* confdefs.h. */ |
9768 | _ACEOF | |
9769 | cat confdefs.h >>conftest.$ac_ext | |
9770 | cat >>conftest.$ac_ext <<_ACEOF | |
9771 | /* end confdefs.h. */ | |
9772 | $ac_includes_default | |
9773 | #if HAVE_SYS_SELECT_H | |
9774 | # include <sys/select.h> | |
9775 | #endif | |
9776 | #if HAVE_SYS_SOCKET_H | |
9777 | # include <sys/socket.h> | |
9778 | #endif | |
9779 | ||
9780 | int | |
9781 | main () | |
9782 | { | |
9783 | extern int select ($ac_arg1, | |
8a2fc586 AK |
9784 | $ac_arg234, $ac_arg234, $ac_arg234, |
9785 | $ac_arg5); | |
ad6254c5 AK |
9786 | ; |
9787 | return 0; | |
9788 | } | |
9789 | _ACEOF | |
9790 | rm -f conftest.$ac_objext | |
9791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9792 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9793 | ac_status=$? |
8a2fc586 AK |
9794 | grep -v '^ *+' conftest.er1 >conftest.err |
9795 | rm -f conftest.er1 | |
9796 | cat conftest.err >&5 | |
ad6254c5 AK |
9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9798 | (exit $ac_status); } && | |
8a2fc586 AK |
9799 | { ac_try='test -z "$ac_c_werror_flag" |
9800 | || test ! -s conftest.err' | |
9801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9802 | (eval $ac_try) 2>&5 | |
9803 | ac_status=$? | |
9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9805 | (exit $ac_status); }; } && | |
9806 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9808 | (eval $ac_try) 2>&5 | |
9809 | ac_status=$? | |
9810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9811 | (exit $ac_status); }; }; then | |
9812 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9813 | else | |
9814 | echo "$as_me: failed program was:" >&5 | |
9815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9816 | ||
9817 | fi | |
8a2fc586 | 9818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9819 | done |
9820 | done | |
9821 | done | |
9822 | # Provide a safe default value. | |
9823 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
9824 | ||
26e7f2e0 | 9825 | fi |
ad6254c5 AK |
9826 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9827 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
9828 | ac_save_IFS=$IFS; IFS=',' | |
9829 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9830 | IFS=$ac_save_IFS | |
9831 | shift | |
9832 | ||
9833 | cat >>confdefs.h <<_ACEOF | |
9834 | #define SELECT_TYPE_ARG1 $1 | |
9835 | _ACEOF | |
9836 | ||
9837 | ||
9838 | cat >>confdefs.h <<_ACEOF | |
9839 | #define SELECT_TYPE_ARG234 ($2) | |
9840 | _ACEOF | |
9841 | ||
9842 | ||
9843 | cat >>confdefs.h <<_ACEOF | |
9844 | #define SELECT_TYPE_ARG5 ($3) | |
9845 | _ACEOF | |
9846 | ||
80992638 | 9847 | rm -f conftest* |
80992638 | 9848 | |
8106cdd5 | 9849 | fi |
ad6254c5 AK |
9850 | |
9851 | if test x$FSADM = xyes; then | |
9852 | ||
9853 | ||
9854 | ||
9855 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
9856 | do | |
9857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9863 | fi | |
9864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9865 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9866 | else | |
9867 | # Is the header compilable? | |
9868 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9869 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9870 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9871 | /* confdefs.h. */ |
9872 | _ACEOF | |
9873 | cat confdefs.h >>conftest.$ac_ext | |
9874 | cat >>conftest.$ac_ext <<_ACEOF | |
9875 | /* end confdefs.h. */ | |
9876 | $ac_includes_default | |
9877 | #include <$ac_header> | |
9878 | _ACEOF | |
9879 | rm -f conftest.$ac_objext | |
9880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9881 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9882 | ac_status=$? |
8a2fc586 AK |
9883 | grep -v '^ *+' conftest.er1 >conftest.err |
9884 | rm -f conftest.er1 | |
9885 | cat conftest.err >&5 | |
ad6254c5 AK |
9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9887 | (exit $ac_status); } && | |
8a2fc586 AK |
9888 | { ac_try='test -z "$ac_c_werror_flag" |
9889 | || test ! -s conftest.err' | |
9890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9891 | (eval $ac_try) 2>&5 | |
9892 | ac_status=$? | |
9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9894 | (exit $ac_status); }; } && | |
9895 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9897 | (eval $ac_try) 2>&5 | |
9898 | ac_status=$? | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); }; }; then | |
9901 | ac_header_compiler=yes | |
9902 | else | |
9903 | echo "$as_me: failed program was:" >&5 | |
9904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9905 | ||
9906 | ac_header_compiler=no | |
9907 | fi | |
8a2fc586 | 9908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9910 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9911 | ||
9912 | # Is the header present? | |
9913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9915 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9916 | /* confdefs.h. */ |
9917 | _ACEOF | |
9918 | cat confdefs.h >>conftest.$ac_ext | |
9919 | cat >>conftest.$ac_ext <<_ACEOF | |
9920 | /* end confdefs.h. */ | |
9921 | #include <$ac_header> | |
9922 | _ACEOF | |
9923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9925 | ac_status=$? | |
9926 | grep -v '^ *+' conftest.er1 >conftest.err | |
9927 | rm -f conftest.er1 | |
9928 | cat conftest.err >&5 | |
9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9930 | (exit $ac_status); } >/dev/null; then | |
9931 | if test -s conftest.err; then | |
9932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9933 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9934 | else |
9935 | ac_cpp_err= | |
9936 | fi | |
9937 | else | |
9938 | ac_cpp_err=yes | |
9939 | fi | |
9940 | if test -z "$ac_cpp_err"; then | |
9941 | ac_header_preproc=yes | |
9942 | else | |
9943 | echo "$as_me: failed program was:" >&5 | |
9944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9945 | ||
9946 | ac_header_preproc=no | |
9947 | fi | |
9948 | rm -f conftest.err conftest.$ac_ext | |
9949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9950 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9951 | ||
9952 | # So? What about this header? | |
8a2fc586 AK |
9953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9954 | yes:no: ) | |
ad6254c5 AK |
9955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9959 | ac_header_preproc=yes | |
ad6254c5 | 9960 | ;; |
8a2fc586 | 9961 | no:yes:* ) |
ad6254c5 AK |
9962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9974 | ( |
9975 | cat <<\_ASBOX | |
8a2fc586 AK |
9976 | ## ------------------------------------------ ## |
9977 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9978 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9979 | _ASBOX |
9980 | ) | | |
9981 | sed "s/^/$as_me: WARNING: /" >&2 | |
9982 | ;; | |
9983 | esac | |
9984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9988 | else |
8a2fc586 | 9989 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 9990 | fi |
ad6254c5 AK |
9991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 9993 | |
ad6254c5 AK |
9994 | fi |
9995 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9996 | cat >>confdefs.h <<_ACEOF | |
9997 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9998 | _ACEOF | |
26e7f2e0 | 9999 | |
d68a82ec | 10000 | else |
ad6254c5 AK |
10001 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10002 | echo "$as_me: error: bailing out" >&2;} | |
10003 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
10004 | fi |
10005 | ||
ad6254c5 | 10006 | done |
036f273a | 10007 | |
ad6254c5 AK |
10008 | |
10009 | for ac_func in memmove | |
10010 | do | |
10011 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10012 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10013 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10014 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 10016 | else |
ad6254c5 | 10017 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10018 | /* confdefs.h. */ |
10019 | _ACEOF | |
10020 | cat confdefs.h >>conftest.$ac_ext | |
10021 | cat >>conftest.$ac_ext <<_ACEOF | |
10022 | /* end confdefs.h. */ | |
8a2fc586 AK |
10023 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10024 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10025 | #define $ac_func innocuous_$ac_func | |
10026 | ||
ad6254c5 AK |
10027 | /* System header to define __stub macros and hopefully few prototypes, |
10028 | which can conflict with char $ac_func (); below. | |
10029 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10030 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10031 | |
ad6254c5 AK |
10032 | #ifdef __STDC__ |
10033 | # include <limits.h> | |
10034 | #else | |
10035 | # include <assert.h> | |
10036 | #endif | |
8a2fc586 AK |
10037 | |
10038 | #undef $ac_func | |
10039 | ||
036f273a | 10040 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10041 | #ifdef __cplusplus |
10042 | extern "C" | |
10043 | { | |
10044 | #endif | |
036f273a | 10045 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10046 | builtin and then its argument prototype would still apply. */ |
10047 | char $ac_func (); | |
10048 | /* The GNU C library defines this for functions which it implements | |
10049 | to always fail with ENOSYS. Some functions are actually named | |
10050 | something starting with __ and the normal name is an alias. */ | |
10051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10052 | choke me | |
10053 | #else | |
10054 | char (*f) () = $ac_func; | |
10055 | #endif | |
10056 | #ifdef __cplusplus | |
10057 | } | |
10058 | #endif | |
80992638 | 10059 | |
ad6254c5 AK |
10060 | int |
10061 | main () | |
10062 | { | |
10063 | return f != $ac_func; | |
10064 | ; | |
10065 | return 0; | |
10066 | } | |
10067 | _ACEOF | |
10068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10070 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10071 | ac_status=$? |
8a2fc586 AK |
10072 | grep -v '^ *+' conftest.er1 >conftest.err |
10073 | rm -f conftest.er1 | |
10074 | cat conftest.err >&5 | |
ad6254c5 AK |
10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10076 | (exit $ac_status); } && | |
8a2fc586 AK |
10077 | { ac_try='test -z "$ac_c_werror_flag" |
10078 | || test ! -s conftest.err' | |
10079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10080 | (eval $ac_try) 2>&5 | |
10081 | ac_status=$? | |
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10083 | (exit $ac_status); }; } && | |
10084 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10086 | (eval $ac_try) 2>&5 | |
10087 | ac_status=$? | |
10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10089 | (exit $ac_status); }; }; then | |
10090 | eval "$as_ac_var=yes" | |
036f273a | 10091 | else |
ad6254c5 AK |
10092 | echo "$as_me: failed program was:" >&5 |
10093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10094 | ||
10095 | eval "$as_ac_var=no" | |
036f273a | 10096 | fi |
8a2fc586 AK |
10097 | rm -f conftest.err conftest.$ac_objext \ |
10098 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10099 | fi |
10100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10101 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10102 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10103 | cat >>confdefs.h <<_ACEOF | |
10104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10105 | _ACEOF | |
036f273a | 10106 | |
ad6254c5 AK |
10107 | else |
10108 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10109 | echo "$as_me: error: bailing out" >&2;} | |
10110 | { (exit 1); exit 1; }; } | |
10111 | fi | |
10112 | done | |
036f273a | 10113 | |
036f273a | 10114 | fi |
d68a82ec | 10115 | |
ad6254c5 AK |
10116 | if test x$CLUSTER != xnone; then |
10117 | ||
10118 | ||
10119 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10120 | do |
ad6254c5 AK |
10121 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10122 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10123 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10124 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10125 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10127 | fi | |
10128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10130 | else | |
10131 | # Is the header compilable? | |
10132 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10133 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10134 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10135 | /* confdefs.h. */ |
10136 | _ACEOF | |
10137 | cat confdefs.h >>conftest.$ac_ext | |
10138 | cat >>conftest.$ac_ext <<_ACEOF | |
10139 | /* end confdefs.h. */ | |
10140 | $ac_includes_default | |
10141 | #include <$ac_header> | |
10142 | _ACEOF | |
10143 | rm -f conftest.$ac_objext | |
10144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10145 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10146 | ac_status=$? |
8a2fc586 AK |
10147 | grep -v '^ *+' conftest.er1 >conftest.err |
10148 | rm -f conftest.er1 | |
10149 | cat conftest.err >&5 | |
ad6254c5 AK |
10150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10151 | (exit $ac_status); } && | |
8a2fc586 AK |
10152 | { ac_try='test -z "$ac_c_werror_flag" |
10153 | || test ! -s conftest.err' | |
10154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10155 | (eval $ac_try) 2>&5 | |
10156 | ac_status=$? | |
10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10158 | (exit $ac_status); }; } && | |
10159 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10161 | (eval $ac_try) 2>&5 | |
10162 | ac_status=$? | |
10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10164 | (exit $ac_status); }; }; then | |
10165 | ac_header_compiler=yes | |
10166 | else | |
10167 | echo "$as_me: failed program was:" >&5 | |
10168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10169 | ||
10170 | ac_header_compiler=no | |
10171 | fi | |
8a2fc586 | 10172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10173 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10174 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10175 | ||
10176 | # Is the header present? | |
10177 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10178 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10179 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10180 | /* confdefs.h. */ |
10181 | _ACEOF | |
10182 | cat confdefs.h >>conftest.$ac_ext | |
10183 | cat >>conftest.$ac_ext <<_ACEOF | |
10184 | /* end confdefs.h. */ | |
10185 | #include <$ac_header> | |
10186 | _ACEOF | |
10187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10189 | ac_status=$? | |
10190 | grep -v '^ *+' conftest.er1 >conftest.err | |
10191 | rm -f conftest.er1 | |
10192 | cat conftest.err >&5 | |
10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10194 | (exit $ac_status); } >/dev/null; then | |
10195 | if test -s conftest.err; then | |
10196 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10197 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10198 | else |
10199 | ac_cpp_err= | |
10200 | fi | |
10201 | else | |
10202 | ac_cpp_err=yes | |
8106cdd5 | 10203 | fi |
ad6254c5 AK |
10204 | if test -z "$ac_cpp_err"; then |
10205 | ac_header_preproc=yes | |
10206 | else | |
10207 | echo "$as_me: failed program was:" >&5 | |
10208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10209 | ||
10210 | ac_header_preproc=no | |
10211 | fi | |
10212 | rm -f conftest.err conftest.$ac_ext | |
10213 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10214 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10215 | ||
10216 | # So? What about this header? | |
8a2fc586 AK |
10217 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10218 | yes:no: ) | |
ad6254c5 AK |
10219 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10220 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10222 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10223 | ac_header_preproc=yes | |
ad6254c5 | 10224 | ;; |
8a2fc586 | 10225 | no:yes:* ) |
ad6254c5 AK |
10226 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10227 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10229 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10232 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10233 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10235 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10237 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10238 | ( |
10239 | cat <<\_ASBOX | |
8a2fc586 AK |
10240 | ## ------------------------------------------ ## |
10241 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10242 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10243 | _ASBOX |
10244 | ) | | |
10245 | sed "s/^/$as_me: WARNING: /" >&2 | |
10246 | ;; | |
10247 | esac | |
10248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10252 | else | |
8a2fc586 | 10253 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10254 | fi |
ad6254c5 AK |
10255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10257 | ||
10258 | fi | |
10259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10260 | cat >>confdefs.h <<_ACEOF | |
10261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10262 | _ACEOF | |
10263 | ||
80992638 | 10264 | else |
ad6254c5 AK |
10265 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10266 | echo "$as_me: error: bailing out" >&2;} | |
10267 | { (exit 1); exit 1; }; } | |
b896caa1 | 10268 | fi |
ad6254c5 | 10269 | |
b896caa1 AK |
10270 | done |
10271 | ||
10272 | ||
ad6254c5 AK |
10273 | for ac_func in socket |
10274 | do | |
10275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10278 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 10280 | else |
ad6254c5 | 10281 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10282 | /* confdefs.h. */ |
10283 | _ACEOF | |
10284 | cat confdefs.h >>conftest.$ac_ext | |
10285 | cat >>conftest.$ac_ext <<_ACEOF | |
10286 | /* end confdefs.h. */ | |
8a2fc586 AK |
10287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10289 | #define $ac_func innocuous_$ac_func | |
10290 | ||
ad6254c5 AK |
10291 | /* System header to define __stub macros and hopefully few prototypes, |
10292 | which can conflict with char $ac_func (); below. | |
10293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10294 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10295 | |
ad6254c5 AK |
10296 | #ifdef __STDC__ |
10297 | # include <limits.h> | |
10298 | #else | |
10299 | # include <assert.h> | |
10300 | #endif | |
8a2fc586 AK |
10301 | |
10302 | #undef $ac_func | |
10303 | ||
795ca3e5 | 10304 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10305 | #ifdef __cplusplus |
10306 | extern "C" | |
10307 | { | |
10308 | #endif | |
795ca3e5 | 10309 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10310 | builtin and then its argument prototype would still apply. */ |
10311 | char $ac_func (); | |
10312 | /* The GNU C library defines this for functions which it implements | |
10313 | to always fail with ENOSYS. Some functions are actually named | |
10314 | something starting with __ and the normal name is an alias. */ | |
10315 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10316 | choke me | |
10317 | #else | |
10318 | char (*f) () = $ac_func; | |
10319 | #endif | |
10320 | #ifdef __cplusplus | |
10321 | } | |
10322 | #endif | |
10323 | ||
10324 | int | |
10325 | main () | |
10326 | { | |
10327 | return f != $ac_func; | |
10328 | ; | |
10329 | return 0; | |
10330 | } | |
10331 | _ACEOF | |
10332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10334 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10335 | ac_status=$? |
8a2fc586 AK |
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
10337 | rm -f conftest.er1 | |
10338 | cat conftest.err >&5 | |
ad6254c5 AK |
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10340 | (exit $ac_status); } && | |
8a2fc586 AK |
10341 | { ac_try='test -z "$ac_c_werror_flag" |
10342 | || test ! -s conftest.err' | |
10343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10344 | (eval $ac_try) 2>&5 | |
10345 | ac_status=$? | |
10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10347 | (exit $ac_status); }; } && | |
10348 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10350 | (eval $ac_try) 2>&5 | |
10351 | ac_status=$? | |
10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10353 | (exit $ac_status); }; }; then | |
10354 | eval "$as_ac_var=yes" | |
10355 | else | |
10356 | echo "$as_me: failed program was:" >&5 | |
10357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10358 | ||
10359 | eval "$as_ac_var=no" | |
10360 | fi | |
8a2fc586 AK |
10361 | rm -f conftest.err conftest.$ac_objext \ |
10362 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10363 | fi |
10364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10365 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10366 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10367 | cat >>confdefs.h <<_ACEOF | |
10368 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10369 | _ACEOF | |
10370 | ||
10371 | else | |
10372 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10373 | echo "$as_me: error: bailing out" >&2;} | |
10374 | { (exit 1); exit 1; }; } | |
10375 | fi | |
10376 | done | |
10377 | ||
10378 | fi | |
10379 | ||
10380 | if test x$HAVE_LIBDL = xyes; then | |
10381 | ||
10382 | for ac_header in dlfcn.h | |
10383 | do | |
10384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10390 | fi | |
10391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10393 | else | |
10394 | # Is the header compilable? | |
10395 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10397 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10398 | /* confdefs.h. */ |
10399 | _ACEOF | |
10400 | cat confdefs.h >>conftest.$ac_ext | |
10401 | cat >>conftest.$ac_ext <<_ACEOF | |
10402 | /* end confdefs.h. */ | |
10403 | $ac_includes_default | |
10404 | #include <$ac_header> | |
10405 | _ACEOF | |
10406 | rm -f conftest.$ac_objext | |
10407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10408 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10409 | ac_status=$? |
8a2fc586 AK |
10410 | grep -v '^ *+' conftest.er1 >conftest.err |
10411 | rm -f conftest.er1 | |
10412 | cat conftest.err >&5 | |
ad6254c5 AK |
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10414 | (exit $ac_status); } && | |
8a2fc586 AK |
10415 | { ac_try='test -z "$ac_c_werror_flag" |
10416 | || test ! -s conftest.err' | |
10417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10418 | (eval $ac_try) 2>&5 | |
10419 | ac_status=$? | |
10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10421 | (exit $ac_status); }; } && | |
10422 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10424 | (eval $ac_try) 2>&5 | |
10425 | ac_status=$? | |
10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10427 | (exit $ac_status); }; }; then | |
10428 | ac_header_compiler=yes | |
10429 | else | |
10430 | echo "$as_me: failed program was:" >&5 | |
10431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10432 | ||
10433 | ac_header_compiler=no | |
10434 | fi | |
8a2fc586 | 10435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10437 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10438 | ||
10439 | # Is the header present? | |
10440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10442 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10443 | /* confdefs.h. */ |
10444 | _ACEOF | |
10445 | cat confdefs.h >>conftest.$ac_ext | |
10446 | cat >>conftest.$ac_ext <<_ACEOF | |
10447 | /* end confdefs.h. */ | |
10448 | #include <$ac_header> | |
10449 | _ACEOF | |
10450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10452 | ac_status=$? | |
10453 | grep -v '^ *+' conftest.er1 >conftest.err | |
10454 | rm -f conftest.er1 | |
10455 | cat conftest.err >&5 | |
10456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10457 | (exit $ac_status); } >/dev/null; then | |
10458 | if test -s conftest.err; then | |
10459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10461 | else |
10462 | ac_cpp_err= | |
10463 | fi | |
10464 | else | |
10465 | ac_cpp_err=yes | |
10466 | fi | |
10467 | if test -z "$ac_cpp_err"; then | |
10468 | ac_header_preproc=yes | |
10469 | else | |
10470 | echo "$as_me: failed program was:" >&5 | |
10471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10472 | ||
10473 | ac_header_preproc=no | |
10474 | fi | |
10475 | rm -f conftest.err conftest.$ac_ext | |
10476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10477 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10478 | ||
10479 | # So? What about this header? | |
8a2fc586 AK |
10480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10481 | yes:no: ) | |
ad6254c5 AK |
10482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10486 | ac_header_preproc=yes | |
ad6254c5 | 10487 | ;; |
8a2fc586 | 10488 | no:yes:* ) |
ad6254c5 AK |
10489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10501 | ( |
10502 | cat <<\_ASBOX | |
8a2fc586 AK |
10503 | ## ------------------------------------------ ## |
10504 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10505 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10506 | _ASBOX |
10507 | ) | | |
10508 | sed "s/^/$as_me: WARNING: /" >&2 | |
10509 | ;; | |
10510 | esac | |
10511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10515 | else | |
8a2fc586 | 10516 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10517 | fi |
ad6254c5 AK |
10518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 10520 | |
8106cdd5 | 10521 | fi |
ad6254c5 AK |
10522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10523 | cat >>confdefs.h <<_ACEOF | |
10524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10525 | _ACEOF | |
795ca3e5 AK |
10526 | |
10527 | else | |
ad6254c5 AK |
10528 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10529 | echo "$as_me: error: bailing out" >&2;} | |
10530 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10531 | fi |
10532 | ||
ad6254c5 | 10533 | done |
80992638 | 10534 | |
ad6254c5 | 10535 | fi |
80992638 | 10536 | |
ad6254c5 | 10537 | if test x$INTL = xyes; then |
83912faa | 10538 | |
ad6254c5 AK |
10539 | for ac_header in libintl.h |
10540 | do | |
10541 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10543 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10547 | fi | |
10548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10550 | else |
ad6254c5 AK |
10551 | # Is the header compilable? |
10552 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10553 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10554 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10555 | /* confdefs.h. */ |
10556 | _ACEOF | |
10557 | cat confdefs.h >>conftest.$ac_ext | |
10558 | cat >>conftest.$ac_ext <<_ACEOF | |
10559 | /* end confdefs.h. */ | |
10560 | $ac_includes_default | |
10561 | #include <$ac_header> | |
10562 | _ACEOF | |
10563 | rm -f conftest.$ac_objext | |
10564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10565 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10566 | ac_status=$? |
8a2fc586 AK |
10567 | grep -v '^ *+' conftest.er1 >conftest.err |
10568 | rm -f conftest.er1 | |
10569 | cat conftest.err >&5 | |
ad6254c5 AK |
10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10571 | (exit $ac_status); } && | |
8a2fc586 AK |
10572 | { ac_try='test -z "$ac_c_werror_flag" |
10573 | || test ! -s conftest.err' | |
10574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10575 | (eval $ac_try) 2>&5 | |
10576 | ac_status=$? | |
10577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10578 | (exit $ac_status); }; } && | |
10579 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10581 | (eval $ac_try) 2>&5 | |
10582 | ac_status=$? | |
10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10584 | (exit $ac_status); }; }; then | |
10585 | ac_header_compiler=yes | |
10586 | else | |
10587 | echo "$as_me: failed program was:" >&5 | |
10588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10589 | ||
10590 | ac_header_compiler=no | |
10591 | fi | |
8a2fc586 | 10592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10593 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10594 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10595 | ||
10596 | # Is the header present? | |
10597 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10598 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10599 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10600 | /* confdefs.h. */ |
10601 | _ACEOF | |
10602 | cat confdefs.h >>conftest.$ac_ext | |
10603 | cat >>conftest.$ac_ext <<_ACEOF | |
10604 | /* end confdefs.h. */ | |
10605 | #include <$ac_header> | |
10606 | _ACEOF | |
10607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10609 | ac_status=$? | |
10610 | grep -v '^ *+' conftest.er1 >conftest.err | |
10611 | rm -f conftest.er1 | |
10612 | cat conftest.err >&5 | |
10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10614 | (exit $ac_status); } >/dev/null; then | |
10615 | if test -s conftest.err; then | |
10616 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10618 | else |
10619 | ac_cpp_err= | |
10620 | fi | |
10621 | else | |
10622 | ac_cpp_err=yes | |
795ca3e5 | 10623 | fi |
ad6254c5 AK |
10624 | if test -z "$ac_cpp_err"; then |
10625 | ac_header_preproc=yes | |
10626 | else | |
10627 | echo "$as_me: failed program was:" >&5 | |
10628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10629 | ||
10630 | ac_header_preproc=no | |
10631 | fi | |
10632 | rm -f conftest.err conftest.$ac_ext | |
10633 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10634 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10635 | ||
10636 | # So? What about this header? | |
8a2fc586 AK |
10637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10638 | yes:no: ) | |
ad6254c5 AK |
10639 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10640 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10642 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10643 | ac_header_preproc=yes | |
ad6254c5 | 10644 | ;; |
8a2fc586 | 10645 | no:yes:* ) |
ad6254c5 AK |
10646 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10647 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10648 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10649 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10650 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10651 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10652 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10653 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10654 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10655 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10656 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10657 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10658 | ( |
10659 | cat <<\_ASBOX | |
8a2fc586 AK |
10660 | ## ------------------------------------------ ## |
10661 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10662 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10663 | _ASBOX |
10664 | ) | | |
10665 | sed "s/^/$as_me: WARNING: /" >&2 | |
10666 | ;; | |
10667 | esac | |
10668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 10672 | else |
8a2fc586 | 10673 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10674 | fi |
ad6254c5 AK |
10675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10677 | |
69792976 | 10678 | fi |
ad6254c5 AK |
10679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10680 | cat >>confdefs.h <<_ACEOF | |
10681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10682 | _ACEOF | |
69792976 | 10683 | |
69792976 | 10684 | else |
ad6254c5 AK |
10685 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10686 | echo "$as_me: error: bailing out" >&2;} | |
10687 | { (exit 1); exit 1; }; } | |
80992638 AK |
10688 | fi |
10689 | ||
ad6254c5 | 10690 | done |
69792976 | 10691 | |
ad6254c5 AK |
10692 | fi |
10693 | ||
ad6254c5 AK |
10694 | |
10695 | for ac_header in libdevmapper.h | |
10696 | do | |
10697 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10703 | fi | |
10704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10706 | else |
ad6254c5 AK |
10707 | # Is the header compilable? |
10708 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10709 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10710 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10711 | /* confdefs.h. */ |
10712 | _ACEOF | |
10713 | cat confdefs.h >>conftest.$ac_ext | |
10714 | cat >>conftest.$ac_ext <<_ACEOF | |
10715 | /* end confdefs.h. */ | |
10716 | $ac_includes_default | |
10717 | #include <$ac_header> | |
10718 | _ACEOF | |
10719 | rm -f conftest.$ac_objext | |
10720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10721 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10722 | ac_status=$? |
8a2fc586 AK |
10723 | grep -v '^ *+' conftest.er1 >conftest.err |
10724 | rm -f conftest.er1 | |
10725 | cat conftest.err >&5 | |
ad6254c5 AK |
10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10727 | (exit $ac_status); } && | |
8a2fc586 AK |
10728 | { ac_try='test -z "$ac_c_werror_flag" |
10729 | || test ! -s conftest.err' | |
10730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10731 | (eval $ac_try) 2>&5 | |
10732 | ac_status=$? | |
10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10734 | (exit $ac_status); }; } && | |
10735 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10737 | (eval $ac_try) 2>&5 | |
10738 | ac_status=$? | |
10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10740 | (exit $ac_status); }; }; then | |
10741 | ac_header_compiler=yes | |
10742 | else | |
10743 | echo "$as_me: failed program was:" >&5 | |
10744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10745 | ||
10746 | ac_header_compiler=no | |
10747 | fi | |
8a2fc586 | 10748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10749 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10750 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10751 | ||
10752 | # Is the header present? | |
10753 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10754 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10755 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10756 | /* confdefs.h. */ |
10757 | _ACEOF | |
10758 | cat confdefs.h >>conftest.$ac_ext | |
10759 | cat >>conftest.$ac_ext <<_ACEOF | |
10760 | /* end confdefs.h. */ | |
10761 | #include <$ac_header> | |
10762 | _ACEOF | |
10763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10765 | ac_status=$? | |
10766 | grep -v '^ *+' conftest.er1 >conftest.err | |
10767 | rm -f conftest.er1 | |
10768 | cat conftest.err >&5 | |
10769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10770 | (exit $ac_status); } >/dev/null; then | |
10771 | if test -s conftest.err; then | |
10772 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10773 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10774 | else |
10775 | ac_cpp_err= | |
10776 | fi | |
10777 | else | |
10778 | ac_cpp_err=yes | |
69792976 | 10779 | fi |
ad6254c5 AK |
10780 | if test -z "$ac_cpp_err"; then |
10781 | ac_header_preproc=yes | |
10782 | else | |
10783 | echo "$as_me: failed program was:" >&5 | |
10784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10785 | ||
10786 | ac_header_preproc=no | |
10787 | fi | |
10788 | rm -f conftest.err conftest.$ac_ext | |
10789 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10790 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10791 | ||
10792 | # So? What about this header? | |
8a2fc586 AK |
10793 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10794 | yes:no: ) | |
ad6254c5 AK |
10795 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10796 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10797 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10798 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10799 | ac_header_preproc=yes | |
ad6254c5 | 10800 | ;; |
8a2fc586 | 10801 | no:yes:* ) |
ad6254c5 AK |
10802 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10803 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10804 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10805 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10806 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10807 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10808 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10809 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10810 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10811 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10812 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10813 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10814 | ( |
10815 | cat <<\_ASBOX | |
8a2fc586 AK |
10816 | ## ------------------------------------------ ## |
10817 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10818 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10819 | _ASBOX |
10820 | ) | | |
10821 | sed "s/^/$as_me: WARNING: /" >&2 | |
10822 | ;; | |
10823 | esac | |
10824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 10828 | else |
8a2fc586 | 10829 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10830 | fi |
ad6254c5 AK |
10831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10833 | |
ad6254c5 AK |
10834 | fi |
10835 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10836 | cat >>confdefs.h <<_ACEOF | |
10837 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10838 | _ACEOF | |
69792976 | 10839 | |
69792976 | 10840 | else |
ad6254c5 AK |
10841 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10842 | echo "$as_me: error: bailing out" >&2;} | |
10843 | { (exit 1); exit 1; }; } | |
83912faa AK |
10844 | fi |
10845 | ||
ad6254c5 AK |
10846 | done |
10847 | ||
4a7f3eb2 | 10848 | |
ad6254c5 AK |
10849 | if test x$HAVE_SELINUX = xyes; then |
10850 | ||
10851 | for ac_header in selinux/selinux.h | |
10852 | do | |
10853 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10859 | fi | |
10860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10861 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10862 | else |
ad6254c5 AK |
10863 | # Is the header compilable? |
10864 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10865 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10866 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10867 | /* confdefs.h. */ |
10868 | _ACEOF | |
10869 | cat confdefs.h >>conftest.$ac_ext | |
10870 | cat >>conftest.$ac_ext <<_ACEOF | |
10871 | /* end confdefs.h. */ | |
10872 | $ac_includes_default | |
10873 | #include <$ac_header> | |
10874 | _ACEOF | |
10875 | rm -f conftest.$ac_objext | |
10876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10877 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10878 | ac_status=$? |
8a2fc586 AK |
10879 | grep -v '^ *+' conftest.er1 >conftest.err |
10880 | rm -f conftest.er1 | |
10881 | cat conftest.err >&5 | |
ad6254c5 AK |
10882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10883 | (exit $ac_status); } && | |
8a2fc586 AK |
10884 | { ac_try='test -z "$ac_c_werror_flag" |
10885 | || test ! -s conftest.err' | |
10886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10887 | (eval $ac_try) 2>&5 | |
10888 | ac_status=$? | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); }; } && | |
10891 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; }; then | |
10897 | ac_header_compiler=yes | |
10898 | else | |
10899 | echo "$as_me: failed program was:" >&5 | |
10900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10901 | ||
10902 | ac_header_compiler=no | |
10903 | fi | |
8a2fc586 | 10904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10905 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10906 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10907 | ||
10908 | # Is the header present? | |
10909 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10910 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10911 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10912 | /* confdefs.h. */ |
10913 | _ACEOF | |
10914 | cat confdefs.h >>conftest.$ac_ext | |
10915 | cat >>conftest.$ac_ext <<_ACEOF | |
10916 | /* end confdefs.h. */ | |
10917 | #include <$ac_header> | |
10918 | _ACEOF | |
10919 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10920 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10921 | ac_status=$? | |
10922 | grep -v '^ *+' conftest.er1 >conftest.err | |
10923 | rm -f conftest.er1 | |
10924 | cat conftest.err >&5 | |
10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10926 | (exit $ac_status); } >/dev/null; then | |
10927 | if test -s conftest.err; then | |
10928 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10929 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10930 | else |
10931 | ac_cpp_err= | |
10932 | fi | |
10933 | else | |
10934 | ac_cpp_err=yes | |
10935 | fi | |
10936 | if test -z "$ac_cpp_err"; then | |
10937 | ac_header_preproc=yes | |
10938 | else | |
10939 | echo "$as_me: failed program was:" >&5 | |
10940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10941 | ||
10942 | ac_header_preproc=no | |
10943 | fi | |
10944 | rm -f conftest.err conftest.$ac_ext | |
10945 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10946 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10947 | ||
10948 | # So? What about this header? | |
8a2fc586 AK |
10949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10950 | yes:no: ) | |
ad6254c5 AK |
10951 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10952 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10953 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10954 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10955 | ac_header_preproc=yes | |
ad6254c5 | 10956 | ;; |
8a2fc586 | 10957 | no:yes:* ) |
ad6254c5 AK |
10958 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10959 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10960 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10961 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10962 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10963 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10964 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10965 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10967 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10968 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10969 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10970 | ( |
10971 | cat <<\_ASBOX | |
8a2fc586 AK |
10972 | ## ------------------------------------------ ## |
10973 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10974 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10975 | _ASBOX |
10976 | ) | | |
10977 | sed "s/^/$as_me: WARNING: /" >&2 | |
10978 | ;; | |
10979 | esac | |
10980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10984 | else | |
8a2fc586 | 10985 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 10986 | fi |
ad6254c5 AK |
10987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10989 | |
ad6254c5 AK |
10990 | fi |
10991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10992 | cat >>confdefs.h <<_ACEOF | |
10993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10994 | _ACEOF | |
0a62c911 | 10995 | |
0a62c911 | 10996 | else |
ad6254c5 AK |
10997 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10998 | echo "$as_me: error: bailing out" >&2;} | |
10999 | { (exit 1); exit 1; }; } | |
80992638 AK |
11000 | fi |
11001 | ||
ad6254c5 | 11002 | done |
0a62c911 | 11003 | |
ad6254c5 | 11004 | fi |
0a62c911 | 11005 | |
a653923f AK |
11006 | ################################################################################ |
11007 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11008 | set dummy modprobe; ac_word=$2 | |
11009 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
72b2cb61 AK |
11011 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11013 | else | |
11014 | case $MODPROBE_CMD in | |
11015 | [\\/]* | ?:[\\/]*) | |
11016 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11017 | ;; | |
11018 | *) | |
11019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11020 | for as_dir in $PATH | |
11021 | do | |
11022 | IFS=$as_save_IFS | |
11023 | test -z "$as_dir" && as_dir=. | |
11024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11026 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
11027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11028 | break 2 | |
11029 | fi | |
11030 | done | |
11031 | done | |
11032 | ||
11033 | ;; | |
11034 | esac | |
11035 | fi | |
11036 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
11037 | ||
11038 | if test -n "$MODPROBE_CMD"; then | |
11039 | echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 | |
11040 | echo "${ECHO_T}$MODPROBE_CMD" >&6 | |
11041 | else | |
11042 | echo "$as_me:$LINENO: result: no" >&5 | |
11043 | echo "${ECHO_T}no" >&6 | |
11044 | fi | |
11045 | ||
a653923f AK |
11046 | |
11047 | if test x$MODPROBE_CMD != x; then | |
72b2cb61 AK |
11048 | |
11049 | cat >>confdefs.h <<_ACEOF | |
11050 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11051 | _ACEOF | |
11052 | ||
a653923f AK |
11053 | fi |
11054 | ||
80992638 | 11055 | ################################################################################ |
fae0c576 AK |
11056 | if test "-f VERSION"; then |
11057 | LVM_VERSION="\"`cat VERSION`\"" | |
11058 | else | |
11059 | LVM_VERSION="Unknown" | |
11060 | fi | |
11061 | ||
80992638 | 11062 | ################################################################################ |
fae0c576 | 11063 | |
83912faa | 11064 | |
795ca3e5 AK |
11065 | |
11066 | ||
11067 | ||
11068 | ||
11069 | ||
11070 | ||
5a52dca9 | 11071 | |
8ef2b021 | 11072 | |
199e490e | 11073 | |
69792976 AK |
11074 | |
11075 | ||
11076 | ||
11077 | ||
8106cdd5 AK |
11078 | |
11079 | ||
11080 | ||
11081 | ||
11082 | ||
d68a82ec | 11083 | |
036f273a | 11084 | |
7d1552c9 | 11085 | |
8106cdd5 | 11086 | |
0a62c911 | 11087 | |
8106cdd5 | 11088 | |
4a7f3eb2 | 11089 | |
4922197a AK |
11090 | |
11091 | ||
d8ac0fbc | 11092 | |
1a9ea74d | 11093 | |
8a2fc586 AK |
11094 | |
11095 | ||
11096 | ||
8ce0cbda | 11097 | |
d3c8211f AK |
11098 | |
11099 | ||
80992638 | 11100 | ################################################################################ |
06f62ad1 | 11101 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" |
ad6254c5 | 11102 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11103 | # This file is a shell script that caches the results of configure |
11104 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11105 | # scripts and configure runs, see configure's option --config-cache. |
11106 | # It is not useful on other systems. If it contains results you don't | |
11107 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11108 | # |
ad6254c5 AK |
11109 | # config.status only pays attention to the cache file if you give it |
11110 | # the --recheck option to rerun configure. | |
795ca3e5 | 11111 | # |
ad6254c5 AK |
11112 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11113 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11114 | # following values. | |
11115 | ||
11116 | _ACEOF | |
11117 | ||
795ca3e5 AK |
11118 | # The following way of writing the cache mishandles newlines in values, |
11119 | # but we know of no workaround that is simple, portable, and efficient. | |
11120 | # So, don't put newlines in cache variables' values. | |
11121 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11122 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
11123 | { |
11124 | (set) 2>&1 | | |
11125 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11126 | *ac_space=\ *) | |
11127 | # `set' does not quote correctly, so add quotes (double-quote | |
11128 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11129 | sed -n \ | |
8a2fc586 AK |
11130 | "s/'/'\\\\''/g; |
11131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
11132 | ;; |
11133 | *) | |
11134 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11135 | sed -n \ | |
8a2fc586 | 11136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
11137 | ;; |
11138 | esac; | |
11139 | } | | |
11140 | sed ' | |
11141 | t clear | |
11142 | : clear | |
11143 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11144 | t end | |
11145 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11146 | : end' >>confcache | |
11147 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 11148 | if test -w $cache_file; then |
ad6254c5 AK |
11149 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
11150 | cat confcache >$cache_file | |
795ca3e5 AK |
11151 | else |
11152 | echo "not updating unwritable cache $cache_file" | |
11153 | fi | |
11154 | fi | |
11155 | rm -f confcache | |
11156 | ||
795ca3e5 AK |
11157 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11158 | # Let make expand exec_prefix. | |
11159 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11160 | ||
ad6254c5 AK |
11161 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
11162 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11163 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11164 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 11165 | if test "x$srcdir" = x.; then |
8a2fc586 | 11166 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
11167 | s/:*\$(srcdir):*/:/; |
11168 | s/:*\${srcdir}:*/:/; | |
11169 | s/:*@srcdir@:*/:/; | |
8a2fc586 | 11170 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 11171 | s/:*$//; |
8a2fc586 | 11172 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 11173 | }' |
795ca3e5 AK |
11174 | fi |
11175 | ||
72b2cb61 | 11176 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11177 | |
11178 | ac_libobjs= | |
11179 | ac_ltlibobjs= | |
11180 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11181 | # 1. Remove the extension, and $U if already installed. | |
11182 | ac_i=`echo "$ac_i" | | |
8a2fc586 | 11183 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
11184 | # 2. Add them. |
11185 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11186 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11187 | done | |
11188 | LIBOBJS=$ac_libobjs | |
80992638 | 11189 | |
ad6254c5 AK |
11190 | LTLIBOBJS=$ac_ltlibobjs |
11191 | ||
11192 | ||
11193 | ||
11194 | : ${CONFIG_STATUS=./config.status} | |
11195 | ac_clean_files_save=$ac_clean_files | |
11196 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11197 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11198 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11199 | cat >$CONFIG_STATUS <<_ACEOF | |
11200 | #! $SHELL | |
11201 | # Generated by $as_me. | |
795ca3e5 | 11202 | # Run this file to recreate the current configuration. |
795ca3e5 | 11203 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11204 | # configure, is in config.log if it exists. |
11205 | ||
11206 | debug=false | |
11207 | ac_cs_recheck=false | |
11208 | ac_cs_silent=false | |
11209 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11210 | _ACEOF | |
11211 | ||
11212 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11213 | ## --------------------- ## | |
11214 | ## M4sh Initialization. ## | |
11215 | ## --------------------- ## | |
11216 | ||
11217 | # Be Bourne compatible | |
11218 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11219 | emulate sh | |
11220 | NULLCMD=: | |
11221 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11222 | # is contrary to our usage. Disable this feature. | |
11223 | alias -g '${1+"$@"}'='"$@"' | |
11224 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11225 | set -o posix | |
11226 | fi | |
8a2fc586 | 11227 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
11228 | |
11229 | # Support unset when possible. | |
8a2fc586 | 11230 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11231 | as_unset=unset |
11232 | else | |
11233 | as_unset=false | |
11234 | fi | |
8106cdd5 | 11235 | |
ad6254c5 AK |
11236 | |
11237 | # Work around bugs in pre-3.0 UWIN ksh. | |
11238 | $as_unset ENV MAIL MAILPATH | |
11239 | PS1='$ ' | |
11240 | PS2='> ' | |
11241 | PS4='+ ' | |
11242 | ||
11243 | # NLS nuisances. | |
11244 | for as_var in \ | |
11245 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11246 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11247 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11248 | do |
8a2fc586 | 11249 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11250 | eval $as_var=C; export $as_var |
11251 | else | |
11252 | $as_unset $as_var | |
11253 | fi | |
8106cdd5 AK |
11254 | done |
11255 | ||
ad6254c5 AK |
11256 | # Required to use basename. |
11257 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11258 | as_expr=expr | |
11259 | else | |
11260 | as_expr=false | |
11261 | fi | |
8106cdd5 | 11262 | |
ad6254c5 AK |
11263 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
11264 | as_basename=basename | |
11265 | else | |
11266 | as_basename=false | |
11267 | fi | |
11268 | ||
11269 | ||
11270 | # Name of the executable. | |
11271 | as_me=`$as_basename "$0" || | |
11272 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11273 | X"$0" : 'X\(//\)$' \| \ | |
11274 | X"$0" : 'X\(/\)$' \| \ | |
11275 | . : '\(.\)' 2>/dev/null || | |
11276 | echo X/"$0" | | |
11277 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11278 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11279 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11280 | s/.*/./; q'` | |
11281 | ||
11282 | ||
11283 | # PATH needs CR, and LINENO needs CR and PATH. | |
11284 | # Avoid depending upon Character Ranges. | |
11285 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11286 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11287 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11288 | as_cr_digits='0123456789' | |
11289 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11290 | ||
11291 | # The user is always right. | |
11292 | if test "${PATH_SEPARATOR+set}" != set; then | |
11293 | echo "#! /bin/sh" >conf$$.sh | |
11294 | echo "exit 0" >>conf$$.sh | |
11295 | chmod +x conf$$.sh | |
11296 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11297 | PATH_SEPARATOR=';' | |
80992638 | 11298 | else |
ad6254c5 | 11299 | PATH_SEPARATOR=: |
80992638 | 11300 | fi |
ad6254c5 AK |
11301 | rm -f conf$$.sh |
11302 | fi | |
11303 | ||
11304 | ||
11305 | as_lineno_1=$LINENO | |
11306 | as_lineno_2=$LINENO | |
11307 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11308 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11309 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11310 | # Find who we are. Look in the path if we contain no path at all | |
11311 | # relative or not. | |
11312 | case $0 in | |
11313 | *[\\/]* ) as_myself=$0 ;; | |
11314 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11315 | for as_dir in $PATH | |
11316 | do | |
11317 | IFS=$as_save_IFS | |
11318 | test -z "$as_dir" && as_dir=. | |
11319 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11320 | done | |
11321 | ||
11322 | ;; | |
11323 | esac | |
11324 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11325 | # in which case we are not to be found in the path. | |
11326 | if test "x$as_myself" = x; then | |
11327 | as_myself=$0 | |
11328 | fi | |
11329 | if test ! -f "$as_myself"; then | |
11330 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11331 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11332 | { (exit 1); exit 1; }; } | |
8106cdd5 | 11333 | fi |
ad6254c5 AK |
11334 | case $CONFIG_SHELL in |
11335 | '') | |
11336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11337 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11338 | do | |
11339 | IFS=$as_save_IFS | |
11340 | test -z "$as_dir" && as_dir=. | |
11341 | for as_base in sh bash ksh sh5; do | |
11342 | case $as_dir in | |
11343 | /*) | |
11344 | if ("$as_dir/$as_base" -c ' | |
11345 | as_lineno_1=$LINENO | |
11346 | as_lineno_2=$LINENO | |
11347 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11348 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11349 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11350 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11351 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11352 | CONFIG_SHELL=$as_dir/$as_base | |
11353 | export CONFIG_SHELL | |
11354 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11355 | fi;; | |
11356 | esac | |
11357 | done | |
80992638 | 11358 | done |
ad6254c5 | 11359 | ;; |
795ca3e5 AK |
11360 | esac |
11361 | ||
ad6254c5 AK |
11362 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11363 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11364 | # line-number line before each line; the second 'sed' does the real | |
11365 | # work. The second script uses 'N' to pair each line-number line | |
11366 | # with the numbered line, and appends trailing '-' during | |
11367 | # substitution so that $LINENO is not a special case at line end. | |
11368 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11369 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11370 | sed '=' <$as_myself | | |
11371 | sed ' | |
11372 | N | |
11373 | s,$,-, | |
11374 | : loop | |
11375 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11376 | t loop | |
11377 | s,-$,, | |
11378 | s,^['$as_cr_digits']*\n,, | |
11379 | ' >$as_me.lineno && | |
11380 | chmod +x $as_me.lineno || | |
11381 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11382 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11383 | { (exit 1); exit 1; }; } | |
11384 | ||
11385 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11386 | # (the dirname of $[0] is not the place where we might find the | |
11387 | # original and so on. Autoconf is especially sensible to this). | |
11388 | . ./$as_me.lineno | |
11389 | # Exit status is that of the last command. | |
11390 | exit | |
11391 | } | |
11392 | ||
11393 | ||
11394 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11395 | *c*,-n*) ECHO_N= ECHO_C=' | |
11396 | ' ECHO_T=' ' ;; | |
11397 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11398 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11399 | esac | |
11400 | ||
11401 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11402 | as_expr=expr | |
11403 | else | |
11404 | as_expr=false | |
11405 | fi | |
80992638 | 11406 | |
ad6254c5 AK |
11407 | rm -f conf$$ conf$$.exe conf$$.file |
11408 | echo >conf$$.file | |
11409 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11410 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11411 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11412 | if test -f conf$$.exe; then | |
11413 | # Don't use ln at all; we don't have any links | |
11414 | as_ln_s='cp -p' | |
8106cdd5 | 11415 | else |
ad6254c5 | 11416 | as_ln_s='ln -s' |
80992638 | 11417 | fi |
ad6254c5 AK |
11418 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11419 | as_ln_s=ln | |
11420 | else | |
11421 | as_ln_s='cp -p' | |
11422 | fi | |
11423 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 11424 | |
ad6254c5 AK |
11425 | if mkdir -p . 2>/dev/null; then |
11426 | as_mkdir_p=: | |
11427 | else | |
8a2fc586 | 11428 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11429 | as_mkdir_p=false |
11430 | fi | |
11431 | ||
11432 | as_executable_p="test -f" | |
11433 | ||
11434 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11435 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11436 | |
11437 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11438 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11439 | |
11440 | ||
11441 | # IFS | |
11442 | # We need space, tab and new line, in precisely that order. | |
11443 | as_nl=' | |
11444 | ' | |
11445 | IFS=" $as_nl" | |
11446 | ||
11447 | # CDPATH. | |
11448 | $as_unset CDPATH | |
11449 | ||
11450 | exec 6>&1 | |
11451 | ||
11452 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11453 | # report actual input values of CONFIG_FILES etc. instead of their | |
11454 | # values after options handling. Logging --version etc. is OK. | |
11455 | exec 5>>config.log | |
11456 | { | |
11457 | echo | |
11458 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11459 | ## Running $as_me. ## | |
11460 | _ASBOX | |
11461 | } >&5 | |
11462 | cat >&5 <<_CSEOF | |
11463 | ||
11464 | This file was extended by $as_me, which was | |
8a2fc586 | 11465 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
11466 | |
11467 | CONFIG_FILES = $CONFIG_FILES | |
11468 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11469 | CONFIG_LINKS = $CONFIG_LINKS | |
11470 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11471 | $ $0 $@ | |
11472 | ||
11473 | _CSEOF | |
11474 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11475 | echo >&5 | |
11476 | _ACEOF | |
11477 | ||
11478 | # Files that config.status was made for. | |
11479 | if test -n "$ac_config_files"; then | |
11480 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11481 | fi | |
11482 | ||
11483 | if test -n "$ac_config_headers"; then | |
11484 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11485 | fi | |
11486 | ||
11487 | if test -n "$ac_config_links"; then | |
11488 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11489 | fi | |
11490 | ||
11491 | if test -n "$ac_config_commands"; then | |
11492 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11493 | fi | |
11494 | ||
11495 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11496 | ||
11497 | ac_cs_usage="\ | |
11498 | \`$as_me' instantiates files from templates according to the | |
11499 | current configuration. | |
11500 | ||
11501 | Usage: $0 [OPTIONS] [FILE]... | |
11502 | ||
11503 | -h, --help print this help, then exit | |
11504 | -V, --version print version number, then exit | |
11505 | -q, --quiet do not print progress messages | |
11506 | -d, --debug don't remove temporary files | |
11507 | --recheck update $as_me by reconfiguring in the same conditions | |
11508 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11509 | instantiate the configuration file FILE |
72b2cb61 AK |
11510 | --header=FILE[:TEMPLATE] |
11511 | instantiate the configuration header FILE | |
ad6254c5 AK |
11512 | |
11513 | Configuration files: | |
11514 | $config_files | |
11515 | ||
72b2cb61 AK |
11516 | Configuration headers: |
11517 | $config_headers | |
11518 | ||
ad6254c5 AK |
11519 | Report bugs to <bug-autoconf@gnu.org>." |
11520 | _ACEOF | |
11521 | ||
11522 | cat >>$CONFIG_STATUS <<_ACEOF | |
11523 | ac_cs_version="\\ | |
11524 | config.status | |
8a2fc586 | 11525 | configured by $0, generated by GNU Autoconf 2.59, |
ad6254c5 AK |
11526 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11527 | ||
8a2fc586 | 11528 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
11529 | This config.status script is free software; the Free Software Foundation |
11530 | gives unlimited permission to copy, distribute and modify it." | |
11531 | srcdir=$srcdir | |
11532 | INSTALL="$INSTALL" | |
11533 | _ACEOF | |
11534 | ||
11535 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11536 | # If no file are specified by the user, then we need to provide default | |
11537 | # value. By we need to know if files were specified by the user. | |
11538 | ac_need_defaults=: | |
11539 | while test $# != 0 | |
11540 | do | |
11541 | case $1 in | |
11542 | --*=*) | |
11543 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11544 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11545 | ac_shift=: | |
11546 | ;; | |
11547 | -*) | |
11548 | ac_option=$1 | |
11549 | ac_optarg=$2 | |
11550 | ac_shift=shift | |
11551 | ;; | |
11552 | *) # This is not an option, so the user has probably given explicit | |
11553 | # arguments. | |
11554 | ac_option=$1 | |
11555 | ac_need_defaults=false;; | |
11556 | esac | |
11557 | ||
11558 | case $ac_option in | |
11559 | # Handling of the options. | |
11560 | _ACEOF | |
11561 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11562 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11563 | ac_cs_recheck=: ;; | |
11564 | --version | --vers* | -V ) | |
11565 | echo "$ac_cs_version"; exit 0 ;; | |
11566 | --he | --h) | |
11567 | # Conflict between --help and --header | |
11568 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11569 | Try \`$0 --help' for more information." >&5 | |
11570 | echo "$as_me: error: ambiguous option: $1 | |
11571 | Try \`$0 --help' for more information." >&2;} | |
11572 | { (exit 1); exit 1; }; };; | |
11573 | --help | --hel | -h ) | |
11574 | echo "$ac_cs_usage"; exit 0 ;; | |
11575 | --debug | --d* | -d ) | |
11576 | debug=: ;; | |
11577 | --file | --fil | --fi | --f ) | |
11578 | $ac_shift | |
11579 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11580 | ac_need_defaults=false;; | |
11581 | --header | --heade | --head | --hea ) | |
11582 | $ac_shift | |
11583 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11584 | ac_need_defaults=false;; | |
11585 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11586 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11587 | ac_cs_silent=: ;; | |
11588 | ||
11589 | # This is an error. | |
11590 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11591 | Try \`$0 --help' for more information." >&5 | |
11592 | echo "$as_me: error: unrecognized option: $1 | |
11593 | Try \`$0 --help' for more information." >&2;} | |
11594 | { (exit 1); exit 1; }; } ;; | |
11595 | ||
11596 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11597 | ||
11598 | esac | |
11599 | shift | |
11600 | done | |
11601 | ||
11602 | ac_configure_extra_args= | |
11603 | ||
11604 | if $ac_cs_silent; then | |
11605 | exec 6>/dev/null | |
11606 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11607 | fi | |
11608 | ||
11609 | _ACEOF | |
11610 | cat >>$CONFIG_STATUS <<_ACEOF | |
11611 | if \$ac_cs_recheck; then | |
11612 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11613 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11614 | fi | |
11615 | ||
11616 | _ACEOF | |
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11623 | for ac_config_target in $ac_config_targets | |
11624 | do | |
11625 | case "$ac_config_target" in | |
11626 | # Handling of arguments. | |
11627 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11628 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11629 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11630 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
06f62ad1 AK |
11631 | "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; |
11632 | "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
ad6254c5 AK |
11633 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11634 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11635 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11636 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11637 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11638 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11639 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11640 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11641 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11642 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11643 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11644 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11645 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11646 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11647 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11648 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11649 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11650 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
72b2cb61 | 11651 | "lib/misc/configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; |
ad6254c5 AK |
11652 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11653 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11654 | { (exit 1); exit 1; }; };; | |
80992638 | 11655 | esac |
ad6254c5 AK |
11656 | done |
11657 | ||
11658 | # If the user did not use the arguments to specify the items to instantiate, | |
11659 | # then the envvar interface is used. Set only those that are not. | |
11660 | # We use the long form for the default assignment because of an extremely | |
11661 | # bizarre bug on SunOS 4.1.3. | |
11662 | if $ac_need_defaults; then | |
11663 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11664 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11665 | fi |
11666 | ||
11667 | # Have a temporary directory for convenience. Make it in the build tree | |
11668 | # simply because there is no reason to put it here, and in addition, | |
11669 | # creating and moving files from /tmp can sometimes cause problems. | |
11670 | # Create a temporary directory, and hook for its removal unless debugging. | |
11671 | $debug || | |
11672 | { | |
11673 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11674 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11675 | } | |
11676 | ||
11677 | # Create a (secure) tmp directory for tmp files. | |
11678 | ||
11679 | { | |
11680 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11681 | test -n "$tmp" && test -d "$tmp" | |
11682 | } || | |
11683 | { | |
11684 | tmp=./confstat$$-$RANDOM | |
11685 | (umask 077 && mkdir $tmp) | |
11686 | } || | |
11687 | { | |
11688 | echo "$me: cannot create a temporary directory in ." >&2 | |
11689 | { (exit 1); exit 1; } | |
11690 | } | |
11691 | ||
11692 | _ACEOF | |
11693 | ||
11694 | cat >>$CONFIG_STATUS <<_ACEOF | |
11695 | ||
11696 | # | |
11697 | # CONFIG_FILES section. | |
11698 | # | |
11699 | ||
11700 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11701 | # This happens for instance when ./config.status config.h | |
11702 | if test -n "\$CONFIG_FILES"; then | |
11703 | # Protect against being on the right side of a sed subst in config.status. | |
11704 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11705 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11706 | s,@SHELL@,$SHELL,;t t | |
11707 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11708 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11709 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11710 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11711 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11712 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11713 | s,@exec_prefix@,$exec_prefix,;t t | |
11714 | s,@prefix@,$prefix,;t t | |
11715 | s,@program_transform_name@,$program_transform_name,;t t | |
11716 | s,@bindir@,$bindir,;t t | |
11717 | s,@sbindir@,$sbindir,;t t | |
11718 | s,@libexecdir@,$libexecdir,;t t | |
11719 | s,@datadir@,$datadir,;t t | |
11720 | s,@sysconfdir@,$sysconfdir,;t t | |
11721 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11722 | s,@localstatedir@,$localstatedir,;t t | |
11723 | s,@libdir@,$libdir,;t t | |
11724 | s,@includedir@,$includedir,;t t | |
11725 | s,@oldincludedir@,$oldincludedir,;t t | |
11726 | s,@infodir@,$infodir,;t t | |
11727 | s,@mandir@,$mandir,;t t | |
11728 | s,@build_alias@,$build_alias,;t t | |
11729 | s,@host_alias@,$host_alias,;t t | |
11730 | s,@target_alias@,$target_alias,;t t | |
11731 | s,@DEFS@,$DEFS,;t t | |
11732 | s,@ECHO_C@,$ECHO_C,;t t | |
11733 | s,@ECHO_N@,$ECHO_N,;t t | |
11734 | s,@ECHO_T@,$ECHO_T,;t t | |
11735 | s,@LIBS@,$LIBS,;t t | |
11736 | s,@build@,$build,;t t | |
11737 | s,@build_cpu@,$build_cpu,;t t | |
11738 | s,@build_vendor@,$build_vendor,;t t | |
11739 | s,@build_os@,$build_os,;t t | |
11740 | s,@host@,$host,;t t | |
11741 | s,@host_cpu@,$host_cpu,;t t | |
11742 | s,@host_vendor@,$host_vendor,;t t | |
11743 | s,@host_os@,$host_os,;t t | |
11744 | s,@target@,$target,;t t | |
11745 | s,@target_cpu@,$target_cpu,;t t | |
11746 | s,@target_vendor@,$target_vendor,;t t | |
11747 | s,@target_os@,$target_os,;t t | |
11748 | s,@AWK@,$AWK,;t t | |
11749 | s,@CC@,$CC,;t t | |
11750 | s,@CFLAGS@,$CFLAGS,;t t | |
11751 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11752 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11753 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11754 | s,@EXEEXT@,$EXEEXT,;t t | |
11755 | s,@OBJEXT@,$OBJEXT,;t t | |
11756 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11757 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11758 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11759 | s,@LN_S@,$LN_S,;t t | |
11760 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11761 | s,@RANLIB@,$RANLIB,;t t | |
11762 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8a2fc586 AK |
11763 | s,@CFLOW_CMD@,$CFLOW_CMD,;t t |
11764 | s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t | |
ad6254c5 AK |
11765 | s,@CPP@,$CPP,;t t |
11766 | s,@EGREP@,$EGREP,;t t | |
11767 | s,@ALLOCA@,$ALLOCA,;t t | |
11768 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11769 | s,@POW_LIB@,$POW_LIB,;t t | |
11770 | s,@MSGFMT@,$MSGFMT,;t t | |
a653923f | 11771 | s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t |
ad6254c5 AK |
11772 | s,@JOBS@,$JOBS,;t t |
11773 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
11774 | s,@LVM1@,$LVM1,;t t | |
11775 | s,@POOL@,$POOL,;t t | |
11776 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
11777 | s,@MIRRORS@,$MIRRORS,;t t | |
11778 | s,@OWNER@,$OWNER,;t t | |
11779 | s,@GROUP@,$GROUP,;t t | |
11780 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t | |
11781 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
11782 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
11783 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
11784 | s,@LDDEPS@,$LDDEPS,;t t | |
c1c065a3 | 11785 | s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t |
ad6254c5 AK |
11786 | s,@LVM_VERSION@,$LVM_VERSION,;t t |
11787 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
11788 | s,@DEBUG@,$DEBUG,;t t | |
11789 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
11790 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
11791 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
11792 | s,@CMDLIB@,$CMDLIB,;t t | |
11793 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
11794 | s,@CONFDIR@,$CONFDIR,;t t | |
11795 | s,@STATICDIR@,$STATICDIR,;t t | |
11796 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
11797 | s,@INTL@,$INTL,;t t | |
11798 | s,@CLVMD@,$CLVMD,;t t | |
11799 | s,@CLUSTER@,$CLUSTER,;t t | |
11800 | s,@FSADM@,$FSADM,;t t | |
06f62ad1 | 11801 | s,@DMEVENTD@,$DMEVENTD,;t t |
ad6254c5 AK |
11802 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
11803 | CEOF | |
11804 | ||
11805 | _ACEOF | |
11806 | ||
11807 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11808 | # Split the substitutions into bite-sized pieces for seds with | |
11809 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11810 | ac_max_sed_lines=48 | |
11811 | ac_sed_frag=1 # Number of current file. | |
11812 | ac_beg=1 # First line for current file. | |
11813 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11814 | ac_more_lines=: | |
11815 | ac_sed_cmds= | |
11816 | while $ac_more_lines; do | |
11817 | if test $ac_beg -gt 1; then | |
11818 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11819 | else | |
11820 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11821 | fi | |
11822 | if test ! -s $tmp/subs.frag; then | |
11823 | ac_more_lines=false | |
11824 | else | |
11825 | # The purpose of the label and of the branching condition is to | |
11826 | # speed up the sed processing (if there are no `@' at all, there | |
11827 | # is no need to browse any of the substitutions). | |
11828 | # These are the two extra sed commands mentioned above. | |
11829 | (echo ':t | |
11830 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11831 | if test -z "$ac_sed_cmds"; then | |
8a2fc586 | 11832 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 11833 | else |
8a2fc586 | 11834 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
11835 | fi |
11836 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11837 | ac_beg=$ac_end | |
11838 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11839 | fi | |
11840 | done | |
11841 | if test -z "$ac_sed_cmds"; then | |
11842 | ac_sed_cmds=cat | |
11843 | fi | |
11844 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 11845 | |
ad6254c5 AK |
11846 | _ACEOF |
11847 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11848 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11849 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11850 | case $ac_file in | |
11851 | - | *:- | *:-:* ) # input from stdin | |
8a2fc586 AK |
11852 | cat >$tmp/stdin |
11853 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11854 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 11855 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8a2fc586 | 11856 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 11857 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 11858 | esac |
8106cdd5 | 11859 | |
ad6254c5 AK |
11860 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11861 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11862 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11863 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11864 | X"$ac_file" : 'X\(//\)$' \| \ | |
11865 | X"$ac_file" : 'X\(/\)' \| \ | |
11866 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11867 | echo X"$ac_file" | |
11868 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11869 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11870 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11871 | /^X\(\/\).*/{ s//\1/; q; } | |
11872 | s/.*/./; q'` | |
11873 | { if $as_mkdir_p; then | |
11874 | mkdir -p "$ac_dir" | |
11875 | else | |
11876 | as_dir="$ac_dir" | |
11877 | as_dirs= | |
11878 | while test ! -d "$as_dir"; do | |
11879 | as_dirs="$as_dir $as_dirs" | |
11880 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11881 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11882 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11883 | X"$as_dir" : 'X\(//\)$' \| \ | |
11884 | X"$as_dir" : 'X\(/\)' \| \ | |
11885 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11886 | echo X"$as_dir" | |
11887 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11888 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11889 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11890 | /^X\(\/\).*/{ s//\1/; q; } | |
11891 | s/.*/./; q'` | |
11892 | done | |
11893 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11894 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11895 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11896 | { (exit 1); exit 1; }; }; } | |
11897 | ||
11898 | ac_builddir=. | |
11899 | ||
11900 | if test "$ac_dir" != .; then | |
11901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11902 | # A "../" for each directory in $ac_dir_suffix. | |
11903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11904 | else | |
11905 | ac_dir_suffix= ac_top_builddir= | |
11906 | fi | |
11907 | ||
11908 | case $srcdir in | |
11909 | .) # No --srcdir option. We are building in place. | |
11910 | ac_srcdir=. | |
11911 | if test -z "$ac_top_builddir"; then | |
11912 | ac_top_srcdir=. | |
11913 | else | |
11914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11915 | fi ;; | |
11916 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11917 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11918 | ac_top_srcdir=$srcdir ;; | |
11919 | *) # Relative path. | |
11920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11922 | esac | |
8a2fc586 AK |
11923 | |
11924 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11925 | # the directories may not exist. | |
11926 | case `pwd` in | |
11927 | .) ac_abs_builddir="$ac_dir";; | |
11928 | *) | |
11929 | case "$ac_dir" in | |
11930 | .) ac_abs_builddir=`pwd`;; | |
11931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11933 | esac;; | |
11934 | esac | |
11935 | case $ac_abs_builddir in | |
11936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11937 | *) | |
11938 | case ${ac_top_builddir}. in | |
11939 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11942 | esac;; | |
11943 | esac | |
11944 | case $ac_abs_builddir in | |
11945 | .) ac_abs_srcdir=$ac_srcdir;; | |
11946 | *) | |
11947 | case $ac_srcdir in | |
11948 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11951 | esac;; | |
11952 | esac | |
11953 | case $ac_abs_builddir in | |
11954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11955 | *) | |
11956 | case $ac_top_srcdir in | |
11957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11960 | esac;; | |
11961 | esac | |
ad6254c5 AK |
11962 | |
11963 | ||
11964 | case $INSTALL in | |
11965 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11966 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
11967 | esac |
11968 | ||
ad6254c5 AK |
11969 | if test x"$ac_file" != x-; then |
11970 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11971 | echo "$as_me: creating $ac_file" >&6;} | |
11972 | rm -f "$ac_file" | |
11973 | fi | |
11974 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11975 | # use $as_me), people would be surprised to read: | |
11976 | # /* config.h. Generated by config.status. */ | |
11977 | if test x"$ac_file" = x-; then | |
11978 | configure_input= | |
11979 | else | |
11980 | configure_input="$ac_file. " | |
11981 | fi | |
11982 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8a2fc586 | 11983 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
11984 | |
11985 | # First look for the input files in the build tree, otherwise in the | |
11986 | # src tree. | |
11987 | ac_file_inputs=`IFS=: | |
11988 | for f in $ac_file_in; do | |
11989 | case $f in | |
11990 | -) echo $tmp/stdin ;; | |
11991 | [\\/$]*) | |
8a2fc586 AK |
11992 | # Absolute (can't be DOS-style, as IFS=:) |
11993 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11994 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11995 | { (exit 1); exit 1; }; } | |
8a2fc586 | 11996 | echo "$f";; |
ad6254c5 | 11997 | *) # Relative |
8a2fc586 AK |
11998 | if test -f "$f"; then |
11999 | # Build tree | |
12000 | echo "$f" | |
12001 | elif test -f "$srcdir/$f"; then | |
12002 | # Source tree | |
12003 | echo "$srcdir/$f" | |
12004 | else | |
12005 | # /dev/null tree | |
12006 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
12007 | echo "$as_me: error: cannot find input file: $f" >&2;} |
12008 | { (exit 1); exit 1; }; } | |
8a2fc586 | 12009 | fi;; |
ad6254c5 AK |
12010 | esac |
12011 | done` || { (exit 1); exit 1; } | |
12012 | _ACEOF | |
12013 | cat >>$CONFIG_STATUS <<_ACEOF | |
12014 | sed "$ac_vpsub | |
12015 | $extrasub | |
12016 | _ACEOF | |
12017 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12018 | :t | |
12019 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12020 | s,@configure_input@,$configure_input,;t t | |
12021 | s,@srcdir@,$ac_srcdir,;t t | |
12022 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12023 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12024 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12025 | s,@builddir@,$ac_builddir,;t t | |
12026 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12027 | s,@top_builddir@,$ac_top_builddir,;t t | |
12028 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12029 | s,@INSTALL@,$ac_INSTALL,;t t | |
12030 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12031 | rm -f $tmp/stdin | |
12032 | if test x"$ac_file" != x-; then | |
12033 | mv $tmp/out $ac_file | |
12034 | else | |
12035 | cat $tmp/out | |
12036 | rm -f $tmp/out | |
12037 | fi | |
795ca3e5 | 12038 | |
ad6254c5 AK |
12039 | done |
12040 | _ACEOF | |
72b2cb61 AK |
12041 | cat >>$CONFIG_STATUS <<\_ACEOF |
12042 | ||
12043 | # | |
12044 | # CONFIG_HEADER section. | |
12045 | # | |
12046 | ||
12047 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12048 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12049 | # | |
12050 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12051 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12052 | ac_dB='[ ].*$,\1#\2' | |
12053 | ac_dC=' ' | |
12054 | ac_dD=',;t' | |
12055 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12056 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12057 | ac_uB='$,\1#\2define\3' | |
12058 | ac_uC=' ' | |
12059 | ac_uD=',;t' | |
12060 | ||
12061 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12062 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12063 | case $ac_file in | |
12064 | - | *:- | *:-:* ) # input from stdin | |
12065 | cat >$tmp/stdin | |
12066 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12067 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12068 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12069 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12070 | * ) ac_file_in=$ac_file.in ;; | |
12071 | esac | |
12072 | ||
12073 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12074 | echo "$as_me: creating $ac_file" >&6;} | |
12075 | ||
12076 | # First look for the input files in the build tree, otherwise in the | |
12077 | # src tree. | |
12078 | ac_file_inputs=`IFS=: | |
12079 | for f in $ac_file_in; do | |
12080 | case $f in | |
12081 | -) echo $tmp/stdin ;; | |
12082 | [\\/$]*) | |
12083 | # Absolute (can't be DOS-style, as IFS=:) | |
12084 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12085 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12086 | { (exit 1); exit 1; }; } | |
12087 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12088 | echo "$f";; | |
12089 | *) # Relative | |
12090 | if test -f "$f"; then | |
12091 | # Build tree | |
12092 | echo "$f" | |
12093 | elif test -f "$srcdir/$f"; then | |
12094 | # Source tree | |
12095 | echo "$srcdir/$f" | |
12096 | else | |
12097 | # /dev/null tree | |
12098 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12099 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12100 | { (exit 1); exit 1; }; } | |
12101 | fi;; | |
12102 | esac | |
12103 | done` || { (exit 1); exit 1; } | |
12104 | # Remove the trailing spaces. | |
12105 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12106 | ||
12107 | _ACEOF | |
12108 | ||
12109 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12110 | # `conftest.undefs', that substitutes the proper values into | |
12111 | # config.h.in to produce config.h. The first handles `#define' | |
12112 | # templates, and the second `#undef' templates. | |
12113 | # And first: Protect against being on the right side of a sed subst in | |
12114 | # config.status. Protect against being in an unquoted here document | |
12115 | # in config.status. | |
12116 | rm -f conftest.defines conftest.undefs | |
12117 | # Using a here document instead of a string reduces the quoting nightmare. | |
12118 | # Putting comments in sed scripts is not portable. | |
12119 | # | |
12120 | # `end' is used to avoid that the second main sed command (meant for | |
12121 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12122 | # See the Autoconf documentation for `clear'. | |
12123 | cat >confdef2sed.sed <<\_ACEOF | |
12124 | s/[\\&,]/\\&/g | |
12125 | s,[\\$`],\\&,g | |
12126 | t clear | |
12127 | : clear | |
12128 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12129 | t end | |
12130 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12131 | : end | |
12132 | _ACEOF | |
12133 | # If some macros were called several times there might be several times | |
12134 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12135 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12136 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12137 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12138 | rm -f confdef2sed.sed | |
12139 | ||
12140 | # This sed command replaces #undef with comments. This is necessary, for | |
12141 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12142 | # on some systems where configure will not decide to define it. | |
12143 | cat >>conftest.undefs <<\_ACEOF | |
12144 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12145 | _ACEOF | |
12146 | ||
12147 | # Break up conftest.defines because some shells have a limit on the size | |
12148 | # of here documents, and old seds have small limits too (100 cmds). | |
12149 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12150 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12151 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12152 | echo ' :' >>$CONFIG_STATUS | |
12153 | rm -f conftest.tail | |
12154 | while grep . conftest.defines >/dev/null | |
12155 | do | |
12156 | # Write a limited-size here document to $tmp/defines.sed. | |
12157 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12158 | # Speed up: don't consider the non `#define' lines. | |
12159 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12160 | # Work around the forget-to-reset-the-flag bug. | |
12161 | echo 't clr' >>$CONFIG_STATUS | |
12162 | echo ': clr' >>$CONFIG_STATUS | |
12163 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12164 | echo 'CEOF | |
12165 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12166 | rm -f $tmp/in | |
12167 | mv $tmp/out $tmp/in | |
12168 | ' >>$CONFIG_STATUS | |
12169 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12170 | rm -f conftest.defines | |
12171 | mv conftest.tail conftest.defines | |
12172 | done | |
12173 | rm -f conftest.defines | |
12174 | echo ' fi # grep' >>$CONFIG_STATUS | |
12175 | echo >>$CONFIG_STATUS | |
12176 | ||
12177 | # Break up conftest.undefs because some shells have a limit on the size | |
12178 | # of here documents, and old seds have small limits too (100 cmds). | |
12179 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12180 | rm -f conftest.tail | |
12181 | while grep . conftest.undefs >/dev/null | |
12182 | do | |
12183 | # Write a limited-size here document to $tmp/undefs.sed. | |
12184 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12185 | # Speed up: don't consider the non `#undef' | |
12186 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12187 | # Work around the forget-to-reset-the-flag bug. | |
12188 | echo 't clr' >>$CONFIG_STATUS | |
12189 | echo ': clr' >>$CONFIG_STATUS | |
12190 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12191 | echo 'CEOF | |
12192 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12193 | rm -f $tmp/in | |
12194 | mv $tmp/out $tmp/in | |
12195 | ' >>$CONFIG_STATUS | |
12196 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12197 | rm -f conftest.undefs | |
12198 | mv conftest.tail conftest.undefs | |
12199 | done | |
12200 | rm -f conftest.undefs | |
12201 | ||
12202 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12203 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12204 | # use $as_me), people would be surprised to read: | |
12205 | # /* config.h. Generated by config.status. */ | |
12206 | if test x"$ac_file" = x-; then | |
12207 | echo "/* Generated by configure. */" >$tmp/config.h | |
12208 | else | |
12209 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12210 | fi | |
12211 | cat $tmp/in >>$tmp/config.h | |
12212 | rm -f $tmp/in | |
12213 | if test x"$ac_file" != x-; then | |
12214 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12215 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12216 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12217 | else | |
12218 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12219 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12220 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12221 | X"$ac_file" : 'X\(//\)$' \| \ | |
12222 | X"$ac_file" : 'X\(/\)' \| \ | |
12223 | . : '\(.\)' 2>/dev/null || | |
12224 | echo X"$ac_file" | | |
12225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12226 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12227 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12228 | /^X\(\/\).*/{ s//\1/; q; } | |
12229 | s/.*/./; q'` | |
12230 | { if $as_mkdir_p; then | |
12231 | mkdir -p "$ac_dir" | |
12232 | else | |
12233 | as_dir="$ac_dir" | |
12234 | as_dirs= | |
12235 | while test ! -d "$as_dir"; do | |
12236 | as_dirs="$as_dir $as_dirs" | |
12237 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12238 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12239 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12240 | X"$as_dir" : 'X\(//\)$' \| \ | |
12241 | X"$as_dir" : 'X\(/\)' \| \ | |
12242 | . : '\(.\)' 2>/dev/null || | |
12243 | echo X"$as_dir" | | |
12244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12245 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12246 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12247 | /^X\(\/\).*/{ s//\1/; q; } | |
12248 | s/.*/./; q'` | |
12249 | done | |
12250 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12251 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12252 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12253 | { (exit 1); exit 1; }; }; } | |
12254 | ||
12255 | rm -f $ac_file | |
12256 | mv $tmp/config.h $ac_file | |
12257 | fi | |
12258 | else | |
12259 | cat $tmp/config.h | |
12260 | rm -f $tmp/config.h | |
12261 | fi | |
12262 | done | |
12263 | _ACEOF | |
795ca3e5 | 12264 | |
ad6254c5 | 12265 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 12266 | |
ad6254c5 AK |
12267 | { (exit 0); exit 0; } |
12268 | _ACEOF | |
795ca3e5 | 12269 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12270 | ac_clean_files=$ac_clean_files_save |
12271 | ||
12272 | ||
12273 | # configure is writing to config.log, and then calls config.status. | |
12274 | # config.status does its own redirection, appending to config.log. | |
12275 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12276 | # by configure, so config.status won't be able to write to it; its | |
12277 | # output is simply discarded. So we exec the FD to /dev/null, | |
12278 | # effectively closing config.log, so it can be properly (re)opened and | |
12279 | # appended to by config.status. When coming back to configure, we | |
12280 | # need to make the FD available again. | |
12281 | if test "$no_create" != yes; then | |
12282 | ac_cs_success=: | |
12283 | ac_config_status_args= | |
12284 | test "$silent" = yes && | |
12285 | ac_config_status_args="$ac_config_status_args --quiet" | |
12286 | exec 5>/dev/null | |
12287 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12288 | exec 5>>config.log | |
12289 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12290 | # would make configure fail if this is the last instruction. | |
12291 | $ac_cs_success || { (exit 1); exit 1; } | |
12292 | fi | |
795ca3e5 | 12293 | |
2dc95e1c AK |
12294 | |
12295 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
12296 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12297 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12298 | fi |
809fae91 AK |
12299 | |
12300 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
12301 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12302 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12303 | fi |
06f62ad1 AK |
12304 | |
12305 | if test x$DMEVENTD == xyes; then | |
12306 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
12307 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
12308 | fi |