]>
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 |
8b1a3214 | 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 HAVE_REALTIME 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 | |
3d978351 | 856 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
857 | --enable-debug Enable debugging |
858 | --disable-devmapper Disable device-mapper interaction | |
859 | --disable-o_direct Disable O_DIRECT | |
860 | --enable-cmdlib Build shared command library | |
861 | --enable-fsadm Enable fsadm | |
15d91f5a | 862 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
863 | --enable-nls Enable Native Language Support |
864 | ||
865 | Optional Packages: | |
866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
868 | --with-user=USER Set the owner of installed files | |
869 | --with-group=GROUP Set the group owner of installed files | |
870 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
871 | TYPE=internal | |
872 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
873 | TYPE=internal | |
874 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
875 | TYPE=internal | |
876 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
877 | TYPE=internal | |
878 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
879 | TYPE=internal | |
5c7fc7c4 | 880 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 881 | TYPE=none |
ad6254c5 AK |
882 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
883 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
884 | --with-confdir=DIR Configuration files in DIR /etc | |
885 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
886 | ||
887 | Some influential environment variables: | |
888 | CC C compiler command | |
889 | CFLAGS C compiler flags | |
890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
891 | nonstandard directory <lib dir> | |
892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
893 | headers in a nonstandard directory <include dir> | |
894 | CPP C preprocessor | |
895 | ||
896 | Use these variables to override the choices made by `configure' or to help | |
897 | it to find libraries and programs with nonstandard names/locations. | |
898 | ||
899 | _ACEOF | |
900 | fi | |
901 | ||
902 | if test "$ac_init_help" = "recursive"; then | |
903 | # If there are subdirs, report their specific --help. | |
904 | ac_popdir=`pwd` | |
905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
906 | test -d $ac_dir || continue | |
907 | ac_builddir=. | |
908 | ||
909 | if test "$ac_dir" != .; then | |
910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
911 | # A "../" for each directory in $ac_dir_suffix. | |
912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
913 | else | |
914 | ac_dir_suffix= ac_top_builddir= | |
915 | fi | |
916 | ||
917 | case $srcdir in | |
918 | .) # No --srcdir option. We are building in place. | |
919 | ac_srcdir=. | |
920 | if test -z "$ac_top_builddir"; then | |
921 | ac_top_srcdir=. | |
922 | else | |
923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
924 | fi ;; | |
925 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
926 | ac_srcdir=$srcdir$ac_dir_suffix; | |
927 | ac_top_srcdir=$srcdir ;; | |
928 | *) # Relative path. | |
929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
931 | esac | |
8a2fc586 AK |
932 | |
933 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
934 | # the directories may not exist. | |
935 | case `pwd` in | |
936 | .) ac_abs_builddir="$ac_dir";; | |
937 | *) | |
938 | case "$ac_dir" in | |
939 | .) ac_abs_builddir=`pwd`;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
946 | *) | |
947 | case ${ac_top_builddir}. in | |
948 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_srcdir=$ac_srcdir;; | |
955 | *) | |
956 | case $ac_srcdir in | |
957 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
960 | esac;; | |
961 | esac | |
962 | case $ac_abs_builddir in | |
963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
964 | *) | |
965 | case $ac_top_srcdir in | |
966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
969 | esac;; | |
970 | esac | |
ad6254c5 AK |
971 | |
972 | cd $ac_dir | |
973 | # Check for guested configure; otherwise get Cygnus style configure. | |
974 | if test -f $ac_srcdir/configure.gnu; then | |
975 | echo | |
976 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
977 | elif test -f $ac_srcdir/configure; then | |
978 | echo | |
979 | $SHELL $ac_srcdir/configure --help=recursive | |
980 | elif test -f $ac_srcdir/configure.ac || | |
8a2fc586 | 981 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
982 | echo |
983 | $ac_configure --help | |
984 | else | |
985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
986 | fi | |
987 | cd $ac_popdir | |
988 | done | |
989 | fi | |
990 | ||
991 | test -n "$ac_init_help" && exit 0 | |
992 | if $ac_init_version; then | |
993 | cat <<\_ACEOF | |
994 | ||
8a2fc586 | 995 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
996 | This configure script is free software; the Free Software Foundation |
997 | gives unlimited permission to copy, distribute and modify it. | |
998 | _ACEOF | |
999 | exit 0 | |
1000 | fi | |
1001 | exec 5>config.log | |
1002 | cat >&5 <<_ACEOF | |
1003 | This file contains any messages produced by compilers while | |
1004 | running configure, to aid debugging if configure makes a mistake. | |
1005 | ||
1006 | It was created by $as_me, which was | |
8a2fc586 | 1007 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
1008 | |
1009 | $ $0 $@ | |
1010 | ||
1011 | _ACEOF | |
1012 | { | |
1013 | cat <<_ASUNAME | |
1014 | ## --------- ## | |
1015 | ## Platform. ## | |
1016 | ## --------- ## | |
1017 | ||
1018 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1019 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1020 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1021 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1022 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1025 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1026 | ||
1027 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1028 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1029 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1030 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1031 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1032 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1033 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1034 | ||
1035 | _ASUNAME | |
1036 | ||
1037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1038 | for as_dir in $PATH | |
1039 | do | |
1040 | IFS=$as_save_IFS | |
1041 | test -z "$as_dir" && as_dir=. | |
1042 | echo "PATH: $as_dir" | |
1043 | done | |
1044 | ||
1045 | } >&5 | |
1046 | ||
1047 | cat >&5 <<_ACEOF | |
1048 | ||
1049 | ||
1050 | ## ----------- ## | |
1051 | ## Core tests. ## | |
1052 | ## ----------- ## | |
1053 | ||
1054 | _ACEOF | |
1055 | ||
1056 | ||
1057 | # Keep a trace of the command line. | |
1058 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1059 | # Strip out --silent because we don't want to record it for future runs. | |
1060 | # Also quote any args containing shell meta-characters. | |
1061 | # Make two passes to allow for proper duplicate-argument suppression. | |
1062 | ac_configure_args= | |
1063 | ac_configure_args0= | |
1064 | ac_configure_args1= | |
1065 | ac_sep= | |
1066 | ac_must_keep_next=false | |
1067 | for ac_pass in 1 2 | |
1068 | do | |
1069 | for ac_arg | |
1070 | do | |
1071 | case $ac_arg in | |
1072 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1073 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1074 | | -silent | --silent | --silen | --sile | --sil) | |
1075 | continue ;; | |
1076 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1077 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1078 | esac | |
1079 | case $ac_pass in | |
1080 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1081 | 2) | |
1082 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1083 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1084 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1085 | else |
8a2fc586 AK |
1086 | case $ac_arg in |
1087 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1088 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1089 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1090 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1091 | case "$ac_configure_args0 " in | |
1092 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1093 | esac | |
1094 | ;; | |
1095 | -* ) ac_must_keep_next=true ;; | |
1096 | esac | |
ad6254c5 AK |
1097 | fi |
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1099 | # Get rid of the leading space. | |
1100 | ac_sep=" " | |
1101 | ;; | |
1102 | esac | |
1103 | done | |
1104 | done | |
1105 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1106 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1107 | ||
1108 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1109 | # config.log. We remove comments because anyway the quotes in there | |
1110 | # would cause problems or look ugly. | |
1111 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1112 | # such as our DU 5.0 friend, will then `close' the trap. | |
1113 | trap 'exit_status=$? | |
1114 | # Save into config.log some information that might help in debugging. | |
1115 | { | |
1116 | echo | |
1117 | ||
1118 | cat <<\_ASBOX | |
1119 | ## ---------------- ## | |
1120 | ## Cache variables. ## | |
1121 | ## ---------------- ## | |
1122 | _ASBOX | |
1123 | echo | |
1124 | # The following way of writing the cache mishandles newlines in values, | |
1125 | { | |
1126 | (set) 2>&1 | | |
1127 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1128 | *ac_space=\ *) | |
1129 | sed -n \ | |
8a2fc586 AK |
1130 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1132 | ;; |
1133 | *) | |
1134 | sed -n \ | |
8a2fc586 | 1135 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1136 | ;; |
1137 | esac; | |
1138 | } | |
1139 | echo | |
1140 | ||
1141 | cat <<\_ASBOX | |
1142 | ## ----------------- ## | |
1143 | ## Output variables. ## | |
1144 | ## ----------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_vars | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | ||
1154 | if test -n "$ac_subst_files"; then | |
1155 | cat <<\_ASBOX | |
1156 | ## ------------- ## | |
1157 | ## Output files. ## | |
1158 | ## ------------- ## | |
1159 | _ASBOX | |
1160 | echo | |
1161 | for ac_var in $ac_subst_files | |
1162 | do | |
1163 | eval ac_val=$`echo $ac_var` | |
8a2fc586 | 1164 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1165 | done | sort |
1166 | echo | |
1167 | fi | |
1168 | ||
1169 | if test -s confdefs.h; then | |
1170 | cat <<\_ASBOX | |
1171 | ## ----------- ## | |
1172 | ## confdefs.h. ## | |
1173 | ## ----------- ## | |
1174 | _ASBOX | |
1175 | echo | |
1176 | sed "/^$/d" confdefs.h | sort | |
1177 | echo | |
1178 | fi | |
1179 | test "$ac_signal" != 0 && | |
1180 | echo "$as_me: caught signal $ac_signal" | |
1181 | echo "$as_me: exit $exit_status" | |
1182 | } >&5 | |
8a2fc586 | 1183 | rm -f core *.core && |
ad6254c5 AK |
1184 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1185 | exit $exit_status | |
1186 | ' 0 | |
1187 | for ac_signal in 1 2 13 15; do | |
1188 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1189 | done | |
1190 | ac_signal=0 | |
1191 | ||
1192 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1193 | rm -rf conftest* confdefs.h | |
1194 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1195 | echo >confdefs.h | |
1196 | ||
1197 | # Predefined preprocessor variables. | |
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1211 | _ACEOF | |
8106cdd5 | 1212 | |
ad6254c5 AK |
1213 | |
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
1224 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1225 | # Prefer explicitly selected file to automatically selected ones. |
1226 | if test -z "$CONFIG_SITE"; then | |
1227 | if test "x$prefix" != xNONE; then | |
1228 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1229 | else | |
1230 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1231 | fi | |
1232 | fi | |
1233 | for ac_site_file in $CONFIG_SITE; do | |
1234 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1235 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1236 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1237 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1238 | . "$ac_site_file" |
1239 | fi | |
1240 | done | |
1241 | ||
1242 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1243 | # Some versions of bash will fail to source /dev/null (special |
1244 | # files actually), so we avoid doing that. | |
1245 | if test -f "$cache_file"; then | |
1246 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1247 | echo "$as_me: loading cache $cache_file" >&6;} | |
1248 | case $cache_file in | |
1249 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1250 | *) . ./$cache_file;; | |
1251 | esac | |
1252 | fi | |
795ca3e5 | 1253 | else |
ad6254c5 AK |
1254 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1255 | echo "$as_me: creating cache $cache_file" >&6;} | |
1256 | >$cache_file | |
1257 | fi | |
1258 | ||
1259 | # Check that the precious variables saved in the cache have kept the same | |
1260 | # value. | |
1261 | ac_cache_corrupted=false | |
1262 | for ac_var in `(set) 2>&1 | | |
8a2fc586 | 1263 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1264 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1265 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1266 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1267 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1268 | case $ac_old_set,$ac_new_set in | |
1269 | set,) | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1272 | ac_cache_corrupted=: ;; | |
1273 | ,set) | |
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1275 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1276 | ac_cache_corrupted=: ;; | |
1277 | ,);; | |
1278 | *) | |
1279 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8a2fc586 | 1280 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1281 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8a2fc586 | 1282 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1283 | echo "$as_me: former value: $ac_old_val" >&2;} |
8a2fc586 | 1284 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1285 | echo "$as_me: current value: $ac_new_val" >&2;} |
8a2fc586 | 1286 | ac_cache_corrupted=: |
ad6254c5 AK |
1287 | fi;; |
1288 | esac | |
1289 | # Pass precious variables to config.status. | |
1290 | if test "$ac_new_set" = set; then | |
1291 | case $ac_new_val in | |
1292 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1293 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1294 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1295 | esac | |
1296 | case " $ac_configure_args " in | |
1297 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1298 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1299 | esac | |
1300 | fi | |
1301 | done | |
1302 | if $ac_cache_corrupted; then | |
1303 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1304 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1305 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1306 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1307 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1308 | fi |
1309 | ||
1310 | ac_ext=c | |
795ca3e5 | 1311 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
795ca3e5 AK |
1332 | |
1333 | ||
1334 | ||
72b2cb61 AK |
1335 | ################################################################################ |
1336 | ac_config_headers="$ac_config_headers lib/misc/configure.h" | |
1337 | ||
1338 | ||
80992638 | 1339 | ################################################################################ |
795ca3e5 AK |
1340 | ac_aux_dir= |
1341 | for ac_dir in autoconf $srcdir/autoconf; do | |
1342 | if test -f $ac_dir/install-sh; then | |
1343 | ac_aux_dir=$ac_dir | |
1344 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1345 | break | |
1346 | elif test -f $ac_dir/install.sh; then | |
1347 | ac_aux_dir=$ac_dir | |
1348 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1349 | break | |
ad6254c5 AK |
1350 | elif test -f $ac_dir/shtool; then |
1351 | ac_aux_dir=$ac_dir | |
1352 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1353 | break | |
795ca3e5 AK |
1354 | fi |
1355 | done | |
1356 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1357 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1358 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1359 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1360 | fi |
ad6254c5 AK |
1361 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1362 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1363 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1364 | |
1365 | ||
ad6254c5 | 1366 | ################################################################################ |
8ce0cbda | 1367 | # Make sure we can run config.sub. |
ad6254c5 AK |
1368 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1369 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1370 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1371 | { (exit 1); exit 1; }; } | |
1372 | ||
1373 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1374 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1375 | if test "${ac_cv_build+set}" = set; then | |
1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1377 | else | |
1378 | ac_cv_build_alias=$build_alias | |
1379 | test -z "$ac_cv_build_alias" && | |
1380 | ac_cv_build_alias=`$ac_config_guess` | |
1381 | test -z "$ac_cv_build_alias" && | |
1382 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1383 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1384 | { (exit 1); exit 1; }; } | |
1385 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1387 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1388 | { (exit 1); exit 1; }; } | |
1389 | ||
1390 | fi | |
1391 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1392 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1393 | build=$ac_cv_build | |
1394 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1395 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1396 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1397 | ||
1398 | ||
1399 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1400 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1401 | if test "${ac_cv_host+set}" = set; then | |
1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1403 | else | |
1404 | ac_cv_host_alias=$host_alias | |
1405 | test -z "$ac_cv_host_alias" && | |
1406 | ac_cv_host_alias=$ac_cv_build_alias | |
1407 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1409 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1410 | { (exit 1); exit 1; }; } | |
1411 | ||
1412 | fi | |
1413 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1414 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1415 | host=$ac_cv_host | |
1416 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1417 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1418 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1419 | ||
1420 | ||
1421 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1422 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1423 | if test "${ac_cv_target+set}" = set; then | |
1424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1425 | else | |
1426 | ac_cv_target_alias=$target_alias | |
1427 | test "x$ac_cv_target_alias" = "x" && | |
1428 | ac_cv_target_alias=$ac_cv_host_alias | |
1429 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1430 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1431 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1432 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1433 | |
ad6254c5 AK |
1434 | fi |
1435 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1436 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1437 | target=$ac_cv_target | |
1438 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1439 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1440 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1441 | |
8ce0cbda | 1442 | |
ad6254c5 AK |
1443 | # The aliases save the names the user supplied, while $host etc. |
1444 | # will get canonicalized. | |
1445 | test -n "$target_alias" && | |
8ce0cbda AK |
1446 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1447 | NONENONEs,x,x, && | |
1448 | program_prefix=${target_alias}- | |
1449 | ||
8ce0cbda AK |
1450 | case "$host_os" in |
1451 | linux*) | |
1452 | CFLAGS="$CFLAGS" | |
1453 | COPTIMISE_FLAG="-O2" | |
1454 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1455 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1456 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1457 | LDDEPS="$LDDEPS .export.sym" | |
1458 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1459 | LIB_SUFFIX="so" |
8ce0cbda AK |
1460 | DEVMAPPER=yes |
1461 | ODIRECT=yes | |
1462 | SELINUX=yes | |
8b1a3214 | 1463 | REALTIME=yes |
8ce0cbda AK |
1464 | CLUSTER=internal |
1465 | FSADM=no ;; | |
1466 | darwin*) | |
1467 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1468 | COPTIMISE_FLAG="-O2" | |
1469 | CLDFLAGS="$CLDFLAGS" | |
1470 | CLDWHOLEARCHIVE="-all_load" | |
1471 | CLDNOWHOLEARCHIVE= | |
1472 | LDDEPS="$LDDEPS" | |
1473 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1474 | LIB_SUFFIX="dylib" |
a653923f | 1475 | DEVMAPPER=yes |
8ce0cbda AK |
1476 | ODIRECT=no |
1477 | SELINUX=no | |
8b1a3214 | 1478 | REALTIME=no |
8ce0cbda AK |
1479 | CLUSTER=none |
1480 | FSADM=no ;; | |
1481 | esac | |
1482 | ||
80992638 | 1483 | ################################################################################ |
ad6254c5 | 1484 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1485 | do |
ad6254c5 | 1486 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1487 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1490 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1492 | else |
1493 | if test -n "$AWK"; then | |
1494 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1495 | else | |
ad6254c5 AK |
1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1497 | for as_dir in $PATH | |
1498 | do | |
1499 | IFS=$as_save_IFS | |
1500 | test -z "$as_dir" && as_dir=. | |
1501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1503 | ac_cv_prog_AWK="$ac_prog" | |
1504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1505 | break 2 | |
1506 | fi | |
1507 | done | |
1508 | done | |
1509 | ||
795ca3e5 AK |
1510 | fi |
1511 | fi | |
ad6254c5 | 1512 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1513 | if test -n "$AWK"; then |
ad6254c5 AK |
1514 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1515 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1516 | else |
ad6254c5 AK |
1517 | echo "$as_me:$LINENO: result: no" >&5 |
1518 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1519 | fi |
1520 | ||
ad6254c5 AK |
1521 | test -n "$AWK" && break |
1522 | done | |
1523 | ||
1524 | ac_ext=c | |
1525 | ac_cpp='$CPP $CPPFLAGS' | |
1526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1529 | if test -n "$ac_tool_prefix"; then | |
1530 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1531 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1534 | if test "${ac_cv_prog_CC+set}" = set; then | |
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1536 | else | |
1537 | if test -n "$CC"; then | |
1538 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1539 | else | |
1540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1541 | for as_dir in $PATH | |
1542 | do | |
1543 | IFS=$as_save_IFS | |
1544 | test -z "$as_dir" && as_dir=. | |
1545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1547 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1549 | break 2 | |
1550 | fi | |
1551 | done | |
8106cdd5 AK |
1552 | done |
1553 | ||
ad6254c5 AK |
1554 | fi |
1555 | fi | |
1556 | CC=$ac_cv_prog_CC | |
1557 | if test -n "$CC"; then | |
1558 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1559 | echo "${ECHO_T}$CC" >&6 | |
1560 | else | |
1561 | echo "$as_me:$LINENO: result: no" >&5 | |
1562 | echo "${ECHO_T}no" >&6 | |
1563 | fi | |
1564 | ||
1565 | fi | |
1566 | if test -z "$ac_cv_prog_CC"; then | |
1567 | ac_ct_CC=$CC | |
1568 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1569 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1572 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1574 | else | |
1575 | if test -n "$ac_ct_CC"; then | |
1576 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1577 | else | |
1578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1579 | for as_dir in $PATH | |
1580 | do | |
1581 | IFS=$as_save_IFS | |
1582 | test -z "$as_dir" && as_dir=. | |
1583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1585 | ac_cv_prog_ac_ct_CC="gcc" | |
1586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1587 | break 2 | |
1588 | fi | |
1589 | done | |
1590 | done | |
1591 | ||
1592 | fi | |
1593 | fi | |
1594 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1595 | if test -n "$ac_ct_CC"; then | |
1596 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1597 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1598 | else | |
1599 | echo "$as_me:$LINENO: result: no" >&5 | |
1600 | echo "${ECHO_T}no" >&6 | |
1601 | fi | |
1602 | ||
1603 | CC=$ac_ct_CC | |
1604 | else | |
1605 | CC="$ac_cv_prog_CC" | |
1606 | fi | |
1607 | ||
1608 | if test -z "$CC"; then | |
1609 | if test -n "$ac_tool_prefix"; then | |
1610 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1611 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1614 | if test "${ac_cv_prog_CC+set}" = set; then | |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1616 | else |
1617 | if test -n "$CC"; then | |
1618 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1619 | else | |
ad6254c5 AK |
1620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1621 | for as_dir in $PATH | |
1622 | do | |
1623 | IFS=$as_save_IFS | |
1624 | test -z "$as_dir" && as_dir=. | |
1625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1627 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1629 | break 2 | |
1630 | fi | |
1631 | done | |
1632 | done | |
1633 | ||
8106cdd5 AK |
1634 | fi |
1635 | fi | |
ad6254c5 | 1636 | CC=$ac_cv_prog_CC |
8106cdd5 | 1637 | if test -n "$CC"; then |
ad6254c5 AK |
1638 | echo "$as_me:$LINENO: result: $CC" >&5 |
1639 | echo "${ECHO_T}$CC" >&6 | |
1640 | else | |
1641 | echo "$as_me:$LINENO: result: no" >&5 | |
1642 | echo "${ECHO_T}no" >&6 | |
1643 | fi | |
1644 | ||
1645 | fi | |
1646 | if test -z "$ac_cv_prog_CC"; then | |
1647 | ac_ct_CC=$CC | |
1648 | # Extract the first word of "cc", so it can be a program name with args. | |
1649 | set dummy cc; ac_word=$2 | |
1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1654 | else | |
1655 | if test -n "$ac_ct_CC"; then | |
1656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1657 | else | |
1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1659 | for as_dir in $PATH | |
1660 | do | |
1661 | IFS=$as_save_IFS | |
1662 | test -z "$as_dir" && as_dir=. | |
1663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1665 | ac_cv_prog_ac_ct_CC="cc" | |
1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1667 | break 2 | |
1668 | fi | |
1669 | done | |
1670 | done | |
1671 | ||
1672 | fi | |
1673 | fi | |
1674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1675 | if test -n "$ac_ct_CC"; then | |
1676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1677 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1678 | else | |
1679 | echo "$as_me:$LINENO: result: no" >&5 | |
1680 | echo "${ECHO_T}no" >&6 | |
1681 | fi | |
1682 | ||
1683 | CC=$ac_ct_CC | |
8106cdd5 | 1684 | else |
ad6254c5 | 1685 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1686 | fi |
1687 | ||
ad6254c5 | 1688 | fi |
795ca3e5 AK |
1689 | if test -z "$CC"; then |
1690 | # Extract the first word of "cc", so it can be a program name with args. | |
1691 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1694 | if test "${ac_cv_prog_CC+set}" = set; then | |
1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1696 | else |
1697 | if test -n "$CC"; then | |
1698 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1699 | else | |
795ca3e5 | 1700 | ac_prog_rejected=no |
ad6254c5 AK |
1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1702 | for as_dir in $PATH | |
1703 | do | |
1704 | IFS=$as_save_IFS | |
1705 | test -z "$as_dir" && as_dir=. | |
1706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1708 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1709 | ac_prog_rejected=yes | |
1710 | continue | |
1711 | fi | |
1712 | ac_cv_prog_CC="cc" | |
1713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1714 | break 2 | |
1715 | fi | |
1716 | done | |
1717 | done | |
1718 | ||
795ca3e5 AK |
1719 | if test $ac_prog_rejected = yes; then |
1720 | # We found a bogon in the path, so make sure we never use it. | |
1721 | set dummy $ac_cv_prog_CC | |
1722 | shift | |
ad6254c5 | 1723 | if test $# != 0; then |
795ca3e5 AK |
1724 | # We chose a different compiler from the bogus one. |
1725 | # However, it has the same basename, so the bogon will be chosen | |
1726 | # first if we set CC to just the basename; use the full file name. | |
1727 | shift | |
ad6254c5 | 1728 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1729 | fi |
1730 | fi | |
1731 | fi | |
1732 | fi | |
ad6254c5 | 1733 | CC=$ac_cv_prog_CC |
795ca3e5 | 1734 | if test -n "$CC"; then |
ad6254c5 AK |
1735 | echo "$as_me:$LINENO: result: $CC" >&5 |
1736 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1737 | else |
ad6254c5 AK |
1738 | echo "$as_me:$LINENO: result: no" >&5 |
1739 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1740 | fi |
1741 | ||
ad6254c5 AK |
1742 | fi |
1743 | if test -z "$CC"; then | |
1744 | if test -n "$ac_tool_prefix"; then | |
1745 | for ac_prog in cl | |
1746 | do | |
1747 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1748 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1751 | if test "${ac_cv_prog_CC+set}" = set; then | |
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1753 | else |
1754 | if test -n "$CC"; then | |
1755 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1756 | else | |
ad6254c5 AK |
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1758 | for as_dir in $PATH | |
1759 | do | |
1760 | IFS=$as_save_IFS | |
1761 | test -z "$as_dir" && as_dir=. | |
1762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1764 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1766 | break 2 | |
1767 | fi | |
1768 | done | |
1769 | done | |
1770 | ||
795ca3e5 AK |
1771 | fi |
1772 | fi | |
ad6254c5 | 1773 | CC=$ac_cv_prog_CC |
795ca3e5 | 1774 | if test -n "$CC"; then |
ad6254c5 AK |
1775 | echo "$as_me:$LINENO: result: $CC" >&5 |
1776 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1777 | else |
ad6254c5 AK |
1778 | echo "$as_me:$LINENO: result: no" >&5 |
1779 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1780 | fi |
ad6254c5 AK |
1781 | |
1782 | test -n "$CC" && break | |
1783 | done | |
1784 | fi | |
1785 | if test -z "$CC"; then | |
1786 | ac_ct_CC=$CC | |
1787 | for ac_prog in cl | |
1788 | do | |
1789 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1790 | set dummy $ac_prog; ac_word=$2 | |
1791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1795 | else | |
1796 | if test -n "$ac_ct_CC"; then | |
1797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1798 | else | |
1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1800 | for as_dir in $PATH | |
1801 | do | |
1802 | IFS=$as_save_IFS | |
1803 | test -z "$as_dir" && as_dir=. | |
1804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1806 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1808 | break 2 | |
795ca3e5 | 1809 | fi |
ad6254c5 AK |
1810 | done |
1811 | done | |
1812 | ||
1813 | fi | |
1814 | fi | |
1815 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1816 | if test -n "$ac_ct_CC"; then | |
1817 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1818 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1819 | else | |
1820 | echo "$as_me:$LINENO: result: no" >&5 | |
1821 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1822 | fi |
1823 | ||
ad6254c5 AK |
1824 | test -n "$ac_ct_CC" && break |
1825 | done | |
795ca3e5 | 1826 | |
ad6254c5 AK |
1827 | CC=$ac_ct_CC |
1828 | fi | |
1829 | ||
1830 | fi | |
1831 | ||
1832 | ||
1833 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1834 | See \`config.log' for more details." >&5 | |
1835 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1836 | See \`config.log' for more details." >&2;} | |
1837 | { (exit 1); exit 1; }; } | |
1838 | ||
1839 | # Provide some information about the compiler. | |
1840 | echo "$as_me:$LINENO:" \ | |
1841 | "checking for C compiler version" >&5 | |
1842 | ac_compiler=`set X $ac_compile; echo $2` | |
1843 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1844 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1845 | ac_status=$? | |
1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1847 | (exit $ac_status); } | |
1848 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1849 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1850 | ac_status=$? | |
1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1852 | (exit $ac_status); } | |
1853 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1854 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1855 | ac_status=$? | |
1856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1857 | (exit $ac_status); } | |
1858 | ||
1859 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
1860 | /* confdefs.h. */ |
1861 | _ACEOF | |
1862 | cat confdefs.h >>conftest.$ac_ext | |
1863 | cat >>conftest.$ac_ext <<_ACEOF | |
1864 | /* end confdefs.h. */ | |
1865 | ||
1866 | int | |
1867 | main () | |
1868 | { | |
1869 | ||
1870 | ; | |
1871 | return 0; | |
1872 | } | |
1873 | _ACEOF | |
1874 | ac_clean_files_save=$ac_clean_files | |
1875 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1876 | # Try to create an executable without -o first, disregard a.out. | |
1877 | # It will help us diagnose broken compilers, and finding out an intuition | |
1878 | # of exeext. | |
8a2fc586 AK |
1879 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1880 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ad6254c5 AK |
1881 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1882 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1883 | (eval $ac_link_default) 2>&5 | |
1884 | ac_status=$? | |
1885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1886 | (exit $ac_status); }; then | |
1887 | # Find the output, starting from the most likely. This scheme is | |
1888 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1889 | # resort. | |
1890 | ||
1891 | # Be careful to initialize this variable, since it used to be cached. | |
1892 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1893 | ac_cv_exeext= | |
1894 | # b.out is created by i960 compilers. | |
1895 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1896 | do | |
1897 | test -f "$ac_file" || continue | |
1898 | case $ac_file in | |
1899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
8a2fc586 | 1900 | ;; |
ad6254c5 | 1901 | conftest.$ac_ext ) |
8a2fc586 AK |
1902 | # This is the source file. |
1903 | ;; | |
ad6254c5 | 1904 | [ab].out ) |
8a2fc586 AK |
1905 | # We found the default executable, but exeext='' is most |
1906 | # certainly right. | |
1907 | break;; | |
ad6254c5 | 1908 | *.* ) |
8a2fc586 AK |
1909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1910 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1911 | # but it would be cool to find out if it's true. Does anybody | |
1912 | # maintain Libtool? --akim. | |
1913 | export ac_cv_exeext | |
1914 | break;; | |
ad6254c5 | 1915 | * ) |
8a2fc586 | 1916 | break;; |
ad6254c5 AK |
1917 | esac |
1918 | done | |
1919 | else | |
1920 | echo "$as_me: failed program was:" >&5 | |
1921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1922 | ||
1923 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1924 | See \`config.log' for more details." >&5 | |
1925 | echo "$as_me: error: C compiler cannot create executables | |
1926 | See \`config.log' for more details." >&2;} | |
1927 | { (exit 77); exit 77; }; } | |
1928 | fi | |
1929 | ||
1930 | ac_exeext=$ac_cv_exeext | |
1931 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1932 | echo "${ECHO_T}$ac_file" >&6 | |
1933 | ||
1934 | # Check the compiler produces executables we can run. If not, either | |
1935 | # the compiler is broken, or we cross compile. | |
1936 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1937 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1938 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1939 | # If not cross compiling, check that we can run a simple program. | |
1940 | if test "$cross_compiling" != yes; then | |
1941 | if { ac_try='./$ac_file' | |
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1943 | (eval $ac_try) 2>&5 | |
1944 | ac_status=$? | |
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1946 | (exit $ac_status); }; }; then | |
1947 | cross_compiling=no | |
795ca3e5 | 1948 | else |
ad6254c5 AK |
1949 | if test "$cross_compiling" = maybe; then |
1950 | cross_compiling=yes | |
1951 | else | |
1952 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1953 | If you meant to cross compile, use \`--host'. | |
1954 | See \`config.log' for more details." >&5 | |
1955 | echo "$as_me: error: cannot run C compiled programs. | |
1956 | If you meant to cross compile, use \`--host'. | |
1957 | See \`config.log' for more details." >&2;} | |
1958 | { (exit 1); exit 1; }; } | |
1959 | fi | |
795ca3e5 | 1960 | fi |
80992638 | 1961 | fi |
ad6254c5 AK |
1962 | echo "$as_me:$LINENO: result: yes" >&5 |
1963 | echo "${ECHO_T}yes" >&6 | |
1964 | ||
1965 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1966 | ac_clean_files=$ac_clean_files_save | |
1967 | # Check the compiler produces executables we can run. If not, either | |
1968 | # the compiler is broken, or we cross compile. | |
1969 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1970 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1971 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1972 | echo "${ECHO_T}$cross_compiling" >&6 | |
1973 | ||
1974 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1975 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1977 | (eval $ac_link) 2>&5 | |
1978 | ac_status=$? | |
1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1980 | (exit $ac_status); }; then | |
1981 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1982 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1983 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1984 | # `rm'. | |
1985 | for ac_file in conftest.exe conftest conftest.*; do | |
1986 | test -f "$ac_file" || continue | |
1987 | case $ac_file in | |
1988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1989 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
8a2fc586 AK |
1990 | export ac_cv_exeext |
1991 | break;; | |
ad6254c5 AK |
1992 | * ) break;; |
1993 | esac | |
1994 | done | |
80992638 | 1995 | else |
ad6254c5 AK |
1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1997 | See \`config.log' for more details." >&5 | |
1998 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1999 | See \`config.log' for more details." >&2;} | |
2000 | { (exit 1); exit 1; }; } | |
2001 | fi | |
2002 | ||
2003 | rm -f conftest$ac_cv_exeext | |
2004 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2005 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2006 | ||
2007 | rm -f conftest.$ac_ext | |
2008 | EXEEXT=$ac_cv_exeext | |
2009 | ac_exeext=$EXEEXT | |
2010 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2011 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2012 | if test "${ac_cv_objext+set}" = set; then | |
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2014 | else |
ad6254c5 | 2015 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2016 | /* confdefs.h. */ |
2017 | _ACEOF | |
2018 | cat confdefs.h >>conftest.$ac_ext | |
2019 | cat >>conftest.$ac_ext <<_ACEOF | |
2020 | /* end confdefs.h. */ | |
2021 | ||
2022 | int | |
2023 | main () | |
2024 | { | |
2025 | ||
2026 | ; | |
2027 | return 0; | |
2028 | } | |
2029 | _ACEOF | |
2030 | rm -f conftest.o conftest.obj | |
2031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2032 | (eval $ac_compile) 2>&5 | |
2033 | ac_status=$? | |
2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2035 | (exit $ac_status); }; then | |
2036 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2037 | case $ac_file in | |
2038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2040 | break;; | |
2041 | esac | |
2042 | done | |
2043 | else | |
2044 | echo "$as_me: failed program was:" >&5 | |
2045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2046 | ||
2047 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2048 | See \`config.log' for more details." >&5 | |
2049 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2050 | See \`config.log' for more details." >&2;} | |
2051 | { (exit 1); exit 1; }; } | |
2052 | fi | |
2053 | ||
2054 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2055 | fi | |
2056 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2057 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2058 | OBJEXT=$ac_cv_objext | |
2059 | ac_objext=$OBJEXT | |
2060 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2061 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2062 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2064 | else | |
2065 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2066 | /* confdefs.h. */ |
2067 | _ACEOF | |
2068 | cat confdefs.h >>conftest.$ac_ext | |
2069 | cat >>conftest.$ac_ext <<_ACEOF | |
2070 | /* end confdefs.h. */ | |
2071 | ||
2072 | int | |
2073 | main () | |
2074 | { | |
2075 | #ifndef __GNUC__ | |
2076 | choke me | |
2077 | #endif | |
80992638 | 2078 | |
ad6254c5 AK |
2079 | ; |
2080 | return 0; | |
2081 | } | |
2082 | _ACEOF | |
2083 | rm -f conftest.$ac_objext | |
2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2085 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2086 | ac_status=$? |
8a2fc586 AK |
2087 | grep -v '^ *+' conftest.er1 >conftest.err |
2088 | rm -f conftest.er1 | |
2089 | cat conftest.err >&5 | |
ad6254c5 AK |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2091 | (exit $ac_status); } && | |
8a2fc586 AK |
2092 | { ac_try='test -z "$ac_c_werror_flag" |
2093 | || test ! -s conftest.err' | |
2094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2095 | (eval $ac_try) 2>&5 | |
2096 | ac_status=$? | |
2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2098 | (exit $ac_status); }; } && | |
2099 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2101 | (eval $ac_try) 2>&5 | |
2102 | ac_status=$? | |
2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2104 | (exit $ac_status); }; }; then | |
2105 | ac_compiler_gnu=yes | |
80992638 | 2106 | else |
ad6254c5 AK |
2107 | echo "$as_me: failed program was:" >&5 |
2108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2109 | ||
2110 | ac_compiler_gnu=no | |
8106cdd5 | 2111 | fi |
8a2fc586 | 2112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2113 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2114 | |
ad6254c5 AK |
2115 | fi |
2116 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2117 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2118 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2119 | ac_test_CFLAGS=${CFLAGS+set} | |
2120 | ac_save_CFLAGS=$CFLAGS | |
2121 | CFLAGS="-g" | |
2122 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2123 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2124 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2126 | else |
ad6254c5 | 2127 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2128 | /* confdefs.h. */ |
2129 | _ACEOF | |
2130 | cat confdefs.h >>conftest.$ac_ext | |
2131 | cat >>conftest.$ac_ext <<_ACEOF | |
2132 | /* end confdefs.h. */ | |
2133 | ||
2134 | int | |
2135 | main () | |
2136 | { | |
2137 | ||
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | rm -f conftest.$ac_objext | |
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2144 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2145 | ac_status=$? |
8a2fc586 AK |
2146 | grep -v '^ *+' conftest.er1 >conftest.err |
2147 | rm -f conftest.er1 | |
2148 | cat conftest.err >&5 | |
ad6254c5 AK |
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2150 | (exit $ac_status); } && | |
8a2fc586 AK |
2151 | { ac_try='test -z "$ac_c_werror_flag" |
2152 | || test ! -s conftest.err' | |
2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2154 | (eval $ac_try) 2>&5 | |
2155 | ac_status=$? | |
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2157 | (exit $ac_status); }; } && | |
2158 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2160 | (eval $ac_try) 2>&5 | |
2161 | ac_status=$? | |
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2163 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2164 | ac_cv_prog_cc_g=yes |
2165 | else | |
ad6254c5 AK |
2166 | echo "$as_me: failed program was:" >&5 |
2167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2168 | |
ad6254c5 | 2169 | ac_cv_prog_cc_g=no |
8106cdd5 | 2170 | fi |
8a2fc586 | 2171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2172 | fi |
2173 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2174 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2175 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2176 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2177 | elif test $ac_cv_prog_cc_g = yes; then |
2178 | if test "$GCC" = yes; then | |
2179 | CFLAGS="-g -O2" | |
2180 | else | |
2181 | CFLAGS="-g" | |
2182 | fi | |
2183 | else | |
2184 | if test "$GCC" = yes; then | |
2185 | CFLAGS="-O2" | |
2186 | else | |
2187 | CFLAGS= | |
2188 | fi | |
2189 | fi | |
ad6254c5 AK |
2190 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2191 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2192 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2194 | else | |
2195 | ac_cv_prog_cc_stdc=no | |
2196 | ac_save_CC=$CC | |
2197 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2198 | /* confdefs.h. */ |
2199 | _ACEOF | |
2200 | cat confdefs.h >>conftest.$ac_ext | |
2201 | cat >>conftest.$ac_ext <<_ACEOF | |
2202 | /* end confdefs.h. */ | |
2203 | #include <stdarg.h> | |
2204 | #include <stdio.h> | |
2205 | #include <sys/types.h> | |
2206 | #include <sys/stat.h> | |
2207 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2208 | struct buf { int x; }; | |
2209 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2210 | static char *e (p, i) | |
2211 | char **p; | |
2212 | int i; | |
2213 | { | |
2214 | return p[i]; | |
2215 | } | |
2216 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2217 | { | |
2218 | char *s; | |
2219 | va_list v; | |
2220 | va_start (v,p); | |
2221 | s = g (p, va_arg (v,int)); | |
2222 | va_end (v); | |
2223 | return s; | |
2224 | } | |
8a2fc586 AK |
2225 | |
2226 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2227 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2228 | These don't provoke an error unfortunately, instead are silently treated | |
2229 | as 'x'. The following induces an error, until -std1 is added to get | |
2230 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2231 | array size at least. It's necessary to write '\x00'==0 to get something | |
2232 | that's true only with -std1. */ | |
2233 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2234 | ||
ad6254c5 AK |
2235 | int test (int i, double x); |
2236 | struct s1 {int (*f) (int a);}; | |
2237 | struct s2 {int (*f) (double a);}; | |
2238 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2239 | int argc; | |
2240 | char **argv; | |
2241 | int | |
2242 | main () | |
2243 | { | |
2244 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2245 | ; | |
2246 | return 0; | |
2247 | } | |
2248 | _ACEOF | |
2249 | # Don't try gcc -ansi; that turns off useful extensions and | |
2250 | # breaks some systems' header files. | |
2251 | # AIX -qlanglvl=ansi | |
2252 | # Ultrix and OSF/1 -std1 | |
2253 | # HP-UX 10.20 and later -Ae | |
2254 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2255 | # SVR4 -Xc -D__EXTENSIONS__ | |
2256 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2257 | do | |
2258 | CC="$ac_save_CC $ac_arg" | |
2259 | rm -f conftest.$ac_objext | |
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2261 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2262 | ac_status=$? |
8a2fc586 AK |
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
2264 | rm -f conftest.er1 | |
2265 | cat conftest.err >&5 | |
ad6254c5 AK |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2267 | (exit $ac_status); } && | |
8a2fc586 AK |
2268 | { ac_try='test -z "$ac_c_werror_flag" |
2269 | || test ! -s conftest.err' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; } && | |
2275 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2277 | (eval $ac_try) 2>&5 | |
2278 | ac_status=$? | |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2280 | (exit $ac_status); }; }; then | |
2281 | ac_cv_prog_cc_stdc=$ac_arg | |
2282 | break | |
2283 | else | |
2284 | echo "$as_me: failed program was:" >&5 | |
2285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2286 | ||
2287 | fi | |
8a2fc586 | 2288 | rm -f conftest.err conftest.$ac_objext |
ad6254c5 AK |
2289 | done |
2290 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2291 | CC=$ac_save_CC | |
2292 | ||
2293 | fi | |
2294 | ||
2295 | case "x$ac_cv_prog_cc_stdc" in | |
2296 | x|xno) | |
2297 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2298 | echo "${ECHO_T}none needed" >&6 ;; | |
2299 | *) | |
2300 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2301 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2302 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2303 | esac | |
2304 | ||
2305 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2306 | # in C++ we need to declare it. In case someone uses the same compiler | |
2307 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2308 | # the declaration of exit, since it's the most demanding environment. | |
2309 | cat >conftest.$ac_ext <<_ACEOF | |
2310 | #ifndef __cplusplus | |
2311 | choke me | |
2312 | #endif | |
2313 | _ACEOF | |
2314 | rm -f conftest.$ac_objext | |
2315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2316 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2317 | ac_status=$? |
8a2fc586 AK |
2318 | grep -v '^ *+' conftest.er1 >conftest.err |
2319 | rm -f conftest.er1 | |
2320 | cat conftest.err >&5 | |
ad6254c5 AK |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2322 | (exit $ac_status); } && | |
8a2fc586 AK |
2323 | { ac_try='test -z "$ac_c_werror_flag" |
2324 | || test ! -s conftest.err' | |
2325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2326 | (eval $ac_try) 2>&5 | |
2327 | ac_status=$? | |
2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 | (exit $ac_status); }; } && | |
2330 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2332 | (eval $ac_try) 2>&5 | |
2333 | ac_status=$? | |
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2335 | (exit $ac_status); }; }; then | |
2336 | for ac_declaration in \ | |
8a2fc586 | 2337 | '' \ |
ad6254c5 AK |
2338 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2339 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2340 | 'extern "C" void exit (int) throw ();' \ | |
2341 | 'extern "C" void exit (int);' \ | |
2342 | 'void exit (int);' | |
2343 | do | |
2344 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2345 | /* confdefs.h. */ |
2346 | _ACEOF | |
2347 | cat confdefs.h >>conftest.$ac_ext | |
2348 | cat >>conftest.$ac_ext <<_ACEOF | |
2349 | /* end confdefs.h. */ | |
c1c065a3 | 2350 | $ac_declaration |
8a2fc586 | 2351 | #include <stdlib.h> |
ad6254c5 AK |
2352 | int |
2353 | main () | |
2354 | { | |
2355 | exit (42); | |
2356 | ; | |
2357 | return 0; | |
2358 | } | |
2359 | _ACEOF | |
2360 | rm -f conftest.$ac_objext | |
2361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2362 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2363 | ac_status=$? |
8a2fc586 AK |
2364 | grep -v '^ *+' conftest.er1 >conftest.err |
2365 | rm -f conftest.er1 | |
2366 | cat conftest.err >&5 | |
ad6254c5 AK |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2368 | (exit $ac_status); } && | |
8a2fc586 AK |
2369 | { ac_try='test -z "$ac_c_werror_flag" |
2370 | || test ! -s conftest.err' | |
2371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2372 | (eval $ac_try) 2>&5 | |
2373 | ac_status=$? | |
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2375 | (exit $ac_status); }; } && | |
2376 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2378 | (eval $ac_try) 2>&5 | |
2379 | ac_status=$? | |
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2381 | (exit $ac_status); }; }; then | |
2382 | : | |
2383 | else | |
2384 | echo "$as_me: failed program was:" >&5 | |
2385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2386 | ||
2387 | continue | |
2388 | fi | |
8a2fc586 | 2389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2390 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2391 | /* confdefs.h. */ |
2392 | _ACEOF | |
2393 | cat confdefs.h >>conftest.$ac_ext | |
2394 | cat >>conftest.$ac_ext <<_ACEOF | |
2395 | /* end confdefs.h. */ | |
2396 | $ac_declaration | |
2397 | int | |
2398 | main () | |
2399 | { | |
2400 | exit (42); | |
2401 | ; | |
2402 | return 0; | |
2403 | } | |
2404 | _ACEOF | |
2405 | rm -f conftest.$ac_objext | |
2406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2407 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2408 | ac_status=$? |
8a2fc586 AK |
2409 | grep -v '^ *+' conftest.er1 >conftest.err |
2410 | rm -f conftest.er1 | |
2411 | cat conftest.err >&5 | |
ad6254c5 AK |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2413 | (exit $ac_status); } && | |
8a2fc586 AK |
2414 | { ac_try='test -z "$ac_c_werror_flag" |
2415 | || test ! -s conftest.err' | |
2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2417 | (eval $ac_try) 2>&5 | |
2418 | ac_status=$? | |
2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2420 | (exit $ac_status); }; } && | |
2421 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2423 | (eval $ac_try) 2>&5 | |
2424 | ac_status=$? | |
2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2426 | (exit $ac_status); }; }; then | |
2427 | break | |
2428 | else | |
2429 | echo "$as_me: failed program was:" >&5 | |
2430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2431 | ||
2432 | fi | |
8a2fc586 | 2433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2434 | done |
2435 | rm -f conftest* | |
2436 | if test -n "$ac_declaration"; then | |
2437 | echo '#ifdef __cplusplus' >>confdefs.h | |
2438 | echo $ac_declaration >>confdefs.h | |
2439 | echo '#endif' >>confdefs.h | |
2440 | fi | |
2441 | ||
2442 | else | |
2443 | echo "$as_me: failed program was:" >&5 | |
2444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2445 | ||
2446 | fi | |
8a2fc586 | 2447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2448 | ac_ext=c |
2449 | ac_cpp='$CPP $CPPFLAGS' | |
2450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2453 | |
2454 | # Find a good install program. We prefer a C program (faster), | |
2455 | # so one script is as good as another. But avoid the broken or | |
2456 | # incompatible versions: | |
2457 | # SysV /etc/install, /usr/sbin/install | |
2458 | # SunOS /usr/etc/install | |
2459 | # IRIX /sbin/install | |
2460 | # AIX /bin/install | |
ad6254c5 | 2461 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2462 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2463 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2464 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2465 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2466 | # ./install, which can be erroneously created by make from ./install.sh. |
ad6254c5 AK |
2467 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2468 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2469 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2470 | if test "${ac_cv_path_install+set}" = set; then |
2471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2472 | else | |
2473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2474 | for as_dir in $PATH | |
2475 | do | |
2476 | IFS=$as_save_IFS | |
2477 | test -z "$as_dir" && as_dir=. | |
2478 | # Account for people who put trailing slashes in PATH elements. | |
2479 | case $as_dir/ in | |
2480 | ./ | .// | /cC/* | \ | |
2481 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 2482 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2483 | /usr/ucb/* ) ;; |
2484 | *) | |
2485 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2486 | # Don't use installbsd from OSF since it installs stuff as root | |
2487 | # by default. | |
2488 | for ac_prog in ginstall scoinst install; do | |
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a2fc586 AK |
2490 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2491 | if test $ac_prog = install && | |
2492 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2493 | # AIX install. It has an incompatible calling convention. | |
2494 | : | |
2495 | elif test $ac_prog = install && | |
2496 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2497 | # program-specific install script used by HP pwplus--don't use. | |
2498 | : | |
2499 | else | |
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2501 | break 3 | |
2502 | fi | |
2503 | fi | |
795ca3e5 | 2504 | done |
ad6254c5 AK |
2505 | done |
2506 | ;; | |
2507 | esac | |
2508 | done | |
2509 | ||
795ca3e5 AK |
2510 | |
2511 | fi | |
2512 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2513 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2514 | else |
2515 | # As a last resort, use the slow shell script. We don't cache a | |
2516 | # path for INSTALL within a source directory, because that will | |
2517 | # break other packages using the cache if that directory is | |
2518 | # removed, or if the path is relative. | |
ad6254c5 | 2519 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2520 | fi |
2521 | fi | |
ad6254c5 AK |
2522 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2523 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2524 | |
2525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2526 | # It thinks the first close brace ends the variable substitution. | |
2527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2528 | ||
ad6254c5 | 2529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2530 | |
2531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2532 | ||
ad6254c5 AK |
2533 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2534 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2535 | LN_S=$as_ln_s | |
2536 | if test "$LN_S" = "ln -s"; then | |
2537 | echo "$as_me:$LINENO: result: yes" >&5 | |
2538 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2539 | else |
ad6254c5 AK |
2540 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2541 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2542 | fi |
2543 | ||
ad6254c5 AK |
2544 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2545 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8a2fc586 | 2546 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ad6254c5 AK |
2547 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2549 | else |
ad6254c5 | 2550 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2551 | all: |
ad6254c5 AK |
2552 | @echo 'ac_maketemp="$(MAKE)"' |
2553 | _ACEOF | |
795ca3e5 | 2554 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2555 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2556 | if test -n "$ac_maketemp"; then |
2557 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2558 | else | |
2559 | eval ac_cv_prog_make_${ac_make}_set=no | |
2560 | fi | |
ad6254c5 | 2561 | rm -f conftest.make |
795ca3e5 AK |
2562 | fi |
2563 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2564 | echo "$as_me:$LINENO: result: yes" >&5 |
2565 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2566 | SET_MAKE= |
2567 | else | |
ad6254c5 AK |
2568 | echo "$as_me:$LINENO: result: no" >&5 |
2569 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2570 | SET_MAKE="MAKE=${MAKE-make}" |
2571 | fi | |
2572 | ||
ad6254c5 AK |
2573 | if test -n "$ac_tool_prefix"; then |
2574 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2575 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2576 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2578 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2580 | else |
2581 | if test -n "$RANLIB"; then | |
2582 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2583 | else | |
ad6254c5 AK |
2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2585 | for as_dir in $PATH | |
2586 | do | |
2587 | IFS=$as_save_IFS | |
2588 | test -z "$as_dir" && as_dir=. | |
2589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2590 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2591 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2593 | break 2 | |
2594 | fi | |
2595 | done | |
2596 | done | |
2597 | ||
795ca3e5 AK |
2598 | fi |
2599 | fi | |
ad6254c5 | 2600 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2601 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2602 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2603 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2604 | else |
ad6254c5 AK |
2605 | echo "$as_me:$LINENO: result: no" >&5 |
2606 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2607 | fi |
2608 | ||
795ca3e5 | 2609 | fi |
ad6254c5 AK |
2610 | if test -z "$ac_cv_prog_RANLIB"; then |
2611 | ac_ct_RANLIB=$RANLIB | |
2612 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2613 | set dummy ranlib; ac_word=$2 | |
2614 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2616 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2618 | else |
ad6254c5 AK |
2619 | if test -n "$ac_ct_RANLIB"; then |
2620 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2621 | else | |
2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2623 | for as_dir in $PATH | |
2624 | do | |
2625 | IFS=$as_save_IFS | |
2626 | test -z "$as_dir" && as_dir=. | |
2627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2628 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2629 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2631 | break 2 | |
2632 | fi | |
2633 | done | |
795ca3e5 | 2634 | done |
8106cdd5 | 2635 | |
ad6254c5 | 2636 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2637 | fi |
80992638 | 2638 | fi |
ad6254c5 AK |
2639 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2640 | if test -n "$ac_ct_RANLIB"; then | |
2641 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2642 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2643 | else |
ad6254c5 AK |
2644 | echo "$as_me:$LINENO: result: no" >&5 |
2645 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2646 | fi |
8106cdd5 | 2647 | |
ad6254c5 | 2648 | RANLIB=$ac_ct_RANLIB |
80992638 | 2649 | else |
ad6254c5 | 2650 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2651 | fi |
795ca3e5 | 2652 | |
8a2fc586 AK |
2653 | # Extract the first word of "cflow", so it can be a program name with args. |
2654 | set dummy cflow; ac_word=$2 | |
2655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2657 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then | |
2658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2659 | else | |
2660 | case $CFLOW_CMD in | |
2661 | [\\/]* | ?:[\\/]*) | |
2662 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
2663 | ;; | |
2664 | *) | |
2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2666 | for as_dir in $PATH | |
2667 | do | |
2668 | IFS=$as_save_IFS | |
2669 | test -z "$as_dir" && as_dir=. | |
2670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2672 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2674 | break 2 | |
2675 | fi | |
2676 | done | |
2677 | done | |
2678 | ||
2679 | ;; | |
2680 | esac | |
2681 | fi | |
2682 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
2683 | ||
2684 | if test -n "$CFLOW_CMD"; then | |
2685 | echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 | |
2686 | echo "${ECHO_T}$CFLOW_CMD" >&6 | |
2687 | else | |
2688 | echo "$as_me:$LINENO: result: no" >&5 | |
2689 | echo "${ECHO_T}no" >&6 | |
2690 | fi | |
2691 | ||
2692 | # Extract the first word of "cscope", so it can be a program name with args. | |
2693 | set dummy cscope; ac_word=$2 | |
2694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2696 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then | |
2697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2698 | else | |
2699 | case $CSCOPE_CMD in | |
2700 | [\\/]* | ?:[\\/]*) | |
2701 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
2702 | ;; | |
2703 | *) | |
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2705 | for as_dir in $PATH | |
2706 | do | |
2707 | IFS=$as_save_IFS | |
2708 | test -z "$as_dir" && as_dir=. | |
2709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2711 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2713 | break 2 | |
2714 | fi | |
2715 | done | |
2716 | done | |
2717 | ||
2718 | ;; | |
2719 | esac | |
2720 | fi | |
2721 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
2722 | ||
2723 | if test -n "$CSCOPE_CMD"; then | |
2724 | echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 | |
2725 | echo "${ECHO_T}$CSCOPE_CMD" >&6 | |
2726 | else | |
2727 | echo "$as_me:$LINENO: result: no" >&5 | |
2728 | echo "${ECHO_T}no" >&6 | |
2729 | fi | |
2730 | ||
795ca3e5 | 2731 | |
ad6254c5 AK |
2732 | ################################################################################ |
2733 | ||
2734 | ||
2735 | ||
2736 | ||
2737 | ||
2738 | ||
2739 | ac_header_dirent=no | |
2740 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2741 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2742 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2743 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2746 | else |
ad6254c5 | 2747 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2748 | /* confdefs.h. */ |
2749 | _ACEOF | |
2750 | cat confdefs.h >>conftest.$ac_ext | |
2751 | cat >>conftest.$ac_ext <<_ACEOF | |
2752 | /* end confdefs.h. */ | |
2753 | #include <sys/types.h> | |
2754 | #include <$ac_hdr> | |
2755 | ||
2756 | int | |
2757 | main () | |
2758 | { | |
2759 | if ((DIR *) 0) | |
2760 | return 0; | |
2761 | ; | |
2762 | return 0; | |
2763 | } | |
2764 | _ACEOF | |
2765 | rm -f conftest.$ac_objext | |
2766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2767 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2768 | ac_status=$? |
8a2fc586 AK |
2769 | grep -v '^ *+' conftest.er1 >conftest.err |
2770 | rm -f conftest.er1 | |
2771 | cat conftest.err >&5 | |
ad6254c5 AK |
2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2773 | (exit $ac_status); } && | |
8a2fc586 AK |
2774 | { ac_try='test -z "$ac_c_werror_flag" |
2775 | || test ! -s conftest.err' | |
2776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2777 | (eval $ac_try) 2>&5 | |
2778 | ac_status=$? | |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2780 | (exit $ac_status); }; } && | |
2781 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2783 | (eval $ac_try) 2>&5 | |
2784 | ac_status=$? | |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 | (exit $ac_status); }; }; then | |
2787 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2788 | else |
ad6254c5 AK |
2789 | echo "$as_me: failed program was:" >&5 |
2790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2791 | ||
2792 | eval "$as_ac_Header=no" | |
795ca3e5 | 2793 | fi |
8a2fc586 | 2794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 2795 | fi |
ad6254c5 AK |
2796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2797 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2799 | cat >>confdefs.h <<_ACEOF | |
2800 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2801 | _ACEOF | |
2802 | ||
2803 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2804 | fi |
8106cdd5 | 2805 | |
ad6254c5 AK |
2806 | done |
2807 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2808 | if test $ac_header_dirent = dirent.h; then | |
2809 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2810 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2811 | if test "${ac_cv_search_opendir+set}" = set; then | |
2812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2813 | else |
ad6254c5 AK |
2814 | ac_func_search_save_LIBS=$LIBS |
2815 | ac_cv_search_opendir=no | |
2816 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2817 | /* confdefs.h. */ |
2818 | _ACEOF | |
2819 | cat confdefs.h >>conftest.$ac_ext | |
2820 | cat >>conftest.$ac_ext <<_ACEOF | |
2821 | /* end confdefs.h. */ | |
2822 | ||
2823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2824 | #ifdef __cplusplus | |
2825 | extern "C" | |
2826 | #endif | |
2827 | /* We use char because int might match the return type of a gcc2 | |
2828 | builtin and then its argument prototype would still apply. */ | |
2829 | char opendir (); | |
2830 | int | |
2831 | main () | |
2832 | { | |
2833 | opendir (); | |
2834 | ; | |
2835 | return 0; | |
2836 | } | |
2837 | _ACEOF | |
2838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2840 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2841 | ac_status=$? |
8a2fc586 AK |
2842 | grep -v '^ *+' conftest.er1 >conftest.err |
2843 | rm -f conftest.er1 | |
2844 | cat conftest.err >&5 | |
ad6254c5 AK |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2846 | (exit $ac_status); } && | |
8a2fc586 AK |
2847 | { ac_try='test -z "$ac_c_werror_flag" |
2848 | || test ! -s conftest.err' | |
2849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2850 | (eval $ac_try) 2>&5 | |
2851 | ac_status=$? | |
2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2853 | (exit $ac_status); }; } && | |
2854 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2856 | (eval $ac_try) 2>&5 | |
2857 | ac_status=$? | |
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2859 | (exit $ac_status); }; }; then | |
2860 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2861 | else |
ad6254c5 AK |
2862 | echo "$as_me: failed program was:" >&5 |
2863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2864 | ||
2865 | fi | |
8a2fc586 AK |
2866 | rm -f conftest.err conftest.$ac_objext \ |
2867 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2868 | if test "$ac_cv_search_opendir" = no; then |
2869 | for ac_lib in dir; do | |
2870 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2871 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2872 | /* confdefs.h. */ |
2873 | _ACEOF | |
2874 | cat confdefs.h >>conftest.$ac_ext | |
2875 | cat >>conftest.$ac_ext <<_ACEOF | |
2876 | /* end confdefs.h. */ | |
795ca3e5 | 2877 | |
ad6254c5 AK |
2878 | /* Override any gcc2 internal prototype to avoid an error. */ |
2879 | #ifdef __cplusplus | |
2880 | extern "C" | |
2881 | #endif | |
2882 | /* We use char because int might match the return type of a gcc2 | |
2883 | builtin and then its argument prototype would still apply. */ | |
2884 | char opendir (); | |
2885 | int | |
2886 | main () | |
2887 | { | |
2888 | opendir (); | |
2889 | ; | |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
2893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2895 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2896 | ac_status=$? |
8a2fc586 AK |
2897 | grep -v '^ *+' conftest.er1 >conftest.err |
2898 | rm -f conftest.er1 | |
2899 | cat conftest.err >&5 | |
ad6254c5 AK |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2901 | (exit $ac_status); } && | |
8a2fc586 AK |
2902 | { ac_try='test -z "$ac_c_werror_flag" |
2903 | || test ! -s conftest.err' | |
2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2905 | (eval $ac_try) 2>&5 | |
2906 | ac_status=$? | |
2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2908 | (exit $ac_status); }; } && | |
2909 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2911 | (eval $ac_try) 2>&5 | |
2912 | ac_status=$? | |
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2914 | (exit $ac_status); }; }; then | |
2915 | ac_cv_search_opendir="-l$ac_lib" | |
2916 | break | |
795ca3e5 | 2917 | else |
ad6254c5 AK |
2918 | echo "$as_me: failed program was:" >&5 |
2919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2920 | |
2921 | fi | |
8a2fc586 AK |
2922 | rm -f conftest.err conftest.$ac_objext \ |
2923 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2924 | done |
795ca3e5 | 2925 | fi |
ad6254c5 AK |
2926 | LIBS=$ac_func_search_save_LIBS |
2927 | fi | |
2928 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2929 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2930 | if test "$ac_cv_search_opendir" != no; then | |
2931 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2932 | |
2933 | fi | |
2934 | ||
795ca3e5 | 2935 | else |
ad6254c5 AK |
2936 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2937 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2938 | if test "${ac_cv_search_opendir+set}" = set; then | |
2939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2940 | else | |
2941 | ac_func_search_save_LIBS=$LIBS | |
2942 | ac_cv_search_opendir=no | |
2943 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2944 | /* confdefs.h. */ |
2945 | _ACEOF | |
2946 | cat confdefs.h >>conftest.$ac_ext | |
2947 | cat >>conftest.$ac_ext <<_ACEOF | |
2948 | /* end confdefs.h. */ | |
80992638 | 2949 | |
ad6254c5 AK |
2950 | /* Override any gcc2 internal prototype to avoid an error. */ |
2951 | #ifdef __cplusplus | |
2952 | extern "C" | |
2953 | #endif | |
2954 | /* We use char because int might match the return type of a gcc2 | |
2955 | builtin and then its argument prototype would still apply. */ | |
2956 | char opendir (); | |
2957 | int | |
2958 | main () | |
2959 | { | |
2960 | opendir (); | |
2961 | ; | |
2962 | return 0; | |
2963 | } | |
2964 | _ACEOF | |
2965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2967 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2968 | ac_status=$? |
8a2fc586 AK |
2969 | grep -v '^ *+' conftest.er1 >conftest.err |
2970 | rm -f conftest.er1 | |
2971 | cat conftest.err >&5 | |
ad6254c5 AK |
2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2973 | (exit $ac_status); } && | |
8a2fc586 AK |
2974 | { ac_try='test -z "$ac_c_werror_flag" |
2975 | || test ! -s conftest.err' | |
2976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2977 | (eval $ac_try) 2>&5 | |
2978 | ac_status=$? | |
2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2980 | (exit $ac_status); }; } && | |
2981 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2983 | (eval $ac_try) 2>&5 | |
2984 | ac_status=$? | |
2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2986 | (exit $ac_status); }; }; then | |
2987 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2988 | else |
ad6254c5 AK |
2989 | echo "$as_me: failed program was:" >&5 |
2990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2991 | ||
2992 | fi | |
8a2fc586 AK |
2993 | rm -f conftest.err conftest.$ac_objext \ |
2994 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2995 | if test "$ac_cv_search_opendir" = no; then |
2996 | for ac_lib in x; do | |
2997 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2998 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2999 | /* confdefs.h. */ |
3000 | _ACEOF | |
3001 | cat confdefs.h >>conftest.$ac_ext | |
3002 | cat >>conftest.$ac_ext <<_ACEOF | |
3003 | /* end confdefs.h. */ | |
3004 | ||
3005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3006 | #ifdef __cplusplus | |
3007 | extern "C" | |
3008 | #endif | |
3009 | /* We use char because int might match the return type of a gcc2 | |
3010 | builtin and then its argument prototype would still apply. */ | |
3011 | char opendir (); | |
3012 | int | |
3013 | main () | |
3014 | { | |
3015 | opendir (); | |
3016 | ; | |
3017 | return 0; | |
3018 | } | |
3019 | _ACEOF | |
3020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 3022 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 3023 | ac_status=$? |
8a2fc586 AK |
3024 | grep -v '^ *+' conftest.er1 >conftest.err |
3025 | rm -f conftest.er1 | |
3026 | cat conftest.err >&5 | |
ad6254c5 AK |
3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3028 | (exit $ac_status); } && | |
8a2fc586 AK |
3029 | { ac_try='test -z "$ac_c_werror_flag" |
3030 | || test ! -s conftest.err' | |
3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3032 | (eval $ac_try) 2>&5 | |
3033 | ac_status=$? | |
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3035 | (exit $ac_status); }; } && | |
3036 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
3037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3038 | (eval $ac_try) 2>&5 | |
3039 | ac_status=$? | |
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3041 | (exit $ac_status); }; }; then | |
3042 | ac_cv_search_opendir="-l$ac_lib" | |
3043 | break | |
3044 | else | |
3045 | echo "$as_me: failed program was:" >&5 | |
3046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 3047 | |
795ca3e5 | 3048 | fi |
8a2fc586 AK |
3049 | rm -f conftest.err conftest.$ac_objext \ |
3050 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
3051 | done |
3052 | fi | |
3053 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 3054 | fi |
ad6254c5 AK |
3055 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3056 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3057 | if test "$ac_cv_search_opendir" != no; then | |
3058 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 3059 | |
ad6254c5 | 3060 | fi |
8106cdd5 | 3061 | |
795ca3e5 | 3062 | fi |
8106cdd5 | 3063 | |
ad6254c5 AK |
3064 | ac_ext=c |
3065 | ac_cpp='$CPP $CPPFLAGS' | |
3066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3069 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3070 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3071 | # On Suns, sometimes $CPP names a directory. | |
3072 | if test -n "$CPP" && test -d "$CPP"; then | |
3073 | CPP= | |
3074 | fi | |
3075 | if test -z "$CPP"; then | |
3076 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3078 | else | |
3079 | # Double quotes because CPP needs to be expanded | |
3080 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3081 | do | |
3082 | ac_preproc_ok=false | |
3083 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3084 | do |
ad6254c5 AK |
3085 | # Use a header file that comes with gcc, so configuring glibc |
3086 | # with a fresh cross-compiler works. | |
3087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3088 | # <limits.h> exists even on freestanding compilers. | |
3089 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3090 | # not just through cpp. "Syntax error" is here to catch this case. | |
3091 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3092 | /* confdefs.h. */ |
3093 | _ACEOF | |
3094 | cat confdefs.h >>conftest.$ac_ext | |
3095 | cat >>conftest.$ac_ext <<_ACEOF | |
3096 | /* end confdefs.h. */ | |
3097 | #ifdef __STDC__ | |
3098 | # include <limits.h> | |
3099 | #else | |
3100 | # include <assert.h> | |
3101 | #endif | |
8a2fc586 | 3102 | Syntax error |
ad6254c5 AK |
3103 | _ACEOF |
3104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3106 | ac_status=$? | |
3107 | grep -v '^ *+' conftest.er1 >conftest.err | |
3108 | rm -f conftest.er1 | |
3109 | cat conftest.err >&5 | |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3111 | (exit $ac_status); } >/dev/null; then | |
3112 | if test -s conftest.err; then | |
3113 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3114 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3115 | else |
3116 | ac_cpp_err= | |
3117 | fi | |
3118 | else | |
3119 | ac_cpp_err=yes | |
8106cdd5 | 3120 | fi |
ad6254c5 AK |
3121 | if test -z "$ac_cpp_err"; then |
3122 | : | |
3123 | else | |
3124 | echo "$as_me: failed program was:" >&5 | |
3125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3126 | ||
3127 | # Broken: fails on valid input. | |
3128 | continue | |
3129 | fi | |
3130 | rm -f conftest.err conftest.$ac_ext | |
3131 | ||
3132 | # OK, works on sane cases. Now check whether non-existent headers | |
3133 | # can be detected and how. | |
3134 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3135 | /* confdefs.h. */ |
3136 | _ACEOF | |
3137 | cat confdefs.h >>conftest.$ac_ext | |
3138 | cat >>conftest.$ac_ext <<_ACEOF | |
3139 | /* end confdefs.h. */ | |
3140 | #include <ac_nonexistent.h> | |
3141 | _ACEOF | |
3142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3144 | ac_status=$? | |
3145 | grep -v '^ *+' conftest.er1 >conftest.err | |
3146 | rm -f conftest.er1 | |
3147 | cat conftest.err >&5 | |
3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3149 | (exit $ac_status); } >/dev/null; then | |
3150 | if test -s conftest.err; then | |
3151 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3152 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3153 | else |
3154 | ac_cpp_err= | |
3155 | fi | |
3156 | else | |
3157 | ac_cpp_err=yes | |
8106cdd5 | 3158 | fi |
ad6254c5 AK |
3159 | if test -z "$ac_cpp_err"; then |
3160 | # Broken: success on invalid input. | |
3161 | continue | |
80992638 | 3162 | else |
ad6254c5 AK |
3163 | echo "$as_me: failed program was:" >&5 |
3164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3165 | ||
3166 | # Passes both tests. | |
3167 | ac_preproc_ok=: | |
3168 | break | |
795ca3e5 | 3169 | fi |
ad6254c5 AK |
3170 | rm -f conftest.err conftest.$ac_ext |
3171 | ||
795ca3e5 | 3172 | done |
ad6254c5 AK |
3173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3174 | rm -f conftest.err conftest.$ac_ext | |
3175 | if $ac_preproc_ok; then | |
3176 | break | |
3177 | fi | |
795ca3e5 | 3178 | |
ad6254c5 AK |
3179 | done |
3180 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3181 | |
ad6254c5 AK |
3182 | fi |
3183 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3184 | else |
ad6254c5 | 3185 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3186 | fi |
ad6254c5 AK |
3187 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3188 | echo "${ECHO_T}$CPP" >&6 | |
3189 | ac_preproc_ok=false | |
3190 | for ac_c_preproc_warn_flag in '' yes | |
3191 | do | |
3192 | # Use a header file that comes with gcc, so configuring glibc | |
3193 | # with a fresh cross-compiler works. | |
3194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3195 | # <limits.h> exists even on freestanding compilers. | |
3196 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3197 | # not just through cpp. "Syntax error" is here to catch this case. | |
3198 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3199 | /* confdefs.h. */ |
3200 | _ACEOF | |
3201 | cat confdefs.h >>conftest.$ac_ext | |
3202 | cat >>conftest.$ac_ext <<_ACEOF | |
3203 | /* end confdefs.h. */ | |
3204 | #ifdef __STDC__ | |
3205 | # include <limits.h> | |
3206 | #else | |
3207 | # include <assert.h> | |
3208 | #endif | |
8a2fc586 | 3209 | Syntax error |
ad6254c5 AK |
3210 | _ACEOF |
3211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3213 | ac_status=$? | |
3214 | grep -v '^ *+' conftest.er1 >conftest.err | |
3215 | rm -f conftest.er1 | |
3216 | cat conftest.err >&5 | |
3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3218 | (exit $ac_status); } >/dev/null; then | |
3219 | if test -s conftest.err; then | |
3220 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3222 | else |
3223 | ac_cpp_err= | |
3224 | fi | |
3225 | else | |
3226 | ac_cpp_err=yes | |
795ca3e5 | 3227 | fi |
ad6254c5 AK |
3228 | if test -z "$ac_cpp_err"; then |
3229 | : | |
3230 | else | |
3231 | echo "$as_me: failed program was:" >&5 | |
3232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3233 | ||
3234 | # Broken: fails on valid input. | |
3235 | continue | |
3236 | fi | |
3237 | rm -f conftest.err conftest.$ac_ext | |
3238 | ||
3239 | # OK, works on sane cases. Now check whether non-existent headers | |
3240 | # can be detected and how. | |
3241 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3242 | /* confdefs.h. */ |
3243 | _ACEOF | |
3244 | cat confdefs.h >>conftest.$ac_ext | |
3245 | cat >>conftest.$ac_ext <<_ACEOF | |
3246 | /* end confdefs.h. */ | |
3247 | #include <ac_nonexistent.h> | |
3248 | _ACEOF | |
3249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3251 | ac_status=$? | |
3252 | grep -v '^ *+' conftest.er1 >conftest.err | |
3253 | rm -f conftest.er1 | |
3254 | cat conftest.err >&5 | |
3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3256 | (exit $ac_status); } >/dev/null; then | |
3257 | if test -s conftest.err; then | |
3258 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3260 | else |
3261 | ac_cpp_err= | |
3262 | fi | |
3263 | else | |
3264 | ac_cpp_err=yes | |
3265 | fi | |
3266 | if test -z "$ac_cpp_err"; then | |
3267 | # Broken: success on invalid input. | |
3268 | continue | |
3269 | else | |
3270 | echo "$as_me: failed program was:" >&5 | |
3271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3272 | |
ad6254c5 AK |
3273 | # Passes both tests. |
3274 | ac_preproc_ok=: | |
3275 | break | |
795ca3e5 | 3276 | fi |
ad6254c5 | 3277 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3278 | |
ad6254c5 AK |
3279 | done |
3280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3281 | rm -f conftest.err conftest.$ac_ext | |
3282 | if $ac_preproc_ok; then | |
3283 | : | |
795ca3e5 | 3284 | else |
ad6254c5 AK |
3285 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3286 | See \`config.log' for more details." >&5 | |
3287 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3288 | See \`config.log' for more details." >&2;} | |
3289 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3290 | fi |
795ca3e5 | 3291 | |
ad6254c5 AK |
3292 | ac_ext=c |
3293 | ac_cpp='$CPP $CPPFLAGS' | |
3294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3297 | ||
3298 | ||
3299 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3300 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3301 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3303 | else | |
3304 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3305 | then ac_cv_prog_egrep='grep -E' | |
3306 | else ac_cv_prog_egrep='egrep' | |
3307 | fi | |
795ca3e5 | 3308 | fi |
ad6254c5 AK |
3309 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3310 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3311 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3312 | |
795ca3e5 | 3313 | |
ad6254c5 AK |
3314 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3315 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3316 | if test "${ac_cv_header_stdc+set}" = set; then | |
3317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3318 | else |
ad6254c5 | 3319 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3320 | /* confdefs.h. */ |
3321 | _ACEOF | |
3322 | cat confdefs.h >>conftest.$ac_ext | |
3323 | cat >>conftest.$ac_ext <<_ACEOF | |
3324 | /* end confdefs.h. */ | |
80992638 | 3325 | #include <stdlib.h> |
ad6254c5 AK |
3326 | #include <stdarg.h> |
3327 | #include <string.h> | |
3328 | #include <float.h> | |
3329 | ||
3330 | int | |
3331 | main () | |
3332 | { | |
3333 | ||
3334 | ; | |
3335 | return 0; | |
3336 | } | |
3337 | _ACEOF | |
3338 | rm -f conftest.$ac_objext | |
3339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3340 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3341 | ac_status=$? |
8a2fc586 AK |
3342 | grep -v '^ *+' conftest.er1 >conftest.err |
3343 | rm -f conftest.er1 | |
3344 | cat conftest.err >&5 | |
ad6254c5 AK |
3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3346 | (exit $ac_status); } && | |
8a2fc586 AK |
3347 | { ac_try='test -z "$ac_c_werror_flag" |
3348 | || test ! -s conftest.err' | |
3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3350 | (eval $ac_try) 2>&5 | |
3351 | ac_status=$? | |
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3353 | (exit $ac_status); }; } && | |
3354 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3356 | (eval $ac_try) 2>&5 | |
3357 | ac_status=$? | |
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3359 | (exit $ac_status); }; }; then | |
3360 | ac_cv_header_stdc=yes | |
795ca3e5 | 3361 | else |
ad6254c5 AK |
3362 | echo "$as_me: failed program was:" >&5 |
3363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3364 | ||
3365 | ac_cv_header_stdc=no | |
795ca3e5 | 3366 | fi |
8a2fc586 | 3367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3368 | |
3369 | if test $ac_cv_header_stdc = yes; then | |
3370 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3372 | /* confdefs.h. */ |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
3377 | #include <string.h> | |
8106cdd5 | 3378 | |
ad6254c5 AK |
3379 | _ACEOF |
3380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3381 | $EGREP "memchr" >/dev/null 2>&1; then | |
3382 | : | |
3383 | else | |
3384 | ac_cv_header_stdc=no | |
80992638 | 3385 | fi |
ad6254c5 | 3386 | rm -f conftest* |
795ca3e5 AK |
3387 | |
3388 | fi | |
3389 | ||
ad6254c5 AK |
3390 | if test $ac_cv_header_stdc = yes; then |
3391 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3392 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3393 | /* confdefs.h. */ |
3394 | _ACEOF | |
3395 | cat confdefs.h >>conftest.$ac_ext | |
3396 | cat >>conftest.$ac_ext <<_ACEOF | |
3397 | /* end confdefs.h. */ | |
80992638 | 3398 | #include <stdlib.h> |
ad6254c5 AK |
3399 | |
3400 | _ACEOF | |
80992638 | 3401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3402 | $EGREP "free" >/dev/null 2>&1; then |
3403 | : | |
795ca3e5 | 3404 | else |
ad6254c5 | 3405 | ac_cv_header_stdc=no |
795ca3e5 | 3406 | fi |
80992638 | 3407 | rm -f conftest* |
8106cdd5 | 3408 | |
795ca3e5 AK |
3409 | fi |
3410 | ||
ad6254c5 AK |
3411 | if test $ac_cv_header_stdc = yes; then |
3412 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3413 | if test "$cross_compiling" = yes; then | |
3414 | : | |
795ca3e5 | 3415 | else |
ad6254c5 | 3416 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3417 | /* confdefs.h. */ |
3418 | _ACEOF | |
3419 | cat confdefs.h >>conftest.$ac_ext | |
3420 | cat >>conftest.$ac_ext <<_ACEOF | |
3421 | /* end confdefs.h. */ | |
3422 | #include <ctype.h> | |
3423 | #if ((' ' & 0x0FF) == 0x020) | |
3424 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3425 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3426 | #else | |
3427 | # define ISLOWER(c) \ | |
8a2fc586 AK |
3428 | (('a' <= (c) && (c) <= 'i') \ |
3429 | || ('j' <= (c) && (c) <= 'r') \ | |
3430 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3431 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3432 | #endif |
ad6254c5 AK |
3433 | |
3434 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3435 | int | |
3436 | main () | |
3437 | { | |
3438 | int i; | |
3439 | for (i = 0; i < 256; i++) | |
3440 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 3441 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3442 | exit(2); |
3443 | exit (0); | |
3444 | } | |
3445 | _ACEOF | |
3446 | rm -f conftest$ac_exeext | |
3447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3448 | (eval $ac_link) 2>&5 | |
3449 | ac_status=$? | |
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3451 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3453 | (eval $ac_try) 2>&5 | |
3454 | ac_status=$? | |
3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3456 | (exit $ac_status); }; }; then | |
3457 | : | |
795ca3e5 | 3458 | else |
ad6254c5 AK |
3459 | echo "$as_me: program exited with status $ac_status" >&5 |
3460 | echo "$as_me: failed program was:" >&5 | |
3461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3462 | |
ad6254c5 AK |
3463 | ( exit $ac_status ) |
3464 | ac_cv_header_stdc=no | |
80992638 | 3465 | fi |
8a2fc586 | 3466 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3467 | fi |
3468 | fi | |
3469 | fi | |
3470 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3471 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3472 | if test $ac_cv_header_stdc = yes; then | |
3473 | ||
3474 | cat >>confdefs.h <<\_ACEOF | |
3475 | #define STDC_HEADERS 1 | |
3476 | _ACEOF | |
795ca3e5 AK |
3477 | |
3478 | fi | |
3479 | ||
ad6254c5 AK |
3480 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3481 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3482 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3484 | else |
ad6254c5 | 3485 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3486 | /* confdefs.h. */ |
3487 | _ACEOF | |
3488 | cat confdefs.h >>conftest.$ac_ext | |
3489 | cat >>conftest.$ac_ext <<_ACEOF | |
3490 | /* end confdefs.h. */ | |
80992638 | 3491 | #include <sys/types.h> |
ad6254c5 AK |
3492 | #include <sys/wait.h> |
3493 | #ifndef WEXITSTATUS | |
3494 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3495 | #endif | |
3496 | #ifndef WIFEXITED | |
3497 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3498 | #endif | |
3499 | ||
3500 | int | |
3501 | main () | |
3502 | { | |
3503 | int s; | |
3504 | wait (&s); | |
3505 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3506 | ; | |
3507 | return 0; | |
3508 | } | |
3509 | _ACEOF | |
3510 | rm -f conftest.$ac_objext | |
3511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3512 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3513 | ac_status=$? |
8a2fc586 AK |
3514 | grep -v '^ *+' conftest.er1 >conftest.err |
3515 | rm -f conftest.er1 | |
3516 | cat conftest.err >&5 | |
ad6254c5 AK |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3518 | (exit $ac_status); } && | |
8a2fc586 AK |
3519 | { ac_try='test -z "$ac_c_werror_flag" |
3520 | || test ! -s conftest.err' | |
3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3522 | (eval $ac_try) 2>&5 | |
3523 | ac_status=$? | |
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3525 | (exit $ac_status); }; } && | |
3526 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3528 | (eval $ac_try) 2>&5 | |
3529 | ac_status=$? | |
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); }; }; then | |
3532 | ac_cv_header_sys_wait_h=yes | |
3533 | else | |
3534 | echo "$as_me: failed program was:" >&5 | |
3535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3536 | ||
3537 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3538 | fi |
8a2fc586 | 3539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3540 | fi |
ad6254c5 AK |
3541 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3542 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3543 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3544 | |
ad6254c5 AK |
3545 | cat >>confdefs.h <<\_ACEOF |
3546 | #define HAVE_SYS_WAIT_H 1 | |
3547 | _ACEOF | |
795ca3e5 AK |
3548 | |
3549 | fi | |
3550 | ||
ad6254c5 AK |
3551 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3552 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3553 | if test "${ac_cv_header_time+set}" = set; then | |
3554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3555 | else |
ad6254c5 | 3556 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3557 | /* confdefs.h. */ |
3558 | _ACEOF | |
3559 | cat confdefs.h >>conftest.$ac_ext | |
3560 | cat >>conftest.$ac_ext <<_ACEOF | |
3561 | /* end confdefs.h. */ | |
795ca3e5 AK |
3562 | #include <sys/types.h> |
3563 | #include <sys/time.h> | |
3564 | #include <time.h> | |
ad6254c5 AK |
3565 | |
3566 | int | |
3567 | main () | |
3568 | { | |
3569 | if ((struct tm *) 0) | |
3570 | return 0; | |
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
3576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3577 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3578 | ac_status=$? |
8a2fc586 AK |
3579 | grep -v '^ *+' conftest.er1 >conftest.err |
3580 | rm -f conftest.er1 | |
3581 | cat conftest.err >&5 | |
ad6254c5 AK |
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3583 | (exit $ac_status); } && | |
8a2fc586 AK |
3584 | { ac_try='test -z "$ac_c_werror_flag" |
3585 | || test ! -s conftest.err' | |
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3587 | (eval $ac_try) 2>&5 | |
3588 | ac_status=$? | |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3590 | (exit $ac_status); }; } && | |
3591 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3593 | (eval $ac_try) 2>&5 | |
3594 | ac_status=$? | |
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3596 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3597 | ac_cv_header_time=yes |
3598 | else | |
ad6254c5 AK |
3599 | echo "$as_me: failed program was:" >&5 |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3601 | ||
3602 | ac_cv_header_time=no | |
795ca3e5 | 3603 | fi |
8a2fc586 | 3604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3605 | fi |
ad6254c5 AK |
3606 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3607 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3608 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3609 | |
3610 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3611 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3612 | _ACEOF |
b896caa1 | 3613 | |
8106cdd5 | 3614 | fi |
b896caa1 | 3615 | |
b896caa1 | 3616 | |
ad6254c5 | 3617 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3618 | |
b896caa1 AK |
3619 | |
3620 | ||
795ca3e5 | 3621 | |
8106cdd5 | 3622 | |
80992638 | 3623 | |
795ca3e5 | 3624 | |
a38df97f | 3625 | |
80992638 | 3626 | |
ad6254c5 | 3627 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 3628 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3629 | do |
3630 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3631 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3635 | else | |
3636 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3637 | /* confdefs.h. */ |
3638 | _ACEOF | |
3639 | cat confdefs.h >>conftest.$ac_ext | |
3640 | cat >>conftest.$ac_ext <<_ACEOF | |
3641 | /* end confdefs.h. */ | |
3642 | $ac_includes_default | |
3643 | ||
3644 | #include <$ac_header> | |
3645 | _ACEOF | |
3646 | rm -f conftest.$ac_objext | |
3647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3648 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3649 | ac_status=$? |
8a2fc586 AK |
3650 | grep -v '^ *+' conftest.er1 >conftest.err |
3651 | rm -f conftest.er1 | |
3652 | cat conftest.err >&5 | |
ad6254c5 AK |
3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3654 | (exit $ac_status); } && | |
8a2fc586 AK |
3655 | { ac_try='test -z "$ac_c_werror_flag" |
3656 | || test ! -s conftest.err' | |
3657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3658 | (eval $ac_try) 2>&5 | |
3659 | ac_status=$? | |
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3661 | (exit $ac_status); }; } && | |
3662 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3664 | (eval $ac_try) 2>&5 | |
3665 | ac_status=$? | |
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3667 | (exit $ac_status); }; }; then | |
3668 | eval "$as_ac_Header=yes" | |
3669 | else | |
3670 | echo "$as_me: failed program was:" >&5 | |
3671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3672 | |
ad6254c5 AK |
3673 | eval "$as_ac_Header=no" |
3674 | fi | |
8a2fc586 | 3675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3676 | fi |
ad6254c5 AK |
3677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3680 | cat >>confdefs.h <<_ACEOF | |
3681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3682 | _ACEOF | |
a38df97f | 3683 | |
80992638 AK |
3684 | fi |
3685 | ||
ad6254c5 AK |
3686 | done |
3687 | ||
7d1552c9 | 3688 | |
7d1552c9 | 3689 | |
80992638 | 3690 | |
5a52dca9 | 3691 | |
5a52dca9 | 3692 | |
ad6254c5 AK |
3693 | |
3694 | ||
3695 | ||
3696 | ||
3697 | ||
3698 | 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 | |
3699 | do | |
3700 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3706 | fi | |
3707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3709 | else | |
3710 | # Is the header compilable? | |
3711 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3712 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3713 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3714 | /* confdefs.h. */ |
3715 | _ACEOF | |
3716 | cat confdefs.h >>conftest.$ac_ext | |
3717 | cat >>conftest.$ac_ext <<_ACEOF | |
3718 | /* end confdefs.h. */ | |
3719 | $ac_includes_default | |
3720 | #include <$ac_header> | |
3721 | _ACEOF | |
3722 | rm -f conftest.$ac_objext | |
3723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3724 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3725 | ac_status=$? |
8a2fc586 AK |
3726 | grep -v '^ *+' conftest.er1 >conftest.err |
3727 | rm -f conftest.er1 | |
3728 | cat conftest.err >&5 | |
ad6254c5 AK |
3729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3730 | (exit $ac_status); } && | |
8a2fc586 AK |
3731 | { ac_try='test -z "$ac_c_werror_flag" |
3732 | || test ! -s conftest.err' | |
3733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3734 | (eval $ac_try) 2>&5 | |
3735 | ac_status=$? | |
3736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3737 | (exit $ac_status); }; } && | |
3738 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3740 | (eval $ac_try) 2>&5 | |
3741 | ac_status=$? | |
3742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3743 | (exit $ac_status); }; }; then | |
3744 | ac_header_compiler=yes | |
3745 | else | |
3746 | echo "$as_me: failed program was:" >&5 | |
3747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3748 | ||
3749 | ac_header_compiler=no | |
3750 | fi | |
8a2fc586 | 3751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3752 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3753 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3754 | ||
3755 | # Is the header present? | |
3756 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3757 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3759 | /* confdefs.h. */ |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
3764 | #include <$ac_header> | |
3765 | _ACEOF | |
3766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3768 | ac_status=$? | |
3769 | grep -v '^ *+' conftest.er1 >conftest.err | |
3770 | rm -f conftest.er1 | |
3771 | cat conftest.err >&5 | |
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3773 | (exit $ac_status); } >/dev/null; then | |
3774 | if test -s conftest.err; then | |
3775 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3776 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3777 | else |
3778 | ac_cpp_err= | |
3779 | fi | |
3780 | else | |
3781 | ac_cpp_err=yes | |
3782 | fi | |
3783 | if test -z "$ac_cpp_err"; then | |
3784 | ac_header_preproc=yes | |
3785 | else | |
3786 | echo "$as_me: failed program was:" >&5 | |
3787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3788 | ||
3789 | ac_header_preproc=no | |
3790 | fi | |
3791 | rm -f conftest.err conftest.$ac_ext | |
3792 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3793 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3794 | ||
3795 | # So? What about this header? | |
8a2fc586 AK |
3796 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3797 | yes:no: ) | |
ad6254c5 AK |
3798 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3799 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3801 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3802 | ac_header_preproc=yes | |
ad6254c5 | 3803 | ;; |
8a2fc586 | 3804 | no:yes:* ) |
ad6254c5 AK |
3805 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3806 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3807 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3808 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3809 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3810 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3811 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3812 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3814 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3815 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3816 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3817 | ( |
3818 | cat <<\_ASBOX | |
8a2fc586 AK |
3819 | ## ------------------------------------------ ## |
3820 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3821 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3822 | _ASBOX |
3823 | ) | | |
3824 | sed "s/^/$as_me: WARNING: /" >&2 | |
3825 | ;; | |
3826 | esac | |
3827 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3828 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3831 | else | |
8a2fc586 | 3832 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 3833 | fi |
ad6254c5 AK |
3834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3836 | ||
3837 | fi | |
3838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3839 | cat >>confdefs.h <<_ACEOF | |
3840 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3841 | _ACEOF | |
b896caa1 | 3842 | |
d8ac0fbc | 3843 | else |
ad6254c5 AK |
3844 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3845 | echo "$as_me: error: bailing out" >&2;} | |
3846 | { (exit 1); exit 1; }; } | |
80992638 AK |
3847 | fi |
3848 | ||
ad6254c5 | 3849 | done |
d8ac0fbc | 3850 | |
d8ac0fbc | 3851 | |
d8ac0fbc | 3852 | |
80992638 | 3853 | |
d3c8211f | 3854 | |
d3c8211f | 3855 | |
d3c8211f | 3856 | |
80992638 | 3857 | |
4922197a | 3858 | |
4922197a | 3859 | |
ad6254c5 AK |
3860 | |
3861 | ||
3862 | ||
3863 | 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 | |
3864 | do | |
3865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3871 | fi | |
3872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3874 | else | |
3875 | # Is the header compilable? | |
3876 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3878 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3879 | /* confdefs.h. */ |
3880 | _ACEOF | |
3881 | cat confdefs.h >>conftest.$ac_ext | |
3882 | cat >>conftest.$ac_ext <<_ACEOF | |
3883 | /* end confdefs.h. */ | |
3884 | $ac_includes_default | |
3885 | #include <$ac_header> | |
3886 | _ACEOF | |
3887 | rm -f conftest.$ac_objext | |
3888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3889 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3890 | ac_status=$? |
8a2fc586 AK |
3891 | grep -v '^ *+' conftest.er1 >conftest.err |
3892 | rm -f conftest.er1 | |
3893 | cat conftest.err >&5 | |
ad6254c5 AK |
3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3895 | (exit $ac_status); } && | |
8a2fc586 AK |
3896 | { ac_try='test -z "$ac_c_werror_flag" |
3897 | || test ! -s conftest.err' | |
3898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3899 | (eval $ac_try) 2>&5 | |
3900 | ac_status=$? | |
3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3902 | (exit $ac_status); }; } && | |
3903 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3905 | (eval $ac_try) 2>&5 | |
3906 | ac_status=$? | |
3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3908 | (exit $ac_status); }; }; then | |
3909 | ac_header_compiler=yes | |
3910 | else | |
3911 | echo "$as_me: failed program was:" >&5 | |
3912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3913 | ||
3914 | ac_header_compiler=no | |
3915 | fi | |
8a2fc586 | 3916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3917 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3918 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3919 | ||
3920 | # Is the header present? | |
3921 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3922 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3923 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3924 | /* confdefs.h. */ |
3925 | _ACEOF | |
3926 | cat confdefs.h >>conftest.$ac_ext | |
3927 | cat >>conftest.$ac_ext <<_ACEOF | |
3928 | /* end confdefs.h. */ | |
3929 | #include <$ac_header> | |
3930 | _ACEOF | |
3931 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3932 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3933 | ac_status=$? | |
3934 | grep -v '^ *+' conftest.er1 >conftest.err | |
3935 | rm -f conftest.er1 | |
3936 | cat conftest.err >&5 | |
3937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3938 | (exit $ac_status); } >/dev/null; then | |
3939 | if test -s conftest.err; then | |
3940 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3942 | else |
3943 | ac_cpp_err= | |
3944 | fi | |
3945 | else | |
3946 | ac_cpp_err=yes | |
4922197a | 3947 | fi |
ad6254c5 AK |
3948 | if test -z "$ac_cpp_err"; then |
3949 | ac_header_preproc=yes | |
3950 | else | |
3951 | echo "$as_me: failed program was:" >&5 | |
3952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3953 | ||
3954 | ac_header_preproc=no | |
3955 | fi | |
3956 | rm -f conftest.err conftest.$ac_ext | |
3957 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3958 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3959 | ||
3960 | # So? What about this header? | |
8a2fc586 AK |
3961 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3962 | yes:no: ) | |
ad6254c5 AK |
3963 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3964 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3966 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3967 | ac_header_preproc=yes | |
ad6254c5 | 3968 | ;; |
8a2fc586 | 3969 | no:yes:* ) |
ad6254c5 AK |
3970 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3971 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3972 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3973 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3974 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3975 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3976 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3977 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3978 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3979 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3980 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3981 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3982 | ( |
3983 | cat <<\_ASBOX | |
8a2fc586 AK |
3984 | ## ------------------------------------------ ## |
3985 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3986 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3987 | _ASBOX |
3988 | ) | | |
3989 | sed "s/^/$as_me: WARNING: /" >&2 | |
3990 | ;; | |
3991 | esac | |
3992 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3993 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3996 | else | |
8a2fc586 | 3997 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
3998 | fi |
3999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4001 | ||
4002 | fi | |
4003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4004 | cat >>confdefs.h <<_ACEOF | |
4005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4006 | _ACEOF | |
4922197a | 4007 | |
4922197a | 4008 | else |
ad6254c5 AK |
4009 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4010 | echo "$as_me: error: bailing out" >&2;} | |
4011 | { (exit 1); exit 1; }; } | |
80992638 AK |
4012 | fi |
4013 | ||
ad6254c5 | 4014 | done |
4922197a | 4015 | |
4922197a | 4016 | |
ad6254c5 AK |
4017 | case "$host_os" in |
4018 | linux*) | |
4922197a | 4019 | |
ad6254c5 AK |
4020 | |
4021 | ||
4022 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4023 | do | |
4024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4030 | fi | |
4031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 4033 | else |
ad6254c5 AK |
4034 | # Is the header compilable? |
4035 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4037 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4038 | /* confdefs.h. */ |
4039 | _ACEOF | |
4040 | cat confdefs.h >>conftest.$ac_ext | |
4041 | cat >>conftest.$ac_ext <<_ACEOF | |
4042 | /* end confdefs.h. */ | |
4043 | $ac_includes_default | |
4044 | #include <$ac_header> | |
4045 | _ACEOF | |
4046 | rm -f conftest.$ac_objext | |
4047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4048 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4049 | ac_status=$? |
8a2fc586 AK |
4050 | grep -v '^ *+' conftest.er1 >conftest.err |
4051 | rm -f conftest.er1 | |
4052 | cat conftest.err >&5 | |
ad6254c5 AK |
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4054 | (exit $ac_status); } && | |
8a2fc586 AK |
4055 | { ac_try='test -z "$ac_c_werror_flag" |
4056 | || test ! -s conftest.err' | |
4057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4058 | (eval $ac_try) 2>&5 | |
4059 | ac_status=$? | |
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4061 | (exit $ac_status); }; } && | |
4062 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4064 | (eval $ac_try) 2>&5 | |
4065 | ac_status=$? | |
4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4067 | (exit $ac_status); }; }; then | |
4068 | ac_header_compiler=yes | |
4069 | else | |
4070 | echo "$as_me: failed program was:" >&5 | |
4071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4072 | ||
4073 | ac_header_compiler=no | |
4074 | fi | |
8a2fc586 | 4075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4078 | ||
4079 | # Is the header present? | |
4080 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4082 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4083 | /* confdefs.h. */ |
4084 | _ACEOF | |
4085 | cat confdefs.h >>conftest.$ac_ext | |
4086 | cat >>conftest.$ac_ext <<_ACEOF | |
4087 | /* end confdefs.h. */ | |
4088 | #include <$ac_header> | |
4089 | _ACEOF | |
4090 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4091 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4092 | ac_status=$? | |
4093 | grep -v '^ *+' conftest.er1 >conftest.err | |
4094 | rm -f conftest.er1 | |
4095 | cat conftest.err >&5 | |
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 | (exit $ac_status); } >/dev/null; then | |
4098 | if test -s conftest.err; then | |
4099 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4100 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4101 | else |
4102 | ac_cpp_err= | |
4103 | fi | |
4104 | else | |
4105 | ac_cpp_err=yes | |
4106 | fi | |
4107 | if test -z "$ac_cpp_err"; then | |
4108 | ac_header_preproc=yes | |
4109 | else | |
4110 | echo "$as_me: failed program was:" >&5 | |
4111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4112 | ||
4113 | ac_header_preproc=no | |
4114 | fi | |
4115 | rm -f conftest.err conftest.$ac_ext | |
4116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4118 | ||
4119 | # So? What about this header? | |
8a2fc586 AK |
4120 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4121 | yes:no: ) | |
ad6254c5 AK |
4122 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4123 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4125 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4126 | ac_header_preproc=yes | |
ad6254c5 | 4127 | ;; |
8a2fc586 | 4128 | no:yes:* ) |
ad6254c5 AK |
4129 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4130 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4131 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4132 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4133 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4134 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4135 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4136 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4138 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4139 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4140 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4141 | ( |
4142 | cat <<\_ASBOX | |
8a2fc586 AK |
4143 | ## ------------------------------------------ ## |
4144 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4145 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4146 | _ASBOX |
4147 | ) | | |
4148 | sed "s/^/$as_me: WARNING: /" >&2 | |
4149 | ;; | |
4150 | esac | |
4151 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4155 | else | |
8a2fc586 | 4156 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4157 | fi |
ad6254c5 AK |
4158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4159 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 4160 | |
ad6254c5 AK |
4161 | fi |
4162 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4163 | cat >>confdefs.h <<_ACEOF | |
4164 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4165 | _ACEOF | |
795ca3e5 | 4166 | |
795ca3e5 | 4167 | else |
ad6254c5 AK |
4168 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4169 | echo "$as_me: error: bailing out" >&2;} | |
4170 | { (exit 1); exit 1; }; } | |
80992638 AK |
4171 | fi |
4172 | ||
ad6254c5 AK |
4173 | done |
4174 | ;; | |
4175 | darwin*) | |
4176 | ||
795ca3e5 | 4177 | |
ad6254c5 AK |
4178 | for ac_header in machine/endian.h sys/disk.h |
4179 | do | |
4180 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4186 | fi | |
4187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4189 | else | |
4190 | # Is the header compilable? | |
4191 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4192 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4193 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4194 | /* confdefs.h. */ |
4195 | _ACEOF | |
4196 | cat confdefs.h >>conftest.$ac_ext | |
4197 | cat >>conftest.$ac_ext <<_ACEOF | |
4198 | /* end confdefs.h. */ | |
4199 | $ac_includes_default | |
4200 | #include <$ac_header> | |
4201 | _ACEOF | |
4202 | rm -f conftest.$ac_objext | |
4203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4204 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4205 | ac_status=$? |
8a2fc586 AK |
4206 | grep -v '^ *+' conftest.er1 >conftest.err |
4207 | rm -f conftest.er1 | |
4208 | cat conftest.err >&5 | |
ad6254c5 AK |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4210 | (exit $ac_status); } && | |
8a2fc586 AK |
4211 | { ac_try='test -z "$ac_c_werror_flag" |
4212 | || test ! -s conftest.err' | |
4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4214 | (eval $ac_try) 2>&5 | |
4215 | ac_status=$? | |
4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4217 | (exit $ac_status); }; } && | |
4218 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4220 | (eval $ac_try) 2>&5 | |
4221 | ac_status=$? | |
4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4223 | (exit $ac_status); }; }; then | |
4224 | ac_header_compiler=yes | |
4225 | else | |
4226 | echo "$as_me: failed program was:" >&5 | |
4227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4228 | ||
4229 | ac_header_compiler=no | |
4230 | fi | |
8a2fc586 | 4231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4233 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4234 | ||
4235 | # Is the header present? | |
4236 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4237 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4238 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4239 | /* confdefs.h. */ |
4240 | _ACEOF | |
4241 | cat confdefs.h >>conftest.$ac_ext | |
4242 | cat >>conftest.$ac_ext <<_ACEOF | |
4243 | /* end confdefs.h. */ | |
4244 | #include <$ac_header> | |
4245 | _ACEOF | |
4246 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4247 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4248 | ac_status=$? | |
4249 | grep -v '^ *+' conftest.er1 >conftest.err | |
4250 | rm -f conftest.er1 | |
4251 | cat conftest.err >&5 | |
4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4253 | (exit $ac_status); } >/dev/null; then | |
4254 | if test -s conftest.err; then | |
4255 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4256 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4257 | else |
4258 | ac_cpp_err= | |
4259 | fi | |
4260 | else | |
4261 | ac_cpp_err=yes | |
4262 | fi | |
4263 | if test -z "$ac_cpp_err"; then | |
4264 | ac_header_preproc=yes | |
4265 | else | |
4266 | echo "$as_me: failed program was:" >&5 | |
4267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4268 | ||
4269 | ac_header_preproc=no | |
4270 | fi | |
4271 | rm -f conftest.err conftest.$ac_ext | |
4272 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4273 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4274 | ||
4275 | # So? What about this header? | |
8a2fc586 AK |
4276 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4277 | yes:no: ) | |
ad6254c5 AK |
4278 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4279 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4281 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4282 | ac_header_preproc=yes | |
ad6254c5 | 4283 | ;; |
8a2fc586 | 4284 | no:yes:* ) |
ad6254c5 AK |
4285 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4286 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4287 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4288 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4289 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4290 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4291 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4292 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4294 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4295 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4296 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4297 | ( |
4298 | cat <<\_ASBOX | |
8a2fc586 AK |
4299 | ## ------------------------------------------ ## |
4300 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4301 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4302 | _ASBOX |
4303 | ) | | |
4304 | sed "s/^/$as_me: WARNING: /" >&2 | |
4305 | ;; | |
4306 | esac | |
4307 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4311 | else | |
8a2fc586 | 4312 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4313 | fi |
ad6254c5 AK |
4314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4316 | |
ad6254c5 AK |
4317 | fi |
4318 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4319 | cat >>confdefs.h <<_ACEOF | |
4320 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4321 | _ACEOF | |
4322 | ||
4323 | else | |
4324 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4325 | echo "$as_me: error: bailing out" >&2;} | |
4326 | { (exit 1); exit 1; }; } | |
80992638 AK |
4327 | fi |
4328 | ||
ad6254c5 AK |
4329 | done |
4330 | ;; | |
4331 | esac | |
d3c8211f | 4332 | |
80992638 | 4333 | ################################################################################ |
ad6254c5 AK |
4334 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4335 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4336 | if test "${ac_cv_c_const+set}" = set; then | |
4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4338 | else |
ad6254c5 | 4339 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4340 | /* confdefs.h. */ |
4341 | _ACEOF | |
4342 | cat confdefs.h >>conftest.$ac_ext | |
4343 | cat >>conftest.$ac_ext <<_ACEOF | |
4344 | /* end confdefs.h. */ | |
4345 | ||
4346 | int | |
4347 | main () | |
4348 | { | |
4349 | /* FIXME: Include the comments suggested by Paul. */ | |
4350 | #ifndef __cplusplus | |
4351 | /* Ultrix mips cc rejects this. */ | |
4352 | typedef int charset[2]; | |
4353 | const charset x; | |
4354 | /* SunOS 4.1.1 cc rejects this. */ | |
4355 | char const *const *ccp; | |
4356 | char **p; | |
4357 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4358 | struct point {int x, y;}; | |
4359 | static struct point const zero = {0,0}; | |
4360 | /* AIX XL C 1.02.0.0 rejects this. | |
4361 | It does not let you subtract one const X* pointer from another in | |
4362 | an arm of an if-expression whose if-part is not a constant | |
4363 | expression */ | |
4364 | const char *g = "string"; | |
4365 | ccp = &g + (g ? g-g : 0); | |
4366 | /* HPUX 7.0 cc rejects these. */ | |
4367 | ++ccp; | |
4368 | p = (char**) ccp; | |
4369 | ccp = (char const *const *) p; | |
4370 | { /* SCO 3.2v4 cc rejects this. */ | |
4371 | char *t; | |
4372 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4373 | ||
4374 | *t++ = 0; | |
4375 | } | |
4376 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4377 | int x[] = {25, 17}; | |
4378 | const int *foo = &x[0]; | |
4379 | ++foo; | |
4380 | } | |
4381 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4382 | typedef const int *iptr; | |
4383 | iptr p = 0; | |
4384 | ++p; | |
4385 | } | |
4386 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4387 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4388 | struct s { int j; const int *ap[3]; }; | |
4389 | struct s *b; b->j = 5; | |
4390 | } | |
4391 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4392 | const int foo = 10; | |
4393 | } | |
4394 | #endif | |
4395 | ||
4396 | ; | |
4397 | return 0; | |
4398 | } | |
4399 | _ACEOF | |
4400 | rm -f conftest.$ac_objext | |
4401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4402 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4403 | ac_status=$? |
8a2fc586 AK |
4404 | grep -v '^ *+' conftest.er1 >conftest.err |
4405 | rm -f conftest.er1 | |
4406 | cat conftest.err >&5 | |
ad6254c5 AK |
4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4408 | (exit $ac_status); } && | |
8a2fc586 AK |
4409 | { ac_try='test -z "$ac_c_werror_flag" |
4410 | || test ! -s conftest.err' | |
ad6254c5 AK |
4411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4412 | (eval $ac_try) 2>&5 | |
4413 | ac_status=$? | |
4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a2fc586 AK |
4415 | (exit $ac_status); }; } && |
4416 | { ac_try='test -s conftest.$ac_objext' | |
4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4418 | (eval $ac_try) 2>&5 | |
4419 | ac_status=$? | |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4421 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4422 | ac_cv_c_const=yes |
4423 | else | |
4424 | echo "$as_me: failed program was:" >&5 | |
4425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4426 | ||
4427 | ac_cv_c_const=no | |
4428 | fi | |
8a2fc586 | 4429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4430 | fi |
ad6254c5 AK |
4431 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4432 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4433 | if test $ac_cv_c_const = no; then | |
80992638 | 4434 | |
ad6254c5 AK |
4435 | cat >>confdefs.h <<\_ACEOF |
4436 | #define const | |
4437 | _ACEOF | |
80992638 | 4438 | |
d3c8211f | 4439 | fi |
d3c8211f | 4440 | |
ad6254c5 AK |
4441 | echo "$as_me:$LINENO: checking for inline" >&5 |
4442 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4443 | if test "${ac_cv_c_inline+set}" = set; then | |
4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4445 | else |
ad6254c5 AK |
4446 | ac_cv_c_inline=no |
4447 | for ac_kw in inline __inline__ __inline; do | |
4448 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4449 | /* confdefs.h. */ |
4450 | _ACEOF | |
4451 | cat confdefs.h >>conftest.$ac_ext | |
4452 | cat >>conftest.$ac_ext <<_ACEOF | |
4453 | /* end confdefs.h. */ | |
4454 | #ifndef __cplusplus | |
4455 | typedef int foo_t; | |
4456 | static $ac_kw foo_t static_foo () {return 0; } | |
4457 | $ac_kw foo_t foo () {return 0; } | |
4458 | #endif | |
80992638 | 4459 | |
ad6254c5 AK |
4460 | _ACEOF |
4461 | rm -f conftest.$ac_objext | |
4462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4463 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4464 | ac_status=$? |
8a2fc586 AK |
4465 | grep -v '^ *+' conftest.er1 >conftest.err |
4466 | rm -f conftest.er1 | |
4467 | cat conftest.err >&5 | |
ad6254c5 AK |
4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4469 | (exit $ac_status); } && | |
8a2fc586 AK |
4470 | { ac_try='test -z "$ac_c_werror_flag" |
4471 | || test ! -s conftest.err' | |
4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4473 | (eval $ac_try) 2>&5 | |
4474 | ac_status=$? | |
4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4476 | (exit $ac_status); }; } && | |
4477 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4479 | (eval $ac_try) 2>&5 | |
4480 | ac_status=$? | |
4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4482 | (exit $ac_status); }; }; then | |
4483 | ac_cv_c_inline=$ac_kw; break | |
4484 | else | |
4485 | echo "$as_me: failed program was:" >&5 | |
4486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4487 | |
8ce0cbda | 4488 | fi |
8a2fc586 | 4489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4490 | done |
8ce0cbda | 4491 | |
8ce0cbda | 4492 | fi |
ad6254c5 AK |
4493 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4494 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
8a2fc586 AK |
4495 | |
4496 | ||
ad6254c5 AK |
4497 | case $ac_cv_c_inline in |
4498 | inline | yes) ;; | |
8a2fc586 AK |
4499 | *) |
4500 | case $ac_cv_c_inline in | |
4501 | no) ac_val=;; | |
4502 | *) ac_val=$ac_cv_c_inline;; | |
4503 | esac | |
4504 | cat >>confdefs.h <<_ACEOF | |
4505 | #ifndef __cplusplus | |
4506 | #define inline $ac_val | |
4507 | #endif | |
c1c065a3 | 4508 | _ACEOF |
8a2fc586 | 4509 | ;; |
ad6254c5 | 4510 | esac |
8ce0cbda | 4511 | |
ad6254c5 AK |
4512 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4513 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4514 | if test "${ac_cv_type_off_t+set}" = set; then | |
4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4516 | else | |
4517 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4518 | /* confdefs.h. */ |
4519 | _ACEOF | |
4520 | cat confdefs.h >>conftest.$ac_ext | |
4521 | cat >>conftest.$ac_ext <<_ACEOF | |
4522 | /* end confdefs.h. */ | |
4523 | $ac_includes_default | |
4524 | int | |
4525 | main () | |
4526 | { | |
4527 | if ((off_t *) 0) | |
4528 | return 0; | |
4529 | if (sizeof (off_t)) | |
4530 | return 0; | |
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | rm -f conftest.$ac_objext | |
4536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4537 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4538 | ac_status=$? |
8a2fc586 AK |
4539 | grep -v '^ *+' conftest.er1 >conftest.err |
4540 | rm -f conftest.er1 | |
4541 | cat conftest.err >&5 | |
ad6254c5 AK |
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4543 | (exit $ac_status); } && | |
8a2fc586 AK |
4544 | { ac_try='test -z "$ac_c_werror_flag" |
4545 | || test ! -s conftest.err' | |
4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4547 | (eval $ac_try) 2>&5 | |
4548 | ac_status=$? | |
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4550 | (exit $ac_status); }; } && | |
4551 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4553 | (eval $ac_try) 2>&5 | |
4554 | ac_status=$? | |
4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4556 | (exit $ac_status); }; }; then | |
4557 | ac_cv_type_off_t=yes | |
4558 | else | |
4559 | echo "$as_me: failed program was:" >&5 | |
4560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4561 | |
ad6254c5 | 4562 | ac_cv_type_off_t=no |
80992638 | 4563 | fi |
8a2fc586 | 4564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4565 | fi |
4566 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4567 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4568 | if test $ac_cv_type_off_t = yes; then | |
4569 | : | |
4570 | else | |
80992638 | 4571 | |
ad6254c5 AK |
4572 | cat >>confdefs.h <<_ACEOF |
4573 | #define off_t long | |
4574 | _ACEOF | |
199e490e | 4575 | |
b896caa1 AK |
4576 | fi |
4577 | ||
ad6254c5 AK |
4578 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4579 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4580 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4582 | else | |
4583 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4584 | /* confdefs.h. */ |
4585 | _ACEOF | |
4586 | cat confdefs.h >>conftest.$ac_ext | |
4587 | cat >>conftest.$ac_ext <<_ACEOF | |
4588 | /* end confdefs.h. */ | |
4589 | $ac_includes_default | |
4590 | int | |
4591 | main () | |
4592 | { | |
4593 | if ((pid_t *) 0) | |
4594 | return 0; | |
4595 | if (sizeof (pid_t)) | |
4596 | return 0; | |
4597 | ; | |
4598 | return 0; | |
4599 | } | |
4600 | _ACEOF | |
4601 | rm -f conftest.$ac_objext | |
4602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4603 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4604 | ac_status=$? |
8a2fc586 AK |
4605 | grep -v '^ *+' conftest.er1 >conftest.err |
4606 | rm -f conftest.er1 | |
4607 | cat conftest.err >&5 | |
ad6254c5 AK |
4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4609 | (exit $ac_status); } && | |
8a2fc586 AK |
4610 | { ac_try='test -z "$ac_c_werror_flag" |
4611 | || test ! -s conftest.err' | |
4612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4613 | (eval $ac_try) 2>&5 | |
4614 | ac_status=$? | |
4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4616 | (exit $ac_status); }; } && | |
4617 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4619 | (eval $ac_try) 2>&5 | |
4620 | ac_status=$? | |
4621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4622 | (exit $ac_status); }; }; then | |
4623 | ac_cv_type_pid_t=yes | |
4624 | else | |
4625 | echo "$as_me: failed program was:" >&5 | |
4626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4627 | ||
4628 | ac_cv_type_pid_t=no | |
4629 | fi | |
8a2fc586 | 4630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4631 | fi |
ad6254c5 AK |
4632 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4633 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4634 | if test $ac_cv_type_pid_t = yes; then | |
4635 | : | |
4636 | else | |
80992638 | 4637 | |
ad6254c5 AK |
4638 | cat >>confdefs.h <<_ACEOF |
4639 | #define pid_t int | |
4640 | _ACEOF | |
2dc95e1c | 4641 | |
2dc95e1c AK |
4642 | fi |
4643 | ||
ad6254c5 AK |
4644 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4645 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4646 | if test "${ac_cv_type_size_t+set}" = set; then | |
4647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4648 | else |
ad6254c5 | 4649 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4650 | /* confdefs.h. */ |
4651 | _ACEOF | |
4652 | cat confdefs.h >>conftest.$ac_ext | |
4653 | cat >>conftest.$ac_ext <<_ACEOF | |
4654 | /* end confdefs.h. */ | |
4655 | $ac_includes_default | |
4656 | int | |
4657 | main () | |
4658 | { | |
4659 | if ((size_t *) 0) | |
4660 | return 0; | |
4661 | if (sizeof (size_t)) | |
4662 | return 0; | |
4663 | ; | |
4664 | return 0; | |
4665 | } | |
4666 | _ACEOF | |
4667 | rm -f conftest.$ac_objext | |
4668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4669 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4670 | ac_status=$? |
8a2fc586 AK |
4671 | grep -v '^ *+' conftest.er1 >conftest.err |
4672 | rm -f conftest.er1 | |
4673 | cat conftest.err >&5 | |
ad6254c5 AK |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4675 | (exit $ac_status); } && | |
8a2fc586 AK |
4676 | { ac_try='test -z "$ac_c_werror_flag" |
4677 | || test ! -s conftest.err' | |
4678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4679 | (eval $ac_try) 2>&5 | |
4680 | ac_status=$? | |
4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4682 | (exit $ac_status); }; } && | |
4683 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4685 | (eval $ac_try) 2>&5 | |
4686 | ac_status=$? | |
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4688 | (exit $ac_status); }; }; then | |
4689 | ac_cv_type_size_t=yes | |
4690 | else | |
4691 | echo "$as_me: failed program was:" >&5 | |
4692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4693 | ||
4694 | ac_cv_type_size_t=no | |
80992638 | 4695 | fi |
8a2fc586 | 4696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4697 | fi |
4698 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4699 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4700 | if test $ac_cv_type_size_t = yes; then | |
4701 | : | |
4702 | else | |
80992638 | 4703 | |
ad6254c5 AK |
4704 | cat >>confdefs.h <<_ACEOF |
4705 | #define size_t unsigned | |
4706 | _ACEOF | |
8106cdd5 | 4707 | |
8106cdd5 AK |
4708 | fi |
4709 | ||
ad6254c5 AK |
4710 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4711 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4712 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4714 | else | |
4715 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4716 | /* confdefs.h. */ |
4717 | _ACEOF | |
4718 | cat confdefs.h >>conftest.$ac_ext | |
4719 | cat >>conftest.$ac_ext <<_ACEOF | |
4720 | /* end confdefs.h. */ | |
4721 | $ac_includes_default | |
4722 | int | |
4723 | main () | |
4724 | { | |
4725 | if ((mode_t *) 0) | |
4726 | return 0; | |
4727 | if (sizeof (mode_t)) | |
4728 | return 0; | |
4729 | ; | |
4730 | return 0; | |
4731 | } | |
4732 | _ACEOF | |
4733 | rm -f conftest.$ac_objext | |
4734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4735 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4736 | ac_status=$? |
8a2fc586 AK |
4737 | grep -v '^ *+' conftest.er1 >conftest.err |
4738 | rm -f conftest.er1 | |
4739 | cat conftest.err >&5 | |
ad6254c5 AK |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4741 | (exit $ac_status); } && | |
8a2fc586 AK |
4742 | { ac_try='test -z "$ac_c_werror_flag" |
4743 | || test ! -s conftest.err' | |
4744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4745 | (eval $ac_try) 2>&5 | |
4746 | ac_status=$? | |
4747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4748 | (exit $ac_status); }; } && | |
4749 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4751 | (eval $ac_try) 2>&5 | |
4752 | ac_status=$? | |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4754 | (exit $ac_status); }; }; then | |
4755 | ac_cv_type_mode_t=yes | |
4756 | else | |
4757 | echo "$as_me: failed program was:" >&5 | |
4758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4759 | ||
4760 | ac_cv_type_mode_t=no | |
80992638 | 4761 | fi |
8a2fc586 | 4762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4763 | fi |
4764 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4765 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4766 | if test $ac_cv_type_mode_t = yes; then | |
4767 | : | |
4768 | else | |
80992638 | 4769 | |
ad6254c5 AK |
4770 | cat >>confdefs.h <<_ACEOF |
4771 | #define mode_t int | |
4772 | _ACEOF | |
4773 | ||
4774 | fi | |
4775 | ||
4776 | ||
4777 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4778 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4779 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4781 | else | |
4782 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4783 | /* confdefs.h. */ |
4784 | _ACEOF | |
4785 | cat confdefs.h >>conftest.$ac_ext | |
4786 | cat >>conftest.$ac_ext <<_ACEOF | |
4787 | /* end confdefs.h. */ | |
4788 | $ac_includes_default | |
4789 | int | |
4790 | main () | |
4791 | { | |
4792 | static struct stat ac_aggr; | |
4793 | if (ac_aggr.st_rdev) | |
4794 | return 0; | |
4795 | ; | |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
4799 | rm -f conftest.$ac_objext | |
4800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4801 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4802 | ac_status=$? |
8a2fc586 AK |
4803 | grep -v '^ *+' conftest.er1 >conftest.err |
4804 | rm -f conftest.er1 | |
4805 | cat conftest.err >&5 | |
ad6254c5 AK |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4807 | (exit $ac_status); } && | |
8a2fc586 AK |
4808 | { ac_try='test -z "$ac_c_werror_flag" |
4809 | || test ! -s conftest.err' | |
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4811 | (eval $ac_try) 2>&5 | |
4812 | ac_status=$? | |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4814 | (exit $ac_status); }; } && | |
4815 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4817 | (eval $ac_try) 2>&5 | |
4818 | ac_status=$? | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); }; }; then | |
4821 | ac_cv_member_struct_stat_st_rdev=yes | |
4822 | else | |
4823 | echo "$as_me: failed program was:" >&5 | |
4824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4825 | ||
4826 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4827 | /* confdefs.h. */ |
4828 | _ACEOF | |
4829 | cat confdefs.h >>conftest.$ac_ext | |
4830 | cat >>conftest.$ac_ext <<_ACEOF | |
4831 | /* end confdefs.h. */ | |
4832 | $ac_includes_default | |
4833 | int | |
4834 | main () | |
4835 | { | |
4836 | static struct stat ac_aggr; | |
4837 | if (sizeof ac_aggr.st_rdev) | |
4838 | return 0; | |
4839 | ; | |
4840 | return 0; | |
4841 | } | |
4842 | _ACEOF | |
4843 | rm -f conftest.$ac_objext | |
4844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4845 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4846 | ac_status=$? |
8a2fc586 AK |
4847 | grep -v '^ *+' conftest.er1 >conftest.err |
4848 | rm -f conftest.er1 | |
4849 | cat conftest.err >&5 | |
ad6254c5 AK |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4851 | (exit $ac_status); } && | |
8a2fc586 AK |
4852 | { ac_try='test -z "$ac_c_werror_flag" |
4853 | || test ! -s conftest.err' | |
4854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4855 | (eval $ac_try) 2>&5 | |
4856 | ac_status=$? | |
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 | (exit $ac_status); }; } && | |
4859 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4861 | (eval $ac_try) 2>&5 | |
4862 | ac_status=$? | |
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4864 | (exit $ac_status); }; }; then | |
4865 | ac_cv_member_struct_stat_st_rdev=yes | |
4866 | else | |
4867 | echo "$as_me: failed program was:" >&5 | |
4868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4869 | ||
4870 | ac_cv_member_struct_stat_st_rdev=no | |
4871 | fi | |
8a2fc586 | 4872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4873 | fi |
8a2fc586 | 4874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4875 | fi |
4876 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4877 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4878 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4879 | ||
4880 | cat >>confdefs.h <<_ACEOF | |
4881 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4882 | _ACEOF | |
4883 | ||
4884 | ||
4885 | cat >>confdefs.h <<\_ACEOF | |
4886 | #define HAVE_ST_RDEV 1 | |
4887 | _ACEOF | |
4888 | ||
4889 | fi | |
4890 | ||
4891 | ||
4892 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4893 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4894 | if test "${ac_cv_struct_tm+set}" = set; then | |
4895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4896 | else | |
4897 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4898 | /* confdefs.h. */ |
4899 | _ACEOF | |
4900 | cat confdefs.h >>conftest.$ac_ext | |
4901 | cat >>conftest.$ac_ext <<_ACEOF | |
4902 | /* end confdefs.h. */ | |
4903 | #include <sys/types.h> | |
4904 | #include <time.h> | |
4905 | ||
4906 | int | |
4907 | main () | |
4908 | { | |
4909 | struct tm *tp; tp->tm_sec; | |
4910 | ; | |
4911 | return 0; | |
4912 | } | |
4913 | _ACEOF | |
4914 | rm -f conftest.$ac_objext | |
4915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4916 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4917 | ac_status=$? |
8a2fc586 AK |
4918 | grep -v '^ *+' conftest.er1 >conftest.err |
4919 | rm -f conftest.er1 | |
4920 | cat conftest.err >&5 | |
ad6254c5 AK |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4922 | (exit $ac_status); } && | |
8a2fc586 AK |
4923 | { ac_try='test -z "$ac_c_werror_flag" |
4924 | || test ! -s conftest.err' | |
4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4926 | (eval $ac_try) 2>&5 | |
4927 | ac_status=$? | |
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4929 | (exit $ac_status); }; } && | |
4930 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4932 | (eval $ac_try) 2>&5 | |
4933 | ac_status=$? | |
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4935 | (exit $ac_status); }; }; then | |
4936 | ac_cv_struct_tm=time.h | |
4937 | else | |
4938 | echo "$as_me: failed program was:" >&5 | |
4939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4940 | ||
4941 | ac_cv_struct_tm=sys/time.h | |
4942 | fi | |
8a2fc586 | 4943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4944 | fi |
4945 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4946 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4947 | if test $ac_cv_struct_tm = sys/time.h; then | |
4948 | ||
4949 | cat >>confdefs.h <<\_ACEOF | |
4950 | #define TM_IN_SYS_TIME 1 | |
4951 | _ACEOF | |
4952 | ||
4953 | fi | |
809fae91 | 4954 | |
795ca3e5 | 4955 | |
80992638 | 4956 | ################################################################################ |
ad6254c5 AK |
4957 | |
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4972 | do | |
4973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4976 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4978 | else |
ad6254c5 | 4979 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4980 | /* confdefs.h. */ |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
8a2fc586 AK |
4985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4987 | #define $ac_func innocuous_$ac_func | |
4988 | ||
ad6254c5 AK |
4989 | /* System header to define __stub macros and hopefully few prototypes, |
4990 | which can conflict with char $ac_func (); below. | |
4991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4992 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 4993 | |
ad6254c5 AK |
4994 | #ifdef __STDC__ |
4995 | # include <limits.h> | |
4996 | #else | |
4997 | # include <assert.h> | |
4998 | #endif | |
8a2fc586 AK |
4999 | |
5000 | #undef $ac_func | |
5001 | ||
ad6254c5 AK |
5002 | /* Override any gcc2 internal prototype to avoid an error. */ |
5003 | #ifdef __cplusplus | |
5004 | extern "C" | |
5005 | { | |
5006 | #endif | |
5007 | /* We use char because int might match the return type of a gcc2 | |
5008 | builtin and then its argument prototype would still apply. */ | |
5009 | char $ac_func (); | |
5010 | /* The GNU C library defines this for functions which it implements | |
5011 | to always fail with ENOSYS. Some functions are actually named | |
5012 | something starting with __ and the normal name is an alias. */ | |
5013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5014 | choke me | |
5015 | #else | |
5016 | char (*f) () = $ac_func; | |
5017 | #endif | |
5018 | #ifdef __cplusplus | |
5019 | } | |
5020 | #endif | |
5021 | ||
5022 | int | |
5023 | main () | |
5024 | { | |
5025 | return f != $ac_func; | |
5026 | ; | |
5027 | return 0; | |
5028 | } | |
5029 | _ACEOF | |
5030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5032 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5033 | ac_status=$? |
8a2fc586 AK |
5034 | grep -v '^ *+' conftest.er1 >conftest.err |
5035 | rm -f conftest.er1 | |
5036 | cat conftest.err >&5 | |
ad6254c5 AK |
5037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5038 | (exit $ac_status); } && | |
8a2fc586 AK |
5039 | { ac_try='test -z "$ac_c_werror_flag" |
5040 | || test ! -s conftest.err' | |
5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5042 | (eval $ac_try) 2>&5 | |
5043 | ac_status=$? | |
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5045 | (exit $ac_status); }; } && | |
5046 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5048 | (eval $ac_try) 2>&5 | |
5049 | ac_status=$? | |
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5051 | (exit $ac_status); }; }; then | |
5052 | eval "$as_ac_var=yes" | |
795ca3e5 | 5053 | else |
ad6254c5 AK |
5054 | echo "$as_me: failed program was:" >&5 |
5055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5056 | ||
5057 | eval "$as_ac_var=no" | |
795ca3e5 | 5058 | fi |
8a2fc586 AK |
5059 | rm -f conftest.err conftest.$ac_objext \ |
5060 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5061 | fi |
5062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5065 | cat >>confdefs.h <<_ACEOF | |
5066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5067 | _ACEOF | |
5068 | ||
5069 | else | |
5070 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
5071 | echo "$as_me: error: bailing out" >&2;} | |
5072 | { (exit 1); exit 1; }; } | |
5073 | fi | |
5074 | done | |
795ca3e5 | 5075 | |
ad6254c5 AK |
5076 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5077 | # for constant arguments. Useless! | |
5078 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
5079 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5080 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5082 | else | |
5083 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5084 | /* confdefs.h. */ |
5085 | _ACEOF | |
5086 | cat confdefs.h >>conftest.$ac_ext | |
5087 | cat >>conftest.$ac_ext <<_ACEOF | |
5088 | /* end confdefs.h. */ | |
5089 | #include <alloca.h> | |
5090 | int | |
5091 | main () | |
5092 | { | |
5093 | char *p = (char *) alloca (2 * sizeof (int)); | |
5094 | ; | |
5095 | return 0; | |
5096 | } | |
5097 | _ACEOF | |
5098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5100 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5101 | ac_status=$? |
8a2fc586 AK |
5102 | grep -v '^ *+' conftest.er1 >conftest.err |
5103 | rm -f conftest.er1 | |
5104 | cat conftest.err >&5 | |
ad6254c5 AK |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5106 | (exit $ac_status); } && | |
8a2fc586 AK |
5107 | { ac_try='test -z "$ac_c_werror_flag" |
5108 | || test ! -s conftest.err' | |
5109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5110 | (eval $ac_try) 2>&5 | |
5111 | ac_status=$? | |
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5113 | (exit $ac_status); }; } && | |
5114 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5116 | (eval $ac_try) 2>&5 | |
5117 | ac_status=$? | |
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5119 | (exit $ac_status); }; }; then | |
5120 | ac_cv_working_alloca_h=yes | |
5121 | else | |
5122 | echo "$as_me: failed program was:" >&5 | |
5123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5124 | |
ad6254c5 AK |
5125 | ac_cv_working_alloca_h=no |
5126 | fi | |
8a2fc586 AK |
5127 | rm -f conftest.err conftest.$ac_objext \ |
5128 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5129 | fi |
5130 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5131 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5132 | if test $ac_cv_working_alloca_h = yes; then | |
5133 | ||
5134 | cat >>confdefs.h <<\_ACEOF | |
5135 | #define HAVE_ALLOCA_H 1 | |
5136 | _ACEOF | |
5137 | ||
5138 | fi | |
5139 | ||
5140 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5141 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5142 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5144 | else | |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5146 | /* confdefs.h. */ |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
5150 | /* end confdefs.h. */ | |
5151 | #ifdef __GNUC__ | |
5152 | # define alloca __builtin_alloca | |
5153 | #else | |
5154 | # ifdef _MSC_VER | |
5155 | # include <malloc.h> | |
5156 | # define alloca _alloca | |
5157 | # else | |
5158 | # if HAVE_ALLOCA_H | |
5159 | # include <alloca.h> | |
5160 | # else | |
5161 | # ifdef _AIX | |
5162 | #pragma alloca | |
5163 | # else | |
5164 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5165 | char *alloca (); | |
5166 | # endif | |
5167 | # endif | |
5168 | # endif | |
5169 | # endif | |
5170 | #endif | |
5171 | ||
5172 | int | |
5173 | main () | |
5174 | { | |
5175 | char *p = (char *) alloca (1); | |
5176 | ; | |
5177 | return 0; | |
5178 | } | |
5179 | _ACEOF | |
5180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5182 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5183 | ac_status=$? |
8a2fc586 AK |
5184 | grep -v '^ *+' conftest.er1 >conftest.err |
5185 | rm -f conftest.er1 | |
5186 | cat conftest.err >&5 | |
ad6254c5 AK |
5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5188 | (exit $ac_status); } && | |
8a2fc586 AK |
5189 | { ac_try='test -z "$ac_c_werror_flag" |
5190 | || test ! -s conftest.err' | |
5191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5192 | (eval $ac_try) 2>&5 | |
5193 | ac_status=$? | |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); }; } && | |
5196 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5198 | (eval $ac_try) 2>&5 | |
5199 | ac_status=$? | |
5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5201 | (exit $ac_status); }; }; then | |
5202 | ac_cv_func_alloca_works=yes | |
5203 | else | |
5204 | echo "$as_me: failed program was:" >&5 | |
5205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5206 | ||
5207 | ac_cv_func_alloca_works=no | |
5208 | fi | |
8a2fc586 AK |
5209 | rm -f conftest.err conftest.$ac_objext \ |
5210 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5211 | fi |
5212 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5213 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5214 | ||
5215 | if test $ac_cv_func_alloca_works = yes; then | |
5216 | ||
5217 | cat >>confdefs.h <<\_ACEOF | |
5218 | #define HAVE_ALLOCA 1 | |
5219 | _ACEOF | |
5220 | ||
5221 | else | |
5222 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5223 | # that cause trouble. Some versions do not even contain alloca or | |
5224 | # contain a buggy version. If you still want to use their alloca, | |
5225 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5226 | ||
5227 | ALLOCA=alloca.$ac_objext | |
5228 | ||
5229 | cat >>confdefs.h <<\_ACEOF | |
5230 | #define C_ALLOCA 1 | |
5231 | _ACEOF | |
5232 | ||
5233 | ||
5234 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5235 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5236 | if test "${ac_cv_os_cray+set}" = set; then | |
5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5238 | else | |
5239 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5240 | /* confdefs.h. */ |
5241 | _ACEOF | |
5242 | cat confdefs.h >>conftest.$ac_ext | |
5243 | cat >>conftest.$ac_ext <<_ACEOF | |
5244 | /* end confdefs.h. */ | |
5245 | #if defined(CRAY) && ! defined(CRAY2) | |
5246 | webecray | |
5247 | #else | |
5248 | wenotbecray | |
5249 | #endif | |
5250 | ||
5251 | _ACEOF | |
795ca3e5 | 5252 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5253 | $EGREP "webecray" >/dev/null 2>&1; then |
5254 | ac_cv_os_cray=yes | |
5255 | else | |
5256 | ac_cv_os_cray=no | |
795ca3e5 AK |
5257 | fi |
5258 | rm -f conftest* | |
5259 | ||
795ca3e5 | 5260 | fi |
ad6254c5 AK |
5261 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5262 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5263 | if test $ac_cv_os_cray = yes; then | |
5264 | for ac_func in _getb67 GETB67 getb67; do | |
5265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5266 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5268 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5270 | else | |
5271 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5272 | /* confdefs.h. */ |
5273 | _ACEOF | |
5274 | cat confdefs.h >>conftest.$ac_ext | |
5275 | cat >>conftest.$ac_ext <<_ACEOF | |
5276 | /* end confdefs.h. */ | |
8a2fc586 AK |
5277 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5279 | #define $ac_func innocuous_$ac_func | |
5280 | ||
ad6254c5 AK |
5281 | /* System header to define __stub macros and hopefully few prototypes, |
5282 | which can conflict with char $ac_func (); below. | |
5283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5284 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5285 | |
ad6254c5 AK |
5286 | #ifdef __STDC__ |
5287 | # include <limits.h> | |
5288 | #else | |
5289 | # include <assert.h> | |
5290 | #endif | |
8a2fc586 AK |
5291 | |
5292 | #undef $ac_func | |
5293 | ||
ad6254c5 AK |
5294 | /* Override any gcc2 internal prototype to avoid an error. */ |
5295 | #ifdef __cplusplus | |
5296 | extern "C" | |
5297 | { | |
5298 | #endif | |
5299 | /* We use char because int might match the return type of a gcc2 | |
5300 | builtin and then its argument prototype would still apply. */ | |
5301 | char $ac_func (); | |
5302 | /* The GNU C library defines this for functions which it implements | |
5303 | to always fail with ENOSYS. Some functions are actually named | |
5304 | something starting with __ and the normal name is an alias. */ | |
5305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5306 | choke me | |
5307 | #else | |
5308 | char (*f) () = $ac_func; | |
5309 | #endif | |
5310 | #ifdef __cplusplus | |
5311 | } | |
5312 | #endif | |
5313 | ||
5314 | int | |
5315 | main () | |
5316 | { | |
5317 | return f != $ac_func; | |
5318 | ; | |
5319 | return 0; | |
5320 | } | |
5321 | _ACEOF | |
5322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5324 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5325 | ac_status=$? |
8a2fc586 AK |
5326 | grep -v '^ *+' conftest.er1 >conftest.err |
5327 | rm -f conftest.er1 | |
5328 | cat conftest.err >&5 | |
ad6254c5 AK |
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5330 | (exit $ac_status); } && | |
8a2fc586 AK |
5331 | { ac_try='test -z "$ac_c_werror_flag" |
5332 | || test ! -s conftest.err' | |
5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5334 | (eval $ac_try) 2>&5 | |
5335 | ac_status=$? | |
5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5337 | (exit $ac_status); }; } && | |
5338 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5340 | (eval $ac_try) 2>&5 | |
5341 | ac_status=$? | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); }; }; then | |
5344 | eval "$as_ac_var=yes" | |
5345 | else | |
5346 | echo "$as_me: failed program was:" >&5 | |
5347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5348 | ||
5349 | eval "$as_ac_var=no" | |
5350 | fi | |
8a2fc586 AK |
5351 | rm -f conftest.err conftest.$ac_objext \ |
5352 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5353 | fi |
5354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5355 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5356 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5357 | |
ad6254c5 AK |
5358 | cat >>confdefs.h <<_ACEOF |
5359 | #define CRAY_STACKSEG_END $ac_func | |
5360 | _ACEOF | |
5361 | ||
5362 | break | |
5363 | fi | |
5364 | ||
5365 | done | |
5366 | fi | |
5367 | ||
5368 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5369 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5370 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5372 | else | |
5373 | if test "$cross_compiling" = yes; then | |
5374 | ac_cv_c_stack_direction=0 | |
5375 | else | |
5376 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5377 | /* confdefs.h. */ |
5378 | _ACEOF | |
5379 | cat confdefs.h >>conftest.$ac_ext | |
5380 | cat >>conftest.$ac_ext <<_ACEOF | |
5381 | /* end confdefs.h. */ | |
5382 | int | |
5383 | find_stack_direction () | |
5384 | { | |
5385 | static char *addr = 0; | |
5386 | auto char dummy; | |
5387 | if (addr == 0) | |
5388 | { | |
5389 | addr = &dummy; | |
5390 | return find_stack_direction (); | |
5391 | } | |
5392 | else | |
5393 | return (&dummy > addr) ? 1 : -1; | |
5394 | } | |
5395 | ||
5396 | int | |
5397 | main () | |
5398 | { | |
5399 | exit (find_stack_direction () < 0); | |
5400 | } | |
5401 | _ACEOF | |
5402 | rm -f conftest$ac_exeext | |
5403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5404 | (eval $ac_link) 2>&5 | |
5405 | ac_status=$? | |
5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5409 | (eval $ac_try) 2>&5 | |
5410 | ac_status=$? | |
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5412 | (exit $ac_status); }; }; then | |
5413 | ac_cv_c_stack_direction=1 | |
5414 | else | |
5415 | echo "$as_me: program exited with status $ac_status" >&5 | |
5416 | echo "$as_me: failed program was:" >&5 | |
5417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5418 | ||
5419 | ( exit $ac_status ) | |
5420 | ac_cv_c_stack_direction=-1 | |
5421 | fi | |
8a2fc586 | 5422 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5423 | fi |
5424 | fi | |
5425 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5426 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5427 | ||
5428 | cat >>confdefs.h <<_ACEOF | |
5429 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5430 | _ACEOF | |
5431 | ||
5432 | ||
5433 | fi | |
5434 | ||
5435 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5436 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5437 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5439 | else | |
5440 | if test "$cross_compiling" = yes; then | |
5441 | ac_cv_func_closedir_void=yes | |
5442 | else | |
5443 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5444 | /* confdefs.h. */ |
5445 | _ACEOF | |
5446 | cat confdefs.h >>conftest.$ac_ext | |
5447 | cat >>conftest.$ac_ext <<_ACEOF | |
5448 | /* end confdefs.h. */ | |
5449 | $ac_includes_default | |
5450 | #include <$ac_header_dirent> | |
5451 | #ifndef __cplusplus | |
5452 | int closedir (); | |
5453 | #endif | |
5454 | ||
5455 | int | |
5456 | main () | |
5457 | { | |
5458 | exit (closedir (opendir (".")) != 0); | |
5459 | ; | |
5460 | return 0; | |
5461 | } | |
5462 | _ACEOF | |
5463 | rm -f conftest$ac_exeext | |
5464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5465 | (eval $ac_link) 2>&5 | |
5466 | ac_status=$? | |
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5470 | (eval $ac_try) 2>&5 | |
5471 | ac_status=$? | |
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5473 | (exit $ac_status); }; }; then | |
5474 | ac_cv_func_closedir_void=no | |
5475 | else | |
5476 | echo "$as_me: program exited with status $ac_status" >&5 | |
5477 | echo "$as_me: failed program was:" >&5 | |
5478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5479 | ||
5480 | ( exit $ac_status ) | |
5481 | ac_cv_func_closedir_void=yes | |
5482 | fi | |
8a2fc586 | 5483 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5484 | fi |
5485 | fi | |
5486 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5487 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5488 | if test $ac_cv_func_closedir_void = yes; then | |
5489 | ||
5490 | cat >>confdefs.h <<\_ACEOF | |
5491 | #define CLOSEDIR_VOID 1 | |
5492 | _ACEOF | |
5493 | ||
5494 | fi | |
5495 | ||
5496 | ||
5497 | ||
5498 | for ac_header in unistd.h vfork.h | |
5499 | do | |
5500 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5502 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5506 | fi | |
5507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5508 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5509 | else | |
5510 | # Is the header compilable? | |
5511 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5512 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5513 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5514 | /* confdefs.h. */ |
5515 | _ACEOF | |
5516 | cat confdefs.h >>conftest.$ac_ext | |
5517 | cat >>conftest.$ac_ext <<_ACEOF | |
5518 | /* end confdefs.h. */ | |
5519 | $ac_includes_default | |
5520 | #include <$ac_header> | |
5521 | _ACEOF | |
5522 | rm -f conftest.$ac_objext | |
5523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 5524 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 5525 | ac_status=$? |
8a2fc586 AK |
5526 | grep -v '^ *+' conftest.er1 >conftest.err |
5527 | rm -f conftest.er1 | |
5528 | cat conftest.err >&5 | |
ad6254c5 AK |
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5530 | (exit $ac_status); } && | |
8a2fc586 AK |
5531 | { ac_try='test -z "$ac_c_werror_flag" |
5532 | || test ! -s conftest.err' | |
5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5534 | (eval $ac_try) 2>&5 | |
5535 | ac_status=$? | |
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5537 | (exit $ac_status); }; } && | |
5538 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5540 | (eval $ac_try) 2>&5 | |
5541 | ac_status=$? | |
5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5543 | (exit $ac_status); }; }; then | |
5544 | ac_header_compiler=yes | |
5545 | else | |
5546 | echo "$as_me: failed program was:" >&5 | |
5547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5548 | ||
5549 | ac_header_compiler=no | |
5550 | fi | |
8a2fc586 | 5551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5552 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5553 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5554 | ||
5555 | # Is the header present? | |
5556 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5557 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5558 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5559 | /* confdefs.h. */ |
5560 | _ACEOF | |
5561 | cat confdefs.h >>conftest.$ac_ext | |
5562 | cat >>conftest.$ac_ext <<_ACEOF | |
5563 | /* end confdefs.h. */ | |
5564 | #include <$ac_header> | |
5565 | _ACEOF | |
5566 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5567 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5568 | ac_status=$? | |
5569 | grep -v '^ *+' conftest.er1 >conftest.err | |
5570 | rm -f conftest.er1 | |
5571 | cat conftest.err >&5 | |
5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5573 | (exit $ac_status); } >/dev/null; then | |
5574 | if test -s conftest.err; then | |
5575 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 5576 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
5577 | else |
5578 | ac_cpp_err= | |
795ca3e5 | 5579 | fi |
ad6254c5 AK |
5580 | else |
5581 | ac_cpp_err=yes | |
5582 | fi | |
5583 | if test -z "$ac_cpp_err"; then | |
5584 | ac_header_preproc=yes | |
5585 | else | |
5586 | echo "$as_me: failed program was:" >&5 | |
5587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5588 | ||
5589 | ac_header_preproc=no | |
5590 | fi | |
5591 | rm -f conftest.err conftest.$ac_ext | |
5592 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5593 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5594 | ||
5595 | # So? What about this header? | |
8a2fc586 AK |
5596 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5597 | yes:no: ) | |
ad6254c5 AK |
5598 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5599 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
5600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5601 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5602 | ac_header_preproc=yes | |
ad6254c5 | 5603 | ;; |
8a2fc586 | 5604 | no:yes:* ) |
ad6254c5 AK |
5605 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5606 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
5607 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5608 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5609 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5610 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5611 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5612 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
5613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5614 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
5615 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5616 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
5617 | ( |
5618 | cat <<\_ASBOX | |
8a2fc586 AK |
5619 | ## ------------------------------------------ ## |
5620 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5621 | ## ------------------------------------------ ## | |
ad6254c5 AK |
5622 | _ASBOX |
5623 | ) | | |
5624 | sed "s/^/$as_me: WARNING: /" >&2 | |
5625 | ;; | |
5626 | esac | |
5627 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5631 | else | |
8a2fc586 | 5632 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
5633 | fi |
5634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5636 | ||
795ca3e5 | 5637 | fi |
ad6254c5 AK |
5638 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5639 | cat >>confdefs.h <<_ACEOF | |
5640 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5641 | _ACEOF | |
5642 | ||
5643 | fi | |
5644 | ||
5645 | done | |
795ca3e5 | 5646 | |
ad6254c5 AK |
5647 | |
5648 | ||
5649 | for ac_func in fork vfork | |
5650 | do | |
5651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5654 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5656 | else |
ad6254c5 | 5657 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5658 | /* confdefs.h. */ |
5659 | _ACEOF | |
5660 | cat confdefs.h >>conftest.$ac_ext | |
5661 | cat >>conftest.$ac_ext <<_ACEOF | |
5662 | /* end confdefs.h. */ | |
8a2fc586 AK |
5663 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5665 | #define $ac_func innocuous_$ac_func | |
5666 | ||
ad6254c5 AK |
5667 | /* System header to define __stub macros and hopefully few prototypes, |
5668 | which can conflict with char $ac_func (); below. | |
5669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5670 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5671 | |
ad6254c5 AK |
5672 | #ifdef __STDC__ |
5673 | # include <limits.h> | |
5674 | #else | |
5675 | # include <assert.h> | |
795ca3e5 | 5676 | #endif |
8a2fc586 AK |
5677 | |
5678 | #undef $ac_func | |
5679 | ||
ad6254c5 | 5680 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5681 | #ifdef __cplusplus |
ad6254c5 AK |
5682 | extern "C" |
5683 | { | |
5684 | #endif | |
5685 | /* We use char because int might match the return type of a gcc2 | |
5686 | builtin and then its argument prototype would still apply. */ | |
5687 | char $ac_func (); | |
5688 | /* The GNU C library defines this for functions which it implements | |
5689 | to always fail with ENOSYS. Some functions are actually named | |
5690 | something starting with __ and the normal name is an alias. */ | |
5691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5692 | choke me | |
795ca3e5 | 5693 | #else |
ad6254c5 AK |
5694 | char (*f) () = $ac_func; |
5695 | #endif | |
5696 | #ifdef __cplusplus | |
5697 | } | |
795ca3e5 AK |
5698 | #endif |
5699 | ||
ad6254c5 AK |
5700 | int |
5701 | main () | |
5702 | { | |
5703 | return f != $ac_func; | |
5704 | ; | |
5705 | return 0; | |
5706 | } | |
5707 | _ACEOF | |
5708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5710 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5711 | ac_status=$? |
8a2fc586 AK |
5712 | grep -v '^ *+' conftest.er1 >conftest.err |
5713 | rm -f conftest.er1 | |
5714 | cat conftest.err >&5 | |
ad6254c5 AK |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5716 | (exit $ac_status); } && | |
8a2fc586 AK |
5717 | { ac_try='test -z "$ac_c_werror_flag" |
5718 | || test ! -s conftest.err' | |
5719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5720 | (eval $ac_try) 2>&5 | |
5721 | ac_status=$? | |
5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5723 | (exit $ac_status); }; } && | |
5724 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5726 | (eval $ac_try) 2>&5 | |
5727 | ac_status=$? | |
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); }; }; then | |
5730 | eval "$as_ac_var=yes" | |
795ca3e5 | 5731 | else |
ad6254c5 AK |
5732 | echo "$as_me: failed program was:" >&5 |
5733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5734 | ||
5735 | eval "$as_ac_var=no" | |
795ca3e5 | 5736 | fi |
8a2fc586 AK |
5737 | rm -f conftest.err conftest.$ac_objext \ |
5738 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5739 | fi |
5740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5741 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5742 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5743 | cat >>confdefs.h <<_ACEOF | |
5744 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5745 | _ACEOF | |
5746 | ||
5747 | fi | |
5748 | done | |
5749 | ||
5750 | if test "x$ac_cv_func_fork" = xyes; then | |
5751 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5752 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5753 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5755 | else | |
5756 | if test "$cross_compiling" = yes; then | |
5757 | ac_cv_func_fork_works=cross | |
5758 | else | |
5759 | cat >conftest.$ac_ext <<_ACEOF | |
5760 | /* By Ruediger Kuhlmann. */ | |
5761 | #include <sys/types.h> | |
5762 | #if HAVE_UNISTD_H | |
5763 | # include <unistd.h> | |
5764 | #endif | |
5765 | /* Some systems only have a dummy stub for fork() */ | |
5766 | int main () | |
5767 | { | |
8a2fc586 AK |
5768 | if (fork() < 0) |
5769 | exit (1); | |
5770 | exit (0); | |
ad6254c5 AK |
5771 | } |
5772 | _ACEOF | |
5773 | rm -f conftest$ac_exeext | |
5774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5775 | (eval $ac_link) 2>&5 | |
5776 | ac_status=$? | |
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5780 | (eval $ac_try) 2>&5 | |
5781 | ac_status=$? | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); }; }; then | |
5784 | ac_cv_func_fork_works=yes | |
5785 | else | |
5786 | echo "$as_me: program exited with status $ac_status" >&5 | |
5787 | echo "$as_me: failed program was:" >&5 | |
5788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5789 | ||
5790 | ( exit $ac_status ) | |
5791 | ac_cv_func_fork_works=no | |
5792 | fi | |
8a2fc586 | 5793 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5794 | fi |
5795 | fi | |
5796 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5797 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5798 | ||
5799 | else | |
5800 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5801 | fi | |
5802 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5803 | case $host in | |
5804 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5805 | # Override, as these systems have only a dummy fork() stub | |
5806 | ac_cv_func_fork_works=no | |
5807 | ;; | |
5808 | *) | |
5809 | ac_cv_func_fork_works=yes | |
5810 | ;; | |
5811 | esac | |
5812 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5813 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5814 | fi | |
5815 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5816 | if test "x$ac_cv_func_vfork" = xyes; then | |
5817 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5818 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5819 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5821 | else | |
5822 | if test "$cross_compiling" = yes; then | |
5823 | ac_cv_func_vfork_works=cross | |
5824 | else | |
5825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5826 | /* confdefs.h. */ |
5827 | _ACEOF | |
5828 | cat confdefs.h >>conftest.$ac_ext | |
5829 | cat >>conftest.$ac_ext <<_ACEOF | |
5830 | /* end confdefs.h. */ | |
5831 | /* Thanks to Paul Eggert for this test. */ | |
5832 | #include <stdio.h> | |
5833 | #include <stdlib.h> | |
5834 | #include <sys/types.h> | |
5835 | #include <sys/stat.h> | |
5836 | #include <sys/wait.h> | |
5837 | #if HAVE_UNISTD_H | |
5838 | # include <unistd.h> | |
5839 | #endif | |
5840 | #if HAVE_VFORK_H | |
5841 | # include <vfork.h> | |
5842 | #endif | |
5843 | /* On some sparc systems, changes by the child to local and incoming | |
5844 | argument registers are propagated back to the parent. The compiler | |
5845 | is told about this with #include <vfork.h>, but some compilers | |
5846 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5847 | static variable whose address is put into a register that is | |
5848 | clobbered by the vfork. */ | |
5849 | static void | |
5850 | #ifdef __cplusplus | |
5851 | sparc_address_test (int arg) | |
5852 | # else | |
5853 | sparc_address_test (arg) int arg; | |
5854 | #endif | |
5855 | { | |
5856 | static pid_t child; | |
5857 | if (!child) { | |
5858 | child = vfork (); | |
5859 | if (child < 0) { | |
5860 | perror ("vfork"); | |
5861 | _exit(2); | |
5862 | } | |
5863 | if (!child) { | |
5864 | arg = getpid(); | |
5865 | write(-1, "", 0); | |
5866 | _exit (arg); | |
5867 | } | |
5868 | } | |
5869 | } | |
5870 | ||
5871 | int | |
5872 | main () | |
5873 | { | |
5874 | pid_t parent = getpid (); | |
5875 | pid_t child; | |
5876 | ||
5877 | sparc_address_test (0); | |
5878 | ||
5879 | child = vfork (); | |
5880 | ||
5881 | if (child == 0) { | |
5882 | /* Here is another test for sparc vfork register problems. This | |
5883 | test uses lots of local variables, at least as many local | |
5884 | variables as main has allocated so far including compiler | |
5885 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5886 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5887 | reuse the register of parent for one of the local variables, | |
5888 | since it will think that parent can't possibly be used any more | |
5889 | in this routine. Assigning to the local variable will thus | |
5890 | munge parent in the parent process. */ | |
5891 | pid_t | |
5892 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5893 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5894 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5895 | use the same hardware register for all 8 local variables. */ | |
5896 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5897 | || p != p5 || p != p6 || p != p7) | |
5898 | _exit(1); | |
5899 | ||
5900 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5901 | from child file descriptors. If the child closes a descriptor | |
5902 | before it execs or exits, this munges the parent's descriptor | |
5903 | as well. Test for this by closing stdout in the child. */ | |
5904 | _exit(close(fileno(stdout)) != 0); | |
5905 | } else { | |
5906 | int status; | |
5907 | struct stat st; | |
5908 | ||
5909 | while (wait(&status) != child) | |
5910 | ; | |
5911 | exit( | |
5912 | /* Was there some problem with vforking? */ | |
5913 | child < 0 | |
5914 | ||
5915 | /* Did the child fail? (This shouldn't happen.) */ | |
5916 | || status | |
5917 | ||
5918 | /* Did the vfork/compiler bug occur? */ | |
5919 | || parent != getpid() | |
5920 | ||
5921 | /* Did the file descriptor bug occur? */ | |
5922 | || fstat(fileno(stdout), &st) != 0 | |
5923 | ); | |
5924 | } | |
5925 | } | |
5926 | _ACEOF | |
5927 | rm -f conftest$ac_exeext | |
5928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5929 | (eval $ac_link) 2>&5 | |
5930 | ac_status=$? | |
5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5934 | (eval $ac_try) 2>&5 | |
5935 | ac_status=$? | |
5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5937 | (exit $ac_status); }; }; then | |
5938 | ac_cv_func_vfork_works=yes | |
5939 | else | |
5940 | echo "$as_me: program exited with status $ac_status" >&5 | |
5941 | echo "$as_me: failed program was:" >&5 | |
5942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5943 | ||
5944 | ( exit $ac_status ) | |
5945 | ac_cv_func_vfork_works=no | |
5946 | fi | |
8a2fc586 | 5947 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5948 | fi |
5949 | fi | |
5950 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5951 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5952 | ||
5953 | fi; | |
5954 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 5955 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
5956 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5957 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5958 | fi | |
5959 | ||
5960 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5961 | ||
5962 | cat >>confdefs.h <<\_ACEOF | |
5963 | #define HAVE_WORKING_VFORK 1 | |
5964 | _ACEOF | |
5965 | ||
5966 | else | |
5967 | ||
5968 | cat >>confdefs.h <<\_ACEOF | |
5969 | #define vfork fork | |
5970 | _ACEOF | |
5971 | ||
5972 | fi | |
5973 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5974 | ||
5975 | cat >>confdefs.h <<\_ACEOF | |
5976 | #define HAVE_WORKING_FORK 1 | |
5977 | _ACEOF | |
5978 | ||
5979 | fi | |
5980 | ||
5981 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5982 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5983 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5985 | else | |
5986 | rm -f conftest.sym conftest.file | |
5987 | echo >conftest.file | |
5988 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5989 | if test "$cross_compiling" = yes; then | |
5990 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5991 | else | |
5992 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5993 | /* confdefs.h. */ |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
5998 | $ac_includes_default | |
5999 | int | |
6000 | main () | |
6001 | { | |
6002 | struct stat sbuf; | |
6003 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6004 | That is better in the sense that it means we will not |
6005 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
6006 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
6007 | ; | |
6008 | return 0; | |
6009 | } | |
6010 | _ACEOF | |
6011 | rm -f conftest$ac_exeext | |
6012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6013 | (eval $ac_link) 2>&5 | |
6014 | ac_status=$? | |
6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6016 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6018 | (eval $ac_try) 2>&5 | |
6019 | ac_status=$? | |
6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6021 | (exit $ac_status); }; }; then | |
6022 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6023 | else | |
6024 | echo "$as_me: program exited with status $ac_status" >&5 | |
6025 | echo "$as_me: failed program was:" >&5 | |
6026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6027 | ||
6028 | ( exit $ac_status ) | |
6029 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6030 | fi | |
8a2fc586 | 6031 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6032 | fi |
6033 | else | |
6034 | # If the `ln -s' command failed, then we probably don't even | |
6035 | # have an lstat function. | |
6036 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6037 | fi | |
6038 | rm -f conftest.sym conftest.file | |
6039 | ||
6040 | fi | |
6041 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6042 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
6043 | ||
6044 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6045 | ||
6046 | cat >>confdefs.h <<_ACEOF | |
6047 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6048 | _ACEOF | |
6049 | ||
6050 | ||
6051 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
8a2fc586 AK |
6052 | case $LIBOBJS in |
6053 | "lstat.$ac_objext" | \ | |
6054 | *" lstat.$ac_objext" | \ | |
6055 | "lstat.$ac_objext "* | \ | |
6056 | *" lstat.$ac_objext "* ) ;; | |
6057 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6058 | esac | |
6059 | ||
ad6254c5 AK |
6060 | fi |
6061 | ||
6062 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
6063 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
6064 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
6065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6066 | else | |
6067 | if test "$cross_compiling" = yes; then | |
6068 | ac_cv_func_lstat_empty_string_bug=yes | |
6069 | else | |
6070 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6071 | /* confdefs.h. */ |
6072 | _ACEOF | |
6073 | cat confdefs.h >>conftest.$ac_ext | |
6074 | cat >>conftest.$ac_ext <<_ACEOF | |
6075 | /* end confdefs.h. */ | |
6076 | $ac_includes_default | |
6077 | int | |
6078 | main () | |
6079 | { | |
6080 | struct stat sbuf; | |
6081 | exit (lstat ("", &sbuf) ? 1 : 0); | |
6082 | ; | |
6083 | return 0; | |
6084 | } | |
6085 | _ACEOF | |
6086 | rm -f conftest$ac_exeext | |
6087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6088 | (eval $ac_link) 2>&5 | |
6089 | ac_status=$? | |
6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6093 | (eval $ac_try) 2>&5 | |
6094 | ac_status=$? | |
6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6096 | (exit $ac_status); }; }; then | |
6097 | ac_cv_func_lstat_empty_string_bug=yes | |
6098 | else | |
6099 | echo "$as_me: program exited with status $ac_status" >&5 | |
6100 | echo "$as_me: failed program was:" >&5 | |
6101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6102 | ||
6103 | ( exit $ac_status ) | |
6104 | ac_cv_func_lstat_empty_string_bug=no | |
6105 | fi | |
8a2fc586 | 6106 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6107 | fi |
6108 | fi | |
6109 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6110 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
6111 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
8a2fc586 AK |
6112 | case $LIBOBJS in |
6113 | "lstat.$ac_objext" | \ | |
6114 | *" lstat.$ac_objext" | \ | |
6115 | "lstat.$ac_objext "* | \ | |
6116 | *" lstat.$ac_objext "* ) ;; | |
6117 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6118 | esac | |
6119 | ||
ad6254c5 AK |
6120 | |
6121 | cat >>confdefs.h <<_ACEOF | |
6122 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6123 | _ACEOF | |
6124 | ||
6125 | fi | |
6126 | ||
6127 | ||
6128 | for ac_header in stdlib.h | |
6129 | do | |
6130 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6131 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6136 | fi | |
6137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6139 | else | |
6140 | # Is the header compilable? | |
6141 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6142 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6143 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6144 | /* confdefs.h. */ |
6145 | _ACEOF | |
6146 | cat confdefs.h >>conftest.$ac_ext | |
6147 | cat >>conftest.$ac_ext <<_ACEOF | |
6148 | /* end confdefs.h. */ | |
6149 | $ac_includes_default | |
6150 | #include <$ac_header> | |
6151 | _ACEOF | |
6152 | rm -f conftest.$ac_objext | |
6153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6154 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6155 | ac_status=$? |
8a2fc586 AK |
6156 | grep -v '^ *+' conftest.er1 >conftest.err |
6157 | rm -f conftest.er1 | |
6158 | cat conftest.err >&5 | |
ad6254c5 AK |
6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6160 | (exit $ac_status); } && | |
8a2fc586 AK |
6161 | { ac_try='test -z "$ac_c_werror_flag" |
6162 | || test ! -s conftest.err' | |
6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6164 | (eval $ac_try) 2>&5 | |
6165 | ac_status=$? | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6167 | (exit $ac_status); }; } && | |
6168 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6170 | (eval $ac_try) 2>&5 | |
6171 | ac_status=$? | |
6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6173 | (exit $ac_status); }; }; then | |
6174 | ac_header_compiler=yes | |
6175 | else | |
6176 | echo "$as_me: failed program was:" >&5 | |
6177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6178 | ||
6179 | ac_header_compiler=no | |
6180 | fi | |
8a2fc586 | 6181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6184 | ||
6185 | # Is the header present? | |
6186 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6187 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6188 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6189 | /* confdefs.h. */ |
6190 | _ACEOF | |
6191 | cat confdefs.h >>conftest.$ac_ext | |
6192 | cat >>conftest.$ac_ext <<_ACEOF | |
6193 | /* end confdefs.h. */ | |
6194 | #include <$ac_header> | |
6195 | _ACEOF | |
6196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6198 | ac_status=$? | |
6199 | grep -v '^ *+' conftest.er1 >conftest.err | |
6200 | rm -f conftest.er1 | |
6201 | cat conftest.err >&5 | |
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6203 | (exit $ac_status); } >/dev/null; then | |
6204 | if test -s conftest.err; then | |
6205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6207 | else |
6208 | ac_cpp_err= | |
6209 | fi | |
6210 | else | |
6211 | ac_cpp_err=yes | |
6212 | fi | |
6213 | if test -z "$ac_cpp_err"; then | |
6214 | ac_header_preproc=yes | |
6215 | else | |
6216 | echo "$as_me: failed program was:" >&5 | |
6217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6218 | ||
6219 | ac_header_preproc=no | |
6220 | fi | |
6221 | rm -f conftest.err conftest.$ac_ext | |
6222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6224 | ||
6225 | # So? What about this header? | |
8a2fc586 AK |
6226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6227 | yes:no: ) | |
ad6254c5 AK |
6228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6232 | ac_header_preproc=yes | |
ad6254c5 | 6233 | ;; |
8a2fc586 | 6234 | no:yes:* ) |
ad6254c5 AK |
6235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6247 | ( |
6248 | cat <<\_ASBOX | |
8a2fc586 AK |
6249 | ## ------------------------------------------ ## |
6250 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6251 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6252 | _ASBOX |
6253 | ) | | |
6254 | sed "s/^/$as_me: WARNING: /" >&2 | |
6255 | ;; | |
6256 | esac | |
6257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6261 | else | |
8a2fc586 | 6262 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6263 | fi |
6264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6266 | ||
6267 | fi | |
6268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6269 | cat >>confdefs.h <<_ACEOF | |
6270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6271 | _ACEOF | |
6272 | ||
6273 | fi | |
6274 | ||
6275 | done | |
6276 | ||
6277 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6278 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
6279 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6281 | else | |
6282 | if test "$cross_compiling" = yes; then | |
6283 | ac_cv_func_malloc_0_nonnull=no | |
6284 | else | |
6285 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6286 | /* confdefs.h. */ |
6287 | _ACEOF | |
6288 | cat confdefs.h >>conftest.$ac_ext | |
6289 | cat >>conftest.$ac_ext <<_ACEOF | |
6290 | /* end confdefs.h. */ | |
6291 | #if STDC_HEADERS || HAVE_STDLIB_H | |
6292 | # include <stdlib.h> | |
6293 | #else | |
6294 | char *malloc (); | |
6295 | #endif | |
6296 | ||
6297 | int | |
6298 | main () | |
6299 | { | |
6300 | exit (malloc (0) ? 0 : 1); | |
6301 | ; | |
6302 | return 0; | |
6303 | } | |
6304 | _ACEOF | |
6305 | rm -f conftest$ac_exeext | |
6306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6307 | (eval $ac_link) 2>&5 | |
6308 | ac_status=$? | |
6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6312 | (eval $ac_try) 2>&5 | |
6313 | ac_status=$? | |
6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6315 | (exit $ac_status); }; }; then | |
6316 | ac_cv_func_malloc_0_nonnull=yes | |
6317 | else | |
6318 | echo "$as_me: program exited with status $ac_status" >&5 | |
6319 | echo "$as_me: failed program was:" >&5 | |
6320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6321 | ||
6322 | ( exit $ac_status ) | |
6323 | ac_cv_func_malloc_0_nonnull=no | |
6324 | fi | |
8a2fc586 | 6325 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6326 | fi |
6327 | fi | |
6328 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6329 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
6330 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6331 | ||
6332 | cat >>confdefs.h <<\_ACEOF | |
6333 | #define HAVE_MALLOC 1 | |
6334 | _ACEOF | |
6335 | ||
6336 | else | |
6337 | cat >>confdefs.h <<\_ACEOF | |
6338 | #define HAVE_MALLOC 0 | |
6339 | _ACEOF | |
6340 | ||
8a2fc586 AK |
6341 | case $LIBOBJS in |
6342 | "malloc.$ac_objext" | \ | |
6343 | *" malloc.$ac_objext" | \ | |
6344 | "malloc.$ac_objext "* | \ | |
6345 | *" malloc.$ac_objext "* ) ;; | |
6346 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; | |
6347 | esac | |
6348 | ||
ad6254c5 AK |
6349 | |
6350 | cat >>confdefs.h <<\_ACEOF | |
6351 | #define malloc rpl_malloc | |
6352 | _ACEOF | |
6353 | ||
6354 | fi | |
6355 | ||
6356 | ||
6357 | ||
6358 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
6359 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
6360 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6362 | else | |
6363 | if test "$cross_compiling" = yes; then | |
6364 | ac_cv_func_memcmp_working=no | |
6365 | else | |
6366 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6367 | /* confdefs.h. */ |
6368 | _ACEOF | |
6369 | cat confdefs.h >>conftest.$ac_ext | |
6370 | cat >>conftest.$ac_ext <<_ACEOF | |
6371 | /* end confdefs.h. */ | |
8a2fc586 | 6372 | $ac_includes_default |
ad6254c5 AK |
6373 | int |
6374 | main () | |
6375 | { | |
6376 | ||
6377 | /* Some versions of memcmp are not 8-bit clean. */ | |
6378 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
6379 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6380 | exit (1); | |
6381 | ||
6382 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6383 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6384 | William Lewis provided this test program. */ | |
6385 | { | |
6386 | char foo[21]; | |
6387 | char bar[21]; | |
6388 | int i; | |
6389 | for (i = 0; i < 4; i++) | |
6390 | { | |
8a2fc586 AK |
6391 | char *a = foo + i; |
6392 | char *b = bar + i; | |
6393 | strcpy (a, "--------01111111"); | |
6394 | strcpy (b, "--------10000000"); | |
6395 | if (memcmp (a, b, 16) >= 0) | |
6396 | exit (1); | |
ad6254c5 AK |
6397 | } |
6398 | exit (0); | |
6399 | } | |
6400 | ||
6401 | ; | |
6402 | return 0; | |
6403 | } | |
6404 | _ACEOF | |
6405 | rm -f conftest$ac_exeext | |
6406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6407 | (eval $ac_link) 2>&5 | |
6408 | ac_status=$? | |
6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6412 | (eval $ac_try) 2>&5 | |
6413 | ac_status=$? | |
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6415 | (exit $ac_status); }; }; then | |
6416 | ac_cv_func_memcmp_working=yes | |
6417 | else | |
6418 | echo "$as_me: program exited with status $ac_status" >&5 | |
6419 | echo "$as_me: failed program was:" >&5 | |
6420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6421 | ||
6422 | ( exit $ac_status ) | |
6423 | ac_cv_func_memcmp_working=no | |
6424 | fi | |
8a2fc586 | 6425 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6426 | fi |
6427 | fi | |
6428 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
6429 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
8a2fc586 AK |
6430 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
6431 | "memcmp.$ac_objext" | \ | |
6432 | *" memcmp.$ac_objext" | \ | |
6433 | "memcmp.$ac_objext "* | \ | |
6434 | *" memcmp.$ac_objext "* ) ;; | |
6435 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; | |
6436 | esac | |
6437 | ||
ad6254c5 AK |
6438 | |
6439 | ||
6440 | ||
6441 | for ac_header in stdlib.h unistd.h | |
6442 | do | |
6443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6449 | fi | |
6450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6452 | else | |
6453 | # Is the header compilable? | |
6454 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6455 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6456 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6457 | /* confdefs.h. */ |
6458 | _ACEOF | |
6459 | cat confdefs.h >>conftest.$ac_ext | |
6460 | cat >>conftest.$ac_ext <<_ACEOF | |
6461 | /* end confdefs.h. */ | |
6462 | $ac_includes_default | |
6463 | #include <$ac_header> | |
6464 | _ACEOF | |
6465 | rm -f conftest.$ac_objext | |
6466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6467 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6468 | ac_status=$? |
8a2fc586 AK |
6469 | grep -v '^ *+' conftest.er1 >conftest.err |
6470 | rm -f conftest.er1 | |
6471 | cat conftest.err >&5 | |
ad6254c5 AK |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6473 | (exit $ac_status); } && | |
8a2fc586 AK |
6474 | { ac_try='test -z "$ac_c_werror_flag" |
6475 | || test ! -s conftest.err' | |
6476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6477 | (eval $ac_try) 2>&5 | |
6478 | ac_status=$? | |
6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6480 | (exit $ac_status); }; } && | |
6481 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6483 | (eval $ac_try) 2>&5 | |
6484 | ac_status=$? | |
6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6486 | (exit $ac_status); }; }; then | |
6487 | ac_header_compiler=yes | |
6488 | else | |
6489 | echo "$as_me: failed program was:" >&5 | |
6490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6491 | ||
6492 | ac_header_compiler=no | |
6493 | fi | |
8a2fc586 | 6494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6497 | ||
6498 | # Is the header present? | |
6499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6501 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6502 | /* confdefs.h. */ |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
6507 | #include <$ac_header> | |
6508 | _ACEOF | |
6509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6511 | ac_status=$? | |
6512 | grep -v '^ *+' conftest.er1 >conftest.err | |
6513 | rm -f conftest.er1 | |
6514 | cat conftest.err >&5 | |
6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6516 | (exit $ac_status); } >/dev/null; then | |
6517 | if test -s conftest.err; then | |
6518 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6520 | else |
6521 | ac_cpp_err= | |
6522 | fi | |
6523 | else | |
6524 | ac_cpp_err=yes | |
6525 | fi | |
6526 | if test -z "$ac_cpp_err"; then | |
6527 | ac_header_preproc=yes | |
6528 | else | |
6529 | echo "$as_me: failed program was:" >&5 | |
6530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6531 | ||
6532 | ac_header_preproc=no | |
6533 | fi | |
6534 | rm -f conftest.err conftest.$ac_ext | |
6535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6537 | ||
6538 | # So? What about this header? | |
8a2fc586 AK |
6539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6540 | yes:no: ) | |
ad6254c5 AK |
6541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6544 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6545 | ac_header_preproc=yes | |
ad6254c5 | 6546 | ;; |
8a2fc586 | 6547 | no:yes:* ) |
ad6254c5 AK |
6548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6552 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6553 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6554 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6555 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6557 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6558 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6559 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6560 | ( |
6561 | cat <<\_ASBOX | |
8a2fc586 AK |
6562 | ## ------------------------------------------ ## |
6563 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6564 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6565 | _ASBOX |
6566 | ) | | |
6567 | sed "s/^/$as_me: WARNING: /" >&2 | |
6568 | ;; | |
6569 | esac | |
6570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6574 | else | |
8a2fc586 | 6575 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6576 | fi |
6577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6579 | ||
6580 | fi | |
6581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6582 | cat >>confdefs.h <<_ACEOF | |
6583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6584 | _ACEOF | |
6585 | ||
6586 | fi | |
6587 | ||
6588 | done | |
6589 | ||
6590 | ||
6591 | for ac_func in getpagesize | |
6592 | do | |
6593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6594 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6596 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6598 | else | |
6599 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6600 | /* confdefs.h. */ |
6601 | _ACEOF | |
6602 | cat confdefs.h >>conftest.$ac_ext | |
6603 | cat >>conftest.$ac_ext <<_ACEOF | |
6604 | /* end confdefs.h. */ | |
8a2fc586 AK |
6605 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6607 | #define $ac_func innocuous_$ac_func | |
6608 | ||
ad6254c5 AK |
6609 | /* System header to define __stub macros and hopefully few prototypes, |
6610 | which can conflict with char $ac_func (); below. | |
6611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6612 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6613 | |
ad6254c5 AK |
6614 | #ifdef __STDC__ |
6615 | # include <limits.h> | |
6616 | #else | |
6617 | # include <assert.h> | |
6618 | #endif | |
8a2fc586 AK |
6619 | |
6620 | #undef $ac_func | |
6621 | ||
ad6254c5 AK |
6622 | /* Override any gcc2 internal prototype to avoid an error. */ |
6623 | #ifdef __cplusplus | |
6624 | extern "C" | |
6625 | { | |
6626 | #endif | |
6627 | /* We use char because int might match the return type of a gcc2 | |
6628 | builtin and then its argument prototype would still apply. */ | |
6629 | char $ac_func (); | |
6630 | /* The GNU C library defines this for functions which it implements | |
6631 | to always fail with ENOSYS. Some functions are actually named | |
6632 | something starting with __ and the normal name is an alias. */ | |
6633 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6634 | choke me | |
6635 | #else | |
6636 | char (*f) () = $ac_func; | |
6637 | #endif | |
6638 | #ifdef __cplusplus | |
6639 | } | |
6640 | #endif | |
6641 | ||
6642 | int | |
6643 | main () | |
6644 | { | |
6645 | return f != $ac_func; | |
6646 | ; | |
6647 | return 0; | |
6648 | } | |
6649 | _ACEOF | |
6650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 6652 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6653 | ac_status=$? |
8a2fc586 AK |
6654 | grep -v '^ *+' conftest.er1 >conftest.err |
6655 | rm -f conftest.er1 | |
6656 | cat conftest.err >&5 | |
ad6254c5 AK |
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6658 | (exit $ac_status); } && | |
8a2fc586 AK |
6659 | { ac_try='test -z "$ac_c_werror_flag" |
6660 | || test ! -s conftest.err' | |
6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6662 | (eval $ac_try) 2>&5 | |
6663 | ac_status=$? | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6665 | (exit $ac_status); }; } && | |
6666 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6668 | (eval $ac_try) 2>&5 | |
6669 | ac_status=$? | |
6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6671 | (exit $ac_status); }; }; then | |
6672 | eval "$as_ac_var=yes" | |
6673 | else | |
6674 | echo "$as_me: failed program was:" >&5 | |
6675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6676 | ||
6677 | eval "$as_ac_var=no" | |
6678 | fi | |
8a2fc586 AK |
6679 | rm -f conftest.err conftest.$ac_objext \ |
6680 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
6681 | fi |
6682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6683 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6684 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6685 | cat >>confdefs.h <<_ACEOF | |
6686 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6687 | _ACEOF | |
6688 | ||
6689 | fi | |
6690 | done | |
6691 | ||
6692 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6693 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6694 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6696 | else | |
6697 | if test "$cross_compiling" = yes; then | |
6698 | ac_cv_func_mmap_fixed_mapped=no | |
6699 | else | |
6700 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6701 | /* confdefs.h. */ |
6702 | _ACEOF | |
6703 | cat confdefs.h >>conftest.$ac_ext | |
6704 | cat >>conftest.$ac_ext <<_ACEOF | |
6705 | /* end confdefs.h. */ | |
6706 | $ac_includes_default | |
6707 | /* malloc might have been renamed as rpl_malloc. */ | |
6708 | #undef malloc | |
6709 | ||
6710 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6711 | Here is a matrix of mmap possibilities: | |
6712 | mmap private not fixed | |
6713 | mmap private fixed at somewhere currently unmapped | |
6714 | mmap private fixed at somewhere already mapped | |
6715 | mmap shared not fixed | |
6716 | mmap shared fixed at somewhere currently unmapped | |
6717 | mmap shared fixed at somewhere already mapped | |
6718 | For private mappings, we should verify that changes cannot be read() | |
6719 | back from the file, nor mmap's back from the file at a different | |
6720 | address. (There have been systems where private was not correctly | |
6721 | implemented like the infamous i386 svr4.0, and systems where the | |
6722 | VM page cache was not coherent with the file system buffer cache | |
6723 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6724 | For shared mappings, we should conversely verify that changes get | |
6725 | propagated back to all the places they're supposed to be. | |
6726 | ||
6727 | Grep wants private fixed already mapped. | |
6728 | The main things grep needs to know about mmap are: | |
6729 | * does it exist and is it safe to write into the mmap'd area | |
6730 | * how to use it (BSD variants) */ | |
6731 | ||
6732 | #include <fcntl.h> | |
6733 | #include <sys/mman.h> | |
6734 | ||
6735 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6736 | char *malloc (); | |
6737 | #endif | |
6738 | ||
6739 | /* This mess was copied from the GNU getpagesize.h. */ | |
6740 | #if !HAVE_GETPAGESIZE | |
6741 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6742 | # if !HAVE_SYS_PARAM_H | |
6743 | # define HAVE_SYS_PARAM_H 1 | |
6744 | # endif | |
6745 | ||
6746 | # ifdef _SC_PAGESIZE | |
6747 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6748 | # else /* no _SC_PAGESIZE */ | |
6749 | # if HAVE_SYS_PARAM_H | |
6750 | # include <sys/param.h> | |
6751 | # ifdef EXEC_PAGESIZE | |
6752 | # define getpagesize() EXEC_PAGESIZE | |
6753 | # else /* no EXEC_PAGESIZE */ | |
6754 | # ifdef NBPG | |
6755 | # define getpagesize() NBPG * CLSIZE | |
6756 | # ifndef CLSIZE | |
6757 | # define CLSIZE 1 | |
6758 | # endif /* no CLSIZE */ | |
6759 | # else /* no NBPG */ | |
6760 | # ifdef NBPC | |
6761 | # define getpagesize() NBPC | |
6762 | # else /* no NBPC */ | |
6763 | # ifdef PAGESIZE | |
6764 | # define getpagesize() PAGESIZE | |
6765 | # endif /* PAGESIZE */ | |
6766 | # endif /* no NBPC */ | |
6767 | # endif /* no NBPG */ | |
6768 | # endif /* no EXEC_PAGESIZE */ | |
6769 | # else /* no HAVE_SYS_PARAM_H */ | |
6770 | # define getpagesize() 8192 /* punt totally */ | |
6771 | # endif /* no HAVE_SYS_PARAM_H */ | |
6772 | # endif /* no _SC_PAGESIZE */ | |
6773 | ||
6774 | #endif /* no HAVE_GETPAGESIZE */ | |
6775 | ||
6776 | int | |
6777 | main () | |
6778 | { | |
6779 | char *data, *data2, *data3; | |
6780 | int i, pagesize; | |
6781 | int fd; | |
6782 | ||
6783 | pagesize = getpagesize (); | |
6784 | ||
6785 | /* First, make a file with some known garbage in it. */ | |
6786 | data = (char *) malloc (pagesize); | |
6787 | if (!data) | |
6788 | exit (1); | |
6789 | for (i = 0; i < pagesize; ++i) | |
6790 | *(data + i) = rand (); | |
6791 | umask (0); | |
6792 | fd = creat ("conftest.mmap", 0600); | |
6793 | if (fd < 0) | |
6794 | exit (1); | |
6795 | if (write (fd, data, pagesize) != pagesize) | |
6796 | exit (1); | |
6797 | close (fd); | |
6798 | ||
6799 | /* Next, try to mmap the file at a fixed address which already has | |
6800 | something else allocated at it. If we can, also make sure that | |
6801 | we see the same garbage. */ | |
6802 | fd = open ("conftest.mmap", O_RDWR); | |
6803 | if (fd < 0) | |
6804 | exit (1); | |
6805 | data2 = (char *) malloc (2 * pagesize); | |
6806 | if (!data2) | |
6807 | exit (1); | |
8a2fc586 | 6808 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6809 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 6810 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6811 | exit (1); |
6812 | for (i = 0; i < pagesize; ++i) | |
6813 | if (*(data + i) != *(data2 + i)) | |
6814 | exit (1); | |
6815 | ||
6816 | /* Finally, make sure that changes to the mapped area do not | |
6817 | percolate back to the file as seen by read(). (This is a bug on | |
6818 | some variants of i386 svr4.0.) */ | |
6819 | for (i = 0; i < pagesize; ++i) | |
6820 | *(data2 + i) = *(data2 + i) + 1; | |
6821 | data3 = (char *) malloc (pagesize); | |
6822 | if (!data3) | |
6823 | exit (1); | |
6824 | if (read (fd, data3, pagesize) != pagesize) | |
6825 | exit (1); | |
6826 | for (i = 0; i < pagesize; ++i) | |
6827 | if (*(data + i) != *(data3 + i)) | |
6828 | exit (1); | |
6829 | close (fd); | |
6830 | exit (0); | |
6831 | } | |
6832 | _ACEOF | |
6833 | rm -f conftest$ac_exeext | |
6834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6835 | (eval $ac_link) 2>&5 | |
6836 | ac_status=$? | |
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6840 | (eval $ac_try) 2>&5 | |
6841 | ac_status=$? | |
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6843 | (exit $ac_status); }; }; then | |
6844 | ac_cv_func_mmap_fixed_mapped=yes | |
6845 | else | |
6846 | echo "$as_me: program exited with status $ac_status" >&5 | |
6847 | echo "$as_me: failed program was:" >&5 | |
6848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6849 | ||
6850 | ( exit $ac_status ) | |
6851 | ac_cv_func_mmap_fixed_mapped=no | |
6852 | fi | |
8a2fc586 | 6853 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6854 | fi |
6855 | fi | |
6856 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6857 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6858 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6859 | ||
6860 | cat >>confdefs.h <<\_ACEOF | |
6861 | #define HAVE_MMAP 1 | |
6862 | _ACEOF | |
6863 | ||
6864 | fi | |
6865 | rm -f conftest.mmap | |
6866 | ||
6867 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6868 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6869 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6871 | else | |
6872 | if test "$cross_compiling" = yes; then | |
6873 | ac_cv_func_stat_empty_string_bug=yes | |
6874 | else | |
6875 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6876 | /* confdefs.h. */ |
6877 | _ACEOF | |
6878 | cat confdefs.h >>conftest.$ac_ext | |
6879 | cat >>conftest.$ac_ext <<_ACEOF | |
6880 | /* end confdefs.h. */ | |
6881 | $ac_includes_default | |
6882 | int | |
6883 | main () | |
6884 | { | |
6885 | struct stat sbuf; | |
6886 | exit (stat ("", &sbuf) ? 1 : 0); | |
6887 | ; | |
6888 | return 0; | |
6889 | } | |
6890 | _ACEOF | |
6891 | rm -f conftest$ac_exeext | |
6892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6893 | (eval $ac_link) 2>&5 | |
6894 | ac_status=$? | |
6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6898 | (eval $ac_try) 2>&5 | |
6899 | ac_status=$? | |
6900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6901 | (exit $ac_status); }; }; then | |
6902 | ac_cv_func_stat_empty_string_bug=yes | |
6903 | else | |
6904 | echo "$as_me: program exited with status $ac_status" >&5 | |
6905 | echo "$as_me: failed program was:" >&5 | |
6906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6907 | ||
6908 | ( exit $ac_status ) | |
6909 | ac_cv_func_stat_empty_string_bug=no | |
6910 | fi | |
8a2fc586 | 6911 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6912 | fi |
6913 | fi | |
6914 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6915 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6916 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
8a2fc586 AK |
6917 | case $LIBOBJS in |
6918 | "stat.$ac_objext" | \ | |
6919 | *" stat.$ac_objext" | \ | |
6920 | "stat.$ac_objext "* | \ | |
6921 | *" stat.$ac_objext "* ) ;; | |
6922 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
6923 | esac | |
6924 | ||
ad6254c5 AK |
6925 | |
6926 | cat >>confdefs.h <<_ACEOF | |
6927 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6928 | _ACEOF | |
6929 | ||
6930 | fi | |
6931 | ||
6932 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6933 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6934 | if test "${ac_cv_func_strtod+set}" = set; then | |
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 | else | |
6937 | if test "$cross_compiling" = yes; then | |
6938 | ac_cv_func_strtod=no | |
6939 | else | |
6940 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6941 | /* confdefs.h. */ |
6942 | _ACEOF | |
6943 | cat confdefs.h >>conftest.$ac_ext | |
6944 | cat >>conftest.$ac_ext <<_ACEOF | |
6945 | /* end confdefs.h. */ | |
6946 | ||
6947 | double strtod (); | |
6948 | int | |
6949 | main() | |
6950 | { | |
6951 | { | |
6952 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6953 | char *string = " +69"; | |
6954 | char *term; | |
6955 | double value; | |
6956 | value = strtod (string, &term); | |
6957 | if (value != 69 || term != (string + 4)) | |
6958 | exit (1); | |
6959 | } | |
6960 | ||
6961 | { | |
6962 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6963 | terminating character under some conditions. */ | |
6964 | char *string = "NaN"; | |
6965 | char *term; | |
6966 | strtod (string, &term); | |
6967 | if (term != string && *(term - 1) == 0) | |
6968 | exit (1); | |
6969 | } | |
6970 | exit (0); | |
6971 | } | |
6972 | ||
6973 | _ACEOF | |
6974 | rm -f conftest$ac_exeext | |
6975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6976 | (eval $ac_link) 2>&5 | |
6977 | ac_status=$? | |
6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6981 | (eval $ac_try) 2>&5 | |
6982 | ac_status=$? | |
6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6984 | (exit $ac_status); }; }; then | |
6985 | ac_cv_func_strtod=yes | |
6986 | else | |
6987 | echo "$as_me: program exited with status $ac_status" >&5 | |
6988 | echo "$as_me: failed program was:" >&5 | |
6989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6990 | ||
6991 | ( exit $ac_status ) | |
6992 | ac_cv_func_strtod=no | |
6993 | fi | |
8a2fc586 | 6994 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6995 | fi |
6996 | fi | |
6997 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6998 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6999 | if test $ac_cv_func_strtod = no; then | |
8a2fc586 AK |
7000 | case $LIBOBJS in |
7001 | "strtod.$ac_objext" | \ | |
7002 | *" strtod.$ac_objext" | \ | |
7003 | "strtod.$ac_objext "* | \ | |
7004 | *" strtod.$ac_objext "* ) ;; | |
7005 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; | |
7006 | esac | |
7007 | ||
ad6254c5 AK |
7008 | echo "$as_me:$LINENO: checking for pow" >&5 |
7009 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
7010 | if test "${ac_cv_func_pow+set}" = set; then | |
7011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7012 | else | |
7013 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7014 | /* confdefs.h. */ |
7015 | _ACEOF | |
7016 | cat confdefs.h >>conftest.$ac_ext | |
7017 | cat >>conftest.$ac_ext <<_ACEOF | |
7018 | /* end confdefs.h. */ | |
8a2fc586 AK |
7019 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7021 | #define pow innocuous_pow | |
7022 | ||
ad6254c5 AK |
7023 | /* System header to define __stub macros and hopefully few prototypes, |
7024 | which can conflict with char pow (); below. | |
7025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7026 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7027 | |
ad6254c5 AK |
7028 | #ifdef __STDC__ |
7029 | # include <limits.h> | |
7030 | #else | |
7031 | # include <assert.h> | |
7032 | #endif | |
8a2fc586 AK |
7033 | |
7034 | #undef pow | |
7035 | ||
ad6254c5 AK |
7036 | /* Override any gcc2 internal prototype to avoid an error. */ |
7037 | #ifdef __cplusplus | |
7038 | extern "C" | |
7039 | { | |
7040 | #endif | |
7041 | /* We use char because int might match the return type of a gcc2 | |
7042 | builtin and then its argument prototype would still apply. */ | |
7043 | char pow (); | |
7044 | /* The GNU C library defines this for functions which it implements | |
7045 | to always fail with ENOSYS. Some functions are actually named | |
7046 | something starting with __ and the normal name is an alias. */ | |
7047 | #if defined (__stub_pow) || defined (__stub___pow) | |
7048 | choke me | |
7049 | #else | |
7050 | char (*f) () = pow; | |
7051 | #endif | |
7052 | #ifdef __cplusplus | |
7053 | } | |
7054 | #endif | |
7055 | ||
7056 | int | |
7057 | main () | |
7058 | { | |
7059 | return f != pow; | |
7060 | ; | |
7061 | return 0; | |
7062 | } | |
7063 | _ACEOF | |
7064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7066 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7067 | ac_status=$? |
8a2fc586 AK |
7068 | grep -v '^ *+' conftest.er1 >conftest.err |
7069 | rm -f conftest.er1 | |
7070 | cat conftest.err >&5 | |
ad6254c5 AK |
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7072 | (exit $ac_status); } && | |
8a2fc586 AK |
7073 | { ac_try='test -z "$ac_c_werror_flag" |
7074 | || test ! -s conftest.err' | |
7075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7076 | (eval $ac_try) 2>&5 | |
7077 | ac_status=$? | |
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7079 | (exit $ac_status); }; } && | |
7080 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7082 | (eval $ac_try) 2>&5 | |
7083 | ac_status=$? | |
7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7085 | (exit $ac_status); }; }; then | |
7086 | ac_cv_func_pow=yes | |
7087 | else | |
7088 | echo "$as_me: failed program was:" >&5 | |
7089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7090 | ||
7091 | ac_cv_func_pow=no | |
7092 | fi | |
8a2fc586 AK |
7093 | rm -f conftest.err conftest.$ac_objext \ |
7094 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7095 | fi |
7096 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
7097 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
7098 | ||
7099 | if test $ac_cv_func_pow = no; then | |
7100 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
7101 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
7102 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7104 | else | |
7105 | ac_check_lib_save_LIBS=$LIBS | |
7106 | LIBS="-lm $LIBS" | |
7107 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7108 | /* confdefs.h. */ |
7109 | _ACEOF | |
7110 | cat confdefs.h >>conftest.$ac_ext | |
7111 | cat >>conftest.$ac_ext <<_ACEOF | |
7112 | /* end confdefs.h. */ | |
7113 | ||
7114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7115 | #ifdef __cplusplus | |
7116 | extern "C" | |
7117 | #endif | |
7118 | /* We use char because int might match the return type of a gcc2 | |
7119 | builtin and then its argument prototype would still apply. */ | |
7120 | char pow (); | |
7121 | int | |
7122 | main () | |
7123 | { | |
7124 | pow (); | |
7125 | ; | |
7126 | return 0; | |
7127 | } | |
7128 | _ACEOF | |
7129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7131 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7132 | ac_status=$? |
8a2fc586 AK |
7133 | grep -v '^ *+' conftest.er1 >conftest.err |
7134 | rm -f conftest.er1 | |
7135 | cat conftest.err >&5 | |
ad6254c5 AK |
7136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7137 | (exit $ac_status); } && | |
8a2fc586 AK |
7138 | { ac_try='test -z "$ac_c_werror_flag" |
7139 | || test ! -s conftest.err' | |
7140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7141 | (eval $ac_try) 2>&5 | |
7142 | ac_status=$? | |
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7144 | (exit $ac_status); }; } && | |
7145 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7147 | (eval $ac_try) 2>&5 | |
7148 | ac_status=$? | |
7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7150 | (exit $ac_status); }; }; then | |
7151 | ac_cv_lib_m_pow=yes | |
7152 | else | |
7153 | echo "$as_me: failed program was:" >&5 | |
7154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7155 | ||
7156 | ac_cv_lib_m_pow=no | |
7157 | fi | |
8a2fc586 AK |
7158 | rm -f conftest.err conftest.$ac_objext \ |
7159 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7160 | LIBS=$ac_check_lib_save_LIBS |
7161 | fi | |
7162 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
7163 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
7164 | if test $ac_cv_lib_m_pow = yes; then | |
7165 | POW_LIB=-lm | |
7166 | else | |
7167 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7168 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7169 | fi | |
7170 | ||
7171 | fi | |
7172 | ||
7173 | fi | |
7174 | ||
7175 | ||
7176 | ################################################################################ | |
7177 | ||
7178 | ||
7179 | ################################################################################ | |
7180 | # Check whether --enable-jobs or --disable-jobs was given. | |
7181 | if test "${enable_jobs+set}" = set; then | |
7182 | enableval="$enable_jobs" | |
7183 | JOBS=-j$enableval | |
7184 | else | |
7185 | JOBS=-j2 | |
7186 | fi; | |
7187 | ||
7188 | ################################################################################ | |
7189 | echo "$as_me:$LINENO: checking file owner" >&5 | |
7190 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
7191 | OWNER="root" | |
7192 | ||
7193 | ||
7194 | # Check whether --with-user or --without-user was given. | |
7195 | if test "${with_user+set}" = set; then | |
7196 | withval="$with_user" | |
7197 | OWNER="$withval" | |
7198 | fi; | |
7199 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7200 | echo "${ECHO_T}$OWNER" >&6 | |
7201 | ||
7202 | if test x$OWNER != x; then | |
7203 | OWNER="-o $OWNER" | |
7204 | fi | |
7205 | ||
7206 | ################################################################################ | |
7207 | echo "$as_me:$LINENO: checking group owner" >&5 | |
7208 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
7209 | GROUP="root" | |
7210 | ||
7211 | # Check whether --with-group or --without-group was given. | |
7212 | if test "${with_group+set}" = set; then | |
7213 | withval="$with_group" | |
7214 | GROUP="$withval" | |
7215 | fi; | |
7216 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7217 | echo "${ECHO_T}$GROUP" >&6 | |
7218 | ||
7219 | if test x$GROUP != x; then | |
7220 | GROUP="-g $GROUP" | |
7221 | fi | |
7222 | ||
7223 | ################################################################################ | |
7224 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
7225 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
7226 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
7227 | if test "${enable_lvm1_fallback+set}" = set; then | |
7228 | enableval="$enable_lvm1_fallback" | |
7229 | LVM1_FALLBACK=$enableval | |
7230 | else | |
7231 | LVM1_FALLBACK=no | |
7232 | fi; | |
7233 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7234 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
7235 | ||
7236 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
7237 | |
7238 | cat >>confdefs.h <<\_ACEOF | |
7239 | #define LVM1_FALLBACK 1 | |
7240 | _ACEOF | |
7241 | ||
ad6254c5 AK |
7242 | fi |
7243 | ||
7244 | ################################################################################ | |
7245 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
7246 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
7247 | ||
7248 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
7249 | if test "${with_lvm1+set}" = set; then | |
7250 | withval="$with_lvm1" | |
7251 | LVM1="$withval" | |
7252 | else | |
7253 | LVM1="internal" | |
7254 | fi; | |
7255 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7256 | echo "${ECHO_T}$LVM1" >&6 | |
7257 | ||
7258 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7259 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7260 | " >&5 | |
7261 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7262 | " >&2;} | |
7263 | { (exit 1); exit 1; }; } | |
7264 | fi; | |
7265 | ||
7266 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
7267 | |
7268 | cat >>confdefs.h <<\_ACEOF | |
7269 | #define LVM1_INTERNAL 1 | |
7270 | _ACEOF | |
7271 | ||
ad6254c5 AK |
7272 | fi |
7273 | ||
7274 | ################################################################################ | |
7275 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
7276 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
7277 | ||
7278 | # Check whether --with-pool or --without-pool was given. | |
7279 | if test "${with_pool+set}" = set; then | |
7280 | withval="$with_pool" | |
7281 | POOL="$withval" | |
7282 | else | |
7283 | POOL="internal" | |
7284 | fi; | |
7285 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
7286 | echo "${ECHO_T}$POOL" >&6 | |
7287 | ||
7288 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7289 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7290 | " >&5 | |
7291 | echo "$as_me: error: --with-pool parameter invalid | |
7292 | " >&2;} | |
7293 | { (exit 1); exit 1; }; } | |
7294 | fi; | |
7295 | ||
7296 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
7297 | |
7298 | cat >>confdefs.h <<\_ACEOF | |
7299 | #define POOL_INTERNAL 1 | |
7300 | _ACEOF | |
7301 | ||
ad6254c5 AK |
7302 | fi |
7303 | ||
7304 | ################################################################################ | |
7305 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
7306 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
7307 | ||
7308 | # Check whether --with-cluster or --without-cluster was given. | |
7309 | if test "${with_cluster+set}" = set; then | |
7310 | withval="$with_cluster" | |
7311 | CLUSTER="$withval" | |
7312 | fi; | |
7313 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7314 | echo "${ECHO_T}$CLUSTER" >&6 | |
7315 | ||
7316 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7317 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7318 | " >&5 | |
7319 | echo "$as_me: error: --with-cluster parameter invalid | |
7320 | " >&2;} | |
7321 | { (exit 1); exit 1; }; } | |
7322 | fi; | |
7323 | ||
7324 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
7325 | |
7326 | cat >>confdefs.h <<\_ACEOF | |
7327 | #define CLUSTER_LOCKING_INTERNAL 1 | |
7328 | _ACEOF | |
7329 | ||
ad6254c5 AK |
7330 | fi |
7331 | ||
7332 | ################################################################################ | |
7333 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
7334 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
7335 | ||
7336 | # Check whether --with-snapshots or --without-snapshots was given. | |
7337 | if test "${with_snapshots+set}" = set; then | |
7338 | withval="$with_snapshots" | |
7339 | SNAPSHOTS="$withval" | |
7340 | else | |
7341 | SNAPSHOTS="internal" | |
7342 | fi; | |
7343 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7344 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
7345 | ||
7346 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7347 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7348 | " >&5 | |
7349 | echo "$as_me: error: --with-snapshots parameter invalid | |
7350 | " >&2;} | |
7351 | { (exit 1); exit 1; }; } | |
7352 | fi; | |
7353 | ||
7354 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
7355 | |
7356 | cat >>confdefs.h <<\_ACEOF | |
7357 | #define SNAPSHOT_INTERNAL 1 | |
7358 | _ACEOF | |
7359 | ||
ad6254c5 AK |
7360 | fi |
7361 | ||
7362 | ################################################################################ | |
7363 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
7364 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
7365 | ||
7366 | # Check whether --with-mirrors or --without-mirrors was given. | |
7367 | if test "${with_mirrors+set}" = set; then | |
7368 | withval="$with_mirrors" | |
7369 | MIRRORS="$withval" | |
7370 | else | |
7371 | MIRRORS="internal" | |
7372 | fi; | |
7373 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7374 | echo "${ECHO_T}$MIRRORS" >&6 | |
7375 | ||
7376 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7377 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7378 | " >&5 | |
7379 | echo "$as_me: error: --with-mirrors parameter invalid | |
7380 | " >&2;} | |
7381 | { (exit 1); exit 1; }; } | |
7382 | fi; | |
7383 | ||
7384 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
7385 | |
7386 | cat >>confdefs.h <<\_ACEOF | |
7387 | #define MIRRORED_INTERNAL 1 | |
7388 | _ACEOF | |
7389 | ||
ad6254c5 AK |
7390 | fi |
7391 | ||
7392 | ################################################################################ | |
7393 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
7394 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
7395 | # Check whether --enable-static_link or --disable-static_link was given. | |
7396 | if test "${enable_static_link+set}" = set; then | |
7397 | enableval="$enable_static_link" | |
7398 | STATIC_LINK=$enableval | |
7399 | else | |
7400 | STATIC_LINK=no | |
7401 | fi; | |
7402 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7403 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
7404 | ||
7405 | ################################################################################ | |
7406 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
7407 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
7408 | # Check whether --enable-readline or --disable-readline was given. | |
7409 | if test "${enable_readline+set}" = set; then | |
7410 | enableval="$enable_readline" | |
7411 | READLINE=$enableval | |
7412 | else | |
7413 | READLINE=no | |
7414 | fi; | |
7415 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7416 | echo "${ECHO_T}$READLINE" >&6 | |
7417 | ||
7418 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
7419 | |
7420 | cat >>confdefs.h <<\_ACEOF | |
7421 | #define READLINE_SUPPORT 1 | |
7422 | _ACEOF | |
7423 | ||
ad6254c5 AK |
7424 | fi |
7425 | ||
7426 | ################################################################################ | |
7427 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
7428 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
7429 | # Check whether --enable-selinux or --disable-selinux was given. | |
7430 | if test "${enable_selinux+set}" = set; then | |
7431 | enableval="$enable_selinux" | |
7432 | SELINUX=$enableval | |
7433 | fi; | |
7434 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7435 | echo "${ECHO_T}$SELINUX" >&6 | |
7436 | ||
8b1a3214 AK |
7437 | ################################################################################ |
7438 | echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 | |
7439 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6 | |
7440 | # Check whether --enable-realtime or --disable-realtime was given. | |
7441 | if test "${enable_realtime+set}" = set; then | |
7442 | enableval="$enable_realtime" | |
7443 | REALTIME=$enableval | |
7444 | fi; | |
7445 | echo "$as_me:$LINENO: result: $REALTIME" >&5 | |
7446 | echo "${ECHO_T}$REALTIME" >&6 | |
7447 | ||
ad6254c5 AK |
7448 | ################################################################################ |
7449 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
7450 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
7451 | ||
7452 | # Check whether --with-clvmd or --without-clvmd was given. | |
7453 | if test "${with_clvmd+set}" = set; then | |
7454 | withval="$with_clvmd" | |
a266258f | 7455 | CLVMD="$withval" |
ad6254c5 | 7456 | else |
a266258f | 7457 | CLVMD="none" |
ad6254c5 | 7458 | fi; |
a266258f | 7459 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7460 | CLVMD=all |
b1098701 | 7461 | fi |
ad6254c5 AK |
7462 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7463 | echo "${ECHO_T}$CLVMD" >&6 | |
7464 | ||
a266258f | 7465 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7466 | CLUSTER=internal |
7467 | fi | |
7468 | ||
7469 | ################################################################################ | |
7470 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
7471 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
7472 | # Check whether --enable-debug or --disable-debug was given. | |
7473 | if test "${enable_debug+set}" = set; then | |
7474 | enableval="$enable_debug" | |
7475 | DEBUG=$enableval | |
7476 | else | |
7477 | DEBUG=no | |
7478 | fi; | |
7479 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7480 | echo "${ECHO_T}$DEBUG" >&6 | |
7481 | ||
7482 | if test x$DEBUG = xyes; then | |
7483 | COPTIMISE_FLAG= | |
8a2fc586 AK |
7484 | else |
7485 | CSCOPE_CMD= | |
ad6254c5 AK |
7486 | fi |
7487 | ||
7488 | ################################################################################ | |
7489 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
7490 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
7491 | ||
7492 | # Check whether --with-optimisation or --without-optimisation was given. | |
7493 | if test "${with_optimisation+set}" = set; then | |
7494 | withval="$with_optimisation" | |
7495 | COPTIMISE_FLAG="$withval" | |
7496 | fi; | |
7497 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
7498 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
7499 | ||
7500 | ################################################################################ | |
7501 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
7502 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
7503 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
7504 | if test "${enable_devmapper+set}" = set; then | |
7505 | enableval="$enable_devmapper" | |
7506 | DEVMAPPER=$enableval | |
7507 | fi; | |
7508 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
7509 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
7510 | ||
7511 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
7512 | |
7513 | cat >>confdefs.h <<\_ACEOF | |
7514 | #define DEVMAPPER_SUPPORT 1 | |
7515 | _ACEOF | |
7516 | ||
ad6254c5 AK |
7517 | fi |
7518 | ||
7519 | ################################################################################ | |
7520 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
7521 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
7522 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
7523 | if test "${enable_o_direct+set}" = set; then | |
7524 | enableval="$enable_o_direct" | |
7525 | ODIRECT=$enableval | |
7526 | fi; | |
7527 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
7528 | echo "${ECHO_T}$ODIRECT" >&6 | |
7529 | ||
7530 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
7531 | |
7532 | cat >>confdefs.h <<\_ACEOF | |
7533 | #define O_DIRECT_SUPPORT 1 | |
7534 | _ACEOF | |
7535 | ||
ad6254c5 AK |
7536 | fi |
7537 | ||
7538 | ################################################################################ | |
7539 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
7540 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
7541 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
7542 | if test "${enable_cmdlib+set}" = set; then | |
7543 | enableval="$enable_cmdlib" | |
7544 | CMDLIB=$enableval | |
7545 | else | |
7546 | CMDLIB=no | |
7547 | fi; | |
7548 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
7549 | echo "${ECHO_T}$CMDLIB" >&6 | |
7550 | ||
ad6254c5 AK |
7551 | ################################################################################ |
7552 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
7553 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
7554 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
7555 | if test "${enable_fsadm+set}" = set; then | |
7556 | enableval="$enable_fsadm" | |
7557 | FSADM=$enableval | |
7558 | fi; | |
7559 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
7560 | echo "${ECHO_T}$FSADM" >&6 | |
7561 | ||
06f62ad1 AK |
7562 | ################################################################################ |
7563 | echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
7564 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6 | |
7565 | # Check whether --enable-dmeventd or --disable-dmeventd was given. | |
7566 | if test "${enable_dmeventd+set}" = set; then | |
7567 | enableval="$enable_dmeventd" | |
7568 | DMEVENTD=$enableval | |
7569 | fi; | |
7570 | echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
7571 | echo "${ECHO_T}$DMEVENTD" >&6 | |
7572 | ||
7573 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
7574 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7575 | " >&5 | |
7576 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7577 | " >&2;} | |
7578 | { (exit 1); exit 1; }; } | |
7579 | fi | |
7580 | ||
15d91f5a | 7581 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
7582 | |
7583 | cat >>confdefs.h <<\_ACEOF | |
7584 | #define DMEVENTD 1 | |
7585 | _ACEOF | |
7586 | ||
15d91f5a | 7587 | fi |
ad6254c5 AK |
7588 | ################################################################################ |
7589 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
7590 | then exec_prefix=""; | |
7591 | fi; | |
7592 | ||
7593 | ################################################################################ | |
7594 | if test $ac_cv_c_compiler_gnu = yes; then | |
7595 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7596 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
7597 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7599 | else | |
7600 | ac_pattern="Autoconf.*'x'" | |
7601 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7602 | /* confdefs.h. */ |
7603 | _ACEOF | |
7604 | cat confdefs.h >>conftest.$ac_ext | |
7605 | cat >>conftest.$ac_ext <<_ACEOF | |
7606 | /* end confdefs.h. */ | |
7607 | #include <sgtty.h> | |
7608 | Autoconf TIOCGETP | |
7609 | _ACEOF | |
7610 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7611 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7612 | ac_cv_prog_gcc_traditional=yes | |
7613 | else | |
7614 | ac_cv_prog_gcc_traditional=no | |
7615 | fi | |
7616 | rm -f conftest* | |
7617 | ||
7618 | ||
7619 | if test $ac_cv_prog_gcc_traditional = no; then | |
7620 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7621 | /* confdefs.h. */ |
7622 | _ACEOF | |
7623 | cat confdefs.h >>conftest.$ac_ext | |
7624 | cat >>conftest.$ac_ext <<_ACEOF | |
7625 | /* end confdefs.h. */ | |
7626 | #include <termio.h> | |
7627 | Autoconf TCGETA | |
7628 | _ACEOF | |
7629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7630 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7631 | ac_cv_prog_gcc_traditional=yes | |
7632 | fi | |
7633 | rm -f conftest* | |
7634 | ||
7635 | fi | |
7636 | fi | |
7637 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7638 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7639 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7640 | CC="$CC -traditional" | |
7641 | fi | |
7642 | fi | |
7643 | ||
7644 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7645 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7646 | if test "${ac_cv_type_signal+set}" = set; then | |
7647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7648 | else | |
7649 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7650 | /* confdefs.h. */ |
7651 | _ACEOF | |
7652 | cat confdefs.h >>conftest.$ac_ext | |
7653 | cat >>conftest.$ac_ext <<_ACEOF | |
7654 | /* end confdefs.h. */ | |
7655 | #include <sys/types.h> | |
7656 | #include <signal.h> | |
7657 | #ifdef signal | |
7658 | # undef signal | |
7659 | #endif | |
7660 | #ifdef __cplusplus | |
7661 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7662 | #else | |
7663 | void (*signal ()) (); | |
7664 | #endif | |
7665 | ||
7666 | int | |
7667 | main () | |
7668 | { | |
7669 | int i; | |
7670 | ; | |
7671 | return 0; | |
7672 | } | |
7673 | _ACEOF | |
7674 | rm -f conftest.$ac_objext | |
7675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 7676 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 7677 | ac_status=$? |
8a2fc586 AK |
7678 | grep -v '^ *+' conftest.er1 >conftest.err |
7679 | rm -f conftest.er1 | |
7680 | cat conftest.err >&5 | |
ad6254c5 AK |
7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7682 | (exit $ac_status); } && | |
8a2fc586 AK |
7683 | { ac_try='test -z "$ac_c_werror_flag" |
7684 | || test ! -s conftest.err' | |
7685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7686 | (eval $ac_try) 2>&5 | |
7687 | ac_status=$? | |
7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7689 | (exit $ac_status); }; } && | |
7690 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
7691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7692 | (eval $ac_try) 2>&5 | |
7693 | ac_status=$? | |
7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7695 | (exit $ac_status); }; }; then | |
7696 | ac_cv_type_signal=void | |
7697 | else | |
7698 | echo "$as_me: failed program was:" >&5 | |
7699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7700 | ||
7701 | ac_cv_type_signal=int | |
7702 | fi | |
8a2fc586 | 7703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7704 | fi |
7705 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7706 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7707 | ||
7708 | cat >>confdefs.h <<_ACEOF | |
7709 | #define RETSIGTYPE $ac_cv_type_signal | |
7710 | _ACEOF | |
7711 | ||
7712 | ||
7713 | ||
7714 | for ac_func in vprintf | |
7715 | do | |
7716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7717 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7719 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7721 | else | |
7722 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7723 | /* confdefs.h. */ |
7724 | _ACEOF | |
7725 | cat confdefs.h >>conftest.$ac_ext | |
7726 | cat >>conftest.$ac_ext <<_ACEOF | |
7727 | /* end confdefs.h. */ | |
8a2fc586 AK |
7728 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7730 | #define $ac_func innocuous_$ac_func | |
7731 | ||
ad6254c5 AK |
7732 | /* System header to define __stub macros and hopefully few prototypes, |
7733 | which can conflict with char $ac_func (); below. | |
7734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7735 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7736 | |
ad6254c5 AK |
7737 | #ifdef __STDC__ |
7738 | # include <limits.h> | |
7739 | #else | |
7740 | # include <assert.h> | |
7741 | #endif | |
8a2fc586 AK |
7742 | |
7743 | #undef $ac_func | |
7744 | ||
ad6254c5 AK |
7745 | /* Override any gcc2 internal prototype to avoid an error. */ |
7746 | #ifdef __cplusplus | |
7747 | extern "C" | |
7748 | { | |
7749 | #endif | |
7750 | /* We use char because int might match the return type of a gcc2 | |
7751 | builtin and then its argument prototype would still apply. */ | |
7752 | char $ac_func (); | |
7753 | /* The GNU C library defines this for functions which it implements | |
7754 | to always fail with ENOSYS. Some functions are actually named | |
7755 | something starting with __ and the normal name is an alias. */ | |
7756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7757 | choke me | |
7758 | #else | |
7759 | char (*f) () = $ac_func; | |
7760 | #endif | |
7761 | #ifdef __cplusplus | |
7762 | } | |
7763 | #endif | |
7764 | ||
7765 | int | |
7766 | main () | |
7767 | { | |
7768 | return f != $ac_func; | |
7769 | ; | |
7770 | return 0; | |
7771 | } | |
7772 | _ACEOF | |
7773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7775 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7776 | ac_status=$? |
8a2fc586 AK |
7777 | grep -v '^ *+' conftest.er1 >conftest.err |
7778 | rm -f conftest.er1 | |
7779 | cat conftest.err >&5 | |
ad6254c5 AK |
7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7781 | (exit $ac_status); } && | |
8a2fc586 AK |
7782 | { ac_try='test -z "$ac_c_werror_flag" |
7783 | || test ! -s conftest.err' | |
7784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7785 | (eval $ac_try) 2>&5 | |
7786 | ac_status=$? | |
7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7788 | (exit $ac_status); }; } && | |
7789 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7791 | (eval $ac_try) 2>&5 | |
7792 | ac_status=$? | |
7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7794 | (exit $ac_status); }; }; then | |
7795 | eval "$as_ac_var=yes" | |
7796 | else | |
7797 | echo "$as_me: failed program was:" >&5 | |
7798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7799 | ||
7800 | eval "$as_ac_var=no" | |
7801 | fi | |
8a2fc586 AK |
7802 | rm -f conftest.err conftest.$ac_objext \ |
7803 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7804 | fi |
7805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7806 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7807 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7808 | cat >>confdefs.h <<_ACEOF | |
7809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7810 | _ACEOF | |
7811 | ||
7812 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7813 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7814 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7816 | else | |
7817 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7818 | /* confdefs.h. */ |
7819 | _ACEOF | |
7820 | cat confdefs.h >>conftest.$ac_ext | |
7821 | cat >>conftest.$ac_ext <<_ACEOF | |
7822 | /* end confdefs.h. */ | |
8a2fc586 AK |
7823 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
7824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7825 | #define _doprnt innocuous__doprnt | |
7826 | ||
ad6254c5 AK |
7827 | /* System header to define __stub macros and hopefully few prototypes, |
7828 | which can conflict with char _doprnt (); below. | |
7829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7830 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7831 | |
ad6254c5 AK |
7832 | #ifdef __STDC__ |
7833 | # include <limits.h> | |
7834 | #else | |
7835 | # include <assert.h> | |
7836 | #endif | |
8a2fc586 AK |
7837 | |
7838 | #undef _doprnt | |
7839 | ||
ad6254c5 AK |
7840 | /* Override any gcc2 internal prototype to avoid an error. */ |
7841 | #ifdef __cplusplus | |
7842 | extern "C" | |
7843 | { | |
7844 | #endif | |
7845 | /* We use char because int might match the return type of a gcc2 | |
7846 | builtin and then its argument prototype would still apply. */ | |
7847 | char _doprnt (); | |
7848 | /* The GNU C library defines this for functions which it implements | |
7849 | to always fail with ENOSYS. Some functions are actually named | |
7850 | something starting with __ and the normal name is an alias. */ | |
7851 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7852 | choke me | |
7853 | #else | |
7854 | char (*f) () = _doprnt; | |
7855 | #endif | |
7856 | #ifdef __cplusplus | |
7857 | } | |
7858 | #endif | |
7859 | ||
7860 | int | |
7861 | main () | |
7862 | { | |
7863 | return f != _doprnt; | |
7864 | ; | |
7865 | return 0; | |
7866 | } | |
7867 | _ACEOF | |
7868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7870 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7871 | ac_status=$? |
8a2fc586 AK |
7872 | grep -v '^ *+' conftest.er1 >conftest.err |
7873 | rm -f conftest.er1 | |
7874 | cat conftest.err >&5 | |
ad6254c5 AK |
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7876 | (exit $ac_status); } && | |
8a2fc586 AK |
7877 | { ac_try='test -z "$ac_c_werror_flag" |
7878 | || test ! -s conftest.err' | |
7879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7880 | (eval $ac_try) 2>&5 | |
7881 | ac_status=$? | |
7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7883 | (exit $ac_status); }; } && | |
7884 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7886 | (eval $ac_try) 2>&5 | |
7887 | ac_status=$? | |
7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7889 | (exit $ac_status); }; }; then | |
7890 | ac_cv_func__doprnt=yes | |
7891 | else | |
7892 | echo "$as_me: failed program was:" >&5 | |
7893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7894 | ||
7895 | ac_cv_func__doprnt=no | |
7896 | fi | |
8a2fc586 AK |
7897 | rm -f conftest.err conftest.$ac_objext \ |
7898 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7899 | fi |
7900 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7901 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7902 | if test $ac_cv_func__doprnt = yes; then | |
7903 | ||
7904 | cat >>confdefs.h <<\_ACEOF | |
7905 | #define HAVE_DOPRNT 1 | |
7906 | _ACEOF | |
7907 | ||
7908 | fi | |
7909 | ||
7910 | fi | |
7911 | done | |
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | for ac_func in mkdir rmdir uname | |
7918 | do | |
7919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7920 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7922 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7924 | else | |
7925 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7926 | /* confdefs.h. */ |
7927 | _ACEOF | |
7928 | cat confdefs.h >>conftest.$ac_ext | |
7929 | cat >>conftest.$ac_ext <<_ACEOF | |
7930 | /* end confdefs.h. */ | |
8a2fc586 AK |
7931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7933 | #define $ac_func innocuous_$ac_func | |
7934 | ||
ad6254c5 AK |
7935 | /* System header to define __stub macros and hopefully few prototypes, |
7936 | which can conflict with char $ac_func (); below. | |
7937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7938 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7939 | |
ad6254c5 AK |
7940 | #ifdef __STDC__ |
7941 | # include <limits.h> | |
7942 | #else | |
7943 | # include <assert.h> | |
7944 | #endif | |
8a2fc586 AK |
7945 | |
7946 | #undef $ac_func | |
7947 | ||
ad6254c5 AK |
7948 | /* Override any gcc2 internal prototype to avoid an error. */ |
7949 | #ifdef __cplusplus | |
7950 | extern "C" | |
7951 | { | |
7952 | #endif | |
7953 | /* We use char because int might match the return type of a gcc2 | |
7954 | builtin and then its argument prototype would still apply. */ | |
7955 | char $ac_func (); | |
7956 | /* The GNU C library defines this for functions which it implements | |
7957 | to always fail with ENOSYS. Some functions are actually named | |
7958 | something starting with __ and the normal name is an alias. */ | |
7959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7960 | choke me | |
7961 | #else | |
7962 | char (*f) () = $ac_func; | |
7963 | #endif | |
7964 | #ifdef __cplusplus | |
7965 | } | |
7966 | #endif | |
7967 | ||
7968 | int | |
7969 | main () | |
7970 | { | |
7971 | return f != $ac_func; | |
7972 | ; | |
7973 | return 0; | |
7974 | } | |
7975 | _ACEOF | |
7976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7978 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7979 | ac_status=$? |
8a2fc586 AK |
7980 | grep -v '^ *+' conftest.er1 >conftest.err |
7981 | rm -f conftest.er1 | |
7982 | cat conftest.err >&5 | |
ad6254c5 AK |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7984 | (exit $ac_status); } && | |
8a2fc586 AK |
7985 | { ac_try='test -z "$ac_c_werror_flag" |
7986 | || test ! -s conftest.err' | |
7987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7988 | (eval $ac_try) 2>&5 | |
7989 | ac_status=$? | |
7990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7991 | (exit $ac_status); }; } && | |
7992 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7994 | (eval $ac_try) 2>&5 | |
7995 | ac_status=$? | |
7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7997 | (exit $ac_status); }; }; then | |
7998 | eval "$as_ac_var=yes" | |
7999 | else | |
8000 | echo "$as_me: failed program was:" >&5 | |
8001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8002 | ||
8003 | eval "$as_ac_var=no" | |
8004 | fi | |
8a2fc586 AK |
8005 | rm -f conftest.err conftest.$ac_objext \ |
8006 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8007 | fi |
8008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8009 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8010 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8011 | cat >>confdefs.h <<_ACEOF | |
8012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8013 | _ACEOF | |
8014 | ||
8015 | else | |
8016 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8017 | echo "$as_me: error: bailing out" >&2;} | |
8018 | { (exit 1); exit 1; }; } | |
8019 | fi | |
8020 | done | |
8021 | ||
8022 | ||
8023 | ################################################################################ | |
8024 | if test x$READLINE = xyes; then | |
8025 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8026 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8027 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8029 | else | |
8030 | ac_func_search_save_LIBS=$LIBS | |
8031 | ac_cv_search_tgetent=no | |
8032 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8033 | /* confdefs.h. */ |
8034 | _ACEOF | |
8035 | cat confdefs.h >>conftest.$ac_ext | |
8036 | cat >>conftest.$ac_ext <<_ACEOF | |
8037 | /* end confdefs.h. */ | |
8038 | ||
8039 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8040 | #ifdef __cplusplus | |
8041 | extern "C" | |
8042 | #endif | |
8043 | /* We use char because int might match the return type of a gcc2 | |
8044 | builtin and then its argument prototype would still apply. */ | |
8045 | char tgetent (); | |
8046 | int | |
8047 | main () | |
8048 | { | |
8049 | tgetent (); | |
8050 | ; | |
8051 | return 0; | |
8052 | } | |
8053 | _ACEOF | |
8054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8056 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8057 | ac_status=$? |
8a2fc586 AK |
8058 | grep -v '^ *+' conftest.er1 >conftest.err |
8059 | rm -f conftest.er1 | |
8060 | cat conftest.err >&5 | |
ad6254c5 AK |
8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8062 | (exit $ac_status); } && | |
8a2fc586 AK |
8063 | { ac_try='test -z "$ac_c_werror_flag" |
8064 | || test ! -s conftest.err' | |
8065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8066 | (eval $ac_try) 2>&5 | |
8067 | ac_status=$? | |
8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8069 | (exit $ac_status); }; } && | |
8070 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8072 | (eval $ac_try) 2>&5 | |
8073 | ac_status=$? | |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8075 | (exit $ac_status); }; }; then | |
8076 | ac_cv_search_tgetent="none required" | |
8077 | else | |
8078 | echo "$as_me: failed program was:" >&5 | |
8079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8080 | ||
8081 | fi | |
8a2fc586 AK |
8082 | rm -f conftest.err conftest.$ac_objext \ |
8083 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8084 | if test "$ac_cv_search_tgetent" = no; then |
8085 | for ac_lib in ncurses curses termcap termlib; do | |
8086 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8087 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8088 | /* confdefs.h. */ |
8089 | _ACEOF | |
8090 | cat confdefs.h >>conftest.$ac_ext | |
8091 | cat >>conftest.$ac_ext <<_ACEOF | |
8092 | /* end confdefs.h. */ | |
8093 | ||
8094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8095 | #ifdef __cplusplus | |
8096 | extern "C" | |
8097 | #endif | |
8098 | /* We use char because int might match the return type of a gcc2 | |
8099 | builtin and then its argument prototype would still apply. */ | |
8100 | char tgetent (); | |
8101 | int | |
8102 | main () | |
8103 | { | |
8104 | tgetent (); | |
8105 | ; | |
8106 | return 0; | |
8107 | } | |
8108 | _ACEOF | |
8109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8111 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8112 | ac_status=$? |
8a2fc586 AK |
8113 | grep -v '^ *+' conftest.er1 >conftest.err |
8114 | rm -f conftest.er1 | |
8115 | cat conftest.err >&5 | |
ad6254c5 AK |
8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8117 | (exit $ac_status); } && | |
8a2fc586 AK |
8118 | { ac_try='test -z "$ac_c_werror_flag" |
8119 | || test ! -s conftest.err' | |
8120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8121 | (eval $ac_try) 2>&5 | |
8122 | ac_status=$? | |
8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8124 | (exit $ac_status); }; } && | |
8125 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8127 | (eval $ac_try) 2>&5 | |
8128 | ac_status=$? | |
8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8130 | (exit $ac_status); }; }; then | |
8131 | ac_cv_search_tgetent="-l$ac_lib" | |
8132 | break | |
8133 | else | |
8134 | echo "$as_me: failed program was:" >&5 | |
8135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8136 | ||
8137 | fi | |
8a2fc586 AK |
8138 | rm -f conftest.err conftest.$ac_objext \ |
8139 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8140 | done |
8141 | fi | |
8142 | LIBS=$ac_func_search_save_LIBS | |
8143 | fi | |
8144 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8145 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8146 | if test "$ac_cv_search_tgetent" != no; then | |
8147 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
8148 | ||
8149 | else | |
8150 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
8151 | --enable-readline option (which is enabled by default). Either disable readline | |
8152 | support with --disable-readline or download and install termcap from: | |
8153 | ftp.gnu.org/gnu/termcap | |
8154 | Note: if you are using precompiled packages you will also need the development | |
8155 | package as well (which may be called termcap-devel or something similar). | |
8156 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8157 | not found either - but you could try installing that as well. | |
8158 | " >&5 | |
8159 | echo "$as_me: error: termcap could not be found which is required for the | |
8160 | --enable-readline option (which is enabled by default). Either disable readline | |
8161 | support with --disable-readline or download and install termcap from: | |
8162 | ftp.gnu.org/gnu/termcap | |
8163 | Note: if you are using precompiled packages you will also need the development | |
8164 | package as well (which may be called termcap-devel or something similar). | |
8165 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8166 | not found either - but you could try installing that as well. | |
8167 | " >&2;} | |
8168 | { (exit 1); exit 1; }; } | |
8169 | ||
8170 | fi | |
8171 | ||
8172 | fi | |
8173 | ||
8174 | ################################################################################ | |
8175 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8176 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8177 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8179 | else | |
8180 | ac_check_lib_save_LIBS=$LIBS | |
8181 | LIBS="-ldl $LIBS" | |
8182 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8183 | /* confdefs.h. */ |
8184 | _ACEOF | |
8185 | cat confdefs.h >>conftest.$ac_ext | |
8186 | cat >>conftest.$ac_ext <<_ACEOF | |
8187 | /* end confdefs.h. */ | |
8188 | ||
8189 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8190 | #ifdef __cplusplus | |
8191 | extern "C" | |
8192 | #endif | |
8193 | /* We use char because int might match the return type of a gcc2 | |
8194 | builtin and then its argument prototype would still apply. */ | |
8195 | char dlopen (); | |
8196 | int | |
8197 | main () | |
8198 | { | |
8199 | dlopen (); | |
8200 | ; | |
8201 | return 0; | |
8202 | } | |
8203 | _ACEOF | |
8204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8206 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8207 | ac_status=$? |
8a2fc586 AK |
8208 | grep -v '^ *+' conftest.er1 >conftest.err |
8209 | rm -f conftest.er1 | |
8210 | cat conftest.err >&5 | |
ad6254c5 AK |
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8212 | (exit $ac_status); } && | |
8a2fc586 AK |
8213 | { ac_try='test -z "$ac_c_werror_flag" |
8214 | || test ! -s conftest.err' | |
8215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8216 | (eval $ac_try) 2>&5 | |
8217 | ac_status=$? | |
8218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8219 | (exit $ac_status); }; } && | |
8220 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8222 | (eval $ac_try) 2>&5 | |
8223 | ac_status=$? | |
8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8225 | (exit $ac_status); }; }; then | |
8226 | ac_cv_lib_dl_dlopen=yes | |
8227 | else | |
8228 | echo "$as_me: failed program was:" >&5 | |
8229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8230 | ||
8231 | ac_cv_lib_dl_dlopen=no | |
8232 | fi | |
8a2fc586 AK |
8233 | rm -f conftest.err conftest.$ac_objext \ |
8234 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8235 | LIBS=$ac_check_lib_save_LIBS |
8236 | fi | |
8237 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8238 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8239 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8240 | HAVE_LIBDL=yes | |
8241 | else | |
8242 | HAVE_LIBDL=no | |
8243 | fi | |
8244 | ||
8245 | ||
7e9e9502 | 8246 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8247 | |
8248 | cat >>confdefs.h <<\_ACEOF | |
8249 | #define HAVE_LIBDL 1 | |
8250 | _ACEOF | |
8251 | ||
ad6254c5 AK |
8252 | LIBS="-ldl $LIBS" |
8253 | else | |
8254 | HAVE_LIBDL=no | |
8255 | fi | |
8256 | ||
8257 | ################################################################################ | |
8258 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8259 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8260 | \) -a "x$STATIC_LINK" = xyes ]; | |
8261 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8262 | " >&5 | |
8263 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8264 | " >&2;} | |
8265 | { (exit 1); exit 1; }; } | |
8266 | fi | |
8267 | ||
8268 | ################################################################################ | |
8269 | if test x$SELINUX = xyes; then | |
8a2fc586 AK |
8270 | echo "$as_me:$LINENO: checking for sepol_check_context function" >&5 |
8271 | echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6 | |
8272 | echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 | |
8273 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6 | |
8274 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then | |
8275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8276 | else | |
8277 | ac_check_lib_save_LIBS=$LIBS | |
8278 | LIBS="-lsepol $LIBS" | |
8279 | cat >conftest.$ac_ext <<_ACEOF | |
8280 | /* confdefs.h. */ | |
8281 | _ACEOF | |
8282 | cat confdefs.h >>conftest.$ac_ext | |
8283 | cat >>conftest.$ac_ext <<_ACEOF | |
8284 | /* end confdefs.h. */ | |
8285 | ||
8286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8287 | #ifdef __cplusplus | |
8288 | extern "C" | |
8289 | #endif | |
8290 | /* We use char because int might match the return type of a gcc2 | |
8291 | builtin and then its argument prototype would still apply. */ | |
8292 | char sepol_check_context (); | |
8293 | int | |
8294 | main () | |
8295 | { | |
8296 | sepol_check_context (); | |
8297 | ; | |
8298 | return 0; | |
8299 | } | |
8300 | _ACEOF | |
8301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8303 | (eval $ac_link) 2>conftest.er1 | |
8304 | ac_status=$? | |
8305 | grep -v '^ *+' conftest.er1 >conftest.err | |
8306 | rm -f conftest.er1 | |
8307 | cat conftest.err >&5 | |
8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8309 | (exit $ac_status); } && | |
8310 | { ac_try='test -z "$ac_c_werror_flag" | |
8311 | || test ! -s conftest.err' | |
8312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8313 | (eval $ac_try) 2>&5 | |
8314 | ac_status=$? | |
8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8316 | (exit $ac_status); }; } && | |
8317 | { ac_try='test -s conftest$ac_exeext' | |
8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8319 | (eval $ac_try) 2>&5 | |
8320 | ac_status=$? | |
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8322 | (exit $ac_status); }; }; then | |
8323 | ac_cv_lib_sepol_sepol_check_context=yes | |
8324 | else | |
8325 | echo "$as_me: failed program was:" >&5 | |
8326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8327 | ||
8328 | ac_cv_lib_sepol_sepol_check_context=no | |
8329 | fi | |
8330 | rm -f conftest.err conftest.$ac_objext \ | |
8331 | conftest$ac_exeext conftest.$ac_ext | |
8332 | LIBS=$ac_check_lib_save_LIBS | |
8333 | fi | |
8334 | echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 | |
8335 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6 | |
8336 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then | |
8337 | HAVE_SEPOL=yes | |
8338 | else | |
8339 | HAVE_SEPOL=no | |
8340 | fi | |
8341 | ||
8342 | echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5 | |
8343 | echo "${ECHO_T}$HAVE_SEPOL" >&6 | |
8344 | ||
8345 | if test x$HAVE_SEPOL = xyes; then | |
8346 | LIBS="-lsepol $LIBS" | |
8347 | fi | |
8348 | ||
ad6254c5 AK |
8349 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 |
8350 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
8351 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
8352 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
8353 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
8354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8355 | else | |
8356 | ac_check_lib_save_LIBS=$LIBS | |
8357 | LIBS="-lselinux $LIBS" | |
8358 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8359 | /* confdefs.h. */ |
8360 | _ACEOF | |
8361 | cat confdefs.h >>conftest.$ac_ext | |
8362 | cat >>conftest.$ac_ext <<_ACEOF | |
8363 | /* end confdefs.h. */ | |
8364 | ||
8365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8366 | #ifdef __cplusplus | |
8367 | extern "C" | |
8368 | #endif | |
8369 | /* We use char because int might match the return type of a gcc2 | |
8370 | builtin and then its argument prototype would still apply. */ | |
8371 | char is_selinux_enabled (); | |
8372 | int | |
8373 | main () | |
8374 | { | |
8375 | is_selinux_enabled (); | |
8376 | ; | |
8377 | return 0; | |
8378 | } | |
8379 | _ACEOF | |
8380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8382 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8383 | ac_status=$? |
8a2fc586 AK |
8384 | grep -v '^ *+' conftest.er1 >conftest.err |
8385 | rm -f conftest.er1 | |
8386 | cat conftest.err >&5 | |
ad6254c5 AK |
8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8388 | (exit $ac_status); } && | |
8a2fc586 AK |
8389 | { ac_try='test -z "$ac_c_werror_flag" |
8390 | || test ! -s conftest.err' | |
8391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8392 | (eval $ac_try) 2>&5 | |
8393 | ac_status=$? | |
8394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8395 | (exit $ac_status); }; } && | |
8396 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8398 | (eval $ac_try) 2>&5 | |
8399 | ac_status=$? | |
8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8401 | (exit $ac_status); }; }; then | |
8402 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8403 | else | |
8404 | echo "$as_me: failed program was:" >&5 | |
8405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8406 | ||
8407 | ac_cv_lib_selinux_is_selinux_enabled=no | |
8408 | fi | |
8a2fc586 AK |
8409 | rm -f conftest.err conftest.$ac_objext \ |
8410 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8411 | LIBS=$ac_check_lib_save_LIBS |
8412 | fi | |
8413 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8414 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
8415 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
8416 | HAVE_SELINUX=yes | |
8417 | else | |
8418 | HAVE_SELINUX=no | |
8419 | fi | |
8420 | ||
8421 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
8422 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
8423 | ||
8424 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
8425 | |
8426 | cat >>confdefs.h <<\_ACEOF | |
8427 | #define HAVE_SELINUX 1 | |
8428 | _ACEOF | |
8429 | ||
ad6254c5 AK |
8430 | LIBS="-lselinux $LIBS" |
8431 | else | |
8432 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8433 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8434 | fi | |
8435 | fi | |
8436 | ||
8b1a3214 AK |
8437 | ################################################################################ |
8438 | if test x$REALTIME = xyes; then | |
8439 | echo "$as_me:$LINENO: checking for clock_gettime function" >&5 | |
8440 | echo $ECHO_N "checking for clock_gettime function... $ECHO_C" >&6 | |
8441 | echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 | |
8442 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 | |
8443 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then | |
8444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8445 | else | |
8446 | ac_check_lib_save_LIBS=$LIBS | |
8447 | LIBS="-lrt $LIBS" | |
8448 | cat >conftest.$ac_ext <<_ACEOF | |
8449 | /* confdefs.h. */ | |
8450 | _ACEOF | |
8451 | cat confdefs.h >>conftest.$ac_ext | |
8452 | cat >>conftest.$ac_ext <<_ACEOF | |
8453 | /* end confdefs.h. */ | |
8454 | ||
8455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8456 | #ifdef __cplusplus | |
8457 | extern "C" | |
8458 | #endif | |
8459 | /* We use char because int might match the return type of a gcc2 | |
8460 | builtin and then its argument prototype would still apply. */ | |
8461 | char clock_gettime (); | |
8462 | int | |
8463 | main () | |
8464 | { | |
8465 | clock_gettime (); | |
8466 | ; | |
8467 | return 0; | |
8468 | } | |
8469 | _ACEOF | |
8470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8472 | (eval $ac_link) 2>conftest.er1 | |
8473 | ac_status=$? | |
8474 | grep -v '^ *+' conftest.er1 >conftest.err | |
8475 | rm -f conftest.er1 | |
8476 | cat conftest.err >&5 | |
8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8478 | (exit $ac_status); } && | |
8479 | { ac_try='test -z "$ac_c_werror_flag" | |
8480 | || test ! -s conftest.err' | |
8481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8482 | (eval $ac_try) 2>&5 | |
8483 | ac_status=$? | |
8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8485 | (exit $ac_status); }; } && | |
8486 | { ac_try='test -s conftest$ac_exeext' | |
8487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8488 | (eval $ac_try) 2>&5 | |
8489 | ac_status=$? | |
8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8491 | (exit $ac_status); }; }; then | |
8492 | ac_cv_lib_rt_clock_gettime=yes | |
8493 | else | |
8494 | echo "$as_me: failed program was:" >&5 | |
8495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8496 | ||
8497 | ac_cv_lib_rt_clock_gettime=no | |
8498 | fi | |
8499 | rm -f conftest.err conftest.$ac_objext \ | |
8500 | conftest$ac_exeext conftest.$ac_ext | |
8501 | LIBS=$ac_check_lib_save_LIBS | |
8502 | fi | |
8503 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
8504 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 | |
8505 | if test $ac_cv_lib_rt_clock_gettime = yes; then | |
8506 | HAVE_REALTIME=yes | |
8507 | else | |
8508 | HAVE_REALTIME=no | |
8509 | fi | |
8510 | ||
8511 | echo "$as_me:$LINENO: result: $HAVE_REALTIME" >&5 | |
8512 | echo "${ECHO_T}$HAVE_REALTIME" >&6 | |
8513 | ||
8514 | if test x$HAVE_REALTIME = xyes; then | |
8515 | ||
8516 | cat >>confdefs.h <<\_ACEOF | |
8517 | #define HAVE_REALTIME 1 | |
8518 | _ACEOF | |
8519 | ||
8520 | LIBS="-lrt $LIBS" | |
8521 | else | |
8522 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 | |
8523 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8524 | fi | |
8525 | fi | |
8526 | ||
ad6254c5 AK |
8527 | ################################################################################ |
8528 | ||
8529 | for ac_header in getopt.h | |
8530 | do | |
8531 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8537 | fi | |
8538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8540 | else | |
8541 | # Is the header compilable? | |
8542 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8544 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8545 | /* confdefs.h. */ |
8546 | _ACEOF | |
8547 | cat confdefs.h >>conftest.$ac_ext | |
8548 | cat >>conftest.$ac_ext <<_ACEOF | |
8549 | /* end confdefs.h. */ | |
8550 | $ac_includes_default | |
8551 | #include <$ac_header> | |
8552 | _ACEOF | |
8553 | rm -f conftest.$ac_objext | |
8554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8555 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8556 | ac_status=$? |
8a2fc586 AK |
8557 | grep -v '^ *+' conftest.er1 >conftest.err |
8558 | rm -f conftest.er1 | |
8559 | cat conftest.err >&5 | |
ad6254c5 AK |
8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8561 | (exit $ac_status); } && | |
8a2fc586 AK |
8562 | { ac_try='test -z "$ac_c_werror_flag" |
8563 | || test ! -s conftest.err' | |
8564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8565 | (eval $ac_try) 2>&5 | |
8566 | ac_status=$? | |
8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8568 | (exit $ac_status); }; } && | |
8569 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8571 | (eval $ac_try) 2>&5 | |
8572 | ac_status=$? | |
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8574 | (exit $ac_status); }; }; then | |
8575 | ac_header_compiler=yes | |
8576 | else | |
8577 | echo "$as_me: failed program was:" >&5 | |
8578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8579 | ||
8580 | ac_header_compiler=no | |
8581 | fi | |
8a2fc586 | 8582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8583 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8584 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8585 | ||
8586 | # Is the header present? | |
8587 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8588 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
8596 | _ACEOF | |
8597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8599 | ac_status=$? | |
8600 | grep -v '^ *+' conftest.er1 >conftest.err | |
8601 | rm -f conftest.er1 | |
8602 | cat conftest.err >&5 | |
8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8604 | (exit $ac_status); } >/dev/null; then | |
8605 | if test -s conftest.err; then | |
8606 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 8607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8608 | else |
8609 | ac_cpp_err= | |
8610 | fi | |
8611 | else | |
8612 | ac_cpp_err=yes | |
8613 | fi | |
8614 | if test -z "$ac_cpp_err"; then | |
8615 | ac_header_preproc=yes | |
8616 | else | |
8617 | echo "$as_me: failed program was:" >&5 | |
8618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8619 | ||
8620 | ac_header_preproc=no | |
8621 | fi | |
8622 | rm -f conftest.err conftest.$ac_ext | |
8623 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8624 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8625 | ||
8626 | # So? What about this header? | |
8a2fc586 AK |
8627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8628 | yes:no: ) | |
ad6254c5 AK |
8629 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8630 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
8631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8632 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8633 | ac_header_preproc=yes | |
ad6254c5 | 8634 | ;; |
8a2fc586 | 8635 | no:yes:* ) |
ad6254c5 AK |
8636 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8637 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
8638 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8639 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8640 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8641 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8642 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8643 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8644 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8645 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
8646 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8647 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8648 | ( |
8649 | cat <<\_ASBOX | |
8a2fc586 AK |
8650 | ## ------------------------------------------ ## |
8651 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8652 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8653 | _ASBOX |
8654 | ) | | |
8655 | sed "s/^/$as_me: WARNING: /" >&2 | |
8656 | ;; | |
8657 | esac | |
8658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8662 | else | |
8a2fc586 | 8663 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8664 | fi |
8665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8667 | ||
8668 | fi | |
8669 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8670 | cat >>confdefs.h <<_ACEOF | |
8671 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8672 | _ACEOF | |
72b2cb61 AK |
8673 | |
8674 | cat >>confdefs.h <<\_ACEOF | |
8675 | #define HAVE_GETOPTLONG 1 | |
8676 | _ACEOF | |
8677 | ||
ad6254c5 AK |
8678 | fi |
8679 | ||
8680 | done | |
8681 | ||
8682 | ||
8683 | ################################################################################ | |
8684 | if test x$READLINE = xyes; then | |
8685 | ||
8686 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
8687 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
8688 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
8689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8690 | else | |
8691 | ac_check_lib_save_LIBS=$LIBS | |
8692 | LIBS="-lreadline $LIBS" | |
8693 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8694 | /* confdefs.h. */ |
8695 | _ACEOF | |
8696 | cat confdefs.h >>conftest.$ac_ext | |
8697 | cat >>conftest.$ac_ext <<_ACEOF | |
8698 | /* end confdefs.h. */ | |
8699 | ||
8700 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8701 | #ifdef __cplusplus | |
8702 | extern "C" | |
8703 | #endif | |
8704 | /* We use char because int might match the return type of a gcc2 | |
8705 | builtin and then its argument prototype would still apply. */ | |
8706 | char readline (); | |
8707 | int | |
8708 | main () | |
8709 | { | |
8710 | readline (); | |
8711 | ; | |
8712 | return 0; | |
8713 | } | |
8714 | _ACEOF | |
8715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8717 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8718 | ac_status=$? |
8a2fc586 AK |
8719 | grep -v '^ *+' conftest.er1 >conftest.err |
8720 | rm -f conftest.er1 | |
8721 | cat conftest.err >&5 | |
ad6254c5 AK |
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8723 | (exit $ac_status); } && | |
8a2fc586 AK |
8724 | { ac_try='test -z "$ac_c_werror_flag" |
8725 | || test ! -s conftest.err' | |
8726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8727 | (eval $ac_try) 2>&5 | |
8728 | ac_status=$? | |
8729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8730 | (exit $ac_status); }; } && | |
8731 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8733 | (eval $ac_try) 2>&5 | |
8734 | ac_status=$? | |
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8736 | (exit $ac_status); }; }; then | |
8737 | ac_cv_lib_readline_readline=yes | |
8738 | else | |
8739 | echo "$as_me: failed program was:" >&5 | |
8740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8741 | ||
8742 | ac_cv_lib_readline_readline=no | |
8743 | fi | |
8a2fc586 AK |
8744 | rm -f conftest.err conftest.$ac_objext \ |
8745 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8746 | LIBS=$ac_check_lib_save_LIBS |
8747 | fi | |
8748 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
8749 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
8750 | if test $ac_cv_lib_readline_readline = yes; then | |
8751 | cat >>confdefs.h <<_ACEOF | |
8752 | #define HAVE_LIBREADLINE 1 | |
8753 | _ACEOF | |
8754 | ||
8755 | LIBS="-lreadline $LIBS" | |
8756 | ||
8757 | else | |
8758 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
8759 | --enable-readline option (which is enabled by default). Either disable readline | |
8760 | support with --disable-readline or download and install readline from: | |
8761 | ftp.gnu.org/gnu/readline | |
8762 | Note: if you are using precompiled packages you will also need the development | |
8763 | package as well (which may be called readline-devel or something similar). | |
8764 | " >&5 | |
8765 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
8766 | --enable-readline option (which is enabled by default). Either disable readline | |
8767 | support with --disable-readline or download and install readline from: | |
8768 | ftp.gnu.org/gnu/readline | |
8769 | Note: if you are using precompiled packages you will also need the development | |
8770 | package as well (which may be called readline-devel or something similar). | |
8771 | " >&2;} | |
8772 | { (exit 1); exit 1; }; } | |
8773 | ||
8774 | fi | |
8775 | ||
8776 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
8777 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
8778 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
8779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8780 | else | |
8781 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8782 | /* confdefs.h. */ |
8783 | _ACEOF | |
8784 | cat confdefs.h >>conftest.$ac_ext | |
8785 | cat >>conftest.$ac_ext <<_ACEOF | |
8786 | /* end confdefs.h. */ | |
8a2fc586 AK |
8787 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
8788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8789 | #define rl_completion_matches innocuous_rl_completion_matches | |
8790 | ||
ad6254c5 AK |
8791 | /* System header to define __stub macros and hopefully few prototypes, |
8792 | which can conflict with char rl_completion_matches (); below. | |
8793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8794 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8795 | |
ad6254c5 AK |
8796 | #ifdef __STDC__ |
8797 | # include <limits.h> | |
8798 | #else | |
8799 | # include <assert.h> | |
8800 | #endif | |
8a2fc586 AK |
8801 | |
8802 | #undef rl_completion_matches | |
8803 | ||
ad6254c5 AK |
8804 | /* Override any gcc2 internal prototype to avoid an error. */ |
8805 | #ifdef __cplusplus | |
8806 | extern "C" | |
8807 | { | |
8808 | #endif | |
8809 | /* We use char because int might match the return type of a gcc2 | |
8810 | builtin and then its argument prototype would still apply. */ | |
8811 | char rl_completion_matches (); | |
8812 | /* The GNU C library defines this for functions which it implements | |
8813 | to always fail with ENOSYS. Some functions are actually named | |
8814 | something starting with __ and the normal name is an alias. */ | |
8815 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
8816 | choke me | |
8817 | #else | |
8818 | char (*f) () = rl_completion_matches; | |
8819 | #endif | |
8820 | #ifdef __cplusplus | |
8821 | } | |
8822 | #endif | |
8823 | ||
8824 | int | |
8825 | main () | |
8826 | { | |
8827 | return f != rl_completion_matches; | |
8828 | ; | |
8829 | return 0; | |
8830 | } | |
8831 | _ACEOF | |
8832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8834 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8835 | ac_status=$? |
8a2fc586 AK |
8836 | grep -v '^ *+' conftest.er1 >conftest.err |
8837 | rm -f conftest.er1 | |
8838 | cat conftest.err >&5 | |
ad6254c5 AK |
8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8840 | (exit $ac_status); } && | |
8a2fc586 AK |
8841 | { ac_try='test -z "$ac_c_werror_flag" |
8842 | || test ! -s conftest.err' | |
8843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8844 | (eval $ac_try) 2>&5 | |
8845 | ac_status=$? | |
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8847 | (exit $ac_status); }; } && | |
8848 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8850 | (eval $ac_try) 2>&5 | |
8851 | ac_status=$? | |
8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8853 | (exit $ac_status); }; }; then | |
8854 | ac_cv_func_rl_completion_matches=yes | |
8855 | else | |
8856 | echo "$as_me: failed program was:" >&5 | |
8857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8858 | ||
8859 | ac_cv_func_rl_completion_matches=no | |
8860 | fi | |
8a2fc586 AK |
8861 | rm -f conftest.err conftest.$ac_objext \ |
8862 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8863 | fi |
8864 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
8865 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
8866 | if test $ac_cv_func_rl_completion_matches = yes; then | |
ad6254c5 | 8867 | |
72b2cb61 AK |
8868 | cat >>confdefs.h <<\_ACEOF |
8869 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
8870 | _ACEOF | |
8871 | ||
8872 | fi | |
ad6254c5 AK |
8873 | |
8874 | fi | |
8875 | ||
8876 | ################################################################################ | |
8877 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
8878 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
8879 | # Check whether --enable-nls or --disable-nls was given. | |
8880 | if test "${enable_nls+set}" = set; then | |
8881 | enableval="$enable_nls" | |
8882 | INTL=$enableval | |
8883 | else | |
8884 | INTL=no | |
8885 | fi; | |
8886 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
8887 | echo "${ECHO_T}$INTL" >&6 | |
8888 | ||
8889 | if test x$INTL = xyes; then | |
8890 | INTL_PACKAGE="lvm2" | |
8891 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8892 | set dummy msgfmt; ac_word=$2 | |
8893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8895 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8897 | else | |
8898 | case $MSGFMT in | |
8899 | [\\/]* | ?:[\\/]*) | |
8900 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8901 | ;; | |
8902 | *) | |
8903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8904 | for as_dir in $PATH | |
8905 | do | |
8906 | IFS=$as_save_IFS | |
8907 | test -z "$as_dir" && as_dir=. | |
8908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8910 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8912 | break 2 | |
8913 | fi | |
8914 | done | |
8915 | done | |
8916 | ||
8917 | ;; | |
8918 | esac | |
8919 | fi | |
8920 | MSGFMT=$ac_cv_path_MSGFMT | |
8921 | ||
8922 | if test -n "$MSGFMT"; then | |
8923 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
8924 | echo "${ECHO_T}$MSGFMT" >&6 | |
8925 | else | |
8926 | echo "$as_me:$LINENO: result: no" >&5 | |
8927 | echo "${ECHO_T}no" >&6 | |
8928 | fi | |
8929 | ||
8930 | if [ "x$MSGFMT" == x ]; | |
8931 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8932 | " >&5 | |
8933 | echo "$as_me: error: msgfmt not found in path $PATH | |
8934 | " >&2;} | |
8935 | { (exit 1); exit 1; }; } | |
8936 | fi; | |
8937 | ||
8938 | ||
8939 | # Check whether --with-localedir or --without-localedir was given. | |
8940 | if test "${with_localedir+set}" = set; then | |
8941 | withval="$with_localedir" | |
8942 | LOCALEDIR="$withval" | |
8943 | else | |
8944 | LOCALEDIR='${prefix}/share/locale' | |
8945 | fi; | |
8946 | fi | |
8947 | ||
8948 | ################################################################################ | |
8949 | ||
8950 | # Check whether --with-confdir or --without-confdir was given. | |
8951 | if test "${with_confdir+set}" = set; then | |
8952 | withval="$with_confdir" | |
8953 | CONFDIR="$withval" | |
8954 | else | |
8955 | CONFDIR='/etc' | |
8956 | fi; | |
8957 | ||
8958 | ||
8959 | # Check whether --with-staticdir or --without-staticdir was given. | |
8960 | if test "${with_staticdir+set}" = set; then | |
8961 | withval="$with_staticdir" | |
8962 | STATICDIR="$withval" | |
8963 | else | |
8964 | STATICDIR='${exec_prefix}/sbin' | |
8965 | fi; | |
8966 | ||
8967 | ################################################################################ | |
8968 | if test x$READLINE = xyes; then | |
8969 | ||
8970 | ||
8971 | for ac_header in readline/readline.h readline/history.h | |
8972 | do | |
8973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8979 | fi | |
8980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8982 | else | |
8983 | # Is the header compilable? | |
8984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8986 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8987 | /* confdefs.h. */ |
8988 | _ACEOF | |
8989 | cat confdefs.h >>conftest.$ac_ext | |
8990 | cat >>conftest.$ac_ext <<_ACEOF | |
8991 | /* end confdefs.h. */ | |
8992 | $ac_includes_default | |
8993 | #include <$ac_header> | |
8994 | _ACEOF | |
8995 | rm -f conftest.$ac_objext | |
8996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8997 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8998 | ac_status=$? |
8a2fc586 AK |
8999 | grep -v '^ *+' conftest.er1 >conftest.err |
9000 | rm -f conftest.er1 | |
9001 | cat conftest.err >&5 | |
ad6254c5 AK |
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9003 | (exit $ac_status); } && | |
8a2fc586 AK |
9004 | { ac_try='test -z "$ac_c_werror_flag" |
9005 | || test ! -s conftest.err' | |
9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9007 | (eval $ac_try) 2>&5 | |
9008 | ac_status=$? | |
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9010 | (exit $ac_status); }; } && | |
9011 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9013 | (eval $ac_try) 2>&5 | |
9014 | ac_status=$? | |
9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9016 | (exit $ac_status); }; }; then | |
9017 | ac_header_compiler=yes | |
9018 | else | |
9019 | echo "$as_me: failed program was:" >&5 | |
9020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9021 | ||
9022 | ac_header_compiler=no | |
9023 | fi | |
8a2fc586 | 9024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9026 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9027 | ||
9028 | # Is the header present? | |
9029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9031 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9032 | /* confdefs.h. */ |
9033 | _ACEOF | |
9034 | cat confdefs.h >>conftest.$ac_ext | |
9035 | cat >>conftest.$ac_ext <<_ACEOF | |
9036 | /* end confdefs.h. */ | |
9037 | #include <$ac_header> | |
9038 | _ACEOF | |
9039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9041 | ac_status=$? | |
9042 | grep -v '^ *+' conftest.er1 >conftest.err | |
9043 | rm -f conftest.er1 | |
9044 | cat conftest.err >&5 | |
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9046 | (exit $ac_status); } >/dev/null; then | |
9047 | if test -s conftest.err; then | |
9048 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9050 | else |
9051 | ac_cpp_err= | |
9052 | fi | |
9053 | else | |
9054 | ac_cpp_err=yes | |
9055 | fi | |
9056 | if test -z "$ac_cpp_err"; then | |
9057 | ac_header_preproc=yes | |
9058 | else | |
9059 | echo "$as_me: failed program was:" >&5 | |
9060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9061 | ||
9062 | ac_header_preproc=no | |
9063 | fi | |
9064 | rm -f conftest.err conftest.$ac_ext | |
9065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9066 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9067 | ||
9068 | # So? What about this header? | |
8a2fc586 AK |
9069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9070 | yes:no: ) | |
ad6254c5 AK |
9071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9075 | ac_header_preproc=yes | |
ad6254c5 | 9076 | ;; |
8a2fc586 | 9077 | no:yes:* ) |
ad6254c5 AK |
9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9090 | ( |
9091 | cat <<\_ASBOX | |
8a2fc586 AK |
9092 | ## ------------------------------------------ ## |
9093 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9094 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9095 | _ASBOX |
9096 | ) | | |
9097 | sed "s/^/$as_me: WARNING: /" >&2 | |
9098 | ;; | |
9099 | esac | |
9100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9104 | else | |
8a2fc586 | 9105 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
9106 | fi |
9107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9109 | ||
9110 | fi | |
9111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9112 | cat >>confdefs.h <<_ACEOF | |
9113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9114 | _ACEOF | |
9115 | ||
9116 | else | |
9117 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9118 | echo "$as_me: error: bailing out" >&2;} | |
9119 | { (exit 1); exit 1; }; } | |
9120 | fi | |
9121 | ||
9122 | done | |
9123 | ||
9124 | fi | |
9125 | ||
5c7fc7c4 | 9126 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9127 | |
9128 | ||
9129 | ||
9130 | ||
9131 | ||
9132 | ||
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | 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 | |
9138 | do | |
9139 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9145 | fi | |
9146 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9147 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9148 | else | |
9149 | # Is the header compilable? | |
9150 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9151 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9152 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9153 | /* confdefs.h. */ |
9154 | _ACEOF | |
9155 | cat confdefs.h >>conftest.$ac_ext | |
9156 | cat >>conftest.$ac_ext <<_ACEOF | |
9157 | /* end confdefs.h. */ | |
9158 | $ac_includes_default | |
9159 | #include <$ac_header> | |
9160 | _ACEOF | |
9161 | rm -f conftest.$ac_objext | |
9162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9163 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9164 | ac_status=$? |
8a2fc586 AK |
9165 | grep -v '^ *+' conftest.er1 >conftest.err |
9166 | rm -f conftest.er1 | |
9167 | cat conftest.err >&5 | |
ad6254c5 AK |
9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9169 | (exit $ac_status); } && | |
8a2fc586 AK |
9170 | { ac_try='test -z "$ac_c_werror_flag" |
9171 | || test ! -s conftest.err' | |
9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9173 | (eval $ac_try) 2>&5 | |
9174 | ac_status=$? | |
9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9176 | (exit $ac_status); }; } && | |
9177 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9179 | (eval $ac_try) 2>&5 | |
9180 | ac_status=$? | |
9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9182 | (exit $ac_status); }; }; then | |
9183 | ac_header_compiler=yes | |
9184 | else | |
9185 | echo "$as_me: failed program was:" >&5 | |
9186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9187 | ||
9188 | ac_header_compiler=no | |
9189 | fi | |
8a2fc586 | 9190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9191 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9192 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9193 | ||
9194 | # Is the header present? | |
9195 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9196 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9197 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9198 | /* confdefs.h. */ |
9199 | _ACEOF | |
9200 | cat confdefs.h >>conftest.$ac_ext | |
9201 | cat >>conftest.$ac_ext <<_ACEOF | |
9202 | /* end confdefs.h. */ | |
9203 | #include <$ac_header> | |
9204 | _ACEOF | |
9205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9207 | ac_status=$? | |
9208 | grep -v '^ *+' conftest.er1 >conftest.err | |
9209 | rm -f conftest.er1 | |
9210 | cat conftest.err >&5 | |
9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9212 | (exit $ac_status); } >/dev/null; then | |
9213 | if test -s conftest.err; then | |
9214 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9215 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9216 | else |
9217 | ac_cpp_err= | |
9218 | fi | |
9219 | else | |
9220 | ac_cpp_err=yes | |
9221 | fi | |
9222 | if test -z "$ac_cpp_err"; then | |
9223 | ac_header_preproc=yes | |
9224 | else | |
9225 | echo "$as_me: failed program was:" >&5 | |
9226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9227 | ||
9228 | ac_header_preproc=no | |
9229 | fi | |
9230 | rm -f conftest.err conftest.$ac_ext | |
9231 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9232 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9233 | ||
9234 | # So? What about this header? | |
8a2fc586 AK |
9235 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9236 | yes:no: ) | |
ad6254c5 AK |
9237 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9238 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9240 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9241 | ac_header_preproc=yes | |
ad6254c5 | 9242 | ;; |
8a2fc586 | 9243 | no:yes:* ) |
ad6254c5 AK |
9244 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9245 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9246 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9247 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9248 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9249 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9250 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9251 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9252 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9253 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9254 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9255 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9256 | ( |
9257 | cat <<\_ASBOX | |
8a2fc586 AK |
9258 | ## ------------------------------------------ ## |
9259 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9260 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9261 | _ASBOX |
9262 | ) | | |
9263 | sed "s/^/$as_me: WARNING: /" >&2 | |
9264 | ;; | |
9265 | esac | |
9266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9270 | else | |
8a2fc586 | 9271 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
9272 | fi |
9273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9274 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9275 | ||
9276 | fi | |
9277 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9278 | cat >>confdefs.h <<_ACEOF | |
9279 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9280 | _ACEOF | |
9281 | ||
9282 | else | |
9283 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9284 | echo "$as_me: error: bailing out" >&2;} | |
9285 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
9286 | fi |
9287 | ||
ad6254c5 AK |
9288 | done |
9289 | ||
9290 | ||
795ca3e5 | 9291 | |
8106cdd5 | 9292 | |
ad6254c5 AK |
9293 | |
9294 | ||
9295 | for ac_func in dup2 getmntent memmove select socket | |
9296 | do | |
9297 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9298 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9299 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9300 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9302 | else |
ad6254c5 | 9303 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9304 | /* confdefs.h. */ |
9305 | _ACEOF | |
9306 | cat confdefs.h >>conftest.$ac_ext | |
9307 | cat >>conftest.$ac_ext <<_ACEOF | |
9308 | /* end confdefs.h. */ | |
8a2fc586 AK |
9309 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9310 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9311 | #define $ac_func innocuous_$ac_func | |
9312 | ||
795ca3e5 | 9313 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9314 | which can conflict with char $ac_func (); below. |
9315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9316 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9317 | |
ad6254c5 AK |
9318 | #ifdef __STDC__ |
9319 | # include <limits.h> | |
9320 | #else | |
9321 | # include <assert.h> | |
9322 | #endif | |
8a2fc586 AK |
9323 | |
9324 | #undef $ac_func | |
9325 | ||
795ca3e5 | 9326 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9327 | #ifdef __cplusplus |
9328 | extern "C" | |
9329 | { | |
9330 | #endif | |
795ca3e5 | 9331 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9332 | builtin and then its argument prototype would still apply. */ |
9333 | char $ac_func (); | |
795ca3e5 AK |
9334 | /* The GNU C library defines this for functions which it implements |
9335 | to always fail with ENOSYS. Some functions are actually named | |
9336 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 9337 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
9338 | choke me |
9339 | #else | |
ad6254c5 AK |
9340 | char (*f) () = $ac_func; |
9341 | #endif | |
9342 | #ifdef __cplusplus | |
9343 | } | |
795ca3e5 AK |
9344 | #endif |
9345 | ||
ad6254c5 AK |
9346 | int |
9347 | main () | |
9348 | { | |
9349 | return f != $ac_func; | |
9350 | ; | |
9351 | return 0; | |
9352 | } | |
9353 | _ACEOF | |
9354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9356 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9357 | ac_status=$? |
8a2fc586 AK |
9358 | grep -v '^ *+' conftest.er1 >conftest.err |
9359 | rm -f conftest.er1 | |
9360 | cat conftest.err >&5 | |
ad6254c5 AK |
9361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9362 | (exit $ac_status); } && | |
8a2fc586 AK |
9363 | { ac_try='test -z "$ac_c_werror_flag" |
9364 | || test ! -s conftest.err' | |
9365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9366 | (eval $ac_try) 2>&5 | |
9367 | ac_status=$? | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); }; } && | |
9370 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9372 | (eval $ac_try) 2>&5 | |
9373 | ac_status=$? | |
9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9375 | (exit $ac_status); }; }; then | |
9376 | eval "$as_ac_var=yes" | |
795ca3e5 | 9377 | else |
ad6254c5 AK |
9378 | echo "$as_me: failed program was:" >&5 |
9379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9380 | ||
9381 | eval "$as_ac_var=no" | |
80992638 | 9382 | fi |
8a2fc586 AK |
9383 | rm -f conftest.err conftest.$ac_objext \ |
9384 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9385 | fi |
ad6254c5 AK |
9386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9387 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9388 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9389 | cat >>confdefs.h <<_ACEOF | |
9390 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9391 | _ACEOF | |
80992638 AK |
9392 | |
9393 | else | |
ad6254c5 AK |
9394 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9395 | echo "$as_me: error: bailing out" >&2;} | |
9396 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9397 | fi |
ad6254c5 | 9398 | done |
795ca3e5 | 9399 | |
ad6254c5 AK |
9400 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
9401 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
9402 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
9403 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
9404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9405 | else |
ad6254c5 AK |
9406 | ac_check_lib_save_LIBS=$LIBS |
9407 | LIBS="-lsun $LIBS" | |
9408 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9409 | /* confdefs.h. */ |
9410 | _ACEOF | |
9411 | cat confdefs.h >>conftest.$ac_ext | |
9412 | cat >>conftest.$ac_ext <<_ACEOF | |
9413 | /* end confdefs.h. */ | |
9414 | ||
795ca3e5 | 9415 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9416 | #ifdef __cplusplus |
9417 | extern "C" | |
9418 | #endif | |
795ca3e5 | 9419 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9420 | builtin and then its argument prototype would still apply. */ |
9421 | char getmntent (); | |
9422 | int | |
9423 | main () | |
9424 | { | |
9425 | getmntent (); | |
9426 | ; | |
9427 | return 0; | |
9428 | } | |
9429 | _ACEOF | |
9430 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9432 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9433 | ac_status=$? |
8a2fc586 AK |
9434 | grep -v '^ *+' conftest.er1 >conftest.err |
9435 | rm -f conftest.er1 | |
9436 | cat conftest.err >&5 | |
ad6254c5 AK |
9437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9438 | (exit $ac_status); } && | |
8a2fc586 AK |
9439 | { ac_try='test -z "$ac_c_werror_flag" |
9440 | || test ! -s conftest.err' | |
9441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9442 | (eval $ac_try) 2>&5 | |
9443 | ac_status=$? | |
9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9445 | (exit $ac_status); }; } && | |
9446 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9448 | (eval $ac_try) 2>&5 | |
9449 | ac_status=$? | |
9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9451 | (exit $ac_status); }; }; then | |
9452 | ac_cv_lib_sun_getmntent=yes | |
9453 | else | |
9454 | echo "$as_me: failed program was:" >&5 | |
9455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 9456 | |
ad6254c5 AK |
9457 | ac_cv_lib_sun_getmntent=no |
9458 | fi | |
8a2fc586 AK |
9459 | rm -f conftest.err conftest.$ac_objext \ |
9460 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9461 | LIBS=$ac_check_lib_save_LIBS |
9462 | fi | |
9463 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
9464 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
9465 | if test $ac_cv_lib_sun_getmntent = yes; then | |
9466 | LIBS="-lsun $LIBS" | |
9467 | else | |
9468 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
9469 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
9470 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9472 | else | |
9473 | ac_check_lib_save_LIBS=$LIBS | |
9474 | LIBS="-lseq $LIBS" | |
9475 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9476 | /* confdefs.h. */ |
9477 | _ACEOF | |
9478 | cat confdefs.h >>conftest.$ac_ext | |
9479 | cat >>conftest.$ac_ext <<_ACEOF | |
9480 | /* end confdefs.h. */ | |
80992638 | 9481 | |
ad6254c5 AK |
9482 | /* Override any gcc2 internal prototype to avoid an error. */ |
9483 | #ifdef __cplusplus | |
9484 | extern "C" | |
795ca3e5 | 9485 | #endif |
ad6254c5 AK |
9486 | /* We use char because int might match the return type of a gcc2 |
9487 | builtin and then its argument prototype would still apply. */ | |
9488 | char getmntent (); | |
9489 | int | |
9490 | main () | |
9491 | { | |
9492 | getmntent (); | |
9493 | ; | |
9494 | return 0; | |
9495 | } | |
9496 | _ACEOF | |
9497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9499 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9500 | ac_status=$? |
8a2fc586 AK |
9501 | grep -v '^ *+' conftest.er1 >conftest.err |
9502 | rm -f conftest.er1 | |
9503 | cat conftest.err >&5 | |
ad6254c5 AK |
9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9505 | (exit $ac_status); } && | |
8a2fc586 AK |
9506 | { ac_try='test -z "$ac_c_werror_flag" |
9507 | || test ! -s conftest.err' | |
9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9509 | (eval $ac_try) 2>&5 | |
9510 | ac_status=$? | |
9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9512 | (exit $ac_status); }; } && | |
9513 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9515 | (eval $ac_try) 2>&5 | |
9516 | ac_status=$? | |
9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9518 | (exit $ac_status); }; }; then | |
9519 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 9520 | else |
ad6254c5 AK |
9521 | echo "$as_me: failed program was:" >&5 |
9522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9523 | ||
9524 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 9525 | fi |
8a2fc586 AK |
9526 | rm -f conftest.err conftest.$ac_objext \ |
9527 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 9528 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 9529 | fi |
ad6254c5 AK |
9530 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
9531 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
9532 | if test $ac_cv_lib_seq_getmntent = yes; then | |
9533 | LIBS="-lseq $LIBS" | |
9534 | else | |
9535 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
9536 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
9537 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
9538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9539 | else | |
9540 | ac_check_lib_save_LIBS=$LIBS | |
9541 | LIBS="-lgen $LIBS" | |
9542 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9543 | /* confdefs.h. */ |
9544 | _ACEOF | |
9545 | cat confdefs.h >>conftest.$ac_ext | |
9546 | cat >>conftest.$ac_ext <<_ACEOF | |
9547 | /* end confdefs.h. */ | |
795ca3e5 | 9548 | |
ad6254c5 AK |
9549 | /* Override any gcc2 internal prototype to avoid an error. */ |
9550 | #ifdef __cplusplus | |
9551 | extern "C" | |
9552 | #endif | |
9553 | /* We use char because int might match the return type of a gcc2 | |
9554 | builtin and then its argument prototype would still apply. */ | |
9555 | char getmntent (); | |
9556 | int | |
9557 | main () | |
9558 | { | |
9559 | getmntent (); | |
9560 | ; | |
9561 | return 0; | |
9562 | } | |
9563 | _ACEOF | |
9564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9566 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9567 | ac_status=$? |
8a2fc586 AK |
9568 | grep -v '^ *+' conftest.er1 >conftest.err |
9569 | rm -f conftest.er1 | |
9570 | cat conftest.err >&5 | |
ad6254c5 AK |
9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9572 | (exit $ac_status); } && | |
8a2fc586 AK |
9573 | { ac_try='test -z "$ac_c_werror_flag" |
9574 | || test ! -s conftest.err' | |
9575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9576 | (eval $ac_try) 2>&5 | |
9577 | ac_status=$? | |
9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9579 | (exit $ac_status); }; } && | |
9580 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9582 | (eval $ac_try) 2>&5 | |
9583 | ac_status=$? | |
9584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9585 | (exit $ac_status); }; }; then | |
9586 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 9587 | else |
ad6254c5 AK |
9588 | echo "$as_me: failed program was:" >&5 |
9589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9590 | ||
9591 | ac_cv_lib_gen_getmntent=no | |
9592 | fi | |
8a2fc586 AK |
9593 | rm -f conftest.err conftest.$ac_objext \ |
9594 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9595 | LIBS=$ac_check_lib_save_LIBS |
9596 | fi | |
9597 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
9598 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
9599 | if test $ac_cv_lib_gen_getmntent = yes; then | |
9600 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
9601 | fi |
9602 | ||
9603 | fi | |
9604 | ||
ad6254c5 AK |
9605 | fi |
9606 | ||
9607 | ||
9608 | for ac_func in getmntent | |
795ca3e5 | 9609 | do |
ad6254c5 AK |
9610 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9611 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9612 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9613 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9615 | else | |
9616 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9617 | /* confdefs.h. */ |
9618 | _ACEOF | |
9619 | cat confdefs.h >>conftest.$ac_ext | |
9620 | cat >>conftest.$ac_ext <<_ACEOF | |
9621 | /* end confdefs.h. */ | |
8a2fc586 AK |
9622 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9623 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9624 | #define $ac_func innocuous_$ac_func | |
9625 | ||
795ca3e5 | 9626 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9627 | which can conflict with char $ac_func (); below. |
9628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9629 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9630 | |
ad6254c5 AK |
9631 | #ifdef __STDC__ |
9632 | # include <limits.h> | |
9633 | #else | |
9634 | # include <assert.h> | |
9635 | #endif | |
8a2fc586 AK |
9636 | |
9637 | #undef $ac_func | |
9638 | ||
795ca3e5 | 9639 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9640 | #ifdef __cplusplus |
9641 | extern "C" | |
9642 | { | |
9643 | #endif | |
795ca3e5 | 9644 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9645 | builtin and then its argument prototype would still apply. */ |
9646 | char $ac_func (); | |
795ca3e5 AK |
9647 | /* The GNU C library defines this for functions which it implements |
9648 | to always fail with ENOSYS. Some functions are actually named | |
9649 | something starting with __ and the normal name is an alias. */ | |
9650 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9651 | choke me | |
9652 | #else | |
ad6254c5 AK |
9653 | char (*f) () = $ac_func; |
9654 | #endif | |
9655 | #ifdef __cplusplus | |
9656 | } | |
795ca3e5 AK |
9657 | #endif |
9658 | ||
ad6254c5 AK |
9659 | int |
9660 | main () | |
9661 | { | |
9662 | return f != $ac_func; | |
9663 | ; | |
9664 | return 0; | |
9665 | } | |
9666 | _ACEOF | |
9667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9669 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9670 | ac_status=$? |
8a2fc586 AK |
9671 | grep -v '^ *+' conftest.er1 >conftest.err |
9672 | rm -f conftest.er1 | |
9673 | cat conftest.err >&5 | |
ad6254c5 AK |
9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9675 | (exit $ac_status); } && | |
8a2fc586 AK |
9676 | { ac_try='test -z "$ac_c_werror_flag" |
9677 | || test ! -s conftest.err' | |
9678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9679 | (eval $ac_try) 2>&5 | |
9680 | ac_status=$? | |
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9682 | (exit $ac_status); }; } && | |
9683 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9685 | (eval $ac_try) 2>&5 | |
9686 | ac_status=$? | |
9687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9688 | (exit $ac_status); }; }; then | |
9689 | eval "$as_ac_var=yes" | |
795ca3e5 | 9690 | else |
ad6254c5 AK |
9691 | echo "$as_me: failed program was:" >&5 |
9692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9693 | ||
9694 | eval "$as_ac_var=no" | |
795ca3e5 | 9695 | fi |
8a2fc586 AK |
9696 | rm -f conftest.err conftest.$ac_objext \ |
9697 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9698 | fi |
ad6254c5 AK |
9699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9700 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9701 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9702 | cat >>confdefs.h <<_ACEOF | |
9703 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9704 | _ACEOF | |
795ca3e5 | 9705 | |
795ca3e5 AK |
9706 | fi |
9707 | done | |
9708 | ||
9709 | ||
ad6254c5 AK |
9710 | # AC_FUNC_REALLOC |
9711 | ||
9712 | ||
9713 | for ac_header in sys/select.h sys/socket.h | |
9714 | do | |
9715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9721 | fi | |
9722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 9724 | else |
ad6254c5 AK |
9725 | # Is the header compilable? |
9726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9728 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9729 | /* confdefs.h. */ |
9730 | _ACEOF | |
9731 | cat confdefs.h >>conftest.$ac_ext | |
9732 | cat >>conftest.$ac_ext <<_ACEOF | |
9733 | /* end confdefs.h. */ | |
9734 | $ac_includes_default | |
9735 | #include <$ac_header> | |
9736 | _ACEOF | |
9737 | rm -f conftest.$ac_objext | |
9738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9739 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9740 | ac_status=$? |
8a2fc586 AK |
9741 | grep -v '^ *+' conftest.er1 >conftest.err |
9742 | rm -f conftest.er1 | |
9743 | cat conftest.err >&5 | |
ad6254c5 AK |
9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9745 | (exit $ac_status); } && | |
8a2fc586 AK |
9746 | { ac_try='test -z "$ac_c_werror_flag" |
9747 | || test ! -s conftest.err' | |
9748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9749 | (eval $ac_try) 2>&5 | |
9750 | ac_status=$? | |
9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9752 | (exit $ac_status); }; } && | |
9753 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9755 | (eval $ac_try) 2>&5 | |
9756 | ac_status=$? | |
9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9758 | (exit $ac_status); }; }; then | |
9759 | ac_header_compiler=yes | |
80992638 | 9760 | else |
ad6254c5 AK |
9761 | echo "$as_me: failed program was:" >&5 |
9762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9763 | ||
9764 | ac_header_compiler=no | |
9765 | fi | |
8a2fc586 | 9766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9767 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9768 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9769 | ||
9770 | # Is the header present? | |
9771 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9773 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9774 | /* confdefs.h. */ |
9775 | _ACEOF | |
9776 | cat confdefs.h >>conftest.$ac_ext | |
9777 | cat >>conftest.$ac_ext <<_ACEOF | |
9778 | /* end confdefs.h. */ | |
9779 | #include <$ac_header> | |
9780 | _ACEOF | |
9781 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9783 | ac_status=$? | |
9784 | grep -v '^ *+' conftest.er1 >conftest.err | |
9785 | rm -f conftest.er1 | |
9786 | cat conftest.err >&5 | |
9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9788 | (exit $ac_status); } >/dev/null; then | |
9789 | if test -s conftest.err; then | |
9790 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9791 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9792 | else |
9793 | ac_cpp_err= | |
9794 | fi | |
9795 | else | |
9796 | ac_cpp_err=yes | |
795ca3e5 | 9797 | fi |
ad6254c5 AK |
9798 | if test -z "$ac_cpp_err"; then |
9799 | ac_header_preproc=yes | |
9800 | else | |
9801 | echo "$as_me: failed program was:" >&5 | |
9802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9803 | ||
9804 | ac_header_preproc=no | |
9805 | fi | |
9806 | rm -f conftest.err conftest.$ac_ext | |
9807 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9808 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9809 | ||
9810 | # So? What about this header? | |
8a2fc586 AK |
9811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9812 | yes:no: ) | |
ad6254c5 AK |
9813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9817 | ac_header_preproc=yes | |
ad6254c5 | 9818 | ;; |
8a2fc586 | 9819 | no:yes:* ) |
ad6254c5 AK |
9820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9832 | ( |
9833 | cat <<\_ASBOX | |
8a2fc586 AK |
9834 | ## ------------------------------------------ ## |
9835 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9836 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9837 | _ASBOX |
9838 | ) | | |
9839 | sed "s/^/$as_me: WARNING: /" >&2 | |
9840 | ;; | |
9841 | esac | |
9842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9846 | else | |
8a2fc586 | 9847 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9848 | fi |
ad6254c5 AK |
9849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 9851 | |
795ca3e5 | 9852 | fi |
ad6254c5 AK |
9853 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9854 | cat >>confdefs.h <<_ACEOF | |
9855 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9856 | _ACEOF | |
9857 | ||
795ca3e5 AK |
9858 | fi |
9859 | ||
ad6254c5 AK |
9860 | done |
9861 | ||
9862 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
9863 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
9864 | if test "${ac_cv_func_select_args+set}" = set; then | |
9865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9866 | else |
ad6254c5 AK |
9867 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9868 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
9869 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
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 | #if HAVE_SYS_SELECT_H | |
9878 | # include <sys/select.h> | |
9879 | #endif | |
9880 | #if HAVE_SYS_SOCKET_H | |
9881 | # include <sys/socket.h> | |
9882 | #endif | |
9883 | ||
9884 | int | |
9885 | main () | |
9886 | { | |
9887 | extern int select ($ac_arg1, | |
8a2fc586 AK |
9888 | $ac_arg234, $ac_arg234, $ac_arg234, |
9889 | $ac_arg5); | |
ad6254c5 AK |
9890 | ; |
9891 | return 0; | |
9892 | } | |
9893 | _ACEOF | |
9894 | rm -f conftest.$ac_objext | |
9895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9896 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9897 | ac_status=$? |
8a2fc586 AK |
9898 | grep -v '^ *+' conftest.er1 >conftest.err |
9899 | rm -f conftest.er1 | |
9900 | cat conftest.err >&5 | |
ad6254c5 AK |
9901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9902 | (exit $ac_status); } && | |
8a2fc586 AK |
9903 | { ac_try='test -z "$ac_c_werror_flag" |
9904 | || test ! -s conftest.err' | |
9905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9906 | (eval $ac_try) 2>&5 | |
9907 | ac_status=$? | |
9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9909 | (exit $ac_status); }; } && | |
9910 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9912 | (eval $ac_try) 2>&5 | |
9913 | ac_status=$? | |
9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9915 | (exit $ac_status); }; }; then | |
9916 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9917 | else | |
9918 | echo "$as_me: failed program was:" >&5 | |
9919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9920 | ||
9921 | fi | |
8a2fc586 | 9922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9923 | done |
9924 | done | |
9925 | done | |
9926 | # Provide a safe default value. | |
9927 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
9928 | ||
26e7f2e0 | 9929 | fi |
ad6254c5 AK |
9930 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9931 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
9932 | ac_save_IFS=$IFS; IFS=',' | |
9933 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9934 | IFS=$ac_save_IFS | |
9935 | shift | |
9936 | ||
9937 | cat >>confdefs.h <<_ACEOF | |
9938 | #define SELECT_TYPE_ARG1 $1 | |
9939 | _ACEOF | |
9940 | ||
9941 | ||
9942 | cat >>confdefs.h <<_ACEOF | |
9943 | #define SELECT_TYPE_ARG234 ($2) | |
9944 | _ACEOF | |
9945 | ||
9946 | ||
9947 | cat >>confdefs.h <<_ACEOF | |
9948 | #define SELECT_TYPE_ARG5 ($3) | |
9949 | _ACEOF | |
9950 | ||
80992638 | 9951 | rm -f conftest* |
80992638 | 9952 | |
8106cdd5 | 9953 | fi |
ad6254c5 AK |
9954 | |
9955 | if test x$FSADM = xyes; then | |
9956 | ||
9957 | ||
9958 | ||
9959 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
9960 | do | |
9961 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9963 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9967 | fi | |
9968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9969 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9970 | else | |
9971 | # Is the header compilable? | |
9972 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9973 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9974 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9975 | /* confdefs.h. */ |
9976 | _ACEOF | |
9977 | cat confdefs.h >>conftest.$ac_ext | |
9978 | cat >>conftest.$ac_ext <<_ACEOF | |
9979 | /* end confdefs.h. */ | |
9980 | $ac_includes_default | |
9981 | #include <$ac_header> | |
9982 | _ACEOF | |
9983 | rm -f conftest.$ac_objext | |
9984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9985 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9986 | ac_status=$? |
8a2fc586 AK |
9987 | grep -v '^ *+' conftest.er1 >conftest.err |
9988 | rm -f conftest.er1 | |
9989 | cat conftest.err >&5 | |
ad6254c5 AK |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9991 | (exit $ac_status); } && | |
8a2fc586 AK |
9992 | { ac_try='test -z "$ac_c_werror_flag" |
9993 | || test ! -s conftest.err' | |
9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9995 | (eval $ac_try) 2>&5 | |
9996 | ac_status=$? | |
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9998 | (exit $ac_status); }; } && | |
9999 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10001 | (eval $ac_try) 2>&5 | |
10002 | ac_status=$? | |
10003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10004 | (exit $ac_status); }; }; then | |
10005 | ac_header_compiler=yes | |
10006 | else | |
10007 | echo "$as_me: failed program was:" >&5 | |
10008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10009 | ||
10010 | ac_header_compiler=no | |
10011 | fi | |
8a2fc586 | 10012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10013 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10014 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10015 | ||
10016 | # Is the header present? | |
10017 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10018 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10019 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10020 | /* confdefs.h. */ |
10021 | _ACEOF | |
10022 | cat confdefs.h >>conftest.$ac_ext | |
10023 | cat >>conftest.$ac_ext <<_ACEOF | |
10024 | /* end confdefs.h. */ | |
10025 | #include <$ac_header> | |
10026 | _ACEOF | |
10027 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10028 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10029 | ac_status=$? | |
10030 | grep -v '^ *+' conftest.er1 >conftest.err | |
10031 | rm -f conftest.er1 | |
10032 | cat conftest.err >&5 | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); } >/dev/null; then | |
10035 | if test -s conftest.err; then | |
10036 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10037 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10038 | else |
10039 | ac_cpp_err= | |
10040 | fi | |
10041 | else | |
10042 | ac_cpp_err=yes | |
10043 | fi | |
10044 | if test -z "$ac_cpp_err"; then | |
10045 | ac_header_preproc=yes | |
10046 | else | |
10047 | echo "$as_me: failed program was:" >&5 | |
10048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10049 | ||
10050 | ac_header_preproc=no | |
10051 | fi | |
10052 | rm -f conftest.err conftest.$ac_ext | |
10053 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10054 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10055 | ||
10056 | # So? What about this header? | |
8a2fc586 AK |
10057 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10058 | yes:no: ) | |
ad6254c5 AK |
10059 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10060 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10061 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10062 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10063 | ac_header_preproc=yes | |
ad6254c5 | 10064 | ;; |
8a2fc586 | 10065 | no:yes:* ) |
ad6254c5 AK |
10066 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10067 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10068 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10069 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10070 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10071 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10072 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10073 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10075 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10076 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10077 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10078 | ( |
10079 | cat <<\_ASBOX | |
8a2fc586 AK |
10080 | ## ------------------------------------------ ## |
10081 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10082 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10083 | _ASBOX |
10084 | ) | | |
10085 | sed "s/^/$as_me: WARNING: /" >&2 | |
10086 | ;; | |
10087 | esac | |
10088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 10092 | else |
8a2fc586 | 10093 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 10094 | fi |
ad6254c5 AK |
10095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10096 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 10097 | |
ad6254c5 AK |
10098 | fi |
10099 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10100 | cat >>confdefs.h <<_ACEOF | |
10101 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10102 | _ACEOF | |
26e7f2e0 | 10103 | |
d68a82ec | 10104 | else |
ad6254c5 AK |
10105 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10106 | echo "$as_me: error: bailing out" >&2;} | |
10107 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
10108 | fi |
10109 | ||
ad6254c5 | 10110 | done |
036f273a | 10111 | |
ad6254c5 AK |
10112 | |
10113 | for ac_func in memmove | |
10114 | do | |
10115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10116 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10118 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 10120 | else |
ad6254c5 | 10121 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10122 | /* confdefs.h. */ |
10123 | _ACEOF | |
10124 | cat confdefs.h >>conftest.$ac_ext | |
10125 | cat >>conftest.$ac_ext <<_ACEOF | |
10126 | /* end confdefs.h. */ | |
8a2fc586 AK |
10127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10129 | #define $ac_func innocuous_$ac_func | |
10130 | ||
ad6254c5 AK |
10131 | /* System header to define __stub macros and hopefully few prototypes, |
10132 | which can conflict with char $ac_func (); below. | |
10133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10134 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10135 | |
ad6254c5 AK |
10136 | #ifdef __STDC__ |
10137 | # include <limits.h> | |
10138 | #else | |
10139 | # include <assert.h> | |
10140 | #endif | |
8a2fc586 AK |
10141 | |
10142 | #undef $ac_func | |
10143 | ||
036f273a | 10144 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10145 | #ifdef __cplusplus |
10146 | extern "C" | |
10147 | { | |
10148 | #endif | |
036f273a | 10149 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10150 | builtin and then its argument prototype would still apply. */ |
10151 | char $ac_func (); | |
10152 | /* The GNU C library defines this for functions which it implements | |
10153 | to always fail with ENOSYS. Some functions are actually named | |
10154 | something starting with __ and the normal name is an alias. */ | |
10155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10156 | choke me | |
10157 | #else | |
10158 | char (*f) () = $ac_func; | |
10159 | #endif | |
10160 | #ifdef __cplusplus | |
10161 | } | |
10162 | #endif | |
80992638 | 10163 | |
ad6254c5 AK |
10164 | int |
10165 | main () | |
10166 | { | |
10167 | return f != $ac_func; | |
10168 | ; | |
10169 | return 0; | |
10170 | } | |
10171 | _ACEOF | |
10172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10174 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10175 | ac_status=$? |
8a2fc586 AK |
10176 | grep -v '^ *+' conftest.er1 >conftest.err |
10177 | rm -f conftest.er1 | |
10178 | cat conftest.err >&5 | |
ad6254c5 AK |
10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10180 | (exit $ac_status); } && | |
8a2fc586 AK |
10181 | { ac_try='test -z "$ac_c_werror_flag" |
10182 | || test ! -s conftest.err' | |
10183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10184 | (eval $ac_try) 2>&5 | |
10185 | ac_status=$? | |
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10187 | (exit $ac_status); }; } && | |
10188 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10190 | (eval $ac_try) 2>&5 | |
10191 | ac_status=$? | |
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10193 | (exit $ac_status); }; }; then | |
10194 | eval "$as_ac_var=yes" | |
036f273a | 10195 | else |
ad6254c5 AK |
10196 | echo "$as_me: failed program was:" >&5 |
10197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10198 | ||
10199 | eval "$as_ac_var=no" | |
036f273a | 10200 | fi |
8a2fc586 AK |
10201 | rm -f conftest.err conftest.$ac_objext \ |
10202 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10203 | fi |
10204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10207 | cat >>confdefs.h <<_ACEOF | |
10208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10209 | _ACEOF | |
036f273a | 10210 | |
ad6254c5 AK |
10211 | else |
10212 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10213 | echo "$as_me: error: bailing out" >&2;} | |
10214 | { (exit 1); exit 1; }; } | |
10215 | fi | |
10216 | done | |
036f273a | 10217 | |
036f273a | 10218 | fi |
d68a82ec | 10219 | |
ad6254c5 AK |
10220 | if test x$CLUSTER != xnone; then |
10221 | ||
10222 | ||
10223 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10224 | do |
ad6254c5 AK |
10225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10231 | fi | |
10232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10234 | else | |
10235 | # Is the header compilable? | |
10236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10238 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10239 | /* confdefs.h. */ |
10240 | _ACEOF | |
10241 | cat confdefs.h >>conftest.$ac_ext | |
10242 | cat >>conftest.$ac_ext <<_ACEOF | |
10243 | /* end confdefs.h. */ | |
10244 | $ac_includes_default | |
10245 | #include <$ac_header> | |
10246 | _ACEOF | |
10247 | rm -f conftest.$ac_objext | |
10248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10249 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10250 | ac_status=$? |
8a2fc586 AK |
10251 | grep -v '^ *+' conftest.er1 >conftest.err |
10252 | rm -f conftest.er1 | |
10253 | cat conftest.err >&5 | |
ad6254c5 AK |
10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10255 | (exit $ac_status); } && | |
8a2fc586 AK |
10256 | { ac_try='test -z "$ac_c_werror_flag" |
10257 | || test ! -s conftest.err' | |
10258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10259 | (eval $ac_try) 2>&5 | |
10260 | ac_status=$? | |
10261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10262 | (exit $ac_status); }; } && | |
10263 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10265 | (eval $ac_try) 2>&5 | |
10266 | ac_status=$? | |
10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10268 | (exit $ac_status); }; }; then | |
10269 | ac_header_compiler=yes | |
10270 | else | |
10271 | echo "$as_me: failed program was:" >&5 | |
10272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10273 | ||
10274 | ac_header_compiler=no | |
10275 | fi | |
8a2fc586 | 10276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10277 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10278 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10279 | ||
10280 | # Is the header present? | |
10281 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10283 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10284 | /* confdefs.h. */ |
10285 | _ACEOF | |
10286 | cat confdefs.h >>conftest.$ac_ext | |
10287 | cat >>conftest.$ac_ext <<_ACEOF | |
10288 | /* end confdefs.h. */ | |
10289 | #include <$ac_header> | |
10290 | _ACEOF | |
10291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10293 | ac_status=$? | |
10294 | grep -v '^ *+' conftest.er1 >conftest.err | |
10295 | rm -f conftest.er1 | |
10296 | cat conftest.err >&5 | |
10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10298 | (exit $ac_status); } >/dev/null; then | |
10299 | if test -s conftest.err; then | |
10300 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10302 | else |
10303 | ac_cpp_err= | |
10304 | fi | |
10305 | else | |
10306 | ac_cpp_err=yes | |
8106cdd5 | 10307 | fi |
ad6254c5 AK |
10308 | if test -z "$ac_cpp_err"; then |
10309 | ac_header_preproc=yes | |
10310 | else | |
10311 | echo "$as_me: failed program was:" >&5 | |
10312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10313 | ||
10314 | ac_header_preproc=no | |
10315 | fi | |
10316 | rm -f conftest.err conftest.$ac_ext | |
10317 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10318 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10319 | ||
10320 | # So? What about this header? | |
8a2fc586 AK |
10321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10322 | yes:no: ) | |
ad6254c5 AK |
10323 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10324 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10326 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10327 | ac_header_preproc=yes | |
ad6254c5 | 10328 | ;; |
8a2fc586 | 10329 | no:yes:* ) |
ad6254c5 AK |
10330 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10331 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10332 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10333 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10335 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10337 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10341 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10342 | ( |
10343 | cat <<\_ASBOX | |
8a2fc586 AK |
10344 | ## ------------------------------------------ ## |
10345 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10346 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10347 | _ASBOX |
10348 | ) | | |
10349 | sed "s/^/$as_me: WARNING: /" >&2 | |
10350 | ;; | |
10351 | esac | |
10352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10356 | else | |
8a2fc586 | 10357 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10358 | fi |
ad6254c5 AK |
10359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10361 | ||
10362 | fi | |
10363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10364 | cat >>confdefs.h <<_ACEOF | |
10365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10366 | _ACEOF | |
10367 | ||
80992638 | 10368 | else |
ad6254c5 AK |
10369 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10370 | echo "$as_me: error: bailing out" >&2;} | |
10371 | { (exit 1); exit 1; }; } | |
b896caa1 | 10372 | fi |
ad6254c5 | 10373 | |
b896caa1 AK |
10374 | done |
10375 | ||
10376 | ||
ad6254c5 AK |
10377 | for ac_func in socket |
10378 | do | |
10379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10380 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10382 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 10384 | else |
ad6254c5 | 10385 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10386 | /* confdefs.h. */ |
10387 | _ACEOF | |
10388 | cat confdefs.h >>conftest.$ac_ext | |
10389 | cat >>conftest.$ac_ext <<_ACEOF | |
10390 | /* end confdefs.h. */ | |
8a2fc586 AK |
10391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10393 | #define $ac_func innocuous_$ac_func | |
10394 | ||
ad6254c5 AK |
10395 | /* System header to define __stub macros and hopefully few prototypes, |
10396 | which can conflict with char $ac_func (); below. | |
10397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10398 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10399 | |
ad6254c5 AK |
10400 | #ifdef __STDC__ |
10401 | # include <limits.h> | |
10402 | #else | |
10403 | # include <assert.h> | |
10404 | #endif | |
8a2fc586 AK |
10405 | |
10406 | #undef $ac_func | |
10407 | ||
795ca3e5 | 10408 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10409 | #ifdef __cplusplus |
10410 | extern "C" | |
10411 | { | |
10412 | #endif | |
795ca3e5 | 10413 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10414 | builtin and then its argument prototype would still apply. */ |
10415 | char $ac_func (); | |
10416 | /* The GNU C library defines this for functions which it implements | |
10417 | to always fail with ENOSYS. Some functions are actually named | |
10418 | something starting with __ and the normal name is an alias. */ | |
10419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10420 | choke me | |
10421 | #else | |
10422 | char (*f) () = $ac_func; | |
10423 | #endif | |
10424 | #ifdef __cplusplus | |
10425 | } | |
10426 | #endif | |
10427 | ||
10428 | int | |
10429 | main () | |
10430 | { | |
10431 | return f != $ac_func; | |
10432 | ; | |
10433 | return 0; | |
10434 | } | |
10435 | _ACEOF | |
10436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10438 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10439 | ac_status=$? |
8a2fc586 AK |
10440 | grep -v '^ *+' conftest.er1 >conftest.err |
10441 | rm -f conftest.er1 | |
10442 | cat conftest.err >&5 | |
ad6254c5 AK |
10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10444 | (exit $ac_status); } && | |
8a2fc586 AK |
10445 | { ac_try='test -z "$ac_c_werror_flag" |
10446 | || test ! -s conftest.err' | |
10447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10448 | (eval $ac_try) 2>&5 | |
10449 | ac_status=$? | |
10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10451 | (exit $ac_status); }; } && | |
10452 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10454 | (eval $ac_try) 2>&5 | |
10455 | ac_status=$? | |
10456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10457 | (exit $ac_status); }; }; then | |
10458 | eval "$as_ac_var=yes" | |
10459 | else | |
10460 | echo "$as_me: failed program was:" >&5 | |
10461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10462 | ||
10463 | eval "$as_ac_var=no" | |
10464 | fi | |
8a2fc586 AK |
10465 | rm -f conftest.err conftest.$ac_objext \ |
10466 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10467 | fi |
10468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10469 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10470 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10471 | cat >>confdefs.h <<_ACEOF | |
10472 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10473 | _ACEOF | |
10474 | ||
10475 | else | |
10476 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10477 | echo "$as_me: error: bailing out" >&2;} | |
10478 | { (exit 1); exit 1; }; } | |
10479 | fi | |
10480 | done | |
10481 | ||
10482 | fi | |
10483 | ||
10484 | if test x$HAVE_LIBDL = xyes; then | |
10485 | ||
10486 | for ac_header in dlfcn.h | |
10487 | do | |
10488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10494 | fi | |
10495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10497 | else | |
10498 | # Is the header compilable? | |
10499 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10500 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10501 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10502 | /* confdefs.h. */ |
10503 | _ACEOF | |
10504 | cat confdefs.h >>conftest.$ac_ext | |
10505 | cat >>conftest.$ac_ext <<_ACEOF | |
10506 | /* end confdefs.h. */ | |
10507 | $ac_includes_default | |
10508 | #include <$ac_header> | |
10509 | _ACEOF | |
10510 | rm -f conftest.$ac_objext | |
10511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10512 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10513 | ac_status=$? |
8a2fc586 AK |
10514 | grep -v '^ *+' conftest.er1 >conftest.err |
10515 | rm -f conftest.er1 | |
10516 | cat conftest.err >&5 | |
ad6254c5 AK |
10517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10518 | (exit $ac_status); } && | |
8a2fc586 AK |
10519 | { ac_try='test -z "$ac_c_werror_flag" |
10520 | || test ! -s conftest.err' | |
10521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10522 | (eval $ac_try) 2>&5 | |
10523 | ac_status=$? | |
10524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10525 | (exit $ac_status); }; } && | |
10526 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10528 | (eval $ac_try) 2>&5 | |
10529 | ac_status=$? | |
10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10531 | (exit $ac_status); }; }; then | |
10532 | ac_header_compiler=yes | |
10533 | else | |
10534 | echo "$as_me: failed program was:" >&5 | |
10535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10536 | ||
10537 | ac_header_compiler=no | |
10538 | fi | |
8a2fc586 | 10539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10540 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10541 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10542 | ||
10543 | # Is the header present? | |
10544 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10545 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10546 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10547 | /* confdefs.h. */ |
10548 | _ACEOF | |
10549 | cat confdefs.h >>conftest.$ac_ext | |
10550 | cat >>conftest.$ac_ext <<_ACEOF | |
10551 | /* end confdefs.h. */ | |
10552 | #include <$ac_header> | |
10553 | _ACEOF | |
10554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10556 | ac_status=$? | |
10557 | grep -v '^ *+' conftest.er1 >conftest.err | |
10558 | rm -f conftest.er1 | |
10559 | cat conftest.err >&5 | |
10560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10561 | (exit $ac_status); } >/dev/null; then | |
10562 | if test -s conftest.err; then | |
10563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10565 | else |
10566 | ac_cpp_err= | |
10567 | fi | |
10568 | else | |
10569 | ac_cpp_err=yes | |
10570 | fi | |
10571 | if test -z "$ac_cpp_err"; then | |
10572 | ac_header_preproc=yes | |
10573 | else | |
10574 | echo "$as_me: failed program was:" >&5 | |
10575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10576 | ||
10577 | ac_header_preproc=no | |
10578 | fi | |
10579 | rm -f conftest.err conftest.$ac_ext | |
10580 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10581 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10582 | ||
10583 | # So? What about this header? | |
8a2fc586 AK |
10584 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10585 | yes:no: ) | |
ad6254c5 AK |
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10587 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10589 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10590 | ac_header_preproc=yes | |
ad6254c5 | 10591 | ;; |
8a2fc586 | 10592 | no:yes:* ) |
ad6254c5 AK |
10593 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10594 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10595 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10596 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10597 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10598 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10599 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10600 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10602 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10603 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10604 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10605 | ( |
10606 | cat <<\_ASBOX | |
8a2fc586 AK |
10607 | ## ------------------------------------------ ## |
10608 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10609 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10610 | _ASBOX |
10611 | ) | | |
10612 | sed "s/^/$as_me: WARNING: /" >&2 | |
10613 | ;; | |
10614 | esac | |
10615 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10617 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10619 | else | |
8a2fc586 | 10620 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10621 | fi |
ad6254c5 AK |
10622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 10624 | |
8106cdd5 | 10625 | fi |
ad6254c5 AK |
10626 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10627 | cat >>confdefs.h <<_ACEOF | |
10628 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10629 | _ACEOF | |
795ca3e5 AK |
10630 | |
10631 | else | |
ad6254c5 AK |
10632 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10633 | echo "$as_me: error: bailing out" >&2;} | |
10634 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10635 | fi |
10636 | ||
ad6254c5 | 10637 | done |
80992638 | 10638 | |
ad6254c5 | 10639 | fi |
80992638 | 10640 | |
ad6254c5 | 10641 | if test x$INTL = xyes; then |
83912faa | 10642 | |
ad6254c5 AK |
10643 | for ac_header in libintl.h |
10644 | do | |
10645 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10651 | fi | |
10652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10654 | else |
ad6254c5 AK |
10655 | # Is the header compilable? |
10656 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10657 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10658 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10659 | /* confdefs.h. */ |
10660 | _ACEOF | |
10661 | cat confdefs.h >>conftest.$ac_ext | |
10662 | cat >>conftest.$ac_ext <<_ACEOF | |
10663 | /* end confdefs.h. */ | |
10664 | $ac_includes_default | |
10665 | #include <$ac_header> | |
10666 | _ACEOF | |
10667 | rm -f conftest.$ac_objext | |
10668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10669 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10670 | ac_status=$? |
8a2fc586 AK |
10671 | grep -v '^ *+' conftest.er1 >conftest.err |
10672 | rm -f conftest.er1 | |
10673 | cat conftest.err >&5 | |
ad6254c5 AK |
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10675 | (exit $ac_status); } && | |
8a2fc586 AK |
10676 | { ac_try='test -z "$ac_c_werror_flag" |
10677 | || test ! -s conftest.err' | |
10678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10679 | (eval $ac_try) 2>&5 | |
10680 | ac_status=$? | |
10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10682 | (exit $ac_status); }; } && | |
10683 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10685 | (eval $ac_try) 2>&5 | |
10686 | ac_status=$? | |
10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10688 | (exit $ac_status); }; }; then | |
10689 | ac_header_compiler=yes | |
10690 | else | |
10691 | echo "$as_me: failed program was:" >&5 | |
10692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10693 | ||
10694 | ac_header_compiler=no | |
10695 | fi | |
8a2fc586 | 10696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10697 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10698 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10699 | ||
10700 | # Is the header present? | |
10701 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10702 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10703 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10704 | /* confdefs.h. */ |
10705 | _ACEOF | |
10706 | cat confdefs.h >>conftest.$ac_ext | |
10707 | cat >>conftest.$ac_ext <<_ACEOF | |
10708 | /* end confdefs.h. */ | |
10709 | #include <$ac_header> | |
10710 | _ACEOF | |
10711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10713 | ac_status=$? | |
10714 | grep -v '^ *+' conftest.er1 >conftest.err | |
10715 | rm -f conftest.er1 | |
10716 | cat conftest.err >&5 | |
10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10718 | (exit $ac_status); } >/dev/null; then | |
10719 | if test -s conftest.err; then | |
10720 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10722 | else |
10723 | ac_cpp_err= | |
10724 | fi | |
10725 | else | |
10726 | ac_cpp_err=yes | |
795ca3e5 | 10727 | fi |
ad6254c5 AK |
10728 | if test -z "$ac_cpp_err"; then |
10729 | ac_header_preproc=yes | |
10730 | else | |
10731 | echo "$as_me: failed program was:" >&5 | |
10732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10733 | ||
10734 | ac_header_preproc=no | |
10735 | fi | |
10736 | rm -f conftest.err conftest.$ac_ext | |
10737 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10738 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10739 | ||
10740 | # So? What about this header? | |
8a2fc586 AK |
10741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10742 | yes:no: ) | |
ad6254c5 AK |
10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10744 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10745 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10746 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10747 | ac_header_preproc=yes | |
ad6254c5 | 10748 | ;; |
8a2fc586 | 10749 | no:yes:* ) |
ad6254c5 AK |
10750 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10751 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10752 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10753 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10754 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10755 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10756 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10757 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10759 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10760 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10761 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10762 | ( |
10763 | cat <<\_ASBOX | |
8a2fc586 AK |
10764 | ## ------------------------------------------ ## |
10765 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10766 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10767 | _ASBOX |
10768 | ) | | |
10769 | sed "s/^/$as_me: WARNING: /" >&2 | |
10770 | ;; | |
10771 | esac | |
10772 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 10776 | else |
8a2fc586 | 10777 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10778 | fi |
ad6254c5 AK |
10779 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10780 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10781 | |
69792976 | 10782 | fi |
ad6254c5 AK |
10783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10784 | cat >>confdefs.h <<_ACEOF | |
10785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10786 | _ACEOF | |
69792976 | 10787 | |
69792976 | 10788 | else |
ad6254c5 AK |
10789 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10790 | echo "$as_me: error: bailing out" >&2;} | |
10791 | { (exit 1); exit 1; }; } | |
80992638 AK |
10792 | fi |
10793 | ||
ad6254c5 | 10794 | done |
69792976 | 10795 | |
ad6254c5 AK |
10796 | fi |
10797 | ||
ad6254c5 AK |
10798 | |
10799 | for ac_header in libdevmapper.h | |
10800 | do | |
10801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10807 | fi | |
10808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10810 | else |
ad6254c5 AK |
10811 | # Is the header compilable? |
10812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10814 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10815 | /* confdefs.h. */ |
10816 | _ACEOF | |
10817 | cat confdefs.h >>conftest.$ac_ext | |
10818 | cat >>conftest.$ac_ext <<_ACEOF | |
10819 | /* end confdefs.h. */ | |
10820 | $ac_includes_default | |
10821 | #include <$ac_header> | |
10822 | _ACEOF | |
10823 | rm -f conftest.$ac_objext | |
10824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10825 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10826 | ac_status=$? |
8a2fc586 AK |
10827 | grep -v '^ *+' conftest.er1 >conftest.err |
10828 | rm -f conftest.er1 | |
10829 | cat conftest.err >&5 | |
ad6254c5 AK |
10830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10831 | (exit $ac_status); } && | |
8a2fc586 AK |
10832 | { ac_try='test -z "$ac_c_werror_flag" |
10833 | || test ! -s conftest.err' | |
10834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10835 | (eval $ac_try) 2>&5 | |
10836 | ac_status=$? | |
10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10838 | (exit $ac_status); }; } && | |
10839 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10841 | (eval $ac_try) 2>&5 | |
10842 | ac_status=$? | |
10843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10844 | (exit $ac_status); }; }; then | |
10845 | ac_header_compiler=yes | |
10846 | else | |
10847 | echo "$as_me: failed program was:" >&5 | |
10848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10849 | ||
10850 | ac_header_compiler=no | |
10851 | fi | |
8a2fc586 | 10852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10854 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10855 | ||
10856 | # Is the header present? | |
10857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10859 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10860 | /* confdefs.h. */ |
10861 | _ACEOF | |
10862 | cat confdefs.h >>conftest.$ac_ext | |
10863 | cat >>conftest.$ac_ext <<_ACEOF | |
10864 | /* end confdefs.h. */ | |
10865 | #include <$ac_header> | |
10866 | _ACEOF | |
10867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10869 | ac_status=$? | |
10870 | grep -v '^ *+' conftest.er1 >conftest.err | |
10871 | rm -f conftest.er1 | |
10872 | cat conftest.err >&5 | |
10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10874 | (exit $ac_status); } >/dev/null; then | |
10875 | if test -s conftest.err; then | |
10876 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10878 | else |
10879 | ac_cpp_err= | |
10880 | fi | |
10881 | else | |
10882 | ac_cpp_err=yes | |
69792976 | 10883 | fi |
ad6254c5 AK |
10884 | if test -z "$ac_cpp_err"; then |
10885 | ac_header_preproc=yes | |
10886 | else | |
10887 | echo "$as_me: failed program was:" >&5 | |
10888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10889 | ||
10890 | ac_header_preproc=no | |
10891 | fi | |
10892 | rm -f conftest.err conftest.$ac_ext | |
10893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10894 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10895 | ||
10896 | # So? What about this header? | |
8a2fc586 AK |
10897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10898 | yes:no: ) | |
ad6254c5 AK |
10899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10903 | ac_header_preproc=yes | |
ad6254c5 | 10904 | ;; |
8a2fc586 | 10905 | no:yes:* ) |
ad6254c5 AK |
10906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10918 | ( |
10919 | cat <<\_ASBOX | |
8a2fc586 AK |
10920 | ## ------------------------------------------ ## |
10921 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10922 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10923 | _ASBOX |
10924 | ) | | |
10925 | sed "s/^/$as_me: WARNING: /" >&2 | |
10926 | ;; | |
10927 | esac | |
10928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 10932 | else |
8a2fc586 | 10933 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10934 | fi |
ad6254c5 AK |
10935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10937 | |
ad6254c5 AK |
10938 | fi |
10939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10940 | cat >>confdefs.h <<_ACEOF | |
10941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10942 | _ACEOF | |
69792976 | 10943 | |
69792976 | 10944 | else |
ad6254c5 AK |
10945 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10946 | echo "$as_me: error: bailing out" >&2;} | |
10947 | { (exit 1); exit 1; }; } | |
83912faa AK |
10948 | fi |
10949 | ||
ad6254c5 AK |
10950 | done |
10951 | ||
4a7f3eb2 | 10952 | |
ad6254c5 AK |
10953 | if test x$HAVE_SELINUX = xyes; then |
10954 | ||
10955 | for ac_header in selinux/selinux.h | |
10956 | do | |
10957 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10963 | fi | |
10964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10965 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10966 | else |
ad6254c5 AK |
10967 | # Is the header compilable? |
10968 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10969 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10970 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10971 | /* confdefs.h. */ |
10972 | _ACEOF | |
10973 | cat confdefs.h >>conftest.$ac_ext | |
10974 | cat >>conftest.$ac_ext <<_ACEOF | |
10975 | /* end confdefs.h. */ | |
10976 | $ac_includes_default | |
10977 | #include <$ac_header> | |
10978 | _ACEOF | |
10979 | rm -f conftest.$ac_objext | |
10980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10981 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10982 | ac_status=$? |
8a2fc586 AK |
10983 | grep -v '^ *+' conftest.er1 >conftest.err |
10984 | rm -f conftest.er1 | |
10985 | cat conftest.err >&5 | |
ad6254c5 AK |
10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10987 | (exit $ac_status); } && | |
8a2fc586 AK |
10988 | { ac_try='test -z "$ac_c_werror_flag" |
10989 | || test ! -s conftest.err' | |
10990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10991 | (eval $ac_try) 2>&5 | |
10992 | ac_status=$? | |
10993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10994 | (exit $ac_status); }; } && | |
10995 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10997 | (eval $ac_try) 2>&5 | |
10998 | ac_status=$? | |
10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11000 | (exit $ac_status); }; }; then | |
11001 | ac_header_compiler=yes | |
11002 | else | |
11003 | echo "$as_me: failed program was:" >&5 | |
11004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11005 | ||
11006 | ac_header_compiler=no | |
11007 | fi | |
8a2fc586 | 11008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
11009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11011 | ||
11012 | # Is the header present? | |
11013 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11014 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11015 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11016 | /* confdefs.h. */ |
11017 | _ACEOF | |
11018 | cat confdefs.h >>conftest.$ac_ext | |
11019 | cat >>conftest.$ac_ext <<_ACEOF | |
11020 | /* end confdefs.h. */ | |
11021 | #include <$ac_header> | |
11022 | _ACEOF | |
11023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11025 | ac_status=$? | |
11026 | grep -v '^ *+' conftest.er1 >conftest.err | |
11027 | rm -f conftest.er1 | |
11028 | cat conftest.err >&5 | |
11029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11030 | (exit $ac_status); } >/dev/null; then | |
11031 | if test -s conftest.err; then | |
11032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 11033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
11034 | else |
11035 | ac_cpp_err= | |
11036 | fi | |
11037 | else | |
11038 | ac_cpp_err=yes | |
11039 | fi | |
11040 | if test -z "$ac_cpp_err"; then | |
11041 | ac_header_preproc=yes | |
11042 | else | |
11043 | echo "$as_me: failed program was:" >&5 | |
11044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11045 | ||
11046 | ac_header_preproc=no | |
11047 | fi | |
11048 | rm -f conftest.err conftest.$ac_ext | |
11049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11051 | ||
11052 | # So? What about this header? | |
8a2fc586 AK |
11053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11054 | yes:no: ) | |
ad6254c5 AK |
11055 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11056 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
11057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11058 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11059 | ac_header_preproc=yes | |
ad6254c5 | 11060 | ;; |
8a2fc586 | 11061 | no:yes:* ) |
ad6254c5 AK |
11062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
11064 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11065 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11066 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11067 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11068 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11069 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
11070 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11071 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
11072 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11073 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
11074 | ( |
11075 | cat <<\_ASBOX | |
8a2fc586 AK |
11076 | ## ------------------------------------------ ## |
11077 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11078 | ## ------------------------------------------ ## | |
ad6254c5 AK |
11079 | _ASBOX |
11080 | ) | | |
11081 | sed "s/^/$as_me: WARNING: /" >&2 | |
11082 | ;; | |
11083 | esac | |
11084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11088 | else | |
8a2fc586 | 11089 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11090 | fi |
ad6254c5 AK |
11091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11092 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 11093 | |
ad6254c5 AK |
11094 | fi |
11095 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11096 | cat >>confdefs.h <<_ACEOF | |
11097 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11098 | _ACEOF | |
0a62c911 | 11099 | |
0a62c911 | 11100 | else |
ad6254c5 AK |
11101 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11102 | echo "$as_me: error: bailing out" >&2;} | |
11103 | { (exit 1); exit 1; }; } | |
80992638 AK |
11104 | fi |
11105 | ||
ad6254c5 | 11106 | done |
0a62c911 | 11107 | |
ad6254c5 | 11108 | fi |
0a62c911 | 11109 | |
a653923f AK |
11110 | ################################################################################ |
11111 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11112 | set dummy modprobe; ac_word=$2 | |
11113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
72b2cb61 AK |
11115 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
11116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11117 | else | |
11118 | case $MODPROBE_CMD in | |
11119 | [\\/]* | ?:[\\/]*) | |
11120 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11121 | ;; | |
11122 | *) | |
11123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11124 | for as_dir in $PATH | |
11125 | do | |
11126 | IFS=$as_save_IFS | |
11127 | test -z "$as_dir" && as_dir=. | |
11128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11130 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
11131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11132 | break 2 | |
11133 | fi | |
11134 | done | |
11135 | done | |
11136 | ||
11137 | ;; | |
11138 | esac | |
11139 | fi | |
11140 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
11141 | ||
11142 | if test -n "$MODPROBE_CMD"; then | |
11143 | echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 | |
11144 | echo "${ECHO_T}$MODPROBE_CMD" >&6 | |
11145 | else | |
11146 | echo "$as_me:$LINENO: result: no" >&5 | |
11147 | echo "${ECHO_T}no" >&6 | |
11148 | fi | |
11149 | ||
a653923f AK |
11150 | |
11151 | if test x$MODPROBE_CMD != x; then | |
72b2cb61 AK |
11152 | |
11153 | cat >>confdefs.h <<_ACEOF | |
11154 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11155 | _ACEOF | |
11156 | ||
a653923f AK |
11157 | fi |
11158 | ||
80992638 | 11159 | ################################################################################ |
fae0c576 AK |
11160 | if test "-f VERSION"; then |
11161 | LVM_VERSION="\"`cat VERSION`\"" | |
11162 | else | |
11163 | LVM_VERSION="Unknown" | |
11164 | fi | |
11165 | ||
80992638 | 11166 | ################################################################################ |
fae0c576 | 11167 | |
83912faa | 11168 | |
795ca3e5 AK |
11169 | |
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
5a52dca9 | 11175 | |
8ef2b021 | 11176 | |
199e490e | 11177 | |
69792976 AK |
11178 | |
11179 | ||
11180 | ||
11181 | ||
8106cdd5 AK |
11182 | |
11183 | ||
11184 | ||
11185 | ||
11186 | ||
d68a82ec | 11187 | |
036f273a | 11188 | |
7d1552c9 | 11189 | |
8106cdd5 | 11190 | |
0a62c911 | 11191 | |
8106cdd5 | 11192 | |
4a7f3eb2 | 11193 | |
4922197a AK |
11194 | |
11195 | ||
d8ac0fbc | 11196 | |
1a9ea74d | 11197 | |
8a2fc586 AK |
11198 | |
11199 | ||
11200 | ||
8ce0cbda | 11201 | |
8b1a3214 | 11202 | |
d3c8211f AK |
11203 | |
11204 | ||
80992638 | 11205 | ################################################################################ |
4eee5764 | 11206 | 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 scripts/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 | 11207 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11208 | # This file is a shell script that caches the results of configure |
11209 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11210 | # scripts and configure runs, see configure's option --config-cache. |
11211 | # It is not useful on other systems. If it contains results you don't | |
11212 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11213 | # |
ad6254c5 AK |
11214 | # config.status only pays attention to the cache file if you give it |
11215 | # the --recheck option to rerun configure. | |
795ca3e5 | 11216 | # |
ad6254c5 AK |
11217 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11218 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11219 | # following values. | |
11220 | ||
11221 | _ACEOF | |
11222 | ||
795ca3e5 AK |
11223 | # The following way of writing the cache mishandles newlines in values, |
11224 | # but we know of no workaround that is simple, portable, and efficient. | |
11225 | # So, don't put newlines in cache variables' values. | |
11226 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11227 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
11228 | { |
11229 | (set) 2>&1 | | |
11230 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11231 | *ac_space=\ *) | |
11232 | # `set' does not quote correctly, so add quotes (double-quote | |
11233 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11234 | sed -n \ | |
8a2fc586 AK |
11235 | "s/'/'\\\\''/g; |
11236 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
11237 | ;; |
11238 | *) | |
11239 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11240 | sed -n \ | |
8a2fc586 | 11241 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
11242 | ;; |
11243 | esac; | |
11244 | } | | |
11245 | sed ' | |
11246 | t clear | |
11247 | : clear | |
11248 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11249 | t end | |
11250 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11251 | : end' >>confcache | |
11252 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 11253 | if test -w $cache_file; then |
ad6254c5 AK |
11254 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
11255 | cat confcache >$cache_file | |
795ca3e5 AK |
11256 | else |
11257 | echo "not updating unwritable cache $cache_file" | |
11258 | fi | |
11259 | fi | |
11260 | rm -f confcache | |
11261 | ||
795ca3e5 AK |
11262 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11263 | # Let make expand exec_prefix. | |
11264 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11265 | ||
ad6254c5 AK |
11266 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
11267 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11268 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11269 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 11270 | if test "x$srcdir" = x.; then |
8a2fc586 | 11271 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
11272 | s/:*\$(srcdir):*/:/; |
11273 | s/:*\${srcdir}:*/:/; | |
11274 | s/:*@srcdir@:*/:/; | |
8a2fc586 | 11275 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 11276 | s/:*$//; |
8a2fc586 | 11277 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 11278 | }' |
795ca3e5 AK |
11279 | fi |
11280 | ||
72b2cb61 | 11281 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11282 | |
11283 | ac_libobjs= | |
11284 | ac_ltlibobjs= | |
11285 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11286 | # 1. Remove the extension, and $U if already installed. | |
11287 | ac_i=`echo "$ac_i" | | |
8a2fc586 | 11288 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
11289 | # 2. Add them. |
11290 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11291 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11292 | done | |
11293 | LIBOBJS=$ac_libobjs | |
80992638 | 11294 | |
ad6254c5 AK |
11295 | LTLIBOBJS=$ac_ltlibobjs |
11296 | ||
11297 | ||
11298 | ||
11299 | : ${CONFIG_STATUS=./config.status} | |
11300 | ac_clean_files_save=$ac_clean_files | |
11301 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11302 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11303 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11304 | cat >$CONFIG_STATUS <<_ACEOF | |
11305 | #! $SHELL | |
11306 | # Generated by $as_me. | |
795ca3e5 | 11307 | # Run this file to recreate the current configuration. |
795ca3e5 | 11308 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11309 | # configure, is in config.log if it exists. |
11310 | ||
11311 | debug=false | |
11312 | ac_cs_recheck=false | |
11313 | ac_cs_silent=false | |
11314 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11315 | _ACEOF | |
11316 | ||
11317 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11318 | ## --------------------- ## | |
11319 | ## M4sh Initialization. ## | |
11320 | ## --------------------- ## | |
11321 | ||
11322 | # Be Bourne compatible | |
11323 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11324 | emulate sh | |
11325 | NULLCMD=: | |
11326 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11327 | # is contrary to our usage. Disable this feature. | |
11328 | alias -g '${1+"$@"}'='"$@"' | |
11329 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11330 | set -o posix | |
11331 | fi | |
8a2fc586 | 11332 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
11333 | |
11334 | # Support unset when possible. | |
8a2fc586 | 11335 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11336 | as_unset=unset |
11337 | else | |
11338 | as_unset=false | |
11339 | fi | |
8106cdd5 | 11340 | |
ad6254c5 AK |
11341 | |
11342 | # Work around bugs in pre-3.0 UWIN ksh. | |
11343 | $as_unset ENV MAIL MAILPATH | |
11344 | PS1='$ ' | |
11345 | PS2='> ' | |
11346 | PS4='+ ' | |
11347 | ||
11348 | # NLS nuisances. | |
11349 | for as_var in \ | |
11350 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11351 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11352 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11353 | do |
8a2fc586 | 11354 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11355 | eval $as_var=C; export $as_var |
11356 | else | |
11357 | $as_unset $as_var | |
11358 | fi | |
8106cdd5 AK |
11359 | done |
11360 | ||
ad6254c5 AK |
11361 | # Required to use basename. |
11362 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11363 | as_expr=expr | |
11364 | else | |
11365 | as_expr=false | |
11366 | fi | |
8106cdd5 | 11367 | |
ad6254c5 AK |
11368 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
11369 | as_basename=basename | |
11370 | else | |
11371 | as_basename=false | |
11372 | fi | |
11373 | ||
11374 | ||
11375 | # Name of the executable. | |
11376 | as_me=`$as_basename "$0" || | |
11377 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11378 | X"$0" : 'X\(//\)$' \| \ | |
11379 | X"$0" : 'X\(/\)$' \| \ | |
11380 | . : '\(.\)' 2>/dev/null || | |
11381 | echo X/"$0" | | |
11382 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11383 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11384 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11385 | s/.*/./; q'` | |
11386 | ||
11387 | ||
11388 | # PATH needs CR, and LINENO needs CR and PATH. | |
11389 | # Avoid depending upon Character Ranges. | |
11390 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11391 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11392 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11393 | as_cr_digits='0123456789' | |
11394 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11395 | ||
11396 | # The user is always right. | |
11397 | if test "${PATH_SEPARATOR+set}" != set; then | |
11398 | echo "#! /bin/sh" >conf$$.sh | |
11399 | echo "exit 0" >>conf$$.sh | |
11400 | chmod +x conf$$.sh | |
11401 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11402 | PATH_SEPARATOR=';' | |
80992638 | 11403 | else |
ad6254c5 | 11404 | PATH_SEPARATOR=: |
80992638 | 11405 | fi |
ad6254c5 AK |
11406 | rm -f conf$$.sh |
11407 | fi | |
11408 | ||
11409 | ||
11410 | as_lineno_1=$LINENO | |
11411 | as_lineno_2=$LINENO | |
11412 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11413 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11414 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11415 | # Find who we are. Look in the path if we contain no path at all | |
11416 | # relative or not. | |
11417 | case $0 in | |
11418 | *[\\/]* ) as_myself=$0 ;; | |
11419 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11420 | for as_dir in $PATH | |
11421 | do | |
11422 | IFS=$as_save_IFS | |
11423 | test -z "$as_dir" && as_dir=. | |
11424 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11425 | done | |
11426 | ||
11427 | ;; | |
11428 | esac | |
11429 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11430 | # in which case we are not to be found in the path. | |
11431 | if test "x$as_myself" = x; then | |
11432 | as_myself=$0 | |
11433 | fi | |
11434 | if test ! -f "$as_myself"; then | |
11435 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11436 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11437 | { (exit 1); exit 1; }; } | |
8106cdd5 | 11438 | fi |
ad6254c5 AK |
11439 | case $CONFIG_SHELL in |
11440 | '') | |
11441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11442 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11443 | do | |
11444 | IFS=$as_save_IFS | |
11445 | test -z "$as_dir" && as_dir=. | |
11446 | for as_base in sh bash ksh sh5; do | |
11447 | case $as_dir in | |
11448 | /*) | |
11449 | if ("$as_dir/$as_base" -c ' | |
11450 | as_lineno_1=$LINENO | |
11451 | as_lineno_2=$LINENO | |
11452 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11453 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11454 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11455 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11456 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11457 | CONFIG_SHELL=$as_dir/$as_base | |
11458 | export CONFIG_SHELL | |
11459 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11460 | fi;; | |
11461 | esac | |
11462 | done | |
80992638 | 11463 | done |
ad6254c5 | 11464 | ;; |
795ca3e5 AK |
11465 | esac |
11466 | ||
ad6254c5 AK |
11467 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11468 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11469 | # line-number line before each line; the second 'sed' does the real | |
11470 | # work. The second script uses 'N' to pair each line-number line | |
11471 | # with the numbered line, and appends trailing '-' during | |
11472 | # substitution so that $LINENO is not a special case at line end. | |
11473 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11474 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11475 | sed '=' <$as_myself | | |
11476 | sed ' | |
11477 | N | |
11478 | s,$,-, | |
11479 | : loop | |
11480 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11481 | t loop | |
11482 | s,-$,, | |
11483 | s,^['$as_cr_digits']*\n,, | |
11484 | ' >$as_me.lineno && | |
11485 | chmod +x $as_me.lineno || | |
11486 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11487 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11488 | { (exit 1); exit 1; }; } | |
11489 | ||
11490 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11491 | # (the dirname of $[0] is not the place where we might find the | |
11492 | # original and so on. Autoconf is especially sensible to this). | |
11493 | . ./$as_me.lineno | |
11494 | # Exit status is that of the last command. | |
11495 | exit | |
11496 | } | |
11497 | ||
11498 | ||
11499 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11500 | *c*,-n*) ECHO_N= ECHO_C=' | |
11501 | ' ECHO_T=' ' ;; | |
11502 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11503 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11504 | esac | |
11505 | ||
11506 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11507 | as_expr=expr | |
11508 | else | |
11509 | as_expr=false | |
11510 | fi | |
80992638 | 11511 | |
ad6254c5 AK |
11512 | rm -f conf$$ conf$$.exe conf$$.file |
11513 | echo >conf$$.file | |
11514 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11515 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11516 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11517 | if test -f conf$$.exe; then | |
11518 | # Don't use ln at all; we don't have any links | |
11519 | as_ln_s='cp -p' | |
8106cdd5 | 11520 | else |
ad6254c5 | 11521 | as_ln_s='ln -s' |
80992638 | 11522 | fi |
ad6254c5 AK |
11523 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11524 | as_ln_s=ln | |
11525 | else | |
11526 | as_ln_s='cp -p' | |
11527 | fi | |
11528 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 11529 | |
ad6254c5 AK |
11530 | if mkdir -p . 2>/dev/null; then |
11531 | as_mkdir_p=: | |
11532 | else | |
8a2fc586 | 11533 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11534 | as_mkdir_p=false |
11535 | fi | |
11536 | ||
11537 | as_executable_p="test -f" | |
11538 | ||
11539 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11540 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11541 | |
11542 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11543 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11544 | |
11545 | ||
11546 | # IFS | |
11547 | # We need space, tab and new line, in precisely that order. | |
11548 | as_nl=' | |
11549 | ' | |
11550 | IFS=" $as_nl" | |
11551 | ||
11552 | # CDPATH. | |
11553 | $as_unset CDPATH | |
11554 | ||
11555 | exec 6>&1 | |
11556 | ||
11557 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11558 | # report actual input values of CONFIG_FILES etc. instead of their | |
11559 | # values after options handling. Logging --version etc. is OK. | |
11560 | exec 5>>config.log | |
11561 | { | |
11562 | echo | |
11563 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11564 | ## Running $as_me. ## | |
11565 | _ASBOX | |
11566 | } >&5 | |
11567 | cat >&5 <<_CSEOF | |
11568 | ||
11569 | This file was extended by $as_me, which was | |
8a2fc586 | 11570 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
11571 | |
11572 | CONFIG_FILES = $CONFIG_FILES | |
11573 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11574 | CONFIG_LINKS = $CONFIG_LINKS | |
11575 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11576 | $ $0 $@ | |
11577 | ||
11578 | _CSEOF | |
11579 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11580 | echo >&5 | |
11581 | _ACEOF | |
11582 | ||
11583 | # Files that config.status was made for. | |
11584 | if test -n "$ac_config_files"; then | |
11585 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11586 | fi | |
11587 | ||
11588 | if test -n "$ac_config_headers"; then | |
11589 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11590 | fi | |
11591 | ||
11592 | if test -n "$ac_config_links"; then | |
11593 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11594 | fi | |
11595 | ||
11596 | if test -n "$ac_config_commands"; then | |
11597 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11598 | fi | |
11599 | ||
11600 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11601 | ||
11602 | ac_cs_usage="\ | |
11603 | \`$as_me' instantiates files from templates according to the | |
11604 | current configuration. | |
11605 | ||
11606 | Usage: $0 [OPTIONS] [FILE]... | |
11607 | ||
11608 | -h, --help print this help, then exit | |
11609 | -V, --version print version number, then exit | |
11610 | -q, --quiet do not print progress messages | |
11611 | -d, --debug don't remove temporary files | |
11612 | --recheck update $as_me by reconfiguring in the same conditions | |
11613 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11614 | instantiate the configuration file FILE |
72b2cb61 AK |
11615 | --header=FILE[:TEMPLATE] |
11616 | instantiate the configuration header FILE | |
ad6254c5 AK |
11617 | |
11618 | Configuration files: | |
11619 | $config_files | |
11620 | ||
72b2cb61 AK |
11621 | Configuration headers: |
11622 | $config_headers | |
11623 | ||
ad6254c5 AK |
11624 | Report bugs to <bug-autoconf@gnu.org>." |
11625 | _ACEOF | |
11626 | ||
11627 | cat >>$CONFIG_STATUS <<_ACEOF | |
11628 | ac_cs_version="\\ | |
11629 | config.status | |
8a2fc586 | 11630 | configured by $0, generated by GNU Autoconf 2.59, |
ad6254c5 AK |
11631 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11632 | ||
8a2fc586 | 11633 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
11634 | This config.status script is free software; the Free Software Foundation |
11635 | gives unlimited permission to copy, distribute and modify it." | |
11636 | srcdir=$srcdir | |
11637 | INSTALL="$INSTALL" | |
11638 | _ACEOF | |
11639 | ||
11640 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11641 | # If no file are specified by the user, then we need to provide default | |
11642 | # value. By we need to know if files were specified by the user. | |
11643 | ac_need_defaults=: | |
11644 | while test $# != 0 | |
11645 | do | |
11646 | case $1 in | |
11647 | --*=*) | |
11648 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11649 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11650 | ac_shift=: | |
11651 | ;; | |
11652 | -*) | |
11653 | ac_option=$1 | |
11654 | ac_optarg=$2 | |
11655 | ac_shift=shift | |
11656 | ;; | |
11657 | *) # This is not an option, so the user has probably given explicit | |
11658 | # arguments. | |
11659 | ac_option=$1 | |
11660 | ac_need_defaults=false;; | |
11661 | esac | |
11662 | ||
11663 | case $ac_option in | |
11664 | # Handling of the options. | |
11665 | _ACEOF | |
11666 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11667 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11668 | ac_cs_recheck=: ;; | |
11669 | --version | --vers* | -V ) | |
11670 | echo "$ac_cs_version"; exit 0 ;; | |
11671 | --he | --h) | |
11672 | # Conflict between --help and --header | |
11673 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11674 | Try \`$0 --help' for more information." >&5 | |
11675 | echo "$as_me: error: ambiguous option: $1 | |
11676 | Try \`$0 --help' for more information." >&2;} | |
11677 | { (exit 1); exit 1; }; };; | |
11678 | --help | --hel | -h ) | |
11679 | echo "$ac_cs_usage"; exit 0 ;; | |
11680 | --debug | --d* | -d ) | |
11681 | debug=: ;; | |
11682 | --file | --fil | --fi | --f ) | |
11683 | $ac_shift | |
11684 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11685 | ac_need_defaults=false;; | |
11686 | --header | --heade | --head | --hea ) | |
11687 | $ac_shift | |
11688 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11689 | ac_need_defaults=false;; | |
11690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11691 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11692 | ac_cs_silent=: ;; | |
11693 | ||
11694 | # This is an error. | |
11695 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11696 | Try \`$0 --help' for more information." >&5 | |
11697 | echo "$as_me: error: unrecognized option: $1 | |
11698 | Try \`$0 --help' for more information." >&2;} | |
11699 | { (exit 1); exit 1; }; } ;; | |
11700 | ||
11701 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11702 | ||
11703 | esac | |
11704 | shift | |
11705 | done | |
11706 | ||
11707 | ac_configure_extra_args= | |
11708 | ||
11709 | if $ac_cs_silent; then | |
11710 | exec 6>/dev/null | |
11711 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11712 | fi | |
11713 | ||
11714 | _ACEOF | |
11715 | cat >>$CONFIG_STATUS <<_ACEOF | |
11716 | if \$ac_cs_recheck; then | |
11717 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11718 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11719 | fi | |
11720 | ||
11721 | _ACEOF | |
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11728 | for ac_config_target in $ac_config_targets | |
11729 | do | |
11730 | case "$ac_config_target" in | |
11731 | # Handling of arguments. | |
11732 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11733 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11734 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11735 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
06f62ad1 AK |
11736 | "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; |
11737 | "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
ad6254c5 AK |
11738 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11739 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11740 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11741 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11742 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11743 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11744 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11745 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11746 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11747 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
4eee5764 | 11748 | "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
ad6254c5 AK |
11749 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
11750 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11751 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11752 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11753 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11754 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11755 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11756 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
72b2cb61 | 11757 | "lib/misc/configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; |
ad6254c5 AK |
11758 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11759 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11760 | { (exit 1); exit 1; }; };; | |
80992638 | 11761 | esac |
ad6254c5 AK |
11762 | done |
11763 | ||
11764 | # If the user did not use the arguments to specify the items to instantiate, | |
11765 | # then the envvar interface is used. Set only those that are not. | |
11766 | # We use the long form for the default assignment because of an extremely | |
11767 | # bizarre bug on SunOS 4.1.3. | |
11768 | if $ac_need_defaults; then | |
11769 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11770 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11771 | fi |
11772 | ||
11773 | # Have a temporary directory for convenience. Make it in the build tree | |
11774 | # simply because there is no reason to put it here, and in addition, | |
11775 | # creating and moving files from /tmp can sometimes cause problems. | |
11776 | # Create a temporary directory, and hook for its removal unless debugging. | |
11777 | $debug || | |
11778 | { | |
11779 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11780 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11781 | } | |
11782 | ||
11783 | # Create a (secure) tmp directory for tmp files. | |
11784 | ||
11785 | { | |
11786 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11787 | test -n "$tmp" && test -d "$tmp" | |
11788 | } || | |
11789 | { | |
11790 | tmp=./confstat$$-$RANDOM | |
11791 | (umask 077 && mkdir $tmp) | |
11792 | } || | |
11793 | { | |
11794 | echo "$me: cannot create a temporary directory in ." >&2 | |
11795 | { (exit 1); exit 1; } | |
11796 | } | |
11797 | ||
11798 | _ACEOF | |
11799 | ||
11800 | cat >>$CONFIG_STATUS <<_ACEOF | |
11801 | ||
11802 | # | |
11803 | # CONFIG_FILES section. | |
11804 | # | |
11805 | ||
11806 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11807 | # This happens for instance when ./config.status config.h | |
11808 | if test -n "\$CONFIG_FILES"; then | |
11809 | # Protect against being on the right side of a sed subst in config.status. | |
11810 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11811 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11812 | s,@SHELL@,$SHELL,;t t | |
11813 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11814 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11815 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11816 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11817 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11818 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11819 | s,@exec_prefix@,$exec_prefix,;t t | |
11820 | s,@prefix@,$prefix,;t t | |
11821 | s,@program_transform_name@,$program_transform_name,;t t | |
11822 | s,@bindir@,$bindir,;t t | |
11823 | s,@sbindir@,$sbindir,;t t | |
11824 | s,@libexecdir@,$libexecdir,;t t | |
11825 | s,@datadir@,$datadir,;t t | |
11826 | s,@sysconfdir@,$sysconfdir,;t t | |
11827 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11828 | s,@localstatedir@,$localstatedir,;t t | |
11829 | s,@libdir@,$libdir,;t t | |
11830 | s,@includedir@,$includedir,;t t | |
11831 | s,@oldincludedir@,$oldincludedir,;t t | |
11832 | s,@infodir@,$infodir,;t t | |
11833 | s,@mandir@,$mandir,;t t | |
11834 | s,@build_alias@,$build_alias,;t t | |
11835 | s,@host_alias@,$host_alias,;t t | |
11836 | s,@target_alias@,$target_alias,;t t | |
11837 | s,@DEFS@,$DEFS,;t t | |
11838 | s,@ECHO_C@,$ECHO_C,;t t | |
11839 | s,@ECHO_N@,$ECHO_N,;t t | |
11840 | s,@ECHO_T@,$ECHO_T,;t t | |
11841 | s,@LIBS@,$LIBS,;t t | |
11842 | s,@build@,$build,;t t | |
11843 | s,@build_cpu@,$build_cpu,;t t | |
11844 | s,@build_vendor@,$build_vendor,;t t | |
11845 | s,@build_os@,$build_os,;t t | |
11846 | s,@host@,$host,;t t | |
11847 | s,@host_cpu@,$host_cpu,;t t | |
11848 | s,@host_vendor@,$host_vendor,;t t | |
11849 | s,@host_os@,$host_os,;t t | |
11850 | s,@target@,$target,;t t | |
11851 | s,@target_cpu@,$target_cpu,;t t | |
11852 | s,@target_vendor@,$target_vendor,;t t | |
11853 | s,@target_os@,$target_os,;t t | |
11854 | s,@AWK@,$AWK,;t t | |
11855 | s,@CC@,$CC,;t t | |
11856 | s,@CFLAGS@,$CFLAGS,;t t | |
11857 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11858 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11859 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11860 | s,@EXEEXT@,$EXEEXT,;t t | |
11861 | s,@OBJEXT@,$OBJEXT,;t t | |
11862 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11863 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11864 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11865 | s,@LN_S@,$LN_S,;t t | |
11866 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11867 | s,@RANLIB@,$RANLIB,;t t | |
11868 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8a2fc586 AK |
11869 | s,@CFLOW_CMD@,$CFLOW_CMD,;t t |
11870 | s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t | |
ad6254c5 AK |
11871 | s,@CPP@,$CPP,;t t |
11872 | s,@EGREP@,$EGREP,;t t | |
11873 | s,@ALLOCA@,$ALLOCA,;t t | |
11874 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11875 | s,@POW_LIB@,$POW_LIB,;t t | |
11876 | s,@MSGFMT@,$MSGFMT,;t t | |
a653923f | 11877 | s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t |
ad6254c5 AK |
11878 | s,@JOBS@,$JOBS,;t t |
11879 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
11880 | s,@LVM1@,$LVM1,;t t | |
11881 | s,@POOL@,$POOL,;t t | |
11882 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
11883 | s,@MIRRORS@,$MIRRORS,;t t | |
11884 | s,@OWNER@,$OWNER,;t t | |
11885 | s,@GROUP@,$GROUP,;t t | |
11886 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t | |
11887 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
11888 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
11889 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
11890 | s,@LDDEPS@,$LDDEPS,;t t | |
c1c065a3 | 11891 | s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t |
ad6254c5 AK |
11892 | s,@LVM_VERSION@,$LVM_VERSION,;t t |
11893 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
11894 | s,@DEBUG@,$DEBUG,;t t | |
11895 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
11896 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
11897 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
8b1a3214 | 11898 | s,@HAVE_REALTIME@,$HAVE_REALTIME,;t t |
ad6254c5 AK |
11899 | s,@CMDLIB@,$CMDLIB,;t t |
11900 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
11901 | s,@CONFDIR@,$CONFDIR,;t t | |
11902 | s,@STATICDIR@,$STATICDIR,;t t | |
11903 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
11904 | s,@INTL@,$INTL,;t t | |
11905 | s,@CLVMD@,$CLVMD,;t t | |
11906 | s,@CLUSTER@,$CLUSTER,;t t | |
11907 | s,@FSADM@,$FSADM,;t t | |
06f62ad1 | 11908 | s,@DMEVENTD@,$DMEVENTD,;t t |
ad6254c5 AK |
11909 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
11910 | CEOF | |
11911 | ||
11912 | _ACEOF | |
11913 | ||
11914 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11915 | # Split the substitutions into bite-sized pieces for seds with | |
11916 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11917 | ac_max_sed_lines=48 | |
11918 | ac_sed_frag=1 # Number of current file. | |
11919 | ac_beg=1 # First line for current file. | |
11920 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11921 | ac_more_lines=: | |
11922 | ac_sed_cmds= | |
11923 | while $ac_more_lines; do | |
11924 | if test $ac_beg -gt 1; then | |
11925 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11926 | else | |
11927 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11928 | fi | |
11929 | if test ! -s $tmp/subs.frag; then | |
11930 | ac_more_lines=false | |
11931 | else | |
11932 | # The purpose of the label and of the branching condition is to | |
11933 | # speed up the sed processing (if there are no `@' at all, there | |
11934 | # is no need to browse any of the substitutions). | |
11935 | # These are the two extra sed commands mentioned above. | |
11936 | (echo ':t | |
11937 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11938 | if test -z "$ac_sed_cmds"; then | |
8a2fc586 | 11939 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 11940 | else |
8a2fc586 | 11941 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
11942 | fi |
11943 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11944 | ac_beg=$ac_end | |
11945 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11946 | fi | |
11947 | done | |
11948 | if test -z "$ac_sed_cmds"; then | |
11949 | ac_sed_cmds=cat | |
11950 | fi | |
11951 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 11952 | |
ad6254c5 AK |
11953 | _ACEOF |
11954 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11955 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11956 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11957 | case $ac_file in | |
11958 | - | *:- | *:-:* ) # input from stdin | |
8a2fc586 AK |
11959 | cat >$tmp/stdin |
11960 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11961 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 11962 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8a2fc586 | 11963 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 11964 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 11965 | esac |
8106cdd5 | 11966 | |
ad6254c5 AK |
11967 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11968 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11969 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11970 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11971 | X"$ac_file" : 'X\(//\)$' \| \ | |
11972 | X"$ac_file" : 'X\(/\)' \| \ | |
11973 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11974 | echo X"$ac_file" | |
11975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11976 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11977 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11978 | /^X\(\/\).*/{ s//\1/; q; } | |
11979 | s/.*/./; q'` | |
11980 | { if $as_mkdir_p; then | |
11981 | mkdir -p "$ac_dir" | |
11982 | else | |
11983 | as_dir="$ac_dir" | |
11984 | as_dirs= | |
11985 | while test ! -d "$as_dir"; do | |
11986 | as_dirs="$as_dir $as_dirs" | |
11987 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11988 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11989 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11990 | X"$as_dir" : 'X\(//\)$' \| \ | |
11991 | X"$as_dir" : 'X\(/\)' \| \ | |
11992 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11993 | echo X"$as_dir" | |
11994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11995 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11996 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11997 | /^X\(\/\).*/{ s//\1/; q; } | |
11998 | s/.*/./; q'` | |
11999 | done | |
12000 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12001 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12002 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12003 | { (exit 1); exit 1; }; }; } | |
12004 | ||
12005 | ac_builddir=. | |
12006 | ||
12007 | if test "$ac_dir" != .; then | |
12008 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12009 | # A "../" for each directory in $ac_dir_suffix. | |
12010 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12011 | else | |
12012 | ac_dir_suffix= ac_top_builddir= | |
12013 | fi | |
12014 | ||
12015 | case $srcdir in | |
12016 | .) # No --srcdir option. We are building in place. | |
12017 | ac_srcdir=. | |
12018 | if test -z "$ac_top_builddir"; then | |
12019 | ac_top_srcdir=. | |
12020 | else | |
12021 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12022 | fi ;; | |
12023 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12024 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12025 | ac_top_srcdir=$srcdir ;; | |
12026 | *) # Relative path. | |
12027 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12028 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12029 | esac | |
8a2fc586 AK |
12030 | |
12031 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12032 | # the directories may not exist. | |
12033 | case `pwd` in | |
12034 | .) ac_abs_builddir="$ac_dir";; | |
12035 | *) | |
12036 | case "$ac_dir" in | |
12037 | .) ac_abs_builddir=`pwd`;; | |
12038 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12039 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12040 | esac;; | |
12041 | esac | |
12042 | case $ac_abs_builddir in | |
12043 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12044 | *) | |
12045 | case ${ac_top_builddir}. in | |
12046 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12047 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12048 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12049 | esac;; | |
12050 | esac | |
12051 | case $ac_abs_builddir in | |
12052 | .) ac_abs_srcdir=$ac_srcdir;; | |
12053 | *) | |
12054 | case $ac_srcdir in | |
12055 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12056 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12057 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12058 | esac;; | |
12059 | esac | |
12060 | case $ac_abs_builddir in | |
12061 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12062 | *) | |
12063 | case $ac_top_srcdir in | |
12064 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12065 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12066 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12067 | esac;; | |
12068 | esac | |
ad6254c5 AK |
12069 | |
12070 | ||
12071 | case $INSTALL in | |
12072 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12073 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
12074 | esac |
12075 | ||
ad6254c5 AK |
12076 | if test x"$ac_file" != x-; then |
12077 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12078 | echo "$as_me: creating $ac_file" >&6;} | |
12079 | rm -f "$ac_file" | |
12080 | fi | |
12081 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12082 | # use $as_me), people would be surprised to read: | |
12083 | # /* config.h. Generated by config.status. */ | |
12084 | if test x"$ac_file" = x-; then | |
12085 | configure_input= | |
12086 | else | |
12087 | configure_input="$ac_file. " | |
12088 | fi | |
12089 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8a2fc586 | 12090 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
12091 | |
12092 | # First look for the input files in the build tree, otherwise in the | |
12093 | # src tree. | |
12094 | ac_file_inputs=`IFS=: | |
12095 | for f in $ac_file_in; do | |
12096 | case $f in | |
12097 | -) echo $tmp/stdin ;; | |
12098 | [\\/$]*) | |
8a2fc586 AK |
12099 | # Absolute (can't be DOS-style, as IFS=:) |
12100 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
12101 | echo "$as_me: error: cannot find input file: $f" >&2;} |
12102 | { (exit 1); exit 1; }; } | |
8a2fc586 | 12103 | echo "$f";; |
ad6254c5 | 12104 | *) # Relative |
8a2fc586 AK |
12105 | if test -f "$f"; then |
12106 | # Build tree | |
12107 | echo "$f" | |
12108 | elif test -f "$srcdir/$f"; then | |
12109 | # Source tree | |
12110 | echo "$srcdir/$f" | |
12111 | else | |
12112 | # /dev/null tree | |
12113 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
12114 | echo "$as_me: error: cannot find input file: $f" >&2;} |
12115 | { (exit 1); exit 1; }; } | |
8a2fc586 | 12116 | fi;; |
ad6254c5 AK |
12117 | esac |
12118 | done` || { (exit 1); exit 1; } | |
12119 | _ACEOF | |
12120 | cat >>$CONFIG_STATUS <<_ACEOF | |
12121 | sed "$ac_vpsub | |
12122 | $extrasub | |
12123 | _ACEOF | |
12124 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12125 | :t | |
12126 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12127 | s,@configure_input@,$configure_input,;t t | |
12128 | s,@srcdir@,$ac_srcdir,;t t | |
12129 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12130 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12131 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12132 | s,@builddir@,$ac_builddir,;t t | |
12133 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12134 | s,@top_builddir@,$ac_top_builddir,;t t | |
12135 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12136 | s,@INSTALL@,$ac_INSTALL,;t t | |
12137 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12138 | rm -f $tmp/stdin | |
12139 | if test x"$ac_file" != x-; then | |
12140 | mv $tmp/out $ac_file | |
12141 | else | |
12142 | cat $tmp/out | |
12143 | rm -f $tmp/out | |
12144 | fi | |
795ca3e5 | 12145 | |
ad6254c5 AK |
12146 | done |
12147 | _ACEOF | |
72b2cb61 AK |
12148 | cat >>$CONFIG_STATUS <<\_ACEOF |
12149 | ||
12150 | # | |
12151 | # CONFIG_HEADER section. | |
12152 | # | |
12153 | ||
12154 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12155 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12156 | # | |
12157 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12158 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12159 | ac_dB='[ ].*$,\1#\2' | |
12160 | ac_dC=' ' | |
12161 | ac_dD=',;t' | |
12162 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12163 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12164 | ac_uB='$,\1#\2define\3' | |
12165 | ac_uC=' ' | |
12166 | ac_uD=',;t' | |
12167 | ||
12168 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12169 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12170 | case $ac_file in | |
12171 | - | *:- | *:-:* ) # input from stdin | |
12172 | cat >$tmp/stdin | |
12173 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12174 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12175 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12176 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12177 | * ) ac_file_in=$ac_file.in ;; | |
12178 | esac | |
12179 | ||
12180 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12181 | echo "$as_me: creating $ac_file" >&6;} | |
12182 | ||
12183 | # First look for the input files in the build tree, otherwise in the | |
12184 | # src tree. | |
12185 | ac_file_inputs=`IFS=: | |
12186 | for f in $ac_file_in; do | |
12187 | case $f in | |
12188 | -) echo $tmp/stdin ;; | |
12189 | [\\/$]*) | |
12190 | # Absolute (can't be DOS-style, as IFS=:) | |
12191 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12192 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12193 | { (exit 1); exit 1; }; } | |
12194 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12195 | echo "$f";; | |
12196 | *) # Relative | |
12197 | if test -f "$f"; then | |
12198 | # Build tree | |
12199 | echo "$f" | |
12200 | elif test -f "$srcdir/$f"; then | |
12201 | # Source tree | |
12202 | echo "$srcdir/$f" | |
12203 | else | |
12204 | # /dev/null tree | |
12205 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12206 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12207 | { (exit 1); exit 1; }; } | |
12208 | fi;; | |
12209 | esac | |
12210 | done` || { (exit 1); exit 1; } | |
12211 | # Remove the trailing spaces. | |
12212 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12213 | ||
12214 | _ACEOF | |
12215 | ||
12216 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12217 | # `conftest.undefs', that substitutes the proper values into | |
12218 | # config.h.in to produce config.h. The first handles `#define' | |
12219 | # templates, and the second `#undef' templates. | |
12220 | # And first: Protect against being on the right side of a sed subst in | |
12221 | # config.status. Protect against being in an unquoted here document | |
12222 | # in config.status. | |
12223 | rm -f conftest.defines conftest.undefs | |
12224 | # Using a here document instead of a string reduces the quoting nightmare. | |
12225 | # Putting comments in sed scripts is not portable. | |
12226 | # | |
12227 | # `end' is used to avoid that the second main sed command (meant for | |
12228 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12229 | # See the Autoconf documentation for `clear'. | |
12230 | cat >confdef2sed.sed <<\_ACEOF | |
12231 | s/[\\&,]/\\&/g | |
12232 | s,[\\$`],\\&,g | |
12233 | t clear | |
12234 | : clear | |
12235 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12236 | t end | |
12237 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12238 | : end | |
12239 | _ACEOF | |
12240 | # If some macros were called several times there might be several times | |
12241 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12242 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12243 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12244 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12245 | rm -f confdef2sed.sed | |
12246 | ||
12247 | # This sed command replaces #undef with comments. This is necessary, for | |
12248 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12249 | # on some systems where configure will not decide to define it. | |
12250 | cat >>conftest.undefs <<\_ACEOF | |
12251 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12252 | _ACEOF | |
12253 | ||
12254 | # Break up conftest.defines because some shells have a limit on the size | |
12255 | # of here documents, and old seds have small limits too (100 cmds). | |
12256 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12257 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12258 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12259 | echo ' :' >>$CONFIG_STATUS | |
12260 | rm -f conftest.tail | |
12261 | while grep . conftest.defines >/dev/null | |
12262 | do | |
12263 | # Write a limited-size here document to $tmp/defines.sed. | |
12264 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12265 | # Speed up: don't consider the non `#define' lines. | |
12266 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12267 | # Work around the forget-to-reset-the-flag bug. | |
12268 | echo 't clr' >>$CONFIG_STATUS | |
12269 | echo ': clr' >>$CONFIG_STATUS | |
12270 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12271 | echo 'CEOF | |
12272 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12273 | rm -f $tmp/in | |
12274 | mv $tmp/out $tmp/in | |
12275 | ' >>$CONFIG_STATUS | |
12276 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12277 | rm -f conftest.defines | |
12278 | mv conftest.tail conftest.defines | |
12279 | done | |
12280 | rm -f conftest.defines | |
12281 | echo ' fi # grep' >>$CONFIG_STATUS | |
12282 | echo >>$CONFIG_STATUS | |
12283 | ||
12284 | # Break up conftest.undefs because some shells have a limit on the size | |
12285 | # of here documents, and old seds have small limits too (100 cmds). | |
12286 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12287 | rm -f conftest.tail | |
12288 | while grep . conftest.undefs >/dev/null | |
12289 | do | |
12290 | # Write a limited-size here document to $tmp/undefs.sed. | |
12291 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12292 | # Speed up: don't consider the non `#undef' | |
12293 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12294 | # Work around the forget-to-reset-the-flag bug. | |
12295 | echo 't clr' >>$CONFIG_STATUS | |
12296 | echo ': clr' >>$CONFIG_STATUS | |
12297 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12298 | echo 'CEOF | |
12299 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12300 | rm -f $tmp/in | |
12301 | mv $tmp/out $tmp/in | |
12302 | ' >>$CONFIG_STATUS | |
12303 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12304 | rm -f conftest.undefs | |
12305 | mv conftest.tail conftest.undefs | |
12306 | done | |
12307 | rm -f conftest.undefs | |
12308 | ||
12309 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12310 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12311 | # use $as_me), people would be surprised to read: | |
12312 | # /* config.h. Generated by config.status. */ | |
12313 | if test x"$ac_file" = x-; then | |
12314 | echo "/* Generated by configure. */" >$tmp/config.h | |
12315 | else | |
12316 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12317 | fi | |
12318 | cat $tmp/in >>$tmp/config.h | |
12319 | rm -f $tmp/in | |
12320 | if test x"$ac_file" != x-; then | |
12321 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12322 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12323 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12324 | else | |
12325 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12326 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12327 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12328 | X"$ac_file" : 'X\(//\)$' \| \ | |
12329 | X"$ac_file" : 'X\(/\)' \| \ | |
12330 | . : '\(.\)' 2>/dev/null || | |
12331 | echo X"$ac_file" | | |
12332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12333 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12334 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12335 | /^X\(\/\).*/{ s//\1/; q; } | |
12336 | s/.*/./; q'` | |
12337 | { if $as_mkdir_p; then | |
12338 | mkdir -p "$ac_dir" | |
12339 | else | |
12340 | as_dir="$ac_dir" | |
12341 | as_dirs= | |
12342 | while test ! -d "$as_dir"; do | |
12343 | as_dirs="$as_dir $as_dirs" | |
12344 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12345 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12346 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12347 | X"$as_dir" : 'X\(//\)$' \| \ | |
12348 | X"$as_dir" : 'X\(/\)' \| \ | |
12349 | . : '\(.\)' 2>/dev/null || | |
12350 | echo X"$as_dir" | | |
12351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12352 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12353 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12354 | /^X\(\/\).*/{ s//\1/; q; } | |
12355 | s/.*/./; q'` | |
12356 | done | |
12357 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12358 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12359 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12360 | { (exit 1); exit 1; }; }; } | |
12361 | ||
12362 | rm -f $ac_file | |
12363 | mv $tmp/config.h $ac_file | |
12364 | fi | |
12365 | else | |
12366 | cat $tmp/config.h | |
12367 | rm -f $tmp/config.h | |
12368 | fi | |
12369 | done | |
12370 | _ACEOF | |
795ca3e5 | 12371 | |
ad6254c5 | 12372 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 12373 | |
ad6254c5 AK |
12374 | { (exit 0); exit 0; } |
12375 | _ACEOF | |
795ca3e5 | 12376 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12377 | ac_clean_files=$ac_clean_files_save |
12378 | ||
12379 | ||
12380 | # configure is writing to config.log, and then calls config.status. | |
12381 | # config.status does its own redirection, appending to config.log. | |
12382 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12383 | # by configure, so config.status won't be able to write to it; its | |
12384 | # output is simply discarded. So we exec the FD to /dev/null, | |
12385 | # effectively closing config.log, so it can be properly (re)opened and | |
12386 | # appended to by config.status. When coming back to configure, we | |
12387 | # need to make the FD available again. | |
12388 | if test "$no_create" != yes; then | |
12389 | ac_cs_success=: | |
12390 | ac_config_status_args= | |
12391 | test "$silent" = yes && | |
12392 | ac_config_status_args="$ac_config_status_args --quiet" | |
12393 | exec 5>/dev/null | |
12394 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12395 | exec 5>>config.log | |
12396 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12397 | # would make configure fail if this is the last instruction. | |
12398 | $ac_cs_success || { (exit 1); exit 1; } | |
12399 | fi | |
795ca3e5 | 12400 | |
2dc95e1c AK |
12401 | |
12402 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
12403 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12404 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12405 | fi |
809fae91 AK |
12406 | |
12407 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
12408 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12409 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12410 | fi |
06f62ad1 AK |
12411 | |
12412 | if test x$DMEVENTD == xyes; then | |
12413 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
12414 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
12415 | fi |