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