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