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