]>
Commit | Line | Data |
---|---|---|
1227625a | 1 | #! /bin/sh |
1227625a | 2 | # Guess values for system-dependent variables and create Makefiles. |
572eed31 | 3 | # Generated by GNU Autoconf 2.63. |
1227625a | 4 | # |
7f7d329e | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
572eed31 | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 | ||
d2816d4c SP |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
1daf06b9 SP |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
572eed31 | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
cdfe1392 SP |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
21 | setopt NO_GLOB_SUBST |
22 | else | |
d2816d4c SP |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
1daf06b9 | 27 | fi |
d2816d4c SP |
28 | |
29 | ||
1daf06b9 | 30 | |
7f7d329e SP |
31 | |
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
572eed31 SP |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
7f7d329e | 54 | else |
572eed31 SP |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7f7d329e | 67 | fi |
572eed31 SP |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
7f7d329e SP |
79 | fi |
80 | ||
1daf06b9 | 81 | # Support unset when possible. |
c9e4e868 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
cdfe1392 | 88 | |
7f7d329e SP |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7f7d329e SP |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
572eed31 | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7f7d329e SP |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
cdfe1392 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
cdfe1392 SP |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
572eed31 SP |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
cdfe1392 SP |
133 | |
134 | # Required to use basename. | |
7f7d329e SP |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7f7d329e | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
1daf06b9 SP |
147 | |
148 | ||
149 | # Name of the executable. | |
7f7d329e | 150 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
572eed31 | 154 | $as_echo X/"$0" | |
7f7d329e SP |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
1daf06b9 | 168 | |
7f7d329e SP |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
cdfe1392 | 171 | |
1daf06b9 | 172 | |
7f7d329e SP |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
1daf06b9 SP |
178 | fi |
179 | ||
572eed31 | 180 | if test $as_have_required = yes && (eval ": |
7f7d329e SP |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
1daf06b9 | 196 | |
7f7d329e SP |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
1daf06b9 | 204 | |
7f7d329e SP |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
1daf06b9 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
d2816d4c | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1daf06b9 SP |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7f7d329e | 245 | case $as_dir in |
1daf06b9 | 246 | /*) |
7f7d329e SP |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
7f7d329e SP |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
260 | emulate sh | |
261 | NULLCMD=: | |
572eed31 | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7f7d329e SP |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
d2816d4c SP |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7f7d329e | 271 | fi |
d2816d4c | 272 | |
7f7d329e SP |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
7f7d329e SP |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
281 | emulate sh | |
282 | NULLCMD=: | |
572eed31 | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7f7d329e SP |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
d2816d4c SP |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7f7d329e | 292 | fi |
d2816d4c | 293 | |
7f7d329e SP |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
1daf06b9 SP |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
1daf06b9 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e SP |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
572eed31 SP |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7f7d329e SP |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
572eed31 SP |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7f7d329e SP |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
1daf06b9 SP |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
1daf06b9 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
1daf06b9 | 462 | sed ' |
7f7d329e SP |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
1daf06b9 | 467 | N |
7f7d329e SP |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 470 | t loop |
7f7d329e | 471 | s/-\n.*// |
1daf06b9 | 472 | ' >$as_me.lineno && |
7f7d329e | 473 | chmod +x "$as_me.lineno" || |
572eed31 | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
1daf06b9 SP |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
1daf06b9 SP |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
484 | ||
485 | ||
7f7d329e SP |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
1daf06b9 | 501 | esac |
7f7d329e SP |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
572eed31 SP |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
1daf06b9 | 528 | as_ln_s='cp -p' |
572eed31 | 529 | fi |
1daf06b9 SP |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7f7d329e SP |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 535 | |
cdfe1392 SP |
536 | if mkdir -p . 2>/dev/null; then |
537 | as_mkdir_p=: | |
538 | else | |
c9e4e868 | 539 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
d2816d4c SP |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7f7d329e | 545 | else |
d2816d4c SP |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
572eed31 | 554 | test -d "$1/."; |
d2816d4c SP |
555 | else |
556 | case $1 in | |
572eed31 | 557 | -*)set "./$1";; |
d2816d4c SP |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7f7d329e | 563 | fi |
d2816d4c | 564 | as_executable_p=$as_test_x |
1daf06b9 SP |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
571 | |
572 | ||
1daf06b9 | 573 | |
7f7d329e | 574 | exec 7<&0 </dev/null 6>&1 |
1daf06b9 SP |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
1daf06b9 SP |
581 | # |
582 | # Initializations. | |
583 | # | |
1227625a | 584 | ac_default_prefix=/usr/local |
7f7d329e | 585 | ac_clean_files= |
cdfe1392 | 586 | ac_config_libobj_dir=. |
7f7d329e | 587 | LIBOBJS= |
1daf06b9 SP |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
1daf06b9 SP |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="dump/dump.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
d2816d4c | 605 | #ifdef HAVE_SYS_TYPES_H |
1daf06b9 SP |
606 | # include <sys/types.h> |
607 | #endif | |
d2816d4c | 608 | #ifdef HAVE_SYS_STAT_H |
1daf06b9 SP |
609 | # include <sys/stat.h> |
610 | #endif | |
d2816d4c | 611 | #ifdef STDC_HEADERS |
1daf06b9 SP |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
d2816d4c | 615 | # ifdef HAVE_STDLIB_H |
1daf06b9 SP |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
d2816d4c SP |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
1daf06b9 SP |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
d2816d4c | 625 | #ifdef HAVE_STRINGS_H |
1daf06b9 SP |
626 | # include <strings.h> |
627 | #endif | |
d2816d4c | 628 | #ifdef HAVE_INTTYPES_H |
1daf06b9 | 629 | # include <inttypes.h> |
7f7d329e | 630 | #endif |
d2816d4c | 631 | #ifdef HAVE_STDINT_H |
7f7d329e | 632 | # include <stdint.h> |
1daf06b9 | 633 | #endif |
d2816d4c | 634 | #ifdef HAVE_UNISTD_H |
1daf06b9 SP |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
572eed31 | 638 | ac_subst_vars='LTLIBOBJS |
7f7d329e | 639 | LIBOBJS |
572eed31 SP |
640 | top_builddir |
641 | BZLIB | |
642 | ZLIB | |
643 | READLINE | |
644 | BLKID | |
645 | DUMPDATESPATH | |
646 | MANMODE | |
647 | MANGRP | |
648 | MANOWNER | |
649 | BINMODE | |
650 | BINGRP | |
651 | BINOWNER | |
652 | LDOPTS | |
653 | CCOPTS | |
654 | LD | |
655 | CCTRANSSELINUX | |
656 | LTRANSSELINUX | |
657 | OPTDEFS | |
658 | CRYPTO | |
659 | ERMT | |
660 | RMTDIR | |
661 | STATIC | |
662 | RESTOREDEBUG | |
663 | DUMPDEBUG | |
664 | EGREP | |
665 | GREP | |
666 | CPP | |
667 | INSTALL_DATA | |
668 | INSTALL_SCRIPT | |
669 | INSTALL_PROGRAM | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
677 | PATCH | |
678 | RANLIB | |
679 | AR | |
680 | RM | |
681 | MV | |
682 | CP | |
683 | LN_S | |
684 | SET_MAKE | |
685 | target_alias | |
686 | host_alias | |
687 | build_alias | |
688 | LIBS | |
689 | ECHO_T | |
690 | ECHO_N | |
691 | ECHO_C | |
692 | DEFS | |
693 | mandir | |
694 | localedir | |
695 | libdir | |
696 | psdir | |
697 | pdfdir | |
698 | dvidir | |
699 | htmldir | |
700 | infodir | |
701 | docdir | |
702 | oldincludedir | |
703 | includedir | |
704 | localstatedir | |
705 | sharedstatedir | |
706 | sysconfdir | |
707 | datadir | |
708 | datarootdir | |
709 | libexecdir | |
710 | sbindir | |
711 | bindir | |
712 | program_transform_name | |
713 | prefix | |
714 | exec_prefix | |
715 | PACKAGE_BUGREPORT | |
716 | PACKAGE_STRING | |
717 | PACKAGE_VERSION | |
718 | PACKAGE_TARNAME | |
719 | PACKAGE_NAME | |
720 | PATH_SEPARATOR | |
721 | SHELL' | |
cdfe1392 | 722 | ac_subst_files='MCONFIG' |
572eed31 SP |
723 | ac_user_opts=' |
724 | enable_option_checking | |
725 | enable_debug | |
726 | enable_static | |
727 | enable_staticz | |
728 | enable_rmt | |
729 | enable_ermt | |
730 | enable_kerberos | |
731 | enable_readline | |
732 | enable_oldstylefscript | |
733 | enable_largefile | |
734 | enable_qfa | |
735 | enable_qfadebug | |
736 | enable_macosx | |
737 | enable_transselinux | |
738 | with_cc | |
739 | with_linker | |
740 | with_ccopts | |
741 | with_ldopts | |
742 | with_binowner | |
743 | with_bingrp | |
744 | with_binmode | |
745 | with_manowner | |
746 | with_mangrp | |
747 | with_manmode | |
748 | with_dumpdatespath | |
749 | ' | |
7f7d329e SP |
750 | ac_precious_vars='build_alias |
751 | host_alias | |
752 | target_alias | |
753 | CC | |
754 | CFLAGS | |
755 | LDFLAGS | |
d2816d4c | 756 | LIBS |
7f7d329e SP |
757 | CPPFLAGS |
758 | CPP' | |
759 | ||
1227625a SP |
760 | |
761 | # Initialize some variables set by options. | |
1daf06b9 SP |
762 | ac_init_help= |
763 | ac_init_version=false | |
572eed31 SP |
764 | ac_unrecognized_opts= |
765 | ac_unrecognized_sep= | |
1227625a SP |
766 | # The variables have the same names as the options, with |
767 | # dashes changed to underlines. | |
1daf06b9 | 768 | cache_file=/dev/null |
1227625a | 769 | exec_prefix=NONE |
1227625a | 770 | no_create= |
1227625a SP |
771 | no_recursion= |
772 | prefix=NONE | |
773 | program_prefix=NONE | |
774 | program_suffix=NONE | |
775 | program_transform_name=s,x,x, | |
776 | silent= | |
777 | site= | |
778 | srcdir= | |
1227625a SP |
779 | verbose= |
780 | x_includes=NONE | |
781 | x_libraries=NONE | |
1daf06b9 SP |
782 | |
783 | # Installation directory options. | |
784 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
785 | # and all the variables that are supposed to be based on exec_prefix | |
786 | # by default will actually change. | |
787 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7f7d329e | 788 | # (The list follows the same order as the GNU Coding Standards.) |
1227625a SP |
789 | bindir='${exec_prefix}/bin' |
790 | sbindir='${exec_prefix}/sbin' | |
791 | libexecdir='${exec_prefix}/libexec' | |
7f7d329e SP |
792 | datarootdir='${prefix}/share' |
793 | datadir='${datarootdir}' | |
1227625a SP |
794 | sysconfdir='${prefix}/etc' |
795 | sharedstatedir='${prefix}/com' | |
796 | localstatedir='${prefix}/var' | |
1227625a SP |
797 | includedir='${prefix}/include' |
798 | oldincludedir='/usr/include' | |
7f7d329e SP |
799 | docdir='${datarootdir}/doc/${PACKAGE}' |
800 | infodir='${datarootdir}/info' | |
801 | htmldir='${docdir}' | |
802 | dvidir='${docdir}' | |
803 | pdfdir='${docdir}' | |
804 | psdir='${docdir}' | |
805 | libdir='${exec_prefix}/lib' | |
806 | localedir='${datarootdir}/locale' | |
807 | mandir='${datarootdir}/man' | |
1227625a | 808 | |
1227625a | 809 | ac_prev= |
7f7d329e | 810 | ac_dashdash= |
1227625a SP |
811 | for ac_option |
812 | do | |
1227625a SP |
813 | # If the previous option needs an argument, assign it. |
814 | if test -n "$ac_prev"; then | |
7f7d329e | 815 | eval $ac_prev=\$ac_option |
1227625a SP |
816 | ac_prev= |
817 | continue | |
818 | fi | |
819 | ||
7f7d329e SP |
820 | case $ac_option in |
821 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
822 | *) ac_optarg=yes ;; | |
823 | esac | |
1227625a SP |
824 | |
825 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
826 | ||
7f7d329e SP |
827 | case $ac_dashdash$ac_option in |
828 | --) | |
829 | ac_dashdash=yes ;; | |
1227625a SP |
830 | |
831 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
832 | ac_prev=bindir ;; | |
833 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1daf06b9 | 834 | bindir=$ac_optarg ;; |
1227625a SP |
835 | |
836 | -build | --build | --buil | --bui | --bu) | |
1daf06b9 | 837 | ac_prev=build_alias ;; |
1227625a | 838 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1daf06b9 | 839 | build_alias=$ac_optarg ;; |
1227625a SP |
840 | |
841 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
842 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
843 | ac_prev=cache_file ;; | |
844 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
845 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1daf06b9 SP |
846 | cache_file=$ac_optarg ;; |
847 | ||
848 | --config-cache | -C) | |
849 | cache_file=config.cache ;; | |
1227625a | 850 | |
7f7d329e | 851 | -datadir | --datadir | --datadi | --datad) |
1227625a | 852 | ac_prev=datadir ;; |
7f7d329e | 853 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1daf06b9 | 854 | datadir=$ac_optarg ;; |
1227625a | 855 | |
7f7d329e SP |
856 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
857 | | --dataroo | --dataro | --datar) | |
858 | ac_prev=datarootdir ;; | |
859 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
860 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
861 | datarootdir=$ac_optarg ;; | |
862 | ||
1227625a | 863 | -disable-* | --disable-*) |
572eed31 | 864 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1227625a | 865 | # Reject names that are not valid shell variable names. |
572eed31 SP |
866 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
867 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1daf06b9 | 868 | { (exit 1); exit 1; }; } |
572eed31 SP |
869 | ac_useropt_orig=$ac_useropt |
870 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
871 | case $ac_user_opts in | |
872 | *" | |
873 | "enable_$ac_useropt" | |
874 | "*) ;; | |
875 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
876 | ac_unrecognized_sep=', ';; | |
877 | esac | |
878 | eval enable_$ac_useropt=no ;; | |
7f7d329e SP |
879 | |
880 | -docdir | --docdir | --docdi | --doc | --do) | |
881 | ac_prev=docdir ;; | |
882 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
883 | docdir=$ac_optarg ;; | |
884 | ||
885 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
886 | ac_prev=dvidir ;; | |
887 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
888 | dvidir=$ac_optarg ;; | |
1227625a SP |
889 | |
890 | -enable-* | --enable-*) | |
572eed31 | 891 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1227625a | 892 | # Reject names that are not valid shell variable names. |
572eed31 SP |
893 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
894 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1daf06b9 | 895 | { (exit 1); exit 1; }; } |
572eed31 SP |
896 | ac_useropt_orig=$ac_useropt |
897 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
898 | case $ac_user_opts in | |
899 | *" | |
900 | "enable_$ac_useropt" | |
901 | "*) ;; | |
902 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
903 | ac_unrecognized_sep=', ';; | |
904 | esac | |
905 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1227625a SP |
906 | |
907 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
908 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
909 | | --exec | --exe | --ex) | |
910 | ac_prev=exec_prefix ;; | |
911 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
912 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
913 | | --exec=* | --exe=* | --ex=*) | |
1daf06b9 | 914 | exec_prefix=$ac_optarg ;; |
1227625a SP |
915 | |
916 | -gas | --gas | --ga | --g) | |
917 | # Obsolete; use --with-gas. | |
918 | with_gas=yes ;; | |
919 | ||
1daf06b9 SP |
920 | -help | --help | --hel | --he | -h) |
921 | ac_init_help=long ;; | |
922 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
923 | ac_init_help=recursive ;; | |
924 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
925 | ac_init_help=short ;; | |
1227625a SP |
926 | |
927 | -host | --host | --hos | --ho) | |
1daf06b9 | 928 | ac_prev=host_alias ;; |
1227625a | 929 | -host=* | --host=* | --hos=* | --ho=*) |
1daf06b9 | 930 | host_alias=$ac_optarg ;; |
1227625a | 931 | |
7f7d329e SP |
932 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
933 | ac_prev=htmldir ;; | |
934 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
935 | | --ht=*) | |
936 | htmldir=$ac_optarg ;; | |
937 | ||
1227625a SP |
938 | -includedir | --includedir | --includedi | --included | --include \ |
939 | | --includ | --inclu | --incl | --inc) | |
940 | ac_prev=includedir ;; | |
941 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
942 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1daf06b9 | 943 | includedir=$ac_optarg ;; |
1227625a SP |
944 | |
945 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
946 | ac_prev=infodir ;; | |
947 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1daf06b9 | 948 | infodir=$ac_optarg ;; |
1227625a SP |
949 | |
950 | -libdir | --libdir | --libdi | --libd) | |
951 | ac_prev=libdir ;; | |
952 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1daf06b9 | 953 | libdir=$ac_optarg ;; |
1227625a SP |
954 | |
955 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
956 | | --libexe | --libex | --libe) | |
957 | ac_prev=libexecdir ;; | |
958 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
959 | | --libexe=* | --libex=* | --libe=*) | |
1daf06b9 | 960 | libexecdir=$ac_optarg ;; |
1227625a | 961 | |
7f7d329e SP |
962 | -localedir | --localedir | --localedi | --localed | --locale) |
963 | ac_prev=localedir ;; | |
964 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
965 | localedir=$ac_optarg ;; | |
966 | ||
1227625a | 967 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7f7d329e | 968 | | --localstate | --localstat | --localsta | --localst | --locals) |
1227625a SP |
969 | ac_prev=localstatedir ;; |
970 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7f7d329e | 971 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1daf06b9 | 972 | localstatedir=$ac_optarg ;; |
1227625a SP |
973 | |
974 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
975 | ac_prev=mandir ;; | |
976 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1daf06b9 | 977 | mandir=$ac_optarg ;; |
1227625a SP |
978 | |
979 | -nfp | --nfp | --nf) | |
980 | # Obsolete; use --without-fp. | |
981 | with_fp=no ;; | |
982 | ||
983 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1daf06b9 | 984 | | --no-cr | --no-c | -n) |
1227625a SP |
985 | no_create=yes ;; |
986 | ||
987 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
988 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
989 | no_recursion=yes ;; | |
990 | ||
991 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
992 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
993 | | --oldin | --oldi | --old | --ol | --o) | |
994 | ac_prev=oldincludedir ;; | |
995 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
996 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
997 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1daf06b9 | 998 | oldincludedir=$ac_optarg ;; |
1227625a SP |
999 | |
1000 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1001 | ac_prev=prefix ;; | |
1002 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1daf06b9 | 1003 | prefix=$ac_optarg ;; |
1227625a SP |
1004 | |
1005 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1006 | | --program-pre | --program-pr | --program-p) | |
1007 | ac_prev=program_prefix ;; | |
1008 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1009 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1daf06b9 | 1010 | program_prefix=$ac_optarg ;; |
1227625a SP |
1011 | |
1012 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1013 | | --program-suf | --program-su | --program-s) | |
1014 | ac_prev=program_suffix ;; | |
1015 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1016 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1daf06b9 | 1017 | program_suffix=$ac_optarg ;; |
1227625a SP |
1018 | |
1019 | -program-transform-name | --program-transform-name \ | |
1020 | | --program-transform-nam | --program-transform-na \ | |
1021 | | --program-transform-n | --program-transform- \ | |
1022 | | --program-transform | --program-transfor \ | |
1023 | | --program-transfo | --program-transf \ | |
1024 | | --program-trans | --program-tran \ | |
1025 | | --progr-tra | --program-tr | --program-t) | |
1026 | ac_prev=program_transform_name ;; | |
1027 | -program-transform-name=* | --program-transform-name=* \ | |
1028 | | --program-transform-nam=* | --program-transform-na=* \ | |
1029 | | --program-transform-n=* | --program-transform-=* \ | |
1030 | | --program-transform=* | --program-transfor=* \ | |
1031 | | --program-transfo=* | --program-transf=* \ | |
1032 | | --program-trans=* | --program-tran=* \ | |
1033 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1daf06b9 | 1034 | program_transform_name=$ac_optarg ;; |
1227625a | 1035 | |
7f7d329e SP |
1036 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1037 | ac_prev=pdfdir ;; | |
1038 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1039 | pdfdir=$ac_optarg ;; | |
1040 | ||
1041 | -psdir | --psdir | --psdi | --psd | --ps) | |
1042 | ac_prev=psdir ;; | |
1043 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1044 | psdir=$ac_optarg ;; | |
1045 | ||
1227625a SP |
1046 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1047 | | -silent | --silent | --silen | --sile | --sil) | |
1048 | silent=yes ;; | |
1049 | ||
1050 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1051 | ac_prev=sbindir ;; | |
1052 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1053 | | --sbi=* | --sb=*) | |
1daf06b9 | 1054 | sbindir=$ac_optarg ;; |
1227625a SP |
1055 | |
1056 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1057 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1058 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1059 | | --sha | --sh) | |
1060 | ac_prev=sharedstatedir ;; | |
1061 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1062 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1063 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1064 | | --sha=* | --sh=*) | |
1daf06b9 | 1065 | sharedstatedir=$ac_optarg ;; |
1227625a SP |
1066 | |
1067 | -site | --site | --sit) | |
1068 | ac_prev=site ;; | |
1069 | -site=* | --site=* | --sit=*) | |
1daf06b9 | 1070 | site=$ac_optarg ;; |
1227625a SP |
1071 | |
1072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1073 | ac_prev=srcdir ;; | |
1074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1daf06b9 | 1075 | srcdir=$ac_optarg ;; |
1227625a SP |
1076 | |
1077 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1078 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1079 | ac_prev=sysconfdir ;; | |
1080 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1081 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1daf06b9 | 1082 | sysconfdir=$ac_optarg ;; |
1227625a SP |
1083 | |
1084 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1daf06b9 | 1085 | ac_prev=target_alias ;; |
1227625a | 1086 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1daf06b9 | 1087 | target_alias=$ac_optarg ;; |
1227625a SP |
1088 | |
1089 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1090 | verbose=yes ;; | |
1091 | ||
1daf06b9 SP |
1092 | -version | --version | --versio | --versi | --vers | -V) |
1093 | ac_init_version=: ;; | |
1227625a SP |
1094 | |
1095 | -with-* | --with-*) | |
572eed31 | 1096 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1227625a | 1097 | # Reject names that are not valid shell variable names. |
572eed31 SP |
1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1099 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1daf06b9 | 1100 | { (exit 1); exit 1; }; } |
572eed31 SP |
1101 | ac_useropt_orig=$ac_useropt |
1102 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1103 | case $ac_user_opts in | |
1104 | *" | |
1105 | "with_$ac_useropt" | |
1106 | "*) ;; | |
1107 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1108 | ac_unrecognized_sep=', ';; | |
1109 | esac | |
1110 | eval with_$ac_useropt=\$ac_optarg ;; | |
1227625a SP |
1111 | |
1112 | -without-* | --without-*) | |
572eed31 | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1227625a | 1114 | # Reject names that are not valid shell variable names. |
572eed31 SP |
1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1116 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1daf06b9 | 1117 | { (exit 1); exit 1; }; } |
572eed31 SP |
1118 | ac_useropt_orig=$ac_useropt |
1119 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1120 | case $ac_user_opts in | |
1121 | *" | |
1122 | "with_$ac_useropt" | |
1123 | "*) ;; | |
1124 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1125 | ac_unrecognized_sep=', ';; | |
1126 | esac | |
1127 | eval with_$ac_useropt=no ;; | |
1227625a SP |
1128 | |
1129 | --x) | |
1130 | # Obsolete; use --with-x. | |
1131 | with_x=yes ;; | |
1132 | ||
1133 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1134 | | --x-incl | --x-inc | --x-in | --x-i) | |
1135 | ac_prev=x_includes ;; | |
1136 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1137 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1daf06b9 | 1138 | x_includes=$ac_optarg ;; |
1227625a SP |
1139 | |
1140 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1141 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1142 | ac_prev=x_libraries ;; | |
1143 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1144 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1daf06b9 | 1145 | x_libraries=$ac_optarg ;; |
1227625a | 1146 | |
572eed31 | 1147 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
1daf06b9 SP |
1148 | Try \`$0 --help' for more information." >&2 |
1149 | { (exit 1); exit 1; }; } | |
1227625a SP |
1150 | ;; |
1151 | ||
1daf06b9 SP |
1152 | *=*) |
1153 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1154 | # Reject names that are not valid shell variable names. | |
1155 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
572eed31 | 1156 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1daf06b9 | 1157 | { (exit 1); exit 1; }; } |
7f7d329e | 1158 | eval $ac_envvar=\$ac_optarg |
1daf06b9 SP |
1159 | export $ac_envvar ;; |
1160 | ||
1227625a | 1161 | *) |
1daf06b9 | 1162 | # FIXME: should be removed in autoconf 3.0. |
572eed31 | 1163 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1daf06b9 | 1164 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
572eed31 | 1165 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1daf06b9 | 1166 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1227625a SP |
1167 | ;; |
1168 | ||
1169 | esac | |
1170 | done | |
1171 | ||
1172 | if test -n "$ac_prev"; then | |
1daf06b9 | 1173 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
572eed31 | 1174 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
1daf06b9 | 1175 | { (exit 1); exit 1; }; } |
1227625a | 1176 | fi |
1227625a | 1177 | |
572eed31 SP |
1178 | if test -n "$ac_unrecognized_opts"; then |
1179 | case $enable_option_checking in | |
1180 | no) ;; | |
1181 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1182 | { (exit 1); exit 1; }; } ;; | |
1183 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1184 | esac | |
1185 | fi | |
1186 | ||
1187 | # Check all directory arguments for consistency. | |
7f7d329e SP |
1188 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1189 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1190 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1191 | libdir localedir mandir | |
1227625a | 1192 | do |
7f7d329e | 1193 | eval ac_val=\$$ac_var |
572eed31 SP |
1194 | # Remove trailing slashes. |
1195 | case $ac_val in | |
1196 | */ ) | |
1197 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1198 | eval $ac_var=\$ac_val;; | |
1199 | esac | |
1200 | # Be sure to have absolute directory names. | |
1daf06b9 | 1201 | case $ac_val in |
7f7d329e SP |
1202 | [\\/$]* | ?:[\\/]* ) continue;; |
1203 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1227625a | 1204 | esac |
572eed31 | 1205 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7f7d329e | 1206 | { (exit 1); exit 1; }; } |
1227625a SP |
1207 | done |
1208 | ||
1daf06b9 SP |
1209 | # There might be people who depend on the old broken behavior: `$host' |
1210 | # used to hold the argument of --host etc. | |
1211 | # FIXME: To remove some day. | |
1212 | build=$build_alias | |
1213 | host=$host_alias | |
1214 | target=$target_alias | |
1215 | ||
1216 | # FIXME: To remove some day. | |
1217 | if test "x$host_alias" != x; then | |
1218 | if test "x$build_alias" = x; then | |
1219 | cross_compiling=maybe | |
572eed31 | 1220 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1daf06b9 SP |
1221 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1222 | elif test "x$build_alias" != "x$host_alias"; then | |
1223 | cross_compiling=yes | |
1224 | fi | |
1225 | fi | |
1227625a | 1226 | |
1daf06b9 SP |
1227 | ac_tool_prefix= |
1228 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1229 | ||
1230 | test "$silent" = yes && exec 6>/dev/null | |
1227625a | 1231 | |
1227625a | 1232 | |
7f7d329e SP |
1233 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1234 | ac_ls_di=`ls -di .` && | |
1235 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
572eed31 | 1236 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7f7d329e SP |
1237 | { (exit 1); exit 1; }; } |
1238 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
572eed31 | 1239 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7f7d329e SP |
1240 | { (exit 1); exit 1; }; } |
1241 | ||
1242 | ||
1227625a SP |
1243 | # Find the source files, if location was not specified. |
1244 | if test -z "$srcdir"; then | |
1245 | ac_srcdir_defaulted=yes | |
7f7d329e | 1246 | # Try the directory containing this script, then the parent directory. |
572eed31 SP |
1247 | ac_confdir=`$as_dirname -- "$as_myself" || |
1248 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1249 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1250 | X"$as_myself" : 'X\(//\)$' \| \ | |
1251 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1252 | $as_echo X"$as_myself" | | |
7f7d329e SP |
1253 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1254 | s//\1/ | |
1255 | q | |
1256 | } | |
1257 | /^X\(\/\/\)[^/].*/{ | |
1258 | s//\1/ | |
1259 | q | |
1260 | } | |
1261 | /^X\(\/\/\)$/{ | |
1262 | s//\1/ | |
1263 | q | |
1264 | } | |
1265 | /^X\(\/\).*/{ | |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | s/.*/./; q'` | |
1227625a | 1270 | srcdir=$ac_confdir |
7f7d329e | 1271 | if test ! -r "$srcdir/$ac_unique_file"; then |
1227625a SP |
1272 | srcdir=.. |
1273 | fi | |
1274 | else | |
1275 | ac_srcdir_defaulted=no | |
1276 | fi | |
7f7d329e SP |
1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
1278 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
572eed31 | 1279 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1daf06b9 | 1280 | { (exit 1); exit 1; }; } |
1227625a | 1281 | fi |
7f7d329e SP |
1282 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1283 | ac_abs_confdir=`( | |
572eed31 | 1284 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
cdfe1392 | 1285 | { (exit 1); exit 1; }; } |
7f7d329e SP |
1286 | pwd)` |
1287 | # When building in place, set srcdir=. | |
1288 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1289 | srcdir=. | |
1290 | fi | |
1291 | # Remove unnecessary trailing slashes from srcdir. | |
1292 | # Double slashes in file names in object file debugging info | |
1293 | # mess up M-x gdb in Emacs. | |
1294 | case $srcdir in | |
1295 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1296 | esac | |
1297 | for ac_var in $ac_precious_vars; do | |
1298 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1299 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1300 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1301 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1302 | done | |
1daf06b9 SP |
1303 | |
1304 | # | |
1305 | # Report the --help message. | |
1306 | # | |
1307 | if test "$ac_init_help" = "long"; then | |
1308 | # Omit some internal or obsolete options to make the list less imposing. | |
1309 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1310 | cat <<_ACEOF | |
1311 | \`configure' configures this package to adapt to many kinds of systems. | |
1312 | ||
1313 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1314 | ||
1315 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1316 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1317 | ||
1318 | Defaults for the options are specified in brackets. | |
1319 | ||
1320 | Configuration: | |
1321 | -h, --help display this help and exit | |
1322 | --help=short display options specific to this package | |
1323 | --help=recursive display the short help of all the included packages | |
1324 | -V, --version display version information and exit | |
1325 | -q, --quiet, --silent do not print \`checking...' messages | |
1326 | --cache-file=FILE cache test results in FILE [disabled] | |
1327 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1328 | -n, --no-create do not create output files | |
1329 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1330 | ||
1daf06b9 SP |
1331 | Installation directories: |
1332 | --prefix=PREFIX install architecture-independent files in PREFIX | |
572eed31 | 1333 | [$ac_default_prefix] |
1daf06b9 | 1334 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
572eed31 | 1335 | [PREFIX] |
1daf06b9 SP |
1336 | |
1337 | By default, \`make install' will install all the files in | |
1338 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1339 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1340 | for instance \`--prefix=\$HOME'. | |
1341 | ||
1342 | For better control, use the options below. | |
1343 | ||
1344 | Fine tuning of the installation directories: | |
572eed31 SP |
1345 | --bindir=DIR user executables [EPREFIX/bin] |
1346 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1347 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1348 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1349 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1350 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1351 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1352 | --includedir=DIR C header files [PREFIX/include] | |
1353 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1354 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1355 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1356 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1357 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1358 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1359 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1360 | --htmldir=DIR html documentation [DOCDIR] | |
1361 | --dvidir=DIR dvi documentation [DOCDIR] | |
1362 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1363 | --psdir=DIR ps documentation [DOCDIR] | |
1daf06b9 SP |
1364 | _ACEOF |
1365 | ||
1366 | cat <<\_ACEOF | |
1367 | _ACEOF | |
1368 | fi | |
1369 | ||
1370 | if test -n "$ac_init_help"; then | |
1371 | ||
1372 | cat <<\_ACEOF | |
1373 | ||
1374 | Optional Features: | |
572eed31 | 1375 | --disable-option-checking ignore unrecognized --enable/--with options |
1daf06b9 SP |
1376 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1377 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1378 | --enable-debug include debugging code (default is NO) | |
1379 | --enable-static link dump and restore statically (default is NO) | |
d7783603 | 1380 | --enable-staticz link libz and libbz2 statically (default is NO) |
1daf06b9 | 1381 | --enable-rmt compile and install rmt (default is YES) |
cdfe1392 | 1382 | --enable-ermt compile ermt, an encrypting version of rmt (default is NO) |
1daf06b9 SP |
1383 | --enable-kerberos compile kerberos extensions (default is NO) |
1384 | --enable-readline enable readline support in restore (default is YES) | |
1385 | --enable-oldstylefscript enable old style F script (no arguments) (default is NO) | |
1386 | --enable-largefile enable Large File System support (default is YES) | |
1387 | --enable-qfa enable Quick File Access support (default is YES) | |
1388 | --enable-qfadebug include Quick File Access debugging code (default is NO) | |
d1925e0c | 1389 | --enable-macosx include Mac OSX restore compatibility (default is NO) |
7f7d329e | 1390 | --enable-transselinux restore can translate SELinux EAs (default is YES) |
1daf06b9 SP |
1391 | |
1392 | Optional Packages: | |
1393 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1394 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1395 | --with-cc=COMPILER select compiler to use | |
1396 | --with-linker=LINKER select linker to use | |
1397 | --with-ccopts=CCOPTS select compiler command line options | |
1398 | --with-ldopts=LDOPTS select linker command line options | |
1399 | --with-binowner=USER select owner for binaries | |
1400 | --with-bingrp=GROUP select group for binaries | |
1401 | --with-binmode=MODE select mode for binaries | |
1402 | --with-manowner=USER select owner for manual pages | |
1403 | --with-mangrp=GROUP select group for manual pages | |
1404 | --with-manmode=MODE select mode for manual pages | |
1405 | --with-dumpdatespath=PATH select path for dumpdates file | |
1406 | ||
1407 | Some influential environment variables: | |
1408 | CC C compiler command | |
1409 | CFLAGS C compiler flags | |
1410 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1411 | nonstandard directory <lib dir> | |
d2816d4c | 1412 | LIBS libraries to pass to the linker, e.g. -l<library> |
7f7d329e SP |
1413 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1414 | you have headers in a nonstandard directory <include dir> | |
1daf06b9 SP |
1415 | CPP C preprocessor |
1416 | ||
1417 | Use these variables to override the choices made by `configure' or to help | |
1418 | it to find libraries and programs with nonstandard names/locations. | |
1419 | ||
1420 | _ACEOF | |
7f7d329e | 1421 | ac_status=$? |
1daf06b9 SP |
1422 | fi |
1423 | ||
1424 | if test "$ac_init_help" = "recursive"; then | |
1425 | # If there are subdirs, report their specific --help. | |
1daf06b9 | 1426 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
572eed31 SP |
1427 | test -d "$ac_dir" || |
1428 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1429 | continue | |
1daf06b9 SP |
1430 | ac_builddir=. |
1431 | ||
7f7d329e SP |
1432 | case "$ac_dir" in |
1433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1434 | *) | |
572eed31 | 1435 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7f7d329e | 1436 | # A ".." for each directory in $ac_dir_suffix. |
572eed31 | 1437 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7f7d329e SP |
1438 | case $ac_top_builddir_sub in |
1439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1441 | esac ;; | |
1442 | esac | |
1443 | ac_abs_top_builddir=$ac_pwd | |
1444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1445 | # for backward compatibility: | |
1446 | ac_top_builddir=$ac_top_build_prefix | |
1daf06b9 SP |
1447 | |
1448 | case $srcdir in | |
7f7d329e | 1449 | .) # We are building in place. |
1daf06b9 | 1450 | ac_srcdir=. |
7f7d329e SP |
1451 | ac_top_srcdir=$ac_top_builddir_sub |
1452 | ac_abs_top_srcdir=$ac_pwd ;; | |
1453 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 1454 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
1455 | ac_top_srcdir=$srcdir |
1456 | ac_abs_top_srcdir=$srcdir ;; | |
1457 | *) # Relative name. | |
1458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1459 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c9e4e868 | 1461 | esac |
7f7d329e SP |
1462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1463 | ||
1464 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1465 | # Check for guested configure. | |
1466 | if test -f "$ac_srcdir/configure.gnu"; then | |
1467 | echo && | |
1468 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1469 | elif test -f "$ac_srcdir/configure"; then | |
1470 | echo && | |
1471 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1daf06b9 | 1472 | else |
572eed31 | 1473 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7f7d329e SP |
1474 | fi || ac_status=$? |
1475 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1daf06b9 SP |
1476 | done |
1477 | fi | |
1478 | ||
7f7d329e | 1479 | test -n "$ac_init_help" && exit $ac_status |
1daf06b9 SP |
1480 | if $ac_init_version; then |
1481 | cat <<\_ACEOF | |
7f7d329e | 1482 | configure |
572eed31 | 1483 | generated by GNU Autoconf 2.63 |
1daf06b9 | 1484 | |
7f7d329e | 1485 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
572eed31 | 1486 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1daf06b9 SP |
1487 | This configure script is free software; the Free Software Foundation |
1488 | gives unlimited permission to copy, distribute and modify it. | |
1489 | _ACEOF | |
7f7d329e | 1490 | exit |
1daf06b9 | 1491 | fi |
7f7d329e | 1492 | cat >config.log <<_ACEOF |
1daf06b9 SP |
1493 | This file contains any messages produced by compilers while |
1494 | running configure, to aid debugging if configure makes a mistake. | |
1495 | ||
1496 | It was created by $as_me, which was | |
572eed31 | 1497 | generated by GNU Autoconf 2.63. Invocation command line was |
1daf06b9 SP |
1498 | |
1499 | $ $0 $@ | |
1500 | ||
1501 | _ACEOF | |
7f7d329e | 1502 | exec 5>>config.log |
1daf06b9 SP |
1503 | { |
1504 | cat <<_ASUNAME | |
1505 | ## --------- ## | |
1506 | ## Platform. ## | |
1507 | ## --------- ## | |
1508 | ||
1509 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1510 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1511 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1512 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1513 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1514 | ||
1515 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1516 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1517 | ||
1518 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1519 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1520 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7f7d329e | 1521 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1daf06b9 SP |
1522 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1523 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1524 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1525 | ||
1526 | _ASUNAME | |
1527 | ||
1528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1529 | for as_dir in $PATH | |
1530 | do | |
1531 | IFS=$as_save_IFS | |
1532 | test -z "$as_dir" && as_dir=. | |
572eed31 | 1533 | $as_echo "PATH: $as_dir" |
1daf06b9 | 1534 | done |
7f7d329e | 1535 | IFS=$as_save_IFS |
1daf06b9 SP |
1536 | |
1537 | } >&5 | |
1538 | ||
1539 | cat >&5 <<_ACEOF | |
1540 | ||
1541 | ||
1542 | ## ----------- ## | |
1543 | ## Core tests. ## | |
1544 | ## ----------- ## | |
1545 | ||
1546 | _ACEOF | |
1547 | ||
1548 | ||
1549 | # Keep a trace of the command line. | |
1550 | # Strip out --no-create and --no-recursion so they do not pile up. | |
cdfe1392 | 1551 | # Strip out --silent because we don't want to record it for future runs. |
1daf06b9 | 1552 | # Also quote any args containing shell meta-characters. |
cdfe1392 | 1553 | # Make two passes to allow for proper duplicate-argument suppression. |
1daf06b9 | 1554 | ac_configure_args= |
cdfe1392 SP |
1555 | ac_configure_args0= |
1556 | ac_configure_args1= | |
cdfe1392 SP |
1557 | ac_must_keep_next=false |
1558 | for ac_pass in 1 2 | |
1daf06b9 | 1559 | do |
cdfe1392 SP |
1560 | for ac_arg |
1561 | do | |
1562 | case $ac_arg in | |
1563 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1564 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1565 | | -silent | --silent | --silen | --sile | --sil) | |
1566 | continue ;; | |
7f7d329e | 1567 | *\'*) |
572eed31 | 1568 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
cdfe1392 SP |
1569 | esac |
1570 | case $ac_pass in | |
1571 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1572 | 2) | |
1573 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1574 | if test $ac_must_keep_next = true; then | |
c9e4e868 | 1575 | ac_must_keep_next=false # Got value, back to normal. |
cdfe1392 | 1576 | else |
c9e4e868 SP |
1577 | case $ac_arg in |
1578 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1579 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1580 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1581 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1582 | case "$ac_configure_args0 " in | |
1583 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1584 | esac | |
1585 | ;; | |
1586 | -* ) ac_must_keep_next=true ;; | |
1587 | esac | |
cdfe1392 | 1588 | fi |
7f7d329e | 1589 | ac_configure_args="$ac_configure_args '$ac_arg'" |
cdfe1392 SP |
1590 | ;; |
1591 | esac | |
1592 | done | |
1daf06b9 | 1593 | done |
cdfe1392 SP |
1594 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1595 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1daf06b9 SP |
1596 | |
1597 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1598 | # config.log. We remove comments because anyway the quotes in there | |
1599 | # would cause problems or look ugly. | |
7f7d329e SP |
1600 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1601 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1daf06b9 SP |
1602 | trap 'exit_status=$? |
1603 | # Save into config.log some information that might help in debugging. | |
1604 | { | |
1605 | echo | |
cdfe1392 | 1606 | |
1daf06b9 SP |
1607 | cat <<\_ASBOX |
1608 | ## ---------------- ## | |
1609 | ## Cache variables. ## | |
1610 | ## ---------------- ## | |
1611 | _ASBOX | |
1612 | echo | |
1613 | # The following way of writing the cache mishandles newlines in values, | |
7f7d329e SP |
1614 | ( |
1615 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1616 | eval ac_val=\$$ac_var | |
1617 | case $ac_val in #( | |
1618 | *${as_nl}*) | |
1619 | case $ac_var in #( | |
572eed31 SP |
1620 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1621 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7f7d329e SP |
1622 | esac |
1623 | case $ac_var in #( | |
1624 | _ | IFS | as_nl) ;; #( | |
572eed31 | 1625 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7f7d329e SP |
1626 | *) $as_unset $ac_var ;; |
1627 | esac ;; | |
1628 | esac | |
1629 | done | |
1daf06b9 | 1630 | (set) 2>&1 | |
7f7d329e SP |
1631 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1632 | *${as_nl}ac_space=\ *) | |
1daf06b9 | 1633 | sed -n \ |
7f7d329e SP |
1634 | "s/'\''/'\''\\\\'\'''\''/g; |
1635 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1636 | ;; #( | |
1daf06b9 | 1637 | *) |
7f7d329e | 1638 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 1639 | ;; |
7f7d329e SP |
1640 | esac | |
1641 | sort | |
1642 | ) | |
1daf06b9 | 1643 | echo |
cdfe1392 SP |
1644 | |
1645 | cat <<\_ASBOX | |
1646 | ## ----------------- ## | |
1647 | ## Output variables. ## | |
1648 | ## ----------------- ## | |
1649 | _ASBOX | |
1650 | echo | |
1651 | for ac_var in $ac_subst_vars | |
1652 | do | |
7f7d329e SP |
1653 | eval ac_val=\$$ac_var |
1654 | case $ac_val in | |
572eed31 | 1655 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7f7d329e | 1656 | esac |
572eed31 | 1657 | $as_echo "$ac_var='\''$ac_val'\''" |
cdfe1392 SP |
1658 | done | sort |
1659 | echo | |
1660 | ||
1661 | if test -n "$ac_subst_files"; then | |
1662 | cat <<\_ASBOX | |
7f7d329e SP |
1663 | ## ------------------- ## |
1664 | ## File substitutions. ## | |
1665 | ## ------------------- ## | |
cdfe1392 SP |
1666 | _ASBOX |
1667 | echo | |
1668 | for ac_var in $ac_subst_files | |
1669 | do | |
7f7d329e SP |
1670 | eval ac_val=\$$ac_var |
1671 | case $ac_val in | |
572eed31 | 1672 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7f7d329e | 1673 | esac |
572eed31 | 1674 | $as_echo "$ac_var='\''$ac_val'\''" |
cdfe1392 SP |
1675 | done | sort |
1676 | echo | |
1677 | fi | |
1678 | ||
1daf06b9 SP |
1679 | if test -s confdefs.h; then |
1680 | cat <<\_ASBOX | |
1681 | ## ----------- ## | |
1682 | ## confdefs.h. ## | |
1683 | ## ----------- ## | |
1684 | _ASBOX | |
1685 | echo | |
7f7d329e | 1686 | cat confdefs.h |
1daf06b9 SP |
1687 | echo |
1688 | fi | |
1689 | test "$ac_signal" != 0 && | |
572eed31 SP |
1690 | $as_echo "$as_me: caught signal $ac_signal" |
1691 | $as_echo "$as_me: exit $exit_status" | |
1daf06b9 | 1692 | } >&5 |
7f7d329e SP |
1693 | rm -f core *.core core.conftest.* && |
1694 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1daf06b9 | 1695 | exit $exit_status |
7f7d329e | 1696 | ' 0 |
1daf06b9 SP |
1697 | for ac_signal in 1 2 13 15; do |
1698 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1699 | done | |
1700 | ac_signal=0 | |
1227625a | 1701 | |
1daf06b9 | 1702 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
7f7d329e | 1703 | rm -f -r conftest* confdefs.h |
1daf06b9 SP |
1704 | |
1705 | # Predefined preprocessor variables. | |
1706 | ||
1707 | cat >>confdefs.h <<_ACEOF | |
1708 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1709 | _ACEOF | |
1710 | ||
1711 | ||
1712 | cat >>confdefs.h <<_ACEOF | |
1713 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1714 | _ACEOF | |
1715 | ||
1716 | ||
1717 | cat >>confdefs.h <<_ACEOF | |
1718 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1719 | _ACEOF | |
1720 | ||
1721 | ||
1722 | cat >>confdefs.h <<_ACEOF | |
1723 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1724 | _ACEOF | |
1725 | ||
1726 | ||
1727 | cat >>confdefs.h <<_ACEOF | |
1728 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1729 | _ACEOF | |
1730 | ||
1731 | ||
1732 | # Let the site file select an alternate cache file if it wants to. | |
572eed31 SP |
1733 | # Prefer an explicitly selected file to automatically selected ones. |
1734 | ac_site_file1=NONE | |
1735 | ac_site_file2=NONE | |
7f7d329e | 1736 | if test -n "$CONFIG_SITE"; then |
572eed31 | 1737 | ac_site_file1=$CONFIG_SITE |
7f7d329e | 1738 | elif test "x$prefix" != xNONE; then |
572eed31 SP |
1739 | ac_site_file1=$prefix/share/config.site |
1740 | ac_site_file2=$prefix/etc/config.site | |
7f7d329e | 1741 | else |
572eed31 SP |
1742 | ac_site_file1=$ac_default_prefix/share/config.site |
1743 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1227625a | 1744 | fi |
572eed31 | 1745 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7f7d329e | 1746 | do |
572eed31 | 1747 | test "x$ac_site_file" = xNONE && continue |
1227625a | 1748 | if test -r "$ac_site_file"; then |
572eed31 SP |
1749 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1750 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1daf06b9 | 1751 | sed 's/^/| /' "$ac_site_file" >&5 |
1227625a SP |
1752 | . "$ac_site_file" |
1753 | fi | |
1754 | done | |
1755 | ||
1756 | if test -r "$cache_file"; then | |
1daf06b9 SP |
1757 | # Some versions of bash will fail to source /dev/null (special |
1758 | # files actually), so we avoid doing that. | |
1759 | if test -f "$cache_file"; then | |
572eed31 SP |
1760 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1761 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1daf06b9 | 1762 | case $cache_file in |
7f7d329e SP |
1763 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1764 | *) . "./$cache_file";; | |
1daf06b9 SP |
1765 | esac |
1766 | fi | |
1227625a | 1767 | else |
572eed31 SP |
1768 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1769 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1daf06b9 SP |
1770 | >$cache_file |
1771 | fi | |
1772 | ||
1773 | # Check that the precious variables saved in the cache have kept the same | |
1774 | # value. | |
1775 | ac_cache_corrupted=false | |
7f7d329e | 1776 | for ac_var in $ac_precious_vars; do |
1daf06b9 SP |
1777 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1778 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7f7d329e SP |
1779 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1780 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1daf06b9 SP |
1781 | case $ac_old_set,$ac_new_set in |
1782 | set,) | |
572eed31 SP |
1783 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1784 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1daf06b9 SP |
1785 | ac_cache_corrupted=: ;; |
1786 | ,set) | |
572eed31 SP |
1787 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1788 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1daf06b9 SP |
1789 | ac_cache_corrupted=: ;; |
1790 | ,);; | |
1791 | *) | |
1792 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
572eed31 SP |
1793 | # differences in whitespace do not lead to failure. |
1794 | ac_old_val_w=`echo x $ac_old_val` | |
1795 | ac_new_val_w=`echo x $ac_new_val` | |
1796 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1797 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1798 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1799 | ac_cache_corrupted=: | |
1800 | else | |
1801 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1802 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1803 | eval $ac_var=\$ac_old_val | |
1804 | fi | |
1805 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1806 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1807 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1808 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1daf06b9 SP |
1809 | fi;; |
1810 | esac | |
1811 | # Pass precious variables to config.status. | |
1812 | if test "$ac_new_set" = set; then | |
1813 | case $ac_new_val in | |
572eed31 | 1814 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1daf06b9 SP |
1815 | *) ac_arg=$ac_var=$ac_new_val ;; |
1816 | esac | |
1817 | case " $ac_configure_args " in | |
1818 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1819 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1820 | esac | |
1821 | fi | |
1822 | done | |
1823 | if $ac_cache_corrupted; then | |
572eed31 SP |
1824 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1826 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1827 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1828 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1829 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1daf06b9 | 1830 | { (exit 1); exit 1; }; } |
1227625a SP |
1831 | fi |
1832 | ||
1daf06b9 SP |
1833 | |
1834 | ||
1835 | ||
1836 | ||
1837 | ||
1838 | ||
1839 | ||
1840 | ||
1841 | ||
1842 | ||
1843 | ||
1844 | ||
1845 | ||
1846 | ||
1847 | ||
1227625a | 1848 | |
7f7d329e SP |
1849 | ac_ext=c |
1850 | ac_cpp='$CPP $CPPFLAGS' | |
1851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1227625a SP |
1854 | |
1855 | ||
e7d18957 | 1856 | |
cdfe1392 | 1857 | |
1227625a SP |
1858 | MCONFIG=./MCONFIG |
1859 | ||
1860 | ||
7f7d329e | 1861 | ac_config_headers="$ac_config_headers config.h" |
1227625a SP |
1862 | |
1863 | ||
572eed31 SP |
1864 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1865 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
1866 | set x ${MAKE-make} | |
1867 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7f7d329e | 1868 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 1869 | $as_echo_n "(cached) " >&6 |
1227625a | 1870 | else |
1daf06b9 | 1871 | cat >conftest.make <<\_ACEOF |
7f7d329e | 1872 | SHELL = /bin/sh |
1227625a | 1873 | all: |
7f7d329e | 1874 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
1daf06b9 | 1875 | _ACEOF |
1227625a | 1876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7f7d329e SP |
1877 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
1878 | *@@@%%%=?*=@@@%%%*) | |
1879 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
1880 | *) | |
1881 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
1882 | esac | |
1daf06b9 | 1883 | rm -f conftest.make |
1227625a | 1884 | fi |
7f7d329e | 1885 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
572eed31 SP |
1886 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
1887 | $as_echo "yes" >&6; } | |
1227625a SP |
1888 | SET_MAKE= |
1889 | else | |
572eed31 SP |
1890 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
1891 | $as_echo "no" >&6; } | |
1227625a SP |
1892 | SET_MAKE="MAKE=${MAKE-make}" |
1893 | fi | |
1894 | ||
572eed31 SP |
1895 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
1896 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1daf06b9 SP |
1897 | LN_S=$as_ln_s |
1898 | if test "$LN_S" = "ln -s"; then | |
572eed31 SP |
1899 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
1900 | $as_echo "yes" >&6; } | |
1227625a | 1901 | else |
572eed31 SP |
1902 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
1903 | $as_echo "no, using $LN_S" >&6; } | |
1227625a SP |
1904 | fi |
1905 | ||
1906 | # Extract the first word of "cp", so it can be a program name with args. | |
1907 | set dummy cp; ac_word=$2 | |
572eed31 SP |
1908 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1909 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 1910 | if test "${ac_cv_path_CP+set}" = set; then |
572eed31 | 1911 | $as_echo_n "(cached) " >&6 |
1227625a | 1912 | else |
1daf06b9 SP |
1913 | case $CP in |
1914 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1915 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
1916 | ;; | |
1917 | *) | |
1daf06b9 SP |
1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1919 | for as_dir in $PATH | |
1920 | do | |
1921 | IFS=$as_save_IFS | |
1922 | test -z "$as_dir" && as_dir=. | |
1923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1924 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 1925 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
572eed31 | 1926 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
1927 | break 2 |
1928 | fi | |
1929 | done | |
1930 | done | |
7f7d329e | 1931 | IFS=$as_save_IFS |
1daf06b9 | 1932 | |
1227625a SP |
1933 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
1934 | ;; | |
1935 | esac | |
1936 | fi | |
1daf06b9 | 1937 | CP=$ac_cv_path_CP |
1227625a | 1938 | if test -n "$CP"; then |
572eed31 SP |
1939 | { $as_echo "$as_me:$LINENO: result: $CP" >&5 |
1940 | $as_echo "$CP" >&6; } | |
1227625a | 1941 | else |
572eed31 SP |
1942 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
1943 | $as_echo "no" >&6; } | |
1227625a SP |
1944 | fi |
1945 | ||
7f7d329e | 1946 | |
1227625a SP |
1947 | # Extract the first word of "mv", so it can be a program name with args. |
1948 | set dummy mv; ac_word=$2 | |
572eed31 SP |
1949 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1950 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 1951 | if test "${ac_cv_path_MV+set}" = set; then |
572eed31 | 1952 | $as_echo_n "(cached) " >&6 |
1227625a | 1953 | else |
1daf06b9 SP |
1954 | case $MV in |
1955 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1956 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
1957 | ;; | |
1958 | *) | |
1daf06b9 SP |
1959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1960 | for as_dir in $PATH | |
1961 | do | |
1962 | IFS=$as_save_IFS | |
1963 | test -z "$as_dir" && as_dir=. | |
1964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 1965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 1966 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
572eed31 | 1967 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
1968 | break 2 |
1969 | fi | |
1970 | done | |
1971 | done | |
7f7d329e | 1972 | IFS=$as_save_IFS |
1daf06b9 | 1973 | |
1227625a SP |
1974 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
1975 | ;; | |
1976 | esac | |
1977 | fi | |
1daf06b9 | 1978 | MV=$ac_cv_path_MV |
1227625a | 1979 | if test -n "$MV"; then |
572eed31 SP |
1980 | { $as_echo "$as_me:$LINENO: result: $MV" >&5 |
1981 | $as_echo "$MV" >&6; } | |
1227625a | 1982 | else |
572eed31 SP |
1983 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
1984 | $as_echo "no" >&6; } | |
1227625a SP |
1985 | fi |
1986 | ||
7f7d329e | 1987 | |
1227625a SP |
1988 | # Extract the first word of "rm", so it can be a program name with args. |
1989 | set dummy rm; ac_word=$2 | |
572eed31 SP |
1990 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1991 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 1992 | if test "${ac_cv_path_RM+set}" = set; then |
572eed31 | 1993 | $as_echo_n "(cached) " >&6 |
1227625a | 1994 | else |
1daf06b9 SP |
1995 | case $RM in |
1996 | [\\/]* | ?:[\\/]*) | |
1227625a SP |
1997 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
1998 | ;; | |
1999 | *) | |
1daf06b9 SP |
2000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2001 | for as_dir in $PATH | |
2002 | do | |
2003 | IFS=$as_save_IFS | |
2004 | test -z "$as_dir" && as_dir=. | |
2005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2007 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
572eed31 | 2008 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2009 | break 2 |
2010 | fi | |
2011 | done | |
2012 | done | |
7f7d329e | 2013 | IFS=$as_save_IFS |
1daf06b9 | 2014 | |
1227625a SP |
2015 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
2016 | ;; | |
2017 | esac | |
2018 | fi | |
1daf06b9 | 2019 | RM=$ac_cv_path_RM |
1227625a | 2020 | if test -n "$RM"; then |
572eed31 SP |
2021 | { $as_echo "$as_me:$LINENO: result: $RM" >&5 |
2022 | $as_echo "$RM" >&6; } | |
1227625a | 2023 | else |
572eed31 SP |
2024 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2025 | $as_echo "no" >&6; } | |
1227625a SP |
2026 | fi |
2027 | ||
7f7d329e | 2028 | |
1daf06b9 SP |
2029 | if test -n "$ac_tool_prefix"; then |
2030 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
1227625a | 2031 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
572eed31 SP |
2032 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2033 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2034 | if test "${ac_cv_prog_AR+set}" = set; then |
572eed31 | 2035 | $as_echo_n "(cached) " >&6 |
1227625a SP |
2036 | else |
2037 | if test -n "$AR"; then | |
2038 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2039 | else | |
1daf06b9 SP |
2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2041 | for as_dir in $PATH | |
2042 | do | |
2043 | IFS=$as_save_IFS | |
2044 | test -z "$as_dir" && as_dir=. | |
2045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2047 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
572eed31 | 2048 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2049 | break 2 |
2050 | fi | |
2051 | done | |
2052 | done | |
7f7d329e | 2053 | IFS=$as_save_IFS |
1daf06b9 | 2054 | |
1227625a SP |
2055 | fi |
2056 | fi | |
1daf06b9 | 2057 | AR=$ac_cv_prog_AR |
1227625a | 2058 | if test -n "$AR"; then |
572eed31 SP |
2059 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
2060 | $as_echo "$AR" >&6; } | |
1227625a | 2061 | else |
572eed31 SP |
2062 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2063 | $as_echo "no" >&6; } | |
1227625a SP |
2064 | fi |
2065 | ||
7f7d329e | 2066 | |
1daf06b9 | 2067 | fi |
1227625a | 2068 | if test -z "$ac_cv_prog_AR"; then |
1daf06b9 | 2069 | ac_ct_AR=$AR |
1227625a SP |
2070 | # Extract the first word of "ar", so it can be a program name with args. |
2071 | set dummy ar; ac_word=$2 | |
572eed31 SP |
2072 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2073 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2074 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
572eed31 | 2075 | $as_echo_n "(cached) " >&6 |
1227625a | 2076 | else |
1daf06b9 SP |
2077 | if test -n "$ac_ct_AR"; then |
2078 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
1227625a | 2079 | else |
1daf06b9 SP |
2080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2081 | for as_dir in $PATH | |
2082 | do | |
2083 | IFS=$as_save_IFS | |
2084 | test -z "$as_dir" && as_dir=. | |
2085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2087 | ac_cv_prog_ac_ct_AR="ar" |
572eed31 | 2088 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2089 | break 2 |
2090 | fi | |
2091 | done | |
2092 | done | |
7f7d329e | 2093 | IFS=$as_save_IFS |
1daf06b9 | 2094 | |
1227625a SP |
2095 | fi |
2096 | fi | |
1daf06b9 SP |
2097 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
2098 | if test -n "$ac_ct_AR"; then | |
572eed31 SP |
2099 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
2100 | $as_echo "$ac_ct_AR" >&6; } | |
1227625a | 2101 | else |
572eed31 SP |
2102 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2103 | $as_echo "no" >&6; } | |
1227625a SP |
2104 | fi |
2105 | ||
7f7d329e SP |
2106 | if test "x$ac_ct_AR" = x; then |
2107 | AR="ar" | |
2108 | else | |
2109 | case $cross_compiling:$ac_tool_warned in | |
2110 | yes:) | |
572eed31 SP |
2111 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2112 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7f7d329e SP |
2113 | ac_tool_warned=yes ;; |
2114 | esac | |
2115 | AR=$ac_ct_AR | |
2116 | fi | |
1227625a | 2117 | else |
1daf06b9 | 2118 | AR="$ac_cv_prog_AR" |
1227625a SP |
2119 | fi |
2120 | ||
1daf06b9 SP |
2121 | if test -n "$ac_tool_prefix"; then |
2122 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1227625a | 2123 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
572eed31 SP |
2124 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2125 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2126 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
572eed31 | 2127 | $as_echo_n "(cached) " >&6 |
1227625a SP |
2128 | else |
2129 | if test -n "$RANLIB"; then | |
2130 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2131 | else | |
1daf06b9 SP |
2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2133 | for as_dir in $PATH | |
2134 | do | |
2135 | IFS=$as_save_IFS | |
2136 | test -z "$as_dir" && as_dir=. | |
2137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2139 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
572eed31 | 2140 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2141 | break 2 |
2142 | fi | |
2143 | done | |
2144 | done | |
7f7d329e | 2145 | IFS=$as_save_IFS |
1daf06b9 | 2146 | |
1227625a SP |
2147 | fi |
2148 | fi | |
1daf06b9 | 2149 | RANLIB=$ac_cv_prog_RANLIB |
1227625a | 2150 | if test -n "$RANLIB"; then |
572eed31 SP |
2151 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2152 | $as_echo "$RANLIB" >&6; } | |
1227625a | 2153 | else |
572eed31 SP |
2154 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2155 | $as_echo "no" >&6; } | |
1227625a SP |
2156 | fi |
2157 | ||
7f7d329e | 2158 | |
1daf06b9 | 2159 | fi |
1227625a | 2160 | if test -z "$ac_cv_prog_RANLIB"; then |
1daf06b9 | 2161 | ac_ct_RANLIB=$RANLIB |
1227625a SP |
2162 | # Extract the first word of "ranlib", so it can be a program name with args. |
2163 | set dummy ranlib; ac_word=$2 | |
572eed31 SP |
2164 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2165 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2166 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
572eed31 | 2167 | $as_echo_n "(cached) " >&6 |
1227625a | 2168 | else |
1daf06b9 SP |
2169 | if test -n "$ac_ct_RANLIB"; then |
2170 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
1227625a | 2171 | else |
1daf06b9 SP |
2172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2173 | for as_dir in $PATH | |
2174 | do | |
2175 | IFS=$as_save_IFS | |
2176 | test -z "$as_dir" && as_dir=. | |
2177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2179 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
572eed31 | 2180 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2181 | break 2 |
2182 | fi | |
2183 | done | |
2184 | done | |
7f7d329e | 2185 | IFS=$as_save_IFS |
1daf06b9 | 2186 | |
1227625a SP |
2187 | fi |
2188 | fi | |
1daf06b9 SP |
2189 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2190 | if test -n "$ac_ct_RANLIB"; then | |
572eed31 SP |
2191 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
2192 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1227625a | 2193 | else |
572eed31 SP |
2194 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2195 | $as_echo "no" >&6; } | |
1227625a SP |
2196 | fi |
2197 | ||
7f7d329e SP |
2198 | if test "x$ac_ct_RANLIB" = x; then |
2199 | RANLIB=":" | |
2200 | else | |
2201 | case $cross_compiling:$ac_tool_warned in | |
2202 | yes:) | |
572eed31 SP |
2203 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2204 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7f7d329e SP |
2205 | ac_tool_warned=yes ;; |
2206 | esac | |
2207 | RANLIB=$ac_ct_RANLIB | |
2208 | fi | |
1227625a | 2209 | else |
1daf06b9 | 2210 | RANLIB="$ac_cv_prog_RANLIB" |
1227625a SP |
2211 | fi |
2212 | ||
1daf06b9 SP |
2213 | if test -n "$ac_tool_prefix"; then |
2214 | # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args. | |
1227625a | 2215 | set dummy ${ac_tool_prefix}patch; ac_word=$2 |
572eed31 SP |
2216 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2217 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2218 | if test "${ac_cv_prog_PATCH+set}" = set; then |
572eed31 | 2219 | $as_echo_n "(cached) " >&6 |
1227625a SP |
2220 | else |
2221 | if test -n "$PATCH"; then | |
2222 | ac_cv_prog_PATCH="$PATCH" # Let the user override the test. | |
2223 | else | |
1daf06b9 SP |
2224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2225 | for as_dir in $PATH | |
2226 | do | |
2227 | IFS=$as_save_IFS | |
2228 | test -z "$as_dir" && as_dir=. | |
2229 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2231 | ac_cv_prog_PATCH="${ac_tool_prefix}patch" |
572eed31 | 2232 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2233 | break 2 |
2234 | fi | |
2235 | done | |
2236 | done | |
7f7d329e | 2237 | IFS=$as_save_IFS |
1daf06b9 | 2238 | |
1227625a SP |
2239 | fi |
2240 | fi | |
1daf06b9 | 2241 | PATCH=$ac_cv_prog_PATCH |
1227625a | 2242 | if test -n "$PATCH"; then |
572eed31 SP |
2243 | { $as_echo "$as_me:$LINENO: result: $PATCH" >&5 |
2244 | $as_echo "$PATCH" >&6; } | |
1227625a | 2245 | else |
572eed31 SP |
2246 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2247 | $as_echo "no" >&6; } | |
1227625a SP |
2248 | fi |
2249 | ||
7f7d329e | 2250 | |
1daf06b9 | 2251 | fi |
1227625a | 2252 | if test -z "$ac_cv_prog_PATCH"; then |
1daf06b9 | 2253 | ac_ct_PATCH=$PATCH |
1227625a SP |
2254 | # Extract the first word of "patch", so it can be a program name with args. |
2255 | set dummy patch; ac_word=$2 | |
572eed31 SP |
2256 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2257 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2258 | if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then |
572eed31 | 2259 | $as_echo_n "(cached) " >&6 |
1227625a | 2260 | else |
1daf06b9 SP |
2261 | if test -n "$ac_ct_PATCH"; then |
2262 | ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test. | |
1227625a | 2263 | else |
1daf06b9 SP |
2264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2265 | for as_dir in $PATH | |
2266 | do | |
2267 | IFS=$as_save_IFS | |
2268 | test -z "$as_dir" && as_dir=. | |
2269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2271 | ac_cv_prog_ac_ct_PATCH="patch" |
572eed31 | 2272 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2273 | break 2 |
2274 | fi | |
2275 | done | |
2276 | done | |
7f7d329e | 2277 | IFS=$as_save_IFS |
1daf06b9 | 2278 | |
1227625a SP |
2279 | fi |
2280 | fi | |
1daf06b9 SP |
2281 | ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH |
2282 | if test -n "$ac_ct_PATCH"; then | |
572eed31 SP |
2283 | { $as_echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5 |
2284 | $as_echo "$ac_ct_PATCH" >&6; } | |
1227625a | 2285 | else |
572eed31 SP |
2286 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2287 | $as_echo "no" >&6; } | |
1227625a SP |
2288 | fi |
2289 | ||
7f7d329e SP |
2290 | if test "x$ac_ct_PATCH" = x; then |
2291 | PATCH=":" | |
2292 | else | |
2293 | case $cross_compiling:$ac_tool_warned in | |
2294 | yes:) | |
572eed31 SP |
2295 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2296 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7f7d329e SP |
2297 | ac_tool_warned=yes ;; |
2298 | esac | |
2299 | PATCH=$ac_ct_PATCH | |
2300 | fi | |
1daf06b9 SP |
2301 | else |
2302 | PATCH="$ac_cv_prog_PATCH" | |
2303 | fi | |
2304 | ||
2305 | ac_ext=c | |
2306 | ac_cpp='$CPP $CPPFLAGS' | |
2307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2310 | if test -n "$ac_tool_prefix"; then | |
2311 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2312 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
572eed31 SP |
2313 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2314 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2315 | if test "${ac_cv_prog_CC+set}" = set; then |
572eed31 | 2316 | $as_echo_n "(cached) " >&6 |
1daf06b9 SP |
2317 | else |
2318 | if test -n "$CC"; then | |
2319 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1227625a | 2320 | else |
1daf06b9 SP |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2322 | for as_dir in $PATH | |
2323 | do | |
2324 | IFS=$as_save_IFS | |
2325 | test -z "$as_dir" && as_dir=. | |
2326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2328 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
572eed31 | 2329 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2330 | break 2 |
2331 | fi | |
2332 | done | |
2333 | done | |
7f7d329e | 2334 | IFS=$as_save_IFS |
1daf06b9 | 2335 | |
1227625a SP |
2336 | fi |
2337 | fi | |
1daf06b9 SP |
2338 | CC=$ac_cv_prog_CC |
2339 | if test -n "$CC"; then | |
572eed31 SP |
2340 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2341 | $as_echo "$CC" >&6; } | |
1daf06b9 | 2342 | else |
572eed31 SP |
2343 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2344 | $as_echo "no" >&6; } | |
1daf06b9 | 2345 | fi |
1227625a | 2346 | |
7f7d329e | 2347 | |
1daf06b9 SP |
2348 | fi |
2349 | if test -z "$ac_cv_prog_CC"; then | |
2350 | ac_ct_CC=$CC | |
2351 | # Extract the first word of "gcc", so it can be a program name with args. | |
1227625a | 2352 | set dummy gcc; ac_word=$2 |
572eed31 SP |
2353 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2354 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2355 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
572eed31 | 2356 | $as_echo_n "(cached) " >&6 |
1daf06b9 SP |
2357 | else |
2358 | if test -n "$ac_ct_CC"; then | |
2359 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2360 | else | |
2361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2362 | for as_dir in $PATH | |
2363 | do | |
2364 | IFS=$as_save_IFS | |
2365 | test -z "$as_dir" && as_dir=. | |
2366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2368 | ac_cv_prog_ac_ct_CC="gcc" |
572eed31 | 2369 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2370 | break 2 |
2371 | fi | |
2372 | done | |
2373 | done | |
7f7d329e | 2374 | IFS=$as_save_IFS |
1daf06b9 SP |
2375 | |
2376 | fi | |
2377 | fi | |
2378 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2379 | if test -n "$ac_ct_CC"; then | |
572eed31 SP |
2380 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2381 | $as_echo "$ac_ct_CC" >&6; } | |
1daf06b9 | 2382 | else |
572eed31 SP |
2383 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2384 | $as_echo "no" >&6; } | |
1daf06b9 SP |
2385 | fi |
2386 | ||
7f7d329e SP |
2387 | if test "x$ac_ct_CC" = x; then |
2388 | CC="" | |
2389 | else | |
2390 | case $cross_compiling:$ac_tool_warned in | |
2391 | yes:) | |
572eed31 SP |
2392 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7f7d329e SP |
2394 | ac_tool_warned=yes ;; |
2395 | esac | |
2396 | CC=$ac_ct_CC | |
2397 | fi | |
1daf06b9 SP |
2398 | else |
2399 | CC="$ac_cv_prog_CC" | |
2400 | fi | |
2401 | ||
2402 | if test -z "$CC"; then | |
7f7d329e SP |
2403 | if test -n "$ac_tool_prefix"; then |
2404 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1daf06b9 | 2405 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
572eed31 SP |
2406 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2407 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2408 | if test "${ac_cv_prog_CC+set}" = set; then |
572eed31 | 2409 | $as_echo_n "(cached) " >&6 |
1227625a SP |
2410 | else |
2411 | if test -n "$CC"; then | |
2412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2413 | else | |
1daf06b9 SP |
2414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2415 | for as_dir in $PATH | |
2416 | do | |
2417 | IFS=$as_save_IFS | |
2418 | test -z "$as_dir" && as_dir=. | |
2419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2421 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
572eed31 | 2422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2423 | break 2 |
2424 | fi | |
2425 | done | |
2426 | done | |
7f7d329e | 2427 | IFS=$as_save_IFS |
1daf06b9 | 2428 | |
1227625a SP |
2429 | fi |
2430 | fi | |
1daf06b9 | 2431 | CC=$ac_cv_prog_CC |
1227625a | 2432 | if test -n "$CC"; then |
572eed31 SP |
2433 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2434 | $as_echo "$CC" >&6; } | |
1227625a | 2435 | else |
572eed31 SP |
2436 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2437 | $as_echo "no" >&6; } | |
1227625a SP |
2438 | fi |
2439 | ||
1daf06b9 | 2440 | |
7f7d329e | 2441 | fi |
1daf06b9 | 2442 | fi |
1227625a SP |
2443 | if test -z "$CC"; then |
2444 | # Extract the first word of "cc", so it can be a program name with args. | |
2445 | set dummy cc; ac_word=$2 | |
572eed31 SP |
2446 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2447 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2448 | if test "${ac_cv_prog_CC+set}" = set; then |
572eed31 | 2449 | $as_echo_n "(cached) " >&6 |
1227625a SP |
2450 | else |
2451 | if test -n "$CC"; then | |
2452 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2453 | else | |
1227625a | 2454 | ac_prog_rejected=no |
1daf06b9 SP |
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2456 | for as_dir in $PATH | |
2457 | do | |
2458 | IFS=$as_save_IFS | |
2459 | test -z "$as_dir" && as_dir=. | |
2460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 SP |
2462 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2463 | ac_prog_rejected=yes | |
2464 | continue | |
2465 | fi | |
2466 | ac_cv_prog_CC="cc" | |
572eed31 | 2467 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2468 | break 2 |
2469 | fi | |
2470 | done | |
2471 | done | |
7f7d329e | 2472 | IFS=$as_save_IFS |
1daf06b9 | 2473 | |
1227625a SP |
2474 | if test $ac_prog_rejected = yes; then |
2475 | # We found a bogon in the path, so make sure we never use it. | |
2476 | set dummy $ac_cv_prog_CC | |
2477 | shift | |
1daf06b9 | 2478 | if test $# != 0; then |
1227625a SP |
2479 | # We chose a different compiler from the bogus one. |
2480 | # However, it has the same basename, so the bogon will be chosen | |
2481 | # first if we set CC to just the basename; use the full file name. | |
2482 | shift | |
cdfe1392 | 2483 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1227625a SP |
2484 | fi |
2485 | fi | |
2486 | fi | |
2487 | fi | |
1daf06b9 | 2488 | CC=$ac_cv_prog_CC |
1227625a | 2489 | if test -n "$CC"; then |
572eed31 SP |
2490 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2491 | $as_echo "$CC" >&6; } | |
1227625a | 2492 | else |
572eed31 SP |
2493 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2494 | $as_echo "no" >&6; } | |
1227625a SP |
2495 | fi |
2496 | ||
7f7d329e | 2497 | |
1daf06b9 SP |
2498 | fi |
2499 | if test -z "$CC"; then | |
2500 | if test -n "$ac_tool_prefix"; then | |
7f7d329e | 2501 | for ac_prog in cl.exe |
1daf06b9 SP |
2502 | do |
2503 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2504 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
572eed31 SP |
2505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2506 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2507 | if test "${ac_cv_prog_CC+set}" = set; then |
572eed31 | 2508 | $as_echo_n "(cached) " >&6 |
ddd2ef55 SP |
2509 | else |
2510 | if test -n "$CC"; then | |
2511 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2512 | else | |
1daf06b9 SP |
2513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2514 | for as_dir in $PATH | |
2515 | do | |
2516 | IFS=$as_save_IFS | |
2517 | test -z "$as_dir" && as_dir=. | |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2520 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
572eed31 | 2521 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 SP |
2522 | break 2 |
2523 | fi | |
2524 | done | |
2525 | done | |
7f7d329e | 2526 | IFS=$as_save_IFS |
1daf06b9 | 2527 | |
ddd2ef55 SP |
2528 | fi |
2529 | fi | |
1daf06b9 | 2530 | CC=$ac_cv_prog_CC |
ddd2ef55 | 2531 | if test -n "$CC"; then |
572eed31 SP |
2532 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2533 | $as_echo "$CC" >&6; } | |
ddd2ef55 | 2534 | else |
572eed31 SP |
2535 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2536 | $as_echo "no" >&6; } | |
ddd2ef55 | 2537 | fi |
1daf06b9 | 2538 | |
7f7d329e | 2539 | |
1daf06b9 SP |
2540 | test -n "$CC" && break |
2541 | done | |
2542 | fi | |
2543 | if test -z "$CC"; then | |
2544 | ac_ct_CC=$CC | |
7f7d329e | 2545 | for ac_prog in cl.exe |
1daf06b9 SP |
2546 | do |
2547 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2548 | set dummy $ac_prog; ac_word=$2 | |
572eed31 SP |
2549 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2550 | $as_echo_n "checking for $ac_word... " >&6; } | |
1daf06b9 | 2551 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
572eed31 | 2552 | $as_echo_n "(cached) " >&6 |
1daf06b9 SP |
2553 | else |
2554 | if test -n "$ac_ct_CC"; then | |
2555 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2556 | else | |
2557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2558 | for as_dir in $PATH | |
2559 | do | |
2560 | IFS=$as_save_IFS | |
2561 | test -z "$as_dir" && as_dir=. | |
2562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 2563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1daf06b9 | 2564 | ac_cv_prog_ac_ct_CC="$ac_prog" |
572eed31 | 2565 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1daf06b9 | 2566 | break 2 |
ddd2ef55 | 2567 | fi |
1daf06b9 SP |
2568 | done |
2569 | done | |
7f7d329e | 2570 | IFS=$as_save_IFS |
1daf06b9 SP |
2571 | |
2572 | fi | |
2573 | fi | |
2574 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2575 | if test -n "$ac_ct_CC"; then | |
572eed31 SP |
2576 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2577 | $as_echo "$ac_ct_CC" >&6; } | |
1daf06b9 | 2578 | else |
572eed31 SP |
2579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2580 | $as_echo "no" >&6; } | |
1227625a SP |
2581 | fi |
2582 | ||
7f7d329e | 2583 | |
1daf06b9 SP |
2584 | test -n "$ac_ct_CC" && break |
2585 | done | |
1227625a | 2586 | |
7f7d329e SP |
2587 | if test "x$ac_ct_CC" = x; then |
2588 | CC="" | |
2589 | else | |
2590 | case $cross_compiling:$ac_tool_warned in | |
2591 | yes:) | |
572eed31 SP |
2592 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2593 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7f7d329e SP |
2594 | ac_tool_warned=yes ;; |
2595 | esac | |
2596 | CC=$ac_ct_CC | |
2597 | fi | |
1daf06b9 SP |
2598 | fi |
2599 | ||
2600 | fi | |
1227625a | 2601 | |
ddd2ef55 | 2602 | |
572eed31 SP |
2603 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2604 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2605 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
cdfe1392 | 2606 | See \`config.log' for more details." >&5 |
572eed31 | 2607 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
cdfe1392 | 2608 | See \`config.log' for more details." >&2;} |
572eed31 | 2609 | { (exit 1); exit 1; }; }; } |
1daf06b9 SP |
2610 | |
2611 | # Provide some information about the compiler. | |
572eed31 SP |
2612 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2613 | set X $ac_compile | |
2614 | ac_compiler=$2 | |
7f7d329e SP |
2615 | { (ac_try="$ac_compiler --version >&5" |
2616 | case "(($ac_try" in | |
2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2618 | *) ac_try_echo=$ac_try;; | |
2619 | esac | |
572eed31 SP |
2620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2621 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2622 | (eval "$ac_compiler --version >&5") 2>&5 |
1daf06b9 | 2623 | ac_status=$? |
572eed31 | 2624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 | 2625 | (exit $ac_status); } |
7f7d329e SP |
2626 | { (ac_try="$ac_compiler -v >&5" |
2627 | case "(($ac_try" in | |
2628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2629 | *) ac_try_echo=$ac_try;; | |
2630 | esac | |
572eed31 SP |
2631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2632 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2633 | (eval "$ac_compiler -v >&5") 2>&5 |
1daf06b9 | 2634 | ac_status=$? |
572eed31 | 2635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 | 2636 | (exit $ac_status); } |
7f7d329e SP |
2637 | { (ac_try="$ac_compiler -V >&5" |
2638 | case "(($ac_try" in | |
2639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2640 | *) ac_try_echo=$ac_try;; | |
2641 | esac | |
572eed31 SP |
2642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2643 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2644 | (eval "$ac_compiler -V >&5") 2>&5 |
1daf06b9 | 2645 | ac_status=$? |
572eed31 | 2646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 SP |
2647 | (exit $ac_status); } |
2648 | ||
2649 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
2650 | /* confdefs.h. */ |
2651 | _ACEOF | |
2652 | cat confdefs.h >>conftest.$ac_ext | |
2653 | cat >>conftest.$ac_ext <<_ACEOF | |
2654 | /* end confdefs.h. */ | |
ddd2ef55 | 2655 | |
1daf06b9 SP |
2656 | int |
2657 | main () | |
2658 | { | |
2659 | ||
2660 | ; | |
2661 | return 0; | |
2662 | } | |
2663 | _ACEOF | |
2664 | ac_clean_files_save=$ac_clean_files | |
572eed31 | 2665 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1daf06b9 SP |
2666 | # Try to create an executable without -o first, disregard a.out. |
2667 | # It will help us diagnose broken compilers, and finding out an intuition | |
2668 | # of exeext. | |
572eed31 SP |
2669 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2670 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2671 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2672 | ||
2673 | # The possible output files: | |
2674 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2675 | ||
7f7d329e SP |
2676 | ac_rmfiles= |
2677 | for ac_file in $ac_files | |
2678 | do | |
2679 | case $ac_file in | |
572eed31 | 2680 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7f7d329e SP |
2681 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2682 | esac | |
2683 | done | |
2684 | rm -f $ac_rmfiles | |
2685 | ||
2686 | if { (ac_try="$ac_link_default" | |
2687 | case "(($ac_try" in | |
2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2689 | *) ac_try_echo=$ac_try;; | |
2690 | esac | |
572eed31 SP |
2691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2692 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2693 | (eval "$ac_link_default") 2>&5 |
1daf06b9 | 2694 | ac_status=$? |
572eed31 | 2695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 | 2696 | (exit $ac_status); }; then |
7f7d329e SP |
2697 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2698 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2699 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2700 | # so that the user can short-circuit this test for compilers unknown to | |
2701 | # Autoconf. | |
d2816d4c | 2702 | for ac_file in $ac_files '' |
cdfe1392 SP |
2703 | do |
2704 | test -f "$ac_file" || continue | |
1daf06b9 | 2705 | case $ac_file in |
572eed31 | 2706 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c9e4e868 | 2707 | ;; |
cdfe1392 | 2708 | [ab].out ) |
c9e4e868 SP |
2709 | # We found the default executable, but exeext='' is most |
2710 | # certainly right. | |
2711 | break;; | |
cdfe1392 | 2712 | *.* ) |
7f7d329e SP |
2713 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2714 | then :; else | |
2715 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2716 | fi | |
2717 | # We set ac_cv_exeext here because the later test for it is not | |
2718 | # safe: cross compilers may not add the suffix if given an `-o' | |
2719 | # argument, so we may need to know it at that point already. | |
2720 | # Even if this section looks crufty: it has the advantage of | |
2721 | # actually working. | |
c9e4e868 | 2722 | break;; |
cdfe1392 | 2723 | * ) |
c9e4e868 | 2724 | break;; |
1daf06b9 SP |
2725 | esac |
2726 | done | |
7f7d329e SP |
2727 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2728 | ||
1daf06b9 | 2729 | else |
d2816d4c SP |
2730 | ac_file='' |
2731 | fi | |
2732 | ||
572eed31 SP |
2733 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2734 | $as_echo "$ac_file" >&6; } | |
d2816d4c | 2735 | if test -z "$ac_file"; then |
572eed31 | 2736 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
2737 | sed 's/^/| /' conftest.$ac_ext >&5 |
2738 | ||
572eed31 SP |
2739 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2741 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
cdfe1392 | 2742 | See \`config.log' for more details." >&5 |
572eed31 | 2743 | $as_echo "$as_me: error: C compiler cannot create executables |
cdfe1392 | 2744 | See \`config.log' for more details." >&2;} |
572eed31 | 2745 | { (exit 77); exit 77; }; }; } |
1daf06b9 SP |
2746 | fi |
2747 | ||
2748 | ac_exeext=$ac_cv_exeext | |
1daf06b9 | 2749 | |
7f7d329e | 2750 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2751 | # the compiler is broken, or we cross compile. |
572eed31 SP |
2752 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2753 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1daf06b9 SP |
2754 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2755 | # If not cross compiling, check that we can run a simple program. | |
2756 | if test "$cross_compiling" != yes; then | |
2757 | if { ac_try='./$ac_file' | |
7f7d329e SP |
2758 | { (case "(($ac_try" in |
2759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2760 | *) ac_try_echo=$ac_try;; | |
2761 | esac | |
572eed31 SP |
2762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2763 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2764 | (eval "$ac_try") 2>&5 |
1daf06b9 | 2765 | ac_status=$? |
572eed31 | 2766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 SP |
2767 | (exit $ac_status); }; }; then |
2768 | cross_compiling=no | |
1227625a | 2769 | else |
1daf06b9 SP |
2770 | if test "$cross_compiling" = maybe; then |
2771 | cross_compiling=yes | |
2772 | else | |
572eed31 SP |
2773 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2774 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2775 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
cdfe1392 SP |
2776 | If you meant to cross compile, use \`--host'. |
2777 | See \`config.log' for more details." >&5 | |
572eed31 | 2778 | $as_echo "$as_me: error: cannot run C compiled programs. |
cdfe1392 SP |
2779 | If you meant to cross compile, use \`--host'. |
2780 | See \`config.log' for more details." >&2;} | |
572eed31 | 2781 | { (exit 1); exit 1; }; }; } |
1daf06b9 | 2782 | fi |
1227625a | 2783 | fi |
1227625a | 2784 | fi |
572eed31 SP |
2785 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2786 | $as_echo "yes" >&6; } | |
1daf06b9 | 2787 | |
572eed31 | 2788 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1daf06b9 | 2789 | ac_clean_files=$ac_clean_files_save |
7f7d329e | 2790 | # Check that the compiler produces executables we can run. If not, either |
1daf06b9 | 2791 | # the compiler is broken, or we cross compile. |
572eed31 SP |
2792 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2793 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2794 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2795 | $as_echo "$cross_compiling" >&6; } | |
7f7d329e | 2796 | |
572eed31 SP |
2797 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2798 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7f7d329e SP |
2799 | if { (ac_try="$ac_link" |
2800 | case "(($ac_try" in | |
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2802 | *) ac_try_echo=$ac_try;; | |
2803 | esac | |
572eed31 SP |
2804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2805 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2806 | (eval "$ac_link") 2>&5 |
1daf06b9 | 2807 | ac_status=$? |
572eed31 | 2808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 SP |
2809 | (exit $ac_status); }; then |
2810 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2811 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2812 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2813 | # `rm'. | |
cdfe1392 SP |
2814 | for ac_file in conftest.exe conftest conftest.*; do |
2815 | test -f "$ac_file" || continue | |
1daf06b9 | 2816 | case $ac_file in |
572eed31 | 2817 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1daf06b9 | 2818 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c9e4e868 | 2819 | break;; |
1daf06b9 SP |
2820 | * ) break;; |
2821 | esac | |
2822 | done | |
1227625a | 2823 | else |
572eed31 SP |
2824 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2826 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
cdfe1392 | 2827 | See \`config.log' for more details." >&5 |
572eed31 | 2828 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
cdfe1392 | 2829 | See \`config.log' for more details." >&2;} |
572eed31 | 2830 | { (exit 1); exit 1; }; }; } |
1227625a SP |
2831 | fi |
2832 | ||
1daf06b9 | 2833 | rm -f conftest$ac_cv_exeext |
572eed31 SP |
2834 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2835 | $as_echo "$ac_cv_exeext" >&6; } | |
1227625a | 2836 | |
1daf06b9 SP |
2837 | rm -f conftest.$ac_ext |
2838 | EXEEXT=$ac_cv_exeext | |
2839 | ac_exeext=$EXEEXT | |
572eed31 SP |
2840 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2841 | $as_echo_n "checking for suffix of object files... " >&6; } | |
1daf06b9 | 2842 | if test "${ac_cv_objext+set}" = set; then |
572eed31 | 2843 | $as_echo_n "(cached) " >&6 |
ddd2ef55 | 2844 | else |
1daf06b9 | 2845 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2846 | /* confdefs.h. */ |
2847 | _ACEOF | |
2848 | cat confdefs.h >>conftest.$ac_ext | |
2849 | cat >>conftest.$ac_ext <<_ACEOF | |
2850 | /* end confdefs.h. */ | |
1daf06b9 | 2851 | |
1daf06b9 SP |
2852 | int |
2853 | main () | |
2854 | { | |
2855 | ||
2856 | ; | |
2857 | return 0; | |
2858 | } | |
2859 | _ACEOF | |
2860 | rm -f conftest.o conftest.obj | |
7f7d329e SP |
2861 | if { (ac_try="$ac_compile" |
2862 | case "(($ac_try" in | |
2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2864 | *) ac_try_echo=$ac_try;; | |
2865 | esac | |
572eed31 SP |
2866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2867 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2868 | (eval "$ac_compile") 2>&5 |
1daf06b9 | 2869 | ac_status=$? |
572eed31 | 2870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1daf06b9 | 2871 | (exit $ac_status); }; then |
7f7d329e SP |
2872 | for ac_file in conftest.o conftest.obj conftest.*; do |
2873 | test -f "$ac_file" || continue; | |
1daf06b9 | 2874 | case $ac_file in |
572eed31 | 2875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1daf06b9 SP |
2876 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2877 | break;; | |
2878 | esac | |
2879 | done | |
2880 | else | |
572eed31 | 2881 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
2882 | sed 's/^/| /' conftest.$ac_ext >&5 |
2883 | ||
572eed31 SP |
2884 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2886 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
cdfe1392 | 2887 | See \`config.log' for more details." >&5 |
572eed31 | 2888 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
cdfe1392 | 2889 | See \`config.log' for more details." >&2;} |
572eed31 | 2890 | { (exit 1); exit 1; }; }; } |
ddd2ef55 SP |
2891 | fi |
2892 | ||
1daf06b9 SP |
2893 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2894 | fi | |
572eed31 SP |
2895 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2896 | $as_echo "$ac_cv_objext" >&6; } | |
1daf06b9 SP |
2897 | OBJEXT=$ac_cv_objext |
2898 | ac_objext=$OBJEXT | |
572eed31 SP |
2899 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2900 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
1daf06b9 | 2901 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
572eed31 | 2902 | $as_echo_n "(cached) " >&6 |
1227625a | 2903 | else |
1daf06b9 | 2904 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
2905 | /* confdefs.h. */ |
2906 | _ACEOF | |
2907 | cat confdefs.h >>conftest.$ac_ext | |
2908 | cat >>conftest.$ac_ext <<_ACEOF | |
2909 | /* end confdefs.h. */ | |
1daf06b9 | 2910 | |
1daf06b9 SP |
2911 | int |
2912 | main () | |
2913 | { | |
2914 | #ifndef __GNUC__ | |
2915 | choke me | |
2916 | #endif | |
2917 | ||
2918 | ; | |
2919 | return 0; | |
2920 | } | |
2921 | _ACEOF | |
2922 | rm -f conftest.$ac_objext | |
7f7d329e SP |
2923 | if { (ac_try="$ac_compile" |
2924 | case "(($ac_try" in | |
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2926 | *) ac_try_echo=$ac_try;; | |
2927 | esac | |
572eed31 SP |
2928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2929 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 2930 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 2931 | ac_status=$? |
c9e4e868 SP |
2932 | grep -v '^ *+' conftest.er1 >conftest.err |
2933 | rm -f conftest.er1 | |
2934 | cat conftest.err >&5 | |
572eed31 | 2935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
2936 | (exit $ac_status); } && { |
2937 | test -z "$ac_c_werror_flag" || | |
2938 | test ! -s conftest.err | |
2939 | } && test -s conftest.$ac_objext; then | |
1daf06b9 SP |
2940 | ac_compiler_gnu=yes |
2941 | else | |
572eed31 | 2942 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
2943 | sed 's/^/| /' conftest.$ac_ext >&5 |
2944 | ||
7f7d329e | 2945 | ac_compiler_gnu=no |
1daf06b9 | 2946 | fi |
7f7d329e SP |
2947 | |
2948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1daf06b9 SP |
2949 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2950 | ||
2951 | fi | |
572eed31 SP |
2952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2953 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2954 | if test $ac_compiler_gnu = yes; then | |
2955 | GCC=yes | |
2956 | else | |
2957 | GCC= | |
2958 | fi | |
1daf06b9 SP |
2959 | ac_test_CFLAGS=${CFLAGS+set} |
2960 | ac_save_CFLAGS=$CFLAGS | |
572eed31 SP |
2961 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2962 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
1daf06b9 | 2963 | if test "${ac_cv_prog_cc_g+set}" = set; then |
572eed31 | 2964 | $as_echo_n "(cached) " >&6 |
1daf06b9 | 2965 | else |
7f7d329e SP |
2966 | ac_save_c_werror_flag=$ac_c_werror_flag |
2967 | ac_c_werror_flag=yes | |
2968 | ac_cv_prog_cc_g=no | |
2969 | CFLAGS="-g" | |
2970 | cat >conftest.$ac_ext <<_ACEOF | |
2971 | /* confdefs.h. */ | |
2972 | _ACEOF | |
2973 | cat confdefs.h >>conftest.$ac_ext | |
2974 | cat >>conftest.$ac_ext <<_ACEOF | |
2975 | /* end confdefs.h. */ | |
2976 | ||
2977 | int | |
2978 | main () | |
2979 | { | |
2980 | ||
2981 | ; | |
2982 | return 0; | |
2983 | } | |
2984 | _ACEOF | |
2985 | rm -f conftest.$ac_objext | |
2986 | if { (ac_try="$ac_compile" | |
2987 | case "(($ac_try" in | |
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2989 | *) ac_try_echo=$ac_try;; | |
2990 | esac | |
572eed31 SP |
2991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2992 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e SP |
2993 | (eval "$ac_compile") 2>conftest.er1 |
2994 | ac_status=$? | |
2995 | grep -v '^ *+' conftest.er1 >conftest.err | |
2996 | rm -f conftest.er1 | |
2997 | cat conftest.err >&5 | |
572eed31 | 2998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
2999 | (exit $ac_status); } && { |
3000 | test -z "$ac_c_werror_flag" || | |
3001 | test ! -s conftest.err | |
3002 | } && test -s conftest.$ac_objext; then | |
7f7d329e SP |
3003 | ac_cv_prog_cc_g=yes |
3004 | else | |
572eed31 | 3005 | $as_echo "$as_me: failed program was:" >&5 |
7f7d329e SP |
3006 | sed 's/^/| /' conftest.$ac_ext >&5 |
3007 | ||
3008 | CFLAGS="" | |
3009 | cat >conftest.$ac_ext <<_ACEOF | |
3010 | /* confdefs.h. */ | |
3011 | _ACEOF | |
3012 | cat confdefs.h >>conftest.$ac_ext | |
3013 | cat >>conftest.$ac_ext <<_ACEOF | |
3014 | /* end confdefs.h. */ | |
3015 | ||
3016 | int | |
3017 | main () | |
3018 | { | |
3019 | ||
3020 | ; | |
3021 | return 0; | |
3022 | } | |
3023 | _ACEOF | |
3024 | rm -f conftest.$ac_objext | |
3025 | if { (ac_try="$ac_compile" | |
3026 | case "(($ac_try" in | |
3027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3028 | *) ac_try_echo=$ac_try;; | |
3029 | esac | |
572eed31 SP |
3030 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3031 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e SP |
3032 | (eval "$ac_compile") 2>conftest.er1 |
3033 | ac_status=$? | |
3034 | grep -v '^ *+' conftest.er1 >conftest.err | |
3035 | rm -f conftest.er1 | |
3036 | cat conftest.err >&5 | |
572eed31 | 3037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3038 | (exit $ac_status); } && { |
3039 | test -z "$ac_c_werror_flag" || | |
3040 | test ! -s conftest.err | |
3041 | } && test -s conftest.$ac_objext; then | |
7f7d329e SP |
3042 | : |
3043 | else | |
572eed31 | 3044 | $as_echo "$as_me: failed program was:" >&5 |
7f7d329e SP |
3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
3046 | ||
3047 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3048 | CFLAGS="-g" | |
3049 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
3050 | /* confdefs.h. */ |
3051 | _ACEOF | |
3052 | cat confdefs.h >>conftest.$ac_ext | |
3053 | cat >>conftest.$ac_ext <<_ACEOF | |
3054 | /* end confdefs.h. */ | |
1daf06b9 | 3055 | |
1daf06b9 SP |
3056 | int |
3057 | main () | |
3058 | { | |
3059 | ||
3060 | ; | |
3061 | return 0; | |
3062 | } | |
3063 | _ACEOF | |
3064 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3065 | if { (ac_try="$ac_compile" |
3066 | case "(($ac_try" in | |
3067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3068 | *) ac_try_echo=$ac_try;; | |
3069 | esac | |
572eed31 SP |
3070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3071 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3072 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 3073 | ac_status=$? |
c9e4e868 SP |
3074 | grep -v '^ *+' conftest.er1 >conftest.err |
3075 | rm -f conftest.er1 | |
3076 | cat conftest.err >&5 | |
572eed31 | 3077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3078 | (exit $ac_status); } && { |
3079 | test -z "$ac_c_werror_flag" || | |
3080 | test ! -s conftest.err | |
3081 | } && test -s conftest.$ac_objext; then | |
1227625a SP |
3082 | ac_cv_prog_cc_g=yes |
3083 | else | |
572eed31 | 3084 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
3085 | sed 's/^/| /' conftest.$ac_ext >&5 |
3086 | ||
7f7d329e SP |
3087 | |
3088 | fi | |
3089 | ||
3090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3091 | fi | |
3092 | ||
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 3094 | fi |
7f7d329e SP |
3095 | |
3096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3097 | ac_c_werror_flag=$ac_save_c_werror_flag | |
1227625a | 3098 | fi |
572eed31 SP |
3099 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3100 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ddd2ef55 | 3101 | if test "$ac_test_CFLAGS" = set; then |
1daf06b9 | 3102 | CFLAGS=$ac_save_CFLAGS |
ddd2ef55 SP |
3103 | elif test $ac_cv_prog_cc_g = yes; then |
3104 | if test "$GCC" = yes; then | |
1227625a SP |
3105 | CFLAGS="-g -O2" |
3106 | else | |
ddd2ef55 | 3107 | CFLAGS="-g" |
1227625a SP |
3108 | fi |
3109 | else | |
ddd2ef55 SP |
3110 | if test "$GCC" = yes; then |
3111 | CFLAGS="-O2" | |
3112 | else | |
3113 | CFLAGS= | |
3114 | fi | |
1227625a | 3115 | fi |
572eed31 SP |
3116 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3117 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7f7d329e | 3118 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
572eed31 | 3119 | $as_echo_n "(cached) " >&6 |
cdfe1392 | 3120 | else |
7f7d329e | 3121 | ac_cv_prog_cc_c89=no |
cdfe1392 SP |
3122 | ac_save_CC=$CC |
3123 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
3124 | /* confdefs.h. */ |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
3129 | #include <stdarg.h> | |
3130 | #include <stdio.h> | |
3131 | #include <sys/types.h> | |
3132 | #include <sys/stat.h> | |
3133 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3134 | struct buf { int x; }; | |
3135 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3136 | static char *e (p, i) | |
3137 | char **p; | |
3138 | int i; | |
3139 | { | |
3140 | return p[i]; | |
3141 | } | |
3142 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3143 | { | |
3144 | char *s; | |
3145 | va_list v; | |
3146 | va_start (v,p); | |
3147 | s = g (p, va_arg (v,int)); | |
3148 | va_end (v); | |
3149 | return s; | |
3150 | } | |
c9e4e868 SP |
3151 | |
3152 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3153 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3154 | These don't provoke an error unfortunately, instead are silently treated | |
7f7d329e | 3155 | as 'x'. The following induces an error, until -std is added to get |
c9e4e868 SP |
3156 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3157 | array size at least. It's necessary to write '\x00'==0 to get something | |
7f7d329e | 3158 | that's true only with -std. */ |
c9e4e868 SP |
3159 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3160 | ||
7f7d329e SP |
3161 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3162 | inside strings and character constants. */ | |
3163 | #define FOO(x) 'x' | |
3164 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3165 | ||
cdfe1392 SP |
3166 | int test (int i, double x); |
3167 | struct s1 {int (*f) (int a);}; | |
3168 | struct s2 {int (*f) (double a);}; | |
3169 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3170 | int argc; | |
3171 | char **argv; | |
3172 | int | |
3173 | main () | |
3174 | { | |
3175 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3176 | ; | |
3177 | return 0; | |
3178 | } | |
3179 | _ACEOF | |
7f7d329e SP |
3180 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3181 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
cdfe1392 SP |
3182 | do |
3183 | CC="$ac_save_CC $ac_arg" | |
3184 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3185 | if { (ac_try="$ac_compile" |
3186 | case "(($ac_try" in | |
3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3188 | *) ac_try_echo=$ac_try;; | |
3189 | esac | |
572eed31 SP |
3190 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3191 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3192 | (eval "$ac_compile") 2>conftest.er1 |
cdfe1392 | 3193 | ac_status=$? |
c9e4e868 SP |
3194 | grep -v '^ *+' conftest.er1 >conftest.err |
3195 | rm -f conftest.er1 | |
3196 | cat conftest.err >&5 | |
572eed31 | 3197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3198 | (exit $ac_status); } && { |
3199 | test -z "$ac_c_werror_flag" || | |
3200 | test ! -s conftest.err | |
3201 | } && test -s conftest.$ac_objext; then | |
7f7d329e | 3202 | ac_cv_prog_cc_c89=$ac_arg |
cdfe1392 | 3203 | else |
572eed31 | 3204 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
3206 | ||
7f7d329e | 3207 | |
cdfe1392 | 3208 | fi |
7f7d329e SP |
3209 | |
3210 | rm -f core conftest.err conftest.$ac_objext | |
3211 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
cdfe1392 | 3212 | done |
7f7d329e | 3213 | rm -f conftest.$ac_ext |
cdfe1392 SP |
3214 | CC=$ac_save_CC |
3215 | ||
3216 | fi | |
7f7d329e SP |
3217 | # AC_CACHE_VAL |
3218 | case "x$ac_cv_prog_cc_c89" in | |
3219 | x) | |
572eed31 SP |
3220 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3221 | $as_echo "none needed" >&6; } ;; | |
7f7d329e | 3222 | xno) |
572eed31 SP |
3223 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3224 | $as_echo "unsupported" >&6; } ;; | |
cdfe1392 | 3225 | *) |
7f7d329e | 3226 | CC="$CC $ac_cv_prog_cc_c89" |
572eed31 SP |
3227 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3228 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
cdfe1392 SP |
3229 | esac |
3230 | ||
cdfe1392 | 3231 | |
1daf06b9 SP |
3232 | ac_ext=c |
3233 | ac_cpp='$CPP $CPPFLAGS' | |
3234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3237 | ||
3238 | ac_aux_dir= | |
7f7d329e SP |
3239 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3240 | if test -f "$ac_dir/install-sh"; then | |
1daf06b9 SP |
3241 | ac_aux_dir=$ac_dir |
3242 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3243 | break | |
7f7d329e | 3244 | elif test -f "$ac_dir/install.sh"; then |
1daf06b9 SP |
3245 | ac_aux_dir=$ac_dir |
3246 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3247 | break | |
7f7d329e | 3248 | elif test -f "$ac_dir/shtool"; then |
1daf06b9 SP |
3249 | ac_aux_dir=$ac_dir |
3250 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3251 | break | |
3252 | fi | |
3253 | done | |
3254 | if test -z "$ac_aux_dir"; then | |
572eed31 SP |
3255 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3256 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1daf06b9 SP |
3257 | { (exit 1); exit 1; }; } |
3258 | fi | |
7f7d329e SP |
3259 | |
3260 | # These three variables are undocumented and unsupported, | |
3261 | # and are intended to be withdrawn in a future Autoconf release. | |
3262 | # They can cause serious problems if a builder's source tree is in a directory | |
3263 | # whose full name contains unusual characters. | |
3264 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3265 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3266 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3267 | ||
1227625a SP |
3268 | |
3269 | # Find a good install program. We prefer a C program (faster), | |
3270 | # so one script is as good as another. But avoid the broken or | |
3271 | # incompatible versions: | |
3272 | # SysV /etc/install, /usr/sbin/install | |
3273 | # SunOS /usr/etc/install | |
3274 | # IRIX /sbin/install | |
3275 | # AIX /bin/install | |
1daf06b9 | 3276 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
ddd2ef55 | 3277 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1227625a SP |
3278 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3279 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c9e4e868 | 3280 | # OS/2's system install, which has a completely different semantic |
1227625a | 3281 | # ./install, which can be erroneously created by make from ./install.sh. |
572eed31 SP |
3282 | # Reject install programs that cannot install multiple files. |
3283 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3284 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
1227625a | 3285 | if test -z "$INSTALL"; then |
1daf06b9 | 3286 | if test "${ac_cv_path_install+set}" = set; then |
572eed31 | 3287 | $as_echo_n "(cached) " >&6 |
1daf06b9 SP |
3288 | else |
3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3290 | for as_dir in $PATH | |
3291 | do | |
3292 | IFS=$as_save_IFS | |
3293 | test -z "$as_dir" && as_dir=. | |
3294 | # Account for people who put trailing slashes in PATH elements. | |
3295 | case $as_dir/ in | |
3296 | ./ | .// | /cC/* | \ | |
3297 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
c9e4e868 | 3298 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
1daf06b9 SP |
3299 | /usr/ucb/* ) ;; |
3300 | *) | |
3301 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3302 | # Don't use installbsd from OSF since it installs stuff as root | |
3303 | # by default. | |
3304 | for ac_prog in ginstall scoinst install; do | |
3305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d2816d4c | 3306 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
c9e4e868 SP |
3307 | if test $ac_prog = install && |
3308 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3309 | # AIX install. It has an incompatible calling convention. | |
3310 | : | |
3311 | elif test $ac_prog = install && | |
3312 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3313 | # program-specific install script used by HP pwplus--don't use. | |
3314 | : | |
3315 | else | |
572eed31 SP |
3316 | rm -rf conftest.one conftest.two conftest.dir |
3317 | echo one > conftest.one | |
3318 | echo two > conftest.two | |
3319 | mkdir conftest.dir | |
3320 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3321 | test -s conftest.one && test -s conftest.two && | |
3322 | test -s conftest.dir/conftest.one && | |
3323 | test -s conftest.dir/conftest.two | |
3324 | then | |
3325 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3326 | break 3 | |
3327 | fi | |
c9e4e868 SP |
3328 | fi |
3329 | fi | |
1daf06b9 SP |
3330 | done |
3331 | done | |
3332 | ;; | |
3333 | esac | |
572eed31 | 3334 | |
1daf06b9 | 3335 | done |
7f7d329e | 3336 | IFS=$as_save_IFS |
1daf06b9 | 3337 | |
572eed31 | 3338 | rm -rf conftest.one conftest.two conftest.dir |
1227625a SP |
3339 | |
3340 | fi | |
3341 | if test "${ac_cv_path_install+set}" = set; then | |
1daf06b9 | 3342 | INSTALL=$ac_cv_path_install |
1227625a | 3343 | else |
7f7d329e SP |
3344 | # As a last resort, use the slow shell script. Don't cache a |
3345 | # value for INSTALL within a source directory, because that will | |
1227625a | 3346 | # break other packages using the cache if that directory is |
7f7d329e | 3347 | # removed, or if the value is a relative name. |
1daf06b9 | 3348 | INSTALL=$ac_install_sh |
1227625a SP |
3349 | fi |
3350 | fi | |
572eed31 SP |
3351 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3352 | $as_echo "$INSTALL" >&6; } | |
1227625a SP |
3353 | |
3354 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3355 | # It thinks the first close brace ends the variable substitution. | |
3356 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3357 | ||
1daf06b9 | 3358 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
ddd2ef55 | 3359 | |
1227625a SP |
3360 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3361 | ||
3362 | ||
1227625a | 3363 | |
e7d18957 SP |
3364 | ac_ext=c |
3365 | ac_cpp='$CPP $CPPFLAGS' | |
3366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
572eed31 SP |
3369 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3370 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
e7d18957 SP |
3371 | # On Suns, sometimes $CPP names a directory. |
3372 | if test -n "$CPP" && test -d "$CPP"; then | |
3373 | CPP= | |
1227625a | 3374 | fi |
e7d18957 SP |
3375 | if test -z "$CPP"; then |
3376 | if test "${ac_cv_prog_CPP+set}" = set; then | |
572eed31 | 3377 | $as_echo_n "(cached) " >&6 |
1227625a | 3378 | else |
e7d18957 SP |
3379 | # Double quotes because CPP needs to be expanded |
3380 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3381 | do | |
3382 | ac_preproc_ok=false | |
3383 | for ac_c_preproc_warn_flag in '' yes | |
3384 | do | |
3385 | # Use a header file that comes with gcc, so configuring glibc | |
3386 | # with a fresh cross-compiler works. | |
3387 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3388 | # <limits.h> exists even on freestanding compilers. | |
3389 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3390 | # not just through cpp. "Syntax error" is here to catch this case. | |
3391 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3392 | /* confdefs.h. */ |
3393 | _ACEOF | |
3394 | cat confdefs.h >>conftest.$ac_ext | |
3395 | cat >>conftest.$ac_ext <<_ACEOF | |
3396 | /* end confdefs.h. */ | |
3397 | #ifdef __STDC__ | |
3398 | # include <limits.h> | |
3399 | #else | |
3400 | # include <assert.h> | |
3401 | #endif | |
c9e4e868 | 3402 | Syntax error |
e7d18957 | 3403 | _ACEOF |
7f7d329e SP |
3404 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3405 | case "(($ac_try" in | |
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3407 | *) ac_try_echo=$ac_try;; | |
3408 | esac | |
572eed31 SP |
3409 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3410 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e7d18957 SP |
3412 | ac_status=$? |
3413 | grep -v '^ *+' conftest.er1 >conftest.err | |
3414 | rm -f conftest.er1 | |
3415 | cat conftest.err >&5 | |
572eed31 | 3416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3417 | (exit $ac_status); } >/dev/null && { |
3418 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3419 | test ! -s conftest.err | |
3420 | }; then | |
e7d18957 | 3421 | : |
1227625a | 3422 | else |
572eed31 | 3423 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 | 3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
1227625a | 3425 | |
e7d18957 SP |
3426 | # Broken: fails on valid input. |
3427 | continue | |
cdfe1392 | 3428 | fi |
7f7d329e | 3429 | |
e7d18957 | 3430 | rm -f conftest.err conftest.$ac_ext |
cdfe1392 | 3431 | |
7f7d329e | 3432 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3433 | # can be detected and how. |
3434 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3435 | /* confdefs.h. */ |
3436 | _ACEOF | |
3437 | cat confdefs.h >>conftest.$ac_ext | |
3438 | cat >>conftest.$ac_ext <<_ACEOF | |
3439 | /* end confdefs.h. */ | |
3440 | #include <ac_nonexistent.h> | |
3441 | _ACEOF | |
7f7d329e SP |
3442 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3443 | case "(($ac_try" in | |
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3445 | *) ac_try_echo=$ac_try;; | |
3446 | esac | |
572eed31 SP |
3447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3448 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e7d18957 SP |
3450 | ac_status=$? |
3451 | grep -v '^ *+' conftest.er1 >conftest.err | |
3452 | rm -f conftest.er1 | |
3453 | cat conftest.err >&5 | |
572eed31 | 3454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3455 | (exit $ac_status); } >/dev/null && { |
3456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3457 | test ! -s conftest.err | |
3458 | }; then | |
e7d18957 SP |
3459 | # Broken: success on invalid input. |
3460 | continue | |
c38e5b6a | 3461 | else |
572eed31 | 3462 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 | 3463 | sed 's/^/| /' conftest.$ac_ext >&5 |
c38e5b6a | 3464 | |
e7d18957 SP |
3465 | # Passes both tests. |
3466 | ac_preproc_ok=: | |
3467 | break | |
c38e5b6a | 3468 | fi |
7f7d329e | 3469 | |
e7d18957 | 3470 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 3471 | |
e7d18957 SP |
3472 | done |
3473 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3474 | rm -f conftest.err conftest.$ac_ext | |
3475 | if $ac_preproc_ok; then | |
3476 | break | |
d8574d45 SP |
3477 | fi |
3478 | ||
e7d18957 SP |
3479 | done |
3480 | ac_cv_prog_CPP=$CPP | |
d6967896 SP |
3481 | |
3482 | fi | |
e7d18957 | 3483 | CPP=$ac_cv_prog_CPP |
d6967896 | 3484 | else |
e7d18957 SP |
3485 | ac_cv_prog_CPP=$CPP |
3486 | fi | |
572eed31 SP |
3487 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3488 | $as_echo "$CPP" >&6; } | |
e7d18957 SP |
3489 | ac_preproc_ok=false |
3490 | for ac_c_preproc_warn_flag in '' yes | |
3491 | do | |
3492 | # Use a header file that comes with gcc, so configuring glibc | |
3493 | # with a fresh cross-compiler works. | |
3494 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3495 | # <limits.h> exists even on freestanding compilers. | |
3496 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3497 | # not just through cpp. "Syntax error" is here to catch this case. | |
3498 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3499 | /* confdefs.h. */ |
3500 | _ACEOF | |
3501 | cat confdefs.h >>conftest.$ac_ext | |
3502 | cat >>conftest.$ac_ext <<_ACEOF | |
3503 | /* end confdefs.h. */ | |
3504 | #ifdef __STDC__ | |
3505 | # include <limits.h> | |
3506 | #else | |
3507 | # include <assert.h> | |
3508 | #endif | |
c9e4e868 | 3509 | Syntax error |
e7d18957 | 3510 | _ACEOF |
7f7d329e SP |
3511 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3512 | case "(($ac_try" in | |
3513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3514 | *) ac_try_echo=$ac_try;; | |
3515 | esac | |
572eed31 SP |
3516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3517 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3518 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e7d18957 SP |
3519 | ac_status=$? |
3520 | grep -v '^ *+' conftest.er1 >conftest.err | |
3521 | rm -f conftest.er1 | |
3522 | cat conftest.err >&5 | |
572eed31 | 3523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3524 | (exit $ac_status); } >/dev/null && { |
3525 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3526 | test ! -s conftest.err | |
3527 | }; then | |
e7d18957 SP |
3528 | : |
3529 | else | |
572eed31 | 3530 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
3531 | sed 's/^/| /' conftest.$ac_ext >&5 |
3532 | ||
3533 | # Broken: fails on valid input. | |
3534 | continue | |
3535 | fi | |
7f7d329e | 3536 | |
e7d18957 SP |
3537 | rm -f conftest.err conftest.$ac_ext |
3538 | ||
7f7d329e | 3539 | # OK, works on sane cases. Now check whether nonexistent headers |
e7d18957 SP |
3540 | # can be detected and how. |
3541 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3542 | /* confdefs.h. */ |
3543 | _ACEOF | |
3544 | cat confdefs.h >>conftest.$ac_ext | |
3545 | cat >>conftest.$ac_ext <<_ACEOF | |
3546 | /* end confdefs.h. */ | |
3547 | #include <ac_nonexistent.h> | |
3548 | _ACEOF | |
7f7d329e SP |
3549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3550 | case "(($ac_try" in | |
3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3552 | *) ac_try_echo=$ac_try;; | |
3553 | esac | |
572eed31 SP |
3554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3555 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3556 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e7d18957 SP |
3557 | ac_status=$? |
3558 | grep -v '^ *+' conftest.er1 >conftest.err | |
3559 | rm -f conftest.er1 | |
3560 | cat conftest.err >&5 | |
572eed31 | 3561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3562 | (exit $ac_status); } >/dev/null && { |
3563 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3564 | test ! -s conftest.err | |
3565 | }; then | |
e7d18957 SP |
3566 | # Broken: success on invalid input. |
3567 | continue | |
3568 | else | |
572eed31 | 3569 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
3571 | ||
3572 | # Passes both tests. | |
3573 | ac_preproc_ok=: | |
3574 | break | |
3575 | fi | |
7f7d329e | 3576 | |
e7d18957 SP |
3577 | rm -f conftest.err conftest.$ac_ext |
3578 | ||
3579 | done | |
3580 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3581 | rm -f conftest.err conftest.$ac_ext | |
3582 | if $ac_preproc_ok; then | |
3583 | : | |
3584 | else | |
572eed31 SP |
3585 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3586 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3587 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
e7d18957 | 3588 | See \`config.log' for more details." >&5 |
572eed31 | 3589 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
e7d18957 | 3590 | See \`config.log' for more details." >&2;} |
572eed31 | 3591 | { (exit 1); exit 1; }; }; } |
e7d18957 SP |
3592 | fi |
3593 | ||
3594 | ac_ext=c | |
3595 | ac_cpp='$CPP $CPPFLAGS' | |
3596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3599 | ||
3600 | ||
572eed31 SP |
3601 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3602 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7f7d329e | 3603 | if test "${ac_cv_path_GREP+set}" = set; then |
572eed31 | 3604 | $as_echo_n "(cached) " >&6 |
7f7d329e | 3605 | else |
572eed31 | 3606 | if test -z "$GREP"; then |
7f7d329e | 3607 | ac_path_GREP_found=false |
572eed31 SP |
3608 | # Loop through the user's path and test for each of PROGNAME-LIST |
3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7f7d329e SP |
3610 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3611 | do | |
3612 | IFS=$as_save_IFS | |
3613 | test -z "$as_dir" && as_dir=. | |
3614 | for ac_prog in grep ggrep; do | |
572eed31 SP |
3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
3616 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3617 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3618 | # Check for GNU ac_path_GREP and select it if it is found. | |
7f7d329e SP |
3619 | # Check for GNU $ac_path_GREP |
3620 | case `"$ac_path_GREP" --version 2>&1` in | |
3621 | *GNU*) | |
3622 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3623 | *) | |
3624 | ac_count=0 | |
572eed31 | 3625 | $as_echo_n 0123456789 >"conftest.in" |
7f7d329e SP |
3626 | while : |
3627 | do | |
3628 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3629 | mv "conftest.tmp" "conftest.in" | |
3630 | cp "conftest.in" "conftest.nl" | |
572eed31 | 3631 | $as_echo 'GREP' >> "conftest.nl" |
7f7d329e SP |
3632 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3633 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3634 | ac_count=`expr $ac_count + 1` | |
3635 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3636 | # Best one so far, save it but keep looking for a better one | |
3637 | ac_cv_path_GREP="$ac_path_GREP" | |
3638 | ac_path_GREP_max=$ac_count | |
3639 | fi | |
3640 | # 10*(2^10) chars as input seems more than enough | |
3641 | test $ac_count -gt 10 && break | |
3642 | done | |
3643 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3644 | esac | |
3645 | ||
572eed31 SP |
3646 | $ac_path_GREP_found && break 3 |
3647 | done | |
7f7d329e SP |
3648 | done |
3649 | done | |
7f7d329e | 3650 | IFS=$as_save_IFS |
572eed31 SP |
3651 | if test -z "$ac_cv_path_GREP"; then |
3652 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3653 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7f7d329e | 3654 | { (exit 1); exit 1; }; } |
572eed31 | 3655 | fi |
7f7d329e SP |
3656 | else |
3657 | ac_cv_path_GREP=$GREP | |
3658 | fi | |
3659 | ||
7f7d329e | 3660 | fi |
572eed31 SP |
3661 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3662 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7f7d329e SP |
3663 | GREP="$ac_cv_path_GREP" |
3664 | ||
3665 | ||
572eed31 SP |
3666 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3667 | $as_echo_n "checking for egrep... " >&6; } | |
7f7d329e | 3668 | if test "${ac_cv_path_EGREP+set}" = set; then |
572eed31 | 3669 | $as_echo_n "(cached) " >&6 |
7f7d329e SP |
3670 | else |
3671 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3672 | then ac_cv_path_EGREP="$GREP -E" | |
3673 | else | |
572eed31 | 3674 | if test -z "$EGREP"; then |
7f7d329e | 3675 | ac_path_EGREP_found=false |
572eed31 SP |
3676 | # Loop through the user's path and test for each of PROGNAME-LIST |
3677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7f7d329e SP |
3678 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3679 | do | |
3680 | IFS=$as_save_IFS | |
3681 | test -z "$as_dir" && as_dir=. | |
3682 | for ac_prog in egrep; do | |
572eed31 SP |
3683 | for ac_exec_ext in '' $ac_executable_extensions; do |
3684 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3685 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3686 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7f7d329e SP |
3687 | # Check for GNU $ac_path_EGREP |
3688 | case `"$ac_path_EGREP" --version 2>&1` in | |
3689 | *GNU*) | |
3690 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3691 | *) | |
3692 | ac_count=0 | |
572eed31 | 3693 | $as_echo_n 0123456789 >"conftest.in" |
7f7d329e SP |
3694 | while : |
3695 | do | |
3696 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3697 | mv "conftest.tmp" "conftest.in" | |
3698 | cp "conftest.in" "conftest.nl" | |
572eed31 | 3699 | $as_echo 'EGREP' >> "conftest.nl" |
7f7d329e SP |
3700 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3701 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3702 | ac_count=`expr $ac_count + 1` | |
3703 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3704 | # Best one so far, save it but keep looking for a better one | |
3705 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3706 | ac_path_EGREP_max=$ac_count | |
e7d18957 | 3707 | fi |
7f7d329e SP |
3708 | # 10*(2^10) chars as input seems more than enough |
3709 | test $ac_count -gt 10 && break | |
3710 | done | |
3711 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3712 | esac | |
3713 | ||
572eed31 SP |
3714 | $ac_path_EGREP_found && break 3 |
3715 | done | |
7f7d329e SP |
3716 | done |
3717 | done | |
7f7d329e | 3718 | IFS=$as_save_IFS |
572eed31 SP |
3719 | if test -z "$ac_cv_path_EGREP"; then |
3720 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3721 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7f7d329e | 3722 | { (exit 1); exit 1; }; } |
572eed31 | 3723 | fi |
7f7d329e SP |
3724 | else |
3725 | ac_cv_path_EGREP=$EGREP | |
3726 | fi | |
3727 | ||
7f7d329e SP |
3728 | fi |
3729 | fi | |
572eed31 SP |
3730 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3731 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7f7d329e | 3732 | EGREP="$ac_cv_path_EGREP" |
e7d18957 | 3733 | |
7f7d329e | 3734 | |
572eed31 SP |
3735 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3736 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
e7d18957 | 3737 | if test "${ac_cv_header_stdc+set}" = set; then |
572eed31 | 3738 | $as_echo_n "(cached) " >&6 |
e7d18957 SP |
3739 | else |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3741 | /* confdefs.h. */ |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
3746 | #include <stdlib.h> | |
3747 | #include <stdarg.h> | |
3748 | #include <string.h> | |
3749 | #include <float.h> | |
3750 | ||
3751 | int | |
3752 | main () | |
3753 | { | |
3754 | ||
3755 | ; | |
3756 | return 0; | |
3757 | } | |
3758 | _ACEOF | |
3759 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3760 | if { (ac_try="$ac_compile" |
3761 | case "(($ac_try" in | |
3762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3763 | *) ac_try_echo=$ac_try;; | |
3764 | esac | |
572eed31 SP |
3765 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3766 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3767 | (eval "$ac_compile") 2>conftest.er1 |
e7d18957 | 3768 | ac_status=$? |
c9e4e868 SP |
3769 | grep -v '^ *+' conftest.er1 >conftest.err |
3770 | rm -f conftest.er1 | |
3771 | cat conftest.err >&5 | |
572eed31 | 3772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3773 | (exit $ac_status); } && { |
3774 | test -z "$ac_c_werror_flag" || | |
3775 | test ! -s conftest.err | |
3776 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
3777 | ac_cv_header_stdc=yes |
3778 | else | |
572eed31 | 3779 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
3780 | sed 's/^/| /' conftest.$ac_ext >&5 |
3781 | ||
7f7d329e | 3782 | ac_cv_header_stdc=no |
e7d18957 | 3783 | fi |
7f7d329e SP |
3784 | |
3785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 SP |
3786 | |
3787 | if test $ac_cv_header_stdc = yes; then | |
3788 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3789 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3790 | /* confdefs.h. */ |
3791 | _ACEOF | |
3792 | cat confdefs.h >>conftest.$ac_ext | |
3793 | cat >>conftest.$ac_ext <<_ACEOF | |
3794 | /* end confdefs.h. */ | |
3795 | #include <string.h> | |
3796 | ||
3797 | _ACEOF | |
3798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3799 | $EGREP "memchr" >/dev/null 2>&1; then | |
3800 | : | |
3801 | else | |
3802 | ac_cv_header_stdc=no | |
3803 | fi | |
3804 | rm -f conftest* | |
3805 | ||
3806 | fi | |
3807 | ||
3808 | if test $ac_cv_header_stdc = yes; then | |
3809 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3810 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3811 | /* confdefs.h. */ |
3812 | _ACEOF | |
3813 | cat confdefs.h >>conftest.$ac_ext | |
3814 | cat >>conftest.$ac_ext <<_ACEOF | |
3815 | /* end confdefs.h. */ | |
3816 | #include <stdlib.h> | |
3817 | ||
3818 | _ACEOF | |
3819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3820 | $EGREP "free" >/dev/null 2>&1; then | |
3821 | : | |
3822 | else | |
3823 | ac_cv_header_stdc=no | |
3824 | fi | |
3825 | rm -f conftest* | |
3826 | ||
3827 | fi | |
3828 | ||
3829 | if test $ac_cv_header_stdc = yes; then | |
3830 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3831 | if test "$cross_compiling" = yes; then | |
3832 | : | |
3833 | else | |
3834 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3835 | /* confdefs.h. */ |
3836 | _ACEOF | |
3837 | cat confdefs.h >>conftest.$ac_ext | |
3838 | cat >>conftest.$ac_ext <<_ACEOF | |
3839 | /* end confdefs.h. */ | |
3840 | #include <ctype.h> | |
7f7d329e | 3841 | #include <stdlib.h> |
e7d18957 SP |
3842 | #if ((' ' & 0x0FF) == 0x020) |
3843 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3844 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3845 | #else | |
3846 | # define ISLOWER(c) \ | |
c9e4e868 SP |
3847 | (('a' <= (c) && (c) <= 'i') \ |
3848 | || ('j' <= (c) && (c) <= 'r') \ | |
3849 | || ('s' <= (c) && (c) <= 'z')) | |
e7d18957 SP |
3850 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3851 | #endif | |
3852 | ||
3853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3854 | int | |
3855 | main () | |
3856 | { | |
3857 | int i; | |
3858 | for (i = 0; i < 256; i++) | |
3859 | if (XOR (islower (i), ISLOWER (i)) | |
c9e4e868 | 3860 | || toupper (i) != TOUPPER (i)) |
7f7d329e SP |
3861 | return 2; |
3862 | return 0; | |
e7d18957 SP |
3863 | } |
3864 | _ACEOF | |
3865 | rm -f conftest$ac_exeext | |
7f7d329e SP |
3866 | if { (ac_try="$ac_link" |
3867 | case "(($ac_try" in | |
3868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3869 | *) ac_try_echo=$ac_try;; | |
3870 | esac | |
572eed31 SP |
3871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3872 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3873 | (eval "$ac_link") 2>&5 |
e7d18957 | 3874 | ac_status=$? |
572eed31 | 3875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e7d18957 | 3876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7f7d329e SP |
3877 | { (case "(($ac_try" in |
3878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3879 | *) ac_try_echo=$ac_try;; | |
3880 | esac | |
572eed31 SP |
3881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3882 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3883 | (eval "$ac_try") 2>&5 |
e7d18957 | 3884 | ac_status=$? |
572eed31 | 3885 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e7d18957 SP |
3886 | (exit $ac_status); }; }; then |
3887 | : | |
3888 | else | |
572eed31 SP |
3889 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
3890 | $as_echo "$as_me: failed program was:" >&5 | |
e7d18957 SP |
3891 | sed 's/^/| /' conftest.$ac_ext >&5 |
3892 | ||
3893 | ( exit $ac_status ) | |
3894 | ac_cv_header_stdc=no | |
3895 | fi | |
572eed31 | 3896 | rm -rf conftest.dSYM |
7f7d329e | 3897 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e7d18957 | 3898 | fi |
7f7d329e SP |
3899 | |
3900 | ||
e7d18957 SP |
3901 | fi |
3902 | fi | |
572eed31 SP |
3903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3904 | $as_echo "$ac_cv_header_stdc" >&6; } | |
e7d18957 SP |
3905 | if test $ac_cv_header_stdc = yes; then |
3906 | ||
3907 | cat >>confdefs.h <<\_ACEOF | |
3908 | #define STDC_HEADERS 1 | |
3909 | _ACEOF | |
3910 | ||
3911 | fi | |
3912 | ||
3913 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3914 | ||
3915 | ||
3916 | ||
3917 | ||
3918 | ||
3919 | ||
3920 | ||
3921 | ||
3922 | ||
3923 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
c9e4e868 | 3924 | inttypes.h stdint.h unistd.h |
e7d18957 | 3925 | do |
572eed31 SP |
3926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3927 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3928 | $as_echo_n "checking for $ac_header... " >&6; } | |
7f7d329e | 3929 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 3930 | $as_echo_n "(cached) " >&6 |
e7d18957 SP |
3931 | else |
3932 | cat >conftest.$ac_ext <<_ACEOF | |
e7d18957 SP |
3933 | /* confdefs.h. */ |
3934 | _ACEOF | |
3935 | cat confdefs.h >>conftest.$ac_ext | |
3936 | cat >>conftest.$ac_ext <<_ACEOF | |
3937 | /* end confdefs.h. */ | |
3938 | $ac_includes_default | |
3939 | ||
3940 | #include <$ac_header> | |
3941 | _ACEOF | |
3942 | rm -f conftest.$ac_objext | |
7f7d329e SP |
3943 | if { (ac_try="$ac_compile" |
3944 | case "(($ac_try" in | |
3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3946 | *) ac_try_echo=$ac_try;; | |
3947 | esac | |
572eed31 SP |
3948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3949 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 3950 | (eval "$ac_compile") 2>conftest.er1 |
e7d18957 | 3951 | ac_status=$? |
c9e4e868 SP |
3952 | grep -v '^ *+' conftest.er1 >conftest.err |
3953 | rm -f conftest.er1 | |
3954 | cat conftest.err >&5 | |
572eed31 | 3955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
3956 | (exit $ac_status); } && { |
3957 | test -z "$ac_c_werror_flag" || | |
3958 | test ! -s conftest.err | |
3959 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
3960 | eval "$as_ac_Header=yes" |
3961 | else | |
572eed31 | 3962 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
3963 | sed 's/^/| /' conftest.$ac_ext >&5 |
3964 | ||
7f7d329e | 3965 | eval "$as_ac_Header=no" |
e7d18957 | 3966 | fi |
7f7d329e SP |
3967 | |
3968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e7d18957 | 3969 | fi |
572eed31 SP |
3970 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3971 | $as_echo "$as_val"'` | |
3972 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3973 | $as_echo "$ac_res" >&6; } | |
3974 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
3975 | $as_echo "$as_val"'` | |
3976 | if test "x$as_val" = x""yes; then | |
e7d18957 | 3977 | cat >>confdefs.h <<_ACEOF |
572eed31 | 3978 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e7d18957 SP |
3979 | _ACEOF |
3980 | ||
3981 | fi | |
3982 | ||
3983 | done | |
3984 | ||
3985 | ||
3986 | ||
3987 | for ac_header in sys/types.h | |
3988 | do | |
572eed31 | 3989 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7f7d329e | 3990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 SP |
3991 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3992 | $as_echo_n "checking for $ac_header... " >&6; } | |
7f7d329e | 3993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 3994 | $as_echo_n "(cached) " >&6 |
e7d18957 | 3995 | fi |
572eed31 SP |
3996 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
3997 | $as_echo "$as_val"'` | |
3998 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3999 | $as_echo "$ac_res" >&6; } | |
e7d18957 SP |
4000 | else |
4001 | # Is the header compilable? | |
572eed31 SP |
4002 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4003 | $as_echo_n "checking $ac_header usability... " >&6; } | |
e7d18957 | 4004 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
4005 | /* confdefs.h. */ |
4006 | _ACEOF | |
4007 | cat confdefs.h >>conftest.$ac_ext | |
4008 | cat >>conftest.$ac_ext <<_ACEOF | |
4009 | /* end confdefs.h. */ | |
4010 | $ac_includes_default | |
4011 | #include <$ac_header> | |
4012 | _ACEOF | |
4013 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4014 | if { (ac_try="$ac_compile" |
4015 | case "(($ac_try" in | |
4016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4017 | *) ac_try_echo=$ac_try;; | |
4018 | esac | |
572eed31 SP |
4019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4020 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4021 | (eval "$ac_compile") 2>conftest.er1 |
e7d18957 | 4022 | ac_status=$? |
c9e4e868 SP |
4023 | grep -v '^ *+' conftest.er1 >conftest.err |
4024 | rm -f conftest.er1 | |
4025 | cat conftest.err >&5 | |
572eed31 | 4026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4027 | (exit $ac_status); } && { |
4028 | test -z "$ac_c_werror_flag" || | |
4029 | test ! -s conftest.err | |
4030 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
4031 | ac_header_compiler=yes |
4032 | else | |
572eed31 | 4033 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
4034 | sed 's/^/| /' conftest.$ac_ext >&5 |
4035 | ||
7f7d329e | 4036 | ac_header_compiler=no |
e7d18957 | 4037 | fi |
7f7d329e SP |
4038 | |
4039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
572eed31 SP |
4040 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4041 | $as_echo "$ac_header_compiler" >&6; } | |
e7d18957 SP |
4042 | |
4043 | # Is the header present? | |
572eed31 SP |
4044 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4045 | $as_echo_n "checking $ac_header presence... " >&6; } | |
e7d18957 | 4046 | cat >conftest.$ac_ext <<_ACEOF |
e7d18957 SP |
4047 | /* confdefs.h. */ |
4048 | _ACEOF | |
4049 | cat confdefs.h >>conftest.$ac_ext | |
4050 | cat >>conftest.$ac_ext <<_ACEOF | |
4051 | /* end confdefs.h. */ | |
4052 | #include <$ac_header> | |
4053 | _ACEOF | |
7f7d329e SP |
4054 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4055 | case "(($ac_try" in | |
4056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4057 | *) ac_try_echo=$ac_try;; | |
4058 | esac | |
572eed31 SP |
4059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4060 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4061 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
e7d18957 SP |
4062 | ac_status=$? |
4063 | grep -v '^ *+' conftest.er1 >conftest.err | |
4064 | rm -f conftest.er1 | |
4065 | cat conftest.err >&5 | |
572eed31 | 4066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4067 | (exit $ac_status); } >/dev/null && { |
4068 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4069 | test ! -s conftest.err | |
4070 | }; then | |
e7d18957 SP |
4071 | ac_header_preproc=yes |
4072 | else | |
572eed31 | 4073 | $as_echo "$as_me: failed program was:" >&5 |
e7d18957 SP |
4074 | sed 's/^/| /' conftest.$ac_ext >&5 |
4075 | ||
4076 | ac_header_preproc=no | |
4077 | fi | |
7f7d329e | 4078 | |
e7d18957 | 4079 | rm -f conftest.err conftest.$ac_ext |
572eed31 SP |
4080 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4081 | $as_echo "$ac_header_preproc" >&6; } | |
e7d18957 SP |
4082 | |
4083 | # So? What about this header? | |
c9e4e868 SP |
4084 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4085 | yes:no: ) | |
572eed31 SP |
4086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4087 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4089 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
c9e4e868 | 4090 | ac_header_preproc=yes |
e7d18957 | 4091 | ;; |
c9e4e868 | 4092 | no:yes:* ) |
572eed31 SP |
4093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4094 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4096 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4098 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4100 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4101 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4102 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4103 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4104 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 4105 | |
e7d18957 SP |
4106 | ;; |
4107 | esac | |
572eed31 SP |
4108 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4109 | $as_echo_n "checking for $ac_header... " >&6; } | |
7f7d329e | 4110 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 4111 | $as_echo_n "(cached) " >&6 |
e7d18957 | 4112 | else |
c9e4e868 | 4113 | eval "$as_ac_Header=\$ac_header_preproc" |
e7d18957 | 4114 | fi |
572eed31 SP |
4115 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4116 | $as_echo "$as_val"'` | |
4117 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4118 | $as_echo "$ac_res" >&6; } | |
e7d18957 SP |
4119 | |
4120 | fi | |
572eed31 SP |
4121 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4122 | $as_echo "$as_val"'` | |
4123 | if test "x$as_val" = x""yes; then | |
e7d18957 | 4124 | cat >>confdefs.h <<_ACEOF |
572eed31 | 4125 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e7d18957 SP |
4126 | _ACEOF |
4127 | ||
4128 | fi | |
4129 | ||
4130 | done | |
4131 | ||
4132 | ||
4133 | CPPFLAGS="-D_BSD_SOURCE -D_USE_BSD_SIGNAL ${CPPFLAGS}" | |
4134 | ||
7f7d329e | 4135 | # Check whether --enable-debug was given. |
e7d18957 | 4136 | if test "${enable_debug+set}" = set; then |
7f7d329e | 4137 | enableval=$enable_debug; if test "$enableval" = "no" |
e7d18957 SP |
4138 | then |
4139 | DUMPDEBUG="" | |
4140 | RESTOREDEBUG="" | |
4141 | echo "Not including debugging code" | |
4142 | else | |
4143 | DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG" | |
4144 | RESTOREDEBUG="-DDIRDEBUG" | |
4145 | echo "Including debugging code" | |
4146 | fi | |
4147 | else | |
4148 | DUMPDEBUG="" | |
4149 | RESTOREDEBUG="" | |
4150 | echo "Not including debugging code by default" | |
4151 | ||
7f7d329e SP |
4152 | fi |
4153 | ||
e7d18957 SP |
4154 | |
4155 | ||
4156 | ||
7f7d329e | 4157 | # Check whether --enable-static was given. |
e7d18957 | 4158 | if test "${enable_static+set}" = set; then |
7f7d329e | 4159 | enableval=$enable_static; if test "$enableval" = "no" |
e7d18957 SP |
4160 | then |
4161 | STATIC="" | |
4162 | echo "Linking dump and restore dynamically" | |
4163 | else | |
4164 | STATIC="-static" | |
4165 | echo "Linking dump and restore statically" | |
4166 | fi | |
4167 | ||
4168 | else | |
4169 | STATIC="" | |
4170 | echo "Linking dump and restore dynamically by default" | |
4171 | ||
7f7d329e SP |
4172 | fi |
4173 | ||
e7d18957 SP |
4174 | |
4175 | ||
7f7d329e | 4176 | # Check whether --enable-staticz was given. |
d7783603 | 4177 | if test "${enable_staticz+set}" = set; then |
7f7d329e | 4178 | enableval=$enable_staticz; if test "$enableval" = "no" |
d7783603 SP |
4179 | then |
4180 | STATICZ="no" | |
4181 | echo "Linking libz and libbz2 dynamically" | |
4182 | else | |
4183 | STATICZ="yes" | |
4184 | echo "Linking libz and libbz2 statically" | |
4185 | fi | |
4186 | ||
4187 | else | |
4188 | STATICZ="no" | |
4189 | echo "Linking libz and libbz2 dynamically by default" | |
4190 | ||
7f7d329e SP |
4191 | fi |
4192 | ||
d7783603 | 4193 | |
7f7d329e | 4194 | # Check whether --enable-rmt was given. |
e7d18957 | 4195 | if test "${enable_rmt+set}" = set; then |
7f7d329e | 4196 | enableval=$enable_rmt; if test "$enableval" = "no" |
e7d18957 SP |
4197 | then |
4198 | RMTDIR="" | |
4199 | RMTMAKEFILE="" | |
4200 | echo "Not compiling rmt" | |
4201 | else | |
4202 | RMTDIR="rmt" | |
4203 | RMTMAKEFILE="rmt/Makefile" | |
4204 | echo "Compiling rmt" | |
4205 | fi | |
4206 | ||
4207 | else | |
4208 | RMTDIR="rmt" | |
4209 | RMTMAKEFILE="rmt/Makefile" | |
4210 | echo "Compiling rmt by default" | |
4211 | ||
7f7d329e SP |
4212 | fi |
4213 | ||
e7d18957 SP |
4214 | |
4215 | ||
7f7d329e | 4216 | # Check whether --enable-ermt was given. |
e7d18957 | 4217 | if test "${enable_ermt+set}" = set; then |
7f7d329e | 4218 | enableval=$enable_ermt; if test "$enableval" = "no" |
e7d18957 SP |
4219 | then |
4220 | ERMT="" | |
4221 | CRYPTO="" | |
4222 | echo "Not compiling ermt" | |
4223 | else | |
4224 | if test "$RMTDIR" = "" | |
4225 | then | |
572eed31 SP |
4226 | { { $as_echo "$as_me:$LINENO: error: ermt requires --enable-rmt" >&5 |
4227 | $as_echo "$as_me: error: ermt requires --enable-rmt" >&2;} | |
e7d18957 SP |
4228 | { (exit 1); exit 1; }; } |
4229 | fi | |
4230 | ERMT="ermt" | |
4231 | CRYPTO="-lcrypto" | |
4232 | echo "Compiling ermt" | |
4233 | fi | |
4234 | ||
4235 | else | |
4236 | ERMT="" | |
4237 | CRYPTO="" | |
4238 | echo "Not compiling ermt by default" | |
4239 | ||
7f7d329e SP |
4240 | fi |
4241 | ||
e7d18957 SP |
4242 | |
4243 | ||
4244 | ||
7f7d329e | 4245 | # Check whether --enable-kerberos was given. |
e7d18957 | 4246 | if test "${enable_kerberos+set}" = set; then |
7f7d329e | 4247 | enableval=$enable_kerberos; if test "$enableval" = "yes" |
e7d18957 SP |
4248 | then |
4249 | OPTDEFS="-DKERBEROS" | |
4250 | echo "Compiling kerberos extensions" | |
4251 | else | |
4252 | OPTDEFS="" | |
4253 | echo "Not compiling kerberos extensions" | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | OPTDEFS="" | |
4258 | echo "Not compiling kerberos extensions by default" | |
4259 | ||
7f7d329e SP |
4260 | fi |
4261 | ||
e7d18957 SP |
4262 | |
4263 | ||
7f7d329e | 4264 | # Check whether --enable-readline was given. |
e7d18957 | 4265 | if test "${enable_readline+set}" = set; then |
7f7d329e | 4266 | enableval=$enable_readline; if test "$enableval" = "no" |
e7d18957 SP |
4267 | then |
4268 | READLINE="" | |
4269 | echo "Not including readline support" | |
4270 | else | |
0556ca22 | 4271 | READLINE="yes" |
e7d18957 SP |
4272 | |
4273 | cat >>confdefs.h <<\_ACEOF | |
4274 | #define HAVE_READLINE 1 | |
4275 | _ACEOF | |
4276 | ||
4277 | echo "Including readline support" | |
4278 | fi | |
4279 | ||
4280 | else | |
0556ca22 | 4281 | READLINE="yes" |
e7d18957 SP |
4282 | |
4283 | cat >>confdefs.h <<\_ACEOF | |
4284 | #define HAVE_READLINE 1 | |
4285 | _ACEOF | |
4286 | ||
4287 | echo "Including readline support by default" | |
4288 | ||
7f7d329e SP |
4289 | fi |
4290 | ||
e7d18957 | 4291 | |
7f7d329e | 4292 | # Check whether --enable-oldstylefscript was given. |
e7d18957 | 4293 | if test "${enable_oldstylefscript+set}" = set; then |
7f7d329e | 4294 | enableval=$enable_oldstylefscript; if test "$enableval" = "yes" |
e7d18957 SP |
4295 | then |
4296 | ||
4297 | cat >>confdefs.h <<\_ACEOF | |
4298 | #define OLD_STYLE_FSCRIPT 1 | |
4299 | _ACEOF | |
4300 | ||
4301 | echo "Using old style F script" | |
4302 | else | |
4303 | echo "Using new style F script" | |
4304 | fi | |
4305 | ||
4306 | else | |
4307 | echo "Using new style F script by default" | |
4308 | ||
7f7d329e SP |
4309 | fi |
4310 | ||
e7d18957 | 4311 | |
7f7d329e | 4312 | # Check whether --enable-largefile was given. |
e7d18957 | 4313 | if test "${enable_largefile+set}" = set; then |
7f7d329e | 4314 | enableval=$enable_largefile; if test "$enableval" = "yes" |
e7d18957 SP |
4315 | then |
4316 | ||
4317 | cat >>confdefs.h <<\_ACEOF | |
4318 | #define USE_LFS 1 | |
4319 | _ACEOF | |
4320 | ||
4321 | echo "Enabling Large File System support" | |
4322 | else | |
4323 | echo "Not enabling Large File System support" | |
4324 | fi | |
4325 | ||
4326 | else | |
4327 | ||
4328 | cat >>confdefs.h <<\_ACEOF | |
4329 | #define USE_LFS 1 | |
4330 | _ACEOF | |
4331 | ||
4332 | echo "Enabling Large File System support by default" | |
d6967896 | 4333 | |
7f7d329e SP |
4334 | fi |
4335 | ||
d6967896 | 4336 | |
7f7d329e | 4337 | # Check whether --enable-qfa was given. |
35b24fb7 | 4338 | if test "${enable_qfa+set}" = set; then |
7f7d329e | 4339 | enableval=$enable_qfa; if test "$enableval" = "yes" |
35b24fb7 | 4340 | then |
e7d18957 SP |
4341 | |
4342 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4343 | #define USE_QFA 1 |
1daf06b9 | 4344 | _ACEOF |
35b24fb7 | 4345 | |
1daf06b9 SP |
4346 | echo "Enabling Quick File Access support" |
4347 | else | |
4348 | echo "Not enabling Quick File Access support" | |
35b24fb7 SP |
4349 | fi |
4350 | ||
4351 | else | |
e7d18957 SP |
4352 | |
4353 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
4354 | #define USE_QFA 1 |
4355 | _ACEOF | |
35b24fb7 | 4356 | |
1daf06b9 | 4357 | echo "Enabling Quick File Access support by default" |
35b24fb7 | 4358 | |
7f7d329e SP |
4359 | fi |
4360 | ||
35b24fb7 | 4361 | |
7f7d329e | 4362 | # Check whether --enable-qfadebug was given. |
35b24fb7 | 4363 | if test "${enable_qfadebug+set}" = set; then |
7f7d329e | 4364 | enableval=$enable_qfadebug; if test "$enableval" = "yes" |
35b24fb7 | 4365 | then |
e7d18957 SP |
4366 | |
4367 | cat >>confdefs.h <<\_ACEOF | |
35b24fb7 | 4368 | #define DEBUG_QFA 1 |
1daf06b9 | 4369 | _ACEOF |
35b24fb7 | 4370 | |
1daf06b9 SP |
4371 | echo "Including Quick File Access debugging code" |
4372 | else | |
4373 | echo "Not including Quick File Access debugging code" | |
35b24fb7 SP |
4374 | fi |
4375 | ||
4376 | else | |
1daf06b9 | 4377 | echo "Not including Quick File Access debugging code by default" |
35b24fb7 | 4378 | |
7f7d329e SP |
4379 | fi |
4380 | ||
35b24fb7 | 4381 | |
7f7d329e | 4382 | # Check whether --enable-macosx was given. |
d1925e0c | 4383 | if test "${enable_macosx+set}" = set; then |
7f7d329e | 4384 | enableval=$enable_macosx; if test "$enableval" = "yes" |
d1925e0c SP |
4385 | then |
4386 | ||
4387 | cat >>confdefs.h <<\_ACEOF | |
4388 | #define DUMP_MACOSX 1 | |
4389 | _ACEOF | |
4390 | ||
4391 | echo "Including Mac OSX restore compatibility code" | |
4392 | else | |
4393 | echo "Not including Mac OSX restore compatibility code" | |
4394 | fi | |
4395 | ||
4396 | else | |
4397 | echo "Not including Mac OSX restore compatibility code by default" | |
4398 | ||
7f7d329e SP |
4399 | fi |
4400 | ||
4401 | ||
4402 | # Check whether --enable-transselinux was given. | |
4403 | if test "${enable_transselinux+set}" = set; then | |
4404 | enableval=$enable_transselinux; if test "$enableval" = "yes" | |
4405 | then | |
4406 | LTRANSSELINUX="-lselinux" | |
4407 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4408 | echo "restore can translate SELinux EAs" | |
4409 | else | |
4410 | LTRANSSELINUX="" | |
4411 | CCTRANSSELINUX="" | |
4412 | echo "restore can not translate SELinux EAs" | |
4413 | fi | |
4414 | ||
4415 | else | |
4416 | LTRANSSELINUX="-lselinux" | |
4417 | CCTRANSSELINUX="-DTRANSSELINUX" | |
4418 | echo "restore can translate SELinux EAs by default" | |
4419 | ||
4420 | fi | |
4421 | ||
4422 | ||
4423 | ||
d1925e0c SP |
4424 | |
4425 | ||
35b24fb7 | 4426 | |
7f7d329e | 4427 | # Check whether --with-cc was given. |
1227625a | 4428 | if test "${with_cc+set}" = set; then |
572eed31 SP |
4429 | withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5 |
4430 | $as_echo "CC=$withval" >&6; } | |
1227625a SP |
4431 | CC=$withval |
4432 | else | |
4433 | if test -z "$CC" ; then CC=cc; fi | |
572eed31 SP |
4434 | { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
4435 | $as_echo "CC defaults to $CC" >&6; } | |
7f7d329e SP |
4436 | fi |
4437 | export CC | |
1daf06b9 | 4438 | |
1227625a SP |
4439 | |
4440 | ||
7f7d329e | 4441 | # Check whether --with-linker was given. |
1227625a | 4442 | if test "${with_linker+set}" = set; then |
572eed31 SP |
4443 | withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5 |
4444 | $as_echo "LD=$withval" >&6; } | |
1227625a SP |
4445 | LD=$withval |
4446 | else | |
4447 | if test -z "$LD" ; then LD=$CC; fi | |
572eed31 SP |
4448 | { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
4449 | $as_echo "LD defaults to $LD" >&6; } | |
7f7d329e SP |
4450 | fi |
4451 | export LD | |
1daf06b9 | 4452 | |
1227625a SP |
4453 | |
4454 | ||
7f7d329e | 4455 | # Check whether --with-ccopts was given. |
1227625a | 4456 | if test "${with_ccopts+set}" = set; then |
572eed31 SP |
4457 | withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
4458 | $as_echo "CCOPTS is $withval" >&6; } | |
1227625a SP |
4459 | CCOPTS=$withval |
4460 | CFLAGS="$CFLAGS $withval" | |
4461 | else | |
4462 | CCOPTS= | |
7f7d329e SP |
4463 | fi |
4464 | ||
1227625a SP |
4465 | |
4466 | ||
7f7d329e | 4467 | # Check whether --with-ldopts was given. |
1227625a | 4468 | if test "${with_ldopts+set}" = set; then |
572eed31 SP |
4469 | withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
4470 | $as_echo "LDFLAGS is $withval" >&6; } | |
e95b2aff SP |
4471 | LDOPTS=$withval |
4472 | LDFLAGS="$LDFLAGS $withval" | |
1227625a | 4473 | else |
e95b2aff | 4474 | LDOPTS= |
7f7d329e SP |
4475 | fi |
4476 | ||
1227625a SP |
4477 | |
4478 | ||
7f7d329e | 4479 | # Check whether --with-binowner was given. |
1227625a | 4480 | if test "${with_binowner+set}" = set; then |
572eed31 SP |
4481 | withval=$with_binowner; { $as_echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5 |
4482 | $as_echo "BINOWNER is $withval" >&6; } | |
1227625a SP |
4483 | BINOWNER=$withval |
4484 | else | |
4485 | BINOWNER=root | |
4486 | echo "BINOWNER defaults to $BINOWNER" | |
4487 | ||
7f7d329e SP |
4488 | fi |
4489 | ||
1227625a SP |
4490 | |
4491 | ||
7f7d329e | 4492 | # Check whether --with-bingrp was given. |
1227625a | 4493 | if test "${with_bingrp+set}" = set; then |
572eed31 SP |
4494 | withval=$with_bingrp; { $as_echo "$as_me:$LINENO: result: BINGRP is $withval" >&5 |
4495 | $as_echo "BINGRP is $withval" >&6; } | |
1227625a SP |
4496 | BINGRP=$withval |
4497 | else | |
4498 | BINGRP=tty | |
4499 | echo "BINGRP defaults to $BINGRP" | |
4500 | ||
7f7d329e SP |
4501 | fi |
4502 | ||
1227625a SP |
4503 | |
4504 | ||
7f7d329e | 4505 | # Check whether --with-binmode was given. |
1227625a | 4506 | if test "${with_binmode+set}" = set; then |
572eed31 SP |
4507 | withval=$with_binmode; { $as_echo "$as_me:$LINENO: result: BINMODE is $withval" >&5 |
4508 | $as_echo "BINMODE is $withval" >&6; } | |
1227625a SP |
4509 | BINMODE=$withval |
4510 | else | |
882090d1 | 4511 | BINMODE=0755 |
1227625a SP |
4512 | echo "BINMODE defaults to $BINMODE" |
4513 | ||
7f7d329e SP |
4514 | fi |
4515 | ||
1227625a SP |
4516 | |
4517 | ||
7f7d329e | 4518 | # Check whether --with-manowner was given. |
1227625a | 4519 | if test "${with_manowner+set}" = set; then |
572eed31 SP |
4520 | withval=$with_manowner; { $as_echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5 |
4521 | $as_echo "MANOWNER is $withval" >&6; } | |
1227625a SP |
4522 | MANOWNER=$withval |
4523 | else | |
4524 | MANOWNER=man | |
4525 | echo "MANOWNER defaults to $MANOWNER" | |
4526 | ||
7f7d329e SP |
4527 | fi |
4528 | ||
1227625a SP |
4529 | |
4530 | ||
7f7d329e | 4531 | # Check whether --with-mangrp was given. |
1227625a | 4532 | if test "${with_mangrp+set}" = set; then |
572eed31 SP |
4533 | withval=$with_mangrp; { $as_echo "$as_me:$LINENO: result: MANGRP is $withval" >&5 |
4534 | $as_echo "MANGRP is $withval" >&6; } | |
1227625a SP |
4535 | MANGRP=$withval |
4536 | else | |
4537 | MANGRP=tty | |
4538 | echo "MANGRP defaults to $MANGRP" | |
4539 | ||
7f7d329e SP |
4540 | fi |
4541 | ||
1227625a SP |
4542 | |
4543 | ||
7f7d329e | 4544 | # Check whether --with-manmode was given. |
1227625a | 4545 | if test "${with_manmode+set}" = set; then |
572eed31 SP |
4546 | withval=$with_manmode; { $as_echo "$as_me:$LINENO: result: MANMODE is $withval" >&5 |
4547 | $as_echo "MANMODE is $withval" >&6; } | |
1227625a SP |
4548 | MANMODE=$withval |
4549 | else | |
882090d1 | 4550 | MANMODE=0644 |
1227625a SP |
4551 | echo "MANMODE defaults to $MANMODE" |
4552 | ||
7f7d329e SP |
4553 | fi |
4554 | ||
1227625a SP |
4555 | |
4556 | ||
7f7d329e | 4557 | # Check whether --with-dumpdatespath was given. |
8d4197bb | 4558 | if test "${with_dumpdatespath+set}" = set; then |
572eed31 SP |
4559 | withval=$with_dumpdatespath; { $as_echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5 |
4560 | $as_echo "DUMPDATESPATH is $withval" >&6; } | |
8d4197bb SP |
4561 | DUMPDATESPATH=$withval |
4562 | else | |
60d46c35 | 4563 | DUMPDATESPATH="${sysconfdir}/dumpdates" |
8d4197bb SP |
4564 | echo "DUMPDATESPATH defaults to $DUMPDATESPATH" |
4565 | ||
7f7d329e SP |
4566 | fi |
4567 | ||
8d4197bb | 4568 | |
572eed31 SP |
4569 | { $as_echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5 |
4570 | $as_echo_n "checking for ext2fs/ext2fs.h... " >&6; } | |
1daf06b9 | 4571 | if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then |
572eed31 | 4572 | $as_echo_n "(cached) " >&6 |
1daf06b9 | 4573 | else |
d3e542e7 | 4574 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4575 | /* confdefs.h. */ |
4576 | _ACEOF | |
4577 | cat confdefs.h >>conftest.$ac_ext | |
4578 | cat >>conftest.$ac_ext <<_ACEOF | |
4579 | /* end confdefs.h. */ | |
1227625a | 4580 | #include <ext2fs/ext2fs.h> |
1daf06b9 | 4581 | _ACEOF |
7f7d329e SP |
4582 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4583 | case "(($ac_try" in | |
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4585 | *) ac_try_echo=$ac_try;; | |
4586 | esac | |
572eed31 SP |
4587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4588 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4589 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1daf06b9 | 4590 | ac_status=$? |
cdfe1392 | 4591 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4592 | rm -f conftest.er1 |
4593 | cat conftest.err >&5 | |
572eed31 | 4594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4595 | (exit $ac_status); } >/dev/null && { |
4596 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4597 | test ! -s conftest.err | |
4598 | }; then | |
d3e542e7 | 4599 | ac_cv_header_ext2fs_ext2fs_h=yes |
1daf06b9 | 4600 | else |
572eed31 | 4601 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4602 | sed 's/^/| /' conftest.$ac_ext >&5 |
4603 | ||
d3e542e7 | 4604 | ac_cv_header_ext2fs_ext2fs_h=no |
1daf06b9 | 4605 | fi |
7f7d329e | 4606 | |
1daf06b9 | 4607 | rm -f conftest.err conftest.$ac_ext |
1227625a | 4608 | fi |
572eed31 SP |
4609 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5 |
4610 | $as_echo "$ac_cv_header_ext2fs_ext2fs_h" >&6; } | |
4611 | if test "x$ac_cv_header_ext2fs_ext2fs_h" = x""yes; then | |
1227625a SP |
4612 | ext2fs_h=yes |
4613 | else | |
1daf06b9 | 4614 | ext2fs_h=no |
1227625a SP |
4615 | fi |
4616 | ||
1daf06b9 | 4617 | |
572eed31 SP |
4618 | { $as_echo "$as_me:$LINENO: checking for ext2fs_open in -lext2fs" >&5 |
4619 | $as_echo_n "checking for ext2fs_open in -lext2fs... " >&6; } | |
1daf06b9 | 4620 | if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then |
572eed31 | 4621 | $as_echo_n "(cached) " >&6 |
1227625a | 4622 | else |
1daf06b9 | 4623 | ac_check_lib_save_LIBS=$LIBS |
1227625a | 4624 | LIBS="-lext2fs -lcom_err $LIBS" |
1daf06b9 | 4625 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4626 | /* confdefs.h. */ |
4627 | _ACEOF | |
4628 | cat confdefs.h >>conftest.$ac_ext | |
4629 | cat >>conftest.$ac_ext <<_ACEOF | |
4630 | /* end confdefs.h. */ | |
1daf06b9 | 4631 | |
7f7d329e SP |
4632 | /* Override any GCC internal prototype to avoid an error. |
4633 | Use char because int might match the return type of a GCC | |
4634 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
4635 | #ifdef __cplusplus |
4636 | extern "C" | |
4637 | #endif | |
1daf06b9 | 4638 | char ext2fs_open (); |
1daf06b9 SP |
4639 | int |
4640 | main () | |
4641 | { | |
7f7d329e | 4642 | return ext2fs_open (); |
1daf06b9 SP |
4643 | ; |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
4647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4648 | if { (ac_try="$ac_link" |
4649 | case "(($ac_try" in | |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
572eed31 SP |
4653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4654 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4655 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 4656 | ac_status=$? |
c9e4e868 SP |
4657 | grep -v '^ *+' conftest.er1 >conftest.err |
4658 | rm -f conftest.er1 | |
4659 | cat conftest.err >&5 | |
572eed31 | 4660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4661 | (exit $ac_status); } && { |
4662 | test -z "$ac_c_werror_flag" || | |
4663 | test ! -s conftest.err | |
572eed31 SP |
4664 | } && test -s conftest$ac_exeext && { |
4665 | test "$cross_compiling" = yes || | |
4666 | $as_test_x conftest$ac_exeext | |
4667 | }; then | |
1daf06b9 SP |
4668 | ac_cv_lib_ext2fs_ext2fs_open=yes |
4669 | else | |
572eed31 | 4670 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
4672 | ||
7f7d329e | 4673 | ac_cv_lib_ext2fs_ext2fs_open=no |
1daf06b9 | 4674 | fi |
7f7d329e | 4675 | |
572eed31 | 4676 | rm -rf conftest.dSYM |
d2816d4c | 4677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 4678 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
4679 | LIBS=$ac_check_lib_save_LIBS |
4680 | fi | |
572eed31 SP |
4681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5 |
4682 | $as_echo "$ac_cv_lib_ext2fs_ext2fs_open" >&6; } | |
4683 | if test "x$ac_cv_lib_ext2fs_ext2fs_open" = x""yes; then | |
1227625a SP |
4684 | ext2fs_lib=yes |
4685 | else | |
1daf06b9 | 4686 | ext2fs_lib=no |
1227625a SP |
4687 | fi |
4688 | ||
4689 | if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then | |
572eed31 SP |
4690 | { { $as_echo "$as_me:$LINENO: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&5 |
4691 | $as_echo "$as_me: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&2;} | |
1daf06b9 | 4692 | { (exit 1); exit 1; }; } |
1227625a SP |
4693 | fi |
4694 | ||
572eed31 SP |
4695 | { $as_echo "$as_me:$LINENO: checking for ext2fs_read_inode_full in -lext2fs" >&5 |
4696 | $as_echo_n "checking for ext2fs_read_inode_full in -lext2fs... " >&6; } | |
cca7148b | 4697 | if test "${ac_cv_lib_ext2fs_ext2fs_read_inode_full+set}" = set; then |
572eed31 | 4698 | $as_echo_n "(cached) " >&6 |
cca7148b SP |
4699 | else |
4700 | ac_check_lib_save_LIBS=$LIBS | |
4701 | LIBS="-lext2fs -lcom_err $LIBS" | |
4702 | cat >conftest.$ac_ext <<_ACEOF | |
4703 | /* confdefs.h. */ | |
4704 | _ACEOF | |
4705 | cat confdefs.h >>conftest.$ac_ext | |
4706 | cat >>conftest.$ac_ext <<_ACEOF | |
4707 | /* end confdefs.h. */ | |
4708 | ||
7f7d329e SP |
4709 | /* Override any GCC internal prototype to avoid an error. |
4710 | Use char because int might match the return type of a GCC | |
4711 | builtin and then its argument prototype would still apply. */ | |
cca7148b SP |
4712 | #ifdef __cplusplus |
4713 | extern "C" | |
4714 | #endif | |
cca7148b SP |
4715 | char ext2fs_read_inode_full (); |
4716 | int | |
4717 | main () | |
4718 | { | |
7f7d329e | 4719 | return ext2fs_read_inode_full (); |
cca7148b SP |
4720 | ; |
4721 | return 0; | |
4722 | } | |
4723 | _ACEOF | |
4724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
4725 | if { (ac_try="$ac_link" |
4726 | case "(($ac_try" in | |
4727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4728 | *) ac_try_echo=$ac_try;; | |
4729 | esac | |
572eed31 SP |
4730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4731 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4732 | (eval "$ac_link") 2>conftest.er1 |
cca7148b SP |
4733 | ac_status=$? |
4734 | grep -v '^ *+' conftest.er1 >conftest.err | |
4735 | rm -f conftest.er1 | |
4736 | cat conftest.err >&5 | |
572eed31 | 4737 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4738 | (exit $ac_status); } && { |
4739 | test -z "$ac_c_werror_flag" || | |
4740 | test ! -s conftest.err | |
572eed31 SP |
4741 | } && test -s conftest$ac_exeext && { |
4742 | test "$cross_compiling" = yes || | |
4743 | $as_test_x conftest$ac_exeext | |
4744 | }; then | |
cca7148b SP |
4745 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes |
4746 | else | |
572eed31 | 4747 | $as_echo "$as_me: failed program was:" >&5 |
cca7148b SP |
4748 | sed 's/^/| /' conftest.$ac_ext >&5 |
4749 | ||
7f7d329e | 4750 | ac_cv_lib_ext2fs_ext2fs_read_inode_full=no |
cca7148b | 4751 | fi |
7f7d329e | 4752 | |
572eed31 | 4753 | rm -rf conftest.dSYM |
d2816d4c | 4754 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
cca7148b SP |
4755 | conftest$ac_exeext conftest.$ac_ext |
4756 | LIBS=$ac_check_lib_save_LIBS | |
4757 | fi | |
572eed31 SP |
4758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&5 |
4759 | $as_echo "$ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&6; } | |
4760 | if test "x$ac_cv_lib_ext2fs_ext2fs_read_inode_full" = x""yes; then | |
cca7148b SP |
4761 | rif=yes |
4762 | else | |
4763 | rif=no | |
4764 | fi | |
4765 | ||
4766 | if test "$rif" = yes; then | |
4767 | ||
4768 | cat >>confdefs.h <<\_ACEOF | |
4769 | #define HAVE_EXT2FS_READ_INODE_FULL 1 | |
4770 | _ACEOF | |
4771 | ||
4772 | fi | |
4773 | ||
1daf06b9 SP |
4774 | |
4775 | for ac_header in ext2fs/ext2_fs.h | |
e4a8bde4 | 4776 | do |
572eed31 SP |
4777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4778 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4779 | $as_echo_n "checking for $ac_header... " >&6; } | |
7f7d329e | 4780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 4781 | $as_echo_n "(cached) " >&6 |
1daf06b9 | 4782 | else |
d3e542e7 | 4783 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4784 | /* confdefs.h. */ |
4785 | _ACEOF | |
4786 | cat confdefs.h >>conftest.$ac_ext | |
4787 | cat >>conftest.$ac_ext <<_ACEOF | |
4788 | /* end confdefs.h. */ | |
1daf06b9 SP |
4789 | #include <$ac_header> |
4790 | _ACEOF | |
7f7d329e SP |
4791 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4792 | case "(($ac_try" in | |
4793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4794 | *) ac_try_echo=$ac_try;; | |
4795 | esac | |
572eed31 SP |
4796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4797 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1daf06b9 | 4799 | ac_status=$? |
cdfe1392 | 4800 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
4801 | rm -f conftest.er1 |
4802 | cat conftest.err >&5 | |
572eed31 | 4803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4804 | (exit $ac_status); } >/dev/null && { |
4805 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4806 | test ! -s conftest.err | |
4807 | }; then | |
d3e542e7 | 4808 | eval "$as_ac_Header=yes" |
1daf06b9 | 4809 | else |
572eed31 | 4810 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4811 | sed 's/^/| /' conftest.$ac_ext >&5 |
4812 | ||
d3e542e7 | 4813 | eval "$as_ac_Header=no" |
1daf06b9 | 4814 | fi |
7f7d329e | 4815 | |
1daf06b9 | 4816 | rm -f conftest.err conftest.$ac_ext |
e4a8bde4 | 4817 | fi |
572eed31 SP |
4818 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4819 | $as_echo "$as_val"'` | |
4820 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4821 | $as_echo "$ac_res" >&6; } | |
4822 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4823 | $as_echo "$as_val"'` | |
4824 | if test "x$as_val" = x""yes; then | |
1daf06b9 | 4825 | cat >>confdefs.h <<_ACEOF |
572eed31 | 4826 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1daf06b9 SP |
4827 | _ACEOF |
4828 | ||
e4a8bde4 | 4829 | fi |
1daf06b9 | 4830 | |
e4a8bde4 SP |
4831 | done |
4832 | ||
4833 | ||
572eed31 SP |
4834 | { $as_echo "$as_me:$LINENO: checking for ext2_ino_t type in libext2fs headers" >&5 |
4835 | $as_echo_n "checking for ext2_ino_t type in libext2fs headers... " >&6; } | |
1daf06b9 | 4836 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4837 | /* confdefs.h. */ |
4838 | _ACEOF | |
4839 | cat confdefs.h >>conftest.$ac_ext | |
4840 | cat >>conftest.$ac_ext <<_ACEOF | |
4841 | /* end confdefs.h. */ | |
a4f547cd | 4842 | #include <stdio.h> |
e4a8bde4 SP |
4843 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4844 | #include <ext2fs/ext2_fs.h> | |
4845 | #else | |
a4f547cd | 4846 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4847 | #endif |
a4f547cd | 4848 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4849 | int |
4850 | main () | |
4851 | { | |
a4f547cd | 4852 | ext2_ino_t ino = 0; |
1daf06b9 SP |
4853 | ; |
4854 | return 0; | |
4855 | } | |
4856 | _ACEOF | |
4857 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4858 | if { (ac_try="$ac_compile" |
4859 | case "(($ac_try" in | |
4860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4861 | *) ac_try_echo=$ac_try;; | |
4862 | esac | |
572eed31 SP |
4863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4864 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4865 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 4866 | ac_status=$? |
c9e4e868 SP |
4867 | grep -v '^ *+' conftest.er1 >conftest.err |
4868 | rm -f conftest.er1 | |
4869 | cat conftest.err >&5 | |
572eed31 | 4870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4871 | (exit $ac_status); } && { |
4872 | test -z "$ac_c_werror_flag" || | |
4873 | test ! -s conftest.err | |
4874 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
4875 | |
4876 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 4877 | #define HAVE_EXT2_INO_T 1 |
1daf06b9 | 4878 | _ACEOF |
e7d18957 | 4879 | |
572eed31 SP |
4880 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
4881 | $as_echo "yes" >&6; } | |
a4f547cd | 4882 | else |
572eed31 | 4883 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4884 | sed 's/^/| /' conftest.$ac_ext >&5 |
4885 | ||
572eed31 SP |
4886 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4887 | $as_echo "no" >&6; } | |
a4f547cd | 4888 | fi |
a4f547cd | 4889 | |
7f7d329e SP |
4890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4891 | ||
572eed31 SP |
4892 | { $as_echo "$as_me:$LINENO: checking for s_journal_inum field in ext2_super_block struct" >&5 |
4893 | $as_echo_n "checking for s_journal_inum field in ext2_super_block struct... " >&6; } | |
1daf06b9 | 4894 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
4895 | /* confdefs.h. */ |
4896 | _ACEOF | |
4897 | cat confdefs.h >>conftest.$ac_ext | |
4898 | cat >>conftest.$ac_ext <<_ACEOF | |
4899 | /* end confdefs.h. */ | |
a4f547cd | 4900 | #include <stdio.h> |
e4a8bde4 SP |
4901 | #ifdef HAVE_EXT2FS_EXT2_FS_H |
4902 | #include <ext2fs/ext2_fs.h> | |
4903 | #else | |
a4f547cd | 4904 | #include <linux/ext2_fs.h> |
e4a8bde4 | 4905 | #endif |
a4f547cd | 4906 | #include <ext2fs/ext2fs.h> |
1daf06b9 SP |
4907 | int |
4908 | main () | |
4909 | { | |
a4f547cd | 4910 | struct ext2_super_block es; es.s_journal_inum = 0; |
1daf06b9 SP |
4911 | ; |
4912 | return 0; | |
4913 | } | |
4914 | _ACEOF | |
4915 | rm -f conftest.$ac_objext | |
7f7d329e SP |
4916 | if { (ac_try="$ac_compile" |
4917 | case "(($ac_try" in | |
4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4919 | *) ac_try_echo=$ac_try;; | |
4920 | esac | |
572eed31 SP |
4921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4922 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4923 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 4924 | ac_status=$? |
c9e4e868 SP |
4925 | grep -v '^ *+' conftest.er1 >conftest.err |
4926 | rm -f conftest.er1 | |
4927 | cat conftest.err >&5 | |
572eed31 | 4928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4929 | (exit $ac_status); } && { |
4930 | test -z "$ac_c_werror_flag" || | |
4931 | test ! -s conftest.err | |
4932 | } && test -s conftest.$ac_objext; then | |
e7d18957 SP |
4933 | |
4934 | cat >>confdefs.h <<\_ACEOF | |
a4f547cd | 4935 | #define HAVE_EXT2_JOURNAL_INUM 1 |
1daf06b9 | 4936 | _ACEOF |
e7d18957 | 4937 | |
572eed31 SP |
4938 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
4939 | $as_echo "yes" >&6; } | |
a4f547cd | 4940 | else |
572eed31 | 4941 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
4942 | sed 's/^/| /' conftest.$ac_ext >&5 |
4943 | ||
572eed31 SP |
4944 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4945 | $as_echo "no" >&6; } | |
a4f547cd | 4946 | fi |
c9e4e868 | 4947 | |
7f7d329e SP |
4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4949 | ||
572eed31 SP |
4950 | { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5 |
4951 | $as_echo_n "checking for blkid/blkid.h... " >&6; } | |
c9e4e868 | 4952 | if test "${ac_cv_header_blkid_blkid_h+set}" = set; then |
572eed31 | 4953 | $as_echo_n "(cached) " >&6 |
c9e4e868 SP |
4954 | else |
4955 | cat >conftest.$ac_ext <<_ACEOF | |
4956 | /* confdefs.h. */ | |
4957 | _ACEOF | |
4958 | cat confdefs.h >>conftest.$ac_ext | |
4959 | cat >>conftest.$ac_ext <<_ACEOF | |
4960 | /* end confdefs.h. */ | |
4961 | #include <blkid/blkid.h> | |
4962 | _ACEOF | |
7f7d329e SP |
4963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4964 | case "(($ac_try" in | |
4965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4966 | *) ac_try_echo=$ac_try;; | |
4967 | esac | |
572eed31 SP |
4968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4969 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 4970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
c9e4e868 SP |
4971 | ac_status=$? |
4972 | grep -v '^ *+' conftest.er1 >conftest.err | |
4973 | rm -f conftest.er1 | |
4974 | cat conftest.err >&5 | |
572eed31 | 4975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
4976 | (exit $ac_status); } >/dev/null && { |
4977 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4978 | test ! -s conftest.err | |
4979 | }; then | |
c9e4e868 SP |
4980 | ac_cv_header_blkid_blkid_h=yes |
4981 | else | |
572eed31 | 4982 | $as_echo "$as_me: failed program was:" >&5 |
c9e4e868 SP |
4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
4984 | ||
4985 | ac_cv_header_blkid_blkid_h=no | |
4986 | fi | |
7f7d329e | 4987 | |
c9e4e868 SP |
4988 | rm -f conftest.err conftest.$ac_ext |
4989 | fi | |
572eed31 SP |
4990 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5 |
4991 | $as_echo "$ac_cv_header_blkid_blkid_h" >&6; } | |
4992 | if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then | |
c9e4e868 SP |
4993 | blkid_h=yes |
4994 | else | |
4995 | blkid_h=no | |
4996 | fi | |
4997 | ||
4998 | ||
572eed31 SP |
4999 | { $as_echo "$as_me:$LINENO: checking for blkid_get_devname in -lblkid" >&5 |
5000 | $as_echo_n "checking for blkid_get_devname in -lblkid... " >&6; } | |
c9e4e868 | 5001 | if test "${ac_cv_lib_blkid_blkid_get_devname+set}" = set; then |
572eed31 | 5002 | $as_echo_n "(cached) " >&6 |
c9e4e868 SP |
5003 | else |
5004 | ac_check_lib_save_LIBS=$LIBS | |
5005 | LIBS="-lblkid -luuid $LIBS" | |
5006 | cat >conftest.$ac_ext <<_ACEOF | |
5007 | /* confdefs.h. */ | |
5008 | _ACEOF | |
5009 | cat confdefs.h >>conftest.$ac_ext | |
5010 | cat >>conftest.$ac_ext <<_ACEOF | |
5011 | /* end confdefs.h. */ | |
5012 | ||
7f7d329e SP |
5013 | /* Override any GCC internal prototype to avoid an error. |
5014 | Use char because int might match the return type of a GCC | |
5015 | builtin and then its argument prototype would still apply. */ | |
c9e4e868 SP |
5016 | #ifdef __cplusplus |
5017 | extern "C" | |
5018 | #endif | |
c9e4e868 SP |
5019 | char blkid_get_devname (); |
5020 | int | |
5021 | main () | |
5022 | { | |
7f7d329e | 5023 | return blkid_get_devname (); |
c9e4e868 SP |
5024 | ; |
5025 | return 0; | |
5026 | } | |
5027 | _ACEOF | |
5028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5029 | if { (ac_try="$ac_link" |
5030 | case "(($ac_try" in | |
5031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5032 | *) ac_try_echo=$ac_try;; | |
5033 | esac | |
572eed31 SP |
5034 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5035 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5036 | (eval "$ac_link") 2>conftest.er1 |
c9e4e868 SP |
5037 | ac_status=$? |
5038 | grep -v '^ *+' conftest.er1 >conftest.err | |
5039 | rm -f conftest.er1 | |
5040 | cat conftest.err >&5 | |
572eed31 | 5041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5042 | (exit $ac_status); } && { |
5043 | test -z "$ac_c_werror_flag" || | |
5044 | test ! -s conftest.err | |
572eed31 SP |
5045 | } && test -s conftest$ac_exeext && { |
5046 | test "$cross_compiling" = yes || | |
5047 | $as_test_x conftest$ac_exeext | |
5048 | }; then | |
c9e4e868 SP |
5049 | ac_cv_lib_blkid_blkid_get_devname=yes |
5050 | else | |
572eed31 | 5051 | $as_echo "$as_me: failed program was:" >&5 |
c9e4e868 SP |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 |
5053 | ||
7f7d329e | 5054 | ac_cv_lib_blkid_blkid_get_devname=no |
c9e4e868 | 5055 | fi |
7f7d329e | 5056 | |
572eed31 | 5057 | rm -rf conftest.dSYM |
d2816d4c | 5058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 SP |
5059 | conftest$ac_exeext conftest.$ac_ext |
5060 | LIBS=$ac_check_lib_save_LIBS | |
5061 | fi | |
572eed31 SP |
5062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_devname" >&5 |
5063 | $as_echo "$ac_cv_lib_blkid_blkid_get_devname" >&6; } | |
5064 | if test "x$ac_cv_lib_blkid_blkid_get_devname" = x""yes; then | |
c9e4e868 SP |
5065 | blkid_lib=yes |
5066 | else | |
5067 | blkid_lib=no | |
5068 | fi | |
5069 | ||
5070 | if test "$blkid_h" = yes -a "$blkid_lib" = yes; then | |
5071 | ||
5072 | cat >>confdefs.h <<\_ACEOF | |
5073 | #define HAVE_BLKID 1 | |
5074 | _ACEOF | |
5075 | ||
572eed31 | 5076 | BLKID="-lblkid -luuid" |
c9e4e868 SP |
5077 | fi |
5078 | ||
a4f547cd | 5079 | |
572eed31 SP |
5080 | { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
5081 | $as_echo_n "checking for tgetent in -lncurses... " >&6; } | |
0556ca22 | 5082 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
572eed31 | 5083 | $as_echo_n "(cached) " >&6 |
0556ca22 SP |
5084 | else |
5085 | ac_check_lib_save_LIBS=$LIBS | |
5086 | LIBS="-lncurses $LIBS" | |
5087 | cat >conftest.$ac_ext <<_ACEOF | |
5088 | /* confdefs.h. */ | |
5089 | _ACEOF | |
5090 | cat confdefs.h >>conftest.$ac_ext | |
5091 | cat >>conftest.$ac_ext <<_ACEOF | |
5092 | /* end confdefs.h. */ | |
5093 | ||
7f7d329e SP |
5094 | /* Override any GCC internal prototype to avoid an error. |
5095 | Use char because int might match the return type of a GCC | |
5096 | builtin and then its argument prototype would still apply. */ | |
0556ca22 SP |
5097 | #ifdef __cplusplus |
5098 | extern "C" | |
5099 | #endif | |
0556ca22 SP |
5100 | char tgetent (); |
5101 | int | |
5102 | main () | |
5103 | { | |
7f7d329e | 5104 | return tgetent (); |
0556ca22 SP |
5105 | ; |
5106 | return 0; | |
5107 | } | |
5108 | _ACEOF | |
5109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5110 | if { (ac_try="$ac_link" |
5111 | case "(($ac_try" in | |
5112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5113 | *) ac_try_echo=$ac_try;; | |
5114 | esac | |
572eed31 SP |
5115 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5116 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5117 | (eval "$ac_link") 2>conftest.er1 |
0556ca22 SP |
5118 | ac_status=$? |
5119 | grep -v '^ *+' conftest.er1 >conftest.err | |
5120 | rm -f conftest.er1 | |
5121 | cat conftest.err >&5 | |
572eed31 | 5122 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5123 | (exit $ac_status); } && { |
5124 | test -z "$ac_c_werror_flag" || | |
5125 | test ! -s conftest.err | |
572eed31 SP |
5126 | } && test -s conftest$ac_exeext && { |
5127 | test "$cross_compiling" = yes || | |
5128 | $as_test_x conftest$ac_exeext | |
5129 | }; then | |
0556ca22 SP |
5130 | ac_cv_lib_ncurses_tgetent=yes |
5131 | else | |
572eed31 | 5132 | $as_echo "$as_me: failed program was:" >&5 |
0556ca22 SP |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
5134 | ||
7f7d329e | 5135 | ac_cv_lib_ncurses_tgetent=no |
0556ca22 | 5136 | fi |
7f7d329e | 5137 | |
572eed31 | 5138 | rm -rf conftest.dSYM |
d2816d4c | 5139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
0556ca22 SP |
5140 | conftest$ac_exeext conftest.$ac_ext |
5141 | LIBS=$ac_check_lib_save_LIBS | |
5142 | fi | |
572eed31 SP |
5143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
5144 | $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } | |
5145 | if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then | |
0556ca22 SP |
5146 | ncurses_lib=yes |
5147 | else | |
5148 | ncurses_lib=no | |
5149 | fi | |
5150 | ||
572eed31 SP |
5151 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
5152 | $as_echo_n "checking for tgetent in -ltermcap... " >&6; } | |
1daf06b9 | 5153 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
572eed31 | 5154 | $as_echo_n "(cached) " >&6 |
3e815572 | 5155 | else |
1daf06b9 | 5156 | ac_check_lib_save_LIBS=$LIBS |
3e815572 | 5157 | LIBS="-ltermcap $LIBS" |
1daf06b9 | 5158 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5159 | /* confdefs.h. */ |
5160 | _ACEOF | |
5161 | cat confdefs.h >>conftest.$ac_ext | |
5162 | cat >>conftest.$ac_ext <<_ACEOF | |
5163 | /* end confdefs.h. */ | |
1daf06b9 | 5164 | |
7f7d329e SP |
5165 | /* Override any GCC internal prototype to avoid an error. |
5166 | Use char because int might match the return type of a GCC | |
5167 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5168 | #ifdef __cplusplus |
5169 | extern "C" | |
5170 | #endif | |
1daf06b9 | 5171 | char tgetent (); |
1daf06b9 SP |
5172 | int |
5173 | main () | |
5174 | { | |
7f7d329e | 5175 | return tgetent (); |
1daf06b9 SP |
5176 | ; |
5177 | return 0; | |
5178 | } | |
5179 | _ACEOF | |
5180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5181 | if { (ac_try="$ac_link" |
5182 | case "(($ac_try" in | |
5183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5184 | *) ac_try_echo=$ac_try;; | |
5185 | esac | |
572eed31 SP |
5186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5187 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5188 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5189 | ac_status=$? |
c9e4e868 SP |
5190 | grep -v '^ *+' conftest.er1 >conftest.err |
5191 | rm -f conftest.er1 | |
5192 | cat conftest.err >&5 | |
572eed31 | 5193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5194 | (exit $ac_status); } && { |
5195 | test -z "$ac_c_werror_flag" || | |
5196 | test ! -s conftest.err | |
572eed31 SP |
5197 | } && test -s conftest$ac_exeext && { |
5198 | test "$cross_compiling" = yes || | |
5199 | $as_test_x conftest$ac_exeext | |
5200 | }; then | |
1daf06b9 SP |
5201 | ac_cv_lib_termcap_tgetent=yes |
5202 | else | |
572eed31 | 5203 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5204 | sed 's/^/| /' conftest.$ac_ext >&5 |
5205 | ||
7f7d329e | 5206 | ac_cv_lib_termcap_tgetent=no |
1daf06b9 | 5207 | fi |
7f7d329e | 5208 | |
572eed31 | 5209 | rm -rf conftest.dSYM |
d2816d4c | 5210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5211 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5212 | LIBS=$ac_check_lib_save_LIBS |
5213 | fi | |
572eed31 SP |
5214 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
5215 | $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } | |
5216 | if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then | |
3e815572 SP |
5217 | termcap_lib=yes |
5218 | else | |
1daf06b9 | 5219 | termcap_lib=no |
3e815572 SP |
5220 | fi |
5221 | ||
572eed31 SP |
5222 | { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
5223 | $as_echo_n "checking for tgetent in -ltinfo... " >&6; } | |
d2816d4c | 5224 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
572eed31 | 5225 | $as_echo_n "(cached) " >&6 |
d2816d4c SP |
5226 | else |
5227 | ac_check_lib_save_LIBS=$LIBS | |
5228 | LIBS="-ltinfo $LIBS" | |
5229 | cat >conftest.$ac_ext <<_ACEOF | |
5230 | /* confdefs.h. */ | |
5231 | _ACEOF | |
5232 | cat confdefs.h >>conftest.$ac_ext | |
5233 | cat >>conftest.$ac_ext <<_ACEOF | |
5234 | /* end confdefs.h. */ | |
0556ca22 | 5235 | |
d2816d4c SP |
5236 | /* Override any GCC internal prototype to avoid an error. |
5237 | Use char because int might match the return type of a GCC | |
5238 | builtin and then its argument prototype would still apply. */ | |
5239 | #ifdef __cplusplus | |
5240 | extern "C" | |
5241 | #endif | |
5242 | char tgetent (); | |
5243 | int | |
5244 | main () | |
5245 | { | |
5246 | return tgetent (); | |
5247 | ; | |
5248 | return 0; | |
5249 | } | |
5250 | _ACEOF | |
5251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5252 | if { (ac_try="$ac_link" | |
5253 | case "(($ac_try" in | |
5254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5255 | *) ac_try_echo=$ac_try;; | |
5256 | esac | |
572eed31 SP |
5257 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5258 | $as_echo "$ac_try_echo") >&5 | |
d2816d4c SP |
5259 | (eval "$ac_link") 2>conftest.er1 |
5260 | ac_status=$? | |
5261 | grep -v '^ *+' conftest.er1 >conftest.err | |
5262 | rm -f conftest.er1 | |
5263 | cat conftest.err >&5 | |
572eed31 | 5264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5265 | (exit $ac_status); } && { |
5266 | test -z "$ac_c_werror_flag" || | |
5267 | test ! -s conftest.err | |
572eed31 SP |
5268 | } && test -s conftest$ac_exeext && { |
5269 | test "$cross_compiling" = yes || | |
5270 | $as_test_x conftest$ac_exeext | |
5271 | }; then | |
d2816d4c SP |
5272 | ac_cv_lib_tinfo_tgetent=yes |
5273 | else | |
572eed31 | 5274 | $as_echo "$as_me: failed program was:" >&5 |
d2816d4c SP |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 |
5276 | ||
5277 | ac_cv_lib_tinfo_tgetent=no | |
5278 | fi | |
5279 | ||
572eed31 | 5280 | rm -rf conftest.dSYM |
d2816d4c SP |
5281 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5282 | conftest$ac_exeext conftest.$ac_ext | |
5283 | LIBS=$ac_check_lib_save_LIBS | |
5284 | fi | |
572eed31 SP |
5285 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
5286 | $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } | |
5287 | if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then | |
d2816d4c SP |
5288 | tinfo_lib=yes |
5289 | else | |
5290 | tinfo_lib=no | |
5291 | fi | |
5292 | ||
5293 | ||
5294 | if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then | |
0556ca22 | 5295 | if test "$READLINE" = "yes"; then |
572eed31 SP |
5296 | { { $as_echo "$as_me:$LINENO: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&5 |
5297 | $as_echo "$as_me: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&2;} | |
1daf06b9 | 5298 | { (exit 1); exit 1; }; } |
3e815572 SP |
5299 | fi |
5300 | fi | |
d2816d4c SP |
5301 | if test "$tinfo_lib" = yes; then |
5302 | rdllib="-ltinfo" | |
5303 | elif test "$ncurses_lib" = yes; then | |
0556ca22 SP |
5304 | rdllib="-lncurses" |
5305 | elif test "$termcap_lib" = yes; then | |
5306 | rdllib="-ltermcap" | |
5307 | fi | |
3e815572 | 5308 | |
572eed31 SP |
5309 | { $as_echo "$as_me:$LINENO: checking for readline/readline.h" >&5 |
5310 | $as_echo_n "checking for readline/readline.h... " >&6; } | |
1daf06b9 | 5311 | if test "${ac_cv_header_readline_readline_h+set}" = set; then |
572eed31 | 5312 | $as_echo_n "(cached) " >&6 |
1daf06b9 | 5313 | else |
d3e542e7 | 5314 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5315 | /* confdefs.h. */ |
5316 | _ACEOF | |
5317 | cat confdefs.h >>conftest.$ac_ext | |
5318 | cat >>conftest.$ac_ext <<_ACEOF | |
5319 | /* end confdefs.h. */ | |
c38e5b6a | 5320 | #include <readline/readline.h> |
1daf06b9 | 5321 | _ACEOF |
7f7d329e SP |
5322 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5323 | case "(($ac_try" in | |
5324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5325 | *) ac_try_echo=$ac_try;; | |
5326 | esac | |
572eed31 SP |
5327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5328 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5329 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1daf06b9 | 5330 | ac_status=$? |
cdfe1392 | 5331 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5332 | rm -f conftest.er1 |
5333 | cat conftest.err >&5 | |
572eed31 | 5334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5335 | (exit $ac_status); } >/dev/null && { |
5336 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5337 | test ! -s conftest.err | |
5338 | }; then | |
d3e542e7 | 5339 | ac_cv_header_readline_readline_h=yes |
1daf06b9 | 5340 | else |
572eed31 | 5341 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5342 | sed 's/^/| /' conftest.$ac_ext >&5 |
5343 | ||
d3e542e7 | 5344 | ac_cv_header_readline_readline_h=no |
1daf06b9 | 5345 | fi |
7f7d329e | 5346 | |
1daf06b9 | 5347 | rm -f conftest.err conftest.$ac_ext |
c38e5b6a | 5348 | fi |
572eed31 SP |
5349 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 |
5350 | $as_echo "$ac_cv_header_readline_readline_h" >&6; } | |
5351 | if test "x$ac_cv_header_readline_readline_h" = x""yes; then | |
c38e5b6a SP |
5352 | readline_h=yes |
5353 | else | |
1daf06b9 | 5354 | readline_h=no |
c38e5b6a SP |
5355 | fi |
5356 | ||
1daf06b9 | 5357 | |
572eed31 SP |
5358 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
5359 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
1daf06b9 | 5360 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
572eed31 | 5361 | $as_echo_n "(cached) " >&6 |
c38e5b6a | 5362 | else |
1daf06b9 | 5363 | ac_check_lib_save_LIBS=$LIBS |
0556ca22 | 5364 | LIBS="-lreadline $rdllib $LIBS" |
1daf06b9 | 5365 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5366 | /* confdefs.h. */ |
5367 | _ACEOF | |
5368 | cat confdefs.h >>conftest.$ac_ext | |
5369 | cat >>conftest.$ac_ext <<_ACEOF | |
5370 | /* end confdefs.h. */ | |
1daf06b9 | 5371 | |
7f7d329e SP |
5372 | /* Override any GCC internal prototype to avoid an error. |
5373 | Use char because int might match the return type of a GCC | |
5374 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5375 | #ifdef __cplusplus |
5376 | extern "C" | |
5377 | #endif | |
1daf06b9 | 5378 | char readline (); |
1daf06b9 SP |
5379 | int |
5380 | main () | |
5381 | { | |
7f7d329e | 5382 | return readline (); |
1daf06b9 SP |
5383 | ; |
5384 | return 0; | |
5385 | } | |
5386 | _ACEOF | |
5387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5388 | if { (ac_try="$ac_link" |
5389 | case "(($ac_try" in | |
5390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5391 | *) ac_try_echo=$ac_try;; | |
5392 | esac | |
572eed31 SP |
5393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5394 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5395 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5396 | ac_status=$? |
c9e4e868 SP |
5397 | grep -v '^ *+' conftest.er1 >conftest.err |
5398 | rm -f conftest.er1 | |
5399 | cat conftest.err >&5 | |
572eed31 | 5400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5401 | (exit $ac_status); } && { |
5402 | test -z "$ac_c_werror_flag" || | |
5403 | test ! -s conftest.err | |
572eed31 SP |
5404 | } && test -s conftest$ac_exeext && { |
5405 | test "$cross_compiling" = yes || | |
5406 | $as_test_x conftest$ac_exeext | |
5407 | }; then | |
1daf06b9 SP |
5408 | ac_cv_lib_readline_readline=yes |
5409 | else | |
572eed31 | 5410 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5411 | sed 's/^/| /' conftest.$ac_ext >&5 |
5412 | ||
7f7d329e | 5413 | ac_cv_lib_readline_readline=no |
1daf06b9 | 5414 | fi |
7f7d329e | 5415 | |
572eed31 | 5416 | rm -rf conftest.dSYM |
d2816d4c | 5417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5418 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5419 | LIBS=$ac_check_lib_save_LIBS |
5420 | fi | |
572eed31 SP |
5421 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
5422 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
5423 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
c38e5b6a SP |
5424 | readline_lib=yes |
5425 | else | |
1daf06b9 | 5426 | readline_lib=no |
c38e5b6a SP |
5427 | fi |
5428 | ||
5429 | if test "$readline_h" = no -o "$readline_lib" = no; then | |
0556ca22 | 5430 | if test "$READLINE" = "yes"; then |
572eed31 SP |
5431 | { { $as_echo "$as_me:$LINENO: error: You need to install the GNU readline library or configure without --enable-readline" >&5 |
5432 | $as_echo "$as_me: error: You need to install the GNU readline library or configure without --enable-readline" >&2;} | |
1daf06b9 | 5433 | { (exit 1); exit 1; }; } |
c38e5b6a SP |
5434 | fi |
5435 | fi | |
0556ca22 SP |
5436 | if test "$READLINE" = yes; then |
5437 | READLINE="-lreadline $rdllib" | |
5438 | fi | |
5439 | ||
c38e5b6a | 5440 | |
572eed31 SP |
5441 | { $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
5442 | $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } | |
1daf06b9 | 5443 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
572eed31 | 5444 | $as_echo_n "(cached) " >&6 |
bcecd677 | 5445 | else |
1daf06b9 | 5446 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5447 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5448 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5449 | /* confdefs.h. */ |
5450 | _ACEOF | |
5451 | cat confdefs.h >>conftest.$ac_ext | |
5452 | cat >>conftest.$ac_ext <<_ACEOF | |
5453 | /* end confdefs.h. */ | |
1daf06b9 | 5454 | |
7f7d329e SP |
5455 | /* Override any GCC internal prototype to avoid an error. |
5456 | Use char because int might match the return type of a GCC | |
5457 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5458 | #ifdef __cplusplus |
5459 | extern "C" | |
5460 | #endif | |
1daf06b9 | 5461 | char rl_completion_matches (); |
1daf06b9 SP |
5462 | int |
5463 | main () | |
5464 | { | |
7f7d329e | 5465 | return rl_completion_matches (); |
1daf06b9 SP |
5466 | ; |
5467 | return 0; | |
5468 | } | |
5469 | _ACEOF | |
5470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5471 | if { (ac_try="$ac_link" |
5472 | case "(($ac_try" in | |
5473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5474 | *) ac_try_echo=$ac_try;; | |
5475 | esac | |
572eed31 SP |
5476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5477 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5478 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5479 | ac_status=$? |
c9e4e868 SP |
5480 | grep -v '^ *+' conftest.er1 >conftest.err |
5481 | rm -f conftest.er1 | |
5482 | cat conftest.err >&5 | |
572eed31 | 5483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5484 | (exit $ac_status); } && { |
5485 | test -z "$ac_c_werror_flag" || | |
5486 | test ! -s conftest.err | |
572eed31 SP |
5487 | } && test -s conftest$ac_exeext && { |
5488 | test "$cross_compiling" = yes || | |
5489 | $as_test_x conftest$ac_exeext | |
5490 | }; then | |
1daf06b9 SP |
5491 | ac_cv_lib_readline_rl_completion_matches=yes |
5492 | else | |
572eed31 | 5493 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
5495 | ||
7f7d329e | 5496 | ac_cv_lib_readline_rl_completion_matches=no |
1daf06b9 | 5497 | fi |
7f7d329e | 5498 | |
572eed31 | 5499 | rm -rf conftest.dSYM |
d2816d4c | 5500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5501 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5502 | LIBS=$ac_check_lib_save_LIBS |
5503 | fi | |
572eed31 SP |
5504 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
5505 | $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } | |
5506 | if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then | |
bcecd677 SP |
5507 | rlcm=yes |
5508 | else | |
1daf06b9 | 5509 | rlcm=no |
bcecd677 SP |
5510 | fi |
5511 | ||
5512 | if test "$rlcm" = yes; then | |
e7d18957 SP |
5513 | |
5514 | cat >>confdefs.h <<\_ACEOF | |
bcecd677 | 5515 | #define HAVE_READLINE_RLCM 1 |
1daf06b9 | 5516 | _ACEOF |
bcecd677 SP |
5517 | |
5518 | fi | |
5519 | ||
572eed31 SP |
5520 | { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character in -lreadline" >&5 |
5521 | $as_echo_n "checking for rl_completion_append_character in -lreadline... " >&6; } | |
1daf06b9 | 5522 | if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then |
572eed31 | 5523 | $as_echo_n "(cached) " >&6 |
bcecd677 | 5524 | else |
1daf06b9 | 5525 | ac_check_lib_save_LIBS=$LIBS |
bcecd677 | 5526 | LIBS="-lreadline "-ltermcap" $LIBS" |
1daf06b9 | 5527 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5528 | /* confdefs.h. */ |
5529 | _ACEOF | |
5530 | cat confdefs.h >>conftest.$ac_ext | |
5531 | cat >>conftest.$ac_ext <<_ACEOF | |
5532 | /* end confdefs.h. */ | |
1daf06b9 | 5533 | |
7f7d329e SP |
5534 | /* Override any GCC internal prototype to avoid an error. |
5535 | Use char because int might match the return type of a GCC | |
5536 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5537 | #ifdef __cplusplus |
5538 | extern "C" | |
5539 | #endif | |
1daf06b9 | 5540 | char rl_completion_append_character (); |
1daf06b9 SP |
5541 | int |
5542 | main () | |
5543 | { | |
7f7d329e | 5544 | return rl_completion_append_character (); |
1daf06b9 SP |
5545 | ; |
5546 | return 0; | |
5547 | } | |
5548 | _ACEOF | |
5549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5550 | if { (ac_try="$ac_link" |
5551 | case "(($ac_try" in | |
5552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5553 | *) ac_try_echo=$ac_try;; | |
5554 | esac | |
572eed31 SP |
5555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5556 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5557 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5558 | ac_status=$? |
c9e4e868 SP |
5559 | grep -v '^ *+' conftest.er1 >conftest.err |
5560 | rm -f conftest.er1 | |
5561 | cat conftest.err >&5 | |
572eed31 | 5562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5563 | (exit $ac_status); } && { |
5564 | test -z "$ac_c_werror_flag" || | |
5565 | test ! -s conftest.err | |
572eed31 SP |
5566 | } && test -s conftest$ac_exeext && { |
5567 | test "$cross_compiling" = yes || | |
5568 | $as_test_x conftest$ac_exeext | |
5569 | }; then | |
1daf06b9 SP |
5570 | ac_cv_lib_readline_rl_completion_append_character=yes |
5571 | else | |
572eed31 | 5572 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5573 | sed 's/^/| /' conftest.$ac_ext >&5 |
5574 | ||
7f7d329e | 5575 | ac_cv_lib_readline_rl_completion_append_character=no |
1daf06b9 | 5576 | fi |
7f7d329e | 5577 | |
572eed31 | 5578 | rm -rf conftest.dSYM |
d2816d4c | 5579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5580 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5581 | LIBS=$ac_check_lib_save_LIBS |
5582 | fi | |
572eed31 SP |
5583 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_append_character" >&5 |
5584 | $as_echo "$ac_cv_lib_readline_rl_completion_append_character" >&6; } | |
5585 | if test "x$ac_cv_lib_readline_rl_completion_append_character" = x""yes; then | |
1daf06b9 SP |
5586 | rcac=yes |
5587 | else | |
5588 | rcac=no | |
bcecd677 SP |
5589 | fi |
5590 | ||
5591 | if test "$rcac" = yes; then | |
e7d18957 SP |
5592 | |
5593 | cat >>confdefs.h <<\_ACEOF | |
d3e542e7 SP |
5594 | #define HAVE_READLINE_CAC 1 |
5595 | _ACEOF | |
5596 | ||
1daf06b9 | 5597 | fi |
1daf06b9 | 5598 | |
572eed31 SP |
5599 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 |
5600 | $as_echo_n "checking for zlib.h... " >&6; } | |
d3e542e7 | 5601 | if test "${ac_cv_header_zlib_h+set}" = set; then |
572eed31 | 5602 | $as_echo_n "(cached) " >&6 |
d3e542e7 SP |
5603 | else |
5604 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
5605 | /* confdefs.h. */ |
5606 | _ACEOF | |
5607 | cat confdefs.h >>conftest.$ac_ext | |
5608 | cat >>conftest.$ac_ext <<_ACEOF | |
5609 | /* end confdefs.h. */ | |
4d5ed2f3 | 5610 | #include <zlib.h> |
1daf06b9 | 5611 | _ACEOF |
7f7d329e SP |
5612 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5613 | case "(($ac_try" in | |
5614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5615 | *) ac_try_echo=$ac_try;; | |
5616 | esac | |
572eed31 SP |
5617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5618 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5619 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1daf06b9 | 5620 | ac_status=$? |
cdfe1392 | 5621 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5622 | rm -f conftest.er1 |
5623 | cat conftest.err >&5 | |
572eed31 | 5624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5625 | (exit $ac_status); } >/dev/null && { |
5626 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5627 | test ! -s conftest.err | |
5628 | }; then | |
d3e542e7 | 5629 | ac_cv_header_zlib_h=yes |
1daf06b9 | 5630 | else |
572eed31 | 5631 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5632 | sed 's/^/| /' conftest.$ac_ext >&5 |
5633 | ||
d3e542e7 | 5634 | ac_cv_header_zlib_h=no |
1daf06b9 | 5635 | fi |
7f7d329e | 5636 | |
1daf06b9 | 5637 | rm -f conftest.err conftest.$ac_ext |
4d5ed2f3 | 5638 | fi |
572eed31 SP |
5639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
5640 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
5641 | if test "x$ac_cv_header_zlib_h" = x""yes; then | |
4d5ed2f3 SP |
5642 | zlib_h=yes |
5643 | else | |
1daf06b9 | 5644 | zlib_h=no |
4d5ed2f3 SP |
5645 | fi |
5646 | ||
1daf06b9 | 5647 | |
572eed31 SP |
5648 | { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 |
5649 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
1daf06b9 | 5650 | if test "${ac_cv_lib_z_compress2+set}" = set; then |
572eed31 | 5651 | $as_echo_n "(cached) " >&6 |
4d5ed2f3 | 5652 | else |
1daf06b9 | 5653 | ac_check_lib_save_LIBS=$LIBS |
4d5ed2f3 | 5654 | LIBS="-lz $LIBS" |
1daf06b9 | 5655 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5656 | /* confdefs.h. */ |
5657 | _ACEOF | |
5658 | cat confdefs.h >>conftest.$ac_ext | |
5659 | cat >>conftest.$ac_ext <<_ACEOF | |
5660 | /* end confdefs.h. */ | |
1daf06b9 | 5661 | |
7f7d329e SP |
5662 | /* Override any GCC internal prototype to avoid an error. |
5663 | Use char because int might match the return type of a GCC | |
5664 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5665 | #ifdef __cplusplus |
5666 | extern "C" | |
5667 | #endif | |
1daf06b9 | 5668 | char compress2 (); |
1daf06b9 SP |
5669 | int |
5670 | main () | |
5671 | { | |
7f7d329e | 5672 | return compress2 (); |
1daf06b9 SP |
5673 | ; |
5674 | return 0; | |
5675 | } | |
5676 | _ACEOF | |
5677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5678 | if { (ac_try="$ac_link" |
5679 | case "(($ac_try" in | |
5680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5681 | *) ac_try_echo=$ac_try;; | |
5682 | esac | |
572eed31 SP |
5683 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5684 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5685 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5686 | ac_status=$? |
c9e4e868 SP |
5687 | grep -v '^ *+' conftest.er1 >conftest.err |
5688 | rm -f conftest.er1 | |
5689 | cat conftest.err >&5 | |
572eed31 | 5690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5691 | (exit $ac_status); } && { |
5692 | test -z "$ac_c_werror_flag" || | |
5693 | test ! -s conftest.err | |
572eed31 SP |
5694 | } && test -s conftest$ac_exeext && { |
5695 | test "$cross_compiling" = yes || | |
5696 | $as_test_x conftest$ac_exeext | |
5697 | }; then | |
1daf06b9 SP |
5698 | ac_cv_lib_z_compress2=yes |
5699 | else | |
572eed31 | 5700 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5701 | sed 's/^/| /' conftest.$ac_ext >&5 |
5702 | ||
7f7d329e | 5703 | ac_cv_lib_z_compress2=no |
1daf06b9 | 5704 | fi |
7f7d329e | 5705 | |
572eed31 | 5706 | rm -rf conftest.dSYM |
d2816d4c | 5707 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5708 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5709 | LIBS=$ac_check_lib_save_LIBS |
5710 | fi | |
572eed31 SP |
5711 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 |
5712 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
5713 | if test "x$ac_cv_lib_z_compress2" = x""yes; then | |
4d5ed2f3 SP |
5714 | zlib_lib=yes |
5715 | else | |
1daf06b9 | 5716 | zlib_lib=no |
4d5ed2f3 SP |
5717 | fi |
5718 | ||
5719 | if test "$zlib_h" = yes -a "$zlib_lib" = yes; then | |
d7783603 SP |
5720 | if test "$STATICZ" = yes; then |
5721 | ZLIB="-Wl,-Bstatic -lz -Wl,-Bdynamic" | |
5722 | else | |
5723 | ZLIB="-lz" | |
5724 | fi | |
e7d18957 SP |
5725 | |
5726 | cat >>confdefs.h <<\_ACEOF | |
4d5ed2f3 | 5727 | #define HAVE_ZLIB 1 |
1daf06b9 | 5728 | _ACEOF |
4d5ed2f3 SP |
5729 | |
5730 | else | |
5731 | ZLIB="" | |
5732 | fi | |
5733 | ||
5734 | ||
572eed31 SP |
5735 | { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
5736 | $as_echo_n "checking for bzlib.h... " >&6; } | |
1daf06b9 | 5737 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
572eed31 | 5738 | $as_echo_n "(cached) " >&6 |
1daf06b9 | 5739 | else |
d3e542e7 | 5740 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5741 | /* confdefs.h. */ |
5742 | _ACEOF | |
5743 | cat confdefs.h >>conftest.$ac_ext | |
5744 | cat >>conftest.$ac_ext <<_ACEOF | |
5745 | /* end confdefs.h. */ | |
1daf06b9 SP |
5746 | #include <bzlib.h> |
5747 | _ACEOF | |
7f7d329e SP |
5748 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5749 | case "(($ac_try" in | |
5750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5751 | *) ac_try_echo=$ac_try;; | |
5752 | esac | |
572eed31 SP |
5753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5754 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
1daf06b9 | 5756 | ac_status=$? |
cdfe1392 | 5757 | grep -v '^ *+' conftest.er1 >conftest.err |
1daf06b9 SP |
5758 | rm -f conftest.er1 |
5759 | cat conftest.err >&5 | |
572eed31 | 5760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5761 | (exit $ac_status); } >/dev/null && { |
5762 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5763 | test ! -s conftest.err | |
5764 | }; then | |
d3e542e7 | 5765 | ac_cv_header_bzlib_h=yes |
1daf06b9 | 5766 | else |
572eed31 | 5767 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5768 | sed 's/^/| /' conftest.$ac_ext >&5 |
5769 | ||
d3e542e7 | 5770 | ac_cv_header_bzlib_h=no |
1daf06b9 | 5771 | fi |
7f7d329e | 5772 | |
1daf06b9 | 5773 | rm -f conftest.err conftest.$ac_ext |
88ef261e | 5774 | fi |
572eed31 SP |
5775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
5776 | $as_echo "$ac_cv_header_bzlib_h" >&6; } | |
5777 | if test "x$ac_cv_header_bzlib_h" = x""yes; then | |
88ef261e SP |
5778 | bzlib_h=yes |
5779 | else | |
1daf06b9 | 5780 | bzlib_h=no |
88ef261e SP |
5781 | fi |
5782 | ||
1daf06b9 | 5783 | |
572eed31 SP |
5784 | { $as_echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5 |
5785 | $as_echo_n "checking for BZ2_bzBuffToBuffCompress in -lbz2... " >&6; } | |
1daf06b9 | 5786 | if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then |
572eed31 | 5787 | $as_echo_n "(cached) " >&6 |
88ef261e | 5788 | else |
1daf06b9 | 5789 | ac_check_lib_save_LIBS=$LIBS |
88ef261e | 5790 | LIBS="-lbz2 $LIBS" |
1daf06b9 | 5791 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5792 | /* confdefs.h. */ |
5793 | _ACEOF | |
5794 | cat confdefs.h >>conftest.$ac_ext | |
5795 | cat >>conftest.$ac_ext <<_ACEOF | |
5796 | /* end confdefs.h. */ | |
1daf06b9 | 5797 | |
7f7d329e SP |
5798 | /* Override any GCC internal prototype to avoid an error. |
5799 | Use char because int might match the return type of a GCC | |
5800 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5801 | #ifdef __cplusplus |
5802 | extern "C" | |
5803 | #endif | |
1daf06b9 | 5804 | char BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5805 | int |
5806 | main () | |
5807 | { | |
7f7d329e | 5808 | return BZ2_bzBuffToBuffCompress (); |
1daf06b9 SP |
5809 | ; |
5810 | return 0; | |
5811 | } | |
5812 | _ACEOF | |
5813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5814 | if { (ac_try="$ac_link" |
5815 | case "(($ac_try" in | |
5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5817 | *) ac_try_echo=$ac_try;; | |
5818 | esac | |
572eed31 SP |
5819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5820 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5821 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5822 | ac_status=$? |
c9e4e868 SP |
5823 | grep -v '^ *+' conftest.er1 >conftest.err |
5824 | rm -f conftest.er1 | |
5825 | cat conftest.err >&5 | |
572eed31 | 5826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5827 | (exit $ac_status); } && { |
5828 | test -z "$ac_c_werror_flag" || | |
5829 | test ! -s conftest.err | |
572eed31 SP |
5830 | } && test -s conftest$ac_exeext && { |
5831 | test "$cross_compiling" = yes || | |
5832 | $as_test_x conftest$ac_exeext | |
5833 | }; then | |
1daf06b9 SP |
5834 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes |
5835 | else | |
572eed31 | 5836 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
5838 | ||
7f7d329e | 5839 | ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no |
1daf06b9 | 5840 | fi |
7f7d329e | 5841 | |
572eed31 | 5842 | rm -rf conftest.dSYM |
d2816d4c | 5843 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5844 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 SP |
5845 | LIBS=$ac_check_lib_save_LIBS |
5846 | fi | |
572eed31 SP |
5847 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5 |
5848 | $as_echo "$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; } | |
5849 | if test "x$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" = x""yes; then | |
88ef261e SP |
5850 | bzlib_lib=yes |
5851 | else | |
1daf06b9 | 5852 | bzlib_lib=no |
88ef261e SP |
5853 | fi |
5854 | ||
5855 | if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then | |
d7783603 SP |
5856 | if test "$STATICZ" = yes; then |
5857 | BZLIB="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic" | |
5858 | else | |
5859 | BZLIB="-lbz2" | |
5860 | fi | |
e7d18957 SP |
5861 | |
5862 | cat >>confdefs.h <<\_ACEOF | |
88ef261e | 5863 | #define HAVE_BZLIB 1 |
1daf06b9 | 5864 | _ACEOF |
88ef261e SP |
5865 | |
5866 | else | |
5867 | BZLIB="" | |
5868 | fi | |
5869 | ||
5870 | ||
1daf06b9 SP |
5871 | |
5872 | ||
5873 | ||
5874 | ||
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5c1faba5 | 5881 | for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown |
1227625a | 5882 | do |
572eed31 SP |
5883 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5884 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5885 | $as_echo_n "checking for $ac_func... " >&6; } | |
7f7d329e | 5886 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
572eed31 | 5887 | $as_echo_n "(cached) " >&6 |
1daf06b9 SP |
5888 | else |
5889 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
5890 | /* confdefs.h. */ |
5891 | _ACEOF | |
5892 | cat confdefs.h >>conftest.$ac_ext | |
5893 | cat >>conftest.$ac_ext <<_ACEOF | |
5894 | /* end confdefs.h. */ | |
c9e4e868 SP |
5895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5897 | #define $ac_func innocuous_$ac_func | |
5898 | ||
1227625a | 5899 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
5900 | which can conflict with char $ac_func (); below. |
5901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5902 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 5903 | |
cdfe1392 SP |
5904 | #ifdef __STDC__ |
5905 | # include <limits.h> | |
5906 | #else | |
5907 | # include <assert.h> | |
5908 | #endif | |
c9e4e868 SP |
5909 | |
5910 | #undef $ac_func | |
5911 | ||
7f7d329e SP |
5912 | /* Override any GCC internal prototype to avoid an error. |
5913 | Use char because int might match the return type of a GCC | |
5914 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
5915 | #ifdef __cplusplus |
5916 | extern "C" | |
5917 | #endif | |
1daf06b9 | 5918 | char $ac_func (); |
1227625a SP |
5919 | /* The GNU C library defines this for functions which it implements |
5920 | to always fail with ENOSYS. Some functions are actually named | |
5921 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 5922 | #if defined __stub_$ac_func || defined __stub___$ac_func |
1227625a | 5923 | choke me |
1227625a SP |
5924 | #endif |
5925 | ||
cdfe1392 SP |
5926 | int |
5927 | main () | |
5928 | { | |
7f7d329e | 5929 | return $ac_func (); |
1daf06b9 SP |
5930 | ; |
5931 | return 0; | |
5932 | } | |
5933 | _ACEOF | |
5934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
5935 | if { (ac_try="$ac_link" |
5936 | case "(($ac_try" in | |
5937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5938 | *) ac_try_echo=$ac_try;; | |
5939 | esac | |
572eed31 SP |
5940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5941 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 5942 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 5943 | ac_status=$? |
c9e4e868 SP |
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
5945 | rm -f conftest.er1 | |
5946 | cat conftest.err >&5 | |
572eed31 | 5947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
5948 | (exit $ac_status); } && { |
5949 | test -z "$ac_c_werror_flag" || | |
5950 | test ! -s conftest.err | |
572eed31 SP |
5951 | } && test -s conftest$ac_exeext && { |
5952 | test "$cross_compiling" = yes || | |
5953 | $as_test_x conftest$ac_exeext | |
5954 | }; then | |
1daf06b9 SP |
5955 | eval "$as_ac_var=yes" |
5956 | else | |
572eed31 | 5957 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
5958 | sed 's/^/| /' conftest.$ac_ext >&5 |
5959 | ||
7f7d329e | 5960 | eval "$as_ac_var=no" |
1daf06b9 | 5961 | fi |
7f7d329e | 5962 | |
572eed31 | 5963 | rm -rf conftest.dSYM |
d2816d4c | 5964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 5965 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 5966 | fi |
572eed31 SP |
5967 | ac_res=`eval 'as_val=${'$as_ac_var'} |
5968 | $as_echo "$as_val"'` | |
5969 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5970 | $as_echo "$ac_res" >&6; } | |
5971 | as_val=`eval 'as_val=${'$as_ac_var'} | |
5972 | $as_echo "$as_val"'` | |
5973 | if test "x$as_val" = x""yes; then | |
1daf06b9 | 5974 | cat >>confdefs.h <<_ACEOF |
572eed31 | 5975 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
1daf06b9 | 5976 | _ACEOF |
1227625a | 5977 | |
1227625a SP |
5978 | fi |
5979 | done | |
5980 | ||
572eed31 SP |
5981 | { $as_echo "$as_me:$LINENO: checking for glob" >&5 |
5982 | $as_echo_n "checking for glob... " >&6; } | |
1daf06b9 | 5983 | if test "${ac_cv_func_glob+set}" = set; then |
572eed31 | 5984 | $as_echo_n "(cached) " >&6 |
5c1faba5 | 5985 | else |
1daf06b9 | 5986 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
5987 | /* confdefs.h. */ |
5988 | _ACEOF | |
5989 | cat confdefs.h >>conftest.$ac_ext | |
5990 | cat >>conftest.$ac_ext <<_ACEOF | |
5991 | /* end confdefs.h. */ | |
c9e4e868 SP |
5992 | /* Define glob to an innocuous variant, in case <limits.h> declares glob. |
5993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5994 | #define glob innocuous_glob | |
5995 | ||
5c1faba5 | 5996 | /* System header to define __stub macros and hopefully few prototypes, |
cdfe1392 SP |
5997 | which can conflict with char glob (); below. |
5998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5999 | <limits.h> exists even on freestanding compilers. */ | |
c9e4e868 | 6000 | |
cdfe1392 SP |
6001 | #ifdef __STDC__ |
6002 | # include <limits.h> | |
6003 | #else | |
6004 | # include <assert.h> | |
6005 | #endif | |
c9e4e868 SP |
6006 | |
6007 | #undef glob | |
6008 | ||
7f7d329e SP |
6009 | /* Override any GCC internal prototype to avoid an error. |
6010 | Use char because int might match the return type of a GCC | |
6011 | builtin and then its argument prototype would still apply. */ | |
1daf06b9 SP |
6012 | #ifdef __cplusplus |
6013 | extern "C" | |
6014 | #endif | |
1daf06b9 | 6015 | char glob (); |
5c1faba5 SP |
6016 | /* The GNU C library defines this for functions which it implements |
6017 | to always fail with ENOSYS. Some functions are actually named | |
6018 | something starting with __ and the normal name is an alias. */ | |
7f7d329e | 6019 | #if defined __stub_glob || defined __stub___glob |
5c1faba5 | 6020 | choke me |
5c1faba5 SP |
6021 | #endif |
6022 | ||
cdfe1392 SP |
6023 | int |
6024 | main () | |
6025 | { | |
7f7d329e | 6026 | return glob (); |
1daf06b9 SP |
6027 | ; |
6028 | return 0; | |
6029 | } | |
6030 | _ACEOF | |
6031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6032 | if { (ac_try="$ac_link" |
6033 | case "(($ac_try" in | |
6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6035 | *) ac_try_echo=$ac_try;; | |
6036 | esac | |
572eed31 SP |
6037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6038 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6039 | (eval "$ac_link") 2>conftest.er1 |
1daf06b9 | 6040 | ac_status=$? |
c9e4e868 SP |
6041 | grep -v '^ *+' conftest.er1 >conftest.err |
6042 | rm -f conftest.er1 | |
6043 | cat conftest.err >&5 | |
572eed31 | 6044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6045 | (exit $ac_status); } && { |
6046 | test -z "$ac_c_werror_flag" || | |
6047 | test ! -s conftest.err | |
572eed31 SP |
6048 | } && test -s conftest$ac_exeext && { |
6049 | test "$cross_compiling" = yes || | |
6050 | $as_test_x conftest$ac_exeext | |
6051 | }; then | |
1daf06b9 SP |
6052 | ac_cv_func_glob=yes |
6053 | else | |
572eed31 | 6054 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6055 | sed 's/^/| /' conftest.$ac_ext >&5 |
6056 | ||
7f7d329e | 6057 | ac_cv_func_glob=no |
1daf06b9 | 6058 | fi |
7f7d329e | 6059 | |
572eed31 | 6060 | rm -rf conftest.dSYM |
d2816d4c | 6061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 6062 | conftest$ac_exeext conftest.$ac_ext |
1daf06b9 | 6063 | fi |
572eed31 SP |
6064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5 |
6065 | $as_echo "$ac_cv_func_glob" >&6; } | |
1daf06b9 SP |
6066 | |
6067 | ||
572eed31 SP |
6068 | { $as_echo "$as_me:$LINENO: checking for extended glob routines" >&5 |
6069 | $as_echo_n "checking for extended glob routines... " >&6; } | |
5c1faba5 | 6070 | if test "$ac_cv_func_glob" = "yes"; then |
e7d18957 | 6071 | cat >conftest.$ac_ext <<_ACEOF |
cdfe1392 SP |
6072 | /* confdefs.h. */ |
6073 | _ACEOF | |
6074 | cat confdefs.h >>conftest.$ac_ext | |
6075 | cat >>conftest.$ac_ext <<_ACEOF | |
6076 | /* end confdefs.h. */ | |
5c1faba5 SP |
6077 | |
6078 | # include <glob.h> | |
6079 | # ifdef GLOB_ALTDIRFUNC | |
6080 | yes | |
6081 | # endif | |
1daf06b9 SP |
6082 | |
6083 | _ACEOF | |
5c1faba5 | 6084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cdfe1392 | 6085 | $EGREP "yes" >/dev/null 2>&1; then |
5c1faba5 | 6086 | |
e7d18957 SP |
6087 | |
6088 | cat >>confdefs.h <<\_ACEOF | |
1daf06b9 SP |
6089 | #define HAVE_GLOB 1 |
6090 | _ACEOF | |
1227625a | 6091 | |
572eed31 SP |
6092 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
6093 | $as_echo "yes" >&6; } | |
1227625a | 6094 | |
1227625a | 6095 | else |
1227625a | 6096 | |
572eed31 SP |
6097 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6098 | $as_echo "no" >&6; } | |
1daf06b9 | 6099 | echo "Your system does not support extended glob, will use the internal routines" |
1227625a | 6100 | |
1227625a SP |
6101 | fi |
6102 | rm -f conftest* | |
6103 | ||
6104 | fi | |
6105 | ||
18282881 | 6106 | if test "$ERMT" != ""; then |
e7d18957 | 6107 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
572eed31 SP |
6108 | { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
6109 | $as_echo_n "checking for openssl/evp.h... " >&6; } | |
18282881 | 6110 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
572eed31 | 6111 | $as_echo_n "(cached) " >&6 |
18282881 | 6112 | fi |
572eed31 SP |
6113 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
6114 | $as_echo "$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
6115 | else |
6116 | # Is the header compilable? | |
572eed31 SP |
6117 | { $as_echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5 |
6118 | $as_echo_n "checking openssl/evp.h usability... " >&6; } | |
18282881 | 6119 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
6120 | /* confdefs.h. */ |
6121 | _ACEOF | |
6122 | cat confdefs.h >>conftest.$ac_ext | |
6123 | cat >>conftest.$ac_ext <<_ACEOF | |
6124 | /* end confdefs.h. */ | |
6125 | $ac_includes_default | |
6126 | #include <openssl/evp.h> | |
6127 | _ACEOF | |
6128 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6129 | if { (ac_try="$ac_compile" |
6130 | case "(($ac_try" in | |
6131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6132 | *) ac_try_echo=$ac_try;; | |
6133 | esac | |
572eed31 SP |
6134 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6135 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6136 | (eval "$ac_compile") 2>conftest.er1 |
18282881 | 6137 | ac_status=$? |
c9e4e868 SP |
6138 | grep -v '^ *+' conftest.er1 >conftest.err |
6139 | rm -f conftest.er1 | |
6140 | cat conftest.err >&5 | |
572eed31 | 6141 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6142 | (exit $ac_status); } && { |
6143 | test -z "$ac_c_werror_flag" || | |
6144 | test ! -s conftest.err | |
6145 | } && test -s conftest.$ac_objext; then | |
18282881 SP |
6146 | ac_header_compiler=yes |
6147 | else | |
572eed31 | 6148 | $as_echo "$as_me: failed program was:" >&5 |
18282881 SP |
6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
6150 | ||
7f7d329e | 6151 | ac_header_compiler=no |
18282881 | 6152 | fi |
7f7d329e SP |
6153 | |
6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
572eed31 SP |
6155 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6156 | $as_echo "$ac_header_compiler" >&6; } | |
18282881 SP |
6157 | |
6158 | # Is the header present? | |
572eed31 SP |
6159 | { $as_echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5 |
6160 | $as_echo_n "checking openssl/evp.h presence... " >&6; } | |
18282881 | 6161 | cat >conftest.$ac_ext <<_ACEOF |
18282881 SP |
6162 | /* confdefs.h. */ |
6163 | _ACEOF | |
6164 | cat confdefs.h >>conftest.$ac_ext | |
6165 | cat >>conftest.$ac_ext <<_ACEOF | |
6166 | /* end confdefs.h. */ | |
6167 | #include <openssl/evp.h> | |
6168 | _ACEOF | |
7f7d329e SP |
6169 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6170 | case "(($ac_try" in | |
6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6172 | *) ac_try_echo=$ac_try;; | |
6173 | esac | |
572eed31 SP |
6174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6175 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6176 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
18282881 SP |
6177 | ac_status=$? |
6178 | grep -v '^ *+' conftest.er1 >conftest.err | |
6179 | rm -f conftest.er1 | |
6180 | cat conftest.err >&5 | |
572eed31 | 6181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6182 | (exit $ac_status); } >/dev/null && { |
6183 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6184 | test ! -s conftest.err | |
6185 | }; then | |
18282881 SP |
6186 | ac_header_preproc=yes |
6187 | else | |
572eed31 | 6188 | $as_echo "$as_me: failed program was:" >&5 |
18282881 SP |
6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
6190 | ||
6191 | ac_header_preproc=no | |
6192 | fi | |
7f7d329e | 6193 | |
18282881 | 6194 | rm -f conftest.err conftest.$ac_ext |
572eed31 SP |
6195 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6196 | $as_echo "$ac_header_preproc" >&6; } | |
18282881 SP |
6197 | |
6198 | # So? What about this header? | |
c9e4e868 SP |
6199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6200 | yes:no: ) | |
572eed31 SP |
6201 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6202 | $as_echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6203 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5 | |
6204 | $as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;} | |
c9e4e868 | 6205 | ac_header_preproc=yes |
18282881 | 6206 | ;; |
c9e4e868 | 6207 | no:yes:* ) |
572eed31 SP |
6208 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5 |
6209 | $as_echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;} | |
6210 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5 | |
6211 | $as_echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;} | |
6212 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5 | |
6213 | $as_echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;} | |
6214 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6215 | $as_echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6216 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 | |
6217 | $as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} | |
6218 | { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5 | |
6219 | $as_echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;} | |
7f7d329e | 6220 | |
18282881 SP |
6221 | ;; |
6222 | esac | |
572eed31 SP |
6223 | { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 |
6224 | $as_echo_n "checking for openssl/evp.h... " >&6; } | |
18282881 | 6225 | if test "${ac_cv_header_openssl_evp_h+set}" = set; then |
572eed31 | 6226 | $as_echo_n "(cached) " >&6 |
18282881 SP |
6227 | else |
6228 | ac_cv_header_openssl_evp_h=$ac_header_preproc | |
6229 | fi | |
572eed31 SP |
6230 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 |
6231 | $as_echo "$ac_cv_header_openssl_evp_h" >&6; } | |
18282881 SP |
6232 | |
6233 | fi | |
572eed31 | 6234 | if test "x$ac_cv_header_openssl_evp_h" = x""yes; then |
18282881 SP |
6235 | evp_h=yes |
6236 | else | |
6237 | evp_h=no | |
6238 | fi | |
6239 | ||
6240 | ||
572eed31 SP |
6241 | { $as_echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5 |
6242 | $as_echo_n "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... " >&6; } | |
18282881 | 6243 | if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+set}" = set; then |
572eed31 | 6244 | $as_echo_n "(cached) " >&6 |
18282881 SP |
6245 | else |
6246 | ac_check_lib_save_LIBS=$LIBS | |
6247 | LIBS="-lcrypto $LIBS" | |
6248 | cat >conftest.$ac_ext <<_ACEOF | |
18282881 SP |
6249 | /* confdefs.h. */ |
6250 | _ACEOF | |
6251 | cat confdefs.h >>conftest.$ac_ext | |
6252 | cat >>conftest.$ac_ext <<_ACEOF | |
6253 | /* end confdefs.h. */ | |
6254 | ||
7f7d329e SP |
6255 | /* Override any GCC internal prototype to avoid an error. |
6256 | Use char because int might match the return type of a GCC | |
6257 | builtin and then its argument prototype would still apply. */ | |
18282881 SP |
6258 | #ifdef __cplusplus |
6259 | extern "C" | |
6260 | #endif | |
18282881 SP |
6261 | char EVP_CIPHER_CTX_set_padding (); |
6262 | int | |
6263 | main () | |
6264 | { | |
7f7d329e | 6265 | return EVP_CIPHER_CTX_set_padding (); |
18282881 SP |
6266 | ; |
6267 | return 0; | |
6268 | } | |
6269 | _ACEOF | |
6270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7f7d329e SP |
6271 | if { (ac_try="$ac_link" |
6272 | case "(($ac_try" in | |
6273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6274 | *) ac_try_echo=$ac_try;; | |
6275 | esac | |
572eed31 SP |
6276 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6277 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6278 | (eval "$ac_link") 2>conftest.er1 |
18282881 | 6279 | ac_status=$? |
c9e4e868 SP |
6280 | grep -v '^ *+' conftest.er1 >conftest.err |
6281 | rm -f conftest.er1 | |
6282 | cat conftest.err >&5 | |
572eed31 | 6283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6284 | (exit $ac_status); } && { |
6285 | test -z "$ac_c_werror_flag" || | |
6286 | test ! -s conftest.err | |
572eed31 SP |
6287 | } && test -s conftest$ac_exeext && { |
6288 | test "$cross_compiling" = yes || | |
6289 | $as_test_x conftest$ac_exeext | |
6290 | }; then | |
18282881 SP |
6291 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes |
6292 | else | |
572eed31 | 6293 | $as_echo "$as_me: failed program was:" >&5 |
18282881 SP |
6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
6295 | ||
7f7d329e | 6296 | ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no |
18282881 | 6297 | fi |
7f7d329e | 6298 | |
572eed31 | 6299 | rm -rf conftest.dSYM |
d2816d4c | 6300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
c9e4e868 | 6301 | conftest$ac_exeext conftest.$ac_ext |
18282881 SP |
6302 | LIBS=$ac_check_lib_save_LIBS |
6303 | fi | |
572eed31 SP |
6304 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5 |
6305 | $as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; } | |
6306 | if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" = x""yes; then | |
18282881 SP |
6307 | crypto_lib=yes |
6308 | else | |
6309 | crypto_lib=no | |
6310 | fi | |
6311 | ||
6312 | if test "$evp_h" = no -o "$crypto_lib" = no; then | |
572eed31 SP |
6313 | { { $as_echo "$as_me:$LINENO: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&5 |
6314 | $as_echo "$as_me: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&2;} | |
18282881 SP |
6315 | { (exit or configure without --enable-ermt); exit or configure without --enable-ermt; }; } |
6316 | fi | |
6317 | fi | |
6318 | ||
572eed31 SP |
6319 | { $as_echo "$as_me:$LINENO: checking for quad_t" >&5 |
6320 | $as_echo_n "checking for quad_t... " >&6; } | |
1daf06b9 | 6321 | if test "${ac_cv_type_quad_t+set}" = set; then |
572eed31 | 6322 | $as_echo_n "(cached) " >&6 |
1227625a | 6323 | else |
572eed31 SP |
6324 | ac_cv_type_quad_t=no |
6325 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
6326 | /* confdefs.h. */ |
6327 | _ACEOF | |
6328 | cat confdefs.h >>conftest.$ac_ext | |
6329 | cat >>conftest.$ac_ext <<_ACEOF | |
6330 | /* end confdefs.h. */ | |
1daf06b9 | 6331 | $ac_includes_default |
1daf06b9 SP |
6332 | int |
6333 | main () | |
6334 | { | |
572eed31 SP |
6335 | if (sizeof (quad_t)) |
6336 | return 0; | |
6337 | ; | |
1daf06b9 | 6338 | return 0; |
572eed31 SP |
6339 | } |
6340 | _ACEOF | |
6341 | rm -f conftest.$ac_objext | |
6342 | if { (ac_try="$ac_compile" | |
6343 | case "(($ac_try" in | |
6344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6345 | *) ac_try_echo=$ac_try;; | |
6346 | esac | |
6347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6348 | $as_echo "$ac_try_echo") >&5 | |
6349 | (eval "$ac_compile") 2>conftest.er1 | |
6350 | ac_status=$? | |
6351 | grep -v '^ *+' conftest.er1 >conftest.err | |
6352 | rm -f conftest.er1 | |
6353 | cat conftest.err >&5 | |
6354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6355 | (exit $ac_status); } && { | |
6356 | test -z "$ac_c_werror_flag" || | |
6357 | test ! -s conftest.err | |
6358 | } && test -s conftest.$ac_objext; then | |
6359 | cat >conftest.$ac_ext <<_ACEOF | |
6360 | /* confdefs.h. */ | |
6361 | _ACEOF | |
6362 | cat confdefs.h >>conftest.$ac_ext | |
6363 | cat >>conftest.$ac_ext <<_ACEOF | |
6364 | /* end confdefs.h. */ | |
6365 | $ac_includes_default | |
6366 | int | |
6367 | main () | |
6368 | { | |
6369 | if (sizeof ((quad_t))) | |
6370 | return 0; | |
1daf06b9 SP |
6371 | ; |
6372 | return 0; | |
6373 | } | |
6374 | _ACEOF | |
6375 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6376 | if { (ac_try="$ac_compile" |
6377 | case "(($ac_try" in | |
6378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6379 | *) ac_try_echo=$ac_try;; | |
6380 | esac | |
572eed31 SP |
6381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6382 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6383 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 6384 | ac_status=$? |
c9e4e868 SP |
6385 | grep -v '^ *+' conftest.er1 >conftest.err |
6386 | rm -f conftest.er1 | |
6387 | cat conftest.err >&5 | |
572eed31 | 6388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6389 | (exit $ac_status); } && { |
6390 | test -z "$ac_c_werror_flag" || | |
6391 | test ! -s conftest.err | |
6392 | } && test -s conftest.$ac_objext; then | |
572eed31 SP |
6393 | : |
6394 | else | |
6395 | $as_echo "$as_me: failed program was:" >&5 | |
6396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6397 | ||
6398 | ac_cv_type_quad_t=yes | |
6399 | fi | |
6400 | ||
6401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6402 | else |
572eed31 | 6403 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
6405 | ||
572eed31 | 6406 | |
1227625a | 6407 | fi |
7f7d329e SP |
6408 | |
6409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6410 | fi |
572eed31 SP |
6411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5 |
6412 | $as_echo "$ac_cv_type_quad_t" >&6; } | |
6413 | if test "x$ac_cv_type_quad_t" = x""yes; then | |
1daf06b9 SP |
6414 | : |
6415 | else | |
6416 | ||
6417 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6418 | #define quad_t int64_t |
1daf06b9 | 6419 | _ACEOF |
1227625a SP |
6420 | |
6421 | fi | |
6422 | ||
572eed31 SP |
6423 | { $as_echo "$as_me:$LINENO: checking for u_quad_t" >&5 |
6424 | $as_echo_n "checking for u_quad_t... " >&6; } | |
1daf06b9 | 6425 | if test "${ac_cv_type_u_quad_t+set}" = set; then |
572eed31 | 6426 | $as_echo_n "(cached) " >&6 |
1227625a | 6427 | else |
572eed31 SP |
6428 | ac_cv_type_u_quad_t=no |
6429 | cat >conftest.$ac_ext <<_ACEOF | |
cdfe1392 SP |
6430 | /* confdefs.h. */ |
6431 | _ACEOF | |
6432 | cat confdefs.h >>conftest.$ac_ext | |
6433 | cat >>conftest.$ac_ext <<_ACEOF | |
6434 | /* end confdefs.h. */ | |
1daf06b9 | 6435 | $ac_includes_default |
1daf06b9 SP |
6436 | int |
6437 | main () | |
6438 | { | |
572eed31 SP |
6439 | if (sizeof (u_quad_t)) |
6440 | return 0; | |
6441 | ; | |
1daf06b9 | 6442 | return 0; |
572eed31 SP |
6443 | } |
6444 | _ACEOF | |
6445 | rm -f conftest.$ac_objext | |
6446 | if { (ac_try="$ac_compile" | |
6447 | case "(($ac_try" in | |
6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6449 | *) ac_try_echo=$ac_try;; | |
6450 | esac | |
6451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6452 | $as_echo "$ac_try_echo") >&5 | |
6453 | (eval "$ac_compile") 2>conftest.er1 | |
6454 | ac_status=$? | |
6455 | grep -v '^ *+' conftest.er1 >conftest.err | |
6456 | rm -f conftest.er1 | |
6457 | cat conftest.err >&5 | |
6458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6459 | (exit $ac_status); } && { | |
6460 | test -z "$ac_c_werror_flag" || | |
6461 | test ! -s conftest.err | |
6462 | } && test -s conftest.$ac_objext; then | |
6463 | cat >conftest.$ac_ext <<_ACEOF | |
6464 | /* confdefs.h. */ | |
6465 | _ACEOF | |
6466 | cat confdefs.h >>conftest.$ac_ext | |
6467 | cat >>conftest.$ac_ext <<_ACEOF | |
6468 | /* end confdefs.h. */ | |
6469 | $ac_includes_default | |
6470 | int | |
6471 | main () | |
6472 | { | |
6473 | if (sizeof ((u_quad_t))) | |
6474 | return 0; | |
1daf06b9 SP |
6475 | ; |
6476 | return 0; | |
6477 | } | |
6478 | _ACEOF | |
6479 | rm -f conftest.$ac_objext | |
7f7d329e SP |
6480 | if { (ac_try="$ac_compile" |
6481 | case "(($ac_try" in | |
6482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6483 | *) ac_try_echo=$ac_try;; | |
6484 | esac | |
572eed31 SP |
6485 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6486 | $as_echo "$ac_try_echo") >&5 | |
7f7d329e | 6487 | (eval "$ac_compile") 2>conftest.er1 |
1daf06b9 | 6488 | ac_status=$? |
c9e4e868 SP |
6489 | grep -v '^ *+' conftest.er1 >conftest.err |
6490 | rm -f conftest.er1 | |
6491 | cat conftest.err >&5 | |
572eed31 | 6492 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d2816d4c SP |
6493 | (exit $ac_status); } && { |
6494 | test -z "$ac_c_werror_flag" || | |
6495 | test ! -s conftest.err | |
6496 | } && test -s conftest.$ac_objext; then | |
572eed31 SP |
6497 | : |
6498 | else | |
6499 | $as_echo "$as_me: failed program was:" >&5 | |
6500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6501 | ||
6502 | ac_cv_type_u_quad_t=yes | |
6503 | fi | |
6504 | ||
6505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6506 | else |
572eed31 | 6507 | $as_echo "$as_me: failed program was:" >&5 |
cdfe1392 SP |
6508 | sed 's/^/| /' conftest.$ac_ext >&5 |
6509 | ||
572eed31 | 6510 | |
1227625a | 6511 | fi |
7f7d329e SP |
6512 | |
6513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1227625a | 6514 | fi |
572eed31 SP |
6515 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5 |
6516 | $as_echo "$ac_cv_type_u_quad_t" >&6; } | |
6517 | if test "x$ac_cv_type_u_quad_t" = x""yes; then | |
1daf06b9 SP |
6518 | : |
6519 | else | |
6520 | ||
6521 | cat >>confdefs.h <<_ACEOF | |
1a886de8 | 6522 | #define u_quad_t uint64_t |
1daf06b9 | 6523 | _ACEOF |
1227625a SP |
6524 | |
6525 | fi | |
6526 | ||
6527 | ||
6528 | top_builddir=`cd .; pwd` | |
6529 | ||
6530 | ||
6531 | test -d compat || mkdir compat | |
6532 | test -d compat/lib || mkdir compat/lib | |
6533 | ||
7f7d329e SP |
6534 | ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE" |
6535 | ||
1daf06b9 | 6536 | cat >confcache <<\_ACEOF |
1227625a SP |
6537 | # This file is a shell script that caches the results of configure |
6538 | # tests run on this system so they can be shared between configure | |
1daf06b9 SP |
6539 | # scripts and configure runs, see configure's option --config-cache. |
6540 | # It is not useful on other systems. If it contains results you don't | |
6541 | # want to keep, you may remove or edit it. | |
1227625a | 6542 | # |
1daf06b9 SP |
6543 | # config.status only pays attention to the cache file if you give it |
6544 | # the --recheck option to rerun configure. | |
1227625a | 6545 | # |
cdfe1392 | 6546 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
1daf06b9 SP |
6547 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6548 | # following values. | |
6549 | ||
6550 | _ACEOF | |
6551 | ||
1227625a SP |
6552 | # The following way of writing the cache mishandles newlines in values, |
6553 | # but we know of no workaround that is simple, portable, and efficient. | |
7f7d329e | 6554 | # So, we kill variables containing newlines. |
1227625a SP |
6555 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6556 | # and sets the high bit in the cache file unless we assign to the vars. | |
7f7d329e SP |
6557 | ( |
6558 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6559 | eval ac_val=\$$ac_var | |
6560 | case $ac_val in #( | |
6561 | *${as_nl}*) | |
6562 | case $ac_var in #( | |
572eed31 SP |
6563 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
6564 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7f7d329e SP |
6565 | esac |
6566 | case $ac_var in #( | |
6567 | _ | IFS | as_nl) ;; #( | |
572eed31 | 6568 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7f7d329e SP |
6569 | *) $as_unset $ac_var ;; |
6570 | esac ;; | |
6571 | esac | |
6572 | done | |
6573 | ||
1daf06b9 | 6574 | (set) 2>&1 | |
7f7d329e SP |
6575 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6576 | *${as_nl}ac_space=\ *) | |
1daf06b9 SP |
6577 | # `set' does not quote correctly, so add quotes (double-quote |
6578 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6579 | sed -n \ | |
c9e4e868 SP |
6580 | "s/'/'\\\\''/g; |
6581 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7f7d329e | 6582 | ;; #( |
1daf06b9 SP |
6583 | *) |
6584 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7f7d329e | 6585 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1daf06b9 | 6586 | ;; |
7f7d329e SP |
6587 | esac | |
6588 | sort | |
6589 | ) | | |
1daf06b9 | 6590 | sed ' |
7f7d329e | 6591 | /^ac_cv_env_/b end |
1daf06b9 | 6592 | t clear |
7f7d329e | 6593 | :clear |
1daf06b9 SP |
6594 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6595 | t end | |
7f7d329e SP |
6596 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6597 | :end' >>confcache | |
6598 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6599 | if test -w "$cache_file"; then | |
6600 | test "x$cache_file" != "x/dev/null" && | |
572eed31 SP |
6601 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
6602 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1daf06b9 | 6603 | cat confcache >$cache_file |
1227625a | 6604 | else |
572eed31 SP |
6605 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
6606 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
1227625a SP |
6607 | fi |
6608 | fi | |
6609 | rm -f confcache | |
6610 | ||
1227625a SP |
6611 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6612 | # Let make expand exec_prefix. | |
6613 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6614 | ||
1227625a SP |
6615 | DEFS=-DHAVE_CONFIG_H |
6616 | ||
cdfe1392 SP |
6617 | ac_libobjs= |
6618 | ac_ltlibobjs= | |
6619 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6620 | # 1. Remove the extension, and $U if already installed. | |
7f7d329e | 6621 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
572eed31 | 6622 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7f7d329e SP |
6623 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
6624 | # will be set to the directory where LIBOBJS objects are built. | |
6625 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6626 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
cdfe1392 SP |
6627 | done |
6628 | LIBOBJS=$ac_libobjs | |
6629 | ||
6630 | LTLIBOBJS=$ac_ltlibobjs | |
6631 | ||
6632 | ||
1227625a | 6633 | |
1daf06b9 | 6634 | : ${CONFIG_STATUS=./config.status} |
572eed31 | 6635 | ac_write_fail=0 |
1daf06b9 SP |
6636 | ac_clean_files_save=$ac_clean_files |
6637 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
572eed31 SP |
6638 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
6639 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6640 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1daf06b9 SP |
6641 | #! $SHELL |
6642 | # Generated by $as_me. | |
1227625a | 6643 | # Run this file to recreate the current configuration. |
1227625a | 6644 | # Compiler output produced by configure, useful for debugging |
1daf06b9 | 6645 | # configure, is in config.log if it exists. |
1227625a | 6646 | |
1daf06b9 | 6647 | debug=false |
cdfe1392 SP |
6648 | ac_cs_recheck=false |
6649 | ac_cs_silent=false | |
1daf06b9 SP |
6650 | SHELL=\${CONFIG_SHELL-$SHELL} |
6651 | _ACEOF | |
6652 | ||
572eed31 | 6653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1daf06b9 SP |
6654 | ## --------------------- ## |
6655 | ## M4sh Initialization. ## | |
6656 | ## --------------------- ## | |
6657 | ||
d2816d4c SP |
6658 | # Be more Bourne compatible |
6659 | DUALCASE=1; export DUALCASE # for MKS sh | |
1daf06b9 SP |
6660 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6661 | emulate sh | |
6662 | NULLCMD=: | |
572eed31 | 6663 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
cdfe1392 SP |
6664 | # is contrary to our usage. Disable this feature. |
6665 | alias -g '${1+"$@"}'='"$@"' | |
7f7d329e SP |
6666 | setopt NO_GLOB_SUBST |
6667 | else | |
d2816d4c SP |
6668 | case `(set -o) 2>/dev/null` in |
6669 | *posix*) set -o posix ;; | |
6670 | esac | |
6671 | ||
1daf06b9 | 6672 | fi |
d2816d4c SP |
6673 | |
6674 | ||
1daf06b9 | 6675 | |
7f7d329e SP |
6676 | |
6677 | # PATH needs CR | |
6678 | # Avoid depending upon Character Ranges. | |
6679 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6680 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6681 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6682 | as_cr_digits='0123456789' | |
6683 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6684 | ||
572eed31 SP |
6685 | as_nl=' |
6686 | ' | |
6687 | export as_nl | |
6688 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6689 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6690 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6691 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6692 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6693 | as_echo='printf %s\n' | |
6694 | as_echo_n='printf %s' | |
6695 | else | |
6696 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6697 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6698 | as_echo_n='/usr/ucb/echo -n' | |
7f7d329e | 6699 | else |
572eed31 SP |
6700 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
6701 | as_echo_n_body='eval | |
6702 | arg=$1; | |
6703 | case $arg in | |
6704 | *"$as_nl"*) | |
6705 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6706 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6707 | esac; | |
6708 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6709 | ' | |
6710 | export as_echo_n_body | |
6711 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7f7d329e | 6712 | fi |
572eed31 SP |
6713 | export as_echo_body |
6714 | as_echo='sh -c $as_echo_body as_echo' | |
6715 | fi | |
6716 | ||
6717 | # The user is always right. | |
6718 | if test "${PATH_SEPARATOR+set}" != set; then | |
6719 | PATH_SEPARATOR=: | |
6720 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6721 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6722 | PATH_SEPARATOR=';' | |
6723 | } | |
7f7d329e SP |
6724 | fi |
6725 | ||
1daf06b9 | 6726 | # Support unset when possible. |
c9e4e868 | 6727 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
1daf06b9 SP |
6728 | as_unset=unset |
6729 | else | |
6730 | as_unset=false | |
6731 | fi | |
6732 | ||
cdfe1392 | 6733 | |
7f7d329e SP |
6734 | # IFS |
6735 | # We need space, tab and new line, in precisely that order. Quoting is | |
6736 | # there to prevent editors from complaining about space-tab. | |
6737 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6738 | # splitting by setting IFS to empty value.) | |
7f7d329e SP |
6739 | IFS=" "" $as_nl" |
6740 | ||
6741 | # Find who we are. Look in the path if we contain no directory separator. | |
6742 | case $0 in | |
6743 | *[\\/]* ) as_myself=$0 ;; | |
6744 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6745 | for as_dir in $PATH | |
6746 | do | |
6747 | IFS=$as_save_IFS | |
6748 | test -z "$as_dir" && as_dir=. | |
6749 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6750 | done | |
6751 | IFS=$as_save_IFS | |
6752 | ||
6753 | ;; | |
6754 | esac | |
6755 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6756 | # in which case we are not to be found in the path. | |
6757 | if test "x$as_myself" = x; then | |
6758 | as_myself=$0 | |
6759 | fi | |
6760 | if test ! -f "$as_myself"; then | |
572eed31 | 6761 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7f7d329e SP |
6762 | { (exit 1); exit 1; } |
6763 | fi | |
6764 | ||
cdfe1392 | 6765 | # Work around bugs in pre-3.0 UWIN ksh. |
7f7d329e SP |
6766 | for as_var in ENV MAIL MAILPATH |
6767 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6768 | done | |
cdfe1392 SP |
6769 | PS1='$ ' |
6770 | PS2='> ' | |
6771 | PS4='+ ' | |
6772 | ||
6773 | # NLS nuisances. | |
572eed31 SP |
6774 | LC_ALL=C |
6775 | export LC_ALL | |
6776 | LANGUAGE=C | |
6777 | export LANGUAGE | |
cdfe1392 SP |
6778 | |
6779 | # Required to use basename. | |
7f7d329e SP |
6780 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6781 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
cdfe1392 SP |
6782 | as_expr=expr |
6783 | else | |
6784 | as_expr=false | |
6785 | fi | |
6786 | ||
7f7d329e | 6787 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
cdfe1392 SP |
6788 | as_basename=basename |
6789 | else | |
6790 | as_basename=false | |
6791 | fi | |
1daf06b9 SP |
6792 | |
6793 | ||
6794 | # Name of the executable. | |
7f7d329e | 6795 | as_me=`$as_basename -- "$0" || |
1daf06b9 SP |
6796 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6797 | X"$0" : 'X\(//\)$' \| \ | |
7f7d329e | 6798 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
572eed31 | 6799 | $as_echo X/"$0" | |
7f7d329e SP |
6800 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6801 | s//\1/ | |
6802 | q | |
6803 | } | |
6804 | /^X\/\(\/\/\)$/{ | |
6805 | s//\1/ | |
6806 | q | |
6807 | } | |
6808 | /^X\/\(\/\).*/{ | |
6809 | s//\1/ | |
6810 | q | |
6811 | } | |
6812 | s/.*/./; q'` | |
1daf06b9 | 6813 | |
7f7d329e SP |
6814 | # CDPATH. |
6815 | $as_unset CDPATH | |
1daf06b9 SP |
6816 | |
6817 | ||
1daf06b9 | 6818 | |
1daf06b9 SP |
6819 | as_lineno_1=$LINENO |
6820 | as_lineno_2=$LINENO | |
1daf06b9 | 6821 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7f7d329e | 6822 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
1daf06b9 SP |
6823 | |
6824 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6825 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7f7d329e SP |
6826 | # line-number line after each line using $LINENO; the second 'sed' |
6827 | # does the real work. The second script uses 'N' to pair each | |
6828 | # line-number line with the line containing $LINENO, and appends | |
6829 | # trailing '-' during substitution so that $LINENO is not a special | |
6830 | # case at line end. | |
1daf06b9 | 6831 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7f7d329e SP |
6832 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
6833 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6834 | sed -n ' | |
6835 | p | |
6836 | /[$]LINENO/= | |
6837 | ' <$as_myself | | |
1daf06b9 | 6838 | sed ' |
7f7d329e SP |
6839 | s/[$]LINENO.*/&-/ |
6840 | t lineno | |
6841 | b | |
6842 | :lineno | |
1daf06b9 | 6843 | N |
7f7d329e SP |
6844 | :loop |
6845 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1daf06b9 | 6846 | t loop |
7f7d329e | 6847 | s/-\n.*// |
1daf06b9 | 6848 | ' >$as_me.lineno && |
7f7d329e | 6849 | chmod +x "$as_me.lineno" || |
572eed31 | 6850 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
1daf06b9 SP |
6851 | { (exit 1); exit 1; }; } |
6852 | ||
6853 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6854 | # (the dirname of $[0] is not the place where we might find the | |
7f7d329e SP |
6855 | # original and so on. Autoconf is especially sensitive to this). |
6856 | . "./$as_me.lineno" | |
1daf06b9 SP |
6857 | # Exit status is that of the last command. |
6858 | exit | |
6859 | } | |
6860 | ||
6861 | ||
7f7d329e SP |
6862 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6863 | as_dirname=dirname | |
6864 | else | |
6865 | as_dirname=false | |
6866 | fi | |
6867 | ||
6868 | ECHO_C= ECHO_N= ECHO_T= | |
6869 | case `echo -n x` in | |
6870 | -n*) | |
6871 | case `echo 'x\c'` in | |
6872 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6873 | *) ECHO_C='\c';; | |
6874 | esac;; | |
6875 | *) | |
6876 | ECHO_N='-n';; | |
1daf06b9 | 6877 | esac |
7f7d329e SP |
6878 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6879 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1daf06b9 SP |
6880 | as_expr=expr |
6881 | else | |
6882 | as_expr=false | |
6883 | fi | |
6884 | ||
6885 | rm -f conf$$ conf$$.exe conf$$.file | |
7f7d329e SP |
6886 | if test -d conf$$.dir; then |
6887 | rm -f conf$$.dir/conf$$.file | |
6888 | else | |
6889 | rm -f conf$$.dir | |
572eed31 SP |
6890 | mkdir conf$$.dir 2>/dev/null |
6891 | fi | |
6892 | if (echo >conf$$.file) 2>/dev/null; then | |
6893 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6894 | as_ln_s='ln -s' | |
6895 | # ... but there are two gotchas: | |
6896 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6897 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6898 | # In both cases, we have to default to `cp -p'. | |
6899 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6900 | as_ln_s='cp -p' | |
6901 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6902 | as_ln_s=ln | |
6903 | else | |
1daf06b9 | 6904 | as_ln_s='cp -p' |
572eed31 | 6905 | fi |
1daf06b9 SP |
6906 | else |
6907 | as_ln_s='cp -p' | |
6908 | fi | |
7f7d329e SP |
6909 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6910 | rmdir conf$$.dir 2>/dev/null | |
1daf06b9 | 6911 | |
cdfe1392 SP |
6912 | if mkdir -p . 2>/dev/null; then |
6913 | as_mkdir_p=: | |
6914 | else | |
c9e4e868 | 6915 | test -d ./-p && rmdir ./-p |
cdfe1392 SP |
6916 | as_mkdir_p=false |
6917 | fi | |
6918 | ||
d2816d4c SP |
6919 | if test -x / >/dev/null 2>&1; then |
6920 | as_test_x='test -x' | |
7f7d329e | 6921 | else |
d2816d4c SP |
6922 | if ls -dL / >/dev/null 2>&1; then |
6923 | as_ls_L_option=L | |
6924 | else | |
6925 | as_ls_L_option= | |
6926 | fi | |
6927 | as_test_x=' | |
6928 | eval sh -c '\'' | |
6929 | if test -d "$1"; then | |
572eed31 | 6930 | test -d "$1/."; |
d2816d4c SP |
6931 | else |
6932 | case $1 in | |
572eed31 | 6933 | -*)set "./$1";; |
d2816d4c SP |
6934 | esac; |
6935 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
6936 | ???[sx]*):;;*)false;;esac;fi | |
6937 | '\'' sh | |
6938 | ' | |
7f7d329e | 6939 | fi |
d2816d4c | 6940 | as_executable_p=$as_test_x |
1daf06b9 SP |
6941 | |
6942 | # Sed expression to map a string onto a valid CPP name. | |
c9e4e868 | 6943 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
6944 | |
6945 | # Sed expression to map a string onto a valid variable name. | |
c9e4e868 | 6946 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1daf06b9 SP |
6947 | |
6948 | ||
1daf06b9 SP |
6949 | exec 6>&1 |
6950 | ||
7f7d329e | 6951 | # Save the log message, to keep $[0] and so on meaningful, and to |
1daf06b9 | 6952 | # report actual input values of CONFIG_FILES etc. instead of their |
7f7d329e SP |
6953 | # values after options handling. |
6954 | ac_log=" | |
1daf06b9 | 6955 | This file was extended by $as_me, which was |
572eed31 | 6956 | generated by GNU Autoconf 2.63. Invocation command line was |
1daf06b9 SP |
6957 | |
6958 | CONFIG_FILES = $CONFIG_FILES | |
6959 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6960 | CONFIG_LINKS = $CONFIG_LINKS | |
6961 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6962 | $ $0 $@ | |
6963 | ||
7f7d329e SP |
6964 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6965 | " | |
6966 | ||
1daf06b9 SP |
6967 | _ACEOF |
6968 | ||
572eed31 SP |
6969 | case $ac_config_files in *" |
6970 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6971 | esac | |
6972 | ||
6973 | case $ac_config_headers in *" | |
6974 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6975 | esac | |
6976 | ||
6977 | ||
6978 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1daf06b9 | 6979 | # Files that config.status was made for. |
7f7d329e SP |
6980 | config_files="$ac_config_files" |
6981 | config_headers="$ac_config_headers" | |
1daf06b9 | 6982 | |
7f7d329e | 6983 | _ACEOF |
1daf06b9 | 6984 | |
572eed31 | 6985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1daf06b9 SP |
6986 | ac_cs_usage="\ |
6987 | \`$as_me' instantiates files from templates according to the | |
6988 | current configuration. | |
6989 | ||
572eed31 | 6990 | Usage: $0 [OPTION]... [FILE]... |
1daf06b9 SP |
6991 | |
6992 | -h, --help print this help, then exit | |
d2816d4c | 6993 | -V, --version print version number and configuration settings, then exit |
572eed31 SP |
6994 | -q, --quiet, --silent |
6995 | do not print progress messages | |
1daf06b9 SP |
6996 | -d, --debug don't remove temporary files |
6997 | --recheck update $as_me by reconfiguring in the same conditions | |
572eed31 SP |
6998 | --file=FILE[:TEMPLATE] |
6999 | instantiate the configuration file FILE | |
7000 | --header=FILE[:TEMPLATE] | |
7001 | instantiate the configuration header FILE | |
1daf06b9 SP |
7002 | |
7003 | Configuration files: | |
7004 | $config_files | |
7005 | ||
7006 | Configuration headers: | |
7007 | $config_headers | |
7008 | ||
7009 | Report bugs to <bug-autoconf@gnu.org>." | |
1daf06b9 | 7010 | |
7f7d329e | 7011 | _ACEOF |
572eed31 | 7012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1daf06b9 SP |
7013 | ac_cs_version="\\ |
7014 | config.status | |
572eed31 SP |
7015 | configured by $0, generated by GNU Autoconf 2.63, |
7016 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1daf06b9 | 7017 | |
572eed31 | 7018 | Copyright (C) 2008 Free Software Foundation, Inc. |
1daf06b9 SP |
7019 | This config.status script is free software; the Free Software Foundation |
7020 | gives unlimited permission to copy, distribute and modify it." | |
7f7d329e SP |
7021 | |
7022 | ac_pwd='$ac_pwd' | |
7023 | srcdir='$srcdir' | |
7024 | INSTALL='$INSTALL' | |
572eed31 | 7025 | test -n "\$AWK" || AWK=awk |
1daf06b9 SP |
7026 | _ACEOF |
7027 | ||
572eed31 SP |
7028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7029 | # The default lists apply if the user does not specify any file. | |
1daf06b9 SP |
7030 | ac_need_defaults=: |
7031 | while test $# != 0 | |
1227625a | 7032 | do |
1daf06b9 SP |
7033 | case $1 in |
7034 | --*=*) | |
7f7d329e SP |
7035 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7036 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
cdfe1392 SP |
7037 | ac_shift=: |
7038 | ;; | |
7f7d329e | 7039 | *) |
cdfe1392 SP |
7040 | ac_option=$1 |
7041 | ac_optarg=$2 | |
7042 | ac_shift=shift | |
1daf06b9 | 7043 | ;; |
1daf06b9 SP |
7044 | esac |
7045 | ||
cdfe1392 | 7046 | case $ac_option in |
1daf06b9 | 7047 | # Handling of the options. |
cdfe1392 SP |
7048 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7049 | ac_cs_recheck=: ;; | |
7f7d329e | 7050 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
572eed31 | 7051 | $as_echo "$ac_cs_version"; exit ;; |
7f7d329e | 7052 | --debug | --debu | --deb | --de | --d | -d ) |
1daf06b9 SP |
7053 | debug=: ;; |
7054 | --file | --fil | --fi | --f ) | |
cdfe1392 | 7055 | $ac_shift |
572eed31 SP |
7056 | case $ac_optarg in |
7057 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7058 | esac | |
7059 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
1daf06b9 SP |
7060 | ac_need_defaults=false;; |
7061 | --header | --heade | --head | --hea ) | |
cdfe1392 | 7062 | $ac_shift |
572eed31 SP |
7063 | case $ac_optarg in |
7064 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7065 | esac | |
7066 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
1daf06b9 | 7067 | ac_need_defaults=false;; |
7f7d329e SP |
7068 | --he | --h) |
7069 | # Conflict between --help and --header | |
572eed31 | 7070 | { $as_echo "$as_me: error: ambiguous option: $1 |
7f7d329e SP |
7071 | Try \`$0 --help' for more information." >&2 |
7072 | { (exit 1); exit 1; }; };; | |
7073 | --help | --hel | -h ) | |
572eed31 | 7074 | $as_echo "$ac_cs_usage"; exit ;; |
cdfe1392 SP |
7075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7076 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7077 | ac_cs_silent=: ;; | |
1daf06b9 SP |
7078 | |
7079 | # This is an error. | |
572eed31 | 7080 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7f7d329e | 7081 | Try \`$0 --help' for more information." >&2 |
1daf06b9 SP |
7082 | { (exit 1); exit 1; }; } ;; |
7083 | ||
7f7d329e SP |
7084 | *) ac_config_targets="$ac_config_targets $1" |
7085 | ac_need_defaults=false ;; | |
1daf06b9 | 7086 | |
1227625a | 7087 | esac |
1daf06b9 | 7088 | shift |
1227625a SP |
7089 | done |
7090 | ||
cdfe1392 SP |
7091 | ac_configure_extra_args= |
7092 | ||
7093 | if $ac_cs_silent; then | |
7094 | exec 6>/dev/null | |
7095 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7096 | fi | |
7097 | ||
7098 | _ACEOF | |
572eed31 | 7099 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
cdfe1392 | 7100 | if \$ac_cs_recheck; then |
572eed31 SP |
7101 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7102 | shift | |
7103 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7104 | CONFIG_SHELL='$SHELL' | |
7f7d329e | 7105 | export CONFIG_SHELL |
572eed31 | 7106 | exec "\$@" |
cdfe1392 SP |
7107 | fi |
7108 | ||
1daf06b9 | 7109 | _ACEOF |
572eed31 | 7110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7f7d329e SP |
7111 | exec 5>>config.log |
7112 | { | |
7113 | echo | |
7114 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7115 | ## Running $as_me. ## | |
7116 | _ASBOX | |
572eed31 | 7117 | $as_echo "$ac_log" |
7f7d329e | 7118 | } >&5 |
1227625a | 7119 | |
7f7d329e | 7120 | _ACEOF |
572eed31 | 7121 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7f7d329e | 7122 | _ACEOF |
1daf06b9 | 7123 | |
572eed31 | 7124 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7f7d329e SP |
7125 | |
7126 | # Handling of arguments. | |
1daf06b9 SP |
7127 | for ac_config_target in $ac_config_targets |
7128 | do | |
7f7d329e SP |
7129 | case $ac_config_target in |
7130 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7131 | "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;; | |
7132 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7133 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
7134 | "compat/include/Makefile") CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;; | |
7135 | "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;; | |
7136 | "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;; | |
7137 | "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;; | |
7138 | "$RMTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;; | |
7139 | ||
572eed31 SP |
7140 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7141 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
1daf06b9 SP |
7142 | { (exit 1); exit 1; }; };; |
7143 | esac | |
7144 | done | |
7145 | ||
7f7d329e | 7146 | |
1daf06b9 SP |
7147 | # If the user did not use the arguments to specify the items to instantiate, |
7148 | # then the envvar interface is used. Set only those that are not. | |
7149 | # We use the long form for the default assignment because of an extremely | |
7150 | # bizarre bug on SunOS 4.1.3. | |
7151 | if $ac_need_defaults; then | |
7152 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7153 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7154 | fi | |
7155 | ||
cdfe1392 | 7156 | # Have a temporary directory for convenience. Make it in the build tree |
7f7d329e | 7157 | # simply because there is no reason against having it here, and in addition, |
cdfe1392 | 7158 | # creating and moving files from /tmp can sometimes cause problems. |
7f7d329e SP |
7159 | # Hook for its removal unless debugging. |
7160 | # Note that there is a small window in which the directory will not be cleaned: | |
7161 | # after its creation but before its name has been assigned to `$tmp'. | |
1daf06b9 SP |
7162 | $debug || |
7163 | { | |
7f7d329e SP |
7164 | tmp= |
7165 | trap 'exit_status=$? | |
7166 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
7167 | ' 0 | |
1daf06b9 SP |
7168 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
7169 | } | |
1daf06b9 | 7170 | # Create a (secure) tmp directory for tmp files. |
cdfe1392 | 7171 | |
1daf06b9 | 7172 | { |
7f7d329e | 7173 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1daf06b9 SP |
7174 | test -n "$tmp" && test -d "$tmp" |
7175 | } || | |
7176 | { | |
7f7d329e SP |
7177 | tmp=./conf$$-$RANDOM |
7178 | (umask 077 && mkdir "$tmp") | |
1daf06b9 SP |
7179 | } || |
7180 | { | |
572eed31 | 7181 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
1daf06b9 SP |
7182 | { (exit 1); exit 1; } |
7183 | } | |
7184 | ||
572eed31 SP |
7185 | # Set up the scripts for CONFIG_FILES section. |
7186 | # No need to generate them if there are no CONFIG_FILES. | |
7187 | # This happens for instance with `./config.status config.h'. | |
7f7d329e SP |
7188 | if test -n "$CONFIG_FILES"; then |
7189 | ||
572eed31 SP |
7190 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
7191 | ac_cs_awk_getline=: | |
7192 | ac_cs_awk_pipe_init= | |
7193 | ac_cs_awk_read_file=' | |
7194 | while ((getline aline < (F[key])) > 0) | |
7195 | print(aline) | |
7196 | close(F[key])' | |
7197 | ac_cs_awk_pipe_fini= | |
7198 | else | |
7199 | ac_cs_awk_getline=false | |
7200 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
7201 | ac_cs_awk_read_file=' | |
7202 | print "|#_!!_#|" | |
7203 | print "cat " F[key] " &&" | |
7204 | '$ac_cs_awk_pipe_init | |
7205 | # The final `:' finishes the AND list. | |
7206 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
7207 | fi | |
7208 | ac_cr='\r' | |
7209 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7210 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7211 | ac_cs_awk_cr='\\r' | |
7212 | else | |
7213 | ac_cs_awk_cr=$ac_cr | |
7214 | fi | |
7f7d329e | 7215 | |
572eed31 SP |
7216 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
7217 | _ACEOF | |
7f7d329e | 7218 | |
572eed31 SP |
7219 | # Create commands to substitute file output variables. |
7220 | { | |
7221 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
7222 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
7223 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
7224 | echo "_ACAWK" && | |
7225 | echo "_ACEOF" | |
7226 | } >conf$$files.sh && | |
7227 | . ./conf$$files.sh || | |
7228 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7229 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7230 | { (exit 1); exit 1; }; } | |
7231 | rm -f conf$$files.sh | |
7f7d329e | 7232 | |
572eed31 SP |
7233 | { |
7234 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7235 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7236 | echo "_ACEOF" | |
7237 | } >conf$$subs.sh || | |
7238 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7239 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7240 | { (exit 1); exit 1; }; } | |
7241 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7f7d329e SP |
7242 | ac_delim='%!_!# ' |
7243 | for ac_last_try in false false false false false :; do | |
572eed31 SP |
7244 | . ./conf$$subs.sh || |
7245 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7246 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7247 | { (exit 1); exit 1; }; } | |
7248 | ||
7249 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7250 | if test $ac_delim_n = $ac_delim_num; then | |
7f7d329e SP |
7251 | break |
7252 | elif $ac_last_try; then | |
572eed31 SP |
7253 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
7254 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7f7d329e SP |
7255 | { (exit 1); exit 1; }; } |
7256 | else | |
7257 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
1227625a | 7258 | fi |
7f7d329e | 7259 | done |
572eed31 SP |
7260 | rm -f conf$$subs.sh |
7261 | ||
7262 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7263 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7264 | _ACEOF | |
7265 | sed -n ' | |
7266 | h | |
7267 | s/^/S["/; s/!.*/"]=/ | |
7268 | p | |
7269 | g | |
7270 | s/^[^!]*!// | |
7271 | :repl | |
7272 | t repl | |
7273 | s/'"$ac_delim"'$// | |
7274 | t delim | |
7275 | :nl | |
7276 | h | |
7277 | s/\(.\{148\}\).*/\1/ | |
7278 | t more1 | |
7279 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7280 | p | |
7281 | n | |
7282 | b repl | |
7283 | :more1 | |
7284 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7285 | p | |
7286 | g | |
7287 | s/.\{148\}// | |
7288 | t nl | |
7289 | :delim | |
7290 | h | |
7291 | s/\(.\{148\}\).*/\1/ | |
7292 | t more2 | |
7293 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7294 | p | |
7295 | b | |
7296 | :more2 | |
7297 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7298 | p | |
7299 | g | |
7300 | s/.\{148\}// | |
7301 | t delim | |
7302 | ' <conf$$subs.awk | sed ' | |
7303 | /^[^""]/{ | |
7304 | N | |
7305 | s/\n// | |
7f7d329e | 7306 | } |
572eed31 SP |
7307 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
7308 | rm -f conf$$subs.awk | |
7309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7310 | _ACAWK | |
7311 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
7312 | for (key in S) S_is_set[key] = 1 | |
7313 | FS = "\a" | |
7314 | \$ac_cs_awk_pipe_init | |
7315 | } | |
7316 | { | |
7317 | line = $ 0 | |
7318 | nfields = split(line, field, "@") | |
7319 | substed = 0 | |
7320 | len = length(field[1]) | |
7321 | for (i = 2; i < nfields; i++) { | |
7322 | key = field[i] | |
7323 | keylen = length(key) | |
7324 | if (S_is_set[key]) { | |
7325 | value = S[key] | |
7326 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7327 | len += length(value) + length(field[++i]) | |
7328 | substed = 1 | |
7329 | } else | |
7330 | len += 1 + keylen | |
7331 | } | |
7332 | if (nfields == 3 && !substed) { | |
7333 | key = field[2] | |
7334 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
7335 | \$ac_cs_awk_read_file | |
7336 | next | |
7337 | } | |
7338 | } | |
7339 | print line | |
7340 | } | |
7341 | \$ac_cs_awk_pipe_fini | |
7342 | _ACAWK | |
7f7d329e | 7343 | _ACEOF |
572eed31 SP |
7344 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7345 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7346 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7347 | else | |
7348 | cat | |
7349 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
7350 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
7351 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
7352 | { (exit 1); exit 1; }; } | |
1daf06b9 | 7353 | _ACEOF |
7f7d329e | 7354 | |
7f7d329e SP |
7355 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7356 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7357 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7358 | # (actually we leave an empty line to preserve line numbers). | |
7359 | if test "x$srcdir" = x.; then | |
7360 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7361 | s/:*\$(srcdir):*/:/ | |
7362 | s/:*\${srcdir}:*/:/ | |
7363 | s/:*@srcdir@:*/:/ | |
7364 | s/^\([^=]*=[ ]*\):*/\1/ | |
7365 | s/:*$// | |
7366 | s/^[^=]*=[ ]*$// | |
7367 | }' | |
7368 | fi | |
7369 | ||
572eed31 | 7370 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7f7d329e SP |
7371 | fi # test -n "$CONFIG_FILES" |
7372 | ||
572eed31 SP |
7373 | # Set up the scripts for CONFIG_HEADERS section. |
7374 | # No need to generate them if there are no CONFIG_HEADERS. | |
7375 | # This happens for instance with `./config.status Makefile'. | |
7376 | if test -n "$CONFIG_HEADERS"; then | |
7377 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
7378 | BEGIN { | |
7379 | _ACEOF | |
7380 | ||
7381 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
7382 | # here-document in config.status, that substitutes the proper values into | |
7383 | # config.h.in to produce config.h. | |
7384 | ||
7385 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7386 | # handling of long lines. | |
7387 | ac_delim='%!_!# ' | |
7388 | for ac_last_try in false false :; do | |
7389 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
7390 | if test -z "$ac_t"; then | |
7391 | break | |
7392 | elif $ac_last_try; then | |
7393 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
7394 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
7395 | { (exit 1); exit 1; }; } | |
7396 | else | |
7397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7398 | fi | |
7399 | done | |
7400 | ||
7401 | # For the awk script, D is an array of macro values keyed by name, | |
7402 | # likewise P contains macro parameters if any. Preserve backslash | |
7403 | # newline sequences. | |
7404 | ||
7405 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7406 | sed -n ' | |
7407 | s/.\{148\}/&'"$ac_delim"'/g | |
7408 | t rset | |
7409 | :rset | |
7410 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7411 | t def | |
7412 | d | |
7413 | :def | |
7414 | s/\\$// | |
7415 | t bsnl | |
7416 | s/["\\]/\\&/g | |
7417 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7418 | D["\1"]=" \3"/p | |
7419 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7420 | d | |
7421 | :bsnl | |
7422 | s/["\\]/\\&/g | |
7423 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7424 | D["\1"]=" \3\\\\\\n"\\/p | |
7425 | t cont | |
7426 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7427 | t cont | |
7428 | d | |
7429 | :cont | |
7430 | n | |
7431 | s/.\{148\}/&'"$ac_delim"'/g | |
7432 | t clear | |
7433 | :clear | |
7434 | s/\\$// | |
7435 | t bsnlc | |
7436 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7437 | d | |
7438 | :bsnlc | |
7439 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7440 | b cont | |
7441 | ' <confdefs.h | sed ' | |
7442 | s/'"$ac_delim"'/"\\\ | |
7443 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7444 | ||
7445 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7446 | for (key in D) D_is_set[key] = 1 | |
7447 | FS = "\a" | |
7448 | } | |
7449 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7450 | line = \$ 0 | |
7451 | split(line, arg, " ") | |
7452 | if (arg[1] == "#") { | |
7453 | defundef = arg[2] | |
7454 | mac1 = arg[3] | |
7455 | } else { | |
7456 | defundef = substr(arg[1], 2) | |
7457 | mac1 = arg[2] | |
7458 | } | |
7459 | split(mac1, mac2, "(") #) | |
7460 | macro = mac2[1] | |
7461 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7462 | if (D_is_set[macro]) { | |
7463 | # Preserve the white space surrounding the "#". | |
7464 | print prefix "define", macro P[macro] D[macro] | |
7465 | next | |
7466 | } else { | |
7467 | # Replace #undef with comments. This is necessary, for example, | |
7468 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7469 | # on some systems where configure will not decide to define it. | |
7470 | if (defundef == "undef") { | |
7471 | print "/*", prefix defundef, macro, "*/" | |
7472 | next | |
7473 | } | |
7474 | } | |
7475 | } | |
7476 | { print } | |
7477 | _ACAWK | |
7478 | _ACEOF | |
7479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7480 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
7481 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
7482 | { (exit 1); exit 1; }; } | |
7483 | fi # test -n "$CONFIG_HEADERS" | |
7484 | ||
7f7d329e | 7485 | |
572eed31 SP |
7486 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
7487 | shift | |
7488 | for ac_tag | |
7f7d329e SP |
7489 | do |
7490 | case $ac_tag in | |
7491 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7492 | esac | |
7493 | case $ac_mode$ac_tag in | |
7494 | :[FHL]*:*);; | |
572eed31 SP |
7495 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
7496 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7f7d329e SP |
7497 | { (exit 1); exit 1; }; };; |
7498 | :[FH]-) ac_tag=-:-;; | |
7499 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
1daf06b9 | 7500 | esac |
7f7d329e SP |
7501 | ac_save_IFS=$IFS |
7502 | IFS=: | |
7503 | set x $ac_tag | |
7504 | IFS=$ac_save_IFS | |
7505 | shift | |
7506 | ac_file=$1 | |
7507 | shift | |
1daf06b9 | 7508 | |
7f7d329e SP |
7509 | case $ac_mode in |
7510 | :L) ac_source=$1;; | |
7511 | :[FH]) | |
7512 | ac_file_inputs= | |
7513 | for ac_f | |
7514 | do | |
7515 | case $ac_f in | |
7516 | -) ac_f="$tmp/stdin";; | |
7517 | *) # Look for the file first in the build tree, then in the source tree | |
7518 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7519 | # because $ac_f cannot contain `:'. | |
7520 | test -f "$ac_f" || | |
7521 | case $ac_f in | |
7522 | [\\/$]*) false;; | |
7523 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7524 | esac || | |
572eed31 SP |
7525 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
7526 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7f7d329e SP |
7527 | { (exit 1); exit 1; }; };; |
7528 | esac | |
572eed31 SP |
7529 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
7530 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7f7d329e SP |
7531 | done |
7532 | ||
7533 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7534 | # use $as_me), people would be surprised to read: | |
7535 | # /* config.h. Generated by config.status. */ | |
572eed31 SP |
7536 | configure_input='Generated from '` |
7537 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7538 | `' by configure.' | |
7f7d329e SP |
7539 | if test x"$ac_file" != x-; then |
7540 | configure_input="$ac_file. $configure_input" | |
572eed31 SP |
7541 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
7542 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7f7d329e | 7543 | fi |
572eed31 SP |
7544 | # Neutralize special characters interpreted by sed in replacement strings. |
7545 | case $configure_input in #( | |
7546 | *\&* | *\|* | *\\* ) | |
7547 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7548 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7549 | *) ac_sed_conf_input=$configure_input;; | |
7550 | esac | |
7f7d329e SP |
7551 | |
7552 | case $ac_tag in | |
572eed31 SP |
7553 | *:-:* | *:-) cat >"$tmp/stdin" \ |
7554 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7555 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7556 | { (exit 1); exit 1; }; } ;; | |
7f7d329e SP |
7557 | esac |
7558 | ;; | |
7559 | esac | |
7560 | ||
7561 | ac_dir=`$as_dirname -- "$ac_file" || | |
1daf06b9 | 7562 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7563 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7564 | X"$ac_file" : 'X\(//\)$' \| \ | |
7f7d329e | 7565 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
572eed31 | 7566 | $as_echo X"$ac_file" | |
7f7d329e SP |
7567 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7568 | s//\1/ | |
7569 | q | |
7570 | } | |
7571 | /^X\(\/\/\)[^/].*/{ | |
7572 | s//\1/ | |
7573 | q | |
7574 | } | |
7575 | /^X\(\/\/\)$/{ | |
7576 | s//\1/ | |
7577 | q | |
7578 | } | |
7579 | /^X\(\/\).*/{ | |
7580 | s//\1/ | |
7581 | q | |
7582 | } | |
7583 | s/.*/./; q'` | |
7584 | { as_dir="$ac_dir" | |
7585 | case $as_dir in #( | |
7586 | -*) as_dir=./$as_dir;; | |
7587 | esac | |
7588 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
cdfe1392 | 7589 | as_dirs= |
7f7d329e SP |
7590 | while :; do |
7591 | case $as_dir in #( | |
572eed31 | 7592 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7f7d329e SP |
7593 | *) as_qdir=$as_dir;; |
7594 | esac | |
7595 | as_dirs="'$as_qdir' $as_dirs" | |
7596 | as_dir=`$as_dirname -- "$as_dir" || | |
cdfe1392 | 7597 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
c9e4e868 SP |
7598 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7599 | X"$as_dir" : 'X\(//\)$' \| \ | |
7f7d329e | 7600 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
572eed31 | 7601 | $as_echo X"$as_dir" | |
7f7d329e SP |
7602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7603 | s//\1/ | |
7604 | q | |
7605 | } | |
7606 | /^X\(\/\/\)[^/].*/{ | |
7607 | s//\1/ | |
7608 | q | |
7609 | } | |
7610 | /^X\(\/\/\)$/{ | |
7611 | s//\1/ | |
7612 | q | |
7613 | } | |
7614 | /^X\(\/\).*/{ | |
7615 | s//\1/ | |
7616 | q | |
7617 | } | |
7618 | s/.*/./; q'` | |
7619 | test -d "$as_dir" && break | |
cdfe1392 | 7620 | done |
7f7d329e | 7621 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
572eed31 SP |
7622 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
7623 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
cdfe1392 | 7624 | { (exit 1); exit 1; }; }; } |
1daf06b9 | 7625 | ac_builddir=. |
1227625a | 7626 | |
7f7d329e SP |
7627 | case "$ac_dir" in |
7628 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7629 | *) | |
572eed31 | 7630 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7f7d329e | 7631 | # A ".." for each directory in $ac_dir_suffix. |
572eed31 | 7632 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7f7d329e SP |
7633 | case $ac_top_builddir_sub in |
7634 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7635 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7636 | esac ;; | |
7637 | esac | |
7638 | ac_abs_top_builddir=$ac_pwd | |
7639 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7640 | # for backward compatibility: | |
7641 | ac_top_builddir=$ac_top_build_prefix | |
1227625a | 7642 | |
1daf06b9 | 7643 | case $srcdir in |
7f7d329e | 7644 | .) # We are building in place. |
1daf06b9 | 7645 | ac_srcdir=. |
7f7d329e SP |
7646 | ac_top_srcdir=$ac_top_builddir_sub |
7647 | ac_abs_top_srcdir=$ac_pwd ;; | |
7648 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1daf06b9 | 7649 | ac_srcdir=$srcdir$ac_dir_suffix; |
7f7d329e SP |
7650 | ac_top_srcdir=$srcdir |
7651 | ac_abs_top_srcdir=$srcdir ;; | |
7652 | *) # Relative name. | |
7653 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7654 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7655 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1daf06b9 | 7656 | esac |
7f7d329e | 7657 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c9e4e868 | 7658 | |
1227625a | 7659 | |
7f7d329e SP |
7660 | case $ac_mode in |
7661 | :F) | |
7662 | # | |
7663 | # CONFIG_FILE | |
7664 | # | |
1227625a | 7665 | |
1daf06b9 SP |
7666 | case $INSTALL in |
7667 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7f7d329e | 7668 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1227625a | 7669 | esac |
7f7d329e | 7670 | _ACEOF |
1227625a | 7671 | |
572eed31 | 7672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7f7d329e SP |
7673 | # If the template does not know about datarootdir, expand it. |
7674 | # FIXME: This hack should be removed a few years after 2.60. | |
7675 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7676 | ||
572eed31 SP |
7677 | ac_sed_dataroot=' |
7678 | /datarootdir/ { | |
7f7d329e SP |
7679 | p |
7680 | q | |
7681 | } | |
7682 | /@datadir@/p | |
7683 | /@docdir@/p | |
7684 | /@infodir@/p | |
7685 | /@localedir@/p | |
7686 | /@mandir@/p | |
572eed31 SP |
7687 | ' |
7688 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7f7d329e SP |
7689 | *datarootdir*) ac_datarootdir_seen=yes;; |
7690 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
572eed31 SP |
7691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
7692 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7f7d329e | 7693 | _ACEOF |
572eed31 | 7694 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7f7d329e SP |
7695 | ac_datarootdir_hack=' |
7696 | s&@datadir@&$datadir&g | |
7697 | s&@docdir@&$docdir&g | |
7698 | s&@infodir@&$infodir&g | |
7699 | s&@localedir@&$localedir&g | |
7700 | s&@mandir@&$mandir&g | |
7701 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7702 | esac | |
1daf06b9 | 7703 | _ACEOF |
7f7d329e SP |
7704 | |
7705 | # Neutralize VPATH when `$srcdir' = `.'. | |
7706 | # Shell code in configure.ac might set extrasub. | |
7707 | # FIXME: do we really want to maintain this feature? | |
572eed31 SP |
7708 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7709 | ac_sed_extra="$ac_vpsub | |
1daf06b9 SP |
7710 | $extrasub |
7711 | _ACEOF | |
572eed31 | 7712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1daf06b9 SP |
7713 | :t |
7714 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
572eed31 | 7715 | s|@configure_input@|$ac_sed_conf_input|;t t |
7f7d329e | 7716 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
572eed31 | 7717 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7f7d329e SP |
7718 | s&@srcdir@&$ac_srcdir&;t t |
7719 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7720 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7721 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7722 | s&@builddir@&$ac_builddir&;t t | |
7723 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7724 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7725 | s&@INSTALL@&$ac_INSTALL&;t t | |
7726 | $ac_datarootdir_hack | |
572eed31 SP |
7727 | " |
7728 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
7729 | if $ac_cs_awk_getline; then | |
7730 | $AWK -f "$tmp/subs.awk" | |
7731 | else | |
7732 | $AWK -f "$tmp/subs.awk" | $SHELL | |
7733 | fi >$tmp/out \ | |
7734 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7735 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7736 | { (exit 1); exit 1; }; } | |
7f7d329e SP |
7737 | |
7738 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7739 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7740 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
572eed31 | 7741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7f7d329e | 7742 | which seems to be undefined. Please make sure it is defined." >&5 |
572eed31 | 7743 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7f7d329e SP |
7744 | which seems to be undefined. Please make sure it is defined." >&2;} |
7745 | ||
7746 | rm -f "$tmp/stdin" | |
1daf06b9 | 7747 | case $ac_file in |
572eed31 SP |
7748 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
7749 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7750 | esac \ | |
7751 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7752 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7753 | { (exit 1); exit 1; }; } | |
7f7d329e SP |
7754 | ;; |
7755 | :H) | |
7756 | # | |
7757 | # CONFIG_HEADER | |
7758 | # | |
1daf06b9 | 7759 | if test x"$ac_file" != x-; then |
572eed31 SP |
7760 | { |
7761 | $as_echo "/* $configure_input */" \ | |
7762 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7763 | } >"$tmp/config.h" \ | |
7764 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7765 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7766 | { (exit 1); exit 1; }; } | |
7767 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7768 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7769 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
1daf06b9 | 7770 | else |
572eed31 SP |
7771 | rm -f "$ac_file" |
7772 | mv "$tmp/config.h" "$ac_file" \ | |
7773 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
7774 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
7775 | { (exit 1); exit 1; }; } | |
1daf06b9 SP |
7776 | fi |
7777 | else | |
572eed31 SP |
7778 | $as_echo "/* $configure_input */" \ |
7779 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7780 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
7781 | $as_echo "$as_me: error: could not create -" >&2;} | |
7782 | { (exit 1); exit 1; }; } | |
1daf06b9 | 7783 | fi |
7f7d329e SP |
7784 | ;; |
7785 | ||
7786 | ||
7787 | esac | |
7788 | ||
7789 | done # for ac_tag | |
1227625a | 7790 | |
1227625a | 7791 | |
1daf06b9 SP |
7792 | { (exit 0); exit 0; } |
7793 | _ACEOF | |
1227625a | 7794 | chmod +x $CONFIG_STATUS |
1daf06b9 SP |
7795 | ac_clean_files=$ac_clean_files_save |
7796 | ||
572eed31 SP |
7797 | test $ac_write_fail = 0 || |
7798 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
7799 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
7800 | { (exit 1); exit 1; }; } | |
7801 | ||
1daf06b9 SP |
7802 | |
7803 | # configure is writing to config.log, and then calls config.status. | |
7804 | # config.status does its own redirection, appending to config.log. | |
7805 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7806 | # by configure, so config.status won't be able to write to it; its | |
7807 | # output is simply discarded. So we exec the FD to /dev/null, | |
7808 | # effectively closing config.log, so it can be properly (re)opened and | |
7809 | # appended to by config.status. When coming back to configure, we | |
7810 | # need to make the FD available again. | |
7811 | if test "$no_create" != yes; then | |
7812 | ac_cs_success=: | |
cdfe1392 SP |
7813 | ac_config_status_args= |
7814 | test "$silent" = yes && | |
7815 | ac_config_status_args="$ac_config_status_args --quiet" | |
1daf06b9 | 7816 | exec 5>/dev/null |
cdfe1392 | 7817 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
1daf06b9 SP |
7818 | exec 5>>config.log |
7819 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7820 | # would make configure fail if this is the last instruction. | |
7821 | $ac_cs_success || { (exit 1); exit 1; } | |
7822 | fi | |
572eed31 SP |
7823 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
7824 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7825 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7826 | fi | |
1227625a | 7827 |