]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8106cdd5 | 3 | # Generated by GNU Autoconf 2.57. |
795ca3e5 | 4 | # |
8106cdd5 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. | |
8106cdd5 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. | |
25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
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 | |
44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
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 | |
8106cdd5 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. | |
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
228 | ||
229 | # Sed expression to map a string onto a valid variable name. | |
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
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 |
8106cdd5 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 |
1a9ea74d | 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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MSGFMT JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LD_DEPS LD_FLAGS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL FSADM LIBOBJS LTLIBOBJS' |
8106cdd5 | 313 | ac_subst_files='' |
795ca3e5 AK |
314 | |
315 | # Initialize some variables set by options. | |
8106cdd5 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. | |
8106cdd5 | 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 | |
8106cdd5 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 | ||
8106cdd5 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
8106cdd5 | 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=*) | |
8106cdd5 | 372 | bindir=$ac_optarg ;; |
795ca3e5 AK |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
8106cdd5 | 375 | ac_prev=build_alias ;; |
795ca3e5 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
8106cdd5 | 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=*) | |
8106cdd5 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=*) | |
8106cdd5 | 393 | datadir=$ac_optarg ;; |
795ca3e5 AK |
394 | |
395 | -disable-* | --disable-*) | |
8106cdd5 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 397 | # Reject names that are not valid shell variable names. |
8106cdd5 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-*) | |
8106cdd5 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 406 | # Reject names that are not valid shell variable names. |
8106cdd5 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 | |
8106cdd5 | 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=*) | |
8106cdd5 | 424 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
8106cdd5 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) | |
8106cdd5 | 438 | ac_prev=host_alias ;; |
795ca3e5 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 452 | infodir=$ac_optarg ;; |
795ca3e5 AK |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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 \ | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 556 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 573 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
8106cdd5 | 576 | ac_prev=target_alias ;; |
795ca3e5 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
8106cdd5 | 578 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
8106cdd5 AK |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
795ca3e5 AK |
585 | |
586 | -with-* | --with-*) | |
8106cdd5 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 588 | # Reject names that are not valid shell variable names. |
8106cdd5 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'` |
8106cdd5 AK |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
595 | *) ac_optarg=yes ;; |
596 | esac | |
8106cdd5 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
598 | |
599 | -without-* | --without-*) | |
8106cdd5 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 601 | # Reject names that are not valid shell variable names. |
8106cdd5 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=*) | |
8106cdd5 | 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=*) | |
8106cdd5 | 624 | x_libraries=$ac_optarg ;; |
795ca3e5 | 625 | |
8106cdd5 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 | ||
8106cdd5 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 | *) |
8106cdd5 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 | |
8106cdd5 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 | |
8106cdd5 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 | |
8106cdd5 AK |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
795ca3e5 | 672 | do |
8106cdd5 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 | ||
8106cdd5 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 | |
795ca3e5 | 698 | |
8106cdd5 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. | |
8106cdd5 AK |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
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 | |
8106cdd5 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 |
8106cdd5 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 | |
8106cdd5 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 | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
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] | |
7d1552c9 AK |
848 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
849 | device-mapper is missing from the kernel | |
8106cdd5 AK |
850 | --enable-jobs=NUM Number of jobs to run simultaneously |
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 | --enable-debug Enable debugging | |
855 | --disable-devmapper Disable device-mapper interaction | |
856 | --disable-o_direct Disable O_DIRECT | |
857 | --enable-cmdlib Build shared command library | |
809fae91 | 858 | --enable-fsadm Enable fsadm |
8106cdd5 AK |
859 | --enable-nls Enable Native Language Support |
860 | ||
861 | Optional Packages: | |
862 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
863 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
864 | --with-user=USER Set the owner of installed files | |
865 | --with-group=GROUP Set the group owner of installed files | |
866 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
867 | TYPE=internal | |
60329273 | 868 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
d8ac0fbc | 869 | TYPE=internal |
4922197a AK |
870 | --with-snapshots=TYPE Snapshot support: internal/shared/none |
871 | TYPE=internal | |
872 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
873 | TYPE=internal | |
8106cdd5 | 874 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale |
0a62c911 AK |
875 | --with-confdir=DIR Configuration files in DIR /etc |
876 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
8106cdd5 AK |
877 | |
878 | Some influential environment variables: | |
879 | CC C compiler command | |
880 | CFLAGS C compiler flags | |
881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
882 | nonstandard directory <lib dir> | |
883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
884 | headers in a nonstandard directory <include dir> | |
885 | CPP C preprocessor | |
886 | ||
887 | Use these variables to override the choices made by `configure' or to help | |
888 | it to find libraries and programs with nonstandard names/locations. | |
889 | ||
890 | _ACEOF | |
891 | fi | |
892 | ||
893 | if test "$ac_init_help" = "recursive"; then | |
894 | # If there are subdirs, report their specific --help. | |
895 | ac_popdir=`pwd` | |
896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
897 | test -d $ac_dir || continue | |
898 | ac_builddir=. | |
899 | ||
900 | if test "$ac_dir" != .; then | |
901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
902 | # A "../" for each directory in $ac_dir_suffix. | |
903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
904 | else | |
905 | ac_dir_suffix= ac_top_builddir= | |
906 | fi | |
907 | ||
908 | case $srcdir in | |
909 | .) # No --srcdir option. We are building in place. | |
910 | ac_srcdir=. | |
911 | if test -z "$ac_top_builddir"; then | |
912 | ac_top_srcdir=. | |
913 | else | |
914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
915 | fi ;; | |
916 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
917 | ac_srcdir=$srcdir$ac_dir_suffix; | |
918 | ac_top_srcdir=$srcdir ;; | |
919 | *) # Relative path. | |
920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
922 | esac | |
923 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
924 | # absolute. | |
925 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
926 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
927 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
928 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
929 | ||
930 | cd $ac_dir | |
931 | # Check for guested configure; otherwise get Cygnus style configure. | |
932 | if test -f $ac_srcdir/configure.gnu; then | |
933 | echo | |
934 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
935 | elif test -f $ac_srcdir/configure; then | |
936 | echo | |
937 | $SHELL $ac_srcdir/configure --help=recursive | |
938 | elif test -f $ac_srcdir/configure.ac || | |
939 | test -f $ac_srcdir/configure.in; then | |
940 | echo | |
941 | $ac_configure --help | |
942 | else | |
943 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
944 | fi | |
945 | cd $ac_popdir | |
946 | done | |
947 | fi | |
948 | ||
949 | test -n "$ac_init_help" && exit 0 | |
950 | if $ac_init_version; then | |
951 | cat <<\_ACEOF | |
952 | ||
953 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
954 | Free Software Foundation, Inc. | |
955 | This configure script is free software; the Free Software Foundation | |
956 | gives unlimited permission to copy, distribute and modify it. | |
957 | _ACEOF | |
958 | exit 0 | |
959 | fi | |
960 | exec 5>config.log | |
961 | cat >&5 <<_ACEOF | |
962 | This file contains any messages produced by compilers while | |
963 | running configure, to aid debugging if configure makes a mistake. | |
964 | ||
965 | It was created by $as_me, which was | |
966 | generated by GNU Autoconf 2.57. Invocation command line was | |
967 | ||
968 | $ $0 $@ | |
969 | ||
970 | _ACEOF | |
971 | { | |
972 | cat <<_ASUNAME | |
973 | ## --------- ## | |
974 | ## Platform. ## | |
975 | ## --------- ## | |
976 | ||
977 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
978 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
979 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
980 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
981 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
982 | ||
983 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
984 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
985 | ||
986 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
987 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
988 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
989 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
990 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
991 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
992 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
993 | ||
994 | _ASUNAME | |
995 | ||
996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
997 | for as_dir in $PATH | |
998 | do | |
999 | IFS=$as_save_IFS | |
1000 | test -z "$as_dir" && as_dir=. | |
1001 | echo "PATH: $as_dir" | |
1002 | done | |
1003 | ||
1004 | } >&5 | |
1005 | ||
1006 | cat >&5 <<_ACEOF | |
1007 | ||
1008 | ||
1009 | ## ----------- ## | |
1010 | ## Core tests. ## | |
1011 | ## ----------- ## | |
1012 | ||
1013 | _ACEOF | |
1014 | ||
1015 | ||
1016 | # Keep a trace of the command line. | |
1017 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1018 | # Strip out --silent because we don't want to record it for future runs. | |
1019 | # Also quote any args containing shell meta-characters. | |
1020 | # Make two passes to allow for proper duplicate-argument suppression. | |
1021 | ac_configure_args= | |
1022 | ac_configure_args0= | |
1023 | ac_configure_args1= | |
1024 | ac_sep= | |
1025 | ac_must_keep_next=false | |
1026 | for ac_pass in 1 2 | |
1027 | do | |
1028 | for ac_arg | |
1029 | do | |
1030 | case $ac_arg in | |
1031 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1032 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1033 | | -silent | --silent | --silen | --sile | --sil) | |
1034 | continue ;; | |
1035 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1036 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1037 | esac | |
1038 | case $ac_pass in | |
1039 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1040 | 2) | |
1041 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1042 | if test $ac_must_keep_next = true; then | |
1043 | ac_must_keep_next=false # Got value, back to normal. | |
1044 | else | |
1045 | case $ac_arg in | |
1046 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1047 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1048 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1049 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1050 | case "$ac_configure_args0 " in | |
1051 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1052 | esac | |
1053 | ;; | |
1054 | -* ) ac_must_keep_next=true ;; | |
1055 | esac | |
1056 | fi | |
1057 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1058 | # Get rid of the leading space. | |
1059 | ac_sep=" " | |
1060 | ;; | |
1061 | esac | |
1062 | done | |
1063 | done | |
1064 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1065 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1066 | ||
1067 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1068 | # config.log. We remove comments because anyway the quotes in there | |
1069 | # would cause problems or look ugly. | |
1070 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1071 | # such as our DU 5.0 friend, will then `close' the trap. | |
1072 | trap 'exit_status=$? | |
1073 | # Save into config.log some information that might help in debugging. | |
1074 | { | |
1075 | echo | |
1076 | ||
1077 | cat <<\_ASBOX | |
1078 | ## ---------------- ## | |
1079 | ## Cache variables. ## | |
1080 | ## ---------------- ## | |
1081 | _ASBOX | |
1082 | echo | |
1083 | # The following way of writing the cache mishandles newlines in values, | |
1084 | { | |
1085 | (set) 2>&1 | | |
1086 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1087 | *ac_space=\ *) | |
1088 | sed -n \ | |
1089 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1090 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1091 | ;; | |
1092 | *) | |
1093 | sed -n \ | |
1094 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1095 | ;; | |
1096 | esac; | |
1097 | } | |
1098 | echo | |
1099 | ||
1100 | cat <<\_ASBOX | |
1101 | ## ----------------- ## | |
1102 | ## Output variables. ## | |
1103 | ## ----------------- ## | |
1104 | _ASBOX | |
1105 | echo | |
1106 | for ac_var in $ac_subst_vars | |
1107 | do | |
1108 | eval ac_val=$`echo $ac_var` | |
1109 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1110 | done | sort | |
1111 | echo | |
1112 | ||
1113 | if test -n "$ac_subst_files"; then | |
1114 | cat <<\_ASBOX | |
1115 | ## ------------- ## | |
1116 | ## Output files. ## | |
1117 | ## ------------- ## | |
1118 | _ASBOX | |
1119 | echo | |
1120 | for ac_var in $ac_subst_files | |
1121 | do | |
1122 | eval ac_val=$`echo $ac_var` | |
1123 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1124 | done | sort | |
1125 | echo | |
1126 | fi | |
1127 | ||
1128 | if test -s confdefs.h; then | |
1129 | cat <<\_ASBOX | |
1130 | ## ----------- ## | |
1131 | ## confdefs.h. ## | |
1132 | ## ----------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | sed "/^$/d" confdefs.h | sort | |
1136 | echo | |
1137 | fi | |
1138 | test "$ac_signal" != 0 && | |
1139 | echo "$as_me: caught signal $ac_signal" | |
1140 | echo "$as_me: exit $exit_status" | |
1141 | } >&5 | |
1142 | rm -f core core.* *.core && | |
1143 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1144 | exit $exit_status | |
1145 | ' 0 | |
1146 | for ac_signal in 1 2 13 15; do | |
1147 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1148 | done | |
1149 | ac_signal=0 | |
1150 | ||
1151 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1152 | rm -rf conftest* confdefs.h | |
1153 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1154 | echo >confdefs.h | |
1155 | ||
1156 | # Predefined preprocessor variables. | |
1157 | ||
1158 | cat >>confdefs.h <<_ACEOF | |
1159 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1160 | _ACEOF | |
1161 | ||
1162 | ||
1163 | cat >>confdefs.h <<_ACEOF | |
1164 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1165 | _ACEOF | |
1166 | ||
1167 | ||
1168 | cat >>confdefs.h <<_ACEOF | |
1169 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1170 | _ACEOF | |
1171 | ||
1172 | ||
1173 | cat >>confdefs.h <<_ACEOF | |
1174 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1175 | _ACEOF | |
1176 | ||
1177 | ||
1178 | cat >>confdefs.h <<_ACEOF | |
1179 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1180 | _ACEOF | |
795ca3e5 | 1181 | |
8106cdd5 AK |
1182 | |
1183 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1184 | # Prefer explicitly selected file to automatically selected ones. |
1185 | if test -z "$CONFIG_SITE"; then | |
1186 | if test "x$prefix" != xNONE; then | |
1187 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1188 | else | |
1189 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1190 | fi | |
1191 | fi | |
1192 | for ac_site_file in $CONFIG_SITE; do | |
1193 | if test -r "$ac_site_file"; then | |
8106cdd5 AK |
1194 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1195 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1196 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1197 | . "$ac_site_file" |
1198 | fi | |
1199 | done | |
1200 | ||
1201 | if test -r "$cache_file"; then | |
8106cdd5 AK |
1202 | # Some versions of bash will fail to source /dev/null (special |
1203 | # files actually), so we avoid doing that. | |
1204 | if test -f "$cache_file"; then | |
1205 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1206 | echo "$as_me: loading cache $cache_file" >&6;} | |
1207 | case $cache_file in | |
1208 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1209 | *) . ./$cache_file;; | |
1210 | esac | |
1211 | fi | |
795ca3e5 | 1212 | else |
8106cdd5 AK |
1213 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1214 | echo "$as_me: creating cache $cache_file" >&6;} | |
1215 | >$cache_file | |
1216 | fi | |
1217 | ||
1218 | # Check that the precious variables saved in the cache have kept the same | |
1219 | # value. | |
1220 | ac_cache_corrupted=false | |
1221 | for ac_var in `(set) 2>&1 | | |
1222 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1223 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1224 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1225 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1226 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1227 | case $ac_old_set,$ac_new_set in | |
1228 | set,) | |
1229 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1230 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1231 | ac_cache_corrupted=: ;; | |
1232 | ,set) | |
1233 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1234 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1235 | ac_cache_corrupted=: ;; | |
1236 | ,);; | |
1237 | *) | |
1238 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1239 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1240 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1241 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1242 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1243 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1244 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1245 | ac_cache_corrupted=: | |
1246 | fi;; | |
1247 | esac | |
1248 | # Pass precious variables to config.status. | |
1249 | if test "$ac_new_set" = set; then | |
1250 | case $ac_new_val in | |
1251 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1252 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1253 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1254 | esac | |
1255 | case " $ac_configure_args " in | |
1256 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1257 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1258 | esac | |
1259 | fi | |
1260 | done | |
1261 | if $ac_cache_corrupted; then | |
1262 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1263 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1264 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1265 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1266 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1267 | fi |
1268 | ||
1269 | ac_ext=c | |
795ca3e5 | 1270 | ac_cpp='$CPP $CPPFLAGS' |
8106cdd5 AK |
1271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1274 | ||
1275 | ||
1276 | ||
1277 | ||
1278 | ||
1279 | ||
1280 | ||
1281 | ||
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | ||
1290 | ||
795ca3e5 AK |
1291 | |
1292 | ||
1293 | ||
1294 | ac_aux_dir= | |
1295 | for ac_dir in autoconf $srcdir/autoconf; do | |
1296 | if test -f $ac_dir/install-sh; then | |
1297 | ac_aux_dir=$ac_dir | |
1298 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1299 | break | |
1300 | elif test -f $ac_dir/install.sh; then | |
1301 | ac_aux_dir=$ac_dir | |
1302 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1303 | break | |
8106cdd5 AK |
1304 | elif test -f $ac_dir/shtool; then |
1305 | ac_aux_dir=$ac_dir | |
1306 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1307 | break | |
795ca3e5 AK |
1308 | fi |
1309 | done | |
1310 | if test -z "$ac_aux_dir"; then | |
8106cdd5 AK |
1311 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1312 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1313 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1314 | fi |
8106cdd5 AK |
1315 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1316 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1317 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1318 | ||
795ca3e5 | 1319 | |
2dc95e1c | 1320 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1321 | do |
8106cdd5 | 1322 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1323 | set dummy $ac_prog; ac_word=$2 |
8106cdd5 AK |
1324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1326 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1328 | else |
1329 | if test -n "$AWK"; then | |
1330 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1331 | else | |
8106cdd5 AK |
1332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1333 | for as_dir in $PATH | |
1334 | do | |
1335 | IFS=$as_save_IFS | |
1336 | test -z "$as_dir" && as_dir=. | |
1337 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1339 | ac_cv_prog_AWK="$ac_prog" | |
1340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1341 | break 2 | |
1342 | fi | |
1343 | done | |
1344 | done | |
1345 | ||
795ca3e5 AK |
1346 | fi |
1347 | fi | |
8106cdd5 | 1348 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1349 | if test -n "$AWK"; then |
8106cdd5 AK |
1350 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1351 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1352 | else |
8106cdd5 AK |
1353 | echo "$as_me:$LINENO: result: no" >&5 |
1354 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1355 | fi |
1356 | ||
8106cdd5 | 1357 | test -n "$AWK" && break |
795ca3e5 AK |
1358 | done |
1359 | ||
8106cdd5 AK |
1360 | ac_ext=c |
1361 | ac_cpp='$CPP $CPPFLAGS' | |
1362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1365 | if test -n "$ac_tool_prefix"; then | |
1366 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1367 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1370 | if test "${ac_cv_prog_CC+set}" = set; then | |
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1372 | else |
1373 | if test -n "$CC"; then | |
1374 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1375 | else | |
8106cdd5 AK |
1376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1377 | for as_dir in $PATH | |
1378 | do | |
1379 | IFS=$as_save_IFS | |
1380 | test -z "$as_dir" && as_dir=. | |
1381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1383 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1385 | break 2 | |
1386 | fi | |
1387 | done | |
1388 | done | |
1389 | ||
1390 | fi | |
1391 | fi | |
1392 | CC=$ac_cv_prog_CC | |
1393 | if test -n "$CC"; then | |
1394 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1395 | echo "${ECHO_T}$CC" >&6 | |
1396 | else | |
1397 | echo "$as_me:$LINENO: result: no" >&5 | |
1398 | echo "${ECHO_T}no" >&6 | |
1399 | fi | |
1400 | ||
1401 | fi | |
1402 | if test -z "$ac_cv_prog_CC"; then | |
1403 | ac_ct_CC=$CC | |
1404 | # Extract the first word of "gcc", so it can be a program name with args. | |
1405 | set dummy gcc; ac_word=$2 | |
1406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1408 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1410 | else | |
1411 | if test -n "$ac_ct_CC"; then | |
1412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1413 | else | |
1414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1415 | for as_dir in $PATH | |
1416 | do | |
1417 | IFS=$as_save_IFS | |
1418 | test -z "$as_dir" && as_dir=. | |
1419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1421 | ac_cv_prog_ac_ct_CC="gcc" | |
1422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1423 | break 2 | |
1424 | fi | |
1425 | done | |
1426 | done | |
1427 | ||
1428 | fi | |
1429 | fi | |
1430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1431 | if test -n "$ac_ct_CC"; then | |
1432 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1433 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1434 | else | |
1435 | echo "$as_me:$LINENO: result: no" >&5 | |
1436 | echo "${ECHO_T}no" >&6 | |
1437 | fi | |
1438 | ||
1439 | CC=$ac_ct_CC | |
1440 | else | |
1441 | CC="$ac_cv_prog_CC" | |
1442 | fi | |
1443 | ||
1444 | if test -z "$CC"; then | |
1445 | if test -n "$ac_tool_prefix"; then | |
1446 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1447 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
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_CC+set}" = set; then | |
1451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1452 | else | |
1453 | if test -n "$CC"; then | |
1454 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1455 | else | |
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_CC="${ac_tool_prefix}cc" | |
1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1465 | break 2 | |
1466 | fi | |
1467 | done | |
1468 | done | |
1469 | ||
1470 | fi | |
1471 | fi | |
1472 | CC=$ac_cv_prog_CC | |
1473 | if test -n "$CC"; then | |
1474 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1475 | echo "${ECHO_T}$CC" >&6 | |
1476 | else | |
1477 | echo "$as_me:$LINENO: result: no" >&5 | |
1478 | echo "${ECHO_T}no" >&6 | |
1479 | fi | |
1480 | ||
1481 | fi | |
1482 | if test -z "$ac_cv_prog_CC"; then | |
1483 | ac_ct_CC=$CC | |
1484 | # Extract the first word of "cc", so it can be a program name with args. | |
1485 | set dummy cc; ac_word=$2 | |
1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1490 | else | |
1491 | if test -n "$ac_ct_CC"; then | |
1492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1493 | else | |
1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1495 | for as_dir in $PATH | |
1496 | do | |
1497 | IFS=$as_save_IFS | |
1498 | test -z "$as_dir" && as_dir=. | |
1499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1501 | ac_cv_prog_ac_ct_CC="cc" | |
1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1503 | break 2 | |
1504 | fi | |
1505 | done | |
1506 | done | |
1507 | ||
1508 | fi | |
1509 | fi | |
1510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1511 | if test -n "$ac_ct_CC"; then | |
1512 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1513 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1514 | else | |
1515 | echo "$as_me:$LINENO: result: no" >&5 | |
1516 | echo "${ECHO_T}no" >&6 | |
1517 | fi | |
1518 | ||
1519 | CC=$ac_ct_CC | |
795ca3e5 | 1520 | else |
8106cdd5 | 1521 | CC="$ac_cv_prog_CC" |
795ca3e5 AK |
1522 | fi |
1523 | ||
8106cdd5 | 1524 | fi |
795ca3e5 AK |
1525 | if test -z "$CC"; then |
1526 | # Extract the first word of "cc", so it can be a program name with args. | |
1527 | set dummy cc; ac_word=$2 | |
8106cdd5 AK |
1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1530 | if test "${ac_cv_prog_CC+set}" = set; then | |
1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1532 | else |
1533 | if test -n "$CC"; then | |
1534 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1535 | else | |
795ca3e5 | 1536 | ac_prog_rejected=no |
8106cdd5 AK |
1537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1538 | for as_dir in $PATH | |
1539 | do | |
1540 | IFS=$as_save_IFS | |
1541 | test -z "$as_dir" && as_dir=. | |
1542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1544 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1545 | ac_prog_rejected=yes | |
1546 | continue | |
1547 | fi | |
1548 | ac_cv_prog_CC="cc" | |
1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1550 | break 2 | |
1551 | fi | |
1552 | done | |
1553 | done | |
1554 | ||
795ca3e5 AK |
1555 | if test $ac_prog_rejected = yes; then |
1556 | # We found a bogon in the path, so make sure we never use it. | |
1557 | set dummy $ac_cv_prog_CC | |
1558 | shift | |
8106cdd5 | 1559 | if test $# != 0; then |
795ca3e5 AK |
1560 | # We chose a different compiler from the bogus one. |
1561 | # However, it has the same basename, so the bogon will be chosen | |
1562 | # first if we set CC to just the basename; use the full file name. | |
1563 | shift | |
8106cdd5 | 1564 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1565 | fi |
1566 | fi | |
1567 | fi | |
1568 | fi | |
8106cdd5 | 1569 | CC=$ac_cv_prog_CC |
795ca3e5 | 1570 | if test -n "$CC"; then |
8106cdd5 AK |
1571 | echo "$as_me:$LINENO: result: $CC" >&5 |
1572 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1573 | else |
8106cdd5 AK |
1574 | echo "$as_me:$LINENO: result: no" >&5 |
1575 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1576 | fi |
1577 | ||
8106cdd5 AK |
1578 | fi |
1579 | if test -z "$CC"; then | |
1580 | if test -n "$ac_tool_prefix"; then | |
1581 | for ac_prog in cl | |
1582 | do | |
1583 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1584 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1587 | if test "${ac_cv_prog_CC+set}" = set; then | |
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1589 | else |
1590 | if test -n "$CC"; then | |
1591 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1592 | else | |
8106cdd5 AK |
1593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1594 | for as_dir in $PATH | |
1595 | do | |
1596 | IFS=$as_save_IFS | |
1597 | test -z "$as_dir" && as_dir=. | |
1598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1600 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1602 | break 2 | |
1603 | fi | |
1604 | done | |
1605 | done | |
1606 | ||
795ca3e5 AK |
1607 | fi |
1608 | fi | |
8106cdd5 | 1609 | CC=$ac_cv_prog_CC |
795ca3e5 | 1610 | if test -n "$CC"; then |
8106cdd5 AK |
1611 | echo "$as_me:$LINENO: result: $CC" >&5 |
1612 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1613 | else |
8106cdd5 AK |
1614 | echo "$as_me:$LINENO: result: no" >&5 |
1615 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1616 | fi |
8106cdd5 AK |
1617 | |
1618 | test -n "$CC" && break | |
1619 | done | |
1620 | fi | |
1621 | if test -z "$CC"; then | |
1622 | ac_ct_CC=$CC | |
1623 | for ac_prog in cl | |
1624 | do | |
1625 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1626 | set dummy $ac_prog; ac_word=$2 | |
1627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1629 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1631 | else | |
1632 | if test -n "$ac_ct_CC"; then | |
1633 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1634 | else | |
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1636 | for as_dir in $PATH | |
1637 | do | |
1638 | IFS=$as_save_IFS | |
1639 | test -z "$as_dir" && as_dir=. | |
1640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1642 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1644 | break 2 | |
795ca3e5 | 1645 | fi |
8106cdd5 AK |
1646 | done |
1647 | done | |
1648 | ||
1649 | fi | |
1650 | fi | |
1651 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1652 | if test -n "$ac_ct_CC"; then | |
1653 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1654 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1655 | else | |
1656 | echo "$as_me:$LINENO: result: no" >&5 | |
1657 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1658 | fi |
1659 | ||
8106cdd5 AK |
1660 | test -n "$ac_ct_CC" && break |
1661 | done | |
795ca3e5 | 1662 | |
8106cdd5 AK |
1663 | CC=$ac_ct_CC |
1664 | fi | |
1665 | ||
1666 | fi | |
1667 | ||
1668 | ||
1669 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1670 | See \`config.log' for more details." >&5 | |
1671 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1672 | See \`config.log' for more details." >&2;} | |
1673 | { (exit 1); exit 1; }; } | |
1674 | ||
1675 | # Provide some information about the compiler. | |
1676 | echo "$as_me:$LINENO:" \ | |
1677 | "checking for C compiler version" >&5 | |
1678 | ac_compiler=`set X $ac_compile; echo $2` | |
1679 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1680 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1681 | ac_status=$? | |
1682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1683 | (exit $ac_status); } | |
1684 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1685 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1686 | ac_status=$? | |
1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1688 | (exit $ac_status); } | |
1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1690 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1691 | ac_status=$? | |
1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1693 | (exit $ac_status); } | |
1694 | ||
1695 | cat >conftest.$ac_ext <<_ACEOF | |
1696 | #line $LINENO "configure" | |
1697 | /* confdefs.h. */ | |
1698 | _ACEOF | |
1699 | cat confdefs.h >>conftest.$ac_ext | |
1700 | cat >>conftest.$ac_ext <<_ACEOF | |
1701 | /* end confdefs.h. */ | |
1702 | ||
1703 | int | |
1704 | main () | |
1705 | { | |
1706 | ||
1707 | ; | |
1708 | return 0; | |
1709 | } | |
1710 | _ACEOF | |
1711 | ac_clean_files_save=$ac_clean_files | |
1712 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1713 | # Try to create an executable without -o first, disregard a.out. | |
1714 | # It will help us diagnose broken compilers, and finding out an intuition | |
1715 | # of exeext. | |
1716 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
1717 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1718 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1719 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1720 | (eval $ac_link_default) 2>&5 | |
1721 | ac_status=$? | |
1722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1723 | (exit $ac_status); }; then | |
1724 | # Find the output, starting from the most likely. This scheme is | |
1725 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1726 | # resort. | |
1727 | ||
1728 | # Be careful to initialize this variable, since it used to be cached. | |
1729 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1730 | ac_cv_exeext= | |
1731 | # b.out is created by i960 compilers. | |
1732 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1733 | do | |
1734 | test -f "$ac_file" || continue | |
1735 | case $ac_file in | |
1736 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1737 | ;; | |
1738 | conftest.$ac_ext ) | |
1739 | # This is the source file. | |
1740 | ;; | |
1741 | [ab].out ) | |
1742 | # We found the default executable, but exeext='' is most | |
1743 | # certainly right. | |
1744 | break;; | |
1745 | *.* ) | |
1746 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1747 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1748 | # but it would be cool to find out if it's true. Does anybody | |
1749 | # maintain Libtool? --akim. | |
1750 | export ac_cv_exeext | |
1751 | break;; | |
1752 | * ) | |
1753 | break;; | |
1754 | esac | |
1755 | done | |
1756 | else | |
1757 | echo "$as_me: failed program was:" >&5 | |
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1759 | ||
1760 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1761 | See \`config.log' for more details." >&5 | |
1762 | echo "$as_me: error: C compiler cannot create executables | |
1763 | See \`config.log' for more details." >&2;} | |
1764 | { (exit 77); exit 77; }; } | |
1765 | fi | |
1766 | ||
1767 | ac_exeext=$ac_cv_exeext | |
1768 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1769 | echo "${ECHO_T}$ac_file" >&6 | |
1770 | ||
1771 | # Check the compiler produces executables we can run. If not, either | |
1772 | # the compiler is broken, or we cross compile. | |
1773 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1774 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1775 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1776 | # If not cross compiling, check that we can run a simple program. | |
1777 | if test "$cross_compiling" != yes; then | |
1778 | if { ac_try='./$ac_file' | |
1779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1780 | (eval $ac_try) 2>&5 | |
1781 | ac_status=$? | |
1782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1783 | (exit $ac_status); }; }; then | |
1784 | cross_compiling=no | |
795ca3e5 | 1785 | else |
8106cdd5 AK |
1786 | if test "$cross_compiling" = maybe; then |
1787 | cross_compiling=yes | |
1788 | else | |
1789 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1790 | If you meant to cross compile, use \`--host'. | |
1791 | See \`config.log' for more details." >&5 | |
1792 | echo "$as_me: error: cannot run C compiled programs. | |
1793 | If you meant to cross compile, use \`--host'. | |
1794 | See \`config.log' for more details." >&2;} | |
1795 | { (exit 1); exit 1; }; } | |
1796 | fi | |
795ca3e5 | 1797 | fi |
795ca3e5 | 1798 | fi |
8106cdd5 AK |
1799 | echo "$as_me:$LINENO: result: yes" >&5 |
1800 | echo "${ECHO_T}yes" >&6 | |
1801 | ||
1802 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1803 | ac_clean_files=$ac_clean_files_save | |
1804 | # Check the compiler produces executables we can run. If not, either | |
1805 | # the compiler is broken, or we cross compile. | |
1806 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1807 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1808 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1809 | echo "${ECHO_T}$cross_compiling" >&6 | |
1810 | ||
1811 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1812 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1814 | (eval $ac_link) 2>&5 | |
1815 | ac_status=$? | |
1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1817 | (exit $ac_status); }; then | |
1818 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1819 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1820 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1821 | # `rm'. | |
1822 | for ac_file in conftest.exe conftest conftest.*; do | |
1823 | test -f "$ac_file" || continue | |
1824 | case $ac_file in | |
1825 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1826 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1827 | export ac_cv_exeext | |
1828 | break;; | |
1829 | * ) break;; | |
1830 | esac | |
1831 | done | |
795ca3e5 | 1832 | else |
8106cdd5 AK |
1833 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1834 | See \`config.log' for more details." >&5 | |
1835 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1836 | See \`config.log' for more details." >&2;} | |
1837 | { (exit 1); exit 1; }; } | |
1838 | fi | |
1839 | ||
1840 | rm -f conftest$ac_cv_exeext | |
1841 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1842 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1843 | ||
1844 | rm -f conftest.$ac_ext | |
1845 | EXEEXT=$ac_cv_exeext | |
1846 | ac_exeext=$EXEEXT | |
1847 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1848 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1849 | if test "${ac_cv_objext+set}" = set; then | |
1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1851 | else | |
1852 | cat >conftest.$ac_ext <<_ACEOF | |
1853 | #line $LINENO "configure" | |
1854 | /* confdefs.h. */ | |
1855 | _ACEOF | |
1856 | cat confdefs.h >>conftest.$ac_ext | |
1857 | cat >>conftest.$ac_ext <<_ACEOF | |
1858 | /* end confdefs.h. */ | |
1859 | ||
1860 | int | |
1861 | main () | |
1862 | { | |
1863 | ||
1864 | ; | |
1865 | return 0; | |
1866 | } | |
1867 | _ACEOF | |
1868 | rm -f conftest.o conftest.obj | |
1869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1870 | (eval $ac_compile) 2>&5 | |
1871 | ac_status=$? | |
1872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1873 | (exit $ac_status); }; then | |
1874 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1875 | case $ac_file in | |
1876 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1877 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1878 | break;; | |
1879 | esac | |
1880 | done | |
1881 | else | |
1882 | echo "$as_me: failed program was:" >&5 | |
1883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1884 | ||
1885 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1886 | See \`config.log' for more details." >&5 | |
1887 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1888 | See \`config.log' for more details." >&2;} | |
1889 | { (exit 1); exit 1; }; } | |
1890 | fi | |
1891 | ||
1892 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1893 | fi | |
1894 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1895 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1896 | OBJEXT=$ac_cv_objext | |
1897 | ac_objext=$OBJEXT | |
1898 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1899 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1900 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1902 | else | |
1903 | cat >conftest.$ac_ext <<_ACEOF | |
1904 | #line $LINENO "configure" | |
1905 | /* confdefs.h. */ | |
1906 | _ACEOF | |
1907 | cat confdefs.h >>conftest.$ac_ext | |
1908 | cat >>conftest.$ac_ext <<_ACEOF | |
1909 | /* end confdefs.h. */ | |
1910 | ||
1911 | int | |
1912 | main () | |
1913 | { | |
1914 | #ifndef __GNUC__ | |
1915 | choke me | |
1916 | #endif | |
795ca3e5 | 1917 | |
8106cdd5 AK |
1918 | ; |
1919 | return 0; | |
1920 | } | |
1921 | _ACEOF | |
1922 | rm -f conftest.$ac_objext | |
1923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1924 | (eval $ac_compile) 2>&5 | |
1925 | ac_status=$? | |
1926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1927 | (exit $ac_status); } && | |
1928 | { ac_try='test -s conftest.$ac_objext' | |
1929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1930 | (eval $ac_try) 2>&5 | |
1931 | ac_status=$? | |
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1933 | (exit $ac_status); }; }; then | |
1934 | ac_compiler_gnu=yes | |
795ca3e5 | 1935 | else |
8106cdd5 AK |
1936 | echo "$as_me: failed program was:" >&5 |
1937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1938 | ||
1939 | ac_compiler_gnu=no | |
795ca3e5 | 1940 | fi |
8106cdd5 AK |
1941 | rm -f conftest.$ac_objext conftest.$ac_ext |
1942 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
795ca3e5 | 1943 | |
8106cdd5 AK |
1944 | fi |
1945 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1946 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1947 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1948 | ac_test_CFLAGS=${CFLAGS+set} | |
1949 | ac_save_CFLAGS=$CFLAGS | |
1950 | CFLAGS="-g" | |
1951 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1952 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1953 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 1955 | else |
8106cdd5 AK |
1956 | cat >conftest.$ac_ext <<_ACEOF |
1957 | #line $LINENO "configure" | |
1958 | /* confdefs.h. */ | |
1959 | _ACEOF | |
1960 | cat confdefs.h >>conftest.$ac_ext | |
1961 | cat >>conftest.$ac_ext <<_ACEOF | |
1962 | /* end confdefs.h. */ | |
1963 | ||
1964 | int | |
1965 | main () | |
1966 | { | |
1967 | ||
1968 | ; | |
1969 | return 0; | |
1970 | } | |
1971 | _ACEOF | |
1972 | rm -f conftest.$ac_objext | |
1973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1974 | (eval $ac_compile) 2>&5 | |
1975 | ac_status=$? | |
1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1977 | (exit $ac_status); } && | |
1978 | { ac_try='test -s conftest.$ac_objext' | |
1979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1980 | (eval $ac_try) 2>&5 | |
1981 | ac_status=$? | |
1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1983 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
1984 | ac_cv_prog_cc_g=yes |
1985 | else | |
8106cdd5 AK |
1986 | echo "$as_me: failed program was:" >&5 |
1987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 1988 | |
8106cdd5 | 1989 | ac_cv_prog_cc_g=no |
795ca3e5 | 1990 | fi |
8106cdd5 AK |
1991 | rm -f conftest.$ac_objext conftest.$ac_ext |
1992 | fi | |
1993 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
1994 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 1995 | if test "$ac_test_CFLAGS" = set; then |
8106cdd5 | 1996 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
1997 | elif test $ac_cv_prog_cc_g = yes; then |
1998 | if test "$GCC" = yes; then | |
1999 | CFLAGS="-g -O2" | |
2000 | else | |
2001 | CFLAGS="-g" | |
2002 | fi | |
2003 | else | |
2004 | if test "$GCC" = yes; then | |
2005 | CFLAGS="-O2" | |
2006 | else | |
2007 | CFLAGS= | |
2008 | fi | |
2009 | fi | |
8106cdd5 AK |
2010 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2011 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2012 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2014 | else | |
2015 | ac_cv_prog_cc_stdc=no | |
2016 | ac_save_CC=$CC | |
2017 | cat >conftest.$ac_ext <<_ACEOF | |
2018 | #line $LINENO "configure" | |
2019 | /* confdefs.h. */ | |
2020 | _ACEOF | |
2021 | cat confdefs.h >>conftest.$ac_ext | |
2022 | cat >>conftest.$ac_ext <<_ACEOF | |
2023 | /* end confdefs.h. */ | |
2024 | #include <stdarg.h> | |
2025 | #include <stdio.h> | |
2026 | #include <sys/types.h> | |
2027 | #include <sys/stat.h> | |
2028 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2029 | struct buf { int x; }; | |
2030 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2031 | static char *e (p, i) | |
2032 | char **p; | |
2033 | int i; | |
2034 | { | |
2035 | return p[i]; | |
2036 | } | |
2037 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2038 | { | |
2039 | char *s; | |
2040 | va_list v; | |
2041 | va_start (v,p); | |
2042 | s = g (p, va_arg (v,int)); | |
2043 | va_end (v); | |
2044 | return s; | |
2045 | } | |
2046 | int test (int i, double x); | |
2047 | struct s1 {int (*f) (int a);}; | |
2048 | struct s2 {int (*f) (double a);}; | |
2049 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2050 | int argc; | |
2051 | char **argv; | |
2052 | int | |
2053 | main () | |
2054 | { | |
2055 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2056 | ; | |
2057 | return 0; | |
2058 | } | |
2059 | _ACEOF | |
2060 | # Don't try gcc -ansi; that turns off useful extensions and | |
2061 | # breaks some systems' header files. | |
2062 | # AIX -qlanglvl=ansi | |
2063 | # Ultrix and OSF/1 -std1 | |
2064 | # HP-UX 10.20 and later -Ae | |
2065 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2066 | # SVR4 -Xc -D__EXTENSIONS__ | |
2067 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2068 | do | |
2069 | CC="$ac_save_CC $ac_arg" | |
2070 | rm -f conftest.$ac_objext | |
2071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2072 | (eval $ac_compile) 2>&5 | |
2073 | ac_status=$? | |
2074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2075 | (exit $ac_status); } && | |
2076 | { ac_try='test -s conftest.$ac_objext' | |
2077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2078 | (eval $ac_try) 2>&5 | |
2079 | ac_status=$? | |
2080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2081 | (exit $ac_status); }; }; then | |
2082 | ac_cv_prog_cc_stdc=$ac_arg | |
2083 | break | |
2084 | else | |
2085 | echo "$as_me: failed program was:" >&5 | |
2086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2087 | ||
2088 | fi | |
2089 | rm -f conftest.$ac_objext | |
2090 | done | |
2091 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2092 | CC=$ac_save_CC | |
2093 | ||
2094 | fi | |
2095 | ||
2096 | case "x$ac_cv_prog_cc_stdc" in | |
2097 | x|xno) | |
2098 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2099 | echo "${ECHO_T}none needed" >&6 ;; | |
2100 | *) | |
2101 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2102 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2103 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2104 | esac | |
2105 | ||
2106 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2107 | # in C++ we need to declare it. In case someone uses the same compiler | |
2108 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2109 | # the declaration of exit, since it's the most demanding environment. | |
2110 | cat >conftest.$ac_ext <<_ACEOF | |
2111 | #ifndef __cplusplus | |
2112 | choke me | |
2113 | #endif | |
2114 | _ACEOF | |
2115 | rm -f conftest.$ac_objext | |
2116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2117 | (eval $ac_compile) 2>&5 | |
2118 | ac_status=$? | |
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2120 | (exit $ac_status); } && | |
2121 | { ac_try='test -s conftest.$ac_objext' | |
2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2123 | (eval $ac_try) 2>&5 | |
2124 | ac_status=$? | |
2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2126 | (exit $ac_status); }; }; then | |
2127 | for ac_declaration in \ | |
2128 | ''\ | |
2129 | '#include <stdlib.h>' \ | |
2130 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2131 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2132 | 'extern "C" void exit (int) throw ();' \ | |
2133 | 'extern "C" void exit (int);' \ | |
2134 | 'void exit (int);' | |
2135 | do | |
2136 | cat >conftest.$ac_ext <<_ACEOF | |
2137 | #line $LINENO "configure" | |
2138 | /* confdefs.h. */ | |
2139 | _ACEOF | |
2140 | cat confdefs.h >>conftest.$ac_ext | |
2141 | cat >>conftest.$ac_ext <<_ACEOF | |
2142 | /* end confdefs.h. */ | |
2143 | #include <stdlib.h> | |
2144 | $ac_declaration | |
2145 | int | |
2146 | main () | |
2147 | { | |
2148 | exit (42); | |
2149 | ; | |
2150 | return 0; | |
2151 | } | |
2152 | _ACEOF | |
2153 | rm -f conftest.$ac_objext | |
2154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2155 | (eval $ac_compile) 2>&5 | |
2156 | ac_status=$? | |
2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2158 | (exit $ac_status); } && | |
2159 | { ac_try='test -s conftest.$ac_objext' | |
2160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2161 | (eval $ac_try) 2>&5 | |
2162 | ac_status=$? | |
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2164 | (exit $ac_status); }; }; then | |
2165 | : | |
2166 | else | |
2167 | echo "$as_me: failed program was:" >&5 | |
2168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2169 | ||
2170 | continue | |
2171 | fi | |
2172 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2173 | cat >conftest.$ac_ext <<_ACEOF | |
2174 | #line $LINENO "configure" | |
2175 | /* confdefs.h. */ | |
2176 | _ACEOF | |
2177 | cat confdefs.h >>conftest.$ac_ext | |
2178 | cat >>conftest.$ac_ext <<_ACEOF | |
2179 | /* end confdefs.h. */ | |
2180 | $ac_declaration | |
2181 | int | |
2182 | main () | |
2183 | { | |
2184 | exit (42); | |
2185 | ; | |
2186 | return 0; | |
2187 | } | |
2188 | _ACEOF | |
2189 | rm -f conftest.$ac_objext | |
2190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2191 | (eval $ac_compile) 2>&5 | |
2192 | ac_status=$? | |
2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2194 | (exit $ac_status); } && | |
2195 | { ac_try='test -s conftest.$ac_objext' | |
2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2197 | (eval $ac_try) 2>&5 | |
2198 | ac_status=$? | |
2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2200 | (exit $ac_status); }; }; then | |
2201 | break | |
2202 | else | |
2203 | echo "$as_me: failed program was:" >&5 | |
2204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2205 | ||
2206 | fi | |
2207 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2208 | done | |
2209 | rm -f conftest* | |
2210 | if test -n "$ac_declaration"; then | |
2211 | echo '#ifdef __cplusplus' >>confdefs.h | |
2212 | echo $ac_declaration >>confdefs.h | |
2213 | echo '#endif' >>confdefs.h | |
2214 | fi | |
2215 | ||
2216 | else | |
2217 | echo "$as_me: failed program was:" >&5 | |
2218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2219 | ||
2220 | fi | |
2221 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2222 | ac_ext=c | |
2223 | ac_cpp='$CPP $CPPFLAGS' | |
2224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2227 | |
2228 | # Find a good install program. We prefer a C program (faster), | |
2229 | # so one script is as good as another. But avoid the broken or | |
2230 | # incompatible versions: | |
2231 | # SysV /etc/install, /usr/sbin/install | |
2232 | # SunOS /usr/etc/install | |
2233 | # IRIX /sbin/install | |
2234 | # AIX /bin/install | |
8106cdd5 | 2235 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2236 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2237 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2238 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2239 | # ./install, which can be erroneously created by make from ./install.sh. | |
8106cdd5 AK |
2240 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2241 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2242 | if test -z "$INSTALL"; then |
8106cdd5 AK |
2243 | if test "${ac_cv_path_install+set}" = set; then |
2244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2245 | else | |
2246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2247 | for as_dir in $PATH | |
2248 | do | |
2249 | IFS=$as_save_IFS | |
2250 | test -z "$as_dir" && as_dir=. | |
2251 | # Account for people who put trailing slashes in PATH elements. | |
2252 | case $as_dir/ in | |
2253 | ./ | .// | /cC/* | \ | |
2254 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2255 | /usr/ucb/* ) ;; | |
2256 | *) | |
2257 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2258 | # Don't use installbsd from OSF since it installs stuff as root | |
2259 | # by default. | |
2260 | for ac_prog in ginstall scoinst install; do | |
2261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2262 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2263 | if test $ac_prog = install && | |
2264 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2265 | # AIX install. It has an incompatible calling convention. | |
2266 | : | |
2267 | elif test $ac_prog = install && | |
2268 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2269 | # program-specific install script used by HP pwplus--don't use. | |
2270 | : | |
2271 | else | |
2272 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2273 | break 3 | |
2274 | fi | |
2275 | fi | |
795ca3e5 | 2276 | done |
8106cdd5 AK |
2277 | done |
2278 | ;; | |
2279 | esac | |
2280 | done | |
2281 | ||
795ca3e5 AK |
2282 | |
2283 | fi | |
2284 | if test "${ac_cv_path_install+set}" = set; then | |
8106cdd5 | 2285 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2286 | else |
2287 | # As a last resort, use the slow shell script. We don't cache a | |
2288 | # path for INSTALL within a source directory, because that will | |
2289 | # break other packages using the cache if that directory is | |
2290 | # removed, or if the path is relative. | |
8106cdd5 | 2291 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2292 | fi |
2293 | fi | |
8106cdd5 AK |
2294 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2295 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2296 | |
2297 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2298 | # It thinks the first close brace ends the variable substitution. | |
2299 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2300 | ||
8106cdd5 | 2301 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2302 | |
2303 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2304 | ||
8106cdd5 AK |
2305 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2306 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2307 | LN_S=$as_ln_s | |
2308 | if test "$LN_S" = "ln -s"; then | |
2309 | echo "$as_me:$LINENO: result: yes" >&5 | |
2310 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 | 2311 | else |
8106cdd5 AK |
2312 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2313 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2314 | fi |
2315 | ||
8106cdd5 AK |
2316 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2317 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2318 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
2319 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2321 | else |
8106cdd5 | 2322 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2323 | all: |
8106cdd5 AK |
2324 | @echo 'ac_maketemp="$(MAKE)"' |
2325 | _ACEOF | |
795ca3e5 | 2326 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
8106cdd5 | 2327 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2328 | if test -n "$ac_maketemp"; then |
2329 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2330 | else | |
2331 | eval ac_cv_prog_make_${ac_make}_set=no | |
2332 | fi | |
8106cdd5 | 2333 | rm -f conftest.make |
795ca3e5 AK |
2334 | fi |
2335 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
8106cdd5 AK |
2336 | echo "$as_me:$LINENO: result: yes" >&5 |
2337 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2338 | SET_MAKE= |
2339 | else | |
8106cdd5 AK |
2340 | echo "$as_me:$LINENO: result: no" >&5 |
2341 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2342 | SET_MAKE="MAKE=${MAKE-make}" |
2343 | fi | |
2344 | ||
8106cdd5 AK |
2345 | if test -n "$ac_tool_prefix"; then |
2346 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2347 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2350 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2352 | else |
2353 | if test -n "$RANLIB"; then | |
2354 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2355 | else | |
8106cdd5 AK |
2356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2357 | for as_dir in $PATH | |
2358 | do | |
2359 | IFS=$as_save_IFS | |
2360 | test -z "$as_dir" && as_dir=. | |
2361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2363 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2365 | break 2 | |
2366 | fi | |
2367 | done | |
2368 | done | |
2369 | ||
795ca3e5 AK |
2370 | fi |
2371 | fi | |
8106cdd5 | 2372 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2373 | if test -n "$RANLIB"; then |
8106cdd5 AK |
2374 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2375 | echo "${ECHO_T}$RANLIB" >&6 | |
2376 | else | |
2377 | echo "$as_me:$LINENO: result: no" >&5 | |
2378 | echo "${ECHO_T}no" >&6 | |
2379 | fi | |
2380 | ||
2381 | fi | |
2382 | if test -z "$ac_cv_prog_RANLIB"; then | |
2383 | ac_ct_RANLIB=$RANLIB | |
2384 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2385 | set dummy ranlib; ac_word=$2 | |
2386 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2388 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2390 | else |
8106cdd5 AK |
2391 | if test -n "$ac_ct_RANLIB"; then |
2392 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2393 | else | |
2394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2395 | for as_dir in $PATH | |
2396 | do | |
2397 | IFS=$as_save_IFS | |
2398 | test -z "$as_dir" && as_dir=. | |
2399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2400 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2401 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2403 | break 2 | |
2404 | fi | |
2405 | done | |
2406 | done | |
2407 | ||
2408 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2409 | fi | |
2410 | fi | |
2411 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2412 | if test -n "$ac_ct_RANLIB"; then | |
2413 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2414 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2415 | else | |
2416 | echo "$as_me:$LINENO: result: no" >&5 | |
2417 | echo "${ECHO_T}no" >&6 | |
2418 | fi | |
2419 | ||
2420 | RANLIB=$ac_ct_RANLIB | |
2421 | else | |
2422 | RANLIB="$ac_cv_prog_RANLIB" | |
795ca3e5 AK |
2423 | fi |
2424 | ||
2425 | ||
8106cdd5 AK |
2426 | |
2427 | ||
2428 | ||
2429 | ||
2430 | ||
2431 | ||
795ca3e5 | 2432 | ac_header_dirent=no |
8106cdd5 AK |
2433 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
2434 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2435 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2436 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2439 | else | |
2440 | cat >conftest.$ac_ext <<_ACEOF | |
2441 | #line $LINENO "configure" | |
2442 | /* confdefs.h. */ | |
2443 | _ACEOF | |
2444 | cat confdefs.h >>conftest.$ac_ext | |
2445 | cat >>conftest.$ac_ext <<_ACEOF | |
2446 | /* end confdefs.h. */ | |
795ca3e5 AK |
2447 | #include <sys/types.h> |
2448 | #include <$ac_hdr> | |
8106cdd5 AK |
2449 | |
2450 | int | |
2451 | main () | |
2452 | { | |
2453 | if ((DIR *) 0) | |
2454 | return 0; | |
2455 | ; | |
2456 | return 0; | |
2457 | } | |
2458 | _ACEOF | |
2459 | rm -f conftest.$ac_objext | |
2460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2461 | (eval $ac_compile) 2>&5 | |
2462 | ac_status=$? | |
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2464 | (exit $ac_status); } && | |
2465 | { ac_try='test -s conftest.$ac_objext' | |
2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2467 | (eval $ac_try) 2>&5 | |
2468 | ac_status=$? | |
2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2470 | (exit $ac_status); }; }; then | |
2471 | eval "$as_ac_Header=yes" | |
2472 | else | |
2473 | echo "$as_me: failed program was:" >&5 | |
2474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2475 | ||
2476 | eval "$as_ac_Header=no" | |
795ca3e5 | 2477 | fi |
8106cdd5 | 2478 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 2479 | fi |
8106cdd5 AK |
2480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2483 | cat >>confdefs.h <<_ACEOF | |
2484 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2485 | _ACEOF | |
2486 | ||
2487 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2488 | fi |
8106cdd5 | 2489 | |
795ca3e5 AK |
2490 | done |
2491 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2492 | if test $ac_header_dirent = dirent.h; then | |
8106cdd5 AK |
2493 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2494 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2495 | if test "${ac_cv_search_opendir+set}" = set; then | |
2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2497 | else | |
2498 | ac_func_search_save_LIBS=$LIBS | |
2499 | ac_cv_search_opendir=no | |
2500 | cat >conftest.$ac_ext <<_ACEOF | |
2501 | #line $LINENO "configure" | |
2502 | /* confdefs.h. */ | |
2503 | _ACEOF | |
2504 | cat confdefs.h >>conftest.$ac_ext | |
2505 | cat >>conftest.$ac_ext <<_ACEOF | |
2506 | /* end confdefs.h. */ | |
2507 | ||
795ca3e5 | 2508 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
2509 | #ifdef __cplusplus |
2510 | extern "C" | |
2511 | #endif | |
795ca3e5 | 2512 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
2513 | builtin and then its argument prototype would still apply. */ |
2514 | char opendir (); | |
2515 | int | |
2516 | main () | |
2517 | { | |
2518 | opendir (); | |
2519 | ; | |
2520 | return 0; | |
2521 | } | |
2522 | _ACEOF | |
2523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2525 | (eval $ac_link) 2>&5 | |
2526 | ac_status=$? | |
2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2528 | (exit $ac_status); } && | |
2529 | { ac_try='test -s conftest$ac_exeext' | |
2530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2531 | (eval $ac_try) 2>&5 | |
2532 | ac_status=$? | |
2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2534 | (exit $ac_status); }; }; then | |
2535 | ac_cv_search_opendir="none required" | |
2536 | else | |
2537 | echo "$as_me: failed program was:" >&5 | |
2538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2539 | ||
2540 | fi | |
2541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2542 | if test "$ac_cv_search_opendir" = no; then | |
2543 | for ac_lib in dir; do | |
2544 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2545 | cat >conftest.$ac_ext <<_ACEOF | |
2546 | #line $LINENO "configure" | |
2547 | /* confdefs.h. */ | |
2548 | _ACEOF | |
2549 | cat confdefs.h >>conftest.$ac_ext | |
2550 | cat >>conftest.$ac_ext <<_ACEOF | |
2551 | /* end confdefs.h. */ | |
795ca3e5 | 2552 | |
8106cdd5 AK |
2553 | /* Override any gcc2 internal prototype to avoid an error. */ |
2554 | #ifdef __cplusplus | |
2555 | extern "C" | |
2556 | #endif | |
2557 | /* We use char because int might match the return type of a gcc2 | |
2558 | builtin and then its argument prototype would still apply. */ | |
2559 | char opendir (); | |
2560 | int | |
2561 | main () | |
2562 | { | |
2563 | opendir (); | |
2564 | ; | |
2565 | return 0; | |
2566 | } | |
2567 | _ACEOF | |
2568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2570 | (eval $ac_link) 2>&5 | |
2571 | ac_status=$? | |
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2573 | (exit $ac_status); } && | |
2574 | { ac_try='test -s conftest$ac_exeext' | |
2575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2576 | (eval $ac_try) 2>&5 | |
2577 | ac_status=$? | |
2578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 | (exit $ac_status); }; }; then | |
2580 | ac_cv_search_opendir="-l$ac_lib" | |
2581 | break | |
795ca3e5 | 2582 | else |
8106cdd5 AK |
2583 | echo "$as_me: failed program was:" >&5 |
2584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2585 | ||
2586 | fi | |
2587 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2588 | done | |
2589 | fi | |
2590 | LIBS=$ac_func_search_save_LIBS | |
2591 | fi | |
2592 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2593 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2594 | if test "$ac_cv_search_opendir" != no; then | |
2595 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
2596 | ||
795ca3e5 AK |
2597 | fi |
2598 | ||
2599 | else | |
8106cdd5 AK |
2600 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2601 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2602 | if test "${ac_cv_search_opendir+set}" = set; then | |
2603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2604 | else |
8106cdd5 AK |
2605 | ac_func_search_save_LIBS=$LIBS |
2606 | ac_cv_search_opendir=no | |
2607 | cat >conftest.$ac_ext <<_ACEOF | |
2608 | #line $LINENO "configure" | |
2609 | /* confdefs.h. */ | |
2610 | _ACEOF | |
2611 | cat confdefs.h >>conftest.$ac_ext | |
2612 | cat >>conftest.$ac_ext <<_ACEOF | |
2613 | /* end confdefs.h. */ | |
2614 | ||
795ca3e5 | 2615 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
2616 | #ifdef __cplusplus |
2617 | extern "C" | |
2618 | #endif | |
795ca3e5 | 2619 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
2620 | builtin and then its argument prototype would still apply. */ |
2621 | char opendir (); | |
2622 | int | |
2623 | main () | |
2624 | { | |
2625 | opendir (); | |
2626 | ; | |
2627 | return 0; | |
2628 | } | |
2629 | _ACEOF | |
2630 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2632 | (eval $ac_link) 2>&5 | |
2633 | ac_status=$? | |
2634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2635 | (exit $ac_status); } && | |
2636 | { ac_try='test -s conftest$ac_exeext' | |
2637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2638 | (eval $ac_try) 2>&5 | |
2639 | ac_status=$? | |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); }; }; then | |
2642 | ac_cv_search_opendir="none required" | |
2643 | else | |
2644 | echo "$as_me: failed program was:" >&5 | |
2645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2646 | ||
2647 | fi | |
2648 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2649 | if test "$ac_cv_search_opendir" = no; then | |
2650 | for ac_lib in x; do | |
2651 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2652 | cat >conftest.$ac_ext <<_ACEOF | |
2653 | #line $LINENO "configure" | |
2654 | /* confdefs.h. */ | |
2655 | _ACEOF | |
2656 | cat confdefs.h >>conftest.$ac_ext | |
2657 | cat >>conftest.$ac_ext <<_ACEOF | |
2658 | /* end confdefs.h. */ | |
795ca3e5 | 2659 | |
8106cdd5 AK |
2660 | /* Override any gcc2 internal prototype to avoid an error. */ |
2661 | #ifdef __cplusplus | |
2662 | extern "C" | |
2663 | #endif | |
2664 | /* We use char because int might match the return type of a gcc2 | |
2665 | builtin and then its argument prototype would still apply. */ | |
2666 | char opendir (); | |
2667 | int | |
2668 | main () | |
2669 | { | |
2670 | opendir (); | |
2671 | ; | |
2672 | return 0; | |
2673 | } | |
2674 | _ACEOF | |
2675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2677 | (eval $ac_link) 2>&5 | |
2678 | ac_status=$? | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); } && | |
2681 | { ac_try='test -s conftest$ac_exeext' | |
2682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2683 | (eval $ac_try) 2>&5 | |
2684 | ac_status=$? | |
2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2686 | (exit $ac_status); }; }; then | |
2687 | ac_cv_search_opendir="-l$ac_lib" | |
2688 | break | |
795ca3e5 | 2689 | else |
8106cdd5 AK |
2690 | echo "$as_me: failed program was:" >&5 |
2691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2692 | ||
2693 | fi | |
2694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2695 | done | |
2696 | fi | |
2697 | LIBS=$ac_func_search_save_LIBS | |
2698 | fi | |
2699 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2700 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2701 | if test "$ac_cv_search_opendir" != no; then | |
2702 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
2703 | ||
795ca3e5 AK |
2704 | fi |
2705 | ||
2706 | fi | |
2707 | ||
8106cdd5 AK |
2708 | ac_ext=c |
2709 | ac_cpp='$CPP $CPPFLAGS' | |
2710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2713 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2714 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
795ca3e5 AK |
2715 | # On Suns, sometimes $CPP names a directory. |
2716 | if test -n "$CPP" && test -d "$CPP"; then | |
2717 | CPP= | |
2718 | fi | |
2719 | if test -z "$CPP"; then | |
8106cdd5 AK |
2720 | if test "${ac_cv_prog_CPP+set}" = set; then |
2721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2722 | else |
8106cdd5 AK |
2723 | # Double quotes because CPP needs to be expanded |
2724 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2725 | do | |
2726 | ac_preproc_ok=false | |
2727 | for ac_c_preproc_warn_flag in '' yes | |
2728 | do | |
2729 | # Use a header file that comes with gcc, so configuring glibc | |
2730 | # with a fresh cross-compiler works. | |
2731 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2732 | # <limits.h> exists even on freestanding compilers. | |
795ca3e5 | 2733 | # On the NeXT, cc -E runs the code through the compiler's parser, |
8106cdd5 AK |
2734 | # not just through cpp. "Syntax error" is here to catch this case. |
2735 | cat >conftest.$ac_ext <<_ACEOF | |
2736 | #line $LINENO "configure" | |
2737 | /* confdefs.h. */ | |
2738 | _ACEOF | |
2739 | cat confdefs.h >>conftest.$ac_ext | |
2740 | cat >>conftest.$ac_ext <<_ACEOF | |
2741 | /* end confdefs.h. */ | |
2742 | #ifdef __STDC__ | |
2743 | # include <limits.h> | |
2744 | #else | |
2745 | # include <assert.h> | |
2746 | #endif | |
2747 | Syntax error | |
2748 | _ACEOF | |
2749 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2750 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2751 | ac_status=$? | |
2752 | grep -v '^ *+' conftest.er1 >conftest.err | |
2753 | rm -f conftest.er1 | |
2754 | cat conftest.err >&5 | |
2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2756 | (exit $ac_status); } >/dev/null; then | |
2757 | if test -s conftest.err; then | |
2758 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2759 | else | |
2760 | ac_cpp_err= | |
2761 | fi | |
795ca3e5 | 2762 | else |
8106cdd5 AK |
2763 | ac_cpp_err=yes |
2764 | fi | |
2765 | if test -z "$ac_cpp_err"; then | |
795ca3e5 AK |
2766 | : |
2767 | else | |
8106cdd5 AK |
2768 | echo "$as_me: failed program was:" >&5 |
2769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2770 | ||
2771 | # Broken: fails on valid input. | |
2772 | continue | |
2773 | fi | |
2774 | rm -f conftest.err conftest.$ac_ext | |
2775 | ||
2776 | # OK, works on sane cases. Now check whether non-existent headers | |
2777 | # can be detected and how. | |
2778 | cat >conftest.$ac_ext <<_ACEOF | |
2779 | #line $LINENO "configure" | |
2780 | /* confdefs.h. */ | |
2781 | _ACEOF | |
2782 | cat confdefs.h >>conftest.$ac_ext | |
2783 | cat >>conftest.$ac_ext <<_ACEOF | |
2784 | /* end confdefs.h. */ | |
2785 | #include <ac_nonexistent.h> | |
2786 | _ACEOF | |
2787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2789 | ac_status=$? | |
2790 | grep -v '^ *+' conftest.er1 >conftest.err | |
2791 | rm -f conftest.er1 | |
2792 | cat conftest.err >&5 | |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 | (exit $ac_status); } >/dev/null; then | |
2795 | if test -s conftest.err; then | |
2796 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2797 | else | |
2798 | ac_cpp_err= | |
2799 | fi | |
795ca3e5 | 2800 | else |
8106cdd5 | 2801 | ac_cpp_err=yes |
795ca3e5 | 2802 | fi |
8106cdd5 AK |
2803 | if test -z "$ac_cpp_err"; then |
2804 | # Broken: success on invalid input. | |
2805 | continue | |
2806 | else | |
2807 | echo "$as_me: failed program was:" >&5 | |
2808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2809 | ||
2810 | # Passes both tests. | |
2811 | ac_preproc_ok=: | |
2812 | break | |
795ca3e5 | 2813 | fi |
8106cdd5 AK |
2814 | rm -f conftest.err conftest.$ac_ext |
2815 | ||
2816 | done | |
2817 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2818 | rm -f conftest.err conftest.$ac_ext | |
2819 | if $ac_preproc_ok; then | |
2820 | break | |
795ca3e5 | 2821 | fi |
8106cdd5 AK |
2822 | |
2823 | done | |
2824 | ac_cv_prog_CPP=$CPP | |
2825 | ||
2826 | fi | |
2827 | CPP=$ac_cv_prog_CPP | |
2828 | else | |
2829 | ac_cv_prog_CPP=$CPP | |
2830 | fi | |
2831 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2832 | echo "${ECHO_T}$CPP" >&6 | |
2833 | ac_preproc_ok=false | |
2834 | for ac_c_preproc_warn_flag in '' yes | |
2835 | do | |
2836 | # Use a header file that comes with gcc, so configuring glibc | |
2837 | # with a fresh cross-compiler works. | |
2838 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2839 | # <limits.h> exists even on freestanding compilers. | |
2840 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2841 | # not just through cpp. "Syntax error" is here to catch this case. | |
2842 | cat >conftest.$ac_ext <<_ACEOF | |
2843 | #line $LINENO "configure" | |
2844 | /* confdefs.h. */ | |
2845 | _ACEOF | |
2846 | cat confdefs.h >>conftest.$ac_ext | |
2847 | cat >>conftest.$ac_ext <<_ACEOF | |
2848 | /* end confdefs.h. */ | |
2849 | #ifdef __STDC__ | |
2850 | # include <limits.h> | |
2851 | #else | |
2852 | # include <assert.h> | |
2853 | #endif | |
2854 | Syntax error | |
2855 | _ACEOF | |
2856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2858 | ac_status=$? | |
2859 | grep -v '^ *+' conftest.er1 >conftest.err | |
2860 | rm -f conftest.er1 | |
2861 | cat conftest.err >&5 | |
2862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2863 | (exit $ac_status); } >/dev/null; then | |
2864 | if test -s conftest.err; then | |
2865 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2866 | else | |
2867 | ac_cpp_err= | |
2868 | fi | |
2869 | else | |
2870 | ac_cpp_err=yes | |
2871 | fi | |
2872 | if test -z "$ac_cpp_err"; then | |
2873 | : | |
2874 | else | |
2875 | echo "$as_me: failed program was:" >&5 | |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2877 | ||
2878 | # Broken: fails on valid input. | |
2879 | continue | |
2880 | fi | |
2881 | rm -f conftest.err conftest.$ac_ext | |
2882 | ||
2883 | # OK, works on sane cases. Now check whether non-existent headers | |
2884 | # can be detected and how. | |
2885 | cat >conftest.$ac_ext <<_ACEOF | |
2886 | #line $LINENO "configure" | |
2887 | /* confdefs.h. */ | |
2888 | _ACEOF | |
2889 | cat confdefs.h >>conftest.$ac_ext | |
2890 | cat >>conftest.$ac_ext <<_ACEOF | |
2891 | /* end confdefs.h. */ | |
2892 | #include <ac_nonexistent.h> | |
2893 | _ACEOF | |
2894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2896 | ac_status=$? | |
2897 | grep -v '^ *+' conftest.er1 >conftest.err | |
2898 | rm -f conftest.er1 | |
2899 | cat conftest.err >&5 | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); } >/dev/null; then | |
2902 | if test -s conftest.err; then | |
2903 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2904 | else | |
2905 | ac_cpp_err= | |
2906 | fi | |
2907 | else | |
2908 | ac_cpp_err=yes | |
2909 | fi | |
2910 | if test -z "$ac_cpp_err"; then | |
2911 | # Broken: success on invalid input. | |
2912 | continue | |
2913 | else | |
2914 | echo "$as_me: failed program was:" >&5 | |
2915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2916 | ||
2917 | # Passes both tests. | |
2918 | ac_preproc_ok=: | |
2919 | break | |
2920 | fi | |
2921 | rm -f conftest.err conftest.$ac_ext | |
2922 | ||
2923 | done | |
2924 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2925 | rm -f conftest.err conftest.$ac_ext | |
2926 | if $ac_preproc_ok; then | |
2927 | : | |
2928 | else | |
2929 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2930 | See \`config.log' for more details." >&5 | |
2931 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2932 | See \`config.log' for more details." >&2;} | |
2933 | { (exit 1); exit 1; }; } | |
795ca3e5 | 2934 | fi |
8106cdd5 AK |
2935 | |
2936 | ac_ext=c | |
2937 | ac_cpp='$CPP $CPPFLAGS' | |
2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2941 | ||
2942 | ||
2943 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2944 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2945 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2947 | else |
8106cdd5 AK |
2948 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2949 | then ac_cv_prog_egrep='grep -E' | |
2950 | else ac_cv_prog_egrep='egrep' | |
2951 | fi | |
795ca3e5 | 2952 | fi |
8106cdd5 AK |
2953 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2954 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2955 | EGREP=$ac_cv_prog_egrep | |
795ca3e5 | 2956 | |
8106cdd5 AK |
2957 | |
2958 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2959 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2960 | if test "${ac_cv_header_stdc+set}" = set; then | |
2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2962 | else |
8106cdd5 AK |
2963 | cat >conftest.$ac_ext <<_ACEOF |
2964 | #line $LINENO "configure" | |
2965 | /* confdefs.h. */ | |
2966 | _ACEOF | |
2967 | cat confdefs.h >>conftest.$ac_ext | |
2968 | cat >>conftest.$ac_ext <<_ACEOF | |
2969 | /* end confdefs.h. */ | |
795ca3e5 AK |
2970 | #include <stdlib.h> |
2971 | #include <stdarg.h> | |
2972 | #include <string.h> | |
2973 | #include <float.h> | |
8106cdd5 AK |
2974 | |
2975 | int | |
2976 | main () | |
2977 | { | |
2978 | ||
2979 | ; | |
2980 | return 0; | |
2981 | } | |
2982 | _ACEOF | |
2983 | rm -f conftest.$ac_objext | |
2984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2985 | (eval $ac_compile) 2>&5 | |
2986 | ac_status=$? | |
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2988 | (exit $ac_status); } && | |
2989 | { ac_try='test -s conftest.$ac_objext' | |
2990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2991 | (eval $ac_try) 2>&5 | |
2992 | ac_status=$? | |
2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2994 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2995 | ac_cv_header_stdc=yes |
2996 | else | |
8106cdd5 AK |
2997 | echo "$as_me: failed program was:" >&5 |
2998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2999 | ||
3000 | ac_cv_header_stdc=no | |
795ca3e5 | 3001 | fi |
8106cdd5 | 3002 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 AK |
3003 | |
3004 | if test $ac_cv_header_stdc = yes; then | |
3005 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8106cdd5 AK |
3006 | cat >conftest.$ac_ext <<_ACEOF |
3007 | #line $LINENO "configure" | |
3008 | /* confdefs.h. */ | |
3009 | _ACEOF | |
3010 | cat confdefs.h >>conftest.$ac_ext | |
3011 | cat >>conftest.$ac_ext <<_ACEOF | |
3012 | /* end confdefs.h. */ | |
795ca3e5 | 3013 | #include <string.h> |
8106cdd5 AK |
3014 | |
3015 | _ACEOF | |
795ca3e5 | 3016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 3017 | $EGREP "memchr" >/dev/null 2>&1; then |
795ca3e5 AK |
3018 | : |
3019 | else | |
795ca3e5 AK |
3020 | ac_cv_header_stdc=no |
3021 | fi | |
3022 | rm -f conftest* | |
3023 | ||
3024 | fi | |
3025 | ||
3026 | if test $ac_cv_header_stdc = yes; then | |
3027 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8106cdd5 AK |
3028 | cat >conftest.$ac_ext <<_ACEOF |
3029 | #line $LINENO "configure" | |
3030 | /* confdefs.h. */ | |
3031 | _ACEOF | |
3032 | cat confdefs.h >>conftest.$ac_ext | |
3033 | cat >>conftest.$ac_ext <<_ACEOF | |
3034 | /* end confdefs.h. */ | |
795ca3e5 | 3035 | #include <stdlib.h> |
8106cdd5 AK |
3036 | |
3037 | _ACEOF | |
795ca3e5 | 3038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 3039 | $EGREP "free" >/dev/null 2>&1; then |
795ca3e5 AK |
3040 | : |
3041 | else | |
795ca3e5 AK |
3042 | ac_cv_header_stdc=no |
3043 | fi | |
3044 | rm -f conftest* | |
3045 | ||
3046 | fi | |
3047 | ||
3048 | if test $ac_cv_header_stdc = yes; then | |
3049 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8106cdd5 | 3050 | if test "$cross_compiling" = yes; then |
795ca3e5 AK |
3051 | : |
3052 | else | |
8106cdd5 AK |
3053 | cat >conftest.$ac_ext <<_ACEOF |
3054 | #line $LINENO "configure" | |
3055 | /* confdefs.h. */ | |
3056 | _ACEOF | |
3057 | cat confdefs.h >>conftest.$ac_ext | |
3058 | cat >>conftest.$ac_ext <<_ACEOF | |
3059 | /* end confdefs.h. */ | |
795ca3e5 | 3060 | #include <ctype.h> |
8106cdd5 AK |
3061 | #if ((' ' & 0x0FF) == 0x020) |
3062 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3063 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3064 | #else | |
3065 | # define ISLOWER(c) \ | |
3066 | (('a' <= (c) && (c) <= 'i') \ | |
3067 | || ('j' <= (c) && (c) <= 'r') \ | |
3068 | || ('s' <= (c) && (c) <= 'z')) | |
3069 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3070 | #endif | |
795ca3e5 | 3071 | |
8106cdd5 AK |
3072 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3073 | int | |
3074 | main () | |
3075 | { | |
3076 | int i; | |
3077 | for (i = 0; i < 256; i++) | |
3078 | if (XOR (islower (i), ISLOWER (i)) | |
3079 | || toupper (i) != TOUPPER (i)) | |
3080 | exit(2); | |
3081 | exit (0); | |
3082 | } | |
3083 | _ACEOF | |
3084 | rm -f conftest$ac_exeext | |
3085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3086 | (eval $ac_link) 2>&5 | |
3087 | ac_status=$? | |
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3091 | (eval $ac_try) 2>&5 | |
3092 | ac_status=$? | |
3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3094 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3095 | : |
3096 | else | |
8106cdd5 AK |
3097 | echo "$as_me: program exited with status $ac_status" >&5 |
3098 | echo "$as_me: failed program was:" >&5 | |
3099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3100 | ||
3101 | ( exit $ac_status ) | |
3102 | ac_cv_header_stdc=no | |
795ca3e5 | 3103 | fi |
8106cdd5 | 3104 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3105 | fi |
795ca3e5 AK |
3106 | fi |
3107 | fi | |
8106cdd5 AK |
3108 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3109 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
795ca3e5 | 3110 | if test $ac_cv_header_stdc = yes; then |
8106cdd5 AK |
3111 | |
3112 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3113 | #define STDC_HEADERS 1 |
8106cdd5 | 3114 | _ACEOF |
795ca3e5 AK |
3115 | |
3116 | fi | |
3117 | ||
8106cdd5 AK |
3118 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3119 | ||
3120 | ||
3121 | ||
3122 | ||
3123 | ||
3124 | ||
3125 | ||
3126 | ||
3127 | ||
3128 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3129 | inttypes.h stdint.h unistd.h | |
795ca3e5 | 3130 | do |
8106cdd5 AK |
3131 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3136 | else | |
3137 | cat >conftest.$ac_ext <<_ACEOF | |
3138 | #line $LINENO "configure" | |
3139 | /* confdefs.h. */ | |
3140 | _ACEOF | |
3141 | cat confdefs.h >>conftest.$ac_ext | |
3142 | cat >>conftest.$ac_ext <<_ACEOF | |
3143 | /* end confdefs.h. */ | |
3144 | $ac_includes_default | |
3145 | ||
3146 | #include <$ac_header> | |
3147 | _ACEOF | |
3148 | rm -f conftest.$ac_objext | |
3149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3150 | (eval $ac_compile) 2>&5 | |
3151 | ac_status=$? | |
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3153 | (exit $ac_status); } && | |
3154 | { ac_try='test -s conftest.$ac_objext' | |
3155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3156 | (eval $ac_try) 2>&5 | |
3157 | ac_status=$? | |
3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3159 | (exit $ac_status); }; }; then | |
3160 | eval "$as_ac_Header=yes" | |
3161 | else | |
3162 | echo "$as_me: failed program was:" >&5 | |
3163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3164 | ||
3165 | eval "$as_ac_Header=no" | |
795ca3e5 | 3166 | fi |
8106cdd5 AK |
3167 | rm -f conftest.$ac_objext conftest.$ac_ext |
3168 | fi | |
3169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3172 | cat >>confdefs.h <<_ACEOF | |
3173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3174 | _ACEOF | |
3175 | ||
3176 | fi | |
3177 | ||
3178 | done | |
3179 | ||
3180 | ||
3181 | ||
3182 | ||
3183 | ||
3184 | ||
3185 | for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h | |
3186 | do | |
3187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3193 | fi | |
3194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3196 | else | |
3197 | # Is the header compilable? | |
3198 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3199 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3200 | cat >conftest.$ac_ext <<_ACEOF | |
3201 | #line $LINENO "configure" | |
3202 | /* confdefs.h. */ | |
3203 | _ACEOF | |
3204 | cat confdefs.h >>conftest.$ac_ext | |
3205 | cat >>conftest.$ac_ext <<_ACEOF | |
3206 | /* end confdefs.h. */ | |
3207 | $ac_includes_default | |
3208 | #include <$ac_header> | |
3209 | _ACEOF | |
3210 | rm -f conftest.$ac_objext | |
3211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3212 | (eval $ac_compile) 2>&5 | |
3213 | ac_status=$? | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3215 | (exit $ac_status); } && | |
3216 | { ac_try='test -s conftest.$ac_objext' | |
3217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3218 | (eval $ac_try) 2>&5 | |
3219 | ac_status=$? | |
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3221 | (exit $ac_status); }; }; then | |
3222 | ac_header_compiler=yes | |
3223 | else | |
3224 | echo "$as_me: failed program was:" >&5 | |
3225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3226 | ||
3227 | ac_header_compiler=no | |
3228 | fi | |
3229 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3230 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3231 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3232 | ||
3233 | # Is the header present? | |
3234 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3236 | cat >conftest.$ac_ext <<_ACEOF | |
3237 | #line $LINENO "configure" | |
3238 | /* confdefs.h. */ | |
3239 | _ACEOF | |
3240 | cat confdefs.h >>conftest.$ac_ext | |
3241 | cat >>conftest.$ac_ext <<_ACEOF | |
3242 | /* end confdefs.h. */ | |
3243 | #include <$ac_header> | |
3244 | _ACEOF | |
3245 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3246 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3247 | ac_status=$? | |
3248 | grep -v '^ *+' conftest.er1 >conftest.err | |
3249 | rm -f conftest.er1 | |
3250 | cat conftest.err >&5 | |
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3252 | (exit $ac_status); } >/dev/null; then | |
3253 | if test -s conftest.err; then | |
3254 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3255 | else | |
3256 | ac_cpp_err= | |
3257 | fi | |
3258 | else | |
3259 | ac_cpp_err=yes | |
795ca3e5 | 3260 | fi |
8106cdd5 AK |
3261 | if test -z "$ac_cpp_err"; then |
3262 | ac_header_preproc=yes | |
795ca3e5 | 3263 | else |
8106cdd5 AK |
3264 | echo "$as_me: failed program was:" >&5 |
3265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3266 | ||
3267 | ac_header_preproc=no | |
3268 | fi | |
3269 | rm -f conftest.err conftest.$ac_ext | |
3270 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3271 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3272 | ||
3273 | # So? What about this header? | |
3274 | case $ac_header_compiler:$ac_header_preproc in | |
3275 | yes:no ) | |
3276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3279 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3280 | ( | |
3281 | cat <<\_ASBOX | |
3282 | ## ------------------------------------ ## | |
3283 | ## Report this to bug-autoconf@gnu.org. ## | |
3284 | ## ------------------------------------ ## | |
3285 | _ASBOX | |
3286 | ) | | |
3287 | sed "s/^/$as_me: WARNING: /" >&2 | |
3288 | ;; | |
3289 | no:yes ) | |
3290 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3291 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3292 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3293 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3296 | ( | |
3297 | cat <<\_ASBOX | |
3298 | ## ------------------------------------ ## | |
3299 | ## Report this to bug-autoconf@gnu.org. ## | |
3300 | ## ------------------------------------ ## | |
3301 | _ASBOX | |
3302 | ) | | |
3303 | sed "s/^/$as_me: WARNING: /" >&2 | |
3304 | ;; | |
3305 | esac | |
3306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3310 | else | |
3311 | eval "$as_ac_Header=$ac_header_preproc" | |
3312 | fi | |
3313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3315 | ||
3316 | fi | |
3317 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3318 | cat >>confdefs.h <<_ACEOF | |
3319 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3320 | _ACEOF | |
3321 | ||
795ca3e5 | 3322 | fi |
8106cdd5 | 3323 | |
795ca3e5 AK |
3324 | done |
3325 | ||
3326 | ||
8106cdd5 AK |
3327 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3328 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3329 | if test "${ac_cv_c_const+set}" = set; then | |
3330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3331 | else | |
3332 | cat >conftest.$ac_ext <<_ACEOF | |
3333 | #line $LINENO "configure" | |
3334 | /* confdefs.h. */ | |
3335 | _ACEOF | |
3336 | cat confdefs.h >>conftest.$ac_ext | |
3337 | cat >>conftest.$ac_ext <<_ACEOF | |
3338 | /* end confdefs.h. */ | |
3339 | ||
3340 | int | |
3341 | main () | |
3342 | { | |
3343 | /* FIXME: Include the comments suggested by Paul. */ | |
3344 | #ifndef __cplusplus | |
3345 | /* Ultrix mips cc rejects this. */ | |
3346 | typedef int charset[2]; | |
3347 | const charset x; | |
3348 | /* SunOS 4.1.1 cc rejects this. */ | |
3349 | char const *const *ccp; | |
3350 | char **p; | |
3351 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3352 | struct point {int x, y;}; | |
3353 | static struct point const zero = {0,0}; | |
3354 | /* AIX XL C 1.02.0.0 rejects this. | |
3355 | It does not let you subtract one const X* pointer from another in | |
3356 | an arm of an if-expression whose if-part is not a constant | |
3357 | expression */ | |
3358 | const char *g = "string"; | |
3359 | ccp = &g + (g ? g-g : 0); | |
3360 | /* HPUX 7.0 cc rejects these. */ | |
3361 | ++ccp; | |
3362 | p = (char**) ccp; | |
3363 | ccp = (char const *const *) p; | |
3364 | { /* SCO 3.2v4 cc rejects this. */ | |
3365 | char *t; | |
3366 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3367 | ||
3368 | *t++ = 0; | |
3369 | } | |
3370 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3371 | int x[] = {25, 17}; | |
3372 | const int *foo = &x[0]; | |
3373 | ++foo; | |
3374 | } | |
3375 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3376 | typedef const int *iptr; | |
3377 | iptr p = 0; | |
3378 | ++p; | |
3379 | } | |
3380 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3381 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3382 | struct s { int j; const int *ap[3]; }; | |
3383 | struct s *b; b->j = 5; | |
3384 | } | |
3385 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3386 | const int foo = 10; | |
3387 | } | |
3388 | #endif | |
795ca3e5 | 3389 | |
8106cdd5 AK |
3390 | ; |
3391 | return 0; | |
3392 | } | |
3393 | _ACEOF | |
3394 | rm -f conftest.$ac_objext | |
3395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3396 | (eval $ac_compile) 2>&5 | |
3397 | ac_status=$? | |
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3399 | (exit $ac_status); } && | |
3400 | { ac_try='test -s conftest.$ac_objext' | |
3401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3402 | (eval $ac_try) 2>&5 | |
3403 | ac_status=$? | |
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3405 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3406 | ac_cv_c_const=yes |
3407 | else | |
8106cdd5 AK |
3408 | echo "$as_me: failed program was:" >&5 |
3409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3410 | ||
3411 | ac_cv_c_const=no | |
795ca3e5 | 3412 | fi |
8106cdd5 | 3413 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3414 | fi |
8106cdd5 AK |
3415 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3416 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
795ca3e5 | 3417 | if test $ac_cv_c_const = no; then |
8106cdd5 AK |
3418 | |
3419 | cat >>confdefs.h <<\_ACEOF | |
3420 | #define const | |
3421 | _ACEOF | |
795ca3e5 AK |
3422 | |
3423 | fi | |
3424 | ||
8106cdd5 AK |
3425 | echo "$as_me:$LINENO: checking for inline" >&5 |
3426 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3427 | if test "${ac_cv_c_inline+set}" = set; then | |
3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
3429 | else |
3430 | ac_cv_c_inline=no | |
3431 | for ac_kw in inline __inline__ __inline; do | |
8106cdd5 AK |
3432 | cat >conftest.$ac_ext <<_ACEOF |
3433 | #line $LINENO "configure" | |
3434 | /* confdefs.h. */ | |
3435 | _ACEOF | |
3436 | cat confdefs.h >>conftest.$ac_ext | |
3437 | cat >>conftest.$ac_ext <<_ACEOF | |
3438 | /* end confdefs.h. */ | |
3439 | #ifndef __cplusplus | |
3440 | typedef int foo_t; | |
3441 | static $ac_kw foo_t static_foo () {return 0; } | |
3442 | $ac_kw foo_t foo () {return 0; } | |
3443 | #endif | |
3444 | ||
3445 | _ACEOF | |
3446 | rm -f conftest.$ac_objext | |
3447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3448 | (eval $ac_compile) 2>&5 | |
3449 | ac_status=$? | |
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3451 | (exit $ac_status); } && | |
3452 | { ac_try='test -s conftest.$ac_objext' | |
3453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3454 | (eval $ac_try) 2>&5 | |
3455 | ac_status=$? | |
3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3457 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3458 | ac_cv_c_inline=$ac_kw; break |
3459 | else | |
8106cdd5 AK |
3460 | echo "$as_me: failed program was:" >&5 |
3461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3462 | ||
795ca3e5 | 3463 | fi |
8106cdd5 | 3464 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 AK |
3465 | done |
3466 | ||
3467 | fi | |
8106cdd5 AK |
3468 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3469 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3470 | case $ac_cv_c_inline in | |
795ca3e5 | 3471 | inline | yes) ;; |
8106cdd5 AK |
3472 | no) |
3473 | cat >>confdefs.h <<\_ACEOF | |
3474 | #define inline | |
3475 | _ACEOF | |
795ca3e5 | 3476 | ;; |
8106cdd5 | 3477 | *) cat >>confdefs.h <<_ACEOF |
795ca3e5 | 3478 | #define inline $ac_cv_c_inline |
8106cdd5 | 3479 | _ACEOF |
795ca3e5 AK |
3480 | ;; |
3481 | esac | |
3482 | ||
8106cdd5 AK |
3483 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3484 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3485 | if test "${ac_cv_type_off_t+set}" = set; then | |
3486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3487 | else |
8106cdd5 AK |
3488 | cat >conftest.$ac_ext <<_ACEOF |
3489 | #line $LINENO "configure" | |
3490 | /* confdefs.h. */ | |
3491 | _ACEOF | |
3492 | cat confdefs.h >>conftest.$ac_ext | |
3493 | cat >>conftest.$ac_ext <<_ACEOF | |
3494 | /* end confdefs.h. */ | |
3495 | $ac_includes_default | |
3496 | int | |
3497 | main () | |
3498 | { | |
3499 | if ((off_t *) 0) | |
3500 | return 0; | |
3501 | if (sizeof (off_t)) | |
3502 | return 0; | |
3503 | ; | |
3504 | return 0; | |
3505 | } | |
3506 | _ACEOF | |
3507 | rm -f conftest.$ac_objext | |
3508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3509 | (eval $ac_compile) 2>&5 | |
3510 | ac_status=$? | |
3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3512 | (exit $ac_status); } && | |
3513 | { ac_try='test -s conftest.$ac_objext' | |
3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3515 | (eval $ac_try) 2>&5 | |
3516 | ac_status=$? | |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3518 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3519 | ac_cv_type_off_t=yes |
3520 | else | |
8106cdd5 AK |
3521 | echo "$as_me: failed program was:" >&5 |
3522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3523 | |
8106cdd5 | 3524 | ac_cv_type_off_t=no |
795ca3e5 | 3525 | fi |
8106cdd5 AK |
3526 | rm -f conftest.$ac_objext conftest.$ac_ext |
3527 | fi | |
3528 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
3529 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3530 | if test $ac_cv_type_off_t = yes; then | |
3531 | : | |
3532 | else | |
3533 | ||
3534 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3535 | #define off_t long |
8106cdd5 | 3536 | _ACEOF |
795ca3e5 AK |
3537 | |
3538 | fi | |
3539 | ||
8106cdd5 AK |
3540 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
3541 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
3542 | if test "${ac_cv_type_pid_t+set}" = set; then | |
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3544 | else |
8106cdd5 AK |
3545 | cat >conftest.$ac_ext <<_ACEOF |
3546 | #line $LINENO "configure" | |
3547 | /* confdefs.h. */ | |
3548 | _ACEOF | |
3549 | cat confdefs.h >>conftest.$ac_ext | |
3550 | cat >>conftest.$ac_ext <<_ACEOF | |
3551 | /* end confdefs.h. */ | |
3552 | $ac_includes_default | |
3553 | int | |
3554 | main () | |
3555 | { | |
3556 | if ((pid_t *) 0) | |
3557 | return 0; | |
3558 | if (sizeof (pid_t)) | |
3559 | return 0; | |
3560 | ; | |
3561 | return 0; | |
3562 | } | |
3563 | _ACEOF | |
3564 | rm -f conftest.$ac_objext | |
3565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3566 | (eval $ac_compile) 2>&5 | |
3567 | ac_status=$? | |
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3569 | (exit $ac_status); } && | |
3570 | { ac_try='test -s conftest.$ac_objext' | |
3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3572 | (eval $ac_try) 2>&5 | |
3573 | ac_status=$? | |
3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3575 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3576 | ac_cv_type_pid_t=yes |
3577 | else | |
8106cdd5 AK |
3578 | echo "$as_me: failed program was:" >&5 |
3579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3580 | |
8106cdd5 | 3581 | ac_cv_type_pid_t=no |
795ca3e5 | 3582 | fi |
8106cdd5 AK |
3583 | rm -f conftest.$ac_objext conftest.$ac_ext |
3584 | fi | |
3585 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
3586 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
3587 | if test $ac_cv_type_pid_t = yes; then | |
3588 | : | |
3589 | else | |
3590 | ||
3591 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3592 | #define pid_t int |
8106cdd5 | 3593 | _ACEOF |
795ca3e5 AK |
3594 | |
3595 | fi | |
3596 | ||
8106cdd5 AK |
3597 | echo "$as_me:$LINENO: checking for size_t" >&5 |
3598 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3599 | if test "${ac_cv_type_size_t+set}" = set; then | |
3600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3601 | else |
8106cdd5 AK |
3602 | cat >conftest.$ac_ext <<_ACEOF |
3603 | #line $LINENO "configure" | |
3604 | /* confdefs.h. */ | |
3605 | _ACEOF | |
3606 | cat confdefs.h >>conftest.$ac_ext | |
3607 | cat >>conftest.$ac_ext <<_ACEOF | |
3608 | /* end confdefs.h. */ | |
3609 | $ac_includes_default | |
3610 | int | |
3611 | main () | |
3612 | { | |
3613 | if ((size_t *) 0) | |
3614 | return 0; | |
3615 | if (sizeof (size_t)) | |
3616 | return 0; | |
3617 | ; | |
3618 | return 0; | |
3619 | } | |
3620 | _ACEOF | |
3621 | rm -f conftest.$ac_objext | |
3622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3623 | (eval $ac_compile) 2>&5 | |
3624 | ac_status=$? | |
3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3626 | (exit $ac_status); } && | |
3627 | { ac_try='test -s conftest.$ac_objext' | |
3628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3629 | (eval $ac_try) 2>&5 | |
3630 | ac_status=$? | |
3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3632 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3633 | ac_cv_type_size_t=yes |
3634 | else | |
8106cdd5 AK |
3635 | echo "$as_me: failed program was:" >&5 |
3636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3637 | |
8106cdd5 | 3638 | ac_cv_type_size_t=no |
795ca3e5 | 3639 | fi |
8106cdd5 AK |
3640 | rm -f conftest.$ac_objext conftest.$ac_ext |
3641 | fi | |
3642 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
3643 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3644 | if test $ac_cv_type_size_t = yes; then | |
3645 | : | |
3646 | else | |
3647 | ||
3648 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3649 | #define size_t unsigned |
8106cdd5 | 3650 | _ACEOF |
795ca3e5 AK |
3651 | |
3652 | fi | |
3653 | ||
8106cdd5 AK |
3654 | |
3655 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
3656 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
3657 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
3658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3659 | else |
8106cdd5 AK |
3660 | cat >conftest.$ac_ext <<_ACEOF |
3661 | #line $LINENO "configure" | |
3662 | /* confdefs.h. */ | |
3663 | _ACEOF | |
3664 | cat confdefs.h >>conftest.$ac_ext | |
3665 | cat >>conftest.$ac_ext <<_ACEOF | |
3666 | /* end confdefs.h. */ | |
3667 | $ac_includes_default | |
3668 | int | |
3669 | main () | |
3670 | { | |
3671 | static struct stat ac_aggr; | |
3672 | if (ac_aggr.st_rdev) | |
3673 | return 0; | |
3674 | ; | |
3675 | return 0; | |
3676 | } | |
3677 | _ACEOF | |
3678 | rm -f conftest.$ac_objext | |
3679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3680 | (eval $ac_compile) 2>&5 | |
3681 | ac_status=$? | |
3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3683 | (exit $ac_status); } && | |
3684 | { ac_try='test -s conftest.$ac_objext' | |
3685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3686 | (eval $ac_try) 2>&5 | |
3687 | ac_status=$? | |
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3689 | (exit $ac_status); }; }; then | |
3690 | ac_cv_member_struct_stat_st_rdev=yes | |
3691 | else | |
3692 | echo "$as_me: failed program was:" >&5 | |
3693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3694 | ||
3695 | cat >conftest.$ac_ext <<_ACEOF | |
3696 | #line $LINENO "configure" | |
3697 | /* confdefs.h. */ | |
3698 | _ACEOF | |
3699 | cat confdefs.h >>conftest.$ac_ext | |
3700 | cat >>conftest.$ac_ext <<_ACEOF | |
3701 | /* end confdefs.h. */ | |
3702 | $ac_includes_default | |
3703 | int | |
3704 | main () | |
3705 | { | |
3706 | static struct stat ac_aggr; | |
3707 | if (sizeof ac_aggr.st_rdev) | |
3708 | return 0; | |
3709 | ; | |
3710 | return 0; | |
3711 | } | |
3712 | _ACEOF | |
3713 | rm -f conftest.$ac_objext | |
3714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3715 | (eval $ac_compile) 2>&5 | |
3716 | ac_status=$? | |
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3718 | (exit $ac_status); } && | |
3719 | { ac_try='test -s conftest.$ac_objext' | |
3720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3721 | (eval $ac_try) 2>&5 | |
3722 | ac_status=$? | |
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3724 | (exit $ac_status); }; }; then | |
3725 | ac_cv_member_struct_stat_st_rdev=yes | |
3726 | else | |
3727 | echo "$as_me: failed program was:" >&5 | |
3728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3729 | ||
3730 | ac_cv_member_struct_stat_st_rdev=no | |
795ca3e5 | 3731 | fi |
8106cdd5 AK |
3732 | rm -f conftest.$ac_objext conftest.$ac_ext |
3733 | fi | |
3734 | rm -f conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 3735 | fi |
8106cdd5 AK |
3736 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
3737 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
3738 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
795ca3e5 | 3739 | |
8106cdd5 AK |
3740 | cat >>confdefs.h <<_ACEOF |
3741 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
3742 | _ACEOF | |
3743 | ||
3744 | ||
3745 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3746 | #define HAVE_ST_RDEV 1 |
8106cdd5 | 3747 | _ACEOF |
795ca3e5 AK |
3748 | |
3749 | fi | |
3750 | ||
8106cdd5 AK |
3751 | |
3752 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
3753 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3754 | if test "${ac_cv_header_time+set}" = set; then | |
3755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3756 | else |
8106cdd5 AK |
3757 | cat >conftest.$ac_ext <<_ACEOF |
3758 | #line $LINENO "configure" | |
3759 | /* confdefs.h. */ | |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
795ca3e5 AK |
3764 | #include <sys/types.h> |
3765 | #include <sys/time.h> | |
3766 | #include <time.h> | |
8106cdd5 AK |
3767 | |
3768 | int | |
3769 | main () | |
3770 | { | |
3771 | if ((struct tm *) 0) | |
3772 | return 0; | |
3773 | ; | |
3774 | return 0; | |
3775 | } | |
3776 | _ACEOF | |
3777 | rm -f conftest.$ac_objext | |
3778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3779 | (eval $ac_compile) 2>&5 | |
3780 | ac_status=$? | |
3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3782 | (exit $ac_status); } && | |
3783 | { ac_try='test -s conftest.$ac_objext' | |
3784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3785 | (eval $ac_try) 2>&5 | |
3786 | ac_status=$? | |
3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3788 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3789 | ac_cv_header_time=yes |
3790 | else | |
8106cdd5 AK |
3791 | echo "$as_me: failed program was:" >&5 |
3792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3793 | ||
3794 | ac_cv_header_time=no | |
795ca3e5 | 3795 | fi |
8106cdd5 | 3796 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3797 | fi |
8106cdd5 AK |
3798 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3799 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
795ca3e5 | 3800 | if test $ac_cv_header_time = yes; then |
8106cdd5 AK |
3801 | |
3802 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3803 | #define TIME_WITH_SYS_TIME 1 |
8106cdd5 | 3804 | _ACEOF |
795ca3e5 AK |
3805 | |
3806 | fi | |
3807 | ||
3808 | ||
b896caa1 | 3809 | # Make sure we can run config.sub. |
8106cdd5 AK |
3810 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3811 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3812 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3813 | { (exit 1); exit 1; }; } | |
3814 | ||
3815 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3816 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3817 | if test "${ac_cv_build+set}" = set; then | |
3818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3819 | else | |
3820 | ac_cv_build_alias=$build_alias | |
3821 | test -z "$ac_cv_build_alias" && | |
3822 | ac_cv_build_alias=`$ac_config_guess` | |
3823 | test -z "$ac_cv_build_alias" && | |
3824 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3825 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3826 | { (exit 1); exit 1; }; } | |
3827 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3828 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3829 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3830 | { (exit 1); exit 1; }; } | |
3831 | ||
3832 | fi | |
3833 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3834 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3835 | build=$ac_cv_build | |
3836 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3837 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3838 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3839 | ||
3840 | ||
3841 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3842 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3843 | if test "${ac_cv_host+set}" = set; then | |
3844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3845 | else | |
3846 | ac_cv_host_alias=$host_alias | |
3847 | test -z "$ac_cv_host_alias" && | |
3848 | ac_cv_host_alias=$ac_cv_build_alias | |
3849 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3850 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3851 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3852 | { (exit 1); exit 1; }; } | |
3853 | ||
3854 | fi | |
3855 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3856 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3857 | host=$ac_cv_host | |
3858 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3859 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3860 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3861 | ||
3862 | ||
3863 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3864 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3865 | if test "${ac_cv_target+set}" = set; then | |
3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3867 | else | |
3868 | ac_cv_target_alias=$target_alias | |
3869 | test "x$ac_cv_target_alias" = "x" && | |
3870 | ac_cv_target_alias=$ac_cv_host_alias | |
3871 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3872 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3873 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3874 | { (exit 1); exit 1; }; } | |
b896caa1 | 3875 | |
8106cdd5 AK |
3876 | fi |
3877 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
3878 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3879 | target=$ac_cv_target | |
3880 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3881 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3882 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b896caa1 | 3883 | |
b896caa1 | 3884 | |
8106cdd5 AK |
3885 | # The aliases save the names the user supplied, while $host etc. |
3886 | # will get canonicalized. | |
3887 | test -n "$target_alias" && | |
b896caa1 AK |
3888 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3889 | NONENONEs,x,x, && | |
3890 | program_prefix=${target_alias}- | |
3891 | ||
b896caa1 AK |
3892 | case "$host_os" in |
3893 | linux*) | |
8106cdd5 AK |
3894 | CFLAGS= |
3895 | CLDFLAGS="-Wl,--version-script,.export.sym" | |
3896 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
3897 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
3898 | LD_DEPS=".export.sym" | |
d68a82ec | 3899 | LD_FLAGS="-Wl,--export-dynamic" |
8106cdd5 AK |
3900 | SOFLAG="-shared" |
3901 | DEVMAPPER=yes | |
1a9ea74d | 3902 | ODIRECT=yes |
809fae91 | 3903 | FSADM=no ;; |
8106cdd5 AK |
3904 | darwin*) |
3905 | CFLAGS="-no-cpp-precomp -fno-common" | |
3906 | CLDFLAGS= | |
3907 | CLDWHOLEARCHIVE="-all_load" | |
3908 | CLDNOWHOLEARCHIVE= | |
3909 | LD_DEPS= | |
d68a82ec | 3910 | LD_FLAGS= |
8106cdd5 AK |
3911 | SOFLAG="-dynamiclib" |
3912 | DEVMAPPER=no | |
1a9ea74d AK |
3913 | ODIRECT=no |
3914 | FSADM=no ;; | |
b896caa1 AK |
3915 | esac |
3916 | ||
3917 | ||
795ca3e5 | 3918 | |
a38df97f AK |
3919 | OWNER="root" |
3920 | GROUP="root" | |
3921 | ||
8106cdd5 | 3922 | |
795ca3e5 AK |
3923 | # Check whether --with-user or --without-user was given. |
3924 | if test "${with_user+set}" = set; then | |
3925 | withval="$with_user" | |
8106cdd5 | 3926 | OWNER="$withval" |
8106cdd5 | 3927 | fi; |
795ca3e5 | 3928 | |
a38df97f AK |
3929 | if test x$OWNER != x; then |
3930 | OWNER="-o $OWNER" | |
3931 | fi | |
3932 | ||
795ca3e5 AK |
3933 | |
3934 | # Check whether --with-group or --without-group was given. | |
3935 | if test "${with_group+set}" = set; then | |
3936 | withval="$with_group" | |
8106cdd5 | 3937 | GROUP="$withval" |
8106cdd5 | 3938 | fi; |
795ca3e5 | 3939 | |
a38df97f AK |
3940 | if test x$GROUP != x; then |
3941 | GROUP="-g $GROUP" | |
3942 | fi | |
3943 | ||
7d1552c9 AK |
3944 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. |
3945 | if test "${enable_lvm1_fallback+set}" = set; then | |
3946 | enableval="$enable_lvm1_fallback" | |
3947 | LVM1_FALLBACK=$enableval | |
3948 | else | |
3949 | LVM1_FALLBACK=no | |
3950 | fi; | |
3951 | ||
3952 | if test x$LVM1_FALLBACK = xyes; then | |
3953 | CFLAGS="$CFLAGS -DLVM1_FALLBACK" | |
3954 | fi | |
3955 | ||
795ca3e5 | 3956 | |
5a52dca9 AK |
3957 | # Check whether --with-lvm1 or --without-lvm1 was given. |
3958 | if test "${with_lvm1+set}" = set; then | |
3959 | withval="$with_lvm1" | |
8106cdd5 | 3960 | LVM1="$withval" |
5a52dca9 | 3961 | else |
8106cdd5 AK |
3962 | LVM1="internal" |
3963 | fi; | |
5a52dca9 AK |
3964 | |
3965 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
8106cdd5 AK |
3966 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
3967 | " >&5 | |
3968 | echo "$as_me: error: --with-lvm1 parameter invalid | |
3969 | " >&2;} | |
3970 | { (exit 1); exit 1; }; } | |
5a52dca9 AK |
3971 | exit |
3972 | fi; | |
3973 | ||
b896caa1 AK |
3974 | if test x$LVM1 = xinternal; then |
3975 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
3976 | fi | |
3977 | ||
d8ac0fbc AK |
3978 | |
3979 | # Check whether --with-pool or --without-pool was given. | |
3980 | if test "${with_pool+set}" = set; then | |
3981 | withval="$with_pool" | |
3982 | POOL="$withval" | |
3983 | else | |
3984 | POOL="internal" | |
3985 | fi; | |
3986 | ||
3987 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
3988 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
3989 | " >&5 | |
3990 | echo "$as_me: error: --with-pool parameter invalid | |
3991 | " >&2;} | |
3992 | { (exit 1); exit 1; }; } | |
3993 | exit | |
3994 | fi; | |
3995 | ||
3996 | if test x$POOL = xinternal; then | |
3997 | CFLAGS="$CFLAGS -DPOOL_INTERNAL" | |
3998 | fi | |
3999 | ||
4000 | ||
795ca3e5 AK |
4001 | # Check whether --enable-jobs or --disable-jobs was given. |
4002 | if test "${enable_jobs+set}" = set; then | |
4003 | enableval="$enable_jobs" | |
4004 | JOBS=-j$enableval | |
4005 | else | |
8ef2b021 | 4006 | JOBS=-j2 |
8106cdd5 | 4007 | fi; |
795ca3e5 | 4008 | |
4922197a AK |
4009 | |
4010 | # Check whether --with-snapshots or --without-snapshots was given. | |
4011 | if test "${with_snapshots+set}" = set; then | |
4012 | withval="$with_snapshots" | |
4013 | SNAPSHOTS="$withval" | |
4014 | else | |
4015 | SNAPSHOTS="internal" | |
4016 | fi; | |
4017 | ||
4018 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
4019 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
4020 | " >&5 | |
4021 | echo "$as_me: error: --with-snapshots parameter invalid | |
4022 | " >&2;} | |
4023 | { (exit 1); exit 1; }; } | |
4024 | exit | |
4025 | fi; | |
4026 | ||
4027 | if test x$SNAPSHOTS = xinternal; then | |
4028 | CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL" | |
4029 | fi | |
4030 | ||
4031 | ||
4032 | # Check whether --with-mirrors or --without-mirrors was given. | |
4033 | if test "${with_mirrors+set}" = set; then | |
4034 | withval="$with_mirrors" | |
4035 | MIRRORS="$withval" | |
4036 | else | |
4037 | MIRRORS="internal" | |
4038 | fi; | |
4039 | ||
4040 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
4041 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
4042 | " >&5 | |
4043 | echo "$as_me: error: --with-mirrors parameter invalid | |
4044 | " >&2;} | |
4045 | { (exit 1); exit 1; }; } | |
4046 | exit | |
4047 | fi; | |
4048 | ||
4049 | if test x$MIRRORS = xinternal; then | |
4050 | CFLAGS="$CFLAGS -DMIRRORED_INTERNAL" | |
4051 | fi | |
4052 | ||
795ca3e5 AK |
4053 | # Check whether --enable-static_link or --disable-static_link was given. |
4054 | if test "${enable_static_link+set}" = set; then | |
4055 | enableval="$enable_static_link" | |
4056 | STATIC_LINK=$enableval | |
4057 | else | |
4058 | STATIC_LINK=no | |
8106cdd5 | 4059 | fi; |
795ca3e5 AK |
4060 | |
4061 | # Check whether --enable-readline or --disable-readline was given. | |
4062 | if test "${enable_readline+set}" = set; then | |
4063 | enableval="$enable_readline" | |
4064 | \ | |
4065 | READLINE=$enableval | |
4066 | else | |
5a52dca9 | 4067 | READLINE=no |
8106cdd5 | 4068 | fi; |
795ca3e5 | 4069 | |
b896caa1 AK |
4070 | if test x$READLINE = xyes; then |
4071 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
4072 | fi | |
4073 | ||
69792976 | 4074 | echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6 |
8ef2b021 AK |
4075 | # Check whether --enable-debug or --disable-debug was given. |
4076 | if test "${enable_debug+set}" = set; then | |
4077 | enableval="$enable_debug" | |
4078 | \ | |
4079 | DEBUG=yes | |
4080 | else | |
4081 | DEBUG=no | |
8106cdd5 | 4082 | fi; |
69792976 | 4083 | echo "$ac_t""$DEBUG" 1>&6 |
8ef2b021 | 4084 | |
69792976 | 4085 | echo $ac_n "checking whether to enable device-mapper""... $ac_c" 1>&6 |
199e490e AK |
4086 | # Check whether --enable-devmapper or --disable-devmapper was given. |
4087 | if test "${enable_devmapper+set}" = set; then | |
4088 | enableval="$enable_devmapper" | |
4089 | \ | |
4090 | DEVMAPPER=no | |
8106cdd5 | 4091 | fi; |
69792976 | 4092 | echo "$ac_t""$DEVMAPPER" 1>&6 |
199e490e | 4093 | |
b896caa1 AK |
4094 | if test x$DEVMAPPER = xyes; then |
4095 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
4096 | fi | |
4097 | ||
69792976 | 4098 | echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6 |
2dc95e1c AK |
4099 | # Check whether --enable-o_direct or --disable-o_direct was given. |
4100 | if test "${enable_o_direct+set}" = set; then | |
4101 | enableval="$enable_o_direct" | |
4102 | \ | |
4103 | ODIRECT=no | |
8106cdd5 | 4104 | fi; |
69792976 | 4105 | echo "$ac_t""$ODIRECT" 1>&6 |
2dc95e1c AK |
4106 | |
4107 | if test x$ODIRECT = xyes; then | |
4108 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
4109 | fi | |
4110 | ||
8106cdd5 AK |
4111 | echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6 |
4112 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
4113 | if test "${enable_cmdlib+set}" = set; then | |
4114 | enableval="$enable_cmdlib" | |
4115 | \ | |
4116 | CMDLIB=yes | |
4117 | else | |
4118 | CMDLIB=no | |
4119 | fi; | |
4120 | echo "$ac_t""$CMDLIB" 1>&6 | |
4121 | ||
4122 | if test x$CMDLIB = xyes; then | |
4123 | CFLAGS="$CFLAGS -DCMDLIB" | |
4124 | fi | |
4125 | ||
809fae91 AK |
4126 | echo $ac_n "checking whether to enable fsadm""... $ac_c" 1>&6 |
4127 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
4128 | if test "${enable_fsadm+set}" = set; then | |
4129 | enableval="$enable_fsadm" | |
4130 | FSADM=yes | |
4131 | fi; | |
4132 | echo "$ac_t""$FSADM" 1>&6 | |
4133 | ||
795ca3e5 AK |
4134 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; |
4135 | then exec_prefix=""; | |
4136 | fi; | |
4137 | ||
8106cdd5 AK |
4138 | if test $ac_cv_c_compiler_gnu = yes; then |
4139 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
4140 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
4141 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
4142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
4143 | else |
4144 | ac_pattern="Autoconf.*'x'" | |
8106cdd5 AK |
4145 | cat >conftest.$ac_ext <<_ACEOF |
4146 | #line $LINENO "configure" | |
4147 | /* confdefs.h. */ | |
4148 | _ACEOF | |
4149 | cat confdefs.h >>conftest.$ac_ext | |
4150 | cat >>conftest.$ac_ext <<_ACEOF | |
4151 | /* end confdefs.h. */ | |
795ca3e5 AK |
4152 | #include <sgtty.h> |
4153 | Autoconf TIOCGETP | |
8106cdd5 | 4154 | _ACEOF |
795ca3e5 | 4155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 4156 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
795ca3e5 AK |
4157 | ac_cv_prog_gcc_traditional=yes |
4158 | else | |
795ca3e5 AK |
4159 | ac_cv_prog_gcc_traditional=no |
4160 | fi | |
4161 | rm -f conftest* | |
4162 | ||
4163 | ||
4164 | if test $ac_cv_prog_gcc_traditional = no; then | |
8106cdd5 AK |
4165 | cat >conftest.$ac_ext <<_ACEOF |
4166 | #line $LINENO "configure" | |
4167 | /* confdefs.h. */ | |
4168 | _ACEOF | |
4169 | cat confdefs.h >>conftest.$ac_ext | |
4170 | cat >>conftest.$ac_ext <<_ACEOF | |
4171 | /* end confdefs.h. */ | |
795ca3e5 AK |
4172 | #include <termio.h> |
4173 | Autoconf TCGETA | |
8106cdd5 | 4174 | _ACEOF |
795ca3e5 | 4175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 4176 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
795ca3e5 AK |
4177 | ac_cv_prog_gcc_traditional=yes |
4178 | fi | |
4179 | rm -f conftest* | |
4180 | ||
4181 | fi | |
4182 | fi | |
8106cdd5 AK |
4183 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
4184 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
795ca3e5 AK |
4185 | if test $ac_cv_prog_gcc_traditional = yes; then |
4186 | CC="$CC -traditional" | |
4187 | fi | |
4188 | fi | |
4189 | ||
8106cdd5 AK |
4190 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
4191 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4192 | if test "${ac_cv_type_signal+set}" = set; then | |
4193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4194 | else |
8106cdd5 AK |
4195 | cat >conftest.$ac_ext <<_ACEOF |
4196 | #line $LINENO "configure" | |
4197 | /* confdefs.h. */ | |
4198 | _ACEOF | |
4199 | cat confdefs.h >>conftest.$ac_ext | |
4200 | cat >>conftest.$ac_ext <<_ACEOF | |
4201 | /* end confdefs.h. */ | |
795ca3e5 AK |
4202 | #include <sys/types.h> |
4203 | #include <signal.h> | |
4204 | #ifdef signal | |
8106cdd5 | 4205 | # undef signal |
795ca3e5 AK |
4206 | #endif |
4207 | #ifdef __cplusplus | |
4208 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4209 | #else | |
4210 | void (*signal ()) (); | |
4211 | #endif | |
4212 | ||
8106cdd5 AK |
4213 | int |
4214 | main () | |
4215 | { | |
795ca3e5 | 4216 | int i; |
8106cdd5 AK |
4217 | ; |
4218 | return 0; | |
4219 | } | |
4220 | _ACEOF | |
4221 | rm -f conftest.$ac_objext | |
4222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4223 | (eval $ac_compile) 2>&5 | |
4224 | ac_status=$? | |
4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4226 | (exit $ac_status); } && | |
4227 | { ac_try='test -s conftest.$ac_objext' | |
4228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4229 | (eval $ac_try) 2>&5 | |
4230 | ac_status=$? | |
4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4232 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
4233 | ac_cv_type_signal=void |
4234 | else | |
8106cdd5 AK |
4235 | echo "$as_me: failed program was:" >&5 |
4236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4237 | ||
4238 | ac_cv_type_signal=int | |
795ca3e5 | 4239 | fi |
8106cdd5 | 4240 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4241 | fi |
8106cdd5 AK |
4242 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
4243 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
795ca3e5 | 4244 | |
8106cdd5 | 4245 | cat >>confdefs.h <<_ACEOF |
795ca3e5 | 4246 | #define RETSIGTYPE $ac_cv_type_signal |
8106cdd5 | 4247 | _ACEOF |
795ca3e5 AK |
4248 | |
4249 | ||
8106cdd5 AK |
4250 | |
4251 | for ac_func in vprintf | |
4252 | do | |
4253 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4254 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4255 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4256 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4258 | else |
8106cdd5 AK |
4259 | cat >conftest.$ac_ext <<_ACEOF |
4260 | #line $LINENO "configure" | |
4261 | /* confdefs.h. */ | |
4262 | _ACEOF | |
4263 | cat confdefs.h >>conftest.$ac_ext | |
4264 | cat >>conftest.$ac_ext <<_ACEOF | |
4265 | /* end confdefs.h. */ | |
795ca3e5 | 4266 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4267 | which can conflict with char $ac_func (); below. |
4268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4269 | <limits.h> exists even on freestanding compilers. */ | |
4270 | #ifdef __STDC__ | |
4271 | # include <limits.h> | |
4272 | #else | |
4273 | # include <assert.h> | |
4274 | #endif | |
795ca3e5 | 4275 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4276 | #ifdef __cplusplus |
4277 | extern "C" | |
4278 | { | |
4279 | #endif | |
795ca3e5 | 4280 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4281 | builtin and then its argument prototype would still apply. */ |
4282 | char $ac_func (); | |
795ca3e5 AK |
4283 | /* The GNU C library defines this for functions which it implements |
4284 | to always fail with ENOSYS. Some functions are actually named | |
4285 | something starting with __ and the normal name is an alias. */ | |
8106cdd5 | 4286 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
4287 | choke me |
4288 | #else | |
8106cdd5 AK |
4289 | char (*f) () = $ac_func; |
4290 | #endif | |
4291 | #ifdef __cplusplus | |
4292 | } | |
795ca3e5 AK |
4293 | #endif |
4294 | ||
8106cdd5 AK |
4295 | int |
4296 | main () | |
4297 | { | |
4298 | return f != $ac_func; | |
4299 | ; | |
4300 | return 0; | |
4301 | } | |
4302 | _ACEOF | |
4303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4305 | (eval $ac_link) 2>&5 | |
4306 | ac_status=$? | |
4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4308 | (exit $ac_status); } && | |
4309 | { ac_try='test -s conftest$ac_exeext' | |
4310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4311 | (eval $ac_try) 2>&5 | |
4312 | ac_status=$? | |
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4314 | (exit $ac_status); }; }; then | |
4315 | eval "$as_ac_var=yes" | |
795ca3e5 | 4316 | else |
8106cdd5 AK |
4317 | echo "$as_me: failed program was:" >&5 |
4318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4319 | |
8106cdd5 | 4320 | eval "$as_ac_var=no" |
795ca3e5 | 4321 | fi |
8106cdd5 AK |
4322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4323 | fi | |
4324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4327 | cat >>confdefs.h <<_ACEOF | |
4328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4329 | _ACEOF | |
795ca3e5 | 4330 | |
8106cdd5 AK |
4331 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
4332 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
4333 | if test "${ac_cv_func__doprnt+set}" = set; then | |
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4335 | else |
8106cdd5 AK |
4336 | cat >conftest.$ac_ext <<_ACEOF |
4337 | #line $LINENO "configure" | |
4338 | /* confdefs.h. */ | |
4339 | _ACEOF | |
4340 | cat confdefs.h >>conftest.$ac_ext | |
4341 | cat >>conftest.$ac_ext <<_ACEOF | |
4342 | /* end confdefs.h. */ | |
795ca3e5 | 4343 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4344 | which can conflict with char _doprnt (); below. |
4345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4346 | <limits.h> exists even on freestanding compilers. */ | |
4347 | #ifdef __STDC__ | |
4348 | # include <limits.h> | |
4349 | #else | |
4350 | # include <assert.h> | |
4351 | #endif | |
795ca3e5 | 4352 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4353 | #ifdef __cplusplus |
4354 | extern "C" | |
4355 | { | |
4356 | #endif | |
795ca3e5 | 4357 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4358 | builtin and then its argument prototype would still apply. */ |
4359 | char _doprnt (); | |
795ca3e5 AK |
4360 | /* The GNU C library defines this for functions which it implements |
4361 | to always fail with ENOSYS. Some functions are actually named | |
4362 | something starting with __ and the normal name is an alias. */ | |
4363 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
4364 | choke me | |
4365 | #else | |
8106cdd5 AK |
4366 | char (*f) () = _doprnt; |
4367 | #endif | |
4368 | #ifdef __cplusplus | |
4369 | } | |
795ca3e5 AK |
4370 | #endif |
4371 | ||
8106cdd5 AK |
4372 | int |
4373 | main () | |
4374 | { | |
4375 | return f != _doprnt; | |
4376 | ; | |
4377 | return 0; | |
4378 | } | |
4379 | _ACEOF | |
4380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4382 | (eval $ac_link) 2>&5 | |
4383 | ac_status=$? | |
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4385 | (exit $ac_status); } && | |
4386 | { ac_try='test -s conftest$ac_exeext' | |
4387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4388 | (eval $ac_try) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; }; then | |
4392 | ac_cv_func__doprnt=yes | |
795ca3e5 | 4393 | else |
8106cdd5 AK |
4394 | echo "$as_me: failed program was:" >&5 |
4395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4396 | ||
4397 | ac_cv_func__doprnt=no | |
795ca3e5 | 4398 | fi |
8106cdd5 | 4399 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 4400 | fi |
8106cdd5 AK |
4401 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
4402 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
4403 | if test $ac_cv_func__doprnt = yes; then | |
795ca3e5 | 4404 | |
8106cdd5 | 4405 | cat >>confdefs.h <<\_ACEOF |
795ca3e5 | 4406 | #define HAVE_DOPRNT 1 |
8106cdd5 | 4407 | _ACEOF |
795ca3e5 | 4408 | |
795ca3e5 AK |
4409 | fi |
4410 | ||
4411 | fi | |
8106cdd5 AK |
4412 | done |
4413 | ||
4414 | ||
4415 | ||
4416 | ||
795ca3e5 AK |
4417 | |
4418 | for ac_func in mkdir rmdir uname | |
4419 | do | |
8106cdd5 AK |
4420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4421 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4423 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4425 | else | |
4426 | cat >conftest.$ac_ext <<_ACEOF | |
4427 | #line $LINENO "configure" | |
4428 | /* confdefs.h. */ | |
4429 | _ACEOF | |
4430 | cat confdefs.h >>conftest.$ac_ext | |
4431 | cat >>conftest.$ac_ext <<_ACEOF | |
4432 | /* end confdefs.h. */ | |
795ca3e5 | 4433 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4434 | which can conflict with char $ac_func (); below. |
4435 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4436 | <limits.h> exists even on freestanding compilers. */ | |
4437 | #ifdef __STDC__ | |
4438 | # include <limits.h> | |
4439 | #else | |
4440 | # include <assert.h> | |
4441 | #endif | |
795ca3e5 | 4442 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4443 | #ifdef __cplusplus |
4444 | extern "C" | |
4445 | { | |
4446 | #endif | |
795ca3e5 | 4447 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4448 | builtin and then its argument prototype would still apply. */ |
4449 | char $ac_func (); | |
795ca3e5 AK |
4450 | /* The GNU C library defines this for functions which it implements |
4451 | to always fail with ENOSYS. Some functions are actually named | |
4452 | something starting with __ and the normal name is an alias. */ | |
4453 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4454 | choke me | |
4455 | #else | |
8106cdd5 AK |
4456 | char (*f) () = $ac_func; |
4457 | #endif | |
4458 | #ifdef __cplusplus | |
4459 | } | |
795ca3e5 AK |
4460 | #endif |
4461 | ||
8106cdd5 AK |
4462 | int |
4463 | main () | |
4464 | { | |
4465 | return f != $ac_func; | |
4466 | ; | |
4467 | return 0; | |
4468 | } | |
4469 | _ACEOF | |
4470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4472 | (eval $ac_link) 2>&5 | |
4473 | ac_status=$? | |
4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4475 | (exit $ac_status); } && | |
4476 | { ac_try='test -s conftest$ac_exeext' | |
4477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4478 | (eval $ac_try) 2>&5 | |
4479 | ac_status=$? | |
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4481 | (exit $ac_status); }; }; then | |
4482 | eval "$as_ac_var=yes" | |
795ca3e5 | 4483 | else |
8106cdd5 AK |
4484 | echo "$as_me: failed program was:" >&5 |
4485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4486 | ||
4487 | eval "$as_ac_var=no" | |
795ca3e5 | 4488 | fi |
8106cdd5 | 4489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 4490 | fi |
8106cdd5 AK |
4491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4494 | cat >>confdefs.h <<_ACEOF | |
4495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4496 | _ACEOF | |
795ca3e5 | 4497 | |
795ca3e5 AK |
4498 | fi |
4499 | done | |
4500 | ||
4501 | ||
4502 | if test x$READLINE = xyes; then | |
8106cdd5 AK |
4503 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
4504 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
4505 | if test "${ac_cv_search_tgetent+set}" = set; then | |
4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4507 | else | |
4508 | ac_func_search_save_LIBS=$LIBS | |
4509 | ac_cv_search_tgetent=no | |
4510 | cat >conftest.$ac_ext <<_ACEOF | |
4511 | #line $LINENO "configure" | |
4512 | /* confdefs.h. */ | |
4513 | _ACEOF | |
4514 | cat confdefs.h >>conftest.$ac_ext | |
4515 | cat >>conftest.$ac_ext <<_ACEOF | |
4516 | /* end confdefs.h. */ | |
4517 | ||
795ca3e5 | 4518 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4519 | #ifdef __cplusplus |
4520 | extern "C" | |
4521 | #endif | |
795ca3e5 | 4522 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4523 | builtin and then its argument prototype would still apply. */ |
4524 | char tgetent (); | |
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | tgetent (); | |
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4535 | (eval $ac_link) 2>&5 | |
4536 | ac_status=$? | |
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4538 | (exit $ac_status); } && | |
4539 | { ac_try='test -s conftest$ac_exeext' | |
4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4541 | (eval $ac_try) 2>&5 | |
4542 | ac_status=$? | |
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4544 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
4545 | ac_cv_search_tgetent="none required" |
4546 | else | |
8106cdd5 AK |
4547 | echo "$as_me: failed program was:" >&5 |
4548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4549 | ||
4550 | fi | |
4551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4552 | if test "$ac_cv_search_tgetent" = no; then | |
4553 | for ac_lib in ncurses curses termcap termlib; do | |
4554 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4555 | cat >conftest.$ac_ext <<_ACEOF | |
4556 | #line $LINENO "configure" | |
4557 | /* confdefs.h. */ | |
4558 | _ACEOF | |
4559 | cat confdefs.h >>conftest.$ac_ext | |
4560 | cat >>conftest.$ac_ext <<_ACEOF | |
4561 | /* end confdefs.h. */ | |
4562 | ||
795ca3e5 | 4563 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4564 | #ifdef __cplusplus |
4565 | extern "C" | |
4566 | #endif | |
795ca3e5 | 4567 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4568 | builtin and then its argument prototype would still apply. */ |
4569 | char tgetent (); | |
4570 | int | |
4571 | main () | |
4572 | { | |
4573 | tgetent (); | |
4574 | ; | |
4575 | return 0; | |
4576 | } | |
4577 | _ACEOF | |
4578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4580 | (eval $ac_link) 2>&5 | |
4581 | ac_status=$? | |
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 | (exit $ac_status); } && | |
4584 | { ac_try='test -s conftest$ac_exeext' | |
4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4586 | (eval $ac_try) 2>&5 | |
4587 | ac_status=$? | |
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4589 | (exit $ac_status); }; }; then | |
4590 | ac_cv_search_tgetent="-l$ac_lib" | |
795ca3e5 AK |
4591 | break |
4592 | else | |
8106cdd5 AK |
4593 | echo "$as_me: failed program was:" >&5 |
4594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4595 | ||
795ca3e5 | 4596 | fi |
8106cdd5 AK |
4597 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4598 | done | |
795ca3e5 | 4599 | fi |
8106cdd5 AK |
4600 | LIBS=$ac_func_search_save_LIBS |
4601 | fi | |
4602 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
4603 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
4604 | if test "$ac_cv_search_tgetent" != no; then | |
795ca3e5 | 4605 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
8106cdd5 AK |
4606 | |
4607 | else | |
4608 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
4609 | --enable-readline option (which is enabled by default). Either disable readline | |
4610 | support with --disable-readline or download and install termcap from: | |
4611 | ftp.gnu.org/gnu/termcap | |
4612 | Note: if you are using precompiled packages you will also need the development | |
4613 | package as well (which may be called termcap-devel or something similar). | |
4614 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
4615 | not found either - but you could try installing that as well. | |
4616 | " >&5 | |
4617 | echo "$as_me: error: termcap could not be found which is required for the | |
795ca3e5 AK |
4618 | --enable-readline option (which is enabled by default). Either disable readline |
4619 | support with --disable-readline or download and install termcap from: | |
4620 | ftp.gnu.org/gnu/termcap | |
4621 | Note: if you are using precompiled packages you will also need the development | |
4622 | package as well (which may be called termcap-devel or something similar). | |
4623 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
4624 | not found either - but you could try installing that as well. | |
8106cdd5 AK |
4625 | " >&2;} |
4626 | { (exit 1); exit 1; }; } | |
795ca3e5 | 4627 | exit |
8106cdd5 | 4628 | |
795ca3e5 | 4629 | fi |
8106cdd5 | 4630 | |
795ca3e5 AK |
4631 | fi |
4632 | ||
8106cdd5 AK |
4633 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
4634 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
4635 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 4637 | else |
8106cdd5 | 4638 | ac_check_lib_save_LIBS=$LIBS |
26e7f2e0 | 4639 | LIBS="-ldl $LIBS" |
8106cdd5 AK |
4640 | cat >conftest.$ac_ext <<_ACEOF |
4641 | #line $LINENO "configure" | |
4642 | /* confdefs.h. */ | |
4643 | _ACEOF | |
4644 | cat confdefs.h >>conftest.$ac_ext | |
4645 | cat >>conftest.$ac_ext <<_ACEOF | |
4646 | /* end confdefs.h. */ | |
4647 | ||
26e7f2e0 | 4648 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4649 | #ifdef __cplusplus |
4650 | extern "C" | |
4651 | #endif | |
26e7f2e0 | 4652 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4653 | builtin and then its argument prototype would still apply. */ |
4654 | char dlopen (); | |
4655 | int | |
4656 | main () | |
4657 | { | |
4658 | dlopen (); | |
4659 | ; | |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4665 | (eval $ac_link) 2>&5 | |
4666 | ac_status=$? | |
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4668 | (exit $ac_status); } && | |
4669 | { ac_try='test -s conftest$ac_exeext' | |
4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4671 | (eval $ac_try) 2>&5 | |
4672 | ac_status=$? | |
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4674 | (exit $ac_status); }; }; then | |
4675 | ac_cv_lib_dl_dlopen=yes | |
4676 | else | |
4677 | echo "$as_me: failed program was:" >&5 | |
4678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26e7f2e0 | 4679 | |
8106cdd5 | 4680 | ac_cv_lib_dl_dlopen=no |
26e7f2e0 | 4681 | fi |
8106cdd5 AK |
4682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4683 | LIBS=$ac_check_lib_save_LIBS | |
4684 | fi | |
4685 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
4686 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
4687 | if test $ac_cv_lib_dl_dlopen = yes; then | |
26e7f2e0 AK |
4688 | HAVE_LIBDL=yes |
4689 | else | |
8106cdd5 | 4690 | HAVE_LIBDL=no |
26e7f2e0 AK |
4691 | fi |
4692 | ||
4693 | ||
74583a91 | 4694 | if [ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]; then |
b896caa1 | 4695 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
26e7f2e0 | 4696 | LIBS="-ldl $LIBS" |
d68a82ec AK |
4697 | else |
4698 | HAVE_LIBDL=no | |
26e7f2e0 AK |
4699 | fi |
4700 | ||
d8ac0fbc | 4701 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o \ |
4922197a AK |
4702 | "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ |
4703 | \) -a "x$STATIC_LINK" = xyes ]; | |
036f273a | 4704 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
d68a82ec | 4705 | " >&5 |
036f273a | 4706 | echo "$as_me: error: Features cannot be 'shared' when building statically |
d68a82ec AK |
4707 | " >&2;} |
4708 | { (exit 1); exit 1; }; } | |
4709 | exit | |
036f273a AK |
4710 | fi |
4711 | ||
4712 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
4713 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
4714 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
4715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4716 | else | |
4717 | ac_check_lib_save_LIBS=$LIBS | |
4718 | LIBS="-lselinux $LIBS" | |
4719 | cat >conftest.$ac_ext <<_ACEOF | |
4720 | #line $LINENO "configure" | |
4721 | /* confdefs.h. */ | |
4722 | _ACEOF | |
4723 | cat confdefs.h >>conftest.$ac_ext | |
4724 | cat >>conftest.$ac_ext <<_ACEOF | |
4725 | /* end confdefs.h. */ | |
4726 | ||
4727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4728 | #ifdef __cplusplus | |
4729 | extern "C" | |
4730 | #endif | |
4731 | /* We use char because int might match the return type of a gcc2 | |
4732 | builtin and then its argument prototype would still apply. */ | |
4733 | char is_selinux_enabled (); | |
4734 | int | |
4735 | main () | |
4736 | { | |
4737 | is_selinux_enabled (); | |
4738 | ; | |
4739 | return 0; | |
4740 | } | |
4741 | _ACEOF | |
4742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4744 | (eval $ac_link) 2>&5 | |
4745 | ac_status=$? | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); } && | |
4748 | { ac_try='test -s conftest$ac_exeext' | |
4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4750 | (eval $ac_try) 2>&5 | |
4751 | ac_status=$? | |
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4753 | (exit $ac_status); }; }; then | |
4754 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
4755 | else | |
4756 | echo "$as_me: failed program was:" >&5 | |
4757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4758 | ||
4759 | ac_cv_lib_selinux_is_selinux_enabled=no | |
4760 | fi | |
4761 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4762 | LIBS=$ac_check_lib_save_LIBS | |
4763 | fi | |
4764 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
4765 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
4766 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
4767 | HAVE_SELINUX=yes | |
4768 | else | |
4769 | HAVE_SELINUX=no | |
4770 | fi | |
4771 | ||
4772 | ||
4773 | if test x$HAVE_SELINUX = xyes; then | |
4774 | CFLAGS="$CFLAGS -DHAVE_SELINUX" | |
4775 | LIBS="-lselinux $LIBS" | |
4776 | fi | |
d68a82ec | 4777 | |
8106cdd5 AK |
4778 | |
4779 | for ac_header in getopt.h | |
b896caa1 | 4780 | do |
8106cdd5 AK |
4781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4787 | fi | |
4788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4790 | else | |
4791 | # Is the header compilable? | |
4792 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4793 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4794 | cat >conftest.$ac_ext <<_ACEOF | |
4795 | #line $LINENO "configure" | |
4796 | /* confdefs.h. */ | |
4797 | _ACEOF | |
4798 | cat confdefs.h >>conftest.$ac_ext | |
4799 | cat >>conftest.$ac_ext <<_ACEOF | |
4800 | /* end confdefs.h. */ | |
4801 | $ac_includes_default | |
4802 | #include <$ac_header> | |
4803 | _ACEOF | |
4804 | rm -f conftest.$ac_objext | |
4805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4806 | (eval $ac_compile) 2>&5 | |
4807 | ac_status=$? | |
4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4809 | (exit $ac_status); } && | |
4810 | { ac_try='test -s conftest.$ac_objext' | |
4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4812 | (eval $ac_try) 2>&5 | |
4813 | ac_status=$? | |
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4815 | (exit $ac_status); }; }; then | |
4816 | ac_header_compiler=yes | |
4817 | else | |
4818 | echo "$as_me: failed program was:" >&5 | |
4819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4820 | ||
4821 | ac_header_compiler=no | |
4822 | fi | |
4823 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4824 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4825 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4826 | ||
4827 | # Is the header present? | |
4828 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4829 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4830 | cat >conftest.$ac_ext <<_ACEOF | |
4831 | #line $LINENO "configure" | |
4832 | /* confdefs.h. */ | |
4833 | _ACEOF | |
4834 | cat confdefs.h >>conftest.$ac_ext | |
4835 | cat >>conftest.$ac_ext <<_ACEOF | |
4836 | /* end confdefs.h. */ | |
4837 | #include <$ac_header> | |
4838 | _ACEOF | |
4839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4841 | ac_status=$? | |
4842 | grep -v '^ *+' conftest.er1 >conftest.err | |
4843 | rm -f conftest.er1 | |
4844 | cat conftest.err >&5 | |
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4846 | (exit $ac_status); } >/dev/null; then | |
4847 | if test -s conftest.err; then | |
4848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4849 | else | |
4850 | ac_cpp_err= | |
4851 | fi | |
4852 | else | |
4853 | ac_cpp_err=yes | |
b896caa1 | 4854 | fi |
8106cdd5 AK |
4855 | if test -z "$ac_cpp_err"; then |
4856 | ac_header_preproc=yes | |
4857 | else | |
4858 | echo "$as_me: failed program was:" >&5 | |
4859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4860 | ||
4861 | ac_header_preproc=no | |
4862 | fi | |
4863 | rm -f conftest.err conftest.$ac_ext | |
4864 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4865 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4866 | ||
4867 | # So? What about this header? | |
4868 | case $ac_header_compiler:$ac_header_preproc in | |
4869 | yes:no ) | |
4870 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4871 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4874 | ( | |
4875 | cat <<\_ASBOX | |
4876 | ## ------------------------------------ ## | |
4877 | ## Report this to bug-autoconf@gnu.org. ## | |
4878 | ## ------------------------------------ ## | |
4879 | _ASBOX | |
4880 | ) | | |
4881 | sed "s/^/$as_me: WARNING: /" >&2 | |
4882 | ;; | |
4883 | no:yes ) | |
4884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4890 | ( | |
4891 | cat <<\_ASBOX | |
4892 | ## ------------------------------------ ## | |
4893 | ## Report this to bug-autoconf@gnu.org. ## | |
4894 | ## ------------------------------------ ## | |
4895 | _ASBOX | |
4896 | ) | | |
4897 | sed "s/^/$as_me: WARNING: /" >&2 | |
4898 | ;; | |
4899 | esac | |
4900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4904 | else | |
4905 | eval "$as_ac_Header=$ac_header_preproc" | |
4906 | fi | |
4907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4909 | ||
b896caa1 | 4910 | fi |
8106cdd5 AK |
4911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4912 | cat >>confdefs.h <<_ACEOF | |
4913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4914 | _ACEOF | |
b896caa1 | 4915 | CFLAGS="$CFLAGS -DHAVE_GETOPTLONG" |
b896caa1 | 4916 | fi |
8106cdd5 | 4917 | |
b896caa1 AK |
4918 | done |
4919 | ||
4920 | ||
795ca3e5 | 4921 | if test x$READLINE = xyes; then |
8106cdd5 AK |
4922 | |
4923 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
4924 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
4925 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
4926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4927 | else |
8106cdd5 | 4928 | ac_check_lib_save_LIBS=$LIBS |
795ca3e5 | 4929 | LIBS="-lreadline $LIBS" |
8106cdd5 AK |
4930 | cat >conftest.$ac_ext <<_ACEOF |
4931 | #line $LINENO "configure" | |
4932 | /* confdefs.h. */ | |
4933 | _ACEOF | |
4934 | cat confdefs.h >>conftest.$ac_ext | |
4935 | cat >>conftest.$ac_ext <<_ACEOF | |
4936 | /* end confdefs.h. */ | |
4937 | ||
795ca3e5 | 4938 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4939 | #ifdef __cplusplus |
4940 | extern "C" | |
4941 | #endif | |
795ca3e5 | 4942 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4943 | builtin and then its argument prototype would still apply. */ |
4944 | char readline (); | |
4945 | int | |
4946 | main () | |
4947 | { | |
4948 | readline (); | |
4949 | ; | |
4950 | return 0; | |
4951 | } | |
4952 | _ACEOF | |
4953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4955 | (eval $ac_link) 2>&5 | |
4956 | ac_status=$? | |
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4958 | (exit $ac_status); } && | |
4959 | { ac_try='test -s conftest$ac_exeext' | |
4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4961 | (eval $ac_try) 2>&5 | |
4962 | ac_status=$? | |
4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4964 | (exit $ac_status); }; }; then | |
4965 | ac_cv_lib_readline_readline=yes | |
4966 | else | |
4967 | echo "$as_me: failed program was:" >&5 | |
4968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4969 | |
8106cdd5 | 4970 | ac_cv_lib_readline_readline=no |
795ca3e5 | 4971 | fi |
8106cdd5 AK |
4972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4973 | LIBS=$ac_check_lib_save_LIBS | |
4974 | fi | |
4975 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
4976 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
4977 | if test $ac_cv_lib_readline_readline = yes; then | |
4978 | cat >>confdefs.h <<_ACEOF | |
4979 | #define HAVE_LIBREADLINE 1 | |
4980 | _ACEOF | |
795ca3e5 AK |
4981 | |
4982 | LIBS="-lreadline $LIBS" | |
4983 | ||
4984 | else | |
8106cdd5 AK |
4985 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
4986 | --enable-readline option (which is enabled by default). Either disable readline | |
4987 | support with --disable-readline or download and install readline from: | |
4988 | ftp.gnu.org/gnu/readline | |
4989 | Note: if you are using precompiled packages you will also need the development | |
4990 | package as well (which may be called readline-devel or something similar). | |
4991 | " >&5 | |
4992 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
795ca3e5 AK |
4993 | --enable-readline option (which is enabled by default). Either disable readline |
4994 | support with --disable-readline or download and install readline from: | |
4995 | ftp.gnu.org/gnu/readline | |
4996 | Note: if you are using precompiled packages you will also need the development | |
4997 | package as well (which may be called readline-devel or something similar). | |
8106cdd5 AK |
4998 | " >&2;} |
4999 | { (exit 1); exit 1; }; } | |
795ca3e5 | 5000 | exit |
8106cdd5 | 5001 | |
795ca3e5 AK |
5002 | fi |
5003 | ||
8106cdd5 AK |
5004 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
5005 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
5006 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
83912faa | 5008 | else |
8106cdd5 AK |
5009 | cat >conftest.$ac_ext <<_ACEOF |
5010 | #line $LINENO "configure" | |
5011 | /* confdefs.h. */ | |
5012 | _ACEOF | |
5013 | cat confdefs.h >>conftest.$ac_ext | |
5014 | cat >>conftest.$ac_ext <<_ACEOF | |
5015 | /* end confdefs.h. */ | |
83912faa | 5016 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
5017 | which can conflict with char rl_completion_matches (); below. |
5018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5019 | <limits.h> exists even on freestanding compilers. */ | |
5020 | #ifdef __STDC__ | |
5021 | # include <limits.h> | |
5022 | #else | |
5023 | # include <assert.h> | |
5024 | #endif | |
83912faa | 5025 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
5026 | #ifdef __cplusplus |
5027 | extern "C" | |
5028 | { | |
5029 | #endif | |
83912faa | 5030 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
5031 | builtin and then its argument prototype would still apply. */ |
5032 | char rl_completion_matches (); | |
83912faa AK |
5033 | /* The GNU C library defines this for functions which it implements |
5034 | to always fail with ENOSYS. Some functions are actually named | |
5035 | something starting with __ and the normal name is an alias. */ | |
5036 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
5037 | choke me | |
5038 | #else | |
8106cdd5 AK |
5039 | char (*f) () = rl_completion_matches; |
5040 | #endif | |
5041 | #ifdef __cplusplus | |
5042 | } | |
83912faa AK |
5043 | #endif |
5044 | ||
8106cdd5 AK |
5045 | int |
5046 | main () | |
5047 | { | |
5048 | return f != rl_completion_matches; | |
5049 | ; | |
5050 | return 0; | |
5051 | } | |
5052 | _ACEOF | |
5053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5055 | (eval $ac_link) 2>&5 | |
5056 | ac_status=$? | |
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5058 | (exit $ac_status); } && | |
5059 | { ac_try='test -s conftest$ac_exeext' | |
5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5061 | (eval $ac_try) 2>&5 | |
5062 | ac_status=$? | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); }; }; then | |
5065 | ac_cv_func_rl_completion_matches=yes | |
83912faa | 5066 | else |
8106cdd5 AK |
5067 | echo "$as_me: failed program was:" >&5 |
5068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5069 | ||
5070 | ac_cv_func_rl_completion_matches=no | |
83912faa | 5071 | fi |
8106cdd5 | 5072 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 5073 | fi |
8106cdd5 AK |
5074 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
5075 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
5076 | if test $ac_cv_func_rl_completion_matches = yes; then | |
b896caa1 | 5077 | CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES" |
83912faa AK |
5078 | fi |
5079 | ||
8106cdd5 | 5080 | |
69792976 AK |
5081 | fi |
5082 | ||
5083 | echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6 | |
5084 | # Check whether --enable-nls or --disable-nls was given. | |
5085 | if test "${enable_nls+set}" = set; then | |
5086 | enableval="$enable_nls" | |
5087 | \ | |
5088 | INTL=yes | |
5089 | else | |
5090 | INTL=no | |
8106cdd5 | 5091 | fi; |
69792976 AK |
5092 | echo "$ac_t""$INTL" 1>&6 |
5093 | ||
5094 | if test x$INTL = xyes; then | |
5095 | INTL_PACKAGE="lvm2" | |
5096 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5097 | set dummy msgfmt; ac_word=$2 | |
8106cdd5 AK |
5098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5100 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 5102 | else |
8106cdd5 AK |
5103 | case $MSGFMT in |
5104 | [\\/]* | ?:[\\/]*) | |
69792976 AK |
5105 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
5106 | ;; | |
69792976 | 5107 | *) |
8106cdd5 AK |
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5109 | for as_dir in $PATH | |
5110 | do | |
5111 | IFS=$as_save_IFS | |
5112 | test -z "$as_dir" && as_dir=. | |
5113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5114 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5115 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5117 | break 2 | |
5118 | fi | |
5119 | done | |
5120 | done | |
5121 | ||
69792976 AK |
5122 | ;; |
5123 | esac | |
5124 | fi | |
8106cdd5 AK |
5125 | MSGFMT=$ac_cv_path_MSGFMT |
5126 | ||
69792976 | 5127 | if test -n "$MSGFMT"; then |
8106cdd5 AK |
5128 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5129 | echo "${ECHO_T}$MSGFMT" >&6 | |
69792976 | 5130 | else |
8106cdd5 AK |
5131 | echo "$as_me:$LINENO: result: no" >&5 |
5132 | echo "${ECHO_T}no" >&6 | |
69792976 AK |
5133 | fi |
5134 | ||
5135 | if [ "x$MSGFMT" == x ]; | |
8106cdd5 AK |
5136 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
5137 | " >&5 | |
5138 | echo "$as_me: error: msgfmt not found in path $PATH | |
5139 | " >&2;} | |
5140 | { (exit 1); exit 1; }; } | |
5141 | exit | |
69792976 AK |
5142 | fi; |
5143 | ||
8106cdd5 AK |
5144 | |
5145 | # Check whether --with-localedir or --without-localedir was given. | |
69792976 AK |
5146 | if test "${with_localedir+set}" = set; then |
5147 | withval="$with_localedir" | |
8106cdd5 | 5148 | LOCALEDIR="$withval" |
69792976 | 5149 | else |
8106cdd5 AK |
5150 | LOCALEDIR='${prefix}/share/locale' |
5151 | fi; | |
83912faa AK |
5152 | fi |
5153 | ||
4a7f3eb2 AK |
5154 | |
5155 | # Check whether --with-confdir or --without-confdir was given. | |
5156 | if test "${with_confdir+set}" = set; then | |
5157 | withval="$with_confdir" | |
5158 | CONFDIR="$withval" | |
5159 | else | |
0a62c911 | 5160 | CONFDIR='/etc' |
4a7f3eb2 AK |
5161 | fi; |
5162 | ||
0a62c911 AK |
5163 | |
5164 | # Check whether --with-staticdir or --without-staticdir was given. | |
5165 | if test "${with_staticdir+set}" = set; then | |
5166 | withval="$with_staticdir" | |
5167 | STATICDIR="$withval" | |
5168 | else | |
5169 | STATICDIR='${exec_prefix}/sbin' | |
5170 | fi; | |
5171 | ||
5172 | ||
fae0c576 AK |
5173 | if test "-f VERSION"; then |
5174 | LVM_VERSION="\"`cat VERSION`\"" | |
5175 | else | |
5176 | LVM_VERSION="Unknown" | |
5177 | fi | |
5178 | ||
5179 | ||
83912faa | 5180 | |
795ca3e5 AK |
5181 | |
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5a52dca9 | 5187 | |
8ef2b021 | 5188 | |
199e490e | 5189 | |
69792976 AK |
5190 | |
5191 | ||
5192 | ||
5193 | ||
8106cdd5 AK |
5194 | |
5195 | ||
5196 | ||
5197 | ||
5198 | ||
d68a82ec | 5199 | |
036f273a | 5200 | |
7d1552c9 | 5201 | |
8106cdd5 | 5202 | |
0a62c911 | 5203 | |
8106cdd5 | 5204 | |
4a7f3eb2 | 5205 | |
4922197a AK |
5206 | |
5207 | ||
d8ac0fbc | 5208 | |
1a9ea74d AK |
5209 | |
5210 | ac_config_files="$ac_config_files Makefile make.tmpl doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/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" | |
8106cdd5 | 5211 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
5212 | # This file is a shell script that caches the results of configure |
5213 | # tests run on this system so they can be shared between configure | |
8106cdd5 AK |
5214 | # scripts and configure runs, see configure's option --config-cache. |
5215 | # It is not useful on other systems. If it contains results you don't | |
5216 | # want to keep, you may remove or edit it. | |
795ca3e5 | 5217 | # |
8106cdd5 AK |
5218 | # config.status only pays attention to the cache file if you give it |
5219 | # the --recheck option to rerun configure. | |
795ca3e5 | 5220 | # |
8106cdd5 AK |
5221 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5222 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5223 | # following values. | |
5224 | ||
5225 | _ACEOF | |
5226 | ||
795ca3e5 AK |
5227 | # The following way of writing the cache mishandles newlines in values, |
5228 | # but we know of no workaround that is simple, portable, and efficient. | |
5229 | # So, don't put newlines in cache variables' values. | |
5230 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5231 | # and sets the high bit in the cache file unless we assign to the vars. | |
8106cdd5 AK |
5232 | { |
5233 | (set) 2>&1 | | |
5234 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5235 | *ac_space=\ *) | |
5236 | # `set' does not quote correctly, so add quotes (double-quote | |
5237 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5238 | sed -n \ | |
5239 | "s/'/'\\\\''/g; | |
5240 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5241 | ;; | |
5242 | *) | |
5243 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5244 | sed -n \ | |
5245 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
5246 | ;; | |
5247 | esac; | |
5248 | } | | |
5249 | sed ' | |
5250 | t clear | |
5251 | : clear | |
5252 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5253 | t end | |
5254 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5255 | : end' >>confcache | |
5256 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 5257 | if test -w $cache_file; then |
8106cdd5 AK |
5258 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5259 | cat confcache >$cache_file | |
795ca3e5 AK |
5260 | else |
5261 | echo "not updating unwritable cache $cache_file" | |
5262 | fi | |
5263 | fi | |
5264 | rm -f confcache | |
5265 | ||
795ca3e5 AK |
5266 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5267 | # Let make expand exec_prefix. | |
5268 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5269 | ||
8106cdd5 AK |
5270 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
5271 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5272 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5273 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 5274 | if test "x$srcdir" = x.; then |
8106cdd5 AK |
5275 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
5276 | s/:*\$(srcdir):*/:/; | |
5277 | s/:*\${srcdir}:*/:/; | |
5278 | s/:*@srcdir@:*/:/; | |
5279 | s/^\([^=]*=[ ]*\):*/\1/; | |
5280 | s/:*$//; | |
5281 | s/^[^=]*=[ ]*$//; | |
5282 | }' | |
795ca3e5 AK |
5283 | fi |
5284 | ||
795ca3e5 AK |
5285 | # Transform confdefs.h into DEFS. |
5286 | # Protect against shell expansion while executing Makefile rules. | |
5287 | # Protect against Makefile macro expansion. | |
8106cdd5 AK |
5288 | # |
5289 | # If the first sed substitution is executed (which looks for macros that | |
5290 | # take arguments), then we branch to the quote section. Otherwise, | |
5291 | # look for a macro that doesn't take arguments. | |
5292 | cat >confdef2opt.sed <<\_ACEOF | |
5293 | t clear | |
5294 | : clear | |
5295 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
5296 | t quote | |
5297 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
5298 | t quote | |
5299 | d | |
5300 | : quote | |
5301 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
5302 | s,\[,\\&,g | |
5303 | s,\],\\&,g | |
5304 | s,\$,$$,g | |
5305 | p | |
5306 | _ACEOF | |
5307 | # We use echo to avoid assuming a particular line-breaking character. | |
5308 | # The extra dot is to prevent the shell from consuming trailing | |
5309 | # line-breaks from the sub-command output. A line-break within | |
5310 | # single-quotes doesn't work because, if this script is created in a | |
5311 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
5312 | # would break. | |
5313 | ac_LF_and_DOT=`echo; echo .` | |
5314 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
5315 | rm -f confdef2opt.sed | |
5316 | ||
5317 | ||
5318 | ac_libobjs= | |
5319 | ac_ltlibobjs= | |
5320 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5321 | # 1. Remove the extension, and $U if already installed. | |
5322 | ac_i=`echo "$ac_i" | | |
5323 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
5324 | # 2. Add them. | |
5325 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
5326 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
5327 | done | |
5328 | LIBOBJS=$ac_libobjs | |
795ca3e5 | 5329 | |
8106cdd5 AK |
5330 | LTLIBOBJS=$ac_ltlibobjs |
5331 | ||
5332 | ||
5333 | ||
5334 | : ${CONFIG_STATUS=./config.status} | |
5335 | ac_clean_files_save=$ac_clean_files | |
5336 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5337 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5338 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5339 | cat >$CONFIG_STATUS <<_ACEOF | |
5340 | #! $SHELL | |
5341 | # Generated by $as_me. | |
795ca3e5 | 5342 | # Run this file to recreate the current configuration. |
795ca3e5 | 5343 | # Compiler output produced by configure, useful for debugging |
8106cdd5 AK |
5344 | # configure, is in config.log if it exists. |
5345 | ||
5346 | debug=false | |
5347 | ac_cs_recheck=false | |
5348 | ac_cs_silent=false | |
5349 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5350 | _ACEOF | |
5351 | ||
5352 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5353 | ## --------------------- ## | |
5354 | ## M4sh Initialization. ## | |
5355 | ## --------------------- ## | |
5356 | ||
5357 | # Be Bourne compatible | |
5358 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5359 | emulate sh | |
5360 | NULLCMD=: | |
5361 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5362 | # is contrary to our usage. Disable this feature. | |
5363 | alias -g '${1+"$@"}'='"$@"' | |
5364 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
5365 | set -o posix | |
5366 | fi | |
5367 | ||
5368 | # Support unset when possible. | |
5369 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
5370 | as_unset=unset | |
5371 | else | |
5372 | as_unset=false | |
5373 | fi | |
795ca3e5 | 5374 | |
8106cdd5 AK |
5375 | |
5376 | # Work around bugs in pre-3.0 UWIN ksh. | |
5377 | $as_unset ENV MAIL MAILPATH | |
5378 | PS1='$ ' | |
5379 | PS2='> ' | |
5380 | PS4='+ ' | |
5381 | ||
5382 | # NLS nuisances. | |
5383 | for as_var in \ | |
5384 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5385 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5386 | LC_TELEPHONE LC_TIME | |
795ca3e5 | 5387 | do |
8106cdd5 AK |
5388 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5389 | eval $as_var=C; export $as_var | |
5390 | else | |
5391 | $as_unset $as_var | |
5392 | fi | |
795ca3e5 AK |
5393 | done |
5394 | ||
8106cdd5 AK |
5395 | # Required to use basename. |
5396 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5397 | as_expr=expr | |
5398 | else | |
5399 | as_expr=false | |
5400 | fi | |
795ca3e5 | 5401 | |
8106cdd5 AK |
5402 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5403 | as_basename=basename | |
5404 | else | |
5405 | as_basename=false | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | # Name of the executable. | |
5410 | as_me=`$as_basename "$0" || | |
5411 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5412 | X"$0" : 'X\(//\)$' \| \ | |
5413 | X"$0" : 'X\(/\)$' \| \ | |
5414 | . : '\(.\)' 2>/dev/null || | |
5415 | echo X/"$0" | | |
5416 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
5417 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
5418 | /^X\/\(\/\).*/{ s//\1/; q; } | |
5419 | s/.*/./; q'` | |
5420 | ||
5421 | ||
5422 | # PATH needs CR, and LINENO needs CR and PATH. | |
5423 | # Avoid depending upon Character Ranges. | |
5424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5427 | as_cr_digits='0123456789' | |
5428 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5429 | ||
5430 | # The user is always right. | |
5431 | if test "${PATH_SEPARATOR+set}" != set; then | |
5432 | echo "#! /bin/sh" >conf$$.sh | |
5433 | echo "exit 0" >>conf$$.sh | |
5434 | chmod +x conf$$.sh | |
5435 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5436 | PATH_SEPARATOR=';' | |
795ca3e5 | 5437 | else |
8106cdd5 | 5438 | PATH_SEPARATOR=: |
795ca3e5 | 5439 | fi |
8106cdd5 AK |
5440 | rm -f conf$$.sh |
5441 | fi | |
5442 | ||
5443 | ||
5444 | as_lineno_1=$LINENO | |
5445 | as_lineno_2=$LINENO | |
5446 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5447 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5448 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
5449 | # Find who we are. Look in the path if we contain no path at all | |
5450 | # relative or not. | |
5451 | case $0 in | |
5452 | *[\\/]* ) as_myself=$0 ;; | |
5453 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5454 | for as_dir in $PATH | |
5455 | do | |
5456 | IFS=$as_save_IFS | |
5457 | test -z "$as_dir" && as_dir=. | |
5458 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5459 | done | |
5460 | ||
5461 | ;; | |
5462 | esac | |
5463 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5464 | # in which case we are not to be found in the path. | |
5465 | if test "x$as_myself" = x; then | |
5466 | as_myself=$0 | |
5467 | fi | |
5468 | if test ! -f "$as_myself"; then | |
5469 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
5470 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
5471 | { (exit 1); exit 1; }; } | |
795ca3e5 | 5472 | fi |
8106cdd5 AK |
5473 | case $CONFIG_SHELL in |
5474 | '') | |
5475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5476 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5477 | do | |
5478 | IFS=$as_save_IFS | |
5479 | test -z "$as_dir" && as_dir=. | |
5480 | for as_base in sh bash ksh sh5; do | |
5481 | case $as_dir in | |
5482 | /*) | |
5483 | if ("$as_dir/$as_base" -c ' | |
5484 | as_lineno_1=$LINENO | |
5485 | as_lineno_2=$LINENO | |
5486 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5487 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5488 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
5489 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
5490 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
5491 | CONFIG_SHELL=$as_dir/$as_base | |
5492 | export CONFIG_SHELL | |
5493 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
5494 | fi;; | |
5495 | esac | |
5496 | done | |
795ca3e5 | 5497 | done |
8106cdd5 | 5498 | ;; |
795ca3e5 AK |
5499 | esac |
5500 | ||
8106cdd5 AK |
5501 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
5502 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5503 | # line-number line before each line; the second 'sed' does the real | |
5504 | # work. The second script uses 'N' to pair each line-number line | |
5505 | # with the numbered line, and appends trailing '-' during | |
5506 | # substitution so that $LINENO is not a special case at line end. | |
5507 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5508 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
5509 | sed '=' <$as_myself | | |
5510 | sed ' | |
5511 | N | |
5512 | s,$,-, | |
5513 | : loop | |
5514 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
5515 | t loop | |
5516 | s,-$,, | |
5517 | s,^['$as_cr_digits']*\n,, | |
5518 | ' >$as_me.lineno && | |
5519 | chmod +x $as_me.lineno || | |
5520 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
5521 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
5522 | { (exit 1); exit 1; }; } | |
5523 | ||
5524 | # Don't try to exec as it changes $[0], causing all sort of problems | |
5525 | # (the dirname of $[0] is not the place where we might find the | |
5526 | # original and so on. Autoconf is especially sensible to this). | |
5527 | . ./$as_me.lineno | |
5528 | # Exit status is that of the last command. | |
5529 | exit | |
5530 | } | |
5531 | ||
795ca3e5 | 5532 | |
8106cdd5 AK |
5533 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
5534 | *c*,-n*) ECHO_N= ECHO_C=' | |
5535 | ' ECHO_T=' ' ;; | |
5536 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
5537 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
5538 | esac | |
5539 | ||
5540 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5541 | as_expr=expr | |
5542 | else | |
5543 | as_expr=false | |
5544 | fi | |
5545 | ||
5546 | rm -f conf$$ conf$$.exe conf$$.file | |
5547 | echo >conf$$.file | |
5548 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5549 | # We could just check for DJGPP; but this test a) works b) is more generic | |
5550 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5551 | if test -f conf$$.exe; then | |
5552 | # Don't use ln at all; we don't have any links | |
5553 | as_ln_s='cp -p' | |
795ca3e5 | 5554 | else |
8106cdd5 | 5555 | as_ln_s='ln -s' |
795ca3e5 | 5556 | fi |
8106cdd5 AK |
5557 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5558 | as_ln_s=ln | |
5559 | else | |
5560 | as_ln_s='cp -p' | |
5561 | fi | |
5562 | rm -f conf$$ conf$$.exe conf$$.file | |
795ca3e5 | 5563 | |
8106cdd5 AK |
5564 | if mkdir -p . 2>/dev/null; then |
5565 | as_mkdir_p=: | |
5566 | else | |
5567 | as_mkdir_p=false | |
5568 | fi | |
5569 | ||
5570 | as_executable_p="test -f" | |
5571 | ||
5572 | # Sed expression to map a string onto a valid CPP name. | |
5573 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
5574 | ||
5575 | # Sed expression to map a string onto a valid variable name. | |
5576 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
5577 | ||
5578 | ||
5579 | # IFS | |
5580 | # We need space, tab and new line, in precisely that order. | |
5581 | as_nl=' | |
5582 | ' | |
5583 | IFS=" $as_nl" | |
5584 | ||
5585 | # CDPATH. | |
5586 | $as_unset CDPATH | |
5587 | ||
5588 | exec 6>&1 | |
5589 | ||
5590 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
5591 | # report actual input values of CONFIG_FILES etc. instead of their | |
5592 | # values after options handling. Logging --version etc. is OK. | |
5593 | exec 5>>config.log | |
5594 | { | |
5595 | echo | |
5596 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5597 | ## Running $as_me. ## | |
5598 | _ASBOX | |
5599 | } >&5 | |
5600 | cat >&5 <<_CSEOF | |
5601 | ||
5602 | This file was extended by $as_me, which was | |
5603 | generated by GNU Autoconf 2.57. Invocation command line was | |
5604 | ||
5605 | CONFIG_FILES = $CONFIG_FILES | |
5606 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5607 | CONFIG_LINKS = $CONFIG_LINKS | |
5608 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5609 | $ $0 $@ | |
5610 | ||
5611 | _CSEOF | |
5612 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
5613 | echo >&5 | |
5614 | _ACEOF | |
5615 | ||
5616 | # Files that config.status was made for. | |
5617 | if test -n "$ac_config_files"; then | |
5618 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
5619 | fi | |
5620 | ||
5621 | if test -n "$ac_config_headers"; then | |
5622 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
5623 | fi | |
5624 | ||
5625 | if test -n "$ac_config_links"; then | |
5626 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
5627 | fi | |
5628 | ||
5629 | if test -n "$ac_config_commands"; then | |
5630 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
5631 | fi | |
5632 | ||
5633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5634 | ||
5635 | ac_cs_usage="\ | |
5636 | \`$as_me' instantiates files from templates according to the | |
5637 | current configuration. | |
5638 | ||
5639 | Usage: $0 [OPTIONS] [FILE]... | |
5640 | ||
5641 | -h, --help print this help, then exit | |
5642 | -V, --version print version number, then exit | |
5643 | -q, --quiet do not print progress messages | |
5644 | -d, --debug don't remove temporary files | |
5645 | --recheck update $as_me by reconfiguring in the same conditions | |
5646 | --file=FILE[:TEMPLATE] | |
5647 | instantiate the configuration file FILE | |
5648 | ||
5649 | Configuration files: | |
5650 | $config_files | |
5651 | ||
5652 | Report bugs to <bug-autoconf@gnu.org>." | |
5653 | _ACEOF | |
5654 | ||
5655 | cat >>$CONFIG_STATUS <<_ACEOF | |
5656 | ac_cs_version="\\ | |
5657 | config.status | |
5658 | configured by $0, generated by GNU Autoconf 2.57, | |
5659 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
5660 | ||
5661 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
5662 | Free Software Foundation, Inc. | |
5663 | This config.status script is free software; the Free Software Foundation | |
5664 | gives unlimited permission to copy, distribute and modify it." | |
5665 | srcdir=$srcdir | |
5666 | INSTALL="$INSTALL" | |
5667 | _ACEOF | |
5668 | ||
5669 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5670 | # If no file are specified by the user, then we need to provide default | |
5671 | # value. By we need to know if files were specified by the user. | |
5672 | ac_need_defaults=: | |
5673 | while test $# != 0 | |
5674 | do | |
5675 | case $1 in | |
5676 | --*=*) | |
5677 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
5678 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
5679 | ac_shift=: | |
5680 | ;; | |
5681 | -*) | |
5682 | ac_option=$1 | |
5683 | ac_optarg=$2 | |
5684 | ac_shift=shift | |
5685 | ;; | |
5686 | *) # This is not an option, so the user has probably given explicit | |
5687 | # arguments. | |
5688 | ac_option=$1 | |
5689 | ac_need_defaults=false;; | |
5690 | esac | |
5691 | ||
5692 | case $ac_option in | |
5693 | # Handling of the options. | |
5694 | _ACEOF | |
5695 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5696 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5697 | ac_cs_recheck=: ;; | |
5698 | --version | --vers* | -V ) | |
5699 | echo "$ac_cs_version"; exit 0 ;; | |
5700 | --he | --h) | |
5701 | # Conflict between --help and --header | |
5702 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
5703 | Try \`$0 --help' for more information." >&5 | |
5704 | echo "$as_me: error: ambiguous option: $1 | |
5705 | Try \`$0 --help' for more information." >&2;} | |
5706 | { (exit 1); exit 1; }; };; | |
5707 | --help | --hel | -h ) | |
5708 | echo "$ac_cs_usage"; exit 0 ;; | |
5709 | --debug | --d* | -d ) | |
5710 | debug=: ;; | |
5711 | --file | --fil | --fi | --f ) | |
5712 | $ac_shift | |
5713 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
5714 | ac_need_defaults=false;; | |
5715 | --header | --heade | --head | --hea ) | |
5716 | $ac_shift | |
5717 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
5718 | ac_need_defaults=false;; | |
5719 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5720 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5721 | ac_cs_silent=: ;; | |
5722 | ||
5723 | # This is an error. | |
5724 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
5725 | Try \`$0 --help' for more information." >&5 | |
5726 | echo "$as_me: error: unrecognized option: $1 | |
5727 | Try \`$0 --help' for more information." >&2;} | |
5728 | { (exit 1); exit 1; }; } ;; | |
5729 | ||
5730 | *) ac_config_targets="$ac_config_targets $1" ;; | |
5731 | ||
5732 | esac | |
5733 | shift | |
5734 | done | |
5735 | ||
5736 | ac_configure_extra_args= | |
5737 | ||
5738 | if $ac_cs_silent; then | |
5739 | exec 6>/dev/null | |
5740 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5741 | fi | |
5742 | ||
5743 | _ACEOF | |
5744 | cat >>$CONFIG_STATUS <<_ACEOF | |
5745 | if \$ac_cs_recheck; then | |
5746 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
5747 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
5748 | fi | |
5749 | ||
5750 | _ACEOF | |
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5757 | for ac_config_target in $ac_config_targets | |
5758 | do | |
5759 | case "$ac_config_target" in | |
5760 | # Handling of arguments. | |
5761 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5762 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
4a7f3eb2 | 5763 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
8106cdd5 AK |
5764 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
5765 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
5766 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
d8ac0fbc | 5767 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; |
4922197a AK |
5768 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; |
5769 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
8106cdd5 AK |
5770 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
5771 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
5772 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
5773 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
1a9ea74d | 5774 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; |
8106cdd5 AK |
5775 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; |
5776 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
5777 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
5778 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
5779 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
5780 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
5781 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5782 | { (exit 1); exit 1; }; };; | |
795ca3e5 | 5783 | esac |
8106cdd5 AK |
5784 | done |
5785 | ||
5786 | # If the user did not use the arguments to specify the items to instantiate, | |
5787 | # then the envvar interface is used. Set only those that are not. | |
5788 | # We use the long form for the default assignment because of an extremely | |
5789 | # bizarre bug on SunOS 4.1.3. | |
5790 | if $ac_need_defaults; then | |
5791 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5792 | fi | |
5793 | ||
5794 | # Have a temporary directory for convenience. Make it in the build tree | |
5795 | # simply because there is no reason to put it here, and in addition, | |
5796 | # creating and moving files from /tmp can sometimes cause problems. | |
5797 | # Create a temporary directory, and hook for its removal unless debugging. | |
5798 | $debug || | |
5799 | { | |
5800 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
5801 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
5802 | } | |
5803 | ||
5804 | # Create a (secure) tmp directory for tmp files. | |
5805 | ||
5806 | { | |
5807 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
5808 | test -n "$tmp" && test -d "$tmp" | |
5809 | } || | |
5810 | { | |
5811 | tmp=./confstat$$-$RANDOM | |
5812 | (umask 077 && mkdir $tmp) | |
5813 | } || | |
5814 | { | |
5815 | echo "$me: cannot create a temporary directory in ." >&2 | |
5816 | { (exit 1); exit 1; } | |
5817 | } | |
5818 | ||
5819 | _ACEOF | |
5820 | ||
5821 | cat >>$CONFIG_STATUS <<_ACEOF | |
795ca3e5 | 5822 | |
8106cdd5 AK |
5823 | # |
5824 | # CONFIG_FILES section. | |
5825 | # | |
5826 | ||
5827 | # No need to generate the scripts if there are no CONFIG_FILES. | |
5828 | # This happens for instance when ./config.status config.h | |
5829 | if test -n "\$CONFIG_FILES"; then | |
5830 | # Protect against being on the right side of a sed subst in config.status. | |
5831 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
5832 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
5833 | s,@SHELL@,$SHELL,;t t | |
5834 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
5835 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
5836 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
5837 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
5838 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
5839 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
5840 | s,@exec_prefix@,$exec_prefix,;t t | |
5841 | s,@prefix@,$prefix,;t t | |
5842 | s,@program_transform_name@,$program_transform_name,;t t | |
5843 | s,@bindir@,$bindir,;t t | |
5844 | s,@sbindir@,$sbindir,;t t | |
5845 | s,@libexecdir@,$libexecdir,;t t | |
5846 | s,@datadir@,$datadir,;t t | |
5847 | s,@sysconfdir@,$sysconfdir,;t t | |
5848 | s,@sharedstatedir@,$sharedstatedir,;t t | |
5849 | s,@localstatedir@,$localstatedir,;t t | |
5850 | s,@libdir@,$libdir,;t t | |
5851 | s,@includedir@,$includedir,;t t | |
5852 | s,@oldincludedir@,$oldincludedir,;t t | |
5853 | s,@infodir@,$infodir,;t t | |
5854 | s,@mandir@,$mandir,;t t | |
5855 | s,@build_alias@,$build_alias,;t t | |
5856 | s,@host_alias@,$host_alias,;t t | |
5857 | s,@target_alias@,$target_alias,;t t | |
5858 | s,@DEFS@,$DEFS,;t t | |
5859 | s,@ECHO_C@,$ECHO_C,;t t | |
5860 | s,@ECHO_N@,$ECHO_N,;t t | |
5861 | s,@ECHO_T@,$ECHO_T,;t t | |
5862 | s,@LIBS@,$LIBS,;t t | |
5863 | s,@AWK@,$AWK,;t t | |
5864 | s,@CC@,$CC,;t t | |
5865 | s,@CFLAGS@,$CFLAGS,;t t | |
5866 | s,@LDFLAGS@,$LDFLAGS,;t t | |
5867 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
5868 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
5869 | s,@EXEEXT@,$EXEEXT,;t t | |
5870 | s,@OBJEXT@,$OBJEXT,;t t | |
5871 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
5872 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
5873 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
5874 | s,@LN_S@,$LN_S,;t t | |
5875 | s,@SET_MAKE@,$SET_MAKE,;t t | |
5876 | s,@RANLIB@,$RANLIB,;t t | |
5877 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
5878 | s,@CPP@,$CPP,;t t | |
5879 | s,@EGREP@,$EGREP,;t t | |
5880 | s,@build@,$build,;t t | |
5881 | s,@build_cpu@,$build_cpu,;t t | |
5882 | s,@build_vendor@,$build_vendor,;t t | |
5883 | s,@build_os@,$build_os,;t t | |
5884 | s,@host@,$host,;t t | |
5885 | s,@host_cpu@,$host_cpu,;t t | |
5886 | s,@host_vendor@,$host_vendor,;t t | |
5887 | s,@host_os@,$host_os,;t t | |
5888 | s,@target@,$target,;t t | |
5889 | s,@target_cpu@,$target_cpu,;t t | |
5890 | s,@target_vendor@,$target_vendor,;t t | |
5891 | s,@target_os@,$target_os,;t t | |
5892 | s,@MSGFMT@,$MSGFMT,;t t | |
5893 | s,@JOBS@,$JOBS,;t t | |
5894 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
5895 | s,@LVM1@,$LVM1,;t t | |
d8ac0fbc | 5896 | s,@POOL@,$POOL,;t t |
4922197a AK |
5897 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t |
5898 | s,@MIRRORS@,$MIRRORS,;t t | |
8106cdd5 AK |
5899 | s,@OWNER@,$OWNER,;t t |
5900 | s,@GROUP@,$GROUP,;t t | |
5901 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
5902 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
5903 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
5904 | s,@LD_DEPS@,$LD_DEPS,;t t | |
d68a82ec | 5905 | s,@LD_FLAGS@,$LD_FLAGS,;t t |
8106cdd5 AK |
5906 | s,@SOFLAG@,$SOFLAG,;t t |
5907 | s,@LVM_VERSION@,$LVM_VERSION,;t t | |
7d1552c9 | 5908 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t |
8106cdd5 AK |
5909 | s,@DEBUG@,$DEBUG,;t t |
5910 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
5911 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
036f273a | 5912 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t |
8106cdd5 AK |
5913 | s,@CMDLIB@,$CMDLIB,;t t |
5914 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
4a7f3eb2 | 5915 | s,@CONFDIR@,$CONFDIR,;t t |
0a62c911 | 5916 | s,@STATICDIR@,$STATICDIR,;t t |
8106cdd5 AK |
5917 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t |
5918 | s,@INTL@,$INTL,;t t | |
1a9ea74d | 5919 | s,@FSADM@,$FSADM,;t t |
8106cdd5 AK |
5920 | s,@LIBOBJS@,$LIBOBJS,;t t |
5921 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
5922 | CEOF | |
5923 | ||
5924 | _ACEOF | |
5925 | ||
5926 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5927 | # Split the substitutions into bite-sized pieces for seds with | |
5928 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5929 | ac_max_sed_lines=48 | |
5930 | ac_sed_frag=1 # Number of current file. | |
5931 | ac_beg=1 # First line for current file. | |
5932 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
5933 | ac_more_lines=: | |
5934 | ac_sed_cmds= | |
5935 | while $ac_more_lines; do | |
5936 | if test $ac_beg -gt 1; then | |
5937 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5938 | else | |
5939 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5940 | fi | |
5941 | if test ! -s $tmp/subs.frag; then | |
5942 | ac_more_lines=false | |
5943 | else | |
5944 | # The purpose of the label and of the branching condition is to | |
5945 | # speed up the sed processing (if there are no `@' at all, there | |
5946 | # is no need to browse any of the substitutions). | |
5947 | # These are the two extra sed commands mentioned above. | |
5948 | (echo ':t | |
5949 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
5950 | if test -z "$ac_sed_cmds"; then | |
5951 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
5952 | else | |
5953 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
5954 | fi | |
5955 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
5956 | ac_beg=$ac_end | |
5957 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
5958 | fi | |
5959 | done | |
5960 | if test -z "$ac_sed_cmds"; then | |
5961 | ac_sed_cmds=cat | |
5962 | fi | |
5963 | fi # test -n "$CONFIG_FILES" | |
5964 | ||
5965 | _ACEOF | |
5966 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5967 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
5968 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5969 | case $ac_file in | |
5970 | - | *:- | *:-:* ) # input from stdin | |
5971 | cat >$tmp/stdin | |
5972 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5973 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5974 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5975 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5976 | * ) ac_file_in=$ac_file.in ;; | |
795ca3e5 AK |
5977 | esac |
5978 | ||
8106cdd5 AK |
5979 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5980 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
5981 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5982 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5983 | X"$ac_file" : 'X\(//\)$' \| \ | |
5984 | X"$ac_file" : 'X\(/\)' \| \ | |
5985 | . : '\(.\)' 2>/dev/null || | |
5986 | echo X"$ac_file" | | |
5987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5988 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5989 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5990 | /^X\(\/\).*/{ s//\1/; q; } | |
5991 | s/.*/./; q'` | |
5992 | { if $as_mkdir_p; then | |
5993 | mkdir -p "$ac_dir" | |
5994 | else | |
5995 | as_dir="$ac_dir" | |
5996 | as_dirs= | |
5997 | while test ! -d "$as_dir"; do | |
5998 | as_dirs="$as_dir $as_dirs" | |
5999 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6000 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6001 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6002 | X"$as_dir" : 'X\(//\)$' \| \ | |
6003 | X"$as_dir" : 'X\(/\)' \| \ | |
6004 | . : '\(.\)' 2>/dev/null || | |
6005 | echo X"$as_dir" | | |
6006 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6007 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6008 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6009 | /^X\(\/\).*/{ s//\1/; q; } | |
6010 | s/.*/./; q'` | |
6011 | done | |
6012 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6013 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6014 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6015 | { (exit 1); exit 1; }; }; } | |
6016 | ||
6017 | ac_builddir=. | |
6018 | ||
6019 | if test "$ac_dir" != .; then | |
6020 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6021 | # A "../" for each directory in $ac_dir_suffix. | |
6022 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6023 | else | |
6024 | ac_dir_suffix= ac_top_builddir= | |
6025 | fi | |
6026 | ||
6027 | case $srcdir in | |
6028 | .) # No --srcdir option. We are building in place. | |
6029 | ac_srcdir=. | |
6030 | if test -z "$ac_top_builddir"; then | |
6031 | ac_top_srcdir=. | |
6032 | else | |
6033 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6034 | fi ;; | |
6035 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6036 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6037 | ac_top_srcdir=$srcdir ;; | |
6038 | *) # Relative path. | |
6039 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6040 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6041 | esac | |
6042 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
6043 | # absolute. | |
6044 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
6045 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
6046 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
6047 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
6048 | ||
6049 | ||
6050 | case $INSTALL in | |
6051 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6052 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
6053 | esac |
6054 | ||
8106cdd5 AK |
6055 | if test x"$ac_file" != x-; then |
6056 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6057 | echo "$as_me: creating $ac_file" >&6;} | |
6058 | rm -f "$ac_file" | |
6059 | fi | |
6060 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6061 | # use $as_me), people would be surprised to read: | |
6062 | # /* config.h. Generated by config.status. */ | |
6063 | if test x"$ac_file" = x-; then | |
6064 | configure_input= | |
6065 | else | |
6066 | configure_input="$ac_file. " | |
6067 | fi | |
6068 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
6069 | sed 's,.*/,,'` by configure." | |
6070 | ||
6071 | # First look for the input files in the build tree, otherwise in the | |
6072 | # src tree. | |
6073 | ac_file_inputs=`IFS=: | |
6074 | for f in $ac_file_in; do | |
6075 | case $f in | |
6076 | -) echo $tmp/stdin ;; | |
6077 | [\\/$]*) | |
6078 | # Absolute (can't be DOS-style, as IFS=:) | |
6079 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6080 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6081 | { (exit 1); exit 1; }; } | |
6082 | echo $f;; | |
6083 | *) # Relative | |
6084 | if test -f "$f"; then | |
6085 | # Build tree | |
6086 | echo $f | |
6087 | elif test -f "$srcdir/$f"; then | |
6088 | # Source tree | |
6089 | echo $srcdir/$f | |
6090 | else | |
6091 | # /dev/null tree | |
6092 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6093 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6094 | { (exit 1); exit 1; }; } | |
6095 | fi;; | |
6096 | esac | |
6097 | done` || { (exit 1); exit 1; } | |
6098 | _ACEOF | |
6099 | cat >>$CONFIG_STATUS <<_ACEOF | |
6100 | sed "$ac_vpsub | |
6101 | $extrasub | |
6102 | _ACEOF | |
6103 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6104 | :t | |
6105 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6106 | s,@configure_input@,$configure_input,;t t | |
6107 | s,@srcdir@,$ac_srcdir,;t t | |
6108 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
6109 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
6110 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
6111 | s,@builddir@,$ac_builddir,;t t | |
6112 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
6113 | s,@top_builddir@,$ac_top_builddir,;t t | |
6114 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
6115 | s,@INSTALL@,$ac_INSTALL,;t t | |
6116 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
6117 | rm -f $tmp/stdin | |
6118 | if test x"$ac_file" != x-; then | |
6119 | mv $tmp/out $ac_file | |
6120 | else | |
6121 | cat $tmp/out | |
6122 | rm -f $tmp/out | |
6123 | fi | |
795ca3e5 | 6124 | |
8106cdd5 AK |
6125 | done |
6126 | _ACEOF | |
795ca3e5 | 6127 | |
8106cdd5 | 6128 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 6129 | |
8106cdd5 AK |
6130 | { (exit 0); exit 0; } |
6131 | _ACEOF | |
795ca3e5 | 6132 | chmod +x $CONFIG_STATUS |
8106cdd5 AK |
6133 | ac_clean_files=$ac_clean_files_save |
6134 | ||
6135 | ||
6136 | # configure is writing to config.log, and then calls config.status. | |
6137 | # config.status does its own redirection, appending to config.log. | |
6138 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
6139 | # by configure, so config.status won't be able to write to it; its | |
6140 | # output is simply discarded. So we exec the FD to /dev/null, | |
6141 | # effectively closing config.log, so it can be properly (re)opened and | |
6142 | # appended to by config.status. When coming back to configure, we | |
6143 | # need to make the FD available again. | |
6144 | if test "$no_create" != yes; then | |
6145 | ac_cs_success=: | |
6146 | ac_config_status_args= | |
6147 | test "$silent" = yes && | |
6148 | ac_config_status_args="$ac_config_status_args --quiet" | |
6149 | exec 5>/dev/null | |
6150 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6151 | exec 5>>config.log | |
6152 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6153 | # would make configure fail if this is the last instruction. | |
6154 | $ac_cs_success || { (exit 1); exit 1; } | |
6155 | fi | |
795ca3e5 | 6156 | |
2dc95e1c AK |
6157 | |
6158 | if test x$ODIRECT != xyes; then | |
6159 | echo | |
6160 | echo Warning: O_DIRECT disabled. | |
6161 | echo Use of pvmove may cause machine to lock up under low memory conditions. | |
6162 | echo | |
6163 | fi | |
809fae91 AK |
6164 | |
6165 | if test x$FSADM == xyes; then | |
6166 | echo | |
6167 | echo Warning: fsadm support is untested. | |
6168 | echo | |
6169 | fi |