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