]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
c1c065a3 | 3 | # Generated by GNU Autoconf 2.57. |
795ca3e5 | 4 | # |
c1c065a3 AK |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 | # Free Software Foundation, Inc. | |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21 | set -o posix | |
22 | fi | |
23 | ||
24 | # Support unset when possible. | |
c1c065a3 | 25 | if (FOO=FOO; unset FOO) >/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 | |
c1c065a3 | 44 | if (set +x; test -n "`(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 | |
221 | as_mkdir_p=false | |
222 | fi | |
223 | ||
224 | as_executable_p="test -f" | |
225 | ||
226 | # Sed expression to map a string onto a valid CPP name. | |
c1c065a3 | 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
ad6254c5 AK |
228 | |
229 | # Sed expression to map a string onto a valid variable name. | |
c1c065a3 | 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
ad6254c5 AK |
231 | |
232 | ||
233 | # IFS | |
234 | # We need space, tab and new line, in precisely that order. | |
235 | as_nl=' | |
236 | ' | |
237 | IFS=" $as_nl" | |
238 | ||
239 | # CDPATH. | |
240 | $as_unset CDPATH | |
241 | ||
242 | ||
243 | # Name of the host. | |
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
245 | # so uname gets run too. | |
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
247 | ||
248 | exec 6>&1 | |
249 | ||
250 | # | |
251 | # Initializations. | |
252 | # | |
795ca3e5 | 253 | ac_default_prefix=/usr/local |
ad6254c5 AK |
254 | ac_config_libobj_dir=. |
255 | cross_compiling=no | |
256 | subdirs= | |
257 | MFLAGS= | |
258 | MAKEFLAGS= | |
259 | SHELL=${CONFIG_SHELL-/bin/sh} | |
260 | ||
261 | # Maximum number of lines to put in a shell here document. | |
262 | # This variable seems obsolete. It should probably be removed, and | |
263 | # only ac_max_sed_lines should be used. | |
264 | : ${ac_max_here_lines=38} | |
265 | ||
266 | # Identity of this package. | |
267 | PACKAGE_NAME= | |
268 | PACKAGE_TARNAME= | |
269 | PACKAGE_VERSION= | |
270 | PACKAGE_STRING= | |
271 | PACKAGE_BUGREPORT= | |
272 | ||
273 | ac_unique_file="lib/device/dev-cache.h" | |
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
795ca3e5 | 311 | ac_default_prefix=/usr |
c1c065a3 | 312 | 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 CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS' |
ad6254c5 | 313 | ac_subst_files='' |
795ca3e5 AK |
314 | |
315 | # Initialize some variables set by options. | |
ad6254c5 AK |
316 | ac_init_help= |
317 | ac_init_version=false | |
795ca3e5 AK |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
ad6254c5 | 320 | cache_file=/dev/null |
795ca3e5 | 321 | exec_prefix=NONE |
795ca3e5 | 322 | no_create= |
795ca3e5 AK |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
795ca3e5 AK |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
ad6254c5 AK |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
795ca3e5 AK |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
795ca3e5 AK |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
795ca3e5 AK |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
ad6254c5 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
ad6254c5 | 367 | case $ac_option in |
795ca3e5 AK |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 372 | bindir=$ac_optarg ;; |
795ca3e5 AK |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 375 | ac_prev=build_alias ;; |
795ca3e5 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 377 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
795ca3e5 AK |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
ad6254c5 | 393 | datadir=$ac_optarg ;; |
795ca3e5 AK |
394 | |
395 | -disable-* | --disable-*) | |
ad6254c5 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 397 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
795ca3e5 AK |
403 | |
404 | -enable-* | --enable-*) | |
ad6254c5 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 406 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
413 | *) ac_optarg=yes ;; |
414 | esac | |
ad6254c5 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
795ca3e5 AK |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 424 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
ad6254c5 AK |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
795ca3e5 AK |
436 | |
437 | -host | --host | --hos | --ho) | |
ad6254c5 | 438 | ac_prev=host_alias ;; |
795ca3e5 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 440 | host_alias=$ac_optarg ;; |
795ca3e5 AK |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 447 | includedir=$ac_optarg ;; |
795ca3e5 AK |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 452 | infodir=$ac_optarg ;; |
795ca3e5 AK |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 457 | libdir=$ac_optarg ;; |
795ca3e5 AK |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 464 | libexecdir=$ac_optarg ;; |
795ca3e5 AK |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ad6254c5 | 473 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 478 | mandir=$ac_optarg ;; |
795ca3e5 AK |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 485 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 499 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 504 | prefix=$ac_optarg ;; |
795ca3e5 AK |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 511 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 518 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 535 | program_transform_name=$ac_optarg ;; |
795ca3e5 AK |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
ad6254c5 | 545 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
ad6254c5 | 556 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 561 | site=$ac_optarg ;; |
795ca3e5 AK |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 566 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 573 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 576 | ac_prev=target_alias ;; |
795ca3e5 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 578 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
ad6254c5 AK |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
795ca3e5 AK |
585 | |
586 | -with-* | --with-*) | |
ad6254c5 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 588 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
795ca3e5 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ad6254c5 AK |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
595 | *) ac_optarg=yes ;; |
596 | esac | |
ad6254c5 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
598 | |
599 | -without-* | --without-*) | |
ad6254c5 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 601 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
795ca3e5 AK |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 617 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 624 | x_libraries=$ac_optarg ;; |
795ca3e5 | 625 | |
ad6254c5 AK |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
629 | ;; |
630 | ||
ad6254c5 AK |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
795ca3e5 | 641 | *) |
ad6254c5 AK |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
ad6254c5 AK |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
795ca3e5 | 656 | fi |
795ca3e5 | 657 | |
ad6254c5 AK |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
795ca3e5 | 668 | |
ad6254c5 AK |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
c1c065a3 | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
795ca3e5 | 672 | do |
ad6254c5 AK |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
795ca3e5 AK |
678 | esac |
679 | done | |
680 | ||
ad6254c5 AK |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
8106cdd5 | 698 | |
ad6254c5 AK |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 703 | |
795ca3e5 AK |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
ad6254c5 AK |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
c1c065a3 AK |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
715 | echo X"$0" | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
795ca3e5 AK |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
ad6254c5 AK |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
795ca3e5 | 732 | else |
ad6254c5 AK |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
735 | fi |
736 | fi | |
ad6254c5 AK |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
c1c065a3 | 806 | [$ac_default_prefix] |
ad6254c5 | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
c1c065a3 | 808 | [PREFIX] |
ad6254c5 AK |
809 | |
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | System types: | |
835 | --build=BUILD configure for building on BUILD [guessed] | |
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
837 | --target=TARGET configure for building compilers for TARGET [HOST] | |
838 | _ACEOF | |
839 | fi | |
840 | ||
841 | if test -n "$ac_init_help"; then | |
842 | ||
843 | cat <<\_ACEOF | |
844 | ||
845 | Optional Features: | |
846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
848 | --enable-jobs=NUM Number of jobs to run simultaneously | |
849 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
850 | device-mapper is missing from the kernel | |
851 | --enable-static_link Use this to link the tools to their libraries | |
852 | statically. Default is dynamic linking | |
853 | --enable-readline Enable readline support | |
854 | --disable-selinux Disable selinux support | |
855 | --enable-debug Enable debugging | |
856 | --disable-devmapper Disable device-mapper interaction | |
857 | --disable-o_direct Disable O_DIRECT | |
858 | --enable-cmdlib Build shared command library | |
859 | --enable-fsadm Enable fsadm | |
15d91f5a | 860 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
861 | --enable-nls Enable Native Language Support |
862 | ||
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
866 | --with-user=USER Set the owner of installed files | |
867 | --with-group=GROUP Set the group owner of installed files | |
868 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
869 | TYPE=internal | |
870 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
871 | TYPE=internal | |
872 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
873 | TYPE=internal | |
874 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
875 | TYPE=internal | |
876 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
877 | TYPE=internal | |
5c7fc7c4 | 878 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 879 | TYPE=none |
ad6254c5 AK |
880 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
881 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
882 | --with-confdir=DIR Configuration files in DIR /etc | |
883 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
884 | ||
885 | Some influential environment variables: | |
886 | CC C compiler command | |
887 | CFLAGS C compiler flags | |
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
889 | nonstandard directory <lib dir> | |
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
891 | headers in a nonstandard directory <include dir> | |
892 | CPP C preprocessor | |
893 | ||
894 | Use these variables to override the choices made by `configure' or to help | |
895 | it to find libraries and programs with nonstandard names/locations. | |
896 | ||
897 | _ACEOF | |
898 | fi | |
899 | ||
900 | if test "$ac_init_help" = "recursive"; then | |
901 | # If there are subdirs, report their specific --help. | |
902 | ac_popdir=`pwd` | |
903 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
904 | test -d $ac_dir || continue | |
905 | ac_builddir=. | |
906 | ||
907 | if test "$ac_dir" != .; then | |
908 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
909 | # A "../" for each directory in $ac_dir_suffix. | |
910 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
911 | else | |
912 | ac_dir_suffix= ac_top_builddir= | |
913 | fi | |
914 | ||
915 | case $srcdir in | |
916 | .) # No --srcdir option. We are building in place. | |
917 | ac_srcdir=. | |
918 | if test -z "$ac_top_builddir"; then | |
919 | ac_top_srcdir=. | |
920 | else | |
921 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
922 | fi ;; | |
923 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
924 | ac_srcdir=$srcdir$ac_dir_suffix; | |
925 | ac_top_srcdir=$srcdir ;; | |
926 | *) # Relative path. | |
927 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
928 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
929 | esac | |
c1c065a3 AK |
930 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
931 | # absolute. | |
932 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
933 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
934 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
935 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
ad6254c5 AK |
936 | |
937 | cd $ac_dir | |
938 | # Check for guested configure; otherwise get Cygnus style configure. | |
939 | if test -f $ac_srcdir/configure.gnu; then | |
940 | echo | |
941 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
942 | elif test -f $ac_srcdir/configure; then | |
943 | echo | |
944 | $SHELL $ac_srcdir/configure --help=recursive | |
945 | elif test -f $ac_srcdir/configure.ac || | |
c1c065a3 | 946 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
947 | echo |
948 | $ac_configure --help | |
949 | else | |
950 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
951 | fi | |
952 | cd $ac_popdir | |
953 | done | |
954 | fi | |
955 | ||
956 | test -n "$ac_init_help" && exit 0 | |
957 | if $ac_init_version; then | |
958 | cat <<\_ACEOF | |
959 | ||
c1c065a3 AK |
960 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
961 | Free Software Foundation, Inc. | |
ad6254c5 AK |
962 | This configure script is free software; the Free Software Foundation |
963 | gives unlimited permission to copy, distribute and modify it. | |
964 | _ACEOF | |
965 | exit 0 | |
966 | fi | |
967 | exec 5>config.log | |
968 | cat >&5 <<_ACEOF | |
969 | This file contains any messages produced by compilers while | |
970 | running configure, to aid debugging if configure makes a mistake. | |
971 | ||
972 | It was created by $as_me, which was | |
c1c065a3 | 973 | generated by GNU Autoconf 2.57. Invocation command line was |
ad6254c5 AK |
974 | |
975 | $ $0 $@ | |
976 | ||
977 | _ACEOF | |
978 | { | |
979 | cat <<_ASUNAME | |
980 | ## --------- ## | |
981 | ## Platform. ## | |
982 | ## --------- ## | |
983 | ||
984 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
985 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
986 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
987 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
988 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
989 | ||
990 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
991 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
992 | ||
993 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
994 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
995 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
996 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
997 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
998 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
999 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1000 | ||
1001 | _ASUNAME | |
1002 | ||
1003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1004 | for as_dir in $PATH | |
1005 | do | |
1006 | IFS=$as_save_IFS | |
1007 | test -z "$as_dir" && as_dir=. | |
1008 | echo "PATH: $as_dir" | |
1009 | done | |
1010 | ||
1011 | } >&5 | |
1012 | ||
1013 | cat >&5 <<_ACEOF | |
1014 | ||
1015 | ||
1016 | ## ----------- ## | |
1017 | ## Core tests. ## | |
1018 | ## ----------- ## | |
1019 | ||
1020 | _ACEOF | |
1021 | ||
1022 | ||
1023 | # Keep a trace of the command line. | |
1024 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1025 | # Strip out --silent because we don't want to record it for future runs. | |
1026 | # Also quote any args containing shell meta-characters. | |
1027 | # Make two passes to allow for proper duplicate-argument suppression. | |
1028 | ac_configure_args= | |
1029 | ac_configure_args0= | |
1030 | ac_configure_args1= | |
1031 | ac_sep= | |
1032 | ac_must_keep_next=false | |
1033 | for ac_pass in 1 2 | |
1034 | do | |
1035 | for ac_arg | |
1036 | do | |
1037 | case $ac_arg in | |
1038 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1040 | | -silent | --silent | --silen | --sile | --sil) | |
1041 | continue ;; | |
1042 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1043 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1044 | esac | |
1045 | case $ac_pass in | |
1046 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1047 | 2) | |
1048 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1049 | if test $ac_must_keep_next = true; then | |
c1c065a3 | 1050 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1051 | else |
c1c065a3 AK |
1052 | case $ac_arg in |
1053 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1054 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1055 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1056 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1057 | case "$ac_configure_args0 " in | |
1058 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1059 | esac | |
1060 | ;; | |
1061 | -* ) ac_must_keep_next=true ;; | |
1062 | esac | |
ad6254c5 AK |
1063 | fi |
1064 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1065 | # Get rid of the leading space. | |
1066 | ac_sep=" " | |
1067 | ;; | |
1068 | esac | |
1069 | done | |
1070 | done | |
1071 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1072 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1073 | ||
1074 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1075 | # config.log. We remove comments because anyway the quotes in there | |
1076 | # would cause problems or look ugly. | |
1077 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1078 | # such as our DU 5.0 friend, will then `close' the trap. | |
1079 | trap 'exit_status=$? | |
1080 | # Save into config.log some information that might help in debugging. | |
1081 | { | |
1082 | echo | |
1083 | ||
1084 | cat <<\_ASBOX | |
1085 | ## ---------------- ## | |
1086 | ## Cache variables. ## | |
1087 | ## ---------------- ## | |
1088 | _ASBOX | |
1089 | echo | |
1090 | # The following way of writing the cache mishandles newlines in values, | |
1091 | { | |
1092 | (set) 2>&1 | | |
1093 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1094 | *ac_space=\ *) | |
1095 | sed -n \ | |
c1c065a3 AK |
1096 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1097 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1098 | ;; |
1099 | *) | |
1100 | sed -n \ | |
c1c065a3 | 1101 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1102 | ;; |
1103 | esac; | |
1104 | } | |
1105 | echo | |
1106 | ||
1107 | cat <<\_ASBOX | |
1108 | ## ----------------- ## | |
1109 | ## Output variables. ## | |
1110 | ## ----------------- ## | |
1111 | _ASBOX | |
1112 | echo | |
1113 | for ac_var in $ac_subst_vars | |
1114 | do | |
1115 | eval ac_val=$`echo $ac_var` | |
1116 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1117 | done | sort | |
1118 | echo | |
1119 | ||
1120 | if test -n "$ac_subst_files"; then | |
1121 | cat <<\_ASBOX | |
1122 | ## ------------- ## | |
1123 | ## Output files. ## | |
1124 | ## ------------- ## | |
1125 | _ASBOX | |
1126 | echo | |
1127 | for ac_var in $ac_subst_files | |
1128 | do | |
1129 | eval ac_val=$`echo $ac_var` | |
c1c065a3 | 1130 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1131 | done | sort |
1132 | echo | |
1133 | fi | |
1134 | ||
1135 | if test -s confdefs.h; then | |
1136 | cat <<\_ASBOX | |
1137 | ## ----------- ## | |
1138 | ## confdefs.h. ## | |
1139 | ## ----------- ## | |
1140 | _ASBOX | |
1141 | echo | |
1142 | sed "/^$/d" confdefs.h | sort | |
1143 | echo | |
1144 | fi | |
1145 | test "$ac_signal" != 0 && | |
1146 | echo "$as_me: caught signal $ac_signal" | |
1147 | echo "$as_me: exit $exit_status" | |
1148 | } >&5 | |
c1c065a3 | 1149 | rm -f core core.* *.core && |
ad6254c5 AK |
1150 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1151 | exit $exit_status | |
1152 | ' 0 | |
1153 | for ac_signal in 1 2 13 15; do | |
1154 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1155 | done | |
1156 | ac_signal=0 | |
1157 | ||
1158 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1159 | rm -rf conftest* confdefs.h | |
1160 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1161 | echo >confdefs.h | |
1162 | ||
1163 | # Predefined preprocessor variables. | |
1164 | ||
1165 | cat >>confdefs.h <<_ACEOF | |
1166 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1167 | _ACEOF | |
1168 | ||
1169 | ||
1170 | cat >>confdefs.h <<_ACEOF | |
1171 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1172 | _ACEOF | |
1173 | ||
1174 | ||
1175 | cat >>confdefs.h <<_ACEOF | |
1176 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1177 | _ACEOF | |
8106cdd5 | 1178 | |
ad6254c5 AK |
1179 | |
1180 | cat >>confdefs.h <<_ACEOF | |
1181 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1182 | _ACEOF | |
1183 | ||
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1191 | # Prefer explicitly selected file to automatically selected ones. |
1192 | if test -z "$CONFIG_SITE"; then | |
1193 | if test "x$prefix" != xNONE; then | |
1194 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1195 | else | |
1196 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1197 | fi | |
1198 | fi | |
1199 | for ac_site_file in $CONFIG_SITE; do | |
1200 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1201 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1202 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1203 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1204 | . "$ac_site_file" |
1205 | fi | |
1206 | done | |
1207 | ||
1208 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1209 | # Some versions of bash will fail to source /dev/null (special |
1210 | # files actually), so we avoid doing that. | |
1211 | if test -f "$cache_file"; then | |
1212 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1213 | echo "$as_me: loading cache $cache_file" >&6;} | |
1214 | case $cache_file in | |
1215 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1216 | *) . ./$cache_file;; | |
1217 | esac | |
1218 | fi | |
795ca3e5 | 1219 | else |
ad6254c5 AK |
1220 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1221 | echo "$as_me: creating cache $cache_file" >&6;} | |
1222 | >$cache_file | |
1223 | fi | |
1224 | ||
1225 | # Check that the precious variables saved in the cache have kept the same | |
1226 | # value. | |
1227 | ac_cache_corrupted=false | |
1228 | for ac_var in `(set) 2>&1 | | |
c1c065a3 | 1229 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1230 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1231 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1232 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1233 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1234 | case $ac_old_set,$ac_new_set in | |
1235 | set,) | |
1236 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1237 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1238 | ac_cache_corrupted=: ;; | |
1239 | ,set) | |
1240 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1241 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1242 | ac_cache_corrupted=: ;; | |
1243 | ,);; | |
1244 | *) | |
1245 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
c1c065a3 | 1246 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1247 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
c1c065a3 | 1248 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1249 | echo "$as_me: former value: $ac_old_val" >&2;} |
c1c065a3 | 1250 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1251 | echo "$as_me: current value: $ac_new_val" >&2;} |
c1c065a3 | 1252 | ac_cache_corrupted=: |
ad6254c5 AK |
1253 | fi;; |
1254 | esac | |
1255 | # Pass precious variables to config.status. | |
1256 | if test "$ac_new_set" = set; then | |
1257 | case $ac_new_val in | |
1258 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1259 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1260 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1261 | esac | |
1262 | case " $ac_configure_args " in | |
1263 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1264 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1265 | esac | |
1266 | fi | |
1267 | done | |
1268 | if $ac_cache_corrupted; then | |
1269 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1270 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1271 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1272 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1273 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1274 | fi |
1275 | ||
1276 | ac_ext=c | |
795ca3e5 | 1277 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1281 | ||
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
795ca3e5 AK |
1298 | |
1299 | ||
1300 | ||
80992638 | 1301 | ################################################################################ |
795ca3e5 AK |
1302 | ac_aux_dir= |
1303 | for ac_dir in autoconf $srcdir/autoconf; do | |
1304 | if test -f $ac_dir/install-sh; then | |
1305 | ac_aux_dir=$ac_dir | |
1306 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1307 | break | |
1308 | elif test -f $ac_dir/install.sh; then | |
1309 | ac_aux_dir=$ac_dir | |
1310 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1311 | break | |
ad6254c5 AK |
1312 | elif test -f $ac_dir/shtool; then |
1313 | ac_aux_dir=$ac_dir | |
1314 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1315 | break | |
795ca3e5 AK |
1316 | fi |
1317 | done | |
1318 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1319 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1320 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1321 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1322 | fi |
ad6254c5 AK |
1323 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1324 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1325 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1326 | |
1327 | ||
ad6254c5 | 1328 | ################################################################################ |
8ce0cbda | 1329 | # Make sure we can run config.sub. |
ad6254c5 AK |
1330 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1331 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1332 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1333 | { (exit 1); exit 1; }; } | |
1334 | ||
1335 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1336 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1337 | if test "${ac_cv_build+set}" = set; then | |
1338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1339 | else | |
1340 | ac_cv_build_alias=$build_alias | |
1341 | test -z "$ac_cv_build_alias" && | |
1342 | ac_cv_build_alias=`$ac_config_guess` | |
1343 | test -z "$ac_cv_build_alias" && | |
1344 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1345 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1346 | { (exit 1); exit 1; }; } | |
1347 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1348 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1349 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1350 | { (exit 1); exit 1; }; } | |
1351 | ||
1352 | fi | |
1353 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1354 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1355 | build=$ac_cv_build | |
1356 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1357 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1358 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1359 | ||
1360 | ||
1361 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1362 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1363 | if test "${ac_cv_host+set}" = set; then | |
1364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1365 | else | |
1366 | ac_cv_host_alias=$host_alias | |
1367 | test -z "$ac_cv_host_alias" && | |
1368 | ac_cv_host_alias=$ac_cv_build_alias | |
1369 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1371 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1372 | { (exit 1); exit 1; }; } | |
1373 | ||
1374 | fi | |
1375 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1376 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1377 | host=$ac_cv_host | |
1378 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1379 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1380 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1381 | ||
1382 | ||
1383 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1384 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1385 | if test "${ac_cv_target+set}" = set; then | |
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1387 | else | |
1388 | ac_cv_target_alias=$target_alias | |
1389 | test "x$ac_cv_target_alias" = "x" && | |
1390 | ac_cv_target_alias=$ac_cv_host_alias | |
1391 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1393 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1394 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1395 | |
ad6254c5 AK |
1396 | fi |
1397 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1398 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1399 | target=$ac_cv_target | |
1400 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1401 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1402 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1403 | |
8ce0cbda | 1404 | |
ad6254c5 AK |
1405 | # The aliases save the names the user supplied, while $host etc. |
1406 | # will get canonicalized. | |
1407 | test -n "$target_alias" && | |
8ce0cbda AK |
1408 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1409 | NONENONEs,x,x, && | |
1410 | program_prefix=${target_alias}- | |
1411 | ||
8ce0cbda AK |
1412 | case "$host_os" in |
1413 | linux*) | |
1414 | CFLAGS="$CFLAGS" | |
1415 | COPTIMISE_FLAG="-O2" | |
1416 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1417 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1418 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1419 | LDDEPS="$LDDEPS .export.sym" | |
1420 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1421 | LIB_SUFFIX="so" |
8ce0cbda AK |
1422 | DEVMAPPER=yes |
1423 | ODIRECT=yes | |
1424 | SELINUX=yes | |
1425 | CLUSTER=internal | |
1426 | FSADM=no ;; | |
1427 | darwin*) | |
1428 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1429 | COPTIMISE_FLAG="-O2" | |
1430 | CLDFLAGS="$CLDFLAGS" | |
1431 | CLDWHOLEARCHIVE="-all_load" | |
1432 | CLDNOWHOLEARCHIVE= | |
1433 | LDDEPS="$LDDEPS" | |
1434 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1435 | LIB_SUFFIX="dylib" |
a653923f | 1436 | DEVMAPPER=yes |
8ce0cbda AK |
1437 | ODIRECT=no |
1438 | SELINUX=no | |
1439 | CLUSTER=none | |
1440 | FSADM=no ;; | |
1441 | esac | |
1442 | ||
80992638 | 1443 | ################################################################################ |
ad6254c5 | 1444 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1445 | do |
ad6254c5 | 1446 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1447 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1450 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1452 | else |
1453 | if test -n "$AWK"; then | |
1454 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1455 | else | |
ad6254c5 AK |
1456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1457 | for as_dir in $PATH | |
1458 | do | |
1459 | IFS=$as_save_IFS | |
1460 | test -z "$as_dir" && as_dir=. | |
1461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1463 | ac_cv_prog_AWK="$ac_prog" | |
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1465 | break 2 | |
1466 | fi | |
1467 | done | |
1468 | done | |
1469 | ||
795ca3e5 AK |
1470 | fi |
1471 | fi | |
ad6254c5 | 1472 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1473 | if test -n "$AWK"; then |
ad6254c5 AK |
1474 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1475 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1476 | else |
ad6254c5 AK |
1477 | echo "$as_me:$LINENO: result: no" >&5 |
1478 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1479 | fi |
1480 | ||
ad6254c5 AK |
1481 | test -n "$AWK" && break |
1482 | done | |
1483 | ||
1484 | ac_ext=c | |
1485 | ac_cpp='$CPP $CPPFLAGS' | |
1486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1489 | if test -n "$ac_tool_prefix"; then | |
1490 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1491 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1494 | if test "${ac_cv_prog_CC+set}" = set; then | |
1495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1496 | else | |
1497 | if test -n "$CC"; then | |
1498 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1499 | else | |
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1501 | for as_dir in $PATH | |
1502 | do | |
1503 | IFS=$as_save_IFS | |
1504 | test -z "$as_dir" && as_dir=. | |
1505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1507 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1509 | break 2 | |
1510 | fi | |
1511 | done | |
8106cdd5 AK |
1512 | done |
1513 | ||
ad6254c5 AK |
1514 | fi |
1515 | fi | |
1516 | CC=$ac_cv_prog_CC | |
1517 | if test -n "$CC"; then | |
1518 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1519 | echo "${ECHO_T}$CC" >&6 | |
1520 | else | |
1521 | echo "$as_me:$LINENO: result: no" >&5 | |
1522 | echo "${ECHO_T}no" >&6 | |
1523 | fi | |
1524 | ||
1525 | fi | |
1526 | if test -z "$ac_cv_prog_CC"; then | |
1527 | ac_ct_CC=$CC | |
1528 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1529 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1532 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1534 | else | |
1535 | if test -n "$ac_ct_CC"; then | |
1536 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1537 | else | |
1538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1539 | for as_dir in $PATH | |
1540 | do | |
1541 | IFS=$as_save_IFS | |
1542 | test -z "$as_dir" && as_dir=. | |
1543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1545 | ac_cv_prog_ac_ct_CC="gcc" | |
1546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1547 | break 2 | |
1548 | fi | |
1549 | done | |
1550 | done | |
1551 | ||
1552 | fi | |
1553 | fi | |
1554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1555 | if test -n "$ac_ct_CC"; then | |
1556 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1557 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1558 | else | |
1559 | echo "$as_me:$LINENO: result: no" >&5 | |
1560 | echo "${ECHO_T}no" >&6 | |
1561 | fi | |
1562 | ||
1563 | CC=$ac_ct_CC | |
1564 | else | |
1565 | CC="$ac_cv_prog_CC" | |
1566 | fi | |
1567 | ||
1568 | if test -z "$CC"; then | |
1569 | if test -n "$ac_tool_prefix"; then | |
1570 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1571 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1574 | if test "${ac_cv_prog_CC+set}" = set; then | |
1575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1576 | else |
1577 | if test -n "$CC"; then | |
1578 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1579 | else | |
ad6254c5 AK |
1580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1581 | for as_dir in $PATH | |
1582 | do | |
1583 | IFS=$as_save_IFS | |
1584 | test -z "$as_dir" && as_dir=. | |
1585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1587 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1589 | break 2 | |
1590 | fi | |
1591 | done | |
1592 | done | |
1593 | ||
8106cdd5 AK |
1594 | fi |
1595 | fi | |
ad6254c5 | 1596 | CC=$ac_cv_prog_CC |
8106cdd5 | 1597 | if test -n "$CC"; then |
ad6254c5 AK |
1598 | echo "$as_me:$LINENO: result: $CC" >&5 |
1599 | echo "${ECHO_T}$CC" >&6 | |
1600 | else | |
1601 | echo "$as_me:$LINENO: result: no" >&5 | |
1602 | echo "${ECHO_T}no" >&6 | |
1603 | fi | |
1604 | ||
1605 | fi | |
1606 | if test -z "$ac_cv_prog_CC"; then | |
1607 | ac_ct_CC=$CC | |
1608 | # Extract the first word of "cc", so it can be a program name with args. | |
1609 | set dummy cc; ac_word=$2 | |
1610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1612 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1614 | else | |
1615 | if test -n "$ac_ct_CC"; then | |
1616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1617 | else | |
1618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1619 | for as_dir in $PATH | |
1620 | do | |
1621 | IFS=$as_save_IFS | |
1622 | test -z "$as_dir" && as_dir=. | |
1623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1625 | ac_cv_prog_ac_ct_CC="cc" | |
1626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1627 | break 2 | |
1628 | fi | |
1629 | done | |
1630 | done | |
1631 | ||
1632 | fi | |
1633 | fi | |
1634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1635 | if test -n "$ac_ct_CC"; then | |
1636 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1637 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1638 | else | |
1639 | echo "$as_me:$LINENO: result: no" >&5 | |
1640 | echo "${ECHO_T}no" >&6 | |
1641 | fi | |
1642 | ||
1643 | CC=$ac_ct_CC | |
8106cdd5 | 1644 | else |
ad6254c5 | 1645 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1646 | fi |
1647 | ||
ad6254c5 | 1648 | fi |
795ca3e5 AK |
1649 | if test -z "$CC"; then |
1650 | # Extract the first word of "cc", so it can be a program name with args. | |
1651 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1654 | if test "${ac_cv_prog_CC+set}" = set; then | |
1655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1656 | else |
1657 | if test -n "$CC"; then | |
1658 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1659 | else | |
795ca3e5 | 1660 | ac_prog_rejected=no |
ad6254c5 AK |
1661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1662 | for as_dir in $PATH | |
1663 | do | |
1664 | IFS=$as_save_IFS | |
1665 | test -z "$as_dir" && as_dir=. | |
1666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1668 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1669 | ac_prog_rejected=yes | |
1670 | continue | |
1671 | fi | |
1672 | ac_cv_prog_CC="cc" | |
1673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1674 | break 2 | |
1675 | fi | |
1676 | done | |
1677 | done | |
1678 | ||
795ca3e5 AK |
1679 | if test $ac_prog_rejected = yes; then |
1680 | # We found a bogon in the path, so make sure we never use it. | |
1681 | set dummy $ac_cv_prog_CC | |
1682 | shift | |
ad6254c5 | 1683 | if test $# != 0; then |
795ca3e5 AK |
1684 | # We chose a different compiler from the bogus one. |
1685 | # However, it has the same basename, so the bogon will be chosen | |
1686 | # first if we set CC to just the basename; use the full file name. | |
1687 | shift | |
ad6254c5 | 1688 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1689 | fi |
1690 | fi | |
1691 | fi | |
1692 | fi | |
ad6254c5 | 1693 | CC=$ac_cv_prog_CC |
795ca3e5 | 1694 | if test -n "$CC"; then |
ad6254c5 AK |
1695 | echo "$as_me:$LINENO: result: $CC" >&5 |
1696 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1697 | else |
ad6254c5 AK |
1698 | echo "$as_me:$LINENO: result: no" >&5 |
1699 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1700 | fi |
1701 | ||
ad6254c5 AK |
1702 | fi |
1703 | if test -z "$CC"; then | |
1704 | if test -n "$ac_tool_prefix"; then | |
1705 | for ac_prog in cl | |
1706 | do | |
1707 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1708 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1711 | if test "${ac_cv_prog_CC+set}" = set; then | |
1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1713 | else |
1714 | if test -n "$CC"; then | |
1715 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1716 | else | |
ad6254c5 AK |
1717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1718 | for as_dir in $PATH | |
1719 | do | |
1720 | IFS=$as_save_IFS | |
1721 | test -z "$as_dir" && as_dir=. | |
1722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1724 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1726 | break 2 | |
1727 | fi | |
1728 | done | |
1729 | done | |
1730 | ||
795ca3e5 AK |
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 | 1740 | fi |
ad6254c5 AK |
1741 | |
1742 | test -n "$CC" && break | |
1743 | done | |
1744 | fi | |
1745 | if test -z "$CC"; then | |
1746 | ac_ct_CC=$CC | |
1747 | for ac_prog in cl | |
1748 | do | |
1749 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1750 | set dummy $ac_prog; ac_word=$2 | |
1751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1753 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1755 | else | |
1756 | if test -n "$ac_ct_CC"; then | |
1757 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1758 | else | |
1759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1760 | for as_dir in $PATH | |
1761 | do | |
1762 | IFS=$as_save_IFS | |
1763 | test -z "$as_dir" && as_dir=. | |
1764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1766 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1768 | break 2 | |
795ca3e5 | 1769 | fi |
ad6254c5 AK |
1770 | done |
1771 | done | |
1772 | ||
1773 | fi | |
1774 | fi | |
1775 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1776 | if test -n "$ac_ct_CC"; then | |
1777 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1778 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1779 | else | |
1780 | echo "$as_me:$LINENO: result: no" >&5 | |
1781 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1782 | fi |
1783 | ||
ad6254c5 AK |
1784 | test -n "$ac_ct_CC" && break |
1785 | done | |
795ca3e5 | 1786 | |
ad6254c5 AK |
1787 | CC=$ac_ct_CC |
1788 | fi | |
1789 | ||
1790 | fi | |
1791 | ||
1792 | ||
1793 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1794 | See \`config.log' for more details." >&5 | |
1795 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1796 | See \`config.log' for more details." >&2;} | |
1797 | { (exit 1); exit 1; }; } | |
1798 | ||
1799 | # Provide some information about the compiler. | |
1800 | echo "$as_me:$LINENO:" \ | |
1801 | "checking for C compiler version" >&5 | |
1802 | ac_compiler=`set X $ac_compile; echo $2` | |
1803 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1804 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1805 | ac_status=$? | |
1806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1807 | (exit $ac_status); } | |
1808 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1809 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1810 | ac_status=$? | |
1811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1812 | (exit $ac_status); } | |
1813 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1814 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1815 | ac_status=$? | |
1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1817 | (exit $ac_status); } | |
1818 | ||
1819 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 1820 | #line $LINENO "configure" |
ad6254c5 AK |
1821 | /* confdefs.h. */ |
1822 | _ACEOF | |
1823 | cat confdefs.h >>conftest.$ac_ext | |
1824 | cat >>conftest.$ac_ext <<_ACEOF | |
1825 | /* end confdefs.h. */ | |
1826 | ||
1827 | int | |
1828 | main () | |
1829 | { | |
1830 | ||
1831 | ; | |
1832 | return 0; | |
1833 | } | |
1834 | _ACEOF | |
1835 | ac_clean_files_save=$ac_clean_files | |
1836 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1837 | # Try to create an executable without -o first, disregard a.out. | |
1838 | # It will help us diagnose broken compilers, and finding out an intuition | |
1839 | # of exeext. | |
c1c065a3 AK |
1840 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
1841 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
ad6254c5 AK |
1842 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1843 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1844 | (eval $ac_link_default) 2>&5 | |
1845 | ac_status=$? | |
1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1847 | (exit $ac_status); }; then | |
1848 | # Find the output, starting from the most likely. This scheme is | |
1849 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1850 | # resort. | |
1851 | ||
1852 | # Be careful to initialize this variable, since it used to be cached. | |
1853 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1854 | ac_cv_exeext= | |
1855 | # b.out is created by i960 compilers. | |
1856 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1857 | do | |
1858 | test -f "$ac_file" || continue | |
1859 | case $ac_file in | |
1860 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
c1c065a3 | 1861 | ;; |
ad6254c5 | 1862 | conftest.$ac_ext ) |
c1c065a3 AK |
1863 | # This is the source file. |
1864 | ;; | |
ad6254c5 | 1865 | [ab].out ) |
c1c065a3 AK |
1866 | # We found the default executable, but exeext='' is most |
1867 | # certainly right. | |
1868 | break;; | |
ad6254c5 | 1869 | *.* ) |
c1c065a3 AK |
1870 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1871 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1872 | # but it would be cool to find out if it's true. Does anybody | |
1873 | # maintain Libtool? --akim. | |
1874 | export ac_cv_exeext | |
1875 | break;; | |
ad6254c5 | 1876 | * ) |
c1c065a3 | 1877 | break;; |
ad6254c5 AK |
1878 | esac |
1879 | done | |
1880 | else | |
1881 | echo "$as_me: failed program was:" >&5 | |
1882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1883 | ||
1884 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1885 | See \`config.log' for more details." >&5 | |
1886 | echo "$as_me: error: C compiler cannot create executables | |
1887 | See \`config.log' for more details." >&2;} | |
1888 | { (exit 77); exit 77; }; } | |
1889 | fi | |
1890 | ||
1891 | ac_exeext=$ac_cv_exeext | |
1892 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1893 | echo "${ECHO_T}$ac_file" >&6 | |
1894 | ||
1895 | # Check the compiler produces executables we can run. If not, either | |
1896 | # the compiler is broken, or we cross compile. | |
1897 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1898 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1899 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1900 | # If not cross compiling, check that we can run a simple program. | |
1901 | if test "$cross_compiling" != yes; then | |
1902 | if { ac_try='./$ac_file' | |
1903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1904 | (eval $ac_try) 2>&5 | |
1905 | ac_status=$? | |
1906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1907 | (exit $ac_status); }; }; then | |
1908 | cross_compiling=no | |
795ca3e5 | 1909 | else |
ad6254c5 AK |
1910 | if test "$cross_compiling" = maybe; then |
1911 | cross_compiling=yes | |
1912 | else | |
1913 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1914 | If you meant to cross compile, use \`--host'. | |
1915 | See \`config.log' for more details." >&5 | |
1916 | echo "$as_me: error: cannot run C compiled programs. | |
1917 | If you meant to cross compile, use \`--host'. | |
1918 | See \`config.log' for more details." >&2;} | |
1919 | { (exit 1); exit 1; }; } | |
1920 | fi | |
795ca3e5 | 1921 | fi |
80992638 | 1922 | fi |
ad6254c5 AK |
1923 | echo "$as_me:$LINENO: result: yes" >&5 |
1924 | echo "${ECHO_T}yes" >&6 | |
1925 | ||
1926 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1927 | ac_clean_files=$ac_clean_files_save | |
1928 | # Check the compiler produces executables we can run. If not, either | |
1929 | # the compiler is broken, or we cross compile. | |
1930 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1931 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1932 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1933 | echo "${ECHO_T}$cross_compiling" >&6 | |
1934 | ||
1935 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1936 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1938 | (eval $ac_link) 2>&5 | |
1939 | ac_status=$? | |
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1941 | (exit $ac_status); }; then | |
1942 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1943 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1944 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1945 | # `rm'. | |
1946 | for ac_file in conftest.exe conftest conftest.*; do | |
1947 | test -f "$ac_file" || continue | |
1948 | case $ac_file in | |
1949 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1950 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
c1c065a3 AK |
1951 | export ac_cv_exeext |
1952 | break;; | |
ad6254c5 AK |
1953 | * ) break;; |
1954 | esac | |
1955 | done | |
80992638 | 1956 | else |
ad6254c5 AK |
1957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1958 | See \`config.log' for more details." >&5 | |
1959 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1960 | See \`config.log' for more details." >&2;} | |
1961 | { (exit 1); exit 1; }; } | |
1962 | fi | |
1963 | ||
1964 | rm -f conftest$ac_cv_exeext | |
1965 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1966 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1967 | ||
1968 | rm -f conftest.$ac_ext | |
1969 | EXEEXT=$ac_cv_exeext | |
1970 | ac_exeext=$EXEEXT | |
1971 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1972 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1973 | if test "${ac_cv_objext+set}" = set; then | |
1974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 1975 | else |
ad6254c5 | 1976 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 1977 | #line $LINENO "configure" |
ad6254c5 AK |
1978 | /* confdefs.h. */ |
1979 | _ACEOF | |
1980 | cat confdefs.h >>conftest.$ac_ext | |
1981 | cat >>conftest.$ac_ext <<_ACEOF | |
1982 | /* end confdefs.h. */ | |
1983 | ||
1984 | int | |
1985 | main () | |
1986 | { | |
1987 | ||
1988 | ; | |
1989 | return 0; | |
1990 | } | |
1991 | _ACEOF | |
1992 | rm -f conftest.o conftest.obj | |
1993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1994 | (eval $ac_compile) 2>&5 | |
1995 | ac_status=$? | |
1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1997 | (exit $ac_status); }; then | |
1998 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1999 | case $ac_file in | |
2000 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2001 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2002 | break;; | |
2003 | esac | |
2004 | done | |
2005 | else | |
2006 | echo "$as_me: failed program was:" >&5 | |
2007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2008 | ||
2009 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2010 | See \`config.log' for more details." >&5 | |
2011 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2012 | See \`config.log' for more details." >&2;} | |
2013 | { (exit 1); exit 1; }; } | |
2014 | fi | |
2015 | ||
2016 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2017 | fi | |
2018 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2019 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2020 | OBJEXT=$ac_cv_objext | |
2021 | ac_objext=$OBJEXT | |
2022 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2023 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2024 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2026 | else | |
2027 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2028 | #line $LINENO "configure" |
ad6254c5 AK |
2029 | /* confdefs.h. */ |
2030 | _ACEOF | |
2031 | cat confdefs.h >>conftest.$ac_ext | |
2032 | cat >>conftest.$ac_ext <<_ACEOF | |
2033 | /* end confdefs.h. */ | |
2034 | ||
2035 | int | |
2036 | main () | |
2037 | { | |
2038 | #ifndef __GNUC__ | |
2039 | choke me | |
2040 | #endif | |
80992638 | 2041 | |
ad6254c5 AK |
2042 | ; |
2043 | return 0; | |
2044 | } | |
2045 | _ACEOF | |
2046 | rm -f conftest.$ac_objext | |
2047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2048 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2049 | ac_status=$? |
2050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2051 | (exit $ac_status); } && | |
c1c065a3 | 2052 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2054 | (eval $ac_try) 2>&5 | |
2055 | ac_status=$? | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); }; }; then | |
2058 | ac_compiler_gnu=yes | |
80992638 | 2059 | else |
ad6254c5 AK |
2060 | echo "$as_me: failed program was:" >&5 |
2061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2062 | ||
2063 | ac_compiler_gnu=no | |
8106cdd5 | 2064 | fi |
c1c065a3 | 2065 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2066 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2067 | |
ad6254c5 AK |
2068 | fi |
2069 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2070 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2071 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2072 | ac_test_CFLAGS=${CFLAGS+set} | |
2073 | ac_save_CFLAGS=$CFLAGS | |
2074 | CFLAGS="-g" | |
2075 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2076 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2077 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2079 | else |
ad6254c5 | 2080 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 2081 | #line $LINENO "configure" |
ad6254c5 AK |
2082 | /* confdefs.h. */ |
2083 | _ACEOF | |
2084 | cat confdefs.h >>conftest.$ac_ext | |
2085 | cat >>conftest.$ac_ext <<_ACEOF | |
2086 | /* end confdefs.h. */ | |
2087 | ||
2088 | int | |
2089 | main () | |
2090 | { | |
2091 | ||
2092 | ; | |
2093 | return 0; | |
2094 | } | |
2095 | _ACEOF | |
2096 | rm -f conftest.$ac_objext | |
2097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2098 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2099 | ac_status=$? |
2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2101 | (exit $ac_status); } && | |
c1c065a3 | 2102 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2104 | (eval $ac_try) 2>&5 | |
2105 | ac_status=$? | |
2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2107 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2108 | ac_cv_prog_cc_g=yes |
2109 | else | |
ad6254c5 AK |
2110 | echo "$as_me: failed program was:" >&5 |
2111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2112 | |
ad6254c5 | 2113 | ac_cv_prog_cc_g=no |
8106cdd5 | 2114 | fi |
c1c065a3 | 2115 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2116 | fi |
2117 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2118 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2119 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2120 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2121 | elif test $ac_cv_prog_cc_g = yes; then |
2122 | if test "$GCC" = yes; then | |
2123 | CFLAGS="-g -O2" | |
2124 | else | |
2125 | CFLAGS="-g" | |
2126 | fi | |
2127 | else | |
2128 | if test "$GCC" = yes; then | |
2129 | CFLAGS="-O2" | |
2130 | else | |
2131 | CFLAGS= | |
2132 | fi | |
2133 | fi | |
ad6254c5 AK |
2134 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2135 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2136 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2138 | else | |
2139 | ac_cv_prog_cc_stdc=no | |
2140 | ac_save_CC=$CC | |
2141 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2142 | #line $LINENO "configure" |
ad6254c5 AK |
2143 | /* confdefs.h. */ |
2144 | _ACEOF | |
2145 | cat confdefs.h >>conftest.$ac_ext | |
2146 | cat >>conftest.$ac_ext <<_ACEOF | |
2147 | /* end confdefs.h. */ | |
2148 | #include <stdarg.h> | |
2149 | #include <stdio.h> | |
2150 | #include <sys/types.h> | |
2151 | #include <sys/stat.h> | |
2152 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2153 | struct buf { int x; }; | |
2154 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2155 | static char *e (p, i) | |
2156 | char **p; | |
2157 | int i; | |
2158 | { | |
2159 | return p[i]; | |
2160 | } | |
2161 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2162 | { | |
2163 | char *s; | |
2164 | va_list v; | |
2165 | va_start (v,p); | |
2166 | s = g (p, va_arg (v,int)); | |
2167 | va_end (v); | |
2168 | return s; | |
2169 | } | |
2170 | int test (int i, double x); | |
2171 | struct s1 {int (*f) (int a);}; | |
2172 | struct s2 {int (*f) (double a);}; | |
2173 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2174 | int argc; | |
2175 | char **argv; | |
2176 | int | |
2177 | main () | |
2178 | { | |
2179 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2180 | ; | |
2181 | return 0; | |
2182 | } | |
2183 | _ACEOF | |
2184 | # Don't try gcc -ansi; that turns off useful extensions and | |
2185 | # breaks some systems' header files. | |
2186 | # AIX -qlanglvl=ansi | |
2187 | # Ultrix and OSF/1 -std1 | |
2188 | # HP-UX 10.20 and later -Ae | |
2189 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2190 | # SVR4 -Xc -D__EXTENSIONS__ | |
2191 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2192 | do | |
2193 | CC="$ac_save_CC $ac_arg" | |
2194 | rm -f conftest.$ac_objext | |
2195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2196 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2197 | ac_status=$? |
2198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2199 | (exit $ac_status); } && | |
c1c065a3 | 2200 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2202 | (eval $ac_try) 2>&5 | |
2203 | ac_status=$? | |
2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2205 | (exit $ac_status); }; }; then | |
2206 | ac_cv_prog_cc_stdc=$ac_arg | |
2207 | break | |
2208 | else | |
2209 | echo "$as_me: failed program was:" >&5 | |
2210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2211 | ||
2212 | fi | |
c1c065a3 | 2213 | rm -f conftest.$ac_objext |
ad6254c5 AK |
2214 | done |
2215 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2216 | CC=$ac_save_CC | |
2217 | ||
2218 | fi | |
2219 | ||
2220 | case "x$ac_cv_prog_cc_stdc" in | |
2221 | x|xno) | |
2222 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2223 | echo "${ECHO_T}none needed" >&6 ;; | |
2224 | *) | |
2225 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2226 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2227 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2228 | esac | |
2229 | ||
2230 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2231 | # in C++ we need to declare it. In case someone uses the same compiler | |
2232 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2233 | # the declaration of exit, since it's the most demanding environment. | |
2234 | cat >conftest.$ac_ext <<_ACEOF | |
2235 | #ifndef __cplusplus | |
2236 | choke me | |
2237 | #endif | |
2238 | _ACEOF | |
2239 | rm -f conftest.$ac_objext | |
2240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2241 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2242 | ac_status=$? |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); } && | |
c1c065a3 | 2245 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2247 | (eval $ac_try) 2>&5 | |
2248 | ac_status=$? | |
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2250 | (exit $ac_status); }; }; then | |
2251 | for ac_declaration in \ | |
c1c065a3 AK |
2252 | ''\ |
2253 | '#include <stdlib.h>' \ | |
ad6254c5 AK |
2254 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2255 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2256 | 'extern "C" void exit (int) throw ();' \ | |
2257 | 'extern "C" void exit (int);' \ | |
2258 | 'void exit (int);' | |
2259 | do | |
2260 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2261 | #line $LINENO "configure" |
ad6254c5 AK |
2262 | /* confdefs.h. */ |
2263 | _ACEOF | |
2264 | cat confdefs.h >>conftest.$ac_ext | |
2265 | cat >>conftest.$ac_ext <<_ACEOF | |
2266 | /* end confdefs.h. */ | |
5c7fc7c4 | 2267 | #include <stdlib.h> |
c1c065a3 | 2268 | $ac_declaration |
ad6254c5 AK |
2269 | int |
2270 | main () | |
2271 | { | |
2272 | exit (42); | |
2273 | ; | |
2274 | return 0; | |
2275 | } | |
2276 | _ACEOF | |
2277 | rm -f conftest.$ac_objext | |
2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2279 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2280 | ac_status=$? |
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2282 | (exit $ac_status); } && | |
c1c065a3 | 2283 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2285 | (eval $ac_try) 2>&5 | |
2286 | ac_status=$? | |
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2288 | (exit $ac_status); }; }; then | |
2289 | : | |
2290 | else | |
2291 | echo "$as_me: failed program was:" >&5 | |
2292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2293 | ||
2294 | continue | |
2295 | fi | |
c1c065a3 | 2296 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2297 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 2298 | #line $LINENO "configure" |
ad6254c5 AK |
2299 | /* confdefs.h. */ |
2300 | _ACEOF | |
2301 | cat confdefs.h >>conftest.$ac_ext | |
2302 | cat >>conftest.$ac_ext <<_ACEOF | |
2303 | /* end confdefs.h. */ | |
2304 | $ac_declaration | |
2305 | int | |
2306 | main () | |
2307 | { | |
2308 | exit (42); | |
2309 | ; | |
2310 | return 0; | |
2311 | } | |
2312 | _ACEOF | |
2313 | rm -f conftest.$ac_objext | |
2314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2315 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2316 | ac_status=$? |
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2318 | (exit $ac_status); } && | |
c1c065a3 | 2319 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2321 | (eval $ac_try) 2>&5 | |
2322 | ac_status=$? | |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); }; }; then | |
2325 | break | |
2326 | else | |
2327 | echo "$as_me: failed program was:" >&5 | |
2328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2329 | ||
2330 | fi | |
c1c065a3 | 2331 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2332 | done |
2333 | rm -f conftest* | |
2334 | if test -n "$ac_declaration"; then | |
2335 | echo '#ifdef __cplusplus' >>confdefs.h | |
2336 | echo $ac_declaration >>confdefs.h | |
2337 | echo '#endif' >>confdefs.h | |
2338 | fi | |
2339 | ||
2340 | else | |
2341 | echo "$as_me: failed program was:" >&5 | |
2342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2343 | ||
2344 | fi | |
c1c065a3 | 2345 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2346 | ac_ext=c |
2347 | ac_cpp='$CPP $CPPFLAGS' | |
2348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2351 | |
2352 | # Find a good install program. We prefer a C program (faster), | |
2353 | # so one script is as good as another. But avoid the broken or | |
2354 | # incompatible versions: | |
2355 | # SysV /etc/install, /usr/sbin/install | |
2356 | # SunOS /usr/etc/install | |
2357 | # IRIX /sbin/install | |
2358 | # AIX /bin/install | |
ad6254c5 | 2359 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2360 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2361 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2362 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2363 | # ./install, which can be erroneously created by make from ./install.sh. | |
ad6254c5 AK |
2364 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2365 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2366 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2367 | if test "${ac_cv_path_install+set}" = set; then |
2368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2369 | else | |
2370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2371 | for as_dir in $PATH | |
2372 | do | |
2373 | IFS=$as_save_IFS | |
2374 | test -z "$as_dir" && as_dir=. | |
2375 | # Account for people who put trailing slashes in PATH elements. | |
2376 | case $as_dir/ in | |
2377 | ./ | .// | /cC/* | \ | |
2378 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2379 | /usr/ucb/* ) ;; | |
2380 | *) | |
2381 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2382 | # Don't use installbsd from OSF since it installs stuff as root | |
2383 | # by default. | |
2384 | for ac_prog in ginstall scoinst install; do | |
2385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c1c065a3 AK |
2386 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2387 | if test $ac_prog = install && | |
2388 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2389 | # AIX install. It has an incompatible calling convention. | |
2390 | : | |
2391 | elif test $ac_prog = install && | |
2392 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2393 | # program-specific install script used by HP pwplus--don't use. | |
2394 | : | |
2395 | else | |
2396 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2397 | break 3 | |
2398 | fi | |
2399 | fi | |
795ca3e5 | 2400 | done |
ad6254c5 AK |
2401 | done |
2402 | ;; | |
2403 | esac | |
2404 | done | |
2405 | ||
795ca3e5 AK |
2406 | |
2407 | fi | |
2408 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2409 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2410 | else |
2411 | # As a last resort, use the slow shell script. We don't cache a | |
2412 | # path for INSTALL within a source directory, because that will | |
2413 | # break other packages using the cache if that directory is | |
2414 | # removed, or if the path is relative. | |
ad6254c5 | 2415 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2416 | fi |
2417 | fi | |
ad6254c5 AK |
2418 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2419 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2420 | |
2421 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2422 | # It thinks the first close brace ends the variable substitution. | |
2423 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2424 | ||
ad6254c5 | 2425 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2426 | |
2427 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2428 | ||
ad6254c5 AK |
2429 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2430 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2431 | LN_S=$as_ln_s | |
2432 | if test "$LN_S" = "ln -s"; then | |
2433 | echo "$as_me:$LINENO: result: yes" >&5 | |
2434 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2435 | else |
ad6254c5 AK |
2436 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2437 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2438 | fi |
2439 | ||
ad6254c5 AK |
2440 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2441 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
c1c065a3 | 2442 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
ad6254c5 AK |
2443 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2445 | else |
ad6254c5 | 2446 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2447 | all: |
ad6254c5 AK |
2448 | @echo 'ac_maketemp="$(MAKE)"' |
2449 | _ACEOF | |
795ca3e5 | 2450 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2451 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2452 | if test -n "$ac_maketemp"; then |
2453 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2454 | else | |
2455 | eval ac_cv_prog_make_${ac_make}_set=no | |
2456 | fi | |
ad6254c5 | 2457 | rm -f conftest.make |
795ca3e5 AK |
2458 | fi |
2459 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2460 | echo "$as_me:$LINENO: result: yes" >&5 |
2461 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2462 | SET_MAKE= |
2463 | else | |
ad6254c5 AK |
2464 | echo "$as_me:$LINENO: result: no" >&5 |
2465 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2466 | SET_MAKE="MAKE=${MAKE-make}" |
2467 | fi | |
2468 | ||
ad6254c5 AK |
2469 | if test -n "$ac_tool_prefix"; then |
2470 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2471 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2474 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2476 | else |
2477 | if test -n "$RANLIB"; then | |
2478 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2479 | else | |
ad6254c5 AK |
2480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2481 | for as_dir in $PATH | |
2482 | do | |
2483 | IFS=$as_save_IFS | |
2484 | test -z "$as_dir" && as_dir=. | |
2485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2487 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2489 | break 2 | |
2490 | fi | |
2491 | done | |
2492 | done | |
2493 | ||
795ca3e5 AK |
2494 | fi |
2495 | fi | |
ad6254c5 | 2496 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2497 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2498 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2499 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2500 | else |
ad6254c5 AK |
2501 | echo "$as_me:$LINENO: result: no" >&5 |
2502 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2503 | fi |
2504 | ||
795ca3e5 | 2505 | fi |
ad6254c5 AK |
2506 | if test -z "$ac_cv_prog_RANLIB"; then |
2507 | ac_ct_RANLIB=$RANLIB | |
2508 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2509 | set dummy ranlib; ac_word=$2 | |
2510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2512 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2514 | else |
ad6254c5 AK |
2515 | if test -n "$ac_ct_RANLIB"; then |
2516 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2517 | else | |
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2519 | for as_dir in $PATH | |
2520 | do | |
2521 | IFS=$as_save_IFS | |
2522 | test -z "$as_dir" && as_dir=. | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2525 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2527 | break 2 | |
2528 | fi | |
2529 | done | |
795ca3e5 | 2530 | done |
8106cdd5 | 2531 | |
ad6254c5 | 2532 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2533 | fi |
80992638 | 2534 | fi |
ad6254c5 AK |
2535 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2536 | if test -n "$ac_ct_RANLIB"; then | |
2537 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2538 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2539 | else |
ad6254c5 AK |
2540 | echo "$as_me:$LINENO: result: no" >&5 |
2541 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2542 | fi |
8106cdd5 | 2543 | |
ad6254c5 | 2544 | RANLIB=$ac_ct_RANLIB |
80992638 | 2545 | else |
ad6254c5 | 2546 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2547 | fi |
795ca3e5 | 2548 | |
795ca3e5 | 2549 | |
ad6254c5 AK |
2550 | ################################################################################ |
2551 | ||
2552 | ||
2553 | ||
2554 | ||
2555 | ||
2556 | ||
2557 | ac_header_dirent=no | |
2558 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2559 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2560 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2561 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2564 | else |
ad6254c5 | 2565 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 2566 | #line $LINENO "configure" |
ad6254c5 AK |
2567 | /* confdefs.h. */ |
2568 | _ACEOF | |
2569 | cat confdefs.h >>conftest.$ac_ext | |
2570 | cat >>conftest.$ac_ext <<_ACEOF | |
2571 | /* end confdefs.h. */ | |
2572 | #include <sys/types.h> | |
2573 | #include <$ac_hdr> | |
2574 | ||
2575 | int | |
2576 | main () | |
2577 | { | |
2578 | if ((DIR *) 0) | |
2579 | return 0; | |
2580 | ; | |
2581 | return 0; | |
2582 | } | |
2583 | _ACEOF | |
2584 | rm -f conftest.$ac_objext | |
2585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 2586 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
2587 | ac_status=$? |
2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2589 | (exit $ac_status); } && | |
c1c065a3 | 2590 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2592 | (eval $ac_try) 2>&5 | |
2593 | ac_status=$? | |
2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2595 | (exit $ac_status); }; }; then | |
2596 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2597 | else |
ad6254c5 AK |
2598 | echo "$as_me: failed program was:" >&5 |
2599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2600 | ||
2601 | eval "$as_ac_Header=no" | |
795ca3e5 | 2602 | fi |
c1c065a3 | 2603 | rm -f conftest.$ac_objext conftest.$ac_ext |
80992638 | 2604 | fi |
ad6254c5 AK |
2605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2607 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2608 | cat >>confdefs.h <<_ACEOF | |
2609 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2610 | _ACEOF | |
2611 | ||
2612 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2613 | fi |
8106cdd5 | 2614 | |
ad6254c5 AK |
2615 | done |
2616 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2617 | if test $ac_header_dirent = dirent.h; then | |
2618 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2619 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2620 | if test "${ac_cv_search_opendir+set}" = set; then | |
2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2622 | else |
ad6254c5 AK |
2623 | ac_func_search_save_LIBS=$LIBS |
2624 | ac_cv_search_opendir=no | |
2625 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2626 | #line $LINENO "configure" |
ad6254c5 AK |
2627 | /* confdefs.h. */ |
2628 | _ACEOF | |
2629 | cat confdefs.h >>conftest.$ac_ext | |
2630 | cat >>conftest.$ac_ext <<_ACEOF | |
2631 | /* end confdefs.h. */ | |
2632 | ||
2633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2634 | #ifdef __cplusplus | |
2635 | extern "C" | |
2636 | #endif | |
2637 | /* We use char because int might match the return type of a gcc2 | |
2638 | builtin and then its argument prototype would still apply. */ | |
2639 | char opendir (); | |
2640 | int | |
2641 | main () | |
2642 | { | |
2643 | opendir (); | |
2644 | ; | |
2645 | return 0; | |
2646 | } | |
2647 | _ACEOF | |
2648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 2650 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
2651 | ac_status=$? |
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2653 | (exit $ac_status); } && | |
c1c065a3 | 2654 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
2655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2656 | (eval $ac_try) 2>&5 | |
2657 | ac_status=$? | |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2659 | (exit $ac_status); }; }; then | |
2660 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2661 | else |
ad6254c5 AK |
2662 | echo "$as_me: failed program was:" >&5 |
2663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2664 | ||
2665 | fi | |
c1c065a3 | 2666 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
2667 | if test "$ac_cv_search_opendir" = no; then |
2668 | for ac_lib in dir; do | |
2669 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2670 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2671 | #line $LINENO "configure" |
ad6254c5 AK |
2672 | /* confdefs.h. */ |
2673 | _ACEOF | |
2674 | cat confdefs.h >>conftest.$ac_ext | |
2675 | cat >>conftest.$ac_ext <<_ACEOF | |
2676 | /* end confdefs.h. */ | |
795ca3e5 | 2677 | |
ad6254c5 AK |
2678 | /* Override any gcc2 internal prototype to avoid an error. */ |
2679 | #ifdef __cplusplus | |
2680 | extern "C" | |
2681 | #endif | |
2682 | /* We use char because int might match the return type of a gcc2 | |
2683 | builtin and then its argument prototype would still apply. */ | |
2684 | char opendir (); | |
2685 | int | |
2686 | main () | |
2687 | { | |
2688 | opendir (); | |
2689 | ; | |
2690 | return 0; | |
2691 | } | |
2692 | _ACEOF | |
2693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 2695 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
2696 | ac_status=$? |
2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2698 | (exit $ac_status); } && | |
c1c065a3 | 2699 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
2700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2701 | (eval $ac_try) 2>&5 | |
2702 | ac_status=$? | |
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2704 | (exit $ac_status); }; }; then | |
2705 | ac_cv_search_opendir="-l$ac_lib" | |
2706 | break | |
795ca3e5 | 2707 | else |
ad6254c5 AK |
2708 | echo "$as_me: failed program was:" >&5 |
2709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2710 | |
2711 | fi | |
c1c065a3 | 2712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 2713 | done |
795ca3e5 | 2714 | fi |
ad6254c5 AK |
2715 | LIBS=$ac_func_search_save_LIBS |
2716 | fi | |
2717 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2718 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2719 | if test "$ac_cv_search_opendir" != no; then | |
2720 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2721 | |
2722 | fi | |
2723 | ||
795ca3e5 | 2724 | else |
ad6254c5 AK |
2725 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2726 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2727 | if test "${ac_cv_search_opendir+set}" = set; then | |
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2729 | else | |
2730 | ac_func_search_save_LIBS=$LIBS | |
2731 | ac_cv_search_opendir=no | |
2732 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2733 | #line $LINENO "configure" |
ad6254c5 AK |
2734 | /* confdefs.h. */ |
2735 | _ACEOF | |
2736 | cat confdefs.h >>conftest.$ac_ext | |
2737 | cat >>conftest.$ac_ext <<_ACEOF | |
2738 | /* end confdefs.h. */ | |
80992638 | 2739 | |
ad6254c5 AK |
2740 | /* Override any gcc2 internal prototype to avoid an error. */ |
2741 | #ifdef __cplusplus | |
2742 | extern "C" | |
2743 | #endif | |
2744 | /* We use char because int might match the return type of a gcc2 | |
2745 | builtin and then its argument prototype would still apply. */ | |
2746 | char opendir (); | |
2747 | int | |
2748 | main () | |
2749 | { | |
2750 | opendir (); | |
2751 | ; | |
2752 | return 0; | |
2753 | } | |
2754 | _ACEOF | |
2755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 2757 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
2758 | ac_status=$? |
2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2760 | (exit $ac_status); } && | |
c1c065a3 | 2761 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
2762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2763 | (eval $ac_try) 2>&5 | |
2764 | ac_status=$? | |
2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2766 | (exit $ac_status); }; }; then | |
2767 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2768 | else |
ad6254c5 AK |
2769 | echo "$as_me: failed program was:" >&5 |
2770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2771 | ||
2772 | fi | |
c1c065a3 | 2773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
2774 | if test "$ac_cv_search_opendir" = no; then |
2775 | for ac_lib in x; do | |
2776 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2777 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2778 | #line $LINENO "configure" |
ad6254c5 AK |
2779 | /* confdefs.h. */ |
2780 | _ACEOF | |
2781 | cat confdefs.h >>conftest.$ac_ext | |
2782 | cat >>conftest.$ac_ext <<_ACEOF | |
2783 | /* end confdefs.h. */ | |
2784 | ||
2785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2786 | #ifdef __cplusplus | |
2787 | extern "C" | |
2788 | #endif | |
2789 | /* We use char because int might match the return type of a gcc2 | |
2790 | builtin and then its argument prototype would still apply. */ | |
2791 | char opendir (); | |
2792 | int | |
2793 | main () | |
2794 | { | |
2795 | opendir (); | |
2796 | ; | |
2797 | return 0; | |
2798 | } | |
2799 | _ACEOF | |
2800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 2802 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
2803 | ac_status=$? |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2805 | (exit $ac_status); } && | |
c1c065a3 | 2806 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
2807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2808 | (eval $ac_try) 2>&5 | |
2809 | ac_status=$? | |
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2811 | (exit $ac_status); }; }; then | |
2812 | ac_cv_search_opendir="-l$ac_lib" | |
2813 | break | |
2814 | else | |
2815 | echo "$as_me: failed program was:" >&5 | |
2816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2817 | |
795ca3e5 | 2818 | fi |
c1c065a3 | 2819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
2820 | done |
2821 | fi | |
2822 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 2823 | fi |
ad6254c5 AK |
2824 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
2825 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2826 | if test "$ac_cv_search_opendir" != no; then | |
2827 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 2828 | |
ad6254c5 | 2829 | fi |
8106cdd5 | 2830 | |
795ca3e5 | 2831 | fi |
8106cdd5 | 2832 | |
ad6254c5 AK |
2833 | ac_ext=c |
2834 | ac_cpp='$CPP $CPPFLAGS' | |
2835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2838 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2839 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2840 | # On Suns, sometimes $CPP names a directory. | |
2841 | if test -n "$CPP" && test -d "$CPP"; then | |
2842 | CPP= | |
2843 | fi | |
2844 | if test -z "$CPP"; then | |
2845 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2847 | else | |
2848 | # Double quotes because CPP needs to be expanded | |
2849 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2850 | do | |
2851 | ac_preproc_ok=false | |
2852 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 2853 | do |
ad6254c5 AK |
2854 | # Use a header file that comes with gcc, so configuring glibc |
2855 | # with a fresh cross-compiler works. | |
2856 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2857 | # <limits.h> exists even on freestanding compilers. | |
2858 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2859 | # not just through cpp. "Syntax error" is here to catch this case. | |
2860 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2861 | #line $LINENO "configure" |
ad6254c5 AK |
2862 | /* confdefs.h. */ |
2863 | _ACEOF | |
2864 | cat confdefs.h >>conftest.$ac_ext | |
2865 | cat >>conftest.$ac_ext <<_ACEOF | |
2866 | /* end confdefs.h. */ | |
2867 | #ifdef __STDC__ | |
2868 | # include <limits.h> | |
2869 | #else | |
2870 | # include <assert.h> | |
2871 | #endif | |
c1c065a3 | 2872 | Syntax error |
ad6254c5 AK |
2873 | _ACEOF |
2874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2876 | ac_status=$? | |
2877 | grep -v '^ *+' conftest.er1 >conftest.err | |
2878 | rm -f conftest.er1 | |
2879 | cat conftest.err >&5 | |
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2881 | (exit $ac_status); } >/dev/null; then | |
2882 | if test -s conftest.err; then | |
2883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2884 | else | |
2885 | ac_cpp_err= | |
2886 | fi | |
2887 | else | |
2888 | ac_cpp_err=yes | |
8106cdd5 | 2889 | fi |
ad6254c5 AK |
2890 | if test -z "$ac_cpp_err"; then |
2891 | : | |
2892 | else | |
2893 | echo "$as_me: failed program was:" >&5 | |
2894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2895 | ||
2896 | # Broken: fails on valid input. | |
2897 | continue | |
2898 | fi | |
2899 | rm -f conftest.err conftest.$ac_ext | |
2900 | ||
2901 | # OK, works on sane cases. Now check whether non-existent headers | |
2902 | # can be detected and how. | |
2903 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2904 | #line $LINENO "configure" |
ad6254c5 AK |
2905 | /* confdefs.h. */ |
2906 | _ACEOF | |
2907 | cat confdefs.h >>conftest.$ac_ext | |
2908 | cat >>conftest.$ac_ext <<_ACEOF | |
2909 | /* end confdefs.h. */ | |
2910 | #include <ac_nonexistent.h> | |
2911 | _ACEOF | |
2912 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2913 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2914 | ac_status=$? | |
2915 | grep -v '^ *+' conftest.er1 >conftest.err | |
2916 | rm -f conftest.er1 | |
2917 | cat conftest.err >&5 | |
2918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2919 | (exit $ac_status); } >/dev/null; then | |
2920 | if test -s conftest.err; then | |
2921 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2922 | else | |
2923 | ac_cpp_err= | |
2924 | fi | |
2925 | else | |
2926 | ac_cpp_err=yes | |
8106cdd5 | 2927 | fi |
ad6254c5 AK |
2928 | if test -z "$ac_cpp_err"; then |
2929 | # Broken: success on invalid input. | |
2930 | continue | |
80992638 | 2931 | else |
ad6254c5 AK |
2932 | echo "$as_me: failed program was:" >&5 |
2933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2934 | ||
2935 | # Passes both tests. | |
2936 | ac_preproc_ok=: | |
2937 | break | |
795ca3e5 | 2938 | fi |
ad6254c5 AK |
2939 | rm -f conftest.err conftest.$ac_ext |
2940 | ||
795ca3e5 | 2941 | done |
ad6254c5 AK |
2942 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2943 | rm -f conftest.err conftest.$ac_ext | |
2944 | if $ac_preproc_ok; then | |
2945 | break | |
2946 | fi | |
795ca3e5 | 2947 | |
ad6254c5 AK |
2948 | done |
2949 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 2950 | |
ad6254c5 AK |
2951 | fi |
2952 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 2953 | else |
ad6254c5 | 2954 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 2955 | fi |
ad6254c5 AK |
2956 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2957 | echo "${ECHO_T}$CPP" >&6 | |
2958 | ac_preproc_ok=false | |
2959 | for ac_c_preproc_warn_flag in '' yes | |
2960 | do | |
2961 | # Use a header file that comes with gcc, so configuring glibc | |
2962 | # with a fresh cross-compiler works. | |
2963 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2964 | # <limits.h> exists even on freestanding compilers. | |
2965 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2966 | # not just through cpp. "Syntax error" is here to catch this case. | |
2967 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 2968 | #line $LINENO "configure" |
ad6254c5 AK |
2969 | /* confdefs.h. */ |
2970 | _ACEOF | |
2971 | cat confdefs.h >>conftest.$ac_ext | |
2972 | cat >>conftest.$ac_ext <<_ACEOF | |
2973 | /* end confdefs.h. */ | |
2974 | #ifdef __STDC__ | |
2975 | # include <limits.h> | |
2976 | #else | |
2977 | # include <assert.h> | |
2978 | #endif | |
c1c065a3 | 2979 | Syntax error |
ad6254c5 AK |
2980 | _ACEOF |
2981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2983 | ac_status=$? | |
2984 | grep -v '^ *+' conftest.er1 >conftest.err | |
2985 | rm -f conftest.er1 | |
2986 | cat conftest.err >&5 | |
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2988 | (exit $ac_status); } >/dev/null; then | |
2989 | if test -s conftest.err; then | |
2990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2991 | else | |
2992 | ac_cpp_err= | |
2993 | fi | |
2994 | else | |
2995 | ac_cpp_err=yes | |
795ca3e5 | 2996 | fi |
ad6254c5 AK |
2997 | if test -z "$ac_cpp_err"; then |
2998 | : | |
2999 | else | |
3000 | echo "$as_me: failed program was:" >&5 | |
3001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3002 | ||
3003 | # Broken: fails on valid input. | |
3004 | continue | |
3005 | fi | |
3006 | rm -f conftest.err conftest.$ac_ext | |
3007 | ||
3008 | # OK, works on sane cases. Now check whether non-existent headers | |
3009 | # can be detected and how. | |
3010 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3011 | #line $LINENO "configure" |
ad6254c5 AK |
3012 | /* confdefs.h. */ |
3013 | _ACEOF | |
3014 | cat confdefs.h >>conftest.$ac_ext | |
3015 | cat >>conftest.$ac_ext <<_ACEOF | |
3016 | /* end confdefs.h. */ | |
3017 | #include <ac_nonexistent.h> | |
3018 | _ACEOF | |
3019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3021 | ac_status=$? | |
3022 | grep -v '^ *+' conftest.er1 >conftest.err | |
3023 | rm -f conftest.er1 | |
3024 | cat conftest.err >&5 | |
3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3026 | (exit $ac_status); } >/dev/null; then | |
3027 | if test -s conftest.err; then | |
3028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3029 | else | |
3030 | ac_cpp_err= | |
3031 | fi | |
3032 | else | |
3033 | ac_cpp_err=yes | |
3034 | fi | |
3035 | if test -z "$ac_cpp_err"; then | |
3036 | # Broken: success on invalid input. | |
3037 | continue | |
3038 | else | |
3039 | echo "$as_me: failed program was:" >&5 | |
3040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3041 | |
ad6254c5 AK |
3042 | # Passes both tests. |
3043 | ac_preproc_ok=: | |
3044 | break | |
795ca3e5 | 3045 | fi |
ad6254c5 | 3046 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3047 | |
ad6254c5 AK |
3048 | done |
3049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3050 | rm -f conftest.err conftest.$ac_ext | |
3051 | if $ac_preproc_ok; then | |
3052 | : | |
795ca3e5 | 3053 | else |
ad6254c5 AK |
3054 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3055 | See \`config.log' for more details." >&5 | |
3056 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3057 | See \`config.log' for more details." >&2;} | |
3058 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3059 | fi |
795ca3e5 | 3060 | |
ad6254c5 AK |
3061 | ac_ext=c |
3062 | ac_cpp='$CPP $CPPFLAGS' | |
3063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3066 | ||
3067 | ||
3068 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3069 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3070 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3072 | else | |
3073 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3074 | then ac_cv_prog_egrep='grep -E' | |
3075 | else ac_cv_prog_egrep='egrep' | |
3076 | fi | |
795ca3e5 | 3077 | fi |
ad6254c5 AK |
3078 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3079 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3080 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3081 | |
795ca3e5 | 3082 | |
ad6254c5 AK |
3083 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3084 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3085 | if test "${ac_cv_header_stdc+set}" = set; then | |
3086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3087 | else |
ad6254c5 | 3088 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 3089 | #line $LINENO "configure" |
ad6254c5 AK |
3090 | /* confdefs.h. */ |
3091 | _ACEOF | |
3092 | cat confdefs.h >>conftest.$ac_ext | |
3093 | cat >>conftest.$ac_ext <<_ACEOF | |
3094 | /* end confdefs.h. */ | |
80992638 | 3095 | #include <stdlib.h> |
ad6254c5 AK |
3096 | #include <stdarg.h> |
3097 | #include <string.h> | |
3098 | #include <float.h> | |
3099 | ||
3100 | int | |
3101 | main () | |
3102 | { | |
3103 | ||
3104 | ; | |
3105 | return 0; | |
3106 | } | |
3107 | _ACEOF | |
3108 | rm -f conftest.$ac_objext | |
3109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3110 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3111 | ac_status=$? |
3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3113 | (exit $ac_status); } && | |
c1c065a3 | 3114 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3116 | (eval $ac_try) 2>&5 | |
3117 | ac_status=$? | |
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3119 | (exit $ac_status); }; }; then | |
3120 | ac_cv_header_stdc=yes | |
795ca3e5 | 3121 | else |
ad6254c5 AK |
3122 | echo "$as_me: failed program was:" >&5 |
3123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3124 | ||
3125 | ac_cv_header_stdc=no | |
795ca3e5 | 3126 | fi |
c1c065a3 | 3127 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3128 | |
3129 | if test $ac_cv_header_stdc = yes; then | |
3130 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3131 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3132 | #line $LINENO "configure" |
ad6254c5 AK |
3133 | /* confdefs.h. */ |
3134 | _ACEOF | |
3135 | cat confdefs.h >>conftest.$ac_ext | |
3136 | cat >>conftest.$ac_ext <<_ACEOF | |
3137 | /* end confdefs.h. */ | |
3138 | #include <string.h> | |
8106cdd5 | 3139 | |
ad6254c5 AK |
3140 | _ACEOF |
3141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3142 | $EGREP "memchr" >/dev/null 2>&1; then | |
3143 | : | |
3144 | else | |
3145 | ac_cv_header_stdc=no | |
80992638 | 3146 | fi |
ad6254c5 | 3147 | rm -f conftest* |
795ca3e5 AK |
3148 | |
3149 | fi | |
3150 | ||
ad6254c5 AK |
3151 | if test $ac_cv_header_stdc = yes; then |
3152 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3153 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3154 | #line $LINENO "configure" |
ad6254c5 AK |
3155 | /* confdefs.h. */ |
3156 | _ACEOF | |
3157 | cat confdefs.h >>conftest.$ac_ext | |
3158 | cat >>conftest.$ac_ext <<_ACEOF | |
3159 | /* end confdefs.h. */ | |
80992638 | 3160 | #include <stdlib.h> |
ad6254c5 AK |
3161 | |
3162 | _ACEOF | |
80992638 | 3163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3164 | $EGREP "free" >/dev/null 2>&1; then |
3165 | : | |
795ca3e5 | 3166 | else |
ad6254c5 | 3167 | ac_cv_header_stdc=no |
795ca3e5 | 3168 | fi |
80992638 | 3169 | rm -f conftest* |
8106cdd5 | 3170 | |
795ca3e5 AK |
3171 | fi |
3172 | ||
ad6254c5 AK |
3173 | if test $ac_cv_header_stdc = yes; then |
3174 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3175 | if test "$cross_compiling" = yes; then | |
3176 | : | |
795ca3e5 | 3177 | else |
ad6254c5 | 3178 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 3179 | #line $LINENO "configure" |
ad6254c5 AK |
3180 | /* confdefs.h. */ |
3181 | _ACEOF | |
3182 | cat confdefs.h >>conftest.$ac_ext | |
3183 | cat >>conftest.$ac_ext <<_ACEOF | |
3184 | /* end confdefs.h. */ | |
3185 | #include <ctype.h> | |
3186 | #if ((' ' & 0x0FF) == 0x020) | |
3187 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3188 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3189 | #else | |
3190 | # define ISLOWER(c) \ | |
c1c065a3 AK |
3191 | (('a' <= (c) && (c) <= 'i') \ |
3192 | || ('j' <= (c) && (c) <= 'r') \ | |
3193 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3194 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3195 | #endif |
ad6254c5 AK |
3196 | |
3197 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3198 | int | |
3199 | main () | |
3200 | { | |
3201 | int i; | |
3202 | for (i = 0; i < 256; i++) | |
3203 | if (XOR (islower (i), ISLOWER (i)) | |
c1c065a3 | 3204 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3205 | exit(2); |
3206 | exit (0); | |
3207 | } | |
3208 | _ACEOF | |
3209 | rm -f conftest$ac_exeext | |
3210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3211 | (eval $ac_link) 2>&5 | |
3212 | ac_status=$? | |
3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3214 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3216 | (eval $ac_try) 2>&5 | |
3217 | ac_status=$? | |
3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3219 | (exit $ac_status); }; }; then | |
3220 | : | |
795ca3e5 | 3221 | else |
ad6254c5 AK |
3222 | echo "$as_me: program exited with status $ac_status" >&5 |
3223 | echo "$as_me: failed program was:" >&5 | |
3224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3225 | |
ad6254c5 AK |
3226 | ( exit $ac_status ) |
3227 | ac_cv_header_stdc=no | |
80992638 | 3228 | fi |
c1c065a3 | 3229 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3230 | fi |
3231 | fi | |
3232 | fi | |
3233 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3234 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3235 | if test $ac_cv_header_stdc = yes; then | |
3236 | ||
3237 | cat >>confdefs.h <<\_ACEOF | |
3238 | #define STDC_HEADERS 1 | |
3239 | _ACEOF | |
795ca3e5 AK |
3240 | |
3241 | fi | |
3242 | ||
ad6254c5 AK |
3243 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3244 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3245 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3247 | else |
ad6254c5 | 3248 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 3249 | #line $LINENO "configure" |
ad6254c5 AK |
3250 | /* confdefs.h. */ |
3251 | _ACEOF | |
3252 | cat confdefs.h >>conftest.$ac_ext | |
3253 | cat >>conftest.$ac_ext <<_ACEOF | |
3254 | /* end confdefs.h. */ | |
80992638 | 3255 | #include <sys/types.h> |
ad6254c5 AK |
3256 | #include <sys/wait.h> |
3257 | #ifndef WEXITSTATUS | |
3258 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3259 | #endif | |
3260 | #ifndef WIFEXITED | |
3261 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3262 | #endif | |
3263 | ||
3264 | int | |
3265 | main () | |
3266 | { | |
3267 | int s; | |
3268 | wait (&s); | |
3269 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3270 | ; | |
3271 | return 0; | |
3272 | } | |
3273 | _ACEOF | |
3274 | rm -f conftest.$ac_objext | |
3275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3276 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3277 | ac_status=$? |
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3279 | (exit $ac_status); } && | |
c1c065a3 | 3280 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3282 | (eval $ac_try) 2>&5 | |
3283 | ac_status=$? | |
3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3285 | (exit $ac_status); }; }; then | |
3286 | ac_cv_header_sys_wait_h=yes | |
3287 | else | |
3288 | echo "$as_me: failed program was:" >&5 | |
3289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3290 | ||
3291 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3292 | fi |
c1c065a3 | 3293 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3294 | fi |
ad6254c5 AK |
3295 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3296 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3297 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3298 | |
ad6254c5 AK |
3299 | cat >>confdefs.h <<\_ACEOF |
3300 | #define HAVE_SYS_WAIT_H 1 | |
3301 | _ACEOF | |
795ca3e5 AK |
3302 | |
3303 | fi | |
3304 | ||
ad6254c5 AK |
3305 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3306 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3307 | if test "${ac_cv_header_time+set}" = set; then | |
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3309 | else |
ad6254c5 | 3310 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 3311 | #line $LINENO "configure" |
ad6254c5 AK |
3312 | /* confdefs.h. */ |
3313 | _ACEOF | |
3314 | cat confdefs.h >>conftest.$ac_ext | |
3315 | cat >>conftest.$ac_ext <<_ACEOF | |
3316 | /* end confdefs.h. */ | |
795ca3e5 AK |
3317 | #include <sys/types.h> |
3318 | #include <sys/time.h> | |
3319 | #include <time.h> | |
ad6254c5 AK |
3320 | |
3321 | int | |
3322 | main () | |
3323 | { | |
3324 | if ((struct tm *) 0) | |
3325 | return 0; | |
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | rm -f conftest.$ac_objext | |
3331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3332 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3333 | ac_status=$? |
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3335 | (exit $ac_status); } && | |
c1c065a3 | 3336 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3338 | (eval $ac_try) 2>&5 | |
3339 | ac_status=$? | |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3341 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3342 | ac_cv_header_time=yes |
3343 | else | |
ad6254c5 AK |
3344 | echo "$as_me: failed program was:" >&5 |
3345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3346 | ||
3347 | ac_cv_header_time=no | |
795ca3e5 | 3348 | fi |
c1c065a3 | 3349 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3350 | fi |
ad6254c5 AK |
3351 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3352 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3353 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3354 | |
3355 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3356 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3357 | _ACEOF |
b896caa1 | 3358 | |
8106cdd5 | 3359 | fi |
b896caa1 | 3360 | |
b896caa1 | 3361 | |
ad6254c5 | 3362 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3363 | |
b896caa1 AK |
3364 | |
3365 | ||
795ca3e5 | 3366 | |
8106cdd5 | 3367 | |
80992638 | 3368 | |
795ca3e5 | 3369 | |
a38df97f | 3370 | |
80992638 | 3371 | |
ad6254c5 | 3372 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
c1c065a3 | 3373 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3374 | do |
3375 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3380 | else | |
3381 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3382 | #line $LINENO "configure" |
ad6254c5 AK |
3383 | /* confdefs.h. */ |
3384 | _ACEOF | |
3385 | cat confdefs.h >>conftest.$ac_ext | |
3386 | cat >>conftest.$ac_ext <<_ACEOF | |
3387 | /* end confdefs.h. */ | |
3388 | $ac_includes_default | |
3389 | ||
3390 | #include <$ac_header> | |
3391 | _ACEOF | |
3392 | rm -f conftest.$ac_objext | |
3393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3394 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3395 | ac_status=$? |
3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3397 | (exit $ac_status); } && | |
c1c065a3 | 3398 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3400 | (eval $ac_try) 2>&5 | |
3401 | ac_status=$? | |
3402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3403 | (exit $ac_status); }; }; then | |
3404 | eval "$as_ac_Header=yes" | |
3405 | else | |
3406 | echo "$as_me: failed program was:" >&5 | |
3407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3408 | |
ad6254c5 AK |
3409 | eval "$as_ac_Header=no" |
3410 | fi | |
c1c065a3 | 3411 | rm -f conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3412 | fi |
ad6254c5 AK |
3413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3415 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3416 | cat >>confdefs.h <<_ACEOF | |
3417 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3418 | _ACEOF | |
a38df97f | 3419 | |
80992638 AK |
3420 | fi |
3421 | ||
ad6254c5 AK |
3422 | done |
3423 | ||
7d1552c9 | 3424 | |
7d1552c9 | 3425 | |
80992638 | 3426 | |
5a52dca9 | 3427 | |
5a52dca9 | 3428 | |
ad6254c5 AK |
3429 | |
3430 | ||
3431 | ||
3432 | ||
3433 | ||
3434 | 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 | |
3435 | do | |
3436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3442 | fi | |
3443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3445 | else | |
3446 | # Is the header compilable? | |
3447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3449 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3450 | #line $LINENO "configure" |
ad6254c5 AK |
3451 | /* confdefs.h. */ |
3452 | _ACEOF | |
3453 | cat confdefs.h >>conftest.$ac_ext | |
3454 | cat >>conftest.$ac_ext <<_ACEOF | |
3455 | /* end confdefs.h. */ | |
3456 | $ac_includes_default | |
3457 | #include <$ac_header> | |
3458 | _ACEOF | |
3459 | rm -f conftest.$ac_objext | |
3460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3461 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3462 | ac_status=$? |
3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3464 | (exit $ac_status); } && | |
c1c065a3 | 3465 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3467 | (eval $ac_try) 2>&5 | |
3468 | ac_status=$? | |
3469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3470 | (exit $ac_status); }; }; then | |
3471 | ac_header_compiler=yes | |
3472 | else | |
3473 | echo "$as_me: failed program was:" >&5 | |
3474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3475 | ||
3476 | ac_header_compiler=no | |
3477 | fi | |
c1c065a3 | 3478 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3479 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3480 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3481 | ||
3482 | # Is the header present? | |
3483 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3484 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3485 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3486 | #line $LINENO "configure" |
ad6254c5 AK |
3487 | /* confdefs.h. */ |
3488 | _ACEOF | |
3489 | cat confdefs.h >>conftest.$ac_ext | |
3490 | cat >>conftest.$ac_ext <<_ACEOF | |
3491 | /* end confdefs.h. */ | |
3492 | #include <$ac_header> | |
3493 | _ACEOF | |
3494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3496 | ac_status=$? | |
3497 | grep -v '^ *+' conftest.er1 >conftest.err | |
3498 | rm -f conftest.er1 | |
3499 | cat conftest.err >&5 | |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } >/dev/null; then | |
3502 | if test -s conftest.err; then | |
3503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3504 | else | |
3505 | ac_cpp_err= | |
3506 | fi | |
3507 | else | |
3508 | ac_cpp_err=yes | |
3509 | fi | |
3510 | if test -z "$ac_cpp_err"; then | |
3511 | ac_header_preproc=yes | |
3512 | else | |
3513 | echo "$as_me: failed program was:" >&5 | |
3514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3515 | ||
3516 | ac_header_preproc=no | |
3517 | fi | |
3518 | rm -f conftest.err conftest.$ac_ext | |
3519 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3520 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3521 | ||
3522 | # So? What about this header? | |
c1c065a3 AK |
3523 | case $ac_header_compiler:$ac_header_preproc in |
3524 | yes:no ) | |
ad6254c5 AK |
3525 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3526 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
3527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3529 | ( | |
3530 | cat <<\_ASBOX | |
3531 | ## ------------------------------------ ## | |
3532 | ## Report this to bug-autoconf@gnu.org. ## | |
3533 | ## ------------------------------------ ## | |
3534 | _ASBOX | |
3535 | ) | | |
3536 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 3537 | ;; |
c1c065a3 | 3538 | no:yes ) |
ad6254c5 AK |
3539 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3540 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
3541 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3542 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
3543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3545 | ( | |
3546 | cat <<\_ASBOX | |
c1c065a3 AK |
3547 | ## ------------------------------------ ## |
3548 | ## Report this to bug-autoconf@gnu.org. ## | |
3549 | ## ------------------------------------ ## | |
ad6254c5 AK |
3550 | _ASBOX |
3551 | ) | | |
3552 | sed "s/^/$as_me: WARNING: /" >&2 | |
3553 | ;; | |
3554 | esac | |
3555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3559 | else | |
c1c065a3 | 3560 | eval "$as_ac_Header=$ac_header_preproc" |
b896caa1 | 3561 | fi |
ad6254c5 AK |
3562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3564 | ||
3565 | fi | |
3566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3567 | cat >>confdefs.h <<_ACEOF | |
3568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3569 | _ACEOF | |
b896caa1 | 3570 | |
d8ac0fbc | 3571 | else |
ad6254c5 AK |
3572 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3573 | echo "$as_me: error: bailing out" >&2;} | |
3574 | { (exit 1); exit 1; }; } | |
80992638 AK |
3575 | fi |
3576 | ||
ad6254c5 | 3577 | done |
d8ac0fbc | 3578 | |
d8ac0fbc | 3579 | |
d8ac0fbc | 3580 | |
80992638 | 3581 | |
d3c8211f | 3582 | |
d3c8211f | 3583 | |
d3c8211f | 3584 | |
80992638 | 3585 | |
4922197a | 3586 | |
4922197a | 3587 | |
ad6254c5 AK |
3588 | |
3589 | ||
3590 | ||
3591 | 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 | |
3592 | do | |
3593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3599 | fi | |
3600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3602 | else | |
3603 | # Is the header compilable? | |
3604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3606 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3607 | #line $LINENO "configure" |
ad6254c5 AK |
3608 | /* confdefs.h. */ |
3609 | _ACEOF | |
3610 | cat confdefs.h >>conftest.$ac_ext | |
3611 | cat >>conftest.$ac_ext <<_ACEOF | |
3612 | /* end confdefs.h. */ | |
3613 | $ac_includes_default | |
3614 | #include <$ac_header> | |
3615 | _ACEOF | |
3616 | rm -f conftest.$ac_objext | |
3617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3618 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3619 | ac_status=$? |
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3621 | (exit $ac_status); } && | |
c1c065a3 | 3622 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3624 | (eval $ac_try) 2>&5 | |
3625 | ac_status=$? | |
3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3627 | (exit $ac_status); }; }; then | |
3628 | ac_header_compiler=yes | |
3629 | else | |
3630 | echo "$as_me: failed program was:" >&5 | |
3631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3632 | ||
3633 | ac_header_compiler=no | |
3634 | fi | |
c1c065a3 | 3635 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3637 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3638 | ||
3639 | # Is the header present? | |
3640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3642 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3643 | #line $LINENO "configure" |
ad6254c5 AK |
3644 | /* confdefs.h. */ |
3645 | _ACEOF | |
3646 | cat confdefs.h >>conftest.$ac_ext | |
3647 | cat >>conftest.$ac_ext <<_ACEOF | |
3648 | /* end confdefs.h. */ | |
3649 | #include <$ac_header> | |
3650 | _ACEOF | |
3651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3653 | ac_status=$? | |
3654 | grep -v '^ *+' conftest.er1 >conftest.err | |
3655 | rm -f conftest.er1 | |
3656 | cat conftest.err >&5 | |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3658 | (exit $ac_status); } >/dev/null; then | |
3659 | if test -s conftest.err; then | |
3660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3661 | else | |
3662 | ac_cpp_err= | |
3663 | fi | |
3664 | else | |
3665 | ac_cpp_err=yes | |
4922197a | 3666 | fi |
ad6254c5 AK |
3667 | if test -z "$ac_cpp_err"; then |
3668 | ac_header_preproc=yes | |
3669 | else | |
3670 | echo "$as_me: failed program was:" >&5 | |
3671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3672 | ||
3673 | ac_header_preproc=no | |
3674 | fi | |
3675 | rm -f conftest.err conftest.$ac_ext | |
3676 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3677 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3678 | ||
3679 | # So? What about this header? | |
c1c065a3 AK |
3680 | case $ac_header_compiler:$ac_header_preproc in |
3681 | yes:no ) | |
ad6254c5 AK |
3682 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3683 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
3684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3686 | ( | |
3687 | cat <<\_ASBOX | |
3688 | ## ------------------------------------ ## | |
3689 | ## Report this to bug-autoconf@gnu.org. ## | |
3690 | ## ------------------------------------ ## | |
3691 | _ASBOX | |
3692 | ) | | |
3693 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 3694 | ;; |
c1c065a3 | 3695 | no:yes ) |
ad6254c5 AK |
3696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
3698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
3700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3702 | ( | |
3703 | cat <<\_ASBOX | |
c1c065a3 AK |
3704 | ## ------------------------------------ ## |
3705 | ## Report this to bug-autoconf@gnu.org. ## | |
3706 | ## ------------------------------------ ## | |
ad6254c5 AK |
3707 | _ASBOX |
3708 | ) | | |
3709 | sed "s/^/$as_me: WARNING: /" >&2 | |
3710 | ;; | |
3711 | esac | |
3712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3716 | else | |
c1c065a3 | 3717 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
3718 | fi |
3719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3721 | ||
3722 | fi | |
3723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3724 | cat >>confdefs.h <<_ACEOF | |
3725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3726 | _ACEOF | |
4922197a | 3727 | |
4922197a | 3728 | else |
ad6254c5 AK |
3729 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3730 | echo "$as_me: error: bailing out" >&2;} | |
3731 | { (exit 1); exit 1; }; } | |
80992638 AK |
3732 | fi |
3733 | ||
ad6254c5 | 3734 | done |
4922197a | 3735 | |
4922197a | 3736 | |
ad6254c5 AK |
3737 | case "$host_os" in |
3738 | linux*) | |
4922197a | 3739 | |
ad6254c5 AK |
3740 | |
3741 | ||
3742 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
3743 | do | |
3744 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3750 | fi | |
3751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3752 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 3753 | else |
ad6254c5 AK |
3754 | # Is the header compilable? |
3755 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3756 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3757 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3758 | #line $LINENO "configure" |
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 | $ac_includes_default | |
3765 | #include <$ac_header> | |
3766 | _ACEOF | |
3767 | rm -f conftest.$ac_objext | |
3768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3769 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3770 | ac_status=$? |
3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3772 | (exit $ac_status); } && | |
c1c065a3 | 3773 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3775 | (eval $ac_try) 2>&5 | |
3776 | ac_status=$? | |
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3778 | (exit $ac_status); }; }; then | |
3779 | ac_header_compiler=yes | |
3780 | else | |
3781 | echo "$as_me: failed program was:" >&5 | |
3782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3783 | ||
3784 | ac_header_compiler=no | |
3785 | fi | |
c1c065a3 | 3786 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3787 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3788 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3789 | ||
3790 | # Is the header present? | |
3791 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3792 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3793 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3794 | #line $LINENO "configure" |
ad6254c5 AK |
3795 | /* confdefs.h. */ |
3796 | _ACEOF | |
3797 | cat confdefs.h >>conftest.$ac_ext | |
3798 | cat >>conftest.$ac_ext <<_ACEOF | |
3799 | /* end confdefs.h. */ | |
3800 | #include <$ac_header> | |
3801 | _ACEOF | |
3802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3804 | ac_status=$? | |
3805 | grep -v '^ *+' conftest.er1 >conftest.err | |
3806 | rm -f conftest.er1 | |
3807 | cat conftest.err >&5 | |
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3809 | (exit $ac_status); } >/dev/null; then | |
3810 | if test -s conftest.err; then | |
3811 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3812 | else | |
3813 | ac_cpp_err= | |
3814 | fi | |
3815 | else | |
3816 | ac_cpp_err=yes | |
3817 | fi | |
3818 | if test -z "$ac_cpp_err"; then | |
3819 | ac_header_preproc=yes | |
3820 | else | |
3821 | echo "$as_me: failed program was:" >&5 | |
3822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3823 | ||
3824 | ac_header_preproc=no | |
3825 | fi | |
3826 | rm -f conftest.err conftest.$ac_ext | |
3827 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3828 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3829 | ||
3830 | # So? What about this header? | |
c1c065a3 AK |
3831 | case $ac_header_compiler:$ac_header_preproc in |
3832 | yes:no ) | |
ad6254c5 AK |
3833 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3834 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
3835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3836 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3837 | ( | |
3838 | cat <<\_ASBOX | |
3839 | ## ------------------------------------ ## | |
3840 | ## Report this to bug-autoconf@gnu.org. ## | |
3841 | ## ------------------------------------ ## | |
3842 | _ASBOX | |
3843 | ) | | |
3844 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 3845 | ;; |
c1c065a3 | 3846 | no:yes ) |
ad6254c5 AK |
3847 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3848 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
3849 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3850 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
3851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3853 | ( | |
3854 | cat <<\_ASBOX | |
c1c065a3 AK |
3855 | ## ------------------------------------ ## |
3856 | ## Report this to bug-autoconf@gnu.org. ## | |
3857 | ## ------------------------------------ ## | |
ad6254c5 AK |
3858 | _ASBOX |
3859 | ) | | |
3860 | sed "s/^/$as_me: WARNING: /" >&2 | |
3861 | ;; | |
3862 | esac | |
3863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3867 | else | |
c1c065a3 | 3868 | eval "$as_ac_Header=$ac_header_preproc" |
80992638 | 3869 | fi |
ad6254c5 AK |
3870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3871 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 3872 | |
ad6254c5 AK |
3873 | fi |
3874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3875 | cat >>confdefs.h <<_ACEOF | |
3876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3877 | _ACEOF | |
795ca3e5 | 3878 | |
795ca3e5 | 3879 | else |
ad6254c5 AK |
3880 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3881 | echo "$as_me: error: bailing out" >&2;} | |
3882 | { (exit 1); exit 1; }; } | |
80992638 AK |
3883 | fi |
3884 | ||
ad6254c5 AK |
3885 | done |
3886 | ;; | |
3887 | darwin*) | |
3888 | ||
795ca3e5 | 3889 | |
ad6254c5 AK |
3890 | for ac_header in machine/endian.h sys/disk.h |
3891 | do | |
3892 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3894 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3898 | fi | |
3899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3900 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3901 | else | |
3902 | # Is the header compilable? | |
3903 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3904 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3905 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3906 | #line $LINENO "configure" |
ad6254c5 AK |
3907 | /* confdefs.h. */ |
3908 | _ACEOF | |
3909 | cat confdefs.h >>conftest.$ac_ext | |
3910 | cat >>conftest.$ac_ext <<_ACEOF | |
3911 | /* end confdefs.h. */ | |
3912 | $ac_includes_default | |
3913 | #include <$ac_header> | |
3914 | _ACEOF | |
3915 | rm -f conftest.$ac_objext | |
3916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 3917 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
3918 | ac_status=$? |
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3920 | (exit $ac_status); } && | |
c1c065a3 | 3921 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3923 | (eval $ac_try) 2>&5 | |
3924 | ac_status=$? | |
3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3926 | (exit $ac_status); }; }; then | |
3927 | ac_header_compiler=yes | |
3928 | else | |
3929 | echo "$as_me: failed program was:" >&5 | |
3930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3931 | ||
3932 | ac_header_compiler=no | |
3933 | fi | |
c1c065a3 | 3934 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3936 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3937 | ||
3938 | # Is the header present? | |
3939 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3940 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3941 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 3942 | #line $LINENO "configure" |
ad6254c5 AK |
3943 | /* confdefs.h. */ |
3944 | _ACEOF | |
3945 | cat confdefs.h >>conftest.$ac_ext | |
3946 | cat >>conftest.$ac_ext <<_ACEOF | |
3947 | /* end confdefs.h. */ | |
3948 | #include <$ac_header> | |
3949 | _ACEOF | |
3950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3952 | ac_status=$? | |
3953 | grep -v '^ *+' conftest.er1 >conftest.err | |
3954 | rm -f conftest.er1 | |
3955 | cat conftest.err >&5 | |
3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3957 | (exit $ac_status); } >/dev/null; then | |
3958 | if test -s conftest.err; then | |
3959 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3960 | else | |
3961 | ac_cpp_err= | |
3962 | fi | |
3963 | else | |
3964 | ac_cpp_err=yes | |
3965 | fi | |
3966 | if test -z "$ac_cpp_err"; then | |
3967 | ac_header_preproc=yes | |
3968 | else | |
3969 | echo "$as_me: failed program was:" >&5 | |
3970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3971 | ||
3972 | ac_header_preproc=no | |
3973 | fi | |
3974 | rm -f conftest.err conftest.$ac_ext | |
3975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3976 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3977 | ||
3978 | # So? What about this header? | |
c1c065a3 AK |
3979 | case $ac_header_compiler:$ac_header_preproc in |
3980 | yes:no ) | |
ad6254c5 AK |
3981 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3982 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
3983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3985 | ( | |
3986 | cat <<\_ASBOX | |
3987 | ## ------------------------------------ ## | |
3988 | ## Report this to bug-autoconf@gnu.org. ## | |
3989 | ## ------------------------------------ ## | |
3990 | _ASBOX | |
3991 | ) | | |
3992 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 3993 | ;; |
c1c065a3 | 3994 | no:yes ) |
ad6254c5 AK |
3995 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3996 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
3997 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3998 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
3999 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4000 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4001 | ( | |
4002 | cat <<\_ASBOX | |
c1c065a3 AK |
4003 | ## ------------------------------------ ## |
4004 | ## Report this to bug-autoconf@gnu.org. ## | |
4005 | ## ------------------------------------ ## | |
ad6254c5 AK |
4006 | _ASBOX |
4007 | ) | | |
4008 | sed "s/^/$as_me: WARNING: /" >&2 | |
4009 | ;; | |
4010 | esac | |
4011 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4015 | else | |
c1c065a3 | 4016 | eval "$as_ac_Header=$ac_header_preproc" |
b896caa1 | 4017 | fi |
ad6254c5 AK |
4018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4019 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4020 | |
ad6254c5 AK |
4021 | fi |
4022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4023 | cat >>confdefs.h <<_ACEOF | |
4024 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4025 | _ACEOF | |
4026 | ||
4027 | else | |
4028 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4029 | echo "$as_me: error: bailing out" >&2;} | |
4030 | { (exit 1); exit 1; }; } | |
80992638 AK |
4031 | fi |
4032 | ||
ad6254c5 AK |
4033 | done |
4034 | ;; | |
4035 | esac | |
d3c8211f | 4036 | |
80992638 | 4037 | ################################################################################ |
ad6254c5 AK |
4038 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4039 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4040 | if test "${ac_cv_c_const+set}" = set; then | |
4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4042 | else |
ad6254c5 | 4043 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 4044 | #line $LINENO "configure" |
ad6254c5 AK |
4045 | /* confdefs.h. */ |
4046 | _ACEOF | |
4047 | cat confdefs.h >>conftest.$ac_ext | |
4048 | cat >>conftest.$ac_ext <<_ACEOF | |
4049 | /* end confdefs.h. */ | |
4050 | ||
4051 | int | |
4052 | main () | |
4053 | { | |
4054 | /* FIXME: Include the comments suggested by Paul. */ | |
4055 | #ifndef __cplusplus | |
4056 | /* Ultrix mips cc rejects this. */ | |
4057 | typedef int charset[2]; | |
4058 | const charset x; | |
4059 | /* SunOS 4.1.1 cc rejects this. */ | |
4060 | char const *const *ccp; | |
4061 | char **p; | |
4062 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4063 | struct point {int x, y;}; | |
4064 | static struct point const zero = {0,0}; | |
4065 | /* AIX XL C 1.02.0.0 rejects this. | |
4066 | It does not let you subtract one const X* pointer from another in | |
4067 | an arm of an if-expression whose if-part is not a constant | |
4068 | expression */ | |
4069 | const char *g = "string"; | |
4070 | ccp = &g + (g ? g-g : 0); | |
4071 | /* HPUX 7.0 cc rejects these. */ | |
4072 | ++ccp; | |
4073 | p = (char**) ccp; | |
4074 | ccp = (char const *const *) p; | |
4075 | { /* SCO 3.2v4 cc rejects this. */ | |
4076 | char *t; | |
4077 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4078 | ||
4079 | *t++ = 0; | |
4080 | } | |
4081 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4082 | int x[] = {25, 17}; | |
4083 | const int *foo = &x[0]; | |
4084 | ++foo; | |
4085 | } | |
4086 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4087 | typedef const int *iptr; | |
4088 | iptr p = 0; | |
4089 | ++p; | |
4090 | } | |
4091 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4092 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4093 | struct s { int j; const int *ap[3]; }; | |
4094 | struct s *b; b->j = 5; | |
4095 | } | |
4096 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4097 | const int foo = 10; | |
4098 | } | |
4099 | #endif | |
4100 | ||
4101 | ; | |
4102 | return 0; | |
4103 | } | |
4104 | _ACEOF | |
4105 | rm -f conftest.$ac_objext | |
4106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4107 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4108 | ac_status=$? |
4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4110 | (exit $ac_status); } && | |
c1c065a3 | 4111 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4113 | (eval $ac_try) 2>&5 | |
4114 | ac_status=$? | |
4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4116 | (exit $ac_status); }; }; then | |
4117 | ac_cv_c_const=yes | |
4118 | else | |
4119 | echo "$as_me: failed program was:" >&5 | |
4120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4121 | ||
4122 | ac_cv_c_const=no | |
4123 | fi | |
c1c065a3 | 4124 | rm -f conftest.$ac_objext conftest.$ac_ext |
80992638 | 4125 | fi |
ad6254c5 AK |
4126 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4127 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4128 | if test $ac_cv_c_const = no; then | |
80992638 | 4129 | |
ad6254c5 AK |
4130 | cat >>confdefs.h <<\_ACEOF |
4131 | #define const | |
4132 | _ACEOF | |
80992638 | 4133 | |
d3c8211f | 4134 | fi |
d3c8211f | 4135 | |
ad6254c5 AK |
4136 | echo "$as_me:$LINENO: checking for inline" >&5 |
4137 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4138 | if test "${ac_cv_c_inline+set}" = set; then | |
4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4140 | else |
ad6254c5 AK |
4141 | ac_cv_c_inline=no |
4142 | for ac_kw in inline __inline__ __inline; do | |
4143 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4144 | #line $LINENO "configure" |
ad6254c5 AK |
4145 | /* confdefs.h. */ |
4146 | _ACEOF | |
4147 | cat confdefs.h >>conftest.$ac_ext | |
4148 | cat >>conftest.$ac_ext <<_ACEOF | |
4149 | /* end confdefs.h. */ | |
4150 | #ifndef __cplusplus | |
4151 | typedef int foo_t; | |
4152 | static $ac_kw foo_t static_foo () {return 0; } | |
4153 | $ac_kw foo_t foo () {return 0; } | |
4154 | #endif | |
80992638 | 4155 | |
ad6254c5 AK |
4156 | _ACEOF |
4157 | rm -f conftest.$ac_objext | |
4158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4159 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4160 | ac_status=$? |
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4162 | (exit $ac_status); } && | |
c1c065a3 | 4163 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4165 | (eval $ac_try) 2>&5 | |
4166 | ac_status=$? | |
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4168 | (exit $ac_status); }; }; then | |
4169 | ac_cv_c_inline=$ac_kw; break | |
4170 | else | |
4171 | echo "$as_me: failed program was:" >&5 | |
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4173 | |
8ce0cbda | 4174 | fi |
c1c065a3 | 4175 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4176 | done |
8ce0cbda | 4177 | |
8ce0cbda | 4178 | fi |
ad6254c5 AK |
4179 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4180 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
4181 | case $ac_cv_c_inline in | |
4182 | inline | yes) ;; | |
c1c065a3 AK |
4183 | no) |
4184 | cat >>confdefs.h <<\_ACEOF | |
4185 | #define inline | |
a266258f | 4186 | _ACEOF |
c1c065a3 AK |
4187 | ;; |
4188 | *) cat >>confdefs.h <<_ACEOF | |
4189 | #define inline $ac_cv_c_inline | |
4190 | _ACEOF | |
4191 | ;; | |
ad6254c5 | 4192 | esac |
8ce0cbda | 4193 | |
ad6254c5 AK |
4194 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4195 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4196 | if test "${ac_cv_type_off_t+set}" = set; then | |
4197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4198 | else | |
4199 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4200 | #line $LINENO "configure" |
ad6254c5 AK |
4201 | /* confdefs.h. */ |
4202 | _ACEOF | |
4203 | cat confdefs.h >>conftest.$ac_ext | |
4204 | cat >>conftest.$ac_ext <<_ACEOF | |
4205 | /* end confdefs.h. */ | |
4206 | $ac_includes_default | |
4207 | int | |
4208 | main () | |
4209 | { | |
4210 | if ((off_t *) 0) | |
4211 | return 0; | |
4212 | if (sizeof (off_t)) | |
4213 | return 0; | |
4214 | ; | |
4215 | return 0; | |
4216 | } | |
4217 | _ACEOF | |
4218 | rm -f conftest.$ac_objext | |
4219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4220 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4221 | ac_status=$? |
4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4223 | (exit $ac_status); } && | |
c1c065a3 | 4224 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4226 | (eval $ac_try) 2>&5 | |
4227 | ac_status=$? | |
4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4229 | (exit $ac_status); }; }; then | |
4230 | ac_cv_type_off_t=yes | |
4231 | else | |
4232 | echo "$as_me: failed program was:" >&5 | |
4233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4234 | |
ad6254c5 | 4235 | ac_cv_type_off_t=no |
80992638 | 4236 | fi |
c1c065a3 | 4237 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4238 | fi |
4239 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4240 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4241 | if test $ac_cv_type_off_t = yes; then | |
4242 | : | |
4243 | else | |
80992638 | 4244 | |
ad6254c5 AK |
4245 | cat >>confdefs.h <<_ACEOF |
4246 | #define off_t long | |
4247 | _ACEOF | |
199e490e | 4248 | |
b896caa1 AK |
4249 | fi |
4250 | ||
ad6254c5 AK |
4251 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4252 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4253 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4255 | else | |
4256 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4257 | #line $LINENO "configure" |
ad6254c5 AK |
4258 | /* confdefs.h. */ |
4259 | _ACEOF | |
4260 | cat confdefs.h >>conftest.$ac_ext | |
4261 | cat >>conftest.$ac_ext <<_ACEOF | |
4262 | /* end confdefs.h. */ | |
4263 | $ac_includes_default | |
4264 | int | |
4265 | main () | |
4266 | { | |
4267 | if ((pid_t *) 0) | |
4268 | return 0; | |
4269 | if (sizeof (pid_t)) | |
4270 | return 0; | |
4271 | ; | |
4272 | return 0; | |
4273 | } | |
4274 | _ACEOF | |
4275 | rm -f conftest.$ac_objext | |
4276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4277 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4278 | ac_status=$? |
4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4280 | (exit $ac_status); } && | |
c1c065a3 | 4281 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4283 | (eval $ac_try) 2>&5 | |
4284 | ac_status=$? | |
4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4286 | (exit $ac_status); }; }; then | |
4287 | ac_cv_type_pid_t=yes | |
4288 | else | |
4289 | echo "$as_me: failed program was:" >&5 | |
4290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4291 | ||
4292 | ac_cv_type_pid_t=no | |
4293 | fi | |
c1c065a3 | 4294 | rm -f conftest.$ac_objext conftest.$ac_ext |
80992638 | 4295 | fi |
ad6254c5 AK |
4296 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4297 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4298 | if test $ac_cv_type_pid_t = yes; then | |
4299 | : | |
4300 | else | |
80992638 | 4301 | |
ad6254c5 AK |
4302 | cat >>confdefs.h <<_ACEOF |
4303 | #define pid_t int | |
4304 | _ACEOF | |
2dc95e1c | 4305 | |
2dc95e1c AK |
4306 | fi |
4307 | ||
ad6254c5 AK |
4308 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4309 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4310 | if test "${ac_cv_type_size_t+set}" = set; then | |
4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4312 | else |
ad6254c5 | 4313 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 4314 | #line $LINENO "configure" |
ad6254c5 AK |
4315 | /* confdefs.h. */ |
4316 | _ACEOF | |
4317 | cat confdefs.h >>conftest.$ac_ext | |
4318 | cat >>conftest.$ac_ext <<_ACEOF | |
4319 | /* end confdefs.h. */ | |
4320 | $ac_includes_default | |
4321 | int | |
4322 | main () | |
4323 | { | |
4324 | if ((size_t *) 0) | |
4325 | return 0; | |
4326 | if (sizeof (size_t)) | |
4327 | return 0; | |
4328 | ; | |
4329 | return 0; | |
4330 | } | |
4331 | _ACEOF | |
4332 | rm -f conftest.$ac_objext | |
4333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4334 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4335 | ac_status=$? |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); } && | |
c1c065a3 | 4338 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4340 | (eval $ac_try) 2>&5 | |
4341 | ac_status=$? | |
4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4343 | (exit $ac_status); }; }; then | |
4344 | ac_cv_type_size_t=yes | |
4345 | else | |
4346 | echo "$as_me: failed program was:" >&5 | |
4347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4348 | ||
4349 | ac_cv_type_size_t=no | |
80992638 | 4350 | fi |
c1c065a3 | 4351 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4352 | fi |
4353 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4354 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4355 | if test $ac_cv_type_size_t = yes; then | |
4356 | : | |
4357 | else | |
80992638 | 4358 | |
ad6254c5 AK |
4359 | cat >>confdefs.h <<_ACEOF |
4360 | #define size_t unsigned | |
4361 | _ACEOF | |
8106cdd5 | 4362 | |
8106cdd5 AK |
4363 | fi |
4364 | ||
ad6254c5 AK |
4365 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4366 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4367 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4369 | else | |
4370 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4371 | #line $LINENO "configure" |
ad6254c5 AK |
4372 | /* confdefs.h. */ |
4373 | _ACEOF | |
4374 | cat confdefs.h >>conftest.$ac_ext | |
4375 | cat >>conftest.$ac_ext <<_ACEOF | |
4376 | /* end confdefs.h. */ | |
4377 | $ac_includes_default | |
4378 | int | |
4379 | main () | |
4380 | { | |
4381 | if ((mode_t *) 0) | |
4382 | return 0; | |
4383 | if (sizeof (mode_t)) | |
4384 | return 0; | |
4385 | ; | |
4386 | return 0; | |
4387 | } | |
4388 | _ACEOF | |
4389 | rm -f conftest.$ac_objext | |
4390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4391 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4392 | ac_status=$? |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4394 | (exit $ac_status); } && | |
c1c065a3 | 4395 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4397 | (eval $ac_try) 2>&5 | |
4398 | ac_status=$? | |
4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4400 | (exit $ac_status); }; }; then | |
4401 | ac_cv_type_mode_t=yes | |
4402 | else | |
4403 | echo "$as_me: failed program was:" >&5 | |
4404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4405 | ||
4406 | ac_cv_type_mode_t=no | |
80992638 | 4407 | fi |
c1c065a3 | 4408 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4409 | fi |
4410 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4411 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4412 | if test $ac_cv_type_mode_t = yes; then | |
4413 | : | |
4414 | else | |
80992638 | 4415 | |
ad6254c5 AK |
4416 | cat >>confdefs.h <<_ACEOF |
4417 | #define mode_t int | |
4418 | _ACEOF | |
4419 | ||
4420 | fi | |
4421 | ||
4422 | ||
4423 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4424 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4425 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4427 | else | |
4428 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4429 | #line $LINENO "configure" |
ad6254c5 AK |
4430 | /* confdefs.h. */ |
4431 | _ACEOF | |
4432 | cat confdefs.h >>conftest.$ac_ext | |
4433 | cat >>conftest.$ac_ext <<_ACEOF | |
4434 | /* end confdefs.h. */ | |
4435 | $ac_includes_default | |
4436 | int | |
4437 | main () | |
4438 | { | |
4439 | static struct stat ac_aggr; | |
4440 | if (ac_aggr.st_rdev) | |
4441 | return 0; | |
4442 | ; | |
4443 | return 0; | |
4444 | } | |
4445 | _ACEOF | |
4446 | rm -f conftest.$ac_objext | |
4447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4448 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4449 | ac_status=$? |
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4451 | (exit $ac_status); } && | |
c1c065a3 | 4452 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4454 | (eval $ac_try) 2>&5 | |
4455 | ac_status=$? | |
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4457 | (exit $ac_status); }; }; then | |
4458 | ac_cv_member_struct_stat_st_rdev=yes | |
4459 | else | |
4460 | echo "$as_me: failed program was:" >&5 | |
4461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4462 | ||
4463 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4464 | #line $LINENO "configure" |
ad6254c5 AK |
4465 | /* confdefs.h. */ |
4466 | _ACEOF | |
4467 | cat confdefs.h >>conftest.$ac_ext | |
4468 | cat >>conftest.$ac_ext <<_ACEOF | |
4469 | /* end confdefs.h. */ | |
4470 | $ac_includes_default | |
4471 | int | |
4472 | main () | |
4473 | { | |
4474 | static struct stat ac_aggr; | |
4475 | if (sizeof ac_aggr.st_rdev) | |
4476 | return 0; | |
4477 | ; | |
4478 | return 0; | |
4479 | } | |
4480 | _ACEOF | |
4481 | rm -f conftest.$ac_objext | |
4482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4483 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4484 | ac_status=$? |
4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4486 | (exit $ac_status); } && | |
c1c065a3 | 4487 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4489 | (eval $ac_try) 2>&5 | |
4490 | ac_status=$? | |
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4492 | (exit $ac_status); }; }; then | |
4493 | ac_cv_member_struct_stat_st_rdev=yes | |
4494 | else | |
4495 | echo "$as_me: failed program was:" >&5 | |
4496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4497 | ||
4498 | ac_cv_member_struct_stat_st_rdev=no | |
4499 | fi | |
c1c065a3 | 4500 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4501 | fi |
c1c065a3 | 4502 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4503 | fi |
4504 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4505 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4506 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4507 | ||
4508 | cat >>confdefs.h <<_ACEOF | |
4509 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4510 | _ACEOF | |
4511 | ||
4512 | ||
4513 | cat >>confdefs.h <<\_ACEOF | |
4514 | #define HAVE_ST_RDEV 1 | |
4515 | _ACEOF | |
4516 | ||
4517 | fi | |
4518 | ||
4519 | ||
4520 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4521 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4522 | if test "${ac_cv_struct_tm+set}" = set; then | |
4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4524 | else | |
4525 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4526 | #line $LINENO "configure" |
ad6254c5 AK |
4527 | /* confdefs.h. */ |
4528 | _ACEOF | |
4529 | cat confdefs.h >>conftest.$ac_ext | |
4530 | cat >>conftest.$ac_ext <<_ACEOF | |
4531 | /* end confdefs.h. */ | |
4532 | #include <sys/types.h> | |
4533 | #include <time.h> | |
4534 | ||
4535 | int | |
4536 | main () | |
4537 | { | |
4538 | struct tm *tp; tp->tm_sec; | |
4539 | ; | |
4540 | return 0; | |
4541 | } | |
4542 | _ACEOF | |
4543 | rm -f conftest.$ac_objext | |
4544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 4545 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
4546 | ac_status=$? |
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4548 | (exit $ac_status); } && | |
c1c065a3 | 4549 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4551 | (eval $ac_try) 2>&5 | |
4552 | ac_status=$? | |
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4554 | (exit $ac_status); }; }; then | |
4555 | ac_cv_struct_tm=time.h | |
4556 | else | |
4557 | echo "$as_me: failed program was:" >&5 | |
4558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4559 | ||
4560 | ac_cv_struct_tm=sys/time.h | |
4561 | fi | |
c1c065a3 | 4562 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4563 | fi |
4564 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4565 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4566 | if test $ac_cv_struct_tm = sys/time.h; then | |
4567 | ||
4568 | cat >>confdefs.h <<\_ACEOF | |
4569 | #define TM_IN_SYS_TIME 1 | |
4570 | _ACEOF | |
4571 | ||
4572 | fi | |
809fae91 | 4573 | |
795ca3e5 | 4574 | |
80992638 | 4575 | ################################################################################ |
ad6254c5 AK |
4576 | |
4577 | ||
4578 | ||
4579 | ||
4580 | ||
4581 | ||
4582 | ||
4583 | ||
4584 | ||
4585 | ||
4586 | ||
4587 | ||
4588 | ||
4589 | ||
4590 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4591 | do | |
4592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4595 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4597 | else |
ad6254c5 | 4598 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 4599 | #line $LINENO "configure" |
ad6254c5 AK |
4600 | /* confdefs.h. */ |
4601 | _ACEOF | |
4602 | cat confdefs.h >>conftest.$ac_ext | |
4603 | cat >>conftest.$ac_ext <<_ACEOF | |
4604 | /* end confdefs.h. */ | |
4605 | /* System header to define __stub macros and hopefully few prototypes, | |
4606 | which can conflict with char $ac_func (); below. | |
4607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4608 | <limits.h> exists even on freestanding compilers. */ | |
4609 | #ifdef __STDC__ | |
4610 | # include <limits.h> | |
4611 | #else | |
4612 | # include <assert.h> | |
4613 | #endif | |
4614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4615 | #ifdef __cplusplus | |
4616 | extern "C" | |
4617 | { | |
4618 | #endif | |
4619 | /* We use char because int might match the return type of a gcc2 | |
4620 | builtin and then its argument prototype would still apply. */ | |
4621 | char $ac_func (); | |
4622 | /* The GNU C library defines this for functions which it implements | |
4623 | to always fail with ENOSYS. Some functions are actually named | |
4624 | something starting with __ and the normal name is an alias. */ | |
4625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4626 | choke me | |
4627 | #else | |
4628 | char (*f) () = $ac_func; | |
4629 | #endif | |
4630 | #ifdef __cplusplus | |
4631 | } | |
4632 | #endif | |
4633 | ||
4634 | int | |
4635 | main () | |
4636 | { | |
4637 | return f != $ac_func; | |
4638 | ; | |
4639 | return 0; | |
4640 | } | |
4641 | _ACEOF | |
4642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 4644 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
4645 | ac_status=$? |
4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4647 | (exit $ac_status); } && | |
c1c065a3 | 4648 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
4649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4650 | (eval $ac_try) 2>&5 | |
4651 | ac_status=$? | |
4652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4653 | (exit $ac_status); }; }; then | |
4654 | eval "$as_ac_var=yes" | |
795ca3e5 | 4655 | else |
ad6254c5 AK |
4656 | echo "$as_me: failed program was:" >&5 |
4657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4658 | ||
4659 | eval "$as_ac_var=no" | |
795ca3e5 | 4660 | fi |
c1c065a3 | 4661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
4662 | fi |
4663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4665 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4666 | cat >>confdefs.h <<_ACEOF | |
4667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4668 | _ACEOF | |
4669 | ||
4670 | else | |
4671 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4672 | echo "$as_me: error: bailing out" >&2;} | |
4673 | { (exit 1); exit 1; }; } | |
4674 | fi | |
4675 | done | |
795ca3e5 | 4676 | |
ad6254c5 AK |
4677 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4678 | # for constant arguments. Useless! | |
4679 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
4680 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
4681 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4683 | else | |
4684 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4685 | #line $LINENO "configure" |
ad6254c5 AK |
4686 | /* confdefs.h. */ |
4687 | _ACEOF | |
4688 | cat confdefs.h >>conftest.$ac_ext | |
4689 | cat >>conftest.$ac_ext <<_ACEOF | |
4690 | /* end confdefs.h. */ | |
4691 | #include <alloca.h> | |
4692 | int | |
4693 | main () | |
4694 | { | |
4695 | char *p = (char *) alloca (2 * sizeof (int)); | |
4696 | ; | |
4697 | return 0; | |
4698 | } | |
4699 | _ACEOF | |
4700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 4702 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
4703 | ac_status=$? |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); } && | |
c1c065a3 | 4706 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4708 | (eval $ac_try) 2>&5 | |
4709 | ac_status=$? | |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; }; then | |
4712 | ac_cv_working_alloca_h=yes | |
4713 | else | |
4714 | echo "$as_me: failed program was:" >&5 | |
4715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4716 | |
ad6254c5 AK |
4717 | ac_cv_working_alloca_h=no |
4718 | fi | |
c1c065a3 | 4719 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
4720 | fi |
4721 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
4722 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
4723 | if test $ac_cv_working_alloca_h = yes; then | |
4724 | ||
4725 | cat >>confdefs.h <<\_ACEOF | |
4726 | #define HAVE_ALLOCA_H 1 | |
4727 | _ACEOF | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
4732 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
4733 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4735 | else | |
4736 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4737 | #line $LINENO "configure" |
ad6254c5 AK |
4738 | /* confdefs.h. */ |
4739 | _ACEOF | |
4740 | cat confdefs.h >>conftest.$ac_ext | |
4741 | cat >>conftest.$ac_ext <<_ACEOF | |
4742 | /* end confdefs.h. */ | |
4743 | #ifdef __GNUC__ | |
4744 | # define alloca __builtin_alloca | |
4745 | #else | |
4746 | # ifdef _MSC_VER | |
4747 | # include <malloc.h> | |
4748 | # define alloca _alloca | |
4749 | # else | |
4750 | # if HAVE_ALLOCA_H | |
4751 | # include <alloca.h> | |
4752 | # else | |
4753 | # ifdef _AIX | |
4754 | #pragma alloca | |
4755 | # else | |
4756 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4757 | char *alloca (); | |
4758 | # endif | |
4759 | # endif | |
4760 | # endif | |
4761 | # endif | |
4762 | #endif | |
4763 | ||
4764 | int | |
4765 | main () | |
4766 | { | |
4767 | char *p = (char *) alloca (1); | |
4768 | ; | |
4769 | return 0; | |
4770 | } | |
4771 | _ACEOF | |
4772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 4774 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
4775 | ac_status=$? |
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4777 | (exit $ac_status); } && | |
c1c065a3 | 4778 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
4779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4780 | (eval $ac_try) 2>&5 | |
4781 | ac_status=$? | |
4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4783 | (exit $ac_status); }; }; then | |
4784 | ac_cv_func_alloca_works=yes | |
4785 | else | |
4786 | echo "$as_me: failed program was:" >&5 | |
4787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4788 | ||
4789 | ac_cv_func_alloca_works=no | |
4790 | fi | |
c1c065a3 | 4791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
4792 | fi |
4793 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
4794 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
4795 | ||
4796 | if test $ac_cv_func_alloca_works = yes; then | |
4797 | ||
4798 | cat >>confdefs.h <<\_ACEOF | |
4799 | #define HAVE_ALLOCA 1 | |
4800 | _ACEOF | |
4801 | ||
4802 | else | |
4803 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4804 | # that cause trouble. Some versions do not even contain alloca or | |
4805 | # contain a buggy version. If you still want to use their alloca, | |
4806 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4807 | ||
4808 | ALLOCA=alloca.$ac_objext | |
4809 | ||
4810 | cat >>confdefs.h <<\_ACEOF | |
4811 | #define C_ALLOCA 1 | |
4812 | _ACEOF | |
4813 | ||
4814 | ||
4815 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
4816 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
4817 | if test "${ac_cv_os_cray+set}" = set; then | |
4818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4819 | else | |
4820 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4821 | #line $LINENO "configure" |
ad6254c5 AK |
4822 | /* confdefs.h. */ |
4823 | _ACEOF | |
4824 | cat confdefs.h >>conftest.$ac_ext | |
4825 | cat >>conftest.$ac_ext <<_ACEOF | |
4826 | /* end confdefs.h. */ | |
4827 | #if defined(CRAY) && ! defined(CRAY2) | |
4828 | webecray | |
4829 | #else | |
4830 | wenotbecray | |
4831 | #endif | |
4832 | ||
4833 | _ACEOF | |
795ca3e5 | 4834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4835 | $EGREP "webecray" >/dev/null 2>&1; then |
4836 | ac_cv_os_cray=yes | |
4837 | else | |
4838 | ac_cv_os_cray=no | |
795ca3e5 AK |
4839 | fi |
4840 | rm -f conftest* | |
4841 | ||
795ca3e5 | 4842 | fi |
ad6254c5 AK |
4843 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
4844 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
4845 | if test $ac_cv_os_cray = yes; then | |
4846 | for ac_func in _getb67 GETB67 getb67; do | |
4847 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4848 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4849 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4850 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4852 | else | |
4853 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4854 | #line $LINENO "configure" |
ad6254c5 AK |
4855 | /* confdefs.h. */ |
4856 | _ACEOF | |
4857 | cat confdefs.h >>conftest.$ac_ext | |
4858 | cat >>conftest.$ac_ext <<_ACEOF | |
4859 | /* end confdefs.h. */ | |
4860 | /* System header to define __stub macros and hopefully few prototypes, | |
4861 | which can conflict with char $ac_func (); below. | |
4862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4863 | <limits.h> exists even on freestanding compilers. */ | |
4864 | #ifdef __STDC__ | |
4865 | # include <limits.h> | |
4866 | #else | |
4867 | # include <assert.h> | |
4868 | #endif | |
4869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4870 | #ifdef __cplusplus | |
4871 | extern "C" | |
4872 | { | |
4873 | #endif | |
4874 | /* We use char because int might match the return type of a gcc2 | |
4875 | builtin and then its argument prototype would still apply. */ | |
4876 | char $ac_func (); | |
4877 | /* The GNU C library defines this for functions which it implements | |
4878 | to always fail with ENOSYS. Some functions are actually named | |
4879 | something starting with __ and the normal name is an alias. */ | |
4880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4881 | choke me | |
4882 | #else | |
4883 | char (*f) () = $ac_func; | |
4884 | #endif | |
4885 | #ifdef __cplusplus | |
4886 | } | |
4887 | #endif | |
4888 | ||
4889 | int | |
4890 | main () | |
4891 | { | |
4892 | return f != $ac_func; | |
4893 | ; | |
4894 | return 0; | |
4895 | } | |
4896 | _ACEOF | |
4897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 4899 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
4900 | ac_status=$? |
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4902 | (exit $ac_status); } && | |
c1c065a3 | 4903 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
4904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4905 | (eval $ac_try) 2>&5 | |
4906 | ac_status=$? | |
4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4908 | (exit $ac_status); }; }; then | |
4909 | eval "$as_ac_var=yes" | |
4910 | else | |
4911 | echo "$as_me: failed program was:" >&5 | |
4912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4913 | ||
4914 | eval "$as_ac_var=no" | |
4915 | fi | |
c1c065a3 | 4916 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
4917 | fi |
4918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4919 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4920 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 4921 | |
ad6254c5 AK |
4922 | cat >>confdefs.h <<_ACEOF |
4923 | #define CRAY_STACKSEG_END $ac_func | |
4924 | _ACEOF | |
4925 | ||
4926 | break | |
4927 | fi | |
4928 | ||
4929 | done | |
4930 | fi | |
4931 | ||
4932 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
4933 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
4934 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
4935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4936 | else | |
4937 | if test "$cross_compiling" = yes; then | |
4938 | ac_cv_c_stack_direction=0 | |
4939 | else | |
4940 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 4941 | #line $LINENO "configure" |
ad6254c5 AK |
4942 | /* confdefs.h. */ |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
4947 | int | |
4948 | find_stack_direction () | |
4949 | { | |
4950 | static char *addr = 0; | |
4951 | auto char dummy; | |
4952 | if (addr == 0) | |
4953 | { | |
4954 | addr = &dummy; | |
4955 | return find_stack_direction (); | |
4956 | } | |
4957 | else | |
4958 | return (&dummy > addr) ? 1 : -1; | |
4959 | } | |
4960 | ||
4961 | int | |
4962 | main () | |
4963 | { | |
4964 | exit (find_stack_direction () < 0); | |
4965 | } | |
4966 | _ACEOF | |
4967 | rm -f conftest$ac_exeext | |
4968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4969 | (eval $ac_link) 2>&5 | |
4970 | ac_status=$? | |
4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4974 | (eval $ac_try) 2>&5 | |
4975 | ac_status=$? | |
4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4977 | (exit $ac_status); }; }; then | |
4978 | ac_cv_c_stack_direction=1 | |
4979 | else | |
4980 | echo "$as_me: program exited with status $ac_status" >&5 | |
4981 | echo "$as_me: failed program was:" >&5 | |
4982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4983 | ||
4984 | ( exit $ac_status ) | |
4985 | ac_cv_c_stack_direction=-1 | |
4986 | fi | |
c1c065a3 | 4987 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4988 | fi |
4989 | fi | |
4990 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
4991 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
4992 | ||
4993 | cat >>confdefs.h <<_ACEOF | |
4994 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4995 | _ACEOF | |
4996 | ||
4997 | ||
4998 | fi | |
4999 | ||
5000 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5001 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5002 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5004 | else | |
5005 | if test "$cross_compiling" = yes; then | |
5006 | ac_cv_func_closedir_void=yes | |
5007 | else | |
5008 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5009 | #line $LINENO "configure" |
ad6254c5 AK |
5010 | /* confdefs.h. */ |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
5015 | $ac_includes_default | |
5016 | #include <$ac_header_dirent> | |
5017 | #ifndef __cplusplus | |
5018 | int closedir (); | |
5019 | #endif | |
5020 | ||
5021 | int | |
5022 | main () | |
5023 | { | |
5024 | exit (closedir (opendir (".")) != 0); | |
5025 | ; | |
5026 | return 0; | |
5027 | } | |
5028 | _ACEOF | |
5029 | rm -f conftest$ac_exeext | |
5030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5031 | (eval $ac_link) 2>&5 | |
5032 | ac_status=$? | |
5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5036 | (eval $ac_try) 2>&5 | |
5037 | ac_status=$? | |
5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5039 | (exit $ac_status); }; }; then | |
5040 | ac_cv_func_closedir_void=no | |
5041 | else | |
5042 | echo "$as_me: program exited with status $ac_status" >&5 | |
5043 | echo "$as_me: failed program was:" >&5 | |
5044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5045 | ||
5046 | ( exit $ac_status ) | |
5047 | ac_cv_func_closedir_void=yes | |
5048 | fi | |
c1c065a3 | 5049 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5050 | fi |
5051 | fi | |
5052 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5053 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5054 | if test $ac_cv_func_closedir_void = yes; then | |
5055 | ||
5056 | cat >>confdefs.h <<\_ACEOF | |
5057 | #define CLOSEDIR_VOID 1 | |
5058 | _ACEOF | |
5059 | ||
5060 | fi | |
5061 | ||
5062 | ||
5063 | ||
5064 | for ac_header in unistd.h vfork.h | |
5065 | do | |
5066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5072 | fi | |
5073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5075 | else | |
5076 | # Is the header compilable? | |
5077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5079 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5080 | #line $LINENO "configure" |
ad6254c5 AK |
5081 | /* confdefs.h. */ |
5082 | _ACEOF | |
5083 | cat confdefs.h >>conftest.$ac_ext | |
5084 | cat >>conftest.$ac_ext <<_ACEOF | |
5085 | /* end confdefs.h. */ | |
5086 | $ac_includes_default | |
5087 | #include <$ac_header> | |
5088 | _ACEOF | |
5089 | rm -f conftest.$ac_objext | |
5090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 5091 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
5092 | ac_status=$? |
5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5094 | (exit $ac_status); } && | |
c1c065a3 | 5095 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
5096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5097 | (eval $ac_try) 2>&5 | |
5098 | ac_status=$? | |
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5100 | (exit $ac_status); }; }; then | |
5101 | ac_header_compiler=yes | |
5102 | else | |
5103 | echo "$as_me: failed program was:" >&5 | |
5104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5105 | ||
5106 | ac_header_compiler=no | |
5107 | fi | |
c1c065a3 | 5108 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5109 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5110 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5111 | ||
5112 | # Is the header present? | |
5113 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5114 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5115 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5116 | #line $LINENO "configure" |
ad6254c5 AK |
5117 | /* confdefs.h. */ |
5118 | _ACEOF | |
5119 | cat confdefs.h >>conftest.$ac_ext | |
5120 | cat >>conftest.$ac_ext <<_ACEOF | |
5121 | /* end confdefs.h. */ | |
5122 | #include <$ac_header> | |
5123 | _ACEOF | |
5124 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5126 | ac_status=$? | |
5127 | grep -v '^ *+' conftest.er1 >conftest.err | |
5128 | rm -f conftest.er1 | |
5129 | cat conftest.err >&5 | |
5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5131 | (exit $ac_status); } >/dev/null; then | |
5132 | if test -s conftest.err; then | |
5133 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5134 | else | |
5135 | ac_cpp_err= | |
795ca3e5 | 5136 | fi |
ad6254c5 AK |
5137 | else |
5138 | ac_cpp_err=yes | |
5139 | fi | |
5140 | if test -z "$ac_cpp_err"; then | |
5141 | ac_header_preproc=yes | |
5142 | else | |
5143 | echo "$as_me: failed program was:" >&5 | |
5144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5145 | ||
5146 | ac_header_preproc=no | |
5147 | fi | |
5148 | rm -f conftest.err conftest.$ac_ext | |
5149 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5150 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5151 | ||
5152 | # So? What about this header? | |
c1c065a3 AK |
5153 | case $ac_header_compiler:$ac_header_preproc in |
5154 | yes:no ) | |
ad6254c5 AK |
5155 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5156 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
5157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5159 | ( | |
5160 | cat <<\_ASBOX | |
5161 | ## ------------------------------------ ## | |
5162 | ## Report this to bug-autoconf@gnu.org. ## | |
5163 | ## ------------------------------------ ## | |
5164 | _ASBOX | |
5165 | ) | | |
5166 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 5167 | ;; |
c1c065a3 | 5168 | no:yes ) |
ad6254c5 AK |
5169 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5170 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
5171 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5172 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
5173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5175 | ( | |
5176 | cat <<\_ASBOX | |
c1c065a3 AK |
5177 | ## ------------------------------------ ## |
5178 | ## Report this to bug-autoconf@gnu.org. ## | |
5179 | ## ------------------------------------ ## | |
ad6254c5 AK |
5180 | _ASBOX |
5181 | ) | | |
5182 | sed "s/^/$as_me: WARNING: /" >&2 | |
5183 | ;; | |
5184 | esac | |
5185 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5189 | else | |
c1c065a3 | 5190 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
5191 | fi |
5192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5194 | ||
795ca3e5 | 5195 | fi |
ad6254c5 AK |
5196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5197 | cat >>confdefs.h <<_ACEOF | |
5198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5199 | _ACEOF | |
5200 | ||
5201 | fi | |
5202 | ||
5203 | done | |
795ca3e5 | 5204 | |
ad6254c5 AK |
5205 | |
5206 | ||
5207 | for ac_func in fork vfork | |
5208 | do | |
5209 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5210 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5211 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5212 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5214 | else |
ad6254c5 | 5215 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 5216 | #line $LINENO "configure" |
ad6254c5 AK |
5217 | /* confdefs.h. */ |
5218 | _ACEOF | |
5219 | cat confdefs.h >>conftest.$ac_ext | |
5220 | cat >>conftest.$ac_ext <<_ACEOF | |
5221 | /* end confdefs.h. */ | |
5222 | /* System header to define __stub macros and hopefully few prototypes, | |
5223 | which can conflict with char $ac_func (); below. | |
5224 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5225 | <limits.h> exists even on freestanding compilers. */ | |
5226 | #ifdef __STDC__ | |
5227 | # include <limits.h> | |
5228 | #else | |
5229 | # include <assert.h> | |
795ca3e5 | 5230 | #endif |
ad6254c5 | 5231 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5232 | #ifdef __cplusplus |
ad6254c5 AK |
5233 | extern "C" |
5234 | { | |
5235 | #endif | |
5236 | /* We use char because int might match the return type of a gcc2 | |
5237 | builtin and then its argument prototype would still apply. */ | |
5238 | char $ac_func (); | |
5239 | /* The GNU C library defines this for functions which it implements | |
5240 | to always fail with ENOSYS. Some functions are actually named | |
5241 | something starting with __ and the normal name is an alias. */ | |
5242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5243 | choke me | |
795ca3e5 | 5244 | #else |
ad6254c5 AK |
5245 | char (*f) () = $ac_func; |
5246 | #endif | |
5247 | #ifdef __cplusplus | |
5248 | } | |
795ca3e5 AK |
5249 | #endif |
5250 | ||
ad6254c5 AK |
5251 | int |
5252 | main () | |
5253 | { | |
5254 | return f != $ac_func; | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 5261 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
5262 | ac_status=$? |
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5264 | (exit $ac_status); } && | |
c1c065a3 | 5265 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
5266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5267 | (eval $ac_try) 2>&5 | |
5268 | ac_status=$? | |
5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5270 | (exit $ac_status); }; }; then | |
5271 | eval "$as_ac_var=yes" | |
795ca3e5 | 5272 | else |
ad6254c5 AK |
5273 | echo "$as_me: failed program was:" >&5 |
5274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5275 | ||
5276 | eval "$as_ac_var=no" | |
795ca3e5 | 5277 | fi |
c1c065a3 | 5278 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
5279 | fi |
5280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5281 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5282 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5283 | cat >>confdefs.h <<_ACEOF | |
5284 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5285 | _ACEOF | |
5286 | ||
5287 | fi | |
5288 | done | |
5289 | ||
5290 | if test "x$ac_cv_func_fork" = xyes; then | |
5291 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5292 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5293 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5295 | else | |
5296 | if test "$cross_compiling" = yes; then | |
5297 | ac_cv_func_fork_works=cross | |
5298 | else | |
5299 | cat >conftest.$ac_ext <<_ACEOF | |
5300 | /* By Ruediger Kuhlmann. */ | |
5301 | #include <sys/types.h> | |
5302 | #if HAVE_UNISTD_H | |
5303 | # include <unistd.h> | |
5304 | #endif | |
5305 | /* Some systems only have a dummy stub for fork() */ | |
5306 | int main () | |
5307 | { | |
c1c065a3 AK |
5308 | if (fork() < 0) |
5309 | exit (1); | |
5310 | exit (0); | |
ad6254c5 AK |
5311 | } |
5312 | _ACEOF | |
5313 | rm -f conftest$ac_exeext | |
5314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5315 | (eval $ac_link) 2>&5 | |
5316 | ac_status=$? | |
5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5320 | (eval $ac_try) 2>&5 | |
5321 | ac_status=$? | |
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5323 | (exit $ac_status); }; }; then | |
5324 | ac_cv_func_fork_works=yes | |
5325 | else | |
5326 | echo "$as_me: program exited with status $ac_status" >&5 | |
5327 | echo "$as_me: failed program was:" >&5 | |
5328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5329 | ||
5330 | ( exit $ac_status ) | |
5331 | ac_cv_func_fork_works=no | |
5332 | fi | |
c1c065a3 | 5333 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5334 | fi |
5335 | fi | |
5336 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5337 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5338 | ||
5339 | else | |
5340 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5341 | fi | |
5342 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5343 | case $host in | |
5344 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5345 | # Override, as these systems have only a dummy fork() stub | |
5346 | ac_cv_func_fork_works=no | |
5347 | ;; | |
5348 | *) | |
5349 | ac_cv_func_fork_works=yes | |
5350 | ;; | |
5351 | esac | |
5352 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5353 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5354 | fi | |
5355 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5356 | if test "x$ac_cv_func_vfork" = xyes; then | |
5357 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5358 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5359 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5361 | else | |
5362 | if test "$cross_compiling" = yes; then | |
5363 | ac_cv_func_vfork_works=cross | |
5364 | else | |
5365 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5366 | #line $LINENO "configure" |
ad6254c5 AK |
5367 | /* confdefs.h. */ |
5368 | _ACEOF | |
5369 | cat confdefs.h >>conftest.$ac_ext | |
5370 | cat >>conftest.$ac_ext <<_ACEOF | |
5371 | /* end confdefs.h. */ | |
5372 | /* Thanks to Paul Eggert for this test. */ | |
5373 | #include <stdio.h> | |
5374 | #include <stdlib.h> | |
5375 | #include <sys/types.h> | |
5376 | #include <sys/stat.h> | |
5377 | #include <sys/wait.h> | |
5378 | #if HAVE_UNISTD_H | |
5379 | # include <unistd.h> | |
5380 | #endif | |
5381 | #if HAVE_VFORK_H | |
5382 | # include <vfork.h> | |
5383 | #endif | |
5384 | /* On some sparc systems, changes by the child to local and incoming | |
5385 | argument registers are propagated back to the parent. The compiler | |
5386 | is told about this with #include <vfork.h>, but some compilers | |
5387 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5388 | static variable whose address is put into a register that is | |
5389 | clobbered by the vfork. */ | |
5390 | static void | |
5391 | #ifdef __cplusplus | |
5392 | sparc_address_test (int arg) | |
5393 | # else | |
5394 | sparc_address_test (arg) int arg; | |
5395 | #endif | |
5396 | { | |
5397 | static pid_t child; | |
5398 | if (!child) { | |
5399 | child = vfork (); | |
5400 | if (child < 0) { | |
5401 | perror ("vfork"); | |
5402 | _exit(2); | |
5403 | } | |
5404 | if (!child) { | |
5405 | arg = getpid(); | |
5406 | write(-1, "", 0); | |
5407 | _exit (arg); | |
5408 | } | |
5409 | } | |
5410 | } | |
5411 | ||
5412 | int | |
5413 | main () | |
5414 | { | |
5415 | pid_t parent = getpid (); | |
5416 | pid_t child; | |
5417 | ||
5418 | sparc_address_test (0); | |
5419 | ||
5420 | child = vfork (); | |
5421 | ||
5422 | if (child == 0) { | |
5423 | /* Here is another test for sparc vfork register problems. This | |
5424 | test uses lots of local variables, at least as many local | |
5425 | variables as main has allocated so far including compiler | |
5426 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5427 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5428 | reuse the register of parent for one of the local variables, | |
5429 | since it will think that parent can't possibly be used any more | |
5430 | in this routine. Assigning to the local variable will thus | |
5431 | munge parent in the parent process. */ | |
5432 | pid_t | |
5433 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5434 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5435 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5436 | use the same hardware register for all 8 local variables. */ | |
5437 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5438 | || p != p5 || p != p6 || p != p7) | |
5439 | _exit(1); | |
5440 | ||
5441 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5442 | from child file descriptors. If the child closes a descriptor | |
5443 | before it execs or exits, this munges the parent's descriptor | |
5444 | as well. Test for this by closing stdout in the child. */ | |
5445 | _exit(close(fileno(stdout)) != 0); | |
5446 | } else { | |
5447 | int status; | |
5448 | struct stat st; | |
5449 | ||
5450 | while (wait(&status) != child) | |
5451 | ; | |
5452 | exit( | |
5453 | /* Was there some problem with vforking? */ | |
5454 | child < 0 | |
5455 | ||
5456 | /* Did the child fail? (This shouldn't happen.) */ | |
5457 | || status | |
5458 | ||
5459 | /* Did the vfork/compiler bug occur? */ | |
5460 | || parent != getpid() | |
5461 | ||
5462 | /* Did the file descriptor bug occur? */ | |
5463 | || fstat(fileno(stdout), &st) != 0 | |
5464 | ); | |
5465 | } | |
5466 | } | |
5467 | _ACEOF | |
5468 | rm -f conftest$ac_exeext | |
5469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5470 | (eval $ac_link) 2>&5 | |
5471 | ac_status=$? | |
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5475 | (eval $ac_try) 2>&5 | |
5476 | ac_status=$? | |
5477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5478 | (exit $ac_status); }; }; then | |
5479 | ac_cv_func_vfork_works=yes | |
5480 | else | |
5481 | echo "$as_me: program exited with status $ac_status" >&5 | |
5482 | echo "$as_me: failed program was:" >&5 | |
5483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5484 | ||
5485 | ( exit $ac_status ) | |
5486 | ac_cv_func_vfork_works=no | |
5487 | fi | |
c1c065a3 | 5488 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5489 | fi |
5490 | fi | |
5491 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5492 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5493 | ||
5494 | fi; | |
5495 | if test "x$ac_cv_func_fork_works" = xcross; then | |
c1c065a3 | 5496 | ac_cv_func_vfork_works=ac_cv_func_vfork |
ad6254c5 AK |
5497 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5498 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5499 | fi | |
5500 | ||
5501 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5502 | ||
5503 | cat >>confdefs.h <<\_ACEOF | |
5504 | #define HAVE_WORKING_VFORK 1 | |
5505 | _ACEOF | |
5506 | ||
5507 | else | |
5508 | ||
5509 | cat >>confdefs.h <<\_ACEOF | |
5510 | #define vfork fork | |
5511 | _ACEOF | |
5512 | ||
5513 | fi | |
5514 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5515 | ||
5516 | cat >>confdefs.h <<\_ACEOF | |
5517 | #define HAVE_WORKING_FORK 1 | |
5518 | _ACEOF | |
5519 | ||
5520 | fi | |
5521 | ||
5522 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5523 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5524 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5526 | else | |
5527 | rm -f conftest.sym conftest.file | |
5528 | echo >conftest.file | |
5529 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5530 | if test "$cross_compiling" = yes; then | |
5531 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5532 | else | |
5533 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5534 | #line $LINENO "configure" |
ad6254c5 AK |
5535 | /* confdefs.h. */ |
5536 | _ACEOF | |
5537 | cat confdefs.h >>conftest.$ac_ext | |
5538 | cat >>conftest.$ac_ext <<_ACEOF | |
5539 | /* end confdefs.h. */ | |
5540 | $ac_includes_default | |
5541 | int | |
5542 | main () | |
5543 | { | |
5544 | struct stat sbuf; | |
5545 | /* Linux will dereference the symlink and fail. | |
c1c065a3 AK |
5546 | That is better in the sense that it means we will not |
5547 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
5548 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
5549 | ; | |
5550 | return 0; | |
5551 | } | |
5552 | _ACEOF | |
5553 | rm -f conftest$ac_exeext | |
5554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5555 | (eval $ac_link) 2>&5 | |
5556 | ac_status=$? | |
5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5558 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5560 | (eval $ac_try) 2>&5 | |
5561 | ac_status=$? | |
5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5563 | (exit $ac_status); }; }; then | |
5564 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5565 | else | |
5566 | echo "$as_me: program exited with status $ac_status" >&5 | |
5567 | echo "$as_me: failed program was:" >&5 | |
5568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5569 | ||
5570 | ( exit $ac_status ) | |
5571 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5572 | fi | |
c1c065a3 | 5573 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5574 | fi |
5575 | else | |
5576 | # If the `ln -s' command failed, then we probably don't even | |
5577 | # have an lstat function. | |
5578 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5579 | fi | |
5580 | rm -f conftest.sym conftest.file | |
5581 | ||
5582 | fi | |
5583 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5584 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
5585 | ||
5586 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5587 | ||
5588 | cat >>confdefs.h <<_ACEOF | |
5589 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5590 | _ACEOF | |
5591 | ||
5592 | ||
5593 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
c1c065a3 | 5594 | LIBOBJS="$LIBOBJS lstat.$ac_objext" |
ad6254c5 AK |
5595 | fi |
5596 | ||
5597 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
5598 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
5599 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
5600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5601 | else | |
5602 | if test "$cross_compiling" = yes; then | |
5603 | ac_cv_func_lstat_empty_string_bug=yes | |
5604 | else | |
5605 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5606 | #line $LINENO "configure" |
ad6254c5 AK |
5607 | /* confdefs.h. */ |
5608 | _ACEOF | |
5609 | cat confdefs.h >>conftest.$ac_ext | |
5610 | cat >>conftest.$ac_ext <<_ACEOF | |
5611 | /* end confdefs.h. */ | |
5612 | $ac_includes_default | |
5613 | int | |
5614 | main () | |
5615 | { | |
5616 | struct stat sbuf; | |
5617 | exit (lstat ("", &sbuf) ? 1 : 0); | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5622 | rm -f conftest$ac_exeext | |
5623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5624 | (eval $ac_link) 2>&5 | |
5625 | ac_status=$? | |
5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5629 | (eval $ac_try) 2>&5 | |
5630 | ac_status=$? | |
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5632 | (exit $ac_status); }; }; then | |
5633 | ac_cv_func_lstat_empty_string_bug=yes | |
5634 | else | |
5635 | echo "$as_me: program exited with status $ac_status" >&5 | |
5636 | echo "$as_me: failed program was:" >&5 | |
5637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5638 | ||
5639 | ( exit $ac_status ) | |
5640 | ac_cv_func_lstat_empty_string_bug=no | |
5641 | fi | |
c1c065a3 | 5642 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5643 | fi |
5644 | fi | |
5645 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
5646 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
5647 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
c1c065a3 | 5648 | LIBOBJS="$LIBOBJS lstat.$ac_objext" |
ad6254c5 AK |
5649 | |
5650 | cat >>confdefs.h <<_ACEOF | |
5651 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
5652 | _ACEOF | |
5653 | ||
5654 | fi | |
5655 | ||
5656 | ||
5657 | for ac_header in stdlib.h | |
5658 | do | |
5659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5665 | fi | |
5666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5668 | else | |
5669 | # Is the header compilable? | |
5670 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5671 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5672 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5673 | #line $LINENO "configure" |
ad6254c5 AK |
5674 | /* confdefs.h. */ |
5675 | _ACEOF | |
5676 | cat confdefs.h >>conftest.$ac_ext | |
5677 | cat >>conftest.$ac_ext <<_ACEOF | |
5678 | /* end confdefs.h. */ | |
5679 | $ac_includes_default | |
5680 | #include <$ac_header> | |
5681 | _ACEOF | |
5682 | rm -f conftest.$ac_objext | |
5683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 5684 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
5685 | ac_status=$? |
5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5687 | (exit $ac_status); } && | |
c1c065a3 | 5688 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
5689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5690 | (eval $ac_try) 2>&5 | |
5691 | ac_status=$? | |
5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5693 | (exit $ac_status); }; }; then | |
5694 | ac_header_compiler=yes | |
5695 | else | |
5696 | echo "$as_me: failed program was:" >&5 | |
5697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5698 | ||
5699 | ac_header_compiler=no | |
5700 | fi | |
c1c065a3 | 5701 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5702 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5703 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5704 | ||
5705 | # Is the header present? | |
5706 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5707 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5708 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5709 | #line $LINENO "configure" |
ad6254c5 AK |
5710 | /* confdefs.h. */ |
5711 | _ACEOF | |
5712 | cat confdefs.h >>conftest.$ac_ext | |
5713 | cat >>conftest.$ac_ext <<_ACEOF | |
5714 | /* end confdefs.h. */ | |
5715 | #include <$ac_header> | |
5716 | _ACEOF | |
5717 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5718 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5719 | ac_status=$? | |
5720 | grep -v '^ *+' conftest.er1 >conftest.err | |
5721 | rm -f conftest.er1 | |
5722 | cat conftest.err >&5 | |
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5724 | (exit $ac_status); } >/dev/null; then | |
5725 | if test -s conftest.err; then | |
5726 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5727 | else | |
5728 | ac_cpp_err= | |
5729 | fi | |
5730 | else | |
5731 | ac_cpp_err=yes | |
5732 | fi | |
5733 | if test -z "$ac_cpp_err"; then | |
5734 | ac_header_preproc=yes | |
5735 | else | |
5736 | echo "$as_me: failed program was:" >&5 | |
5737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5738 | ||
5739 | ac_header_preproc=no | |
5740 | fi | |
5741 | rm -f conftest.err conftest.$ac_ext | |
5742 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5743 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5744 | ||
5745 | # So? What about this header? | |
c1c065a3 AK |
5746 | case $ac_header_compiler:$ac_header_preproc in |
5747 | yes:no ) | |
ad6254c5 AK |
5748 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5749 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
5750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5752 | ( | |
5753 | cat <<\_ASBOX | |
5754 | ## ------------------------------------ ## | |
5755 | ## Report this to bug-autoconf@gnu.org. ## | |
5756 | ## ------------------------------------ ## | |
5757 | _ASBOX | |
5758 | ) | | |
5759 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 5760 | ;; |
c1c065a3 | 5761 | no:yes ) |
ad6254c5 AK |
5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5763 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5765 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
5766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5768 | ( | |
5769 | cat <<\_ASBOX | |
c1c065a3 AK |
5770 | ## ------------------------------------ ## |
5771 | ## Report this to bug-autoconf@gnu.org. ## | |
5772 | ## ------------------------------------ ## | |
ad6254c5 AK |
5773 | _ASBOX |
5774 | ) | | |
5775 | sed "s/^/$as_me: WARNING: /" >&2 | |
5776 | ;; | |
5777 | esac | |
5778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5782 | else | |
c1c065a3 | 5783 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
5784 | fi |
5785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5787 | ||
5788 | fi | |
5789 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5790 | cat >>confdefs.h <<_ACEOF | |
5791 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5792 | _ACEOF | |
5793 | ||
5794 | fi | |
5795 | ||
5796 | done | |
5797 | ||
5798 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
5799 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
5800 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
5801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5802 | else | |
5803 | if test "$cross_compiling" = yes; then | |
5804 | ac_cv_func_malloc_0_nonnull=no | |
5805 | else | |
5806 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5807 | #line $LINENO "configure" |
ad6254c5 AK |
5808 | /* confdefs.h. */ |
5809 | _ACEOF | |
5810 | cat confdefs.h >>conftest.$ac_ext | |
5811 | cat >>conftest.$ac_ext <<_ACEOF | |
5812 | /* end confdefs.h. */ | |
5813 | #if STDC_HEADERS || HAVE_STDLIB_H | |
5814 | # include <stdlib.h> | |
5815 | #else | |
5816 | char *malloc (); | |
5817 | #endif | |
5818 | ||
5819 | int | |
5820 | main () | |
5821 | { | |
5822 | exit (malloc (0) ? 0 : 1); | |
5823 | ; | |
5824 | return 0; | |
5825 | } | |
5826 | _ACEOF | |
5827 | rm -f conftest$ac_exeext | |
5828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5829 | (eval $ac_link) 2>&5 | |
5830 | ac_status=$? | |
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5834 | (eval $ac_try) 2>&5 | |
5835 | ac_status=$? | |
5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5837 | (exit $ac_status); }; }; then | |
5838 | ac_cv_func_malloc_0_nonnull=yes | |
5839 | else | |
5840 | echo "$as_me: program exited with status $ac_status" >&5 | |
5841 | echo "$as_me: failed program was:" >&5 | |
5842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5843 | ||
5844 | ( exit $ac_status ) | |
5845 | ac_cv_func_malloc_0_nonnull=no | |
5846 | fi | |
c1c065a3 | 5847 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5848 | fi |
5849 | fi | |
5850 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
5851 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
5852 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
5853 | ||
5854 | cat >>confdefs.h <<\_ACEOF | |
5855 | #define HAVE_MALLOC 1 | |
5856 | _ACEOF | |
5857 | ||
5858 | else | |
5859 | cat >>confdefs.h <<\_ACEOF | |
5860 | #define HAVE_MALLOC 0 | |
5861 | _ACEOF | |
5862 | ||
c1c065a3 | 5863 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
ad6254c5 AK |
5864 | |
5865 | cat >>confdefs.h <<\_ACEOF | |
5866 | #define malloc rpl_malloc | |
5867 | _ACEOF | |
5868 | ||
5869 | fi | |
5870 | ||
5871 | ||
5872 | ||
5873 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
5874 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
5875 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
5876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5877 | else | |
5878 | if test "$cross_compiling" = yes; then | |
5879 | ac_cv_func_memcmp_working=no | |
5880 | else | |
5881 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5882 | #line $LINENO "configure" |
ad6254c5 AK |
5883 | /* confdefs.h. */ |
5884 | _ACEOF | |
5885 | cat confdefs.h >>conftest.$ac_ext | |
5886 | cat >>conftest.$ac_ext <<_ACEOF | |
5887 | /* end confdefs.h. */ | |
c1c065a3 | 5888 | |
ad6254c5 AK |
5889 | int |
5890 | main () | |
5891 | { | |
5892 | ||
5893 | /* Some versions of memcmp are not 8-bit clean. */ | |
5894 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
5895 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
5896 | exit (1); | |
5897 | ||
5898 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
5899 | or more and with at least one buffer not starting on a 4-byte boundary. | |
5900 | William Lewis provided this test program. */ | |
5901 | { | |
5902 | char foo[21]; | |
5903 | char bar[21]; | |
5904 | int i; | |
5905 | for (i = 0; i < 4; i++) | |
5906 | { | |
c1c065a3 AK |
5907 | char *a = foo + i; |
5908 | char *b = bar + i; | |
5909 | strcpy (a, "--------01111111"); | |
5910 | strcpy (b, "--------10000000"); | |
5911 | if (memcmp (a, b, 16) >= 0) | |
5912 | exit (1); | |
ad6254c5 AK |
5913 | } |
5914 | exit (0); | |
5915 | } | |
5916 | ||
5917 | ; | |
5918 | return 0; | |
5919 | } | |
5920 | _ACEOF | |
5921 | rm -f conftest$ac_exeext | |
5922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5923 | (eval $ac_link) 2>&5 | |
5924 | ac_status=$? | |
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5928 | (eval $ac_try) 2>&5 | |
5929 | ac_status=$? | |
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5931 | (exit $ac_status); }; }; then | |
5932 | ac_cv_func_memcmp_working=yes | |
5933 | else | |
5934 | echo "$as_me: program exited with status $ac_status" >&5 | |
5935 | echo "$as_me: failed program was:" >&5 | |
5936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5937 | ||
5938 | ( exit $ac_status ) | |
5939 | ac_cv_func_memcmp_working=no | |
5940 | fi | |
c1c065a3 | 5941 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5942 | fi |
5943 | fi | |
5944 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
5945 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
c1c065a3 | 5946 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
ad6254c5 AK |
5947 | |
5948 | ||
5949 | ||
5950 | for ac_header in stdlib.h unistd.h | |
5951 | do | |
5952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5954 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5958 | fi | |
5959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5961 | else | |
5962 | # Is the header compilable? | |
5963 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5964 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5965 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 5966 | #line $LINENO "configure" |
ad6254c5 AK |
5967 | /* confdefs.h. */ |
5968 | _ACEOF | |
5969 | cat confdefs.h >>conftest.$ac_ext | |
5970 | cat >>conftest.$ac_ext <<_ACEOF | |
5971 | /* end confdefs.h. */ | |
5972 | $ac_includes_default | |
5973 | #include <$ac_header> | |
5974 | _ACEOF | |
5975 | rm -f conftest.$ac_objext | |
5976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 5977 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
5978 | ac_status=$? |
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5980 | (exit $ac_status); } && | |
c1c065a3 | 5981 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
5982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5983 | (eval $ac_try) 2>&5 | |
5984 | ac_status=$? | |
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5986 | (exit $ac_status); }; }; then | |
5987 | ac_header_compiler=yes | |
5988 | else | |
5989 | echo "$as_me: failed program was:" >&5 | |
5990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5991 | ||
5992 | ac_header_compiler=no | |
5993 | fi | |
c1c065a3 | 5994 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5995 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5996 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5997 | ||
5998 | # Is the header present? | |
5999 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6001 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6002 | #line $LINENO "configure" |
ad6254c5 AK |
6003 | /* confdefs.h. */ |
6004 | _ACEOF | |
6005 | cat confdefs.h >>conftest.$ac_ext | |
6006 | cat >>conftest.$ac_ext <<_ACEOF | |
6007 | /* end confdefs.h. */ | |
6008 | #include <$ac_header> | |
6009 | _ACEOF | |
6010 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6011 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6012 | ac_status=$? | |
6013 | grep -v '^ *+' conftest.er1 >conftest.err | |
6014 | rm -f conftest.er1 | |
6015 | cat conftest.err >&5 | |
6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6017 | (exit $ac_status); } >/dev/null; then | |
6018 | if test -s conftest.err; then | |
6019 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6020 | else | |
6021 | ac_cpp_err= | |
6022 | fi | |
6023 | else | |
6024 | ac_cpp_err=yes | |
6025 | fi | |
6026 | if test -z "$ac_cpp_err"; then | |
6027 | ac_header_preproc=yes | |
6028 | else | |
6029 | echo "$as_me: failed program was:" >&5 | |
6030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6031 | ||
6032 | ac_header_preproc=no | |
6033 | fi | |
6034 | rm -f conftest.err conftest.$ac_ext | |
6035 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6036 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6037 | ||
6038 | # So? What about this header? | |
c1c065a3 AK |
6039 | case $ac_header_compiler:$ac_header_preproc in |
6040 | yes:no ) | |
ad6254c5 AK |
6041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
6043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6045 | ( | |
6046 | cat <<\_ASBOX | |
6047 | ## ------------------------------------ ## | |
6048 | ## Report this to bug-autoconf@gnu.org. ## | |
6049 | ## ------------------------------------ ## | |
6050 | _ASBOX | |
6051 | ) | | |
6052 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 6053 | ;; |
c1c065a3 | 6054 | no:yes ) |
ad6254c5 AK |
6055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
6057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
6059 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6060 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6061 | ( | |
6062 | cat <<\_ASBOX | |
c1c065a3 AK |
6063 | ## ------------------------------------ ## |
6064 | ## Report this to bug-autoconf@gnu.org. ## | |
6065 | ## ------------------------------------ ## | |
ad6254c5 AK |
6066 | _ASBOX |
6067 | ) | | |
6068 | sed "s/^/$as_me: WARNING: /" >&2 | |
6069 | ;; | |
6070 | esac | |
6071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6075 | else | |
c1c065a3 | 6076 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
6077 | fi |
6078 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6079 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6080 | ||
6081 | fi | |
6082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6083 | cat >>confdefs.h <<_ACEOF | |
6084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6085 | _ACEOF | |
6086 | ||
6087 | fi | |
6088 | ||
6089 | done | |
6090 | ||
6091 | ||
6092 | for ac_func in getpagesize | |
6093 | do | |
6094 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6095 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6096 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6097 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6099 | else | |
6100 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6101 | #line $LINENO "configure" |
ad6254c5 AK |
6102 | /* confdefs.h. */ |
6103 | _ACEOF | |
6104 | cat confdefs.h >>conftest.$ac_ext | |
6105 | cat >>conftest.$ac_ext <<_ACEOF | |
6106 | /* end confdefs.h. */ | |
6107 | /* System header to define __stub macros and hopefully few prototypes, | |
6108 | which can conflict with char $ac_func (); below. | |
6109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6110 | <limits.h> exists even on freestanding compilers. */ | |
6111 | #ifdef __STDC__ | |
6112 | # include <limits.h> | |
6113 | #else | |
6114 | # include <assert.h> | |
6115 | #endif | |
6116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6117 | #ifdef __cplusplus | |
6118 | extern "C" | |
6119 | { | |
6120 | #endif | |
6121 | /* We use char because int might match the return type of a gcc2 | |
6122 | builtin and then its argument prototype would still apply. */ | |
6123 | char $ac_func (); | |
6124 | /* The GNU C library defines this for functions which it implements | |
6125 | to always fail with ENOSYS. Some functions are actually named | |
6126 | something starting with __ and the normal name is an alias. */ | |
6127 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6128 | choke me | |
6129 | #else | |
6130 | char (*f) () = $ac_func; | |
6131 | #endif | |
6132 | #ifdef __cplusplus | |
6133 | } | |
6134 | #endif | |
6135 | ||
6136 | int | |
6137 | main () | |
6138 | { | |
6139 | return f != $ac_func; | |
6140 | ; | |
6141 | return 0; | |
6142 | } | |
6143 | _ACEOF | |
6144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 6146 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
6147 | ac_status=$? |
6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6149 | (exit $ac_status); } && | |
c1c065a3 | 6150 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
6151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6152 | (eval $ac_try) 2>&5 | |
6153 | ac_status=$? | |
6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6155 | (exit $ac_status); }; }; then | |
6156 | eval "$as_ac_var=yes" | |
6157 | else | |
6158 | echo "$as_me: failed program was:" >&5 | |
6159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6160 | ||
6161 | eval "$as_ac_var=no" | |
6162 | fi | |
c1c065a3 | 6163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
6164 | fi |
6165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6166 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6167 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6168 | cat >>confdefs.h <<_ACEOF | |
6169 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6170 | _ACEOF | |
6171 | ||
6172 | fi | |
6173 | done | |
6174 | ||
6175 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6176 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6177 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6179 | else | |
6180 | if test "$cross_compiling" = yes; then | |
6181 | ac_cv_func_mmap_fixed_mapped=no | |
6182 | else | |
6183 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6184 | #line $LINENO "configure" |
ad6254c5 AK |
6185 | /* confdefs.h. */ |
6186 | _ACEOF | |
6187 | cat confdefs.h >>conftest.$ac_ext | |
6188 | cat >>conftest.$ac_ext <<_ACEOF | |
6189 | /* end confdefs.h. */ | |
6190 | $ac_includes_default | |
6191 | /* malloc might have been renamed as rpl_malloc. */ | |
6192 | #undef malloc | |
6193 | ||
6194 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6195 | Here is a matrix of mmap possibilities: | |
6196 | mmap private not fixed | |
6197 | mmap private fixed at somewhere currently unmapped | |
6198 | mmap private fixed at somewhere already mapped | |
6199 | mmap shared not fixed | |
6200 | mmap shared fixed at somewhere currently unmapped | |
6201 | mmap shared fixed at somewhere already mapped | |
6202 | For private mappings, we should verify that changes cannot be read() | |
6203 | back from the file, nor mmap's back from the file at a different | |
6204 | address. (There have been systems where private was not correctly | |
6205 | implemented like the infamous i386 svr4.0, and systems where the | |
6206 | VM page cache was not coherent with the file system buffer cache | |
6207 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6208 | For shared mappings, we should conversely verify that changes get | |
6209 | propagated back to all the places they're supposed to be. | |
6210 | ||
6211 | Grep wants private fixed already mapped. | |
6212 | The main things grep needs to know about mmap are: | |
6213 | * does it exist and is it safe to write into the mmap'd area | |
6214 | * how to use it (BSD variants) */ | |
6215 | ||
6216 | #include <fcntl.h> | |
6217 | #include <sys/mman.h> | |
6218 | ||
6219 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6220 | char *malloc (); | |
6221 | #endif | |
6222 | ||
6223 | /* This mess was copied from the GNU getpagesize.h. */ | |
6224 | #if !HAVE_GETPAGESIZE | |
6225 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6226 | # if !HAVE_SYS_PARAM_H | |
6227 | # define HAVE_SYS_PARAM_H 1 | |
6228 | # endif | |
6229 | ||
6230 | # ifdef _SC_PAGESIZE | |
6231 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6232 | # else /* no _SC_PAGESIZE */ | |
6233 | # if HAVE_SYS_PARAM_H | |
6234 | # include <sys/param.h> | |
6235 | # ifdef EXEC_PAGESIZE | |
6236 | # define getpagesize() EXEC_PAGESIZE | |
6237 | # else /* no EXEC_PAGESIZE */ | |
6238 | # ifdef NBPG | |
6239 | # define getpagesize() NBPG * CLSIZE | |
6240 | # ifndef CLSIZE | |
6241 | # define CLSIZE 1 | |
6242 | # endif /* no CLSIZE */ | |
6243 | # else /* no NBPG */ | |
6244 | # ifdef NBPC | |
6245 | # define getpagesize() NBPC | |
6246 | # else /* no NBPC */ | |
6247 | # ifdef PAGESIZE | |
6248 | # define getpagesize() PAGESIZE | |
6249 | # endif /* PAGESIZE */ | |
6250 | # endif /* no NBPC */ | |
6251 | # endif /* no NBPG */ | |
6252 | # endif /* no EXEC_PAGESIZE */ | |
6253 | # else /* no HAVE_SYS_PARAM_H */ | |
6254 | # define getpagesize() 8192 /* punt totally */ | |
6255 | # endif /* no HAVE_SYS_PARAM_H */ | |
6256 | # endif /* no _SC_PAGESIZE */ | |
6257 | ||
6258 | #endif /* no HAVE_GETPAGESIZE */ | |
6259 | ||
6260 | int | |
6261 | main () | |
6262 | { | |
6263 | char *data, *data2, *data3; | |
6264 | int i, pagesize; | |
6265 | int fd; | |
6266 | ||
6267 | pagesize = getpagesize (); | |
6268 | ||
6269 | /* First, make a file with some known garbage in it. */ | |
6270 | data = (char *) malloc (pagesize); | |
6271 | if (!data) | |
6272 | exit (1); | |
6273 | for (i = 0; i < pagesize; ++i) | |
6274 | *(data + i) = rand (); | |
6275 | umask (0); | |
6276 | fd = creat ("conftest.mmap", 0600); | |
6277 | if (fd < 0) | |
6278 | exit (1); | |
6279 | if (write (fd, data, pagesize) != pagesize) | |
6280 | exit (1); | |
6281 | close (fd); | |
6282 | ||
6283 | /* Next, try to mmap the file at a fixed address which already has | |
6284 | something else allocated at it. If we can, also make sure that | |
6285 | we see the same garbage. */ | |
6286 | fd = open ("conftest.mmap", O_RDWR); | |
6287 | if (fd < 0) | |
6288 | exit (1); | |
6289 | data2 = (char *) malloc (2 * pagesize); | |
6290 | if (!data2) | |
6291 | exit (1); | |
c1c065a3 | 6292 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6293 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
c1c065a3 | 6294 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6295 | exit (1); |
6296 | for (i = 0; i < pagesize; ++i) | |
6297 | if (*(data + i) != *(data2 + i)) | |
6298 | exit (1); | |
6299 | ||
6300 | /* Finally, make sure that changes to the mapped area do not | |
6301 | percolate back to the file as seen by read(). (This is a bug on | |
6302 | some variants of i386 svr4.0.) */ | |
6303 | for (i = 0; i < pagesize; ++i) | |
6304 | *(data2 + i) = *(data2 + i) + 1; | |
6305 | data3 = (char *) malloc (pagesize); | |
6306 | if (!data3) | |
6307 | exit (1); | |
6308 | if (read (fd, data3, pagesize) != pagesize) | |
6309 | exit (1); | |
6310 | for (i = 0; i < pagesize; ++i) | |
6311 | if (*(data + i) != *(data3 + i)) | |
6312 | exit (1); | |
6313 | close (fd); | |
6314 | exit (0); | |
6315 | } | |
6316 | _ACEOF | |
6317 | rm -f conftest$ac_exeext | |
6318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6319 | (eval $ac_link) 2>&5 | |
6320 | ac_status=$? | |
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6324 | (eval $ac_try) 2>&5 | |
6325 | ac_status=$? | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); }; }; then | |
6328 | ac_cv_func_mmap_fixed_mapped=yes | |
6329 | else | |
6330 | echo "$as_me: program exited with status $ac_status" >&5 | |
6331 | echo "$as_me: failed program was:" >&5 | |
6332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6333 | ||
6334 | ( exit $ac_status ) | |
6335 | ac_cv_func_mmap_fixed_mapped=no | |
6336 | fi | |
c1c065a3 | 6337 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6338 | fi |
6339 | fi | |
6340 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6341 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6342 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6343 | ||
6344 | cat >>confdefs.h <<\_ACEOF | |
6345 | #define HAVE_MMAP 1 | |
6346 | _ACEOF | |
6347 | ||
6348 | fi | |
6349 | rm -f conftest.mmap | |
6350 | ||
6351 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6352 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6353 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6355 | else | |
6356 | if test "$cross_compiling" = yes; then | |
6357 | ac_cv_func_stat_empty_string_bug=yes | |
6358 | else | |
6359 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6360 | #line $LINENO "configure" |
ad6254c5 AK |
6361 | /* confdefs.h. */ |
6362 | _ACEOF | |
6363 | cat confdefs.h >>conftest.$ac_ext | |
6364 | cat >>conftest.$ac_ext <<_ACEOF | |
6365 | /* end confdefs.h. */ | |
6366 | $ac_includes_default | |
6367 | int | |
6368 | main () | |
6369 | { | |
6370 | struct stat sbuf; | |
6371 | exit (stat ("", &sbuf) ? 1 : 0); | |
6372 | ; | |
6373 | return 0; | |
6374 | } | |
6375 | _ACEOF | |
6376 | rm -f conftest$ac_exeext | |
6377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6378 | (eval $ac_link) 2>&5 | |
6379 | ac_status=$? | |
6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6381 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6383 | (eval $ac_try) 2>&5 | |
6384 | ac_status=$? | |
6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6386 | (exit $ac_status); }; }; then | |
6387 | ac_cv_func_stat_empty_string_bug=yes | |
6388 | else | |
6389 | echo "$as_me: program exited with status $ac_status" >&5 | |
6390 | echo "$as_me: failed program was:" >&5 | |
6391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6392 | ||
6393 | ( exit $ac_status ) | |
6394 | ac_cv_func_stat_empty_string_bug=no | |
6395 | fi | |
c1c065a3 | 6396 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6397 | fi |
6398 | fi | |
6399 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6400 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6401 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
c1c065a3 | 6402 | LIBOBJS="$LIBOBJS stat.$ac_objext" |
ad6254c5 AK |
6403 | |
6404 | cat >>confdefs.h <<_ACEOF | |
6405 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6406 | _ACEOF | |
6407 | ||
6408 | fi | |
6409 | ||
6410 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6411 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6412 | if test "${ac_cv_func_strtod+set}" = set; then | |
6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6414 | else | |
6415 | if test "$cross_compiling" = yes; then | |
6416 | ac_cv_func_strtod=no | |
6417 | else | |
6418 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6419 | #line $LINENO "configure" |
ad6254c5 AK |
6420 | /* confdefs.h. */ |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | ||
6426 | double strtod (); | |
6427 | int | |
6428 | main() | |
6429 | { | |
6430 | { | |
6431 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6432 | char *string = " +69"; | |
6433 | char *term; | |
6434 | double value; | |
6435 | value = strtod (string, &term); | |
6436 | if (value != 69 || term != (string + 4)) | |
6437 | exit (1); | |
6438 | } | |
6439 | ||
6440 | { | |
6441 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6442 | terminating character under some conditions. */ | |
6443 | char *string = "NaN"; | |
6444 | char *term; | |
6445 | strtod (string, &term); | |
6446 | if (term != string && *(term - 1) == 0) | |
6447 | exit (1); | |
6448 | } | |
6449 | exit (0); | |
6450 | } | |
6451 | ||
6452 | _ACEOF | |
6453 | rm -f conftest$ac_exeext | |
6454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6455 | (eval $ac_link) 2>&5 | |
6456 | ac_status=$? | |
6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6458 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6460 | (eval $ac_try) 2>&5 | |
6461 | ac_status=$? | |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6463 | (exit $ac_status); }; }; then | |
6464 | ac_cv_func_strtod=yes | |
6465 | else | |
6466 | echo "$as_me: program exited with status $ac_status" >&5 | |
6467 | echo "$as_me: failed program was:" >&5 | |
6468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6469 | ||
6470 | ( exit $ac_status ) | |
6471 | ac_cv_func_strtod=no | |
6472 | fi | |
c1c065a3 | 6473 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6474 | fi |
6475 | fi | |
6476 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6477 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6478 | if test $ac_cv_func_strtod = no; then | |
c1c065a3 | 6479 | LIBOBJS="$LIBOBJS strtod.$ac_objext" |
ad6254c5 AK |
6480 | echo "$as_me:$LINENO: checking for pow" >&5 |
6481 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
6482 | if test "${ac_cv_func_pow+set}" = set; then | |
6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6484 | else | |
6485 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6486 | #line $LINENO "configure" |
ad6254c5 AK |
6487 | /* confdefs.h. */ |
6488 | _ACEOF | |
6489 | cat confdefs.h >>conftest.$ac_ext | |
6490 | cat >>conftest.$ac_ext <<_ACEOF | |
6491 | /* end confdefs.h. */ | |
6492 | /* System header to define __stub macros and hopefully few prototypes, | |
6493 | which can conflict with char pow (); below. | |
6494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6495 | <limits.h> exists even on freestanding compilers. */ | |
6496 | #ifdef __STDC__ | |
6497 | # include <limits.h> | |
6498 | #else | |
6499 | # include <assert.h> | |
6500 | #endif | |
6501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6502 | #ifdef __cplusplus | |
6503 | extern "C" | |
6504 | { | |
6505 | #endif | |
6506 | /* We use char because int might match the return type of a gcc2 | |
6507 | builtin and then its argument prototype would still apply. */ | |
6508 | char pow (); | |
6509 | /* The GNU C library defines this for functions which it implements | |
6510 | to always fail with ENOSYS. Some functions are actually named | |
6511 | something starting with __ and the normal name is an alias. */ | |
6512 | #if defined (__stub_pow) || defined (__stub___pow) | |
6513 | choke me | |
6514 | #else | |
6515 | char (*f) () = pow; | |
6516 | #endif | |
6517 | #ifdef __cplusplus | |
6518 | } | |
6519 | #endif | |
6520 | ||
6521 | int | |
6522 | main () | |
6523 | { | |
6524 | return f != pow; | |
6525 | ; | |
6526 | return 0; | |
6527 | } | |
6528 | _ACEOF | |
6529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 6531 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
6532 | ac_status=$? |
6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6534 | (exit $ac_status); } && | |
c1c065a3 | 6535 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
6536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6537 | (eval $ac_try) 2>&5 | |
6538 | ac_status=$? | |
6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6540 | (exit $ac_status); }; }; then | |
6541 | ac_cv_func_pow=yes | |
6542 | else | |
6543 | echo "$as_me: failed program was:" >&5 | |
6544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6545 | ||
6546 | ac_cv_func_pow=no | |
6547 | fi | |
c1c065a3 | 6548 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
6549 | fi |
6550 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
6551 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
6552 | ||
6553 | if test $ac_cv_func_pow = no; then | |
6554 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
6555 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
6556 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6558 | else | |
6559 | ac_check_lib_save_LIBS=$LIBS | |
6560 | LIBS="-lm $LIBS" | |
6561 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6562 | #line $LINENO "configure" |
ad6254c5 AK |
6563 | /* confdefs.h. */ |
6564 | _ACEOF | |
6565 | cat confdefs.h >>conftest.$ac_ext | |
6566 | cat >>conftest.$ac_ext <<_ACEOF | |
6567 | /* end confdefs.h. */ | |
6568 | ||
6569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6570 | #ifdef __cplusplus | |
6571 | extern "C" | |
6572 | #endif | |
6573 | /* We use char because int might match the return type of a gcc2 | |
6574 | builtin and then its argument prototype would still apply. */ | |
6575 | char pow (); | |
6576 | int | |
6577 | main () | |
6578 | { | |
6579 | pow (); | |
6580 | ; | |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 6586 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
6587 | ac_status=$? |
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6589 | (exit $ac_status); } && | |
c1c065a3 | 6590 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6592 | (eval $ac_try) 2>&5 | |
6593 | ac_status=$? | |
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6595 | (exit $ac_status); }; }; then | |
6596 | ac_cv_lib_m_pow=yes | |
6597 | else | |
6598 | echo "$as_me: failed program was:" >&5 | |
6599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6600 | ||
6601 | ac_cv_lib_m_pow=no | |
6602 | fi | |
c1c065a3 | 6603 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
6604 | LIBS=$ac_check_lib_save_LIBS |
6605 | fi | |
6606 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
6607 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
6608 | if test $ac_cv_lib_m_pow = yes; then | |
6609 | POW_LIB=-lm | |
6610 | else | |
6611 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
6612 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
6613 | fi | |
6614 | ||
6615 | fi | |
6616 | ||
6617 | fi | |
6618 | ||
6619 | ||
6620 | ################################################################################ | |
6621 | ||
6622 | ||
6623 | ################################################################################ | |
6624 | # Check whether --enable-jobs or --disable-jobs was given. | |
6625 | if test "${enable_jobs+set}" = set; then | |
6626 | enableval="$enable_jobs" | |
6627 | JOBS=-j$enableval | |
6628 | else | |
6629 | JOBS=-j2 | |
6630 | fi; | |
6631 | ||
6632 | ################################################################################ | |
6633 | echo "$as_me:$LINENO: checking file owner" >&5 | |
6634 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
6635 | OWNER="root" | |
6636 | ||
6637 | ||
6638 | # Check whether --with-user or --without-user was given. | |
6639 | if test "${with_user+set}" = set; then | |
6640 | withval="$with_user" | |
6641 | OWNER="$withval" | |
6642 | fi; | |
6643 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
6644 | echo "${ECHO_T}$OWNER" >&6 | |
6645 | ||
6646 | if test x$OWNER != x; then | |
6647 | OWNER="-o $OWNER" | |
6648 | fi | |
6649 | ||
6650 | ################################################################################ | |
6651 | echo "$as_me:$LINENO: checking group owner" >&5 | |
6652 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
6653 | GROUP="root" | |
6654 | ||
6655 | # Check whether --with-group or --without-group was given. | |
6656 | if test "${with_group+set}" = set; then | |
6657 | withval="$with_group" | |
6658 | GROUP="$withval" | |
6659 | fi; | |
6660 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
6661 | echo "${ECHO_T}$GROUP" >&6 | |
6662 | ||
6663 | if test x$GROUP != x; then | |
6664 | GROUP="-g $GROUP" | |
6665 | fi | |
6666 | ||
6667 | ################################################################################ | |
6668 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
6669 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
6670 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
6671 | if test "${enable_lvm1_fallback+set}" = set; then | |
6672 | enableval="$enable_lvm1_fallback" | |
6673 | LVM1_FALLBACK=$enableval | |
6674 | else | |
6675 | LVM1_FALLBACK=no | |
6676 | fi; | |
6677 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
6678 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
6679 | ||
6680 | if test x$LVM1_FALLBACK = xyes; then | |
6681 | CFLAGS="$CFLAGS -DLVM1_FALLBACK" | |
6682 | fi | |
6683 | ||
6684 | ################################################################################ | |
6685 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
6686 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
6687 | ||
6688 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
6689 | if test "${with_lvm1+set}" = set; then | |
6690 | withval="$with_lvm1" | |
6691 | LVM1="$withval" | |
6692 | else | |
6693 | LVM1="internal" | |
6694 | fi; | |
6695 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
6696 | echo "${ECHO_T}$LVM1" >&6 | |
6697 | ||
6698 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6699 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
6700 | " >&5 | |
6701 | echo "$as_me: error: --with-lvm1 parameter invalid | |
6702 | " >&2;} | |
6703 | { (exit 1); exit 1; }; } | |
6704 | fi; | |
6705 | ||
6706 | if test x$LVM1 = xinternal; then | |
6707 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
6708 | fi | |
6709 | ||
6710 | ################################################################################ | |
6711 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
6712 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
6713 | ||
6714 | # Check whether --with-pool or --without-pool was given. | |
6715 | if test "${with_pool+set}" = set; then | |
6716 | withval="$with_pool" | |
6717 | POOL="$withval" | |
6718 | else | |
6719 | POOL="internal" | |
6720 | fi; | |
6721 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
6722 | echo "${ECHO_T}$POOL" >&6 | |
6723 | ||
6724 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6725 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
6726 | " >&5 | |
6727 | echo "$as_me: error: --with-pool parameter invalid | |
6728 | " >&2;} | |
6729 | { (exit 1); exit 1; }; } | |
6730 | fi; | |
6731 | ||
6732 | if test x$POOL = xinternal; then | |
6733 | CFLAGS="$CFLAGS -DPOOL_INTERNAL" | |
6734 | fi | |
6735 | ||
6736 | ################################################################################ | |
6737 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
6738 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
6739 | ||
6740 | # Check whether --with-cluster or --without-cluster was given. | |
6741 | if test "${with_cluster+set}" = set; then | |
6742 | withval="$with_cluster" | |
6743 | CLUSTER="$withval" | |
6744 | fi; | |
6745 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
6746 | echo "${ECHO_T}$CLUSTER" >&6 | |
6747 | ||
6748 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
6749 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
6750 | " >&5 | |
6751 | echo "$as_me: error: --with-cluster parameter invalid | |
6752 | " >&2;} | |
6753 | { (exit 1); exit 1; }; } | |
6754 | fi; | |
6755 | ||
6756 | if test x$CLUSTER = xinternal; then | |
6757 | CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL" | |
6758 | fi | |
6759 | ||
6760 | ################################################################################ | |
6761 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
6762 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
6763 | ||
6764 | # Check whether --with-snapshots or --without-snapshots was given. | |
6765 | if test "${with_snapshots+set}" = set; then | |
6766 | withval="$with_snapshots" | |
6767 | SNAPSHOTS="$withval" | |
6768 | else | |
6769 | SNAPSHOTS="internal" | |
6770 | fi; | |
6771 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
6772 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
6773 | ||
6774 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
6775 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
6776 | " >&5 | |
6777 | echo "$as_me: error: --with-snapshots parameter invalid | |
6778 | " >&2;} | |
6779 | { (exit 1); exit 1; }; } | |
6780 | fi; | |
6781 | ||
6782 | if test x$SNAPSHOTS = xinternal; then | |
6783 | CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL" | |
6784 | fi | |
6785 | ||
6786 | ################################################################################ | |
6787 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
6788 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
6789 | ||
6790 | # Check whether --with-mirrors or --without-mirrors was given. | |
6791 | if test "${with_mirrors+set}" = set; then | |
6792 | withval="$with_mirrors" | |
6793 | MIRRORS="$withval" | |
6794 | else | |
6795 | MIRRORS="internal" | |
6796 | fi; | |
6797 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
6798 | echo "${ECHO_T}$MIRRORS" >&6 | |
6799 | ||
6800 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
6801 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
6802 | " >&5 | |
6803 | echo "$as_me: error: --with-mirrors parameter invalid | |
6804 | " >&2;} | |
6805 | { (exit 1); exit 1; }; } | |
6806 | fi; | |
6807 | ||
6808 | if test x$MIRRORS = xinternal; then | |
6809 | CFLAGS="$CFLAGS -DMIRRORED_INTERNAL" | |
6810 | fi | |
6811 | ||
6812 | ################################################################################ | |
6813 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
6814 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
6815 | # Check whether --enable-static_link or --disable-static_link was given. | |
6816 | if test "${enable_static_link+set}" = set; then | |
6817 | enableval="$enable_static_link" | |
6818 | STATIC_LINK=$enableval | |
6819 | else | |
6820 | STATIC_LINK=no | |
6821 | fi; | |
6822 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
6823 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
6824 | ||
6825 | ################################################################################ | |
6826 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
6827 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
6828 | # Check whether --enable-readline or --disable-readline was given. | |
6829 | if test "${enable_readline+set}" = set; then | |
6830 | enableval="$enable_readline" | |
6831 | READLINE=$enableval | |
6832 | else | |
6833 | READLINE=no | |
6834 | fi; | |
6835 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
6836 | echo "${ECHO_T}$READLINE" >&6 | |
6837 | ||
6838 | if test x$READLINE = xyes; then | |
6839 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
6840 | fi | |
6841 | ||
6842 | ################################################################################ | |
6843 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
6844 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
6845 | # Check whether --enable-selinux or --disable-selinux was given. | |
6846 | if test "${enable_selinux+set}" = set; then | |
6847 | enableval="$enable_selinux" | |
6848 | SELINUX=$enableval | |
6849 | fi; | |
6850 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
6851 | echo "${ECHO_T}$SELINUX" >&6 | |
6852 | ||
6853 | ################################################################################ | |
6854 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
6855 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
6856 | ||
6857 | # Check whether --with-clvmd or --without-clvmd was given. | |
6858 | if test "${with_clvmd+set}" = set; then | |
6859 | withval="$with_clvmd" | |
a266258f | 6860 | CLVMD="$withval" |
ad6254c5 | 6861 | else |
a266258f | 6862 | CLVMD="none" |
ad6254c5 | 6863 | fi; |
a266258f | 6864 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 6865 | CLVMD=all |
b1098701 | 6866 | fi |
ad6254c5 AK |
6867 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
6868 | echo "${ECHO_T}$CLVMD" >&6 | |
6869 | ||
a266258f | 6870 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
6871 | CLUSTER=internal |
6872 | fi | |
6873 | ||
6874 | ################################################################################ | |
6875 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
6876 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
6877 | # Check whether --enable-debug or --disable-debug was given. | |
6878 | if test "${enable_debug+set}" = set; then | |
6879 | enableval="$enable_debug" | |
6880 | DEBUG=$enableval | |
6881 | else | |
6882 | DEBUG=no | |
6883 | fi; | |
6884 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
6885 | echo "${ECHO_T}$DEBUG" >&6 | |
6886 | ||
6887 | if test x$DEBUG = xyes; then | |
6888 | COPTIMISE_FLAG= | |
6889 | fi | |
6890 | ||
6891 | ################################################################################ | |
6892 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
6893 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
6894 | ||
6895 | # Check whether --with-optimisation or --without-optimisation was given. | |
6896 | if test "${with_optimisation+set}" = set; then | |
6897 | withval="$with_optimisation" | |
6898 | COPTIMISE_FLAG="$withval" | |
6899 | fi; | |
6900 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
6901 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
6902 | ||
6903 | ################################################################################ | |
6904 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
6905 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
6906 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
6907 | if test "${enable_devmapper+set}" = set; then | |
6908 | enableval="$enable_devmapper" | |
6909 | DEVMAPPER=$enableval | |
6910 | fi; | |
6911 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
6912 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
6913 | ||
6914 | if test x$DEVMAPPER = xyes; then | |
6915 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
6916 | fi | |
6917 | ||
6918 | ################################################################################ | |
6919 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
6920 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
6921 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
6922 | if test "${enable_o_direct+set}" = set; then | |
6923 | enableval="$enable_o_direct" | |
6924 | ODIRECT=$enableval | |
6925 | fi; | |
6926 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
6927 | echo "${ECHO_T}$ODIRECT" >&6 | |
6928 | ||
6929 | if test x$ODIRECT = xyes; then | |
6930 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
6931 | fi | |
6932 | ||
6933 | ################################################################################ | |
6934 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
6935 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
6936 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
6937 | if test "${enable_cmdlib+set}" = set; then | |
6938 | enableval="$enable_cmdlib" | |
6939 | CMDLIB=$enableval | |
6940 | else | |
6941 | CMDLIB=no | |
6942 | fi; | |
6943 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
6944 | echo "${ECHO_T}$CMDLIB" >&6 | |
6945 | ||
59376640 | 6946 | if test x$CMDLIB = xyes; then |
ad6254c5 AK |
6947 | CFLAGS="$CFLAGS -DCMDLIB" |
6948 | fi | |
6949 | ||
6950 | ################################################################################ | |
6951 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
6952 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
6953 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
6954 | if test "${enable_fsadm+set}" = set; then | |
6955 | enableval="$enable_fsadm" | |
6956 | FSADM=$enableval | |
6957 | fi; | |
6958 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
6959 | echo "${ECHO_T}$FSADM" >&6 | |
6960 | ||
06f62ad1 AK |
6961 | ################################################################################ |
6962 | echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
6963 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6 | |
6964 | # Check whether --enable-dmeventd or --disable-dmeventd was given. | |
6965 | if test "${enable_dmeventd+set}" = set; then | |
6966 | enableval="$enable_dmeventd" | |
6967 | DMEVENTD=$enableval | |
6968 | fi; | |
6969 | echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
6970 | echo "${ECHO_T}$DMEVENTD" >&6 | |
6971 | ||
6972 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
6973 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
6974 | " >&5 | |
6975 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
6976 | " >&2;} | |
6977 | { (exit 1); exit 1; }; } | |
6978 | fi | |
6979 | ||
15d91f5a AK |
6980 | if test x$DMEVENTD = xyes; then |
6981 | CFLAGS="$CFLAGS -DDMEVENTD" | |
6982 | fi | |
ad6254c5 AK |
6983 | ################################################################################ |
6984 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
6985 | then exec_prefix=""; | |
6986 | fi; | |
6987 | ||
6988 | ################################################################################ | |
6989 | if test $ac_cv_c_compiler_gnu = yes; then | |
6990 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
6991 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
6992 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
6993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6994 | else | |
6995 | ac_pattern="Autoconf.*'x'" | |
6996 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 6997 | #line $LINENO "configure" |
ad6254c5 AK |
6998 | /* confdefs.h. */ |
6999 | _ACEOF | |
7000 | cat confdefs.h >>conftest.$ac_ext | |
7001 | cat >>conftest.$ac_ext <<_ACEOF | |
7002 | /* end confdefs.h. */ | |
7003 | #include <sgtty.h> | |
7004 | Autoconf TIOCGETP | |
7005 | _ACEOF | |
7006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7007 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7008 | ac_cv_prog_gcc_traditional=yes | |
7009 | else | |
7010 | ac_cv_prog_gcc_traditional=no | |
7011 | fi | |
7012 | rm -f conftest* | |
7013 | ||
7014 | ||
7015 | if test $ac_cv_prog_gcc_traditional = no; then | |
7016 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7017 | #line $LINENO "configure" |
ad6254c5 AK |
7018 | /* confdefs.h. */ |
7019 | _ACEOF | |
7020 | cat confdefs.h >>conftest.$ac_ext | |
7021 | cat >>conftest.$ac_ext <<_ACEOF | |
7022 | /* end confdefs.h. */ | |
7023 | #include <termio.h> | |
7024 | Autoconf TCGETA | |
7025 | _ACEOF | |
7026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7027 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7028 | ac_cv_prog_gcc_traditional=yes | |
7029 | fi | |
7030 | rm -f conftest* | |
7031 | ||
7032 | fi | |
7033 | fi | |
7034 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7035 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7036 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7037 | CC="$CC -traditional" | |
7038 | fi | |
7039 | fi | |
7040 | ||
7041 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7042 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7043 | if test "${ac_cv_type_signal+set}" = set; then | |
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7045 | else | |
7046 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7047 | #line $LINENO "configure" |
ad6254c5 AK |
7048 | /* confdefs.h. */ |
7049 | _ACEOF | |
7050 | cat confdefs.h >>conftest.$ac_ext | |
7051 | cat >>conftest.$ac_ext <<_ACEOF | |
7052 | /* end confdefs.h. */ | |
7053 | #include <sys/types.h> | |
7054 | #include <signal.h> | |
7055 | #ifdef signal | |
7056 | # undef signal | |
7057 | #endif | |
7058 | #ifdef __cplusplus | |
7059 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7060 | #else | |
7061 | void (*signal ()) (); | |
7062 | #endif | |
7063 | ||
7064 | int | |
7065 | main () | |
7066 | { | |
7067 | int i; | |
7068 | ; | |
7069 | return 0; | |
7070 | } | |
7071 | _ACEOF | |
7072 | rm -f conftest.$ac_objext | |
7073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 7074 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
7075 | ac_status=$? |
7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7077 | (exit $ac_status); } && | |
c1c065a3 | 7078 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
7079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7080 | (eval $ac_try) 2>&5 | |
7081 | ac_status=$? | |
7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7083 | (exit $ac_status); }; }; then | |
7084 | ac_cv_type_signal=void | |
7085 | else | |
7086 | echo "$as_me: failed program was:" >&5 | |
7087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7088 | ||
7089 | ac_cv_type_signal=int | |
7090 | fi | |
c1c065a3 | 7091 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7092 | fi |
7093 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7094 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7095 | ||
7096 | cat >>confdefs.h <<_ACEOF | |
7097 | #define RETSIGTYPE $ac_cv_type_signal | |
7098 | _ACEOF | |
7099 | ||
7100 | ||
7101 | ||
7102 | for ac_func in vprintf | |
7103 | do | |
7104 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7105 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7106 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7107 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7109 | else | |
7110 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7111 | #line $LINENO "configure" |
ad6254c5 AK |
7112 | /* confdefs.h. */ |
7113 | _ACEOF | |
7114 | cat confdefs.h >>conftest.$ac_ext | |
7115 | cat >>conftest.$ac_ext <<_ACEOF | |
7116 | /* end confdefs.h. */ | |
7117 | /* System header to define __stub macros and hopefully few prototypes, | |
7118 | which can conflict with char $ac_func (); below. | |
7119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7120 | <limits.h> exists even on freestanding compilers. */ | |
7121 | #ifdef __STDC__ | |
7122 | # include <limits.h> | |
7123 | #else | |
7124 | # include <assert.h> | |
7125 | #endif | |
7126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7127 | #ifdef __cplusplus | |
7128 | extern "C" | |
7129 | { | |
7130 | #endif | |
7131 | /* We use char because int might match the return type of a gcc2 | |
7132 | builtin and then its argument prototype would still apply. */ | |
7133 | char $ac_func (); | |
7134 | /* The GNU C library defines this for functions which it implements | |
7135 | to always fail with ENOSYS. Some functions are actually named | |
7136 | something starting with __ and the normal name is an alias. */ | |
7137 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7138 | choke me | |
7139 | #else | |
7140 | char (*f) () = $ac_func; | |
7141 | #endif | |
7142 | #ifdef __cplusplus | |
7143 | } | |
7144 | #endif | |
7145 | ||
7146 | int | |
7147 | main () | |
7148 | { | |
7149 | return f != $ac_func; | |
7150 | ; | |
7151 | return 0; | |
7152 | } | |
7153 | _ACEOF | |
7154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7156 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7157 | ac_status=$? |
7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7159 | (exit $ac_status); } && | |
c1c065a3 | 7160 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7162 | (eval $ac_try) 2>&5 | |
7163 | ac_status=$? | |
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7165 | (exit $ac_status); }; }; then | |
7166 | eval "$as_ac_var=yes" | |
7167 | else | |
7168 | echo "$as_me: failed program was:" >&5 | |
7169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7170 | ||
7171 | eval "$as_ac_var=no" | |
7172 | fi | |
c1c065a3 | 7173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7174 | fi |
7175 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7176 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7177 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7178 | cat >>confdefs.h <<_ACEOF | |
7179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7180 | _ACEOF | |
7181 | ||
7182 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7183 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7184 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7186 | else | |
7187 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7188 | #line $LINENO "configure" |
ad6254c5 AK |
7189 | /* confdefs.h. */ |
7190 | _ACEOF | |
7191 | cat confdefs.h >>conftest.$ac_ext | |
7192 | cat >>conftest.$ac_ext <<_ACEOF | |
7193 | /* end confdefs.h. */ | |
7194 | /* System header to define __stub macros and hopefully few prototypes, | |
7195 | which can conflict with char _doprnt (); below. | |
7196 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7197 | <limits.h> exists even on freestanding compilers. */ | |
7198 | #ifdef __STDC__ | |
7199 | # include <limits.h> | |
7200 | #else | |
7201 | # include <assert.h> | |
7202 | #endif | |
7203 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7204 | #ifdef __cplusplus | |
7205 | extern "C" | |
7206 | { | |
7207 | #endif | |
7208 | /* We use char because int might match the return type of a gcc2 | |
7209 | builtin and then its argument prototype would still apply. */ | |
7210 | char _doprnt (); | |
7211 | /* The GNU C library defines this for functions which it implements | |
7212 | to always fail with ENOSYS. Some functions are actually named | |
7213 | something starting with __ and the normal name is an alias. */ | |
7214 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7215 | choke me | |
7216 | #else | |
7217 | char (*f) () = _doprnt; | |
7218 | #endif | |
7219 | #ifdef __cplusplus | |
7220 | } | |
7221 | #endif | |
7222 | ||
7223 | int | |
7224 | main () | |
7225 | { | |
7226 | return f != _doprnt; | |
7227 | ; | |
7228 | return 0; | |
7229 | } | |
7230 | _ACEOF | |
7231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7233 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7234 | ac_status=$? |
7235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7236 | (exit $ac_status); } && | |
c1c065a3 | 7237 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7239 | (eval $ac_try) 2>&5 | |
7240 | ac_status=$? | |
7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7242 | (exit $ac_status); }; }; then | |
7243 | ac_cv_func__doprnt=yes | |
7244 | else | |
7245 | echo "$as_me: failed program was:" >&5 | |
7246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7247 | ||
7248 | ac_cv_func__doprnt=no | |
7249 | fi | |
c1c065a3 | 7250 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7251 | fi |
7252 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7253 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7254 | if test $ac_cv_func__doprnt = yes; then | |
7255 | ||
7256 | cat >>confdefs.h <<\_ACEOF | |
7257 | #define HAVE_DOPRNT 1 | |
7258 | _ACEOF | |
7259 | ||
7260 | fi | |
7261 | ||
7262 | fi | |
7263 | done | |
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7268 | ||
7269 | for ac_func in mkdir rmdir uname | |
7270 | do | |
7271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7272 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7274 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7276 | else | |
7277 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7278 | #line $LINENO "configure" |
ad6254c5 AK |
7279 | /* confdefs.h. */ |
7280 | _ACEOF | |
7281 | cat confdefs.h >>conftest.$ac_ext | |
7282 | cat >>conftest.$ac_ext <<_ACEOF | |
7283 | /* end confdefs.h. */ | |
7284 | /* System header to define __stub macros and hopefully few prototypes, | |
7285 | which can conflict with char $ac_func (); below. | |
7286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7287 | <limits.h> exists even on freestanding compilers. */ | |
7288 | #ifdef __STDC__ | |
7289 | # include <limits.h> | |
7290 | #else | |
7291 | # include <assert.h> | |
7292 | #endif | |
7293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7294 | #ifdef __cplusplus | |
7295 | extern "C" | |
7296 | { | |
7297 | #endif | |
7298 | /* We use char because int might match the return type of a gcc2 | |
7299 | builtin and then its argument prototype would still apply. */ | |
7300 | char $ac_func (); | |
7301 | /* The GNU C library defines this for functions which it implements | |
7302 | to always fail with ENOSYS. Some functions are actually named | |
7303 | something starting with __ and the normal name is an alias. */ | |
7304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7305 | choke me | |
7306 | #else | |
7307 | char (*f) () = $ac_func; | |
7308 | #endif | |
7309 | #ifdef __cplusplus | |
7310 | } | |
7311 | #endif | |
7312 | ||
7313 | int | |
7314 | main () | |
7315 | { | |
7316 | return f != $ac_func; | |
7317 | ; | |
7318 | return 0; | |
7319 | } | |
7320 | _ACEOF | |
7321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7323 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7324 | ac_status=$? |
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7326 | (exit $ac_status); } && | |
c1c065a3 | 7327 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7329 | (eval $ac_try) 2>&5 | |
7330 | ac_status=$? | |
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7332 | (exit $ac_status); }; }; then | |
7333 | eval "$as_ac_var=yes" | |
7334 | else | |
7335 | echo "$as_me: failed program was:" >&5 | |
7336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7337 | ||
7338 | eval "$as_ac_var=no" | |
7339 | fi | |
c1c065a3 | 7340 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7341 | fi |
7342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7343 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7344 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7345 | cat >>confdefs.h <<_ACEOF | |
7346 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7347 | _ACEOF | |
7348 | ||
7349 | else | |
7350 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
7351 | echo "$as_me: error: bailing out" >&2;} | |
7352 | { (exit 1); exit 1; }; } | |
7353 | fi | |
7354 | done | |
7355 | ||
7356 | ||
7357 | ################################################################################ | |
7358 | if test x$READLINE = xyes; then | |
7359 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
7360 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
7361 | if test "${ac_cv_search_tgetent+set}" = set; then | |
7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7363 | else | |
7364 | ac_func_search_save_LIBS=$LIBS | |
7365 | ac_cv_search_tgetent=no | |
7366 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7367 | #line $LINENO "configure" |
ad6254c5 AK |
7368 | /* confdefs.h. */ |
7369 | _ACEOF | |
7370 | cat confdefs.h >>conftest.$ac_ext | |
7371 | cat >>conftest.$ac_ext <<_ACEOF | |
7372 | /* end confdefs.h. */ | |
7373 | ||
7374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7375 | #ifdef __cplusplus | |
7376 | extern "C" | |
7377 | #endif | |
7378 | /* We use char because int might match the return type of a gcc2 | |
7379 | builtin and then its argument prototype would still apply. */ | |
7380 | char tgetent (); | |
7381 | int | |
7382 | main () | |
7383 | { | |
7384 | tgetent (); | |
7385 | ; | |
7386 | return 0; | |
7387 | } | |
7388 | _ACEOF | |
7389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7391 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7392 | ac_status=$? |
7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7394 | (exit $ac_status); } && | |
c1c065a3 | 7395 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7397 | (eval $ac_try) 2>&5 | |
7398 | ac_status=$? | |
7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7400 | (exit $ac_status); }; }; then | |
7401 | ac_cv_search_tgetent="none required" | |
7402 | else | |
7403 | echo "$as_me: failed program was:" >&5 | |
7404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7405 | ||
7406 | fi | |
c1c065a3 | 7407 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7408 | if test "$ac_cv_search_tgetent" = no; then |
7409 | for ac_lib in ncurses curses termcap termlib; do | |
7410 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7411 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7412 | #line $LINENO "configure" |
ad6254c5 AK |
7413 | /* confdefs.h. */ |
7414 | _ACEOF | |
7415 | cat confdefs.h >>conftest.$ac_ext | |
7416 | cat >>conftest.$ac_ext <<_ACEOF | |
7417 | /* end confdefs.h. */ | |
7418 | ||
7419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7420 | #ifdef __cplusplus | |
7421 | extern "C" | |
7422 | #endif | |
7423 | /* We use char because int might match the return type of a gcc2 | |
7424 | builtin and then its argument prototype would still apply. */ | |
7425 | char tgetent (); | |
7426 | int | |
7427 | main () | |
7428 | { | |
7429 | tgetent (); | |
7430 | ; | |
7431 | return 0; | |
7432 | } | |
7433 | _ACEOF | |
7434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7436 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7437 | ac_status=$? |
7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7439 | (exit $ac_status); } && | |
c1c065a3 | 7440 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7442 | (eval $ac_try) 2>&5 | |
7443 | ac_status=$? | |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7445 | (exit $ac_status); }; }; then | |
7446 | ac_cv_search_tgetent="-l$ac_lib" | |
7447 | break | |
7448 | else | |
7449 | echo "$as_me: failed program was:" >&5 | |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7451 | ||
7452 | fi | |
c1c065a3 | 7453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7454 | done |
7455 | fi | |
7456 | LIBS=$ac_func_search_save_LIBS | |
7457 | fi | |
7458 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
7459 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
7460 | if test "$ac_cv_search_tgetent" != no; then | |
7461 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
7462 | ||
7463 | else | |
7464 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
7465 | --enable-readline option (which is enabled by default). Either disable readline | |
7466 | support with --disable-readline or download and install termcap from: | |
7467 | ftp.gnu.org/gnu/termcap | |
7468 | Note: if you are using precompiled packages you will also need the development | |
7469 | package as well (which may be called termcap-devel or something similar). | |
7470 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
7471 | not found either - but you could try installing that as well. | |
7472 | " >&5 | |
7473 | echo "$as_me: error: termcap could not be found which is required for the | |
7474 | --enable-readline option (which is enabled by default). Either disable readline | |
7475 | support with --disable-readline or download and install termcap from: | |
7476 | ftp.gnu.org/gnu/termcap | |
7477 | Note: if you are using precompiled packages you will also need the development | |
7478 | package as well (which may be called termcap-devel or something similar). | |
7479 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
7480 | not found either - but you could try installing that as well. | |
7481 | " >&2;} | |
7482 | { (exit 1); exit 1; }; } | |
7483 | ||
7484 | fi | |
7485 | ||
7486 | fi | |
7487 | ||
7488 | ################################################################################ | |
7489 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7490 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7491 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7493 | else | |
7494 | ac_check_lib_save_LIBS=$LIBS | |
7495 | LIBS="-ldl $LIBS" | |
7496 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7497 | #line $LINENO "configure" |
ad6254c5 AK |
7498 | /* confdefs.h. */ |
7499 | _ACEOF | |
7500 | cat confdefs.h >>conftest.$ac_ext | |
7501 | cat >>conftest.$ac_ext <<_ACEOF | |
7502 | /* end confdefs.h. */ | |
7503 | ||
7504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7505 | #ifdef __cplusplus | |
7506 | extern "C" | |
7507 | #endif | |
7508 | /* We use char because int might match the return type of a gcc2 | |
7509 | builtin and then its argument prototype would still apply. */ | |
7510 | char dlopen (); | |
7511 | int | |
7512 | main () | |
7513 | { | |
7514 | dlopen (); | |
7515 | ; | |
7516 | return 0; | |
7517 | } | |
7518 | _ACEOF | |
7519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7521 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7522 | ac_status=$? |
7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7524 | (exit $ac_status); } && | |
c1c065a3 | 7525 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7527 | (eval $ac_try) 2>&5 | |
7528 | ac_status=$? | |
7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7530 | (exit $ac_status); }; }; then | |
7531 | ac_cv_lib_dl_dlopen=yes | |
7532 | else | |
7533 | echo "$as_me: failed program was:" >&5 | |
7534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7535 | ||
7536 | ac_cv_lib_dl_dlopen=no | |
7537 | fi | |
c1c065a3 | 7538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7539 | LIBS=$ac_check_lib_save_LIBS |
7540 | fi | |
7541 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7542 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7543 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7544 | HAVE_LIBDL=yes | |
7545 | else | |
7546 | HAVE_LIBDL=no | |
7547 | fi | |
7548 | ||
7549 | ||
7e9e9502 | 7550 | if [ "x$HAVE_LIBDL" = xyes ]; then |
ad6254c5 AK |
7551 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
7552 | LIBS="-ldl $LIBS" | |
7553 | else | |
7554 | HAVE_LIBDL=no | |
7555 | fi | |
7556 | ||
7557 | ################################################################################ | |
7558 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
7559 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
7560 | \) -a "x$STATIC_LINK" = xyes ]; | |
7561 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
7562 | " >&5 | |
7563 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
7564 | " >&2;} | |
7565 | { (exit 1); exit 1; }; } | |
7566 | fi | |
7567 | ||
7568 | ################################################################################ | |
7569 | if test x$SELINUX = xyes; then | |
7570 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 | |
7571 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
7572 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
7573 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
7574 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
7575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7576 | else | |
7577 | ac_check_lib_save_LIBS=$LIBS | |
7578 | LIBS="-lselinux $LIBS" | |
7579 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7580 | #line $LINENO "configure" |
ad6254c5 AK |
7581 | /* confdefs.h. */ |
7582 | _ACEOF | |
7583 | cat confdefs.h >>conftest.$ac_ext | |
7584 | cat >>conftest.$ac_ext <<_ACEOF | |
7585 | /* end confdefs.h. */ | |
7586 | ||
7587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7588 | #ifdef __cplusplus | |
7589 | extern "C" | |
7590 | #endif | |
7591 | /* We use char because int might match the return type of a gcc2 | |
7592 | builtin and then its argument prototype would still apply. */ | |
7593 | char is_selinux_enabled (); | |
7594 | int | |
7595 | main () | |
7596 | { | |
7597 | is_selinux_enabled (); | |
7598 | ; | |
7599 | return 0; | |
7600 | } | |
7601 | _ACEOF | |
7602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7604 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7605 | ac_status=$? |
7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7607 | (exit $ac_status); } && | |
c1c065a3 | 7608 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7610 | (eval $ac_try) 2>&5 | |
7611 | ac_status=$? | |
7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7613 | (exit $ac_status); }; }; then | |
7614 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
7615 | else | |
7616 | echo "$as_me: failed program was:" >&5 | |
7617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7618 | ||
7619 | ac_cv_lib_selinux_is_selinux_enabled=no | |
7620 | fi | |
c1c065a3 | 7621 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7622 | LIBS=$ac_check_lib_save_LIBS |
7623 | fi | |
7624 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
7625 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
7626 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
7627 | HAVE_SELINUX=yes | |
7628 | else | |
7629 | HAVE_SELINUX=no | |
7630 | fi | |
7631 | ||
7632 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
7633 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
7634 | ||
7635 | if test x$HAVE_SELINUX = xyes; then | |
7636 | CFLAGS="$CFLAGS -DHAVE_SELINUX" | |
7637 | LIBS="-lselinux $LIBS" | |
7638 | else | |
7639 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
7640 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
7641 | fi | |
7642 | fi | |
7643 | ||
7644 | ################################################################################ | |
7645 | ||
7646 | for ac_header in getopt.h | |
7647 | do | |
7648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7654 | fi | |
7655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7657 | else | |
7658 | # Is the header compilable? | |
7659 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7660 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7661 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7662 | #line $LINENO "configure" |
ad6254c5 AK |
7663 | /* confdefs.h. */ |
7664 | _ACEOF | |
7665 | cat confdefs.h >>conftest.$ac_ext | |
7666 | cat >>conftest.$ac_ext <<_ACEOF | |
7667 | /* end confdefs.h. */ | |
7668 | $ac_includes_default | |
7669 | #include <$ac_header> | |
7670 | _ACEOF | |
7671 | rm -f conftest.$ac_objext | |
7672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 7673 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
7674 | ac_status=$? |
7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7676 | (exit $ac_status); } && | |
c1c065a3 | 7677 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
7678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7679 | (eval $ac_try) 2>&5 | |
7680 | ac_status=$? | |
7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7682 | (exit $ac_status); }; }; then | |
7683 | ac_header_compiler=yes | |
7684 | else | |
7685 | echo "$as_me: failed program was:" >&5 | |
7686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7687 | ||
7688 | ac_header_compiler=no | |
7689 | fi | |
c1c065a3 | 7690 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7691 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7692 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7693 | ||
7694 | # Is the header present? | |
7695 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7696 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7697 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7698 | #line $LINENO "configure" |
ad6254c5 AK |
7699 | /* confdefs.h. */ |
7700 | _ACEOF | |
7701 | cat confdefs.h >>conftest.$ac_ext | |
7702 | cat >>conftest.$ac_ext <<_ACEOF | |
7703 | /* end confdefs.h. */ | |
7704 | #include <$ac_header> | |
7705 | _ACEOF | |
7706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7708 | ac_status=$? | |
7709 | grep -v '^ *+' conftest.er1 >conftest.err | |
7710 | rm -f conftest.er1 | |
7711 | cat conftest.err >&5 | |
7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7713 | (exit $ac_status); } >/dev/null; then | |
7714 | if test -s conftest.err; then | |
7715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7716 | else | |
7717 | ac_cpp_err= | |
7718 | fi | |
7719 | else | |
7720 | ac_cpp_err=yes | |
7721 | fi | |
7722 | if test -z "$ac_cpp_err"; then | |
7723 | ac_header_preproc=yes | |
7724 | else | |
7725 | echo "$as_me: failed program was:" >&5 | |
7726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7727 | ||
7728 | ac_header_preproc=no | |
7729 | fi | |
7730 | rm -f conftest.err conftest.$ac_ext | |
7731 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7732 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7733 | ||
7734 | # So? What about this header? | |
c1c065a3 AK |
7735 | case $ac_header_compiler:$ac_header_preproc in |
7736 | yes:no ) | |
ad6254c5 AK |
7737 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7738 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
7739 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7740 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7741 | ( | |
7742 | cat <<\_ASBOX | |
7743 | ## ------------------------------------ ## | |
7744 | ## Report this to bug-autoconf@gnu.org. ## | |
7745 | ## ------------------------------------ ## | |
7746 | _ASBOX | |
7747 | ) | | |
7748 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 7749 | ;; |
c1c065a3 | 7750 | no:yes ) |
ad6254c5 AK |
7751 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7752 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
7753 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7754 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
7755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7756 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7757 | ( | |
7758 | cat <<\_ASBOX | |
c1c065a3 AK |
7759 | ## ------------------------------------ ## |
7760 | ## Report this to bug-autoconf@gnu.org. ## | |
7761 | ## ------------------------------------ ## | |
ad6254c5 AK |
7762 | _ASBOX |
7763 | ) | | |
7764 | sed "s/^/$as_me: WARNING: /" >&2 | |
7765 | ;; | |
7766 | esac | |
7767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7771 | else | |
c1c065a3 | 7772 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
7773 | fi |
7774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7776 | ||
7777 | fi | |
7778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7779 | cat >>confdefs.h <<_ACEOF | |
7780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7781 | _ACEOF | |
7782 | CFLAGS="$CFLAGS -DHAVE_GETOPTLONG" | |
7783 | fi | |
7784 | ||
7785 | done | |
7786 | ||
7787 | ||
7788 | ################################################################################ | |
7789 | if test x$READLINE = xyes; then | |
7790 | ||
7791 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
7792 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
7793 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7795 | else | |
7796 | ac_check_lib_save_LIBS=$LIBS | |
7797 | LIBS="-lreadline $LIBS" | |
7798 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7799 | #line $LINENO "configure" |
ad6254c5 AK |
7800 | /* confdefs.h. */ |
7801 | _ACEOF | |
7802 | cat confdefs.h >>conftest.$ac_ext | |
7803 | cat >>conftest.$ac_ext <<_ACEOF | |
7804 | /* end confdefs.h. */ | |
7805 | ||
7806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7807 | #ifdef __cplusplus | |
7808 | extern "C" | |
7809 | #endif | |
7810 | /* We use char because int might match the return type of a gcc2 | |
7811 | builtin and then its argument prototype would still apply. */ | |
7812 | char readline (); | |
7813 | int | |
7814 | main () | |
7815 | { | |
7816 | readline (); | |
7817 | ; | |
7818 | return 0; | |
7819 | } | |
7820 | _ACEOF | |
7821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7823 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7824 | ac_status=$? |
7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7826 | (exit $ac_status); } && | |
c1c065a3 | 7827 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7829 | (eval $ac_try) 2>&5 | |
7830 | ac_status=$? | |
7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7832 | (exit $ac_status); }; }; then | |
7833 | ac_cv_lib_readline_readline=yes | |
7834 | else | |
7835 | echo "$as_me: failed program was:" >&5 | |
7836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7837 | ||
7838 | ac_cv_lib_readline_readline=no | |
7839 | fi | |
c1c065a3 | 7840 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7841 | LIBS=$ac_check_lib_save_LIBS |
7842 | fi | |
7843 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
7844 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
7845 | if test $ac_cv_lib_readline_readline = yes; then | |
7846 | cat >>confdefs.h <<_ACEOF | |
7847 | #define HAVE_LIBREADLINE 1 | |
7848 | _ACEOF | |
7849 | ||
7850 | LIBS="-lreadline $LIBS" | |
7851 | ||
7852 | else | |
7853 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
7854 | --enable-readline option (which is enabled by default). Either disable readline | |
7855 | support with --disable-readline or download and install readline from: | |
7856 | ftp.gnu.org/gnu/readline | |
7857 | Note: if you are using precompiled packages you will also need the development | |
7858 | package as well (which may be called readline-devel or something similar). | |
7859 | " >&5 | |
7860 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
7861 | --enable-readline option (which is enabled by default). Either disable readline | |
7862 | support with --disable-readline or download and install readline from: | |
7863 | ftp.gnu.org/gnu/readline | |
7864 | Note: if you are using precompiled packages you will also need the development | |
7865 | package as well (which may be called readline-devel or something similar). | |
7866 | " >&2;} | |
7867 | { (exit 1); exit 1; }; } | |
7868 | ||
7869 | fi | |
7870 | ||
7871 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
7872 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
7873 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
7874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7875 | else | |
7876 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 7877 | #line $LINENO "configure" |
ad6254c5 AK |
7878 | /* confdefs.h. */ |
7879 | _ACEOF | |
7880 | cat confdefs.h >>conftest.$ac_ext | |
7881 | cat >>conftest.$ac_ext <<_ACEOF | |
7882 | /* end confdefs.h. */ | |
7883 | /* System header to define __stub macros and hopefully few prototypes, | |
7884 | which can conflict with char rl_completion_matches (); below. | |
7885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7886 | <limits.h> exists even on freestanding compilers. */ | |
7887 | #ifdef __STDC__ | |
7888 | # include <limits.h> | |
7889 | #else | |
7890 | # include <assert.h> | |
7891 | #endif | |
7892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7893 | #ifdef __cplusplus | |
7894 | extern "C" | |
7895 | { | |
7896 | #endif | |
7897 | /* We use char because int might match the return type of a gcc2 | |
7898 | builtin and then its argument prototype would still apply. */ | |
7899 | char rl_completion_matches (); | |
7900 | /* The GNU C library defines this for functions which it implements | |
7901 | to always fail with ENOSYS. Some functions are actually named | |
7902 | something starting with __ and the normal name is an alias. */ | |
7903 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
7904 | choke me | |
7905 | #else | |
7906 | char (*f) () = rl_completion_matches; | |
7907 | #endif | |
7908 | #ifdef __cplusplus | |
7909 | } | |
7910 | #endif | |
7911 | ||
7912 | int | |
7913 | main () | |
7914 | { | |
7915 | return f != rl_completion_matches; | |
7916 | ; | |
7917 | return 0; | |
7918 | } | |
7919 | _ACEOF | |
7920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 7922 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
7923 | ac_status=$? |
7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7925 | (exit $ac_status); } && | |
c1c065a3 | 7926 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
7927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7928 | (eval $ac_try) 2>&5 | |
7929 | ac_status=$? | |
7930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7931 | (exit $ac_status); }; }; then | |
7932 | ac_cv_func_rl_completion_matches=yes | |
7933 | else | |
7934 | echo "$as_me: failed program was:" >&5 | |
7935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7936 | ||
7937 | ac_cv_func_rl_completion_matches=no | |
7938 | fi | |
c1c065a3 | 7939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
7940 | fi |
7941 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
7942 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
7943 | if test $ac_cv_func_rl_completion_matches = yes; then | |
7944 | CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES" | |
7945 | fi | |
7946 | ||
7947 | ||
7948 | fi | |
7949 | ||
7950 | ################################################################################ | |
7951 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
7952 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
7953 | # Check whether --enable-nls or --disable-nls was given. | |
7954 | if test "${enable_nls+set}" = set; then | |
7955 | enableval="$enable_nls" | |
7956 | INTL=$enableval | |
7957 | else | |
7958 | INTL=no | |
7959 | fi; | |
7960 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
7961 | echo "${ECHO_T}$INTL" >&6 | |
7962 | ||
7963 | if test x$INTL = xyes; then | |
7964 | INTL_PACKAGE="lvm2" | |
7965 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7966 | set dummy msgfmt; ac_word=$2 | |
7967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7969 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7971 | else | |
7972 | case $MSGFMT in | |
7973 | [\\/]* | ?:[\\/]*) | |
7974 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7975 | ;; | |
7976 | *) | |
7977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7978 | for as_dir in $PATH | |
7979 | do | |
7980 | IFS=$as_save_IFS | |
7981 | test -z "$as_dir" && as_dir=. | |
7982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7984 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7986 | break 2 | |
7987 | fi | |
7988 | done | |
7989 | done | |
7990 | ||
7991 | ;; | |
7992 | esac | |
7993 | fi | |
7994 | MSGFMT=$ac_cv_path_MSGFMT | |
7995 | ||
7996 | if test -n "$MSGFMT"; then | |
7997 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
7998 | echo "${ECHO_T}$MSGFMT" >&6 | |
7999 | else | |
8000 | echo "$as_me:$LINENO: result: no" >&5 | |
8001 | echo "${ECHO_T}no" >&6 | |
8002 | fi | |
8003 | ||
8004 | if [ "x$MSGFMT" == x ]; | |
8005 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8006 | " >&5 | |
8007 | echo "$as_me: error: msgfmt not found in path $PATH | |
8008 | " >&2;} | |
8009 | { (exit 1); exit 1; }; } | |
8010 | fi; | |
8011 | ||
8012 | ||
8013 | # Check whether --with-localedir or --without-localedir was given. | |
8014 | if test "${with_localedir+set}" = set; then | |
8015 | withval="$with_localedir" | |
8016 | LOCALEDIR="$withval" | |
8017 | else | |
8018 | LOCALEDIR='${prefix}/share/locale' | |
8019 | fi; | |
8020 | fi | |
8021 | ||
8022 | ################################################################################ | |
8023 | ||
8024 | # Check whether --with-confdir or --without-confdir was given. | |
8025 | if test "${with_confdir+set}" = set; then | |
8026 | withval="$with_confdir" | |
8027 | CONFDIR="$withval" | |
8028 | else | |
8029 | CONFDIR='/etc' | |
8030 | fi; | |
8031 | ||
8032 | ||
8033 | # Check whether --with-staticdir or --without-staticdir was given. | |
8034 | if test "${with_staticdir+set}" = set; then | |
8035 | withval="$with_staticdir" | |
8036 | STATICDIR="$withval" | |
8037 | else | |
8038 | STATICDIR='${exec_prefix}/sbin' | |
8039 | fi; | |
8040 | ||
8041 | ################################################################################ | |
8042 | if test x$READLINE = xyes; then | |
8043 | ||
8044 | ||
8045 | for ac_header in readline/readline.h readline/history.h | |
8046 | do | |
8047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8053 | fi | |
8054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8056 | else | |
8057 | # Is the header compilable? | |
8058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8060 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8061 | #line $LINENO "configure" |
ad6254c5 AK |
8062 | /* confdefs.h. */ |
8063 | _ACEOF | |
8064 | cat confdefs.h >>conftest.$ac_ext | |
8065 | cat >>conftest.$ac_ext <<_ACEOF | |
8066 | /* end confdefs.h. */ | |
8067 | $ac_includes_default | |
8068 | #include <$ac_header> | |
8069 | _ACEOF | |
8070 | rm -f conftest.$ac_objext | |
8071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 8072 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
8073 | ac_status=$? |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8075 | (exit $ac_status); } && | |
c1c065a3 | 8076 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
8077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8078 | (eval $ac_try) 2>&5 | |
8079 | ac_status=$? | |
8080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8081 | (exit $ac_status); }; }; then | |
8082 | ac_header_compiler=yes | |
8083 | else | |
8084 | echo "$as_me: failed program was:" >&5 | |
8085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8086 | ||
8087 | ac_header_compiler=no | |
8088 | fi | |
c1c065a3 | 8089 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8090 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8091 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8092 | ||
8093 | # Is the header present? | |
8094 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8096 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8097 | #line $LINENO "configure" |
ad6254c5 AK |
8098 | /* confdefs.h. */ |
8099 | _ACEOF | |
8100 | cat confdefs.h >>conftest.$ac_ext | |
8101 | cat >>conftest.$ac_ext <<_ACEOF | |
8102 | /* end confdefs.h. */ | |
8103 | #include <$ac_header> | |
8104 | _ACEOF | |
8105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8107 | ac_status=$? | |
8108 | grep -v '^ *+' conftest.er1 >conftest.err | |
8109 | rm -f conftest.er1 | |
8110 | cat conftest.err >&5 | |
8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8112 | (exit $ac_status); } >/dev/null; then | |
8113 | if test -s conftest.err; then | |
8114 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8115 | else | |
8116 | ac_cpp_err= | |
8117 | fi | |
8118 | else | |
8119 | ac_cpp_err=yes | |
8120 | fi | |
8121 | if test -z "$ac_cpp_err"; then | |
8122 | ac_header_preproc=yes | |
8123 | else | |
8124 | echo "$as_me: failed program was:" >&5 | |
8125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8126 | ||
8127 | ac_header_preproc=no | |
8128 | fi | |
8129 | rm -f conftest.err conftest.$ac_ext | |
8130 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8131 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8132 | ||
8133 | # So? What about this header? | |
c1c065a3 AK |
8134 | case $ac_header_compiler:$ac_header_preproc in |
8135 | yes:no ) | |
ad6254c5 AK |
8136 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8137 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
8138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8140 | ( | |
8141 | cat <<\_ASBOX | |
8142 | ## ------------------------------------ ## | |
8143 | ## Report this to bug-autoconf@gnu.org. ## | |
8144 | ## ------------------------------------ ## | |
8145 | _ASBOX | |
8146 | ) | | |
8147 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 8148 | ;; |
c1c065a3 | 8149 | no:yes ) |
ad6254c5 AK |
8150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
8152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
8154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8155 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8156 | ( | |
8157 | cat <<\_ASBOX | |
c1c065a3 AK |
8158 | ## ------------------------------------ ## |
8159 | ## Report this to bug-autoconf@gnu.org. ## | |
8160 | ## ------------------------------------ ## | |
ad6254c5 AK |
8161 | _ASBOX |
8162 | ) | | |
8163 | sed "s/^/$as_me: WARNING: /" >&2 | |
8164 | ;; | |
8165 | esac | |
8166 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8170 | else | |
c1c065a3 | 8171 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
8172 | fi |
8173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8175 | ||
8176 | fi | |
8177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8178 | cat >>confdefs.h <<_ACEOF | |
8179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8180 | _ACEOF | |
8181 | ||
8182 | else | |
8183 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8184 | echo "$as_me: error: bailing out" >&2;} | |
8185 | { (exit 1); exit 1; }; } | |
8186 | fi | |
8187 | ||
8188 | done | |
8189 | ||
8190 | fi | |
8191 | ||
5c7fc7c4 | 8192 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
8193 | |
8194 | ||
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | ||
8200 | ||
8201 | ||
8202 | ||
8203 | 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 | |
8204 | do | |
8205 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8211 | fi | |
8212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8213 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8214 | else | |
8215 | # Is the header compilable? | |
8216 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8217 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8218 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8219 | #line $LINENO "configure" |
ad6254c5 AK |
8220 | /* confdefs.h. */ |
8221 | _ACEOF | |
8222 | cat confdefs.h >>conftest.$ac_ext | |
8223 | cat >>conftest.$ac_ext <<_ACEOF | |
8224 | /* end confdefs.h. */ | |
8225 | $ac_includes_default | |
8226 | #include <$ac_header> | |
8227 | _ACEOF | |
8228 | rm -f conftest.$ac_objext | |
8229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 8230 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
8231 | ac_status=$? |
8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8233 | (exit $ac_status); } && | |
c1c065a3 | 8234 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
8235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8236 | (eval $ac_try) 2>&5 | |
8237 | ac_status=$? | |
8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8239 | (exit $ac_status); }; }; then | |
8240 | ac_header_compiler=yes | |
8241 | else | |
8242 | echo "$as_me: failed program was:" >&5 | |
8243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8244 | ||
8245 | ac_header_compiler=no | |
8246 | fi | |
c1c065a3 | 8247 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8248 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8249 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8250 | ||
8251 | # Is the header present? | |
8252 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8253 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8254 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8255 | #line $LINENO "configure" |
ad6254c5 AK |
8256 | /* confdefs.h. */ |
8257 | _ACEOF | |
8258 | cat confdefs.h >>conftest.$ac_ext | |
8259 | cat >>conftest.$ac_ext <<_ACEOF | |
8260 | /* end confdefs.h. */ | |
8261 | #include <$ac_header> | |
8262 | _ACEOF | |
8263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8265 | ac_status=$? | |
8266 | grep -v '^ *+' conftest.er1 >conftest.err | |
8267 | rm -f conftest.er1 | |
8268 | cat conftest.err >&5 | |
8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8270 | (exit $ac_status); } >/dev/null; then | |
8271 | if test -s conftest.err; then | |
8272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8273 | else | |
8274 | ac_cpp_err= | |
8275 | fi | |
8276 | else | |
8277 | ac_cpp_err=yes | |
8278 | fi | |
8279 | if test -z "$ac_cpp_err"; then | |
8280 | ac_header_preproc=yes | |
8281 | else | |
8282 | echo "$as_me: failed program was:" >&5 | |
8283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8284 | ||
8285 | ac_header_preproc=no | |
8286 | fi | |
8287 | rm -f conftest.err conftest.$ac_ext | |
8288 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8289 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8290 | ||
8291 | # So? What about this header? | |
c1c065a3 AK |
8292 | case $ac_header_compiler:$ac_header_preproc in |
8293 | yes:no ) | |
ad6254c5 AK |
8294 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8295 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
8296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8298 | ( | |
8299 | cat <<\_ASBOX | |
8300 | ## ------------------------------------ ## | |
8301 | ## Report this to bug-autoconf@gnu.org. ## | |
8302 | ## ------------------------------------ ## | |
8303 | _ASBOX | |
8304 | ) | | |
8305 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 8306 | ;; |
c1c065a3 | 8307 | no:yes ) |
ad6254c5 AK |
8308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
8310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
8312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8314 | ( | |
8315 | cat <<\_ASBOX | |
c1c065a3 AK |
8316 | ## ------------------------------------ ## |
8317 | ## Report this to bug-autoconf@gnu.org. ## | |
8318 | ## ------------------------------------ ## | |
ad6254c5 AK |
8319 | _ASBOX |
8320 | ) | | |
8321 | sed "s/^/$as_me: WARNING: /" >&2 | |
8322 | ;; | |
8323 | esac | |
8324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8328 | else | |
c1c065a3 | 8329 | eval "$as_ac_Header=$ac_header_preproc" |
ad6254c5 AK |
8330 | fi |
8331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8333 | ||
8334 | fi | |
8335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8336 | cat >>confdefs.h <<_ACEOF | |
8337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8338 | _ACEOF | |
8339 | ||
8340 | else | |
8341 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8342 | echo "$as_me: error: bailing out" >&2;} | |
8343 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
8344 | fi |
8345 | ||
ad6254c5 AK |
8346 | done |
8347 | ||
8348 | ||
795ca3e5 | 8349 | |
8106cdd5 | 8350 | |
ad6254c5 AK |
8351 | |
8352 | ||
8353 | for ac_func in dup2 getmntent memmove select socket | |
8354 | do | |
8355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8356 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8358 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 8360 | else |
ad6254c5 | 8361 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 8362 | #line $LINENO "configure" |
ad6254c5 AK |
8363 | /* confdefs.h. */ |
8364 | _ACEOF | |
8365 | cat confdefs.h >>conftest.$ac_ext | |
8366 | cat >>conftest.$ac_ext <<_ACEOF | |
8367 | /* end confdefs.h. */ | |
795ca3e5 | 8368 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
8369 | which can conflict with char $ac_func (); below. |
8370 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8371 | <limits.h> exists even on freestanding compilers. */ | |
8372 | #ifdef __STDC__ | |
8373 | # include <limits.h> | |
8374 | #else | |
8375 | # include <assert.h> | |
8376 | #endif | |
795ca3e5 | 8377 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
8378 | #ifdef __cplusplus |
8379 | extern "C" | |
8380 | { | |
8381 | #endif | |
795ca3e5 | 8382 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
8383 | builtin and then its argument prototype would still apply. */ |
8384 | char $ac_func (); | |
795ca3e5 AK |
8385 | /* The GNU C library defines this for functions which it implements |
8386 | to always fail with ENOSYS. Some functions are actually named | |
8387 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 8388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
8389 | choke me |
8390 | #else | |
ad6254c5 AK |
8391 | char (*f) () = $ac_func; |
8392 | #endif | |
8393 | #ifdef __cplusplus | |
8394 | } | |
795ca3e5 AK |
8395 | #endif |
8396 | ||
ad6254c5 AK |
8397 | int |
8398 | main () | |
8399 | { | |
8400 | return f != $ac_func; | |
8401 | ; | |
8402 | return 0; | |
8403 | } | |
8404 | _ACEOF | |
8405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 8407 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
8408 | ac_status=$? |
8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8410 | (exit $ac_status); } && | |
c1c065a3 | 8411 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8413 | (eval $ac_try) 2>&5 | |
8414 | ac_status=$? | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); }; }; then | |
8417 | eval "$as_ac_var=yes" | |
795ca3e5 | 8418 | else |
ad6254c5 AK |
8419 | echo "$as_me: failed program was:" >&5 |
8420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8421 | ||
8422 | eval "$as_ac_var=no" | |
80992638 | 8423 | fi |
c1c065a3 | 8424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 8425 | fi |
ad6254c5 AK |
8426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8428 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8429 | cat >>confdefs.h <<_ACEOF | |
8430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8431 | _ACEOF | |
80992638 AK |
8432 | |
8433 | else | |
ad6254c5 AK |
8434 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
8435 | echo "$as_me: error: bailing out" >&2;} | |
8436 | { (exit 1); exit 1; }; } | |
8106cdd5 | 8437 | fi |
ad6254c5 | 8438 | done |
795ca3e5 | 8439 | |
ad6254c5 AK |
8440 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
8441 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
8442 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
8443 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
8444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 8445 | else |
ad6254c5 AK |
8446 | ac_check_lib_save_LIBS=$LIBS |
8447 | LIBS="-lsun $LIBS" | |
8448 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8449 | #line $LINENO "configure" |
ad6254c5 AK |
8450 | /* confdefs.h. */ |
8451 | _ACEOF | |
8452 | cat confdefs.h >>conftest.$ac_ext | |
8453 | cat >>conftest.$ac_ext <<_ACEOF | |
8454 | /* end confdefs.h. */ | |
8455 | ||
795ca3e5 | 8456 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
8457 | #ifdef __cplusplus |
8458 | extern "C" | |
8459 | #endif | |
795ca3e5 | 8460 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
8461 | builtin and then its argument prototype would still apply. */ |
8462 | char getmntent (); | |
8463 | int | |
8464 | main () | |
8465 | { | |
8466 | getmntent (); | |
8467 | ; | |
8468 | return 0; | |
8469 | } | |
8470 | _ACEOF | |
8471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 8473 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
8474 | ac_status=$? |
8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8476 | (exit $ac_status); } && | |
c1c065a3 | 8477 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
8478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8479 | (eval $ac_try) 2>&5 | |
8480 | ac_status=$? | |
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8482 | (exit $ac_status); }; }; then | |
8483 | ac_cv_lib_sun_getmntent=yes | |
8484 | else | |
8485 | echo "$as_me: failed program was:" >&5 | |
8486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 8487 | |
ad6254c5 AK |
8488 | ac_cv_lib_sun_getmntent=no |
8489 | fi | |
c1c065a3 | 8490 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8491 | LIBS=$ac_check_lib_save_LIBS |
8492 | fi | |
8493 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
8494 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
8495 | if test $ac_cv_lib_sun_getmntent = yes; then | |
8496 | LIBS="-lsun $LIBS" | |
8497 | else | |
8498 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
8499 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
8500 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
8501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8502 | else | |
8503 | ac_check_lib_save_LIBS=$LIBS | |
8504 | LIBS="-lseq $LIBS" | |
8505 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8506 | #line $LINENO "configure" |
ad6254c5 AK |
8507 | /* confdefs.h. */ |
8508 | _ACEOF | |
8509 | cat confdefs.h >>conftest.$ac_ext | |
8510 | cat >>conftest.$ac_ext <<_ACEOF | |
8511 | /* end confdefs.h. */ | |
80992638 | 8512 | |
ad6254c5 AK |
8513 | /* Override any gcc2 internal prototype to avoid an error. */ |
8514 | #ifdef __cplusplus | |
8515 | extern "C" | |
795ca3e5 | 8516 | #endif |
ad6254c5 AK |
8517 | /* We use char because int might match the return type of a gcc2 |
8518 | builtin and then its argument prototype would still apply. */ | |
8519 | char getmntent (); | |
8520 | int | |
8521 | main () | |
8522 | { | |
8523 | getmntent (); | |
8524 | ; | |
8525 | return 0; | |
8526 | } | |
8527 | _ACEOF | |
8528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 8530 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
8531 | ac_status=$? |
8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8533 | (exit $ac_status); } && | |
c1c065a3 | 8534 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
8535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8536 | (eval $ac_try) 2>&5 | |
8537 | ac_status=$? | |
8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8539 | (exit $ac_status); }; }; then | |
8540 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 8541 | else |
ad6254c5 AK |
8542 | echo "$as_me: failed program was:" >&5 |
8543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8544 | ||
8545 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 8546 | fi |
c1c065a3 | 8547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8548 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 8549 | fi |
ad6254c5 AK |
8550 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
8551 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
8552 | if test $ac_cv_lib_seq_getmntent = yes; then | |
8553 | LIBS="-lseq $LIBS" | |
8554 | else | |
8555 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
8556 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
8557 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
8558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8559 | else | |
8560 | ac_check_lib_save_LIBS=$LIBS | |
8561 | LIBS="-lgen $LIBS" | |
8562 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8563 | #line $LINENO "configure" |
ad6254c5 AK |
8564 | /* confdefs.h. */ |
8565 | _ACEOF | |
8566 | cat confdefs.h >>conftest.$ac_ext | |
8567 | cat >>conftest.$ac_ext <<_ACEOF | |
8568 | /* end confdefs.h. */ | |
795ca3e5 | 8569 | |
ad6254c5 AK |
8570 | /* Override any gcc2 internal prototype to avoid an error. */ |
8571 | #ifdef __cplusplus | |
8572 | extern "C" | |
8573 | #endif | |
8574 | /* We use char because int might match the return type of a gcc2 | |
8575 | builtin and then its argument prototype would still apply. */ | |
8576 | char getmntent (); | |
8577 | int | |
8578 | main () | |
8579 | { | |
8580 | getmntent (); | |
8581 | ; | |
8582 | return 0; | |
8583 | } | |
8584 | _ACEOF | |
8585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 8587 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
8588 | ac_status=$? |
8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8590 | (exit $ac_status); } && | |
c1c065a3 | 8591 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
8592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8593 | (eval $ac_try) 2>&5 | |
8594 | ac_status=$? | |
8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8596 | (exit $ac_status); }; }; then | |
8597 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 8598 | else |
ad6254c5 AK |
8599 | echo "$as_me: failed program was:" >&5 |
8600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8601 | ||
8602 | ac_cv_lib_gen_getmntent=no | |
8603 | fi | |
c1c065a3 | 8604 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8605 | LIBS=$ac_check_lib_save_LIBS |
8606 | fi | |
8607 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
8608 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
8609 | if test $ac_cv_lib_gen_getmntent = yes; then | |
8610 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
8611 | fi |
8612 | ||
8613 | fi | |
8614 | ||
ad6254c5 AK |
8615 | fi |
8616 | ||
8617 | ||
8618 | for ac_func in getmntent | |
795ca3e5 | 8619 | do |
ad6254c5 AK |
8620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8621 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8623 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8625 | else | |
8626 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8627 | #line $LINENO "configure" |
ad6254c5 AK |
8628 | /* confdefs.h. */ |
8629 | _ACEOF | |
8630 | cat confdefs.h >>conftest.$ac_ext | |
8631 | cat >>conftest.$ac_ext <<_ACEOF | |
8632 | /* end confdefs.h. */ | |
795ca3e5 | 8633 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
8634 | which can conflict with char $ac_func (); below. |
8635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8636 | <limits.h> exists even on freestanding compilers. */ | |
8637 | #ifdef __STDC__ | |
8638 | # include <limits.h> | |
8639 | #else | |
8640 | # include <assert.h> | |
8641 | #endif | |
795ca3e5 | 8642 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
8643 | #ifdef __cplusplus |
8644 | extern "C" | |
8645 | { | |
8646 | #endif | |
795ca3e5 | 8647 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
8648 | builtin and then its argument prototype would still apply. */ |
8649 | char $ac_func (); | |
795ca3e5 AK |
8650 | /* The GNU C library defines this for functions which it implements |
8651 | to always fail with ENOSYS. Some functions are actually named | |
8652 | something starting with __ and the normal name is an alias. */ | |
8653 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8654 | choke me | |
8655 | #else | |
ad6254c5 AK |
8656 | char (*f) () = $ac_func; |
8657 | #endif | |
8658 | #ifdef __cplusplus | |
8659 | } | |
795ca3e5 AK |
8660 | #endif |
8661 | ||
ad6254c5 AK |
8662 | int |
8663 | main () | |
8664 | { | |
8665 | return f != $ac_func; | |
8666 | ; | |
8667 | return 0; | |
8668 | } | |
8669 | _ACEOF | |
8670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 8672 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
8673 | ac_status=$? |
8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8675 | (exit $ac_status); } && | |
c1c065a3 | 8676 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
8677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8678 | (eval $ac_try) 2>&5 | |
8679 | ac_status=$? | |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8681 | (exit $ac_status); }; }; then | |
8682 | eval "$as_ac_var=yes" | |
795ca3e5 | 8683 | else |
ad6254c5 AK |
8684 | echo "$as_me: failed program was:" >&5 |
8685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8686 | ||
8687 | eval "$as_ac_var=no" | |
795ca3e5 | 8688 | fi |
c1c065a3 | 8689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 8690 | fi |
ad6254c5 AK |
8691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
8692 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8693 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8694 | cat >>confdefs.h <<_ACEOF | |
8695 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8696 | _ACEOF | |
795ca3e5 | 8697 | |
795ca3e5 AK |
8698 | fi |
8699 | done | |
8700 | ||
8701 | ||
ad6254c5 AK |
8702 | # AC_FUNC_REALLOC |
8703 | ||
8704 | ||
8705 | for ac_header in sys/select.h sys/socket.h | |
8706 | do | |
8707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8708 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8713 | fi | |
8714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 8716 | else |
ad6254c5 AK |
8717 | # Is the header compilable? |
8718 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8720 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8721 | #line $LINENO "configure" |
ad6254c5 AK |
8722 | /* confdefs.h. */ |
8723 | _ACEOF | |
8724 | cat confdefs.h >>conftest.$ac_ext | |
8725 | cat >>conftest.$ac_ext <<_ACEOF | |
8726 | /* end confdefs.h. */ | |
8727 | $ac_includes_default | |
8728 | #include <$ac_header> | |
8729 | _ACEOF | |
8730 | rm -f conftest.$ac_objext | |
8731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 8732 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
8733 | ac_status=$? |
8734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8735 | (exit $ac_status); } && | |
c1c065a3 | 8736 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
8737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8738 | (eval $ac_try) 2>&5 | |
8739 | ac_status=$? | |
8740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8741 | (exit $ac_status); }; }; then | |
8742 | ac_header_compiler=yes | |
80992638 | 8743 | else |
ad6254c5 AK |
8744 | echo "$as_me: failed program was:" >&5 |
8745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8746 | ||
8747 | ac_header_compiler=no | |
8748 | fi | |
c1c065a3 | 8749 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8750 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8751 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8752 | ||
8753 | # Is the header present? | |
8754 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8755 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8756 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8757 | #line $LINENO "configure" |
ad6254c5 AK |
8758 | /* confdefs.h. */ |
8759 | _ACEOF | |
8760 | cat confdefs.h >>conftest.$ac_ext | |
8761 | cat >>conftest.$ac_ext <<_ACEOF | |
8762 | /* end confdefs.h. */ | |
8763 | #include <$ac_header> | |
8764 | _ACEOF | |
8765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8767 | ac_status=$? | |
8768 | grep -v '^ *+' conftest.er1 >conftest.err | |
8769 | rm -f conftest.er1 | |
8770 | cat conftest.err >&5 | |
8771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8772 | (exit $ac_status); } >/dev/null; then | |
8773 | if test -s conftest.err; then | |
8774 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8775 | else | |
8776 | ac_cpp_err= | |
8777 | fi | |
8778 | else | |
8779 | ac_cpp_err=yes | |
795ca3e5 | 8780 | fi |
ad6254c5 AK |
8781 | if test -z "$ac_cpp_err"; then |
8782 | ac_header_preproc=yes | |
8783 | else | |
8784 | echo "$as_me: failed program was:" >&5 | |
8785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8786 | ||
8787 | ac_header_preproc=no | |
8788 | fi | |
8789 | rm -f conftest.err conftest.$ac_ext | |
8790 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8791 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8792 | ||
8793 | # So? What about this header? | |
c1c065a3 AK |
8794 | case $ac_header_compiler:$ac_header_preproc in |
8795 | yes:no ) | |
ad6254c5 AK |
8796 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8797 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
8798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8799 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8800 | ( | |
8801 | cat <<\_ASBOX | |
8802 | ## ------------------------------------ ## | |
8803 | ## Report this to bug-autoconf@gnu.org. ## | |
8804 | ## ------------------------------------ ## | |
8805 | _ASBOX | |
8806 | ) | | |
8807 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 8808 | ;; |
c1c065a3 | 8809 | no:yes ) |
ad6254c5 AK |
8810 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8811 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
8812 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8813 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
8814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8816 | ( | |
8817 | cat <<\_ASBOX | |
c1c065a3 AK |
8818 | ## ------------------------------------ ## |
8819 | ## Report this to bug-autoconf@gnu.org. ## | |
8820 | ## ------------------------------------ ## | |
ad6254c5 AK |
8821 | _ASBOX |
8822 | ) | | |
8823 | sed "s/^/$as_me: WARNING: /" >&2 | |
8824 | ;; | |
8825 | esac | |
8826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8830 | else | |
c1c065a3 | 8831 | eval "$as_ac_Header=$ac_header_preproc" |
8106cdd5 | 8832 | fi |
ad6254c5 AK |
8833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8834 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 8835 | |
795ca3e5 | 8836 | fi |
ad6254c5 AK |
8837 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8838 | cat >>confdefs.h <<_ACEOF | |
8839 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8840 | _ACEOF | |
8841 | ||
795ca3e5 AK |
8842 | fi |
8843 | ||
ad6254c5 AK |
8844 | done |
8845 | ||
8846 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
8847 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
8848 | if test "${ac_cv_func_select_args+set}" = set; then | |
8849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 8850 | else |
ad6254c5 AK |
8851 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
8852 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
8853 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
8854 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8855 | #line $LINENO "configure" |
ad6254c5 AK |
8856 | /* confdefs.h. */ |
8857 | _ACEOF | |
8858 | cat confdefs.h >>conftest.$ac_ext | |
8859 | cat >>conftest.$ac_ext <<_ACEOF | |
8860 | /* end confdefs.h. */ | |
8861 | $ac_includes_default | |
8862 | #if HAVE_SYS_SELECT_H | |
8863 | # include <sys/select.h> | |
8864 | #endif | |
8865 | #if HAVE_SYS_SOCKET_H | |
8866 | # include <sys/socket.h> | |
8867 | #endif | |
8868 | ||
8869 | int | |
8870 | main () | |
8871 | { | |
8872 | extern int select ($ac_arg1, | |
c1c065a3 AK |
8873 | $ac_arg234, $ac_arg234, $ac_arg234, |
8874 | $ac_arg5); | |
ad6254c5 AK |
8875 | ; |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext | |
8880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 8881 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
8882 | ac_status=$? |
8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8884 | (exit $ac_status); } && | |
c1c065a3 | 8885 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
8886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8887 | (eval $ac_try) 2>&5 | |
8888 | ac_status=$? | |
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8890 | (exit $ac_status); }; }; then | |
8891 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
8892 | else | |
8893 | echo "$as_me: failed program was:" >&5 | |
8894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8895 | ||
8896 | fi | |
c1c065a3 | 8897 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8898 | done |
8899 | done | |
8900 | done | |
8901 | # Provide a safe default value. | |
8902 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
8903 | ||
26e7f2e0 | 8904 | fi |
ad6254c5 AK |
8905 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
8906 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
8907 | ac_save_IFS=$IFS; IFS=',' | |
8908 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
8909 | IFS=$ac_save_IFS | |
8910 | shift | |
8911 | ||
8912 | cat >>confdefs.h <<_ACEOF | |
8913 | #define SELECT_TYPE_ARG1 $1 | |
8914 | _ACEOF | |
8915 | ||
8916 | ||
8917 | cat >>confdefs.h <<_ACEOF | |
8918 | #define SELECT_TYPE_ARG234 ($2) | |
8919 | _ACEOF | |
8920 | ||
8921 | ||
8922 | cat >>confdefs.h <<_ACEOF | |
8923 | #define SELECT_TYPE_ARG5 ($3) | |
8924 | _ACEOF | |
8925 | ||
80992638 | 8926 | rm -f conftest* |
80992638 | 8927 | |
8106cdd5 | 8928 | fi |
ad6254c5 AK |
8929 | |
8930 | if test x$FSADM = xyes; then | |
8931 | ||
8932 | ||
8933 | ||
8934 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
8935 | do | |
8936 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8938 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8939 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8942 | fi | |
8943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8944 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8945 | else | |
8946 | # Is the header compilable? | |
8947 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8948 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8949 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8950 | #line $LINENO "configure" |
ad6254c5 AK |
8951 | /* confdefs.h. */ |
8952 | _ACEOF | |
8953 | cat confdefs.h >>conftest.$ac_ext | |
8954 | cat >>conftest.$ac_ext <<_ACEOF | |
8955 | /* end confdefs.h. */ | |
8956 | $ac_includes_default | |
8957 | #include <$ac_header> | |
8958 | _ACEOF | |
8959 | rm -f conftest.$ac_objext | |
8960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 8961 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
8962 | ac_status=$? |
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8964 | (exit $ac_status); } && | |
c1c065a3 | 8965 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
8966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8967 | (eval $ac_try) 2>&5 | |
8968 | ac_status=$? | |
8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8970 | (exit $ac_status); }; }; then | |
8971 | ac_header_compiler=yes | |
8972 | else | |
8973 | echo "$as_me: failed program was:" >&5 | |
8974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8975 | ||
8976 | ac_header_compiler=no | |
8977 | fi | |
c1c065a3 | 8978 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8981 | ||
8982 | # Is the header present? | |
8983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8985 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 8986 | #line $LINENO "configure" |
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 | #include <$ac_header> | |
8993 | _ACEOF | |
8994 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8995 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8996 | ac_status=$? | |
8997 | grep -v '^ *+' conftest.er1 >conftest.err | |
8998 | rm -f conftest.er1 | |
8999 | cat conftest.err >&5 | |
9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9001 | (exit $ac_status); } >/dev/null; then | |
9002 | if test -s conftest.err; then | |
9003 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9004 | else | |
9005 | ac_cpp_err= | |
9006 | fi | |
9007 | else | |
9008 | ac_cpp_err=yes | |
9009 | fi | |
9010 | if test -z "$ac_cpp_err"; then | |
9011 | ac_header_preproc=yes | |
9012 | else | |
9013 | echo "$as_me: failed program was:" >&5 | |
9014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9015 | ||
9016 | ac_header_preproc=no | |
9017 | fi | |
9018 | rm -f conftest.err conftest.$ac_ext | |
9019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9020 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9021 | ||
9022 | # So? What about this header? | |
c1c065a3 AK |
9023 | case $ac_header_compiler:$ac_header_preproc in |
9024 | yes:no ) | |
ad6254c5 AK |
9025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9028 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9029 | ( | |
9030 | cat <<\_ASBOX | |
9031 | ## ------------------------------------ ## | |
9032 | ## Report this to bug-autoconf@gnu.org. ## | |
9033 | ## ------------------------------------ ## | |
9034 | _ASBOX | |
9035 | ) | | |
9036 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9037 | ;; |
c1c065a3 | 9038 | no:yes ) |
ad6254c5 AK |
9039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9045 | ( | |
9046 | cat <<\_ASBOX | |
c1c065a3 AK |
9047 | ## ------------------------------------ ## |
9048 | ## Report this to bug-autoconf@gnu.org. ## | |
9049 | ## ------------------------------------ ## | |
ad6254c5 AK |
9050 | _ASBOX |
9051 | ) | | |
9052 | sed "s/^/$as_me: WARNING: /" >&2 | |
9053 | ;; | |
9054 | esac | |
9055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9059 | else |
c1c065a3 | 9060 | eval "$as_ac_Header=$ac_header_preproc" |
26e7f2e0 | 9061 | fi |
ad6254c5 AK |
9062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 9064 | |
ad6254c5 AK |
9065 | fi |
9066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9067 | cat >>confdefs.h <<_ACEOF | |
9068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9069 | _ACEOF | |
26e7f2e0 | 9070 | |
d68a82ec | 9071 | else |
ad6254c5 AK |
9072 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9073 | echo "$as_me: error: bailing out" >&2;} | |
9074 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
9075 | fi |
9076 | ||
ad6254c5 | 9077 | done |
036f273a | 9078 | |
ad6254c5 AK |
9079 | |
9080 | for ac_func in memmove | |
9081 | do | |
9082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9083 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9085 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 9087 | else |
ad6254c5 | 9088 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 9089 | #line $LINENO "configure" |
ad6254c5 AK |
9090 | /* confdefs.h. */ |
9091 | _ACEOF | |
9092 | cat confdefs.h >>conftest.$ac_ext | |
9093 | cat >>conftest.$ac_ext <<_ACEOF | |
9094 | /* end confdefs.h. */ | |
9095 | /* System header to define __stub macros and hopefully few prototypes, | |
9096 | which can conflict with char $ac_func (); below. | |
9097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9098 | <limits.h> exists even on freestanding compilers. */ | |
9099 | #ifdef __STDC__ | |
9100 | # include <limits.h> | |
9101 | #else | |
9102 | # include <assert.h> | |
9103 | #endif | |
036f273a | 9104 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9105 | #ifdef __cplusplus |
9106 | extern "C" | |
9107 | { | |
9108 | #endif | |
036f273a | 9109 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9110 | builtin and then its argument prototype would still apply. */ |
9111 | char $ac_func (); | |
9112 | /* The GNU C library defines this for functions which it implements | |
9113 | to always fail with ENOSYS. Some functions are actually named | |
9114 | something starting with __ and the normal name is an alias. */ | |
9115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9116 | choke me | |
9117 | #else | |
9118 | char (*f) () = $ac_func; | |
9119 | #endif | |
9120 | #ifdef __cplusplus | |
9121 | } | |
9122 | #endif | |
80992638 | 9123 | |
ad6254c5 AK |
9124 | int |
9125 | main () | |
9126 | { | |
9127 | return f != $ac_func; | |
9128 | ; | |
9129 | return 0; | |
9130 | } | |
9131 | _ACEOF | |
9132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 9134 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
9135 | ac_status=$? |
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9137 | (exit $ac_status); } && | |
c1c065a3 | 9138 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
9139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9140 | (eval $ac_try) 2>&5 | |
9141 | ac_status=$? | |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9143 | (exit $ac_status); }; }; then | |
9144 | eval "$as_ac_var=yes" | |
036f273a | 9145 | else |
ad6254c5 AK |
9146 | echo "$as_me: failed program was:" >&5 |
9147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9148 | ||
9149 | eval "$as_ac_var=no" | |
036f273a | 9150 | fi |
c1c065a3 | 9151 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9152 | fi |
9153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9154 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9155 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9156 | cat >>confdefs.h <<_ACEOF | |
9157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9158 | _ACEOF | |
036f273a | 9159 | |
ad6254c5 AK |
9160 | else |
9161 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9162 | echo "$as_me: error: bailing out" >&2;} | |
9163 | { (exit 1); exit 1; }; } | |
9164 | fi | |
9165 | done | |
036f273a | 9166 | |
036f273a | 9167 | fi |
d68a82ec | 9168 | |
ad6254c5 AK |
9169 | if test x$CLUSTER != xnone; then |
9170 | ||
9171 | ||
9172 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 9173 | do |
ad6254c5 AK |
9174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9180 | fi | |
9181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9183 | else | |
9184 | # Is the header compilable? | |
9185 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9186 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9187 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9188 | #line $LINENO "configure" |
ad6254c5 AK |
9189 | /* confdefs.h. */ |
9190 | _ACEOF | |
9191 | cat confdefs.h >>conftest.$ac_ext | |
9192 | cat >>conftest.$ac_ext <<_ACEOF | |
9193 | /* end confdefs.h. */ | |
9194 | $ac_includes_default | |
9195 | #include <$ac_header> | |
9196 | _ACEOF | |
9197 | rm -f conftest.$ac_objext | |
9198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 9199 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
9200 | ac_status=$? |
9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9202 | (exit $ac_status); } && | |
c1c065a3 | 9203 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
9204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9205 | (eval $ac_try) 2>&5 | |
9206 | ac_status=$? | |
9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9208 | (exit $ac_status); }; }; then | |
9209 | ac_header_compiler=yes | |
9210 | else | |
9211 | echo "$as_me: failed program was:" >&5 | |
9212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9213 | ||
9214 | ac_header_compiler=no | |
9215 | fi | |
c1c065a3 | 9216 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9217 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9218 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9219 | ||
9220 | # Is the header present? | |
9221 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9222 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9223 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9224 | #line $LINENO "configure" |
ad6254c5 AK |
9225 | /* confdefs.h. */ |
9226 | _ACEOF | |
9227 | cat confdefs.h >>conftest.$ac_ext | |
9228 | cat >>conftest.$ac_ext <<_ACEOF | |
9229 | /* end confdefs.h. */ | |
9230 | #include <$ac_header> | |
9231 | _ACEOF | |
9232 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9233 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9234 | ac_status=$? | |
9235 | grep -v '^ *+' conftest.er1 >conftest.err | |
9236 | rm -f conftest.er1 | |
9237 | cat conftest.err >&5 | |
9238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9239 | (exit $ac_status); } >/dev/null; then | |
9240 | if test -s conftest.err; then | |
9241 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9242 | else | |
9243 | ac_cpp_err= | |
9244 | fi | |
9245 | else | |
9246 | ac_cpp_err=yes | |
8106cdd5 | 9247 | fi |
ad6254c5 AK |
9248 | if test -z "$ac_cpp_err"; then |
9249 | ac_header_preproc=yes | |
9250 | else | |
9251 | echo "$as_me: failed program was:" >&5 | |
9252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9253 | ||
9254 | ac_header_preproc=no | |
9255 | fi | |
9256 | rm -f conftest.err conftest.$ac_ext | |
9257 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9258 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9259 | ||
9260 | # So? What about this header? | |
c1c065a3 AK |
9261 | case $ac_header_compiler:$ac_header_preproc in |
9262 | yes:no ) | |
ad6254c5 AK |
9263 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9264 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9266 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9267 | ( | |
9268 | cat <<\_ASBOX | |
9269 | ## ------------------------------------ ## | |
9270 | ## Report this to bug-autoconf@gnu.org. ## | |
9271 | ## ------------------------------------ ## | |
9272 | _ASBOX | |
9273 | ) | | |
9274 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9275 | ;; |
c1c065a3 | 9276 | no:yes ) |
ad6254c5 AK |
9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9283 | ( | |
9284 | cat <<\_ASBOX | |
c1c065a3 AK |
9285 | ## ------------------------------------ ## |
9286 | ## Report this to bug-autoconf@gnu.org. ## | |
9287 | ## ------------------------------------ ## | |
ad6254c5 AK |
9288 | _ASBOX |
9289 | ) | | |
9290 | sed "s/^/$as_me: WARNING: /" >&2 | |
9291 | ;; | |
9292 | esac | |
9293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9297 | else | |
c1c065a3 | 9298 | eval "$as_ac_Header=$ac_header_preproc" |
b896caa1 | 9299 | fi |
ad6254c5 AK |
9300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9302 | ||
9303 | fi | |
9304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9305 | cat >>confdefs.h <<_ACEOF | |
9306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9307 | _ACEOF | |
9308 | ||
80992638 | 9309 | else |
ad6254c5 AK |
9310 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9311 | echo "$as_me: error: bailing out" >&2;} | |
9312 | { (exit 1); exit 1; }; } | |
b896caa1 | 9313 | fi |
ad6254c5 | 9314 | |
b896caa1 AK |
9315 | done |
9316 | ||
9317 | ||
ad6254c5 AK |
9318 | for ac_func in socket |
9319 | do | |
9320 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9321 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9322 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9323 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9325 | else |
ad6254c5 | 9326 | cat >conftest.$ac_ext <<_ACEOF |
c1c065a3 | 9327 | #line $LINENO "configure" |
ad6254c5 AK |
9328 | /* confdefs.h. */ |
9329 | _ACEOF | |
9330 | cat confdefs.h >>conftest.$ac_ext | |
9331 | cat >>conftest.$ac_ext <<_ACEOF | |
9332 | /* end confdefs.h. */ | |
9333 | /* System header to define __stub macros and hopefully few prototypes, | |
9334 | which can conflict with char $ac_func (); below. | |
9335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9336 | <limits.h> exists even on freestanding compilers. */ | |
9337 | #ifdef __STDC__ | |
9338 | # include <limits.h> | |
9339 | #else | |
9340 | # include <assert.h> | |
9341 | #endif | |
795ca3e5 | 9342 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9343 | #ifdef __cplusplus |
9344 | extern "C" | |
9345 | { | |
9346 | #endif | |
795ca3e5 | 9347 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9348 | builtin and then its argument prototype would still apply. */ |
9349 | char $ac_func (); | |
9350 | /* The GNU C library defines this for functions which it implements | |
9351 | to always fail with ENOSYS. Some functions are actually named | |
9352 | something starting with __ and the normal name is an alias. */ | |
9353 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9354 | choke me | |
9355 | #else | |
9356 | char (*f) () = $ac_func; | |
9357 | #endif | |
9358 | #ifdef __cplusplus | |
9359 | } | |
9360 | #endif | |
9361 | ||
9362 | int | |
9363 | main () | |
9364 | { | |
9365 | return f != $ac_func; | |
9366 | ; | |
9367 | return 0; | |
9368 | } | |
9369 | _ACEOF | |
9370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
c1c065a3 | 9372 | (eval $ac_link) 2>&5 |
ad6254c5 AK |
9373 | ac_status=$? |
9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9375 | (exit $ac_status); } && | |
c1c065a3 | 9376 | { ac_try='test -s conftest$ac_exeext' |
ad6254c5 AK |
9377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9378 | (eval $ac_try) 2>&5 | |
9379 | ac_status=$? | |
9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9381 | (exit $ac_status); }; }; then | |
9382 | eval "$as_ac_var=yes" | |
9383 | else | |
9384 | echo "$as_me: failed program was:" >&5 | |
9385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9386 | ||
9387 | eval "$as_ac_var=no" | |
9388 | fi | |
c1c065a3 | 9389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9390 | fi |
9391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9392 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9393 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9394 | cat >>confdefs.h <<_ACEOF | |
9395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9396 | _ACEOF | |
9397 | ||
9398 | else | |
9399 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9400 | echo "$as_me: error: bailing out" >&2;} | |
9401 | { (exit 1); exit 1; }; } | |
9402 | fi | |
9403 | done | |
9404 | ||
9405 | fi | |
9406 | ||
9407 | if test x$HAVE_LIBDL = xyes; then | |
9408 | ||
9409 | for ac_header in dlfcn.h | |
9410 | do | |
9411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9417 | fi | |
9418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9420 | else | |
9421 | # Is the header compilable? | |
9422 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9424 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9425 | #line $LINENO "configure" |
ad6254c5 AK |
9426 | /* confdefs.h. */ |
9427 | _ACEOF | |
9428 | cat confdefs.h >>conftest.$ac_ext | |
9429 | cat >>conftest.$ac_ext <<_ACEOF | |
9430 | /* end confdefs.h. */ | |
9431 | $ac_includes_default | |
9432 | #include <$ac_header> | |
9433 | _ACEOF | |
9434 | rm -f conftest.$ac_objext | |
9435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 9436 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
9437 | ac_status=$? |
9438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9439 | (exit $ac_status); } && | |
c1c065a3 | 9440 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
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); }; }; then | |
9446 | ac_header_compiler=yes | |
9447 | else | |
9448 | echo "$as_me: failed program was:" >&5 | |
9449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9450 | ||
9451 | ac_header_compiler=no | |
9452 | fi | |
c1c065a3 | 9453 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9455 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9456 | ||
9457 | # Is the header present? | |
9458 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9460 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9461 | #line $LINENO "configure" |
ad6254c5 AK |
9462 | /* confdefs.h. */ |
9463 | _ACEOF | |
9464 | cat confdefs.h >>conftest.$ac_ext | |
9465 | cat >>conftest.$ac_ext <<_ACEOF | |
9466 | /* end confdefs.h. */ | |
9467 | #include <$ac_header> | |
9468 | _ACEOF | |
9469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9471 | ac_status=$? | |
9472 | grep -v '^ *+' conftest.er1 >conftest.err | |
9473 | rm -f conftest.er1 | |
9474 | cat conftest.err >&5 | |
9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9476 | (exit $ac_status); } >/dev/null; then | |
9477 | if test -s conftest.err; then | |
9478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9479 | else | |
9480 | ac_cpp_err= | |
9481 | fi | |
9482 | else | |
9483 | ac_cpp_err=yes | |
9484 | fi | |
9485 | if test -z "$ac_cpp_err"; then | |
9486 | ac_header_preproc=yes | |
9487 | else | |
9488 | echo "$as_me: failed program was:" >&5 | |
9489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9490 | ||
9491 | ac_header_preproc=no | |
9492 | fi | |
9493 | rm -f conftest.err conftest.$ac_ext | |
9494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9495 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9496 | ||
9497 | # So? What about this header? | |
c1c065a3 AK |
9498 | case $ac_header_compiler:$ac_header_preproc in |
9499 | yes:no ) | |
ad6254c5 AK |
9500 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9501 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9503 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9504 | ( | |
9505 | cat <<\_ASBOX | |
9506 | ## ------------------------------------ ## | |
9507 | ## Report this to bug-autoconf@gnu.org. ## | |
9508 | ## ------------------------------------ ## | |
9509 | _ASBOX | |
9510 | ) | | |
9511 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9512 | ;; |
c1c065a3 | 9513 | no:yes ) |
ad6254c5 AK |
9514 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9515 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9516 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9517 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9519 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9520 | ( | |
9521 | cat <<\_ASBOX | |
c1c065a3 AK |
9522 | ## ------------------------------------ ## |
9523 | ## Report this to bug-autoconf@gnu.org. ## | |
9524 | ## ------------------------------------ ## | |
ad6254c5 AK |
9525 | _ASBOX |
9526 | ) | | |
9527 | sed "s/^/$as_me: WARNING: /" >&2 | |
9528 | ;; | |
9529 | esac | |
9530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9534 | else | |
c1c065a3 | 9535 | eval "$as_ac_Header=$ac_header_preproc" |
795ca3e5 | 9536 | fi |
ad6254c5 AK |
9537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 9539 | |
8106cdd5 | 9540 | fi |
ad6254c5 AK |
9541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9542 | cat >>confdefs.h <<_ACEOF | |
9543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9544 | _ACEOF | |
795ca3e5 AK |
9545 | |
9546 | else | |
ad6254c5 AK |
9547 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9548 | echo "$as_me: error: bailing out" >&2;} | |
9549 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
9550 | fi |
9551 | ||
ad6254c5 | 9552 | done |
80992638 | 9553 | |
ad6254c5 | 9554 | fi |
80992638 | 9555 | |
ad6254c5 | 9556 | if test x$INTL = xyes; then |
83912faa | 9557 | |
ad6254c5 AK |
9558 | for ac_header in libintl.h |
9559 | do | |
9560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9566 | fi | |
9567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 9569 | else |
ad6254c5 AK |
9570 | # Is the header compilable? |
9571 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9573 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9574 | #line $LINENO "configure" |
ad6254c5 AK |
9575 | /* confdefs.h. */ |
9576 | _ACEOF | |
9577 | cat confdefs.h >>conftest.$ac_ext | |
9578 | cat >>conftest.$ac_ext <<_ACEOF | |
9579 | /* end confdefs.h. */ | |
9580 | $ac_includes_default | |
9581 | #include <$ac_header> | |
9582 | _ACEOF | |
9583 | rm -f conftest.$ac_objext | |
9584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 9585 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
9586 | ac_status=$? |
9587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9588 | (exit $ac_status); } && | |
c1c065a3 | 9589 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
9590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9591 | (eval $ac_try) 2>&5 | |
9592 | ac_status=$? | |
9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9594 | (exit $ac_status); }; }; then | |
9595 | ac_header_compiler=yes | |
9596 | else | |
9597 | echo "$as_me: failed program was:" >&5 | |
9598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9599 | ||
9600 | ac_header_compiler=no | |
9601 | fi | |
c1c065a3 | 9602 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9604 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9605 | ||
9606 | # Is the header present? | |
9607 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9608 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9609 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9610 | #line $LINENO "configure" |
ad6254c5 AK |
9611 | /* confdefs.h. */ |
9612 | _ACEOF | |
9613 | cat confdefs.h >>conftest.$ac_ext | |
9614 | cat >>conftest.$ac_ext <<_ACEOF | |
9615 | /* end confdefs.h. */ | |
9616 | #include <$ac_header> | |
9617 | _ACEOF | |
9618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9620 | ac_status=$? | |
9621 | grep -v '^ *+' conftest.er1 >conftest.err | |
9622 | rm -f conftest.er1 | |
9623 | cat conftest.err >&5 | |
9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9625 | (exit $ac_status); } >/dev/null; then | |
9626 | if test -s conftest.err; then | |
9627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9628 | else | |
9629 | ac_cpp_err= | |
9630 | fi | |
9631 | else | |
9632 | ac_cpp_err=yes | |
795ca3e5 | 9633 | fi |
ad6254c5 AK |
9634 | if test -z "$ac_cpp_err"; then |
9635 | ac_header_preproc=yes | |
9636 | else | |
9637 | echo "$as_me: failed program was:" >&5 | |
9638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9639 | ||
9640 | ac_header_preproc=no | |
9641 | fi | |
9642 | rm -f conftest.err conftest.$ac_ext | |
9643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9644 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9645 | ||
9646 | # So? What about this header? | |
c1c065a3 AK |
9647 | case $ac_header_compiler:$ac_header_preproc in |
9648 | yes:no ) | |
ad6254c5 AK |
9649 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9650 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9652 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9653 | ( | |
9654 | cat <<\_ASBOX | |
9655 | ## ------------------------------------ ## | |
9656 | ## Report this to bug-autoconf@gnu.org. ## | |
9657 | ## ------------------------------------ ## | |
9658 | _ASBOX | |
9659 | ) | | |
9660 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9661 | ;; |
c1c065a3 | 9662 | no:yes ) |
ad6254c5 AK |
9663 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9664 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9665 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9666 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9668 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9669 | ( | |
9670 | cat <<\_ASBOX | |
c1c065a3 AK |
9671 | ## ------------------------------------ ## |
9672 | ## Report this to bug-autoconf@gnu.org. ## | |
9673 | ## ------------------------------------ ## | |
ad6254c5 AK |
9674 | _ASBOX |
9675 | ) | | |
9676 | sed "s/^/$as_me: WARNING: /" >&2 | |
9677 | ;; | |
9678 | esac | |
9679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 9683 | else |
c1c065a3 | 9684 | eval "$as_ac_Header=$ac_header_preproc" |
83912faa | 9685 | fi |
ad6254c5 AK |
9686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 9688 | |
69792976 | 9689 | fi |
ad6254c5 AK |
9690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9691 | cat >>confdefs.h <<_ACEOF | |
9692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9693 | _ACEOF | |
69792976 | 9694 | |
69792976 | 9695 | else |
ad6254c5 AK |
9696 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9697 | echo "$as_me: error: bailing out" >&2;} | |
9698 | { (exit 1); exit 1; }; } | |
80992638 AK |
9699 | fi |
9700 | ||
ad6254c5 | 9701 | done |
69792976 | 9702 | |
ad6254c5 AK |
9703 | fi |
9704 | ||
9705 | if test x$DEVMAPPER = xyes; then | |
9706 | ||
9707 | for ac_header in libdevmapper.h | |
9708 | do | |
9709 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9711 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9712 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9713 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9715 | fi | |
9716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9717 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 9718 | else |
ad6254c5 AK |
9719 | # Is the header compilable? |
9720 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9721 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9722 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9723 | #line $LINENO "configure" |
ad6254c5 AK |
9724 | /* confdefs.h. */ |
9725 | _ACEOF | |
9726 | cat confdefs.h >>conftest.$ac_ext | |
9727 | cat >>conftest.$ac_ext <<_ACEOF | |
9728 | /* end confdefs.h. */ | |
9729 | $ac_includes_default | |
9730 | #include <$ac_header> | |
9731 | _ACEOF | |
9732 | rm -f conftest.$ac_objext | |
9733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 9734 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
9735 | ac_status=$? |
9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9737 | (exit $ac_status); } && | |
c1c065a3 | 9738 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
9739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9740 | (eval $ac_try) 2>&5 | |
9741 | ac_status=$? | |
9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9743 | (exit $ac_status); }; }; then | |
9744 | ac_header_compiler=yes | |
9745 | else | |
9746 | echo "$as_me: failed program was:" >&5 | |
9747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9748 | ||
9749 | ac_header_compiler=no | |
9750 | fi | |
c1c065a3 | 9751 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9752 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9753 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9754 | ||
9755 | # Is the header present? | |
9756 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9757 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9758 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9759 | #line $LINENO "configure" |
ad6254c5 AK |
9760 | /* confdefs.h. */ |
9761 | _ACEOF | |
9762 | cat confdefs.h >>conftest.$ac_ext | |
9763 | cat >>conftest.$ac_ext <<_ACEOF | |
9764 | /* end confdefs.h. */ | |
9765 | #include <$ac_header> | |
9766 | _ACEOF | |
9767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9769 | ac_status=$? | |
9770 | grep -v '^ *+' conftest.er1 >conftest.err | |
9771 | rm -f conftest.er1 | |
9772 | cat conftest.err >&5 | |
9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9774 | (exit $ac_status); } >/dev/null; then | |
9775 | if test -s conftest.err; then | |
9776 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9777 | else | |
9778 | ac_cpp_err= | |
9779 | fi | |
9780 | else | |
9781 | ac_cpp_err=yes | |
69792976 | 9782 | fi |
ad6254c5 AK |
9783 | if test -z "$ac_cpp_err"; then |
9784 | ac_header_preproc=yes | |
9785 | else | |
9786 | echo "$as_me: failed program was:" >&5 | |
9787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9788 | ||
9789 | ac_header_preproc=no | |
9790 | fi | |
9791 | rm -f conftest.err conftest.$ac_ext | |
9792 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9793 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9794 | ||
9795 | # So? What about this header? | |
c1c065a3 AK |
9796 | case $ac_header_compiler:$ac_header_preproc in |
9797 | yes:no ) | |
ad6254c5 AK |
9798 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9799 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9802 | ( | |
9803 | cat <<\_ASBOX | |
9804 | ## ------------------------------------ ## | |
9805 | ## Report this to bug-autoconf@gnu.org. ## | |
9806 | ## ------------------------------------ ## | |
9807 | _ASBOX | |
9808 | ) | | |
9809 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9810 | ;; |
c1c065a3 | 9811 | no:yes ) |
ad6254c5 AK |
9812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9818 | ( | |
9819 | cat <<\_ASBOX | |
c1c065a3 AK |
9820 | ## ------------------------------------ ## |
9821 | ## Report this to bug-autoconf@gnu.org. ## | |
9822 | ## ------------------------------------ ## | |
ad6254c5 AK |
9823 | _ASBOX |
9824 | ) | | |
9825 | sed "s/^/$as_me: WARNING: /" >&2 | |
9826 | ;; | |
9827 | esac | |
9828 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9829 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 9832 | else |
c1c065a3 | 9833 | eval "$as_ac_Header=$ac_header_preproc" |
69792976 | 9834 | fi |
ad6254c5 AK |
9835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9836 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 9837 | |
ad6254c5 AK |
9838 | fi |
9839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9840 | cat >>confdefs.h <<_ACEOF | |
9841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9842 | _ACEOF | |
69792976 | 9843 | |
69792976 | 9844 | else |
ad6254c5 AK |
9845 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9846 | echo "$as_me: error: bailing out" >&2;} | |
9847 | { (exit 1); exit 1; }; } | |
83912faa AK |
9848 | fi |
9849 | ||
ad6254c5 AK |
9850 | done |
9851 | ||
80992638 | 9852 | fi |
4a7f3eb2 | 9853 | |
ad6254c5 AK |
9854 | if test x$HAVE_SELINUX = xyes; then |
9855 | ||
9856 | for ac_header in selinux/selinux.h | |
9857 | do | |
9858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9864 | fi | |
9865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 9867 | else |
ad6254c5 AK |
9868 | # Is the header compilable? |
9869 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9871 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9872 | #line $LINENO "configure" |
ad6254c5 AK |
9873 | /* confdefs.h. */ |
9874 | _ACEOF | |
9875 | cat confdefs.h >>conftest.$ac_ext | |
9876 | cat >>conftest.$ac_ext <<_ACEOF | |
9877 | /* end confdefs.h. */ | |
9878 | $ac_includes_default | |
9879 | #include <$ac_header> | |
9880 | _ACEOF | |
9881 | rm -f conftest.$ac_objext | |
9882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
c1c065a3 | 9883 | (eval $ac_compile) 2>&5 |
ad6254c5 AK |
9884 | ac_status=$? |
9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9886 | (exit $ac_status); } && | |
c1c065a3 | 9887 | { ac_try='test -s conftest.$ac_objext' |
ad6254c5 AK |
9888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9889 | (eval $ac_try) 2>&5 | |
9890 | ac_status=$? | |
9891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9892 | (exit $ac_status); }; }; then | |
9893 | ac_header_compiler=yes | |
9894 | else | |
9895 | echo "$as_me: failed program was:" >&5 | |
9896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9897 | ||
9898 | ac_header_compiler=no | |
9899 | fi | |
c1c065a3 | 9900 | rm -f conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9902 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9903 | ||
9904 | # Is the header present? | |
9905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9907 | cat >conftest.$ac_ext <<_ACEOF | |
c1c065a3 | 9908 | #line $LINENO "configure" |
ad6254c5 AK |
9909 | /* confdefs.h. */ |
9910 | _ACEOF | |
9911 | cat confdefs.h >>conftest.$ac_ext | |
9912 | cat >>conftest.$ac_ext <<_ACEOF | |
9913 | /* end confdefs.h. */ | |
9914 | #include <$ac_header> | |
9915 | _ACEOF | |
9916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9918 | ac_status=$? | |
9919 | grep -v '^ *+' conftest.er1 >conftest.err | |
9920 | rm -f conftest.er1 | |
9921 | cat conftest.err >&5 | |
9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9923 | (exit $ac_status); } >/dev/null; then | |
9924 | if test -s conftest.err; then | |
9925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9926 | else | |
9927 | ac_cpp_err= | |
9928 | fi | |
9929 | else | |
9930 | ac_cpp_err=yes | |
9931 | fi | |
9932 | if test -z "$ac_cpp_err"; then | |
9933 | ac_header_preproc=yes | |
9934 | else | |
9935 | echo "$as_me: failed program was:" >&5 | |
9936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9937 | ||
9938 | ac_header_preproc=no | |
9939 | fi | |
9940 | rm -f conftest.err conftest.$ac_ext | |
9941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9942 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9943 | ||
9944 | # So? What about this header? | |
c1c065a3 AK |
9945 | case $ac_header_compiler:$ac_header_preproc in |
9946 | yes:no ) | |
ad6254c5 AK |
9947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
c1c065a3 AK |
9949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9950 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9951 | ( | |
9952 | cat <<\_ASBOX | |
9953 | ## ------------------------------------ ## | |
9954 | ## Report this to bug-autoconf@gnu.org. ## | |
9955 | ## ------------------------------------ ## | |
9956 | _ASBOX | |
9957 | ) | | |
9958 | sed "s/^/$as_me: WARNING: /" >&2 | |
ad6254c5 | 9959 | ;; |
c1c065a3 | 9960 | no:yes ) |
ad6254c5 AK |
9961 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9962 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
c1c065a3 AK |
9963 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9964 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
ad6254c5 AK |
9965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9966 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9967 | ( | |
9968 | cat <<\_ASBOX | |
c1c065a3 AK |
9969 | ## ------------------------------------ ## |
9970 | ## Report this to bug-autoconf@gnu.org. ## | |
9971 | ## ------------------------------------ ## | |
ad6254c5 AK |
9972 | _ASBOX |
9973 | ) | | |
9974 | sed "s/^/$as_me: WARNING: /" >&2 | |
9975 | ;; | |
9976 | esac | |
9977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9981 | else | |
c1c065a3 | 9982 | eval "$as_ac_Header=$ac_header_preproc" |
80992638 | 9983 | fi |
ad6254c5 AK |
9984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 9986 | |
ad6254c5 AK |
9987 | fi |
9988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9989 | cat >>confdefs.h <<_ACEOF | |
9990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9991 | _ACEOF | |
0a62c911 | 9992 | |
0a62c911 | 9993 | else |
ad6254c5 AK |
9994 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9995 | echo "$as_me: error: bailing out" >&2;} | |
9996 | { (exit 1); exit 1; }; } | |
80992638 AK |
9997 | fi |
9998 | ||
ad6254c5 | 9999 | done |
0a62c911 | 10000 | |
ad6254c5 | 10001 | fi |
0a62c911 | 10002 | |
a653923f AK |
10003 | ################################################################################ |
10004 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10005 | set dummy modprobe; ac_word=$2 | |
10006 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10008 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then | |
10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10010 | else | |
10011 | case $MODPROBE_CMD in | |
10012 | [\\/]* | ?:[\\/]*) | |
10013 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10014 | ;; | |
10015 | *) | |
10016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10017 | for as_dir in $PATH | |
10018 | do | |
10019 | IFS=$as_save_IFS | |
10020 | test -z "$as_dir" && as_dir=. | |
10021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10022 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10023 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
10024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10025 | break 2 | |
10026 | fi | |
10027 | done | |
10028 | done | |
10029 | ||
10030 | ;; | |
10031 | esac | |
10032 | fi | |
10033 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
10034 | ||
10035 | if test -n "$MODPROBE_CMD"; then | |
10036 | echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 | |
10037 | echo "${ECHO_T}$MODPROBE_CMD" >&6 | |
10038 | else | |
10039 | echo "$as_me:$LINENO: result: no" >&5 | |
10040 | echo "${ECHO_T}no" >&6 | |
10041 | fi | |
10042 | ||
10043 | ||
10044 | if test x$MODPROBE_CMD != x; then | |
10045 | CFLAGS="$CFLAGS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\"" | |
10046 | fi | |
10047 | ||
80992638 | 10048 | ################################################################################ |
fae0c576 AK |
10049 | if test "-f VERSION"; then |
10050 | LVM_VERSION="\"`cat VERSION`\"" | |
10051 | else | |
10052 | LVM_VERSION="Unknown" | |
10053 | fi | |
10054 | ||
80992638 | 10055 | ################################################################################ |
fae0c576 | 10056 | |
83912faa | 10057 | |
795ca3e5 AK |
10058 | |
10059 | ||
10060 | ||
10061 | ||
10062 | ||
10063 | ||
5a52dca9 | 10064 | |
8ef2b021 | 10065 | |
199e490e | 10066 | |
69792976 AK |
10067 | |
10068 | ||
10069 | ||
10070 | ||
8106cdd5 AK |
10071 | |
10072 | ||
10073 | ||
10074 | ||
10075 | ||
d68a82ec | 10076 | |
036f273a | 10077 | |
7d1552c9 | 10078 | |
8106cdd5 | 10079 | |
0a62c911 | 10080 | |
8106cdd5 | 10081 | |
4a7f3eb2 | 10082 | |
4922197a AK |
10083 | |
10084 | ||
d8ac0fbc | 10085 | |
1a9ea74d | 10086 | |
8ce0cbda | 10087 | |
06f62ad1 | 10088 | |
d3c8211f AK |
10089 | |
10090 | ||
80992638 | 10091 | ################################################################################ |
06f62ad1 | 10092 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" |
ad6254c5 | 10093 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10094 | # This file is a shell script that caches the results of configure |
10095 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10096 | # scripts and configure runs, see configure's option --config-cache. |
10097 | # It is not useful on other systems. If it contains results you don't | |
10098 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10099 | # |
ad6254c5 AK |
10100 | # config.status only pays attention to the cache file if you give it |
10101 | # the --recheck option to rerun configure. | |
795ca3e5 | 10102 | # |
ad6254c5 AK |
10103 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10104 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10105 | # following values. | |
10106 | ||
10107 | _ACEOF | |
10108 | ||
795ca3e5 AK |
10109 | # The following way of writing the cache mishandles newlines in values, |
10110 | # but we know of no workaround that is simple, portable, and efficient. | |
10111 | # So, don't put newlines in cache variables' values. | |
10112 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10113 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
10114 | { |
10115 | (set) 2>&1 | | |
10116 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10117 | *ac_space=\ *) | |
10118 | # `set' does not quote correctly, so add quotes (double-quote | |
10119 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10120 | sed -n \ | |
c1c065a3 AK |
10121 | "s/'/'\\\\''/g; |
10122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
10123 | ;; |
10124 | *) | |
10125 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10126 | sed -n \ | |
c1c065a3 | 10127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
10128 | ;; |
10129 | esac; | |
10130 | } | | |
10131 | sed ' | |
10132 | t clear | |
10133 | : clear | |
10134 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10135 | t end | |
10136 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10137 | : end' >>confcache | |
10138 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 10139 | if test -w $cache_file; then |
ad6254c5 AK |
10140 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10141 | cat confcache >$cache_file | |
795ca3e5 AK |
10142 | else |
10143 | echo "not updating unwritable cache $cache_file" | |
10144 | fi | |
10145 | fi | |
10146 | rm -f confcache | |
10147 | ||
795ca3e5 AK |
10148 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10149 | # Let make expand exec_prefix. | |
10150 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10151 | ||
ad6254c5 AK |
10152 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
10153 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10154 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10155 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 10156 | if test "x$srcdir" = x.; then |
c1c065a3 | 10157 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
10158 | s/:*\$(srcdir):*/:/; |
10159 | s/:*\${srcdir}:*/:/; | |
10160 | s/:*@srcdir@:*/:/; | |
c1c065a3 | 10161 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 10162 | s/:*$//; |
c1c065a3 | 10163 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 10164 | }' |
795ca3e5 AK |
10165 | fi |
10166 | ||
795ca3e5 AK |
10167 | # Transform confdefs.h into DEFS. |
10168 | # Protect against shell expansion while executing Makefile rules. | |
10169 | # Protect against Makefile macro expansion. | |
ad6254c5 AK |
10170 | # |
10171 | # If the first sed substitution is executed (which looks for macros that | |
10172 | # take arguments), then we branch to the quote section. Otherwise, | |
10173 | # look for a macro that doesn't take arguments. | |
10174 | cat >confdef2opt.sed <<\_ACEOF | |
10175 | t clear | |
10176 | : clear | |
c1c065a3 | 10177 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 | 10178 | t quote |
c1c065a3 | 10179 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 AK |
10180 | t quote |
10181 | d | |
10182 | : quote | |
c1c065a3 | 10183 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
ad6254c5 AK |
10184 | s,\[,\\&,g |
10185 | s,\],\\&,g | |
10186 | s,\$,$$,g | |
10187 | p | |
10188 | _ACEOF | |
10189 | # We use echo to avoid assuming a particular line-breaking character. | |
10190 | # The extra dot is to prevent the shell from consuming trailing | |
10191 | # line-breaks from the sub-command output. A line-break within | |
10192 | # single-quotes doesn't work because, if this script is created in a | |
10193 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
10194 | # would break. | |
10195 | ac_LF_and_DOT=`echo; echo .` | |
10196 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
10197 | rm -f confdef2opt.sed | |
10198 | ||
10199 | ||
10200 | ac_libobjs= | |
10201 | ac_ltlibobjs= | |
10202 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10203 | # 1. Remove the extension, and $U if already installed. | |
10204 | ac_i=`echo "$ac_i" | | |
c1c065a3 | 10205 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
10206 | # 2. Add them. |
10207 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
10208 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
10209 | done | |
10210 | LIBOBJS=$ac_libobjs | |
80992638 | 10211 | |
ad6254c5 AK |
10212 | LTLIBOBJS=$ac_ltlibobjs |
10213 | ||
10214 | ||
10215 | ||
10216 | : ${CONFIG_STATUS=./config.status} | |
10217 | ac_clean_files_save=$ac_clean_files | |
10218 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10219 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10220 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10221 | cat >$CONFIG_STATUS <<_ACEOF | |
10222 | #! $SHELL | |
10223 | # Generated by $as_me. | |
795ca3e5 | 10224 | # Run this file to recreate the current configuration. |
795ca3e5 | 10225 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10226 | # configure, is in config.log if it exists. |
10227 | ||
10228 | debug=false | |
10229 | ac_cs_recheck=false | |
10230 | ac_cs_silent=false | |
10231 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10232 | _ACEOF | |
10233 | ||
10234 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10235 | ## --------------------- ## | |
10236 | ## M4sh Initialization. ## | |
10237 | ## --------------------- ## | |
10238 | ||
10239 | # Be Bourne compatible | |
10240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
10241 | emulate sh | |
10242 | NULLCMD=: | |
10243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10244 | # is contrary to our usage. Disable this feature. | |
10245 | alias -g '${1+"$@"}'='"$@"' | |
10246 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
10247 | set -o posix | |
10248 | fi | |
10249 | ||
10250 | # Support unset when possible. | |
c1c065a3 | 10251 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
ad6254c5 AK |
10252 | as_unset=unset |
10253 | else | |
10254 | as_unset=false | |
10255 | fi | |
8106cdd5 | 10256 | |
ad6254c5 AK |
10257 | |
10258 | # Work around bugs in pre-3.0 UWIN ksh. | |
10259 | $as_unset ENV MAIL MAILPATH | |
10260 | PS1='$ ' | |
10261 | PS2='> ' | |
10262 | PS4='+ ' | |
10263 | ||
10264 | # NLS nuisances. | |
10265 | for as_var in \ | |
10266 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10267 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10268 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 10269 | do |
c1c065a3 | 10270 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
10271 | eval $as_var=C; export $as_var |
10272 | else | |
10273 | $as_unset $as_var | |
10274 | fi | |
8106cdd5 AK |
10275 | done |
10276 | ||
ad6254c5 AK |
10277 | # Required to use basename. |
10278 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10279 | as_expr=expr | |
10280 | else | |
10281 | as_expr=false | |
10282 | fi | |
8106cdd5 | 10283 | |
ad6254c5 AK |
10284 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
10285 | as_basename=basename | |
10286 | else | |
10287 | as_basename=false | |
10288 | fi | |
10289 | ||
10290 | ||
10291 | # Name of the executable. | |
10292 | as_me=`$as_basename "$0" || | |
10293 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10294 | X"$0" : 'X\(//\)$' \| \ | |
10295 | X"$0" : 'X\(/\)$' \| \ | |
10296 | . : '\(.\)' 2>/dev/null || | |
10297 | echo X/"$0" | | |
10298 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
10299 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
10300 | /^X\/\(\/\).*/{ s//\1/; q; } | |
10301 | s/.*/./; q'` | |
10302 | ||
10303 | ||
10304 | # PATH needs CR, and LINENO needs CR and PATH. | |
10305 | # Avoid depending upon Character Ranges. | |
10306 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10307 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10308 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10309 | as_cr_digits='0123456789' | |
10310 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10311 | ||
10312 | # The user is always right. | |
10313 | if test "${PATH_SEPARATOR+set}" != set; then | |
10314 | echo "#! /bin/sh" >conf$$.sh | |
10315 | echo "exit 0" >>conf$$.sh | |
10316 | chmod +x conf$$.sh | |
10317 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10318 | PATH_SEPARATOR=';' | |
80992638 | 10319 | else |
ad6254c5 | 10320 | PATH_SEPARATOR=: |
80992638 | 10321 | fi |
ad6254c5 AK |
10322 | rm -f conf$$.sh |
10323 | fi | |
10324 | ||
10325 | ||
10326 | as_lineno_1=$LINENO | |
10327 | as_lineno_2=$LINENO | |
10328 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10329 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10330 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
10331 | # Find who we are. Look in the path if we contain no path at all | |
10332 | # relative or not. | |
10333 | case $0 in | |
10334 | *[\\/]* ) as_myself=$0 ;; | |
10335 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10336 | for as_dir in $PATH | |
10337 | do | |
10338 | IFS=$as_save_IFS | |
10339 | test -z "$as_dir" && as_dir=. | |
10340 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10341 | done | |
10342 | ||
10343 | ;; | |
10344 | esac | |
10345 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10346 | # in which case we are not to be found in the path. | |
10347 | if test "x$as_myself" = x; then | |
10348 | as_myself=$0 | |
10349 | fi | |
10350 | if test ! -f "$as_myself"; then | |
10351 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
10352 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
10353 | { (exit 1); exit 1; }; } | |
8106cdd5 | 10354 | fi |
ad6254c5 AK |
10355 | case $CONFIG_SHELL in |
10356 | '') | |
10357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10358 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
10359 | do | |
10360 | IFS=$as_save_IFS | |
10361 | test -z "$as_dir" && as_dir=. | |
10362 | for as_base in sh bash ksh sh5; do | |
10363 | case $as_dir in | |
10364 | /*) | |
10365 | if ("$as_dir/$as_base" -c ' | |
10366 | as_lineno_1=$LINENO | |
10367 | as_lineno_2=$LINENO | |
10368 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10369 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10370 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
10371 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
10372 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
10373 | CONFIG_SHELL=$as_dir/$as_base | |
10374 | export CONFIG_SHELL | |
10375 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
10376 | fi;; | |
10377 | esac | |
10378 | done | |
80992638 | 10379 | done |
ad6254c5 | 10380 | ;; |
795ca3e5 AK |
10381 | esac |
10382 | ||
ad6254c5 AK |
10383 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
10384 | # uniformly replaced by the line number. The first 'sed' inserts a | |
10385 | # line-number line before each line; the second 'sed' does the real | |
10386 | # work. The second script uses 'N' to pair each line-number line | |
10387 | # with the numbered line, and appends trailing '-' during | |
10388 | # substitution so that $LINENO is not a special case at line end. | |
10389 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
10390 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
10391 | sed '=' <$as_myself | | |
10392 | sed ' | |
10393 | N | |
10394 | s,$,-, | |
10395 | : loop | |
10396 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
10397 | t loop | |
10398 | s,-$,, | |
10399 | s,^['$as_cr_digits']*\n,, | |
10400 | ' >$as_me.lineno && | |
10401 | chmod +x $as_me.lineno || | |
10402 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
10403 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
10404 | { (exit 1); exit 1; }; } | |
10405 | ||
10406 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10407 | # (the dirname of $[0] is not the place where we might find the | |
10408 | # original and so on. Autoconf is especially sensible to this). | |
10409 | . ./$as_me.lineno | |
10410 | # Exit status is that of the last command. | |
10411 | exit | |
10412 | } | |
10413 | ||
10414 | ||
10415 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
10416 | *c*,-n*) ECHO_N= ECHO_C=' | |
10417 | ' ECHO_T=' ' ;; | |
10418 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
10419 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
10420 | esac | |
10421 | ||
10422 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10423 | as_expr=expr | |
10424 | else | |
10425 | as_expr=false | |
10426 | fi | |
80992638 | 10427 | |
ad6254c5 AK |
10428 | rm -f conf$$ conf$$.exe conf$$.file |
10429 | echo >conf$$.file | |
10430 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10431 | # We could just check for DJGPP; but this test a) works b) is more generic | |
10432 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
10433 | if test -f conf$$.exe; then | |
10434 | # Don't use ln at all; we don't have any links | |
10435 | as_ln_s='cp -p' | |
8106cdd5 | 10436 | else |
ad6254c5 | 10437 | as_ln_s='ln -s' |
80992638 | 10438 | fi |
ad6254c5 AK |
10439 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10440 | as_ln_s=ln | |
10441 | else | |
10442 | as_ln_s='cp -p' | |
10443 | fi | |
10444 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 10445 | |
ad6254c5 AK |
10446 | if mkdir -p . 2>/dev/null; then |
10447 | as_mkdir_p=: | |
10448 | else | |
10449 | as_mkdir_p=false | |
10450 | fi | |
10451 | ||
10452 | as_executable_p="test -f" | |
10453 | ||
10454 | # Sed expression to map a string onto a valid CPP name. | |
c1c065a3 | 10455 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
ad6254c5 AK |
10456 | |
10457 | # Sed expression to map a string onto a valid variable name. | |
c1c065a3 | 10458 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
ad6254c5 AK |
10459 | |
10460 | ||
10461 | # IFS | |
10462 | # We need space, tab and new line, in precisely that order. | |
10463 | as_nl=' | |
10464 | ' | |
10465 | IFS=" $as_nl" | |
10466 | ||
10467 | # CDPATH. | |
10468 | $as_unset CDPATH | |
10469 | ||
10470 | exec 6>&1 | |
10471 | ||
10472 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
10473 | # report actual input values of CONFIG_FILES etc. instead of their | |
10474 | # values after options handling. Logging --version etc. is OK. | |
10475 | exec 5>>config.log | |
10476 | { | |
10477 | echo | |
10478 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10479 | ## Running $as_me. ## | |
10480 | _ASBOX | |
10481 | } >&5 | |
10482 | cat >&5 <<_CSEOF | |
10483 | ||
10484 | This file was extended by $as_me, which was | |
c1c065a3 | 10485 | generated by GNU Autoconf 2.57. Invocation command line was |
ad6254c5 AK |
10486 | |
10487 | CONFIG_FILES = $CONFIG_FILES | |
10488 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10489 | CONFIG_LINKS = $CONFIG_LINKS | |
10490 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10491 | $ $0 $@ | |
10492 | ||
10493 | _CSEOF | |
10494 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
10495 | echo >&5 | |
10496 | _ACEOF | |
10497 | ||
10498 | # Files that config.status was made for. | |
10499 | if test -n "$ac_config_files"; then | |
10500 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
10501 | fi | |
10502 | ||
10503 | if test -n "$ac_config_headers"; then | |
10504 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
10505 | fi | |
10506 | ||
10507 | if test -n "$ac_config_links"; then | |
10508 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
10509 | fi | |
10510 | ||
10511 | if test -n "$ac_config_commands"; then | |
10512 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
10513 | fi | |
10514 | ||
10515 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10516 | ||
10517 | ac_cs_usage="\ | |
10518 | \`$as_me' instantiates files from templates according to the | |
10519 | current configuration. | |
10520 | ||
10521 | Usage: $0 [OPTIONS] [FILE]... | |
10522 | ||
10523 | -h, --help print this help, then exit | |
10524 | -V, --version print version number, then exit | |
10525 | -q, --quiet do not print progress messages | |
10526 | -d, --debug don't remove temporary files | |
10527 | --recheck update $as_me by reconfiguring in the same conditions | |
10528 | --file=FILE[:TEMPLATE] | |
c1c065a3 | 10529 | instantiate the configuration file FILE |
ad6254c5 AK |
10530 | |
10531 | Configuration files: | |
10532 | $config_files | |
10533 | ||
10534 | Report bugs to <bug-autoconf@gnu.org>." | |
10535 | _ACEOF | |
10536 | ||
10537 | cat >>$CONFIG_STATUS <<_ACEOF | |
10538 | ac_cs_version="\\ | |
10539 | config.status | |
c1c065a3 | 10540 | configured by $0, generated by GNU Autoconf 2.57, |
ad6254c5 AK |
10541 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
10542 | ||
c1c065a3 AK |
10543 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
10544 | Free Software Foundation, Inc. | |
ad6254c5 AK |
10545 | This config.status script is free software; the Free Software Foundation |
10546 | gives unlimited permission to copy, distribute and modify it." | |
10547 | srcdir=$srcdir | |
10548 | INSTALL="$INSTALL" | |
10549 | _ACEOF | |
10550 | ||
10551 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10552 | # If no file are specified by the user, then we need to provide default | |
10553 | # value. By we need to know if files were specified by the user. | |
10554 | ac_need_defaults=: | |
10555 | while test $# != 0 | |
10556 | do | |
10557 | case $1 in | |
10558 | --*=*) | |
10559 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
10560 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
10561 | ac_shift=: | |
10562 | ;; | |
10563 | -*) | |
10564 | ac_option=$1 | |
10565 | ac_optarg=$2 | |
10566 | ac_shift=shift | |
10567 | ;; | |
10568 | *) # This is not an option, so the user has probably given explicit | |
10569 | # arguments. | |
10570 | ac_option=$1 | |
10571 | ac_need_defaults=false;; | |
10572 | esac | |
10573 | ||
10574 | case $ac_option in | |
10575 | # Handling of the options. | |
10576 | _ACEOF | |
10577 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10578 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10579 | ac_cs_recheck=: ;; | |
10580 | --version | --vers* | -V ) | |
10581 | echo "$ac_cs_version"; exit 0 ;; | |
10582 | --he | --h) | |
10583 | # Conflict between --help and --header | |
10584 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
10585 | Try \`$0 --help' for more information." >&5 | |
10586 | echo "$as_me: error: ambiguous option: $1 | |
10587 | Try \`$0 --help' for more information." >&2;} | |
10588 | { (exit 1); exit 1; }; };; | |
10589 | --help | --hel | -h ) | |
10590 | echo "$ac_cs_usage"; exit 0 ;; | |
10591 | --debug | --d* | -d ) | |
10592 | debug=: ;; | |
10593 | --file | --fil | --fi | --f ) | |
10594 | $ac_shift | |
10595 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10596 | ac_need_defaults=false;; | |
10597 | --header | --heade | --head | --hea ) | |
10598 | $ac_shift | |
10599 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
10600 | ac_need_defaults=false;; | |
10601 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10602 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10603 | ac_cs_silent=: ;; | |
10604 | ||
10605 | # This is an error. | |
10606 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
10607 | Try \`$0 --help' for more information." >&5 | |
10608 | echo "$as_me: error: unrecognized option: $1 | |
10609 | Try \`$0 --help' for more information." >&2;} | |
10610 | { (exit 1); exit 1; }; } ;; | |
10611 | ||
10612 | *) ac_config_targets="$ac_config_targets $1" ;; | |
10613 | ||
10614 | esac | |
10615 | shift | |
10616 | done | |
10617 | ||
10618 | ac_configure_extra_args= | |
10619 | ||
10620 | if $ac_cs_silent; then | |
10621 | exec 6>/dev/null | |
10622 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10623 | fi | |
10624 | ||
10625 | _ACEOF | |
10626 | cat >>$CONFIG_STATUS <<_ACEOF | |
10627 | if \$ac_cs_recheck; then | |
10628 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
10629 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10630 | fi | |
10631 | ||
10632 | _ACEOF | |
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10639 | for ac_config_target in $ac_config_targets | |
10640 | do | |
10641 | case "$ac_config_target" in | |
10642 | # Handling of arguments. | |
10643 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10644 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
10645 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
10646 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
06f62ad1 AK |
10647 | "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; |
10648 | "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
ad6254c5 AK |
10649 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
10650 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
10651 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
10652 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
10653 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
10654 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
10655 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
10656 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
10657 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
10658 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
10659 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
10660 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
10661 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
10662 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
10663 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
10664 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
10665 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
10666 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
10667 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
10668 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10669 | { (exit 1); exit 1; }; };; | |
80992638 | 10670 | esac |
ad6254c5 AK |
10671 | done |
10672 | ||
10673 | # If the user did not use the arguments to specify the items to instantiate, | |
10674 | # then the envvar interface is used. Set only those that are not. | |
10675 | # We use the long form for the default assignment because of an extremely | |
10676 | # bizarre bug on SunOS 4.1.3. | |
10677 | if $ac_need_defaults; then | |
10678 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10679 | fi | |
10680 | ||
10681 | # Have a temporary directory for convenience. Make it in the build tree | |
10682 | # simply because there is no reason to put it here, and in addition, | |
10683 | # creating and moving files from /tmp can sometimes cause problems. | |
10684 | # Create a temporary directory, and hook for its removal unless debugging. | |
10685 | $debug || | |
10686 | { | |
10687 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
10688 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
10689 | } | |
10690 | ||
10691 | # Create a (secure) tmp directory for tmp files. | |
10692 | ||
10693 | { | |
10694 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
10695 | test -n "$tmp" && test -d "$tmp" | |
10696 | } || | |
10697 | { | |
10698 | tmp=./confstat$$-$RANDOM | |
10699 | (umask 077 && mkdir $tmp) | |
10700 | } || | |
10701 | { | |
10702 | echo "$me: cannot create a temporary directory in ." >&2 | |
10703 | { (exit 1); exit 1; } | |
10704 | } | |
10705 | ||
10706 | _ACEOF | |
10707 | ||
10708 | cat >>$CONFIG_STATUS <<_ACEOF | |
10709 | ||
10710 | # | |
10711 | # CONFIG_FILES section. | |
10712 | # | |
10713 | ||
10714 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10715 | # This happens for instance when ./config.status config.h | |
10716 | if test -n "\$CONFIG_FILES"; then | |
10717 | # Protect against being on the right side of a sed subst in config.status. | |
10718 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
10719 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
10720 | s,@SHELL@,$SHELL,;t t | |
10721 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
10722 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
10723 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
10724 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
10725 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
10726 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
10727 | s,@exec_prefix@,$exec_prefix,;t t | |
10728 | s,@prefix@,$prefix,;t t | |
10729 | s,@program_transform_name@,$program_transform_name,;t t | |
10730 | s,@bindir@,$bindir,;t t | |
10731 | s,@sbindir@,$sbindir,;t t | |
10732 | s,@libexecdir@,$libexecdir,;t t | |
10733 | s,@datadir@,$datadir,;t t | |
10734 | s,@sysconfdir@,$sysconfdir,;t t | |
10735 | s,@sharedstatedir@,$sharedstatedir,;t t | |
10736 | s,@localstatedir@,$localstatedir,;t t | |
10737 | s,@libdir@,$libdir,;t t | |
10738 | s,@includedir@,$includedir,;t t | |
10739 | s,@oldincludedir@,$oldincludedir,;t t | |
10740 | s,@infodir@,$infodir,;t t | |
10741 | s,@mandir@,$mandir,;t t | |
10742 | s,@build_alias@,$build_alias,;t t | |
10743 | s,@host_alias@,$host_alias,;t t | |
10744 | s,@target_alias@,$target_alias,;t t | |
10745 | s,@DEFS@,$DEFS,;t t | |
10746 | s,@ECHO_C@,$ECHO_C,;t t | |
10747 | s,@ECHO_N@,$ECHO_N,;t t | |
10748 | s,@ECHO_T@,$ECHO_T,;t t | |
10749 | s,@LIBS@,$LIBS,;t t | |
10750 | s,@build@,$build,;t t | |
10751 | s,@build_cpu@,$build_cpu,;t t | |
10752 | s,@build_vendor@,$build_vendor,;t t | |
10753 | s,@build_os@,$build_os,;t t | |
10754 | s,@host@,$host,;t t | |
10755 | s,@host_cpu@,$host_cpu,;t t | |
10756 | s,@host_vendor@,$host_vendor,;t t | |
10757 | s,@host_os@,$host_os,;t t | |
10758 | s,@target@,$target,;t t | |
10759 | s,@target_cpu@,$target_cpu,;t t | |
10760 | s,@target_vendor@,$target_vendor,;t t | |
10761 | s,@target_os@,$target_os,;t t | |
10762 | s,@AWK@,$AWK,;t t | |
10763 | s,@CC@,$CC,;t t | |
10764 | s,@CFLAGS@,$CFLAGS,;t t | |
10765 | s,@LDFLAGS@,$LDFLAGS,;t t | |
10766 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
10767 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
10768 | s,@EXEEXT@,$EXEEXT,;t t | |
10769 | s,@OBJEXT@,$OBJEXT,;t t | |
10770 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
10771 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
10772 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
10773 | s,@LN_S@,$LN_S,;t t | |
10774 | s,@SET_MAKE@,$SET_MAKE,;t t | |
10775 | s,@RANLIB@,$RANLIB,;t t | |
10776 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
10777 | s,@CPP@,$CPP,;t t | |
10778 | s,@EGREP@,$EGREP,;t t | |
10779 | s,@ALLOCA@,$ALLOCA,;t t | |
10780 | s,@LIBOBJS@,$LIBOBJS,;t t | |
10781 | s,@POW_LIB@,$POW_LIB,;t t | |
10782 | s,@MSGFMT@,$MSGFMT,;t t | |
a653923f | 10783 | s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t |
ad6254c5 AK |
10784 | s,@JOBS@,$JOBS,;t t |
10785 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
10786 | s,@LVM1@,$LVM1,;t t | |
10787 | s,@POOL@,$POOL,;t t | |
10788 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
10789 | s,@MIRRORS@,$MIRRORS,;t t | |
10790 | s,@OWNER@,$OWNER,;t t | |
10791 | s,@GROUP@,$GROUP,;t t | |
10792 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t | |
10793 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
10794 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
10795 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
10796 | s,@LDDEPS@,$LDDEPS,;t t | |
c1c065a3 | 10797 | s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t |
ad6254c5 AK |
10798 | s,@LVM_VERSION@,$LVM_VERSION,;t t |
10799 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
10800 | s,@DEBUG@,$DEBUG,;t t | |
10801 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
10802 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
10803 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
10804 | s,@CMDLIB@,$CMDLIB,;t t | |
10805 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
10806 | s,@CONFDIR@,$CONFDIR,;t t | |
10807 | s,@STATICDIR@,$STATICDIR,;t t | |
10808 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
10809 | s,@INTL@,$INTL,;t t | |
10810 | s,@CLVMD@,$CLVMD,;t t | |
10811 | s,@CLUSTER@,$CLUSTER,;t t | |
10812 | s,@FSADM@,$FSADM,;t t | |
06f62ad1 | 10813 | s,@DMEVENTD@,$DMEVENTD,;t t |
ad6254c5 AK |
10814 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
10815 | CEOF | |
10816 | ||
10817 | _ACEOF | |
10818 | ||
10819 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10820 | # Split the substitutions into bite-sized pieces for seds with | |
10821 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
10822 | ac_max_sed_lines=48 | |
10823 | ac_sed_frag=1 # Number of current file. | |
10824 | ac_beg=1 # First line for current file. | |
10825 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
10826 | ac_more_lines=: | |
10827 | ac_sed_cmds= | |
10828 | while $ac_more_lines; do | |
10829 | if test $ac_beg -gt 1; then | |
10830 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
10831 | else | |
10832 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
10833 | fi | |
10834 | if test ! -s $tmp/subs.frag; then | |
10835 | ac_more_lines=false | |
10836 | else | |
10837 | # The purpose of the label and of the branching condition is to | |
10838 | # speed up the sed processing (if there are no `@' at all, there | |
10839 | # is no need to browse any of the substitutions). | |
10840 | # These are the two extra sed commands mentioned above. | |
10841 | (echo ':t | |
10842 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
10843 | if test -z "$ac_sed_cmds"; then | |
c1c065a3 | 10844 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 10845 | else |
c1c065a3 | 10846 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
10847 | fi |
10848 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
10849 | ac_beg=$ac_end | |
10850 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
10851 | fi | |
10852 | done | |
10853 | if test -z "$ac_sed_cmds"; then | |
10854 | ac_sed_cmds=cat | |
10855 | fi | |
10856 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 10857 | |
ad6254c5 AK |
10858 | _ACEOF |
10859 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10860 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
10861 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
10862 | case $ac_file in | |
10863 | - | *:- | *:-:* ) # input from stdin | |
c1c065a3 AK |
10864 | cat >$tmp/stdin |
10865 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10866 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 10867 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
c1c065a3 | 10868 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 10869 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 10870 | esac |
8106cdd5 | 10871 | |
ad6254c5 AK |
10872 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
10873 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
10874 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
c1c065a3 AK |
10875 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
10876 | X"$ac_file" : 'X\(//\)$' \| \ | |
10877 | X"$ac_file" : 'X\(/\)' \| \ | |
10878 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
10879 | echo X"$ac_file" | |
10880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10881 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10882 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10883 | /^X\(\/\).*/{ s//\1/; q; } | |
10884 | s/.*/./; q'` | |
10885 | { if $as_mkdir_p; then | |
10886 | mkdir -p "$ac_dir" | |
10887 | else | |
10888 | as_dir="$ac_dir" | |
10889 | as_dirs= | |
10890 | while test ! -d "$as_dir"; do | |
10891 | as_dirs="$as_dir $as_dirs" | |
10892 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
10893 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
c1c065a3 AK |
10894 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
10895 | X"$as_dir" : 'X\(//\)$' \| \ | |
10896 | X"$as_dir" : 'X\(/\)' \| \ | |
10897 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
10898 | echo X"$as_dir" | |
10899 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10900 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10901 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10902 | /^X\(\/\).*/{ s//\1/; q; } | |
10903 | s/.*/./; q'` | |
10904 | done | |
10905 | test ! -n "$as_dirs" || mkdir $as_dirs | |
10906 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
10907 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
10908 | { (exit 1); exit 1; }; }; } | |
10909 | ||
10910 | ac_builddir=. | |
10911 | ||
10912 | if test "$ac_dir" != .; then | |
10913 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
10914 | # A "../" for each directory in $ac_dir_suffix. | |
10915 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
10916 | else | |
10917 | ac_dir_suffix= ac_top_builddir= | |
10918 | fi | |
10919 | ||
10920 | case $srcdir in | |
10921 | .) # No --srcdir option. We are building in place. | |
10922 | ac_srcdir=. | |
10923 | if test -z "$ac_top_builddir"; then | |
10924 | ac_top_srcdir=. | |
10925 | else | |
10926 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
10927 | fi ;; | |
10928 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
10929 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10930 | ac_top_srcdir=$srcdir ;; | |
10931 | *) # Relative path. | |
10932 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
10933 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
10934 | esac | |
c1c065a3 AK |
10935 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
10936 | # absolute. | |
10937 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
10938 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
10939 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
10940 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
ad6254c5 AK |
10941 | |
10942 | ||
10943 | case $INSTALL in | |
10944 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
10945 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
10946 | esac |
10947 | ||
ad6254c5 AK |
10948 | if test x"$ac_file" != x-; then |
10949 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
10950 | echo "$as_me: creating $ac_file" >&6;} | |
10951 | rm -f "$ac_file" | |
10952 | fi | |
10953 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10954 | # use $as_me), people would be surprised to read: | |
10955 | # /* config.h. Generated by config.status. */ | |
10956 | if test x"$ac_file" = x-; then | |
10957 | configure_input= | |
10958 | else | |
10959 | configure_input="$ac_file. " | |
10960 | fi | |
10961 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
c1c065a3 | 10962 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
10963 | |
10964 | # First look for the input files in the build tree, otherwise in the | |
10965 | # src tree. | |
10966 | ac_file_inputs=`IFS=: | |
10967 | for f in $ac_file_in; do | |
10968 | case $f in | |
10969 | -) echo $tmp/stdin ;; | |
10970 | [\\/$]*) | |
c1c065a3 AK |
10971 | # Absolute (can't be DOS-style, as IFS=:) |
10972 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
10973 | echo "$as_me: error: cannot find input file: $f" >&2;} |
10974 | { (exit 1); exit 1; }; } | |
c1c065a3 | 10975 | echo $f;; |
ad6254c5 | 10976 | *) # Relative |
c1c065a3 AK |
10977 | if test -f "$f"; then |
10978 | # Build tree | |
10979 | echo $f | |
10980 | elif test -f "$srcdir/$f"; then | |
10981 | # Source tree | |
10982 | echo $srcdir/$f | |
10983 | else | |
10984 | # /dev/null tree | |
10985 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
10986 | echo "$as_me: error: cannot find input file: $f" >&2;} |
10987 | { (exit 1); exit 1; }; } | |
c1c065a3 | 10988 | fi;; |
ad6254c5 AK |
10989 | esac |
10990 | done` || { (exit 1); exit 1; } | |
10991 | _ACEOF | |
10992 | cat >>$CONFIG_STATUS <<_ACEOF | |
10993 | sed "$ac_vpsub | |
10994 | $extrasub | |
10995 | _ACEOF | |
10996 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10997 | :t | |
10998 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10999 | s,@configure_input@,$configure_input,;t t | |
11000 | s,@srcdir@,$ac_srcdir,;t t | |
11001 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11002 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11003 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11004 | s,@builddir@,$ac_builddir,;t t | |
11005 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11006 | s,@top_builddir@,$ac_top_builddir,;t t | |
11007 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11008 | s,@INSTALL@,$ac_INSTALL,;t t | |
11009 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
11010 | rm -f $tmp/stdin | |
11011 | if test x"$ac_file" != x-; then | |
11012 | mv $tmp/out $ac_file | |
11013 | else | |
11014 | cat $tmp/out | |
11015 | rm -f $tmp/out | |
11016 | fi | |
795ca3e5 | 11017 | |
ad6254c5 AK |
11018 | done |
11019 | _ACEOF | |
795ca3e5 | 11020 | |
ad6254c5 | 11021 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 11022 | |
ad6254c5 AK |
11023 | { (exit 0); exit 0; } |
11024 | _ACEOF | |
795ca3e5 | 11025 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
11026 | ac_clean_files=$ac_clean_files_save |
11027 | ||
11028 | ||
11029 | # configure is writing to config.log, and then calls config.status. | |
11030 | # config.status does its own redirection, appending to config.log. | |
11031 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11032 | # by configure, so config.status won't be able to write to it; its | |
11033 | # output is simply discarded. So we exec the FD to /dev/null, | |
11034 | # effectively closing config.log, so it can be properly (re)opened and | |
11035 | # appended to by config.status. When coming back to configure, we | |
11036 | # need to make the FD available again. | |
11037 | if test "$no_create" != yes; then | |
11038 | ac_cs_success=: | |
11039 | ac_config_status_args= | |
11040 | test "$silent" = yes && | |
11041 | ac_config_status_args="$ac_config_status_args --quiet" | |
11042 | exec 5>/dev/null | |
11043 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11044 | exec 5>>config.log | |
11045 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11046 | # would make configure fail if this is the last instruction. | |
11047 | $ac_cs_success || { (exit 1); exit 1; } | |
11048 | fi | |
795ca3e5 | 11049 | |
2dc95e1c AK |
11050 | |
11051 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
11052 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
11053 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 11054 | fi |
809fae91 AK |
11055 | |
11056 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
11057 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
11058 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 11059 | fi |
06f62ad1 AK |
11060 | |
11061 | if test x$DMEVENTD == xyes; then | |
11062 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
11063 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
11064 | fi |