diff options
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-x | libltdl/configure | 24532 |
1 files changed, 0 insertions, 24532 deletions
diff --git a/libltdl/configure b/libltdl/configure deleted file mode 100755 index 7e32fbe0..00000000 --- a/libltdl/configure +++ /dev/null | |||
@@ -1,24532 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.60a for libltdl 1.2. | ||
4 | # | ||
5 | # Report bugs to <bug-libtool@gnu.org>. | ||
6 | # | ||
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
9 | # This configure script is free software; the Free Software Foundation | ||
10 | # gives unlimited permission to copy, distribute and modify it. | ||
11 | ## --------------------- ## | ||
12 | ## M4sh Initialization. ## | ||
13 | ## --------------------- ## | ||
14 | |||
15 | # Be Bourne compatible | ||
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
17 | emulate sh | ||
18 | NULLCMD=: | ||
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
20 | # is contrary to our usage. Disable this feature. | ||
21 | alias -g '${1+"$@"}'='"$@"' | ||
22 | setopt NO_GLOB_SUBST | ||
23 | else | ||
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
25 | fi | ||
26 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
27 | DUALCASE=1; export DUALCASE # for MKS sh | ||
28 | |||
29 | |||
30 | # PATH needs CR | ||
31 | # Avoid depending upon Character Ranges. | ||
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
35 | as_cr_digits='0123456789' | ||
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
37 | |||
38 | # The user is always right. | ||
39 | if test "${PATH_SEPARATOR+set}" != set; then | ||
40 | echo "#! /bin/sh" >conf$$.sh | ||
41 | echo "exit 0" >>conf$$.sh | ||
42 | chmod +x conf$$.sh | ||
43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
44 | PATH_SEPARATOR=';' | ||
45 | else | ||
46 | PATH_SEPARATOR=: | ||
47 | fi | ||
48 | rm -f conf$$.sh | ||
49 | fi | ||
50 | |||
51 | # Support unset when possible. | ||
52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
53 | as_unset=unset | ||
54 | else | ||
55 | as_unset=false | ||
56 | fi | ||
57 | |||
58 | |||
59 | # IFS | ||
60 | # We need space, tab and new line, in precisely that order. Quoting is | ||
61 | # there to prevent editors from complaining about space-tab. | ||
62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
63 | # splitting by setting IFS to empty value.) | ||
64 | as_nl=' | ||
65 | ' | ||
66 | IFS=" "" $as_nl" | ||
67 | |||
68 | # Find who we are. Look in the path if we contain no directory separator. | ||
69 | case $0 in | ||
70 | *[\\/]* ) as_myself=$0 ;; | ||
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
72 | for as_dir in $PATH | ||
73 | do | ||
74 | IFS=$as_save_IFS | ||
75 | test -z "$as_dir" && as_dir=. | ||
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
77 | done | ||
78 | IFS=$as_save_IFS | ||
79 | |||
80 | ;; | ||
81 | esac | ||
82 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
83 | # in which case we are not to be found in the path. | ||
84 | if test "x$as_myself" = x; then | ||
85 | as_myself=$0 | ||
86 | fi | ||
87 | if test ! -f "$as_myself"; then | ||
88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
89 | { (exit 1); exit 1; } | ||
90 | fi | ||
91 | |||
92 | # Work around bugs in pre-3.0 UWIN ksh. | ||
93 | for as_var in ENV MAIL MAILPATH | ||
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
95 | done | ||
96 | PS1='$ ' | ||
97 | PS2='> ' | ||
98 | PS4='+ ' | ||
99 | |||
100 | # NLS nuisances. | ||
101 | for as_var in \ | ||
102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
104 | LC_TELEPHONE LC_TIME | ||
105 | do | ||
106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
107 | eval $as_var=C; export $as_var | ||
108 | else | ||
109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
110 | fi | ||
111 | done | ||
112 | |||
113 | # Required to use basename. | ||
114 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
116 | as_expr=expr | ||
117 | else | ||
118 | as_expr=false | ||
119 | fi | ||
120 | |||
121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
122 | as_basename=basename | ||
123 | else | ||
124 | as_basename=false | ||
125 | fi | ||
126 | |||
127 | |||
128 | # Name of the executable. | ||
129 | as_me=`$as_basename -- "$0" || | ||
130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
131 | X"$0" : 'X\(//\)$' \| \ | ||
132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
133 | echo X/"$0" | | ||
134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
135 | s//\1/ | ||
136 | q | ||
137 | } | ||
138 | /^X\/\(\/\/\)$/{ | ||
139 | s//\1/ | ||
140 | q | ||
141 | } | ||
142 | /^X\/\(\/\).*/{ | ||
143 | s//\1/ | ||
144 | q | ||
145 | } | ||
146 | s/.*/./; q'` | ||
147 | |||
148 | # CDPATH. | ||
149 | $as_unset CDPATH | ||
150 | |||
151 | |||
152 | if test "x$CONFIG_SHELL" = x; then | ||
153 | if (eval ":") 2>/dev/null; then | ||
154 | as_have_required=yes | ||
155 | else | ||
156 | as_have_required=no | ||
157 | fi | ||
158 | |||
159 | if test $as_have_required = yes && (eval ": | ||
160 | (as_func_return () { | ||
161 | (exit \$1) | ||
162 | } | ||
163 | as_func_success () { | ||
164 | as_func_return 0 | ||
165 | } | ||
166 | as_func_failure () { | ||
167 | as_func_return 1 | ||
168 | } | ||
169 | as_func_ret_success () { | ||
170 | return 0 | ||
171 | } | ||
172 | as_func_ret_failure () { | ||
173 | return 1 | ||
174 | } | ||
175 | |||
176 | exitcode=0 | ||
177 | if as_func_success; then | ||
178 | : | ||
179 | else | ||
180 | exitcode=1 | ||
181 | echo as_func_success failed. | ||
182 | fi | ||
183 | |||
184 | if as_func_failure; then | ||
185 | exitcode=1 | ||
186 | echo as_func_failure succeeded. | ||
187 | fi | ||
188 | |||
189 | if as_func_ret_success; then | ||
190 | : | ||
191 | else | ||
192 | exitcode=1 | ||
193 | echo as_func_ret_success failed. | ||
194 | fi | ||
195 | |||
196 | if as_func_ret_failure; then | ||
197 | exitcode=1 | ||
198 | echo as_func_ret_failure succeeded. | ||
199 | fi | ||
200 | |||
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
202 | : | ||
203 | else | ||
204 | exitcode=1 | ||
205 | echo positional parameters were not saved. | ||
206 | fi | ||
207 | |||
208 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
209 | |||
210 | ( | ||
211 | as_lineno_1=\$LINENO | ||
212 | as_lineno_2=\$LINENO | ||
213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
215 | ") 2> /dev/null; then | ||
216 | : | ||
217 | else | ||
218 | as_candidate_shells= | ||
219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
221 | do | ||
222 | IFS=$as_save_IFS | ||
223 | test -z "$as_dir" && as_dir=. | ||
224 | case $as_dir in | ||
225 | /*) | ||
226 | for as_base in sh bash ksh sh5; do | ||
227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
228 | done;; | ||
229 | esac | ||
230 | done | ||
231 | IFS=$as_save_IFS | ||
232 | |||
233 | |||
234 | for as_shell in $as_candidate_shells $SHELL; do | ||
235 | # Try only shells that exist, to save several forks. | ||
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
237 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
238 | # Be Bourne compatible | ||
239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
240 | emulate sh | ||
241 | NULLCMD=: | ||
242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
243 | # is contrary to our usage. Disable this feature. | ||
244 | alias -g '${1+"$@"}'='"$@"' | ||
245 | setopt NO_GLOB_SUBST | ||
246 | else | ||
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
248 | fi | ||
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
250 | DUALCASE=1; export DUALCASE # for MKS sh | ||
251 | |||
252 | : | ||
253 | _ASEOF | ||
254 | }; then | ||
255 | CONFIG_SHELL=$as_shell | ||
256 | as_have_required=yes | ||
257 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
258 | # Be Bourne compatible | ||
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
260 | emulate sh | ||
261 | NULLCMD=: | ||
262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
263 | # is contrary to our usage. Disable this feature. | ||
264 | alias -g '${1+"$@"}'='"$@"' | ||
265 | setopt NO_GLOB_SUBST | ||
266 | else | ||
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | ||
268 | fi | ||
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 | ||
270 | DUALCASE=1; export DUALCASE # for MKS sh | ||
271 | |||
272 | : | ||
273 | (as_func_return () { | ||
274 | (exit $1) | ||
275 | } | ||
276 | as_func_success () { | ||
277 | as_func_return 0 | ||
278 | } | ||
279 | as_func_failure () { | ||
280 | as_func_return 1 | ||
281 | } | ||
282 | as_func_ret_success () { | ||
283 | return 0 | ||
284 | } | ||
285 | as_func_ret_failure () { | ||
286 | return 1 | ||
287 | } | ||
288 | |||
289 | exitcode=0 | ||
290 | if as_func_success; then | ||
291 | : | ||
292 | else | ||
293 | exitcode=1 | ||
294 | echo as_func_success failed. | ||
295 | fi | ||
296 | |||
297 | if as_func_failure; then | ||
298 | exitcode=1 | ||
299 | echo as_func_failure succeeded. | ||
300 | fi | ||
301 | |||
302 | if as_func_ret_success; then | ||
303 | : | ||
304 | else | ||
305 | exitcode=1 | ||
306 | echo as_func_ret_success failed. | ||
307 | fi | ||
308 | |||
309 | if as_func_ret_failure; then | ||
310 | exitcode=1 | ||
311 | echo as_func_ret_failure succeeded. | ||
312 | fi | ||
313 | |||
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
315 | : | ||
316 | else | ||
317 | exitcode=1 | ||
318 | echo positional parameters were not saved. | ||
319 | fi | ||
320 | |||
321 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
322 | |||
323 | ( | ||
324 | as_lineno_1=$LINENO | ||
325 | as_lineno_2=$LINENO | ||
326 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
328 | |||
329 | _ASEOF | ||
330 | }; then | ||
331 | break | ||
332 | fi | ||
333 | |||
334 | fi | ||
335 | |||
336 | done | ||
337 | |||
338 | if test "x$CONFIG_SHELL" != x; then | ||
339 | for as_var in BASH_ENV ENV | ||
340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
341 | done | ||
342 | export CONFIG_SHELL | ||
343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
344 | fi | ||
345 | |||
346 | |||
347 | if test $as_have_required = no; then | ||
348 | echo This script requires a shell more modern than all the | ||
349 | echo shells that I found on your system. Please install a | ||
350 | echo modern shell, or manually run the script under such a | ||
351 | echo shell if you do have one. | ||
352 | { (exit 1); exit 1; } | ||
353 | fi | ||
354 | |||
355 | |||
356 | fi | ||
357 | |||
358 | fi | ||
359 | |||
360 | |||
361 | |||
362 | (eval "as_func_return () { | ||
363 | (exit \$1) | ||
364 | } | ||
365 | as_func_success () { | ||
366 | as_func_return 0 | ||
367 | } | ||
368 | as_func_failure () { | ||
369 | as_func_return 1 | ||
370 | } | ||
371 | as_func_ret_success () { | ||
372 | return 0 | ||
373 | } | ||
374 | as_func_ret_failure () { | ||
375 | return 1 | ||
376 | } | ||
377 | |||
378 | exitcode=0 | ||
379 | if as_func_success; then | ||
380 | : | ||
381 | else | ||
382 | exitcode=1 | ||
383 | echo as_func_success failed. | ||
384 | fi | ||
385 | |||
386 | if as_func_failure; then | ||
387 | exitcode=1 | ||
388 | echo as_func_failure succeeded. | ||
389 | fi | ||
390 | |||
391 | if as_func_ret_success; then | ||
392 | : | ||
393 | else | ||
394 | exitcode=1 | ||
395 | echo as_func_ret_success failed. | ||
396 | fi | ||
397 | |||
398 | if as_func_ret_failure; then | ||
399 | exitcode=1 | ||
400 | echo as_func_ret_failure succeeded. | ||
401 | fi | ||
402 | |||
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
404 | : | ||
405 | else | ||
406 | exitcode=1 | ||
407 | echo positional parameters were not saved. | ||
408 | fi | ||
409 | |||
410 | test \$exitcode = 0") || { | ||
411 | echo No shell found that supports shell functions. | ||
412 | echo Please tell autoconf@gnu.org about your system, | ||
413 | echo including any error possibly output before this | ||
414 | echo message | ||
415 | } | ||
416 | |||
417 | |||
418 | |||
419 | as_lineno_1=$LINENO | ||
420 | as_lineno_2=$LINENO | ||
421 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
423 | |||
424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
425 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
426 | # line-number line after each line using $LINENO; the second 'sed' | ||
427 | # does the real work. The second script uses 'N' to pair each | ||
428 | # line-number line with the line containing $LINENO, and appends | ||
429 | # trailing '-' during substitution so that $LINENO is not a special | ||
430 | # case at line end. | ||
431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
432 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
433 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
434 | sed -n ' | ||
435 | p | ||
436 | /[$]LINENO/= | ||
437 | ' <$as_myself | | ||
438 | sed ' | ||
439 | s/[$]LINENO.*/&-/ | ||
440 | t lineno | ||
441 | b | ||
442 | :lineno | ||
443 | N | ||
444 | :loop | ||
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
446 | t loop | ||
447 | s/-\n.*// | ||
448 | ' >$as_me.lineno && | ||
449 | chmod +x "$as_me.lineno" || | ||
450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
451 | { (exit 1); exit 1; }; } | ||
452 | |||
453 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
454 | # (the dirname of $[0] is not the place where we might find the | ||
455 | # original and so on. Autoconf is especially sensitive to this). | ||
456 | . "./$as_me.lineno" | ||
457 | # Exit status is that of the last command. | ||
458 | exit | ||
459 | } | ||
460 | |||
461 | |||
462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
463 | as_dirname=dirname | ||
464 | else | ||
465 | as_dirname=false | ||
466 | fi | ||
467 | |||
468 | ECHO_C= ECHO_N= ECHO_T= | ||
469 | case `echo -n x` in | ||
470 | -n*) | ||
471 | case `echo 'x\c'` in | ||
472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
473 | *) ECHO_C='\c';; | ||
474 | esac;; | ||
475 | *) | ||
476 | ECHO_N='-n';; | ||
477 | esac | ||
478 | |||
479 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
481 | as_expr=expr | ||
482 | else | ||
483 | as_expr=false | ||
484 | fi | ||
485 | |||
486 | rm -f conf$$ conf$$.exe conf$$.file | ||
487 | if test -d conf$$.dir; then | ||
488 | rm -f conf$$.dir/conf$$.file | ||
489 | else | ||
490 | rm -f conf$$.dir | ||
491 | mkdir conf$$.dir | ||
492 | fi | ||
493 | echo >conf$$.file | ||
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
495 | as_ln_s='ln -s' | ||
496 | # ... but there are two gotchas: | ||
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
499 | # In both cases, we have to default to `cp -p'. | ||
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
501 | as_ln_s='cp -p' | ||
502 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
503 | as_ln_s=ln | ||
504 | else | ||
505 | as_ln_s='cp -p' | ||
506 | fi | ||
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
508 | rmdir conf$$.dir 2>/dev/null | ||
509 | |||
510 | if mkdir -p . 2>/dev/null; then | ||
511 | as_mkdir_p=: | ||
512 | else | ||
513 | test -d ./-p && rmdir ./-p | ||
514 | as_mkdir_p=false | ||
515 | fi | ||
516 | |||
517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as | ||
518 | # systems may use methods other than mode bits to determine executability. | ||
519 | cat >conf$$.file <<_ASEOF | ||
520 | #! /bin/sh | ||
521 | exit 0 | ||
522 | _ASEOF | ||
523 | chmod +x conf$$.file | ||
524 | if test -x conf$$.file >/dev/null 2>&1; then | ||
525 | as_executable_p="test -x" | ||
526 | else | ||
527 | as_executable_p=: | ||
528 | fi | ||
529 | rm -f conf$$.file | ||
530 | |||
531 | # Sed expression to map a string onto a valid CPP name. | ||
532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
533 | |||
534 | # Sed expression to map a string onto a valid variable name. | ||
535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
536 | |||
537 | |||
538 | |||
539 | |||
540 | # Check that we are running under the correct shell. | ||
541 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
542 | |||
543 | case X$ECHO in | ||
544 | X*--fallback-echo) | ||
545 | # Remove one level of quotation (which was required for Make). | ||
546 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
547 | ;; | ||
548 | esac | ||
549 | |||
550 | echo=${ECHO-echo} | ||
551 | if test "X$1" = X--no-reexec; then | ||
552 | # Discard the --no-reexec flag, and continue. | ||
553 | shift | ||
554 | elif test "X$1" = X--fallback-echo; then | ||
555 | # Avoid inline document here, it may be left over | ||
556 | : | ||
557 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
558 | # Yippee, $echo works! | ||
559 | : | ||
560 | else | ||
561 | # Restart under the correct shell. | ||
562 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
563 | fi | ||
564 | |||
565 | if test "X$1" = X--fallback-echo; then | ||
566 | # used as fallback echo | ||
567 | shift | ||
568 | cat <<EOF | ||
569 | $* | ||
570 | EOF | ||
571 | exit 0 | ||
572 | fi | ||
573 | |||
574 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
575 | # if CDPATH is set. | ||
576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
577 | |||
578 | if test -z "$ECHO"; then | ||
579 | if test "X${echo_test_string+set}" != Xset; then | ||
580 | # find a string as large as possible, as long as the shell can cope with it | ||
581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
583 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
584 | echo_test_string=`eval $cmd` && | ||
585 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
586 | then | ||
587 | break | ||
588 | fi | ||
589 | done | ||
590 | fi | ||
591 | |||
592 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
593 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
594 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
595 | : | ||
596 | else | ||
597 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
598 | # backslashes. This makes it impossible to quote backslashes using | ||
599 | # echo "$something" | sed 's/\\/\\\\/g' | ||
600 | # | ||
601 | # So, first we look for a working echo in the user's PATH. | ||
602 | |||
603 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
604 | for dir in $PATH /usr/ucb; do | ||
605 | IFS="$lt_save_ifs" | ||
606 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
607 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
608 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
609 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
610 | echo="$dir/echo" | ||
611 | break | ||
612 | fi | ||
613 | done | ||
614 | IFS="$lt_save_ifs" | ||
615 | |||
616 | if test "X$echo" = Xecho; then | ||
617 | # We didn't find a better echo, so look for alternatives. | ||
618 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
619 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
620 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
621 | # This shell has a builtin print -r that does the trick. | ||
622 | echo='print -r' | ||
623 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
624 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
625 | # If we have ksh, try running configure again with it. | ||
626 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
627 | export ORIGINAL_CONFIG_SHELL | ||
628 | CONFIG_SHELL=/bin/ksh | ||
629 | export CONFIG_SHELL | ||
630 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
631 | else | ||
632 | # Try using printf. | ||
633 | echo='printf %s\n' | ||
634 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
635 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
636 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
637 | # Cool, printf works | ||
638 | : | ||
639 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
640 | test "X$echo_testing_string" = 'X\t' && | ||
641 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
642 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
643 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
644 | export CONFIG_SHELL | ||
645 | SHELL="$CONFIG_SHELL" | ||
646 | export SHELL | ||
647 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
648 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
649 | test "X$echo_testing_string" = 'X\t' && | ||
650 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
651 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
652 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
653 | else | ||
654 | # maybe with a smaller string... | ||
655 | prev=: | ||
656 | |||
657 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
658 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
659 | then | ||
660 | break | ||
661 | fi | ||
662 | prev="$cmd" | ||
663 | done | ||
664 | |||
665 | if test "$prev" != 'sed 50q "$0"'; then | ||
666 | echo_test_string=`eval $prev` | ||
667 | export echo_test_string | ||
668 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
669 | else | ||
670 | # Oops. We lost completely, so just stick with echo. | ||
671 | echo=echo | ||
672 | fi | ||
673 | fi | ||
674 | fi | ||
675 | fi | ||
676 | fi | ||
677 | fi | ||
678 | |||
679 | # Copy echo and quote the copy suitably for passing to libtool from | ||
680 | # the Makefile, instead of quoting the original, which is used later. | ||
681 | ECHO=$echo | ||
682 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
683 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
684 | fi | ||
685 | |||
686 | |||
687 | |||
688 | |||
689 | tagnames=${tagnames+${tagnames},}CXX | ||
690 | |||
691 | tagnames=${tagnames+${tagnames},}F77 | ||
692 | |||
693 | exec 7<&0 </dev/null 6>&1 | ||
694 | |||
695 | # Name of the host. | ||
696 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
697 | # so uname gets run too. | ||
698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
699 | |||
700 | # | ||
701 | # Initializations. | ||
702 | # | ||
703 | ac_default_prefix=/usr/local | ||
704 | ac_clean_files= | ||
705 | ac_config_libobj_dir=. | ||
706 | LIBOBJS= | ||
707 | cross_compiling=no | ||
708 | subdirs= | ||
709 | MFLAGS= | ||
710 | MAKEFLAGS= | ||
711 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
712 | |||
713 | # Identity of this package. | ||
714 | PACKAGE_NAME='libltdl' | ||
715 | PACKAGE_TARNAME='libltdl' | ||
716 | PACKAGE_VERSION='1.2' | ||
717 | PACKAGE_STRING='libltdl 1.2' | ||
718 | PACKAGE_BUGREPORT='bug-libtool@gnu.org' | ||
719 | |||
720 | ac_unique_file="ltdl.c" | ||
721 | # Factoring default headers for most tests. | ||
722 | ac_includes_default="\ | ||
723 | #include <stdio.h> | ||
724 | #ifdef HAVE_SYS_TYPES_H | ||
725 | # include <sys/types.h> | ||
726 | #endif | ||
727 | #ifdef HAVE_SYS_STAT_H | ||
728 | # include <sys/stat.h> | ||
729 | #endif | ||
730 | #ifdef STDC_HEADERS | ||
731 | # include <stdlib.h> | ||
732 | # include <stddef.h> | ||
733 | #else | ||
734 | # ifdef HAVE_STDLIB_H | ||
735 | # include <stdlib.h> | ||
736 | # endif | ||
737 | #endif | ||
738 | #ifdef HAVE_STRING_H | ||
739 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
740 | # include <memory.h> | ||
741 | # endif | ||
742 | # include <string.h> | ||
743 | #endif | ||
744 | #ifdef HAVE_STRINGS_H | ||
745 | # include <strings.h> | ||
746 | #endif | ||
747 | #ifdef HAVE_INTTYPES_H | ||
748 | # include <inttypes.h> | ||
749 | #endif | ||
750 | #ifdef HAVE_STDINT_H | ||
751 | # include <stdint.h> | ||
752 | #endif | ||
753 | #ifdef HAVE_UNISTD_H | ||
754 | # include <unistd.h> | ||
755 | #endif" | ||
756 | |||
757 | ac_subst_vars='SHELL | ||
758 | PATH_SEPARATOR | ||
759 | PACKAGE_NAME | ||
760 | PACKAGE_TARNAME | ||
761 | PACKAGE_VERSION | ||
762 | PACKAGE_STRING | ||
763 | PACKAGE_BUGREPORT | ||
764 | exec_prefix | ||
765 | prefix | ||
766 | program_transform_name | ||
767 | bindir | ||
768 | sbindir | ||
769 | libexecdir | ||
770 | datarootdir | ||
771 | datadir | ||
772 | sysconfdir | ||
773 | sharedstatedir | ||
774 | localstatedir | ||
775 | includedir | ||
776 | oldincludedir | ||
777 | docdir | ||
778 | infodir | ||
779 | htmldir | ||
780 | dvidir | ||
781 | pdfdir | ||
782 | psdir | ||
783 | libdir | ||
784 | localedir | ||
785 | mandir | ||
786 | DEFS | ||
787 | ECHO_C | ||
788 | ECHO_N | ||
789 | ECHO_T | ||
790 | LIBS | ||
791 | build_alias | ||
792 | host_alias | ||
793 | target_alias | ||
794 | INSTALL_PROGRAM | ||
795 | INSTALL_SCRIPT | ||
796 | INSTALL_DATA | ||
797 | CYGPATH_W | ||
798 | PACKAGE | ||
799 | VERSION | ||
800 | ACLOCAL | ||
801 | AUTOCONF | ||
802 | AUTOMAKE | ||
803 | AUTOHEADER | ||
804 | MAKEINFO | ||
805 | AMTAR | ||
806 | install_sh | ||
807 | STRIP | ||
808 | INSTALL_STRIP_PROGRAM | ||
809 | mkdir_p | ||
810 | AWK | ||
811 | SET_MAKE | ||
812 | am__leading_dot | ||
813 | MAINTAINER_MODE_TRUE | ||
814 | MAINTAINER_MODE_FALSE | ||
815 | MAINT | ||
816 | CC | ||
817 | CFLAGS | ||
818 | LDFLAGS | ||
819 | CPPFLAGS | ||
820 | ac_ct_CC | ||
821 | EXEEXT | ||
822 | OBJEXT | ||
823 | DEPDIR | ||
824 | am__include | ||
825 | am__quote | ||
826 | AMDEP_TRUE | ||
827 | AMDEP_FALSE | ||
828 | AMDEPBACKSLASH | ||
829 | CCDEPMODE | ||
830 | am__fastdepCC_TRUE | ||
831 | am__fastdepCC_FALSE | ||
832 | build | ||
833 | build_cpu | ||
834 | build_vendor | ||
835 | build_os | ||
836 | host | ||
837 | host_cpu | ||
838 | host_vendor | ||
839 | host_os | ||
840 | GREP | ||
841 | EGREP | ||
842 | LN_S | ||
843 | ECHO | ||
844 | AR | ||
845 | RANLIB | ||
846 | DLLTOOL | ||
847 | AS | ||
848 | OBJDUMP | ||
849 | CPP | ||
850 | CXX | ||
851 | CXXFLAGS | ||
852 | ac_ct_CXX | ||
853 | CXXDEPMODE | ||
854 | am__fastdepCXX_TRUE | ||
855 | am__fastdepCXX_FALSE | ||
856 | CXXCPP | ||
857 | F77 | ||
858 | FFLAGS | ||
859 | ac_ct_F77 | ||
860 | LIBTOOL | ||
861 | LIBTOOL_DEPS | ||
862 | INSTALL_LTDL_TRUE | ||
863 | INSTALL_LTDL_FALSE | ||
864 | CONVENIENCE_LTDL_TRUE | ||
865 | CONVENIENCE_LTDL_FALSE | ||
866 | LIBADD_DL | ||
867 | LIBOBJS | ||
868 | LTLIBOBJS' | ||
869 | ac_subst_files='' | ||
870 | ac_precious_vars='build_alias | ||
871 | host_alias | ||
872 | target_alias | ||
873 | CC | ||
874 | CFLAGS | ||
875 | LDFLAGS | ||
876 | CPPFLAGS | ||
877 | CPP | ||
878 | CXX | ||
879 | CXXFLAGS | ||
880 | CCC | ||
881 | CXXCPP | ||
882 | F77 | ||
883 | FFLAGS' | ||
884 | |||
885 | |||
886 | # Initialize some variables set by options. | ||
887 | ac_init_help= | ||
888 | ac_init_version=false | ||
889 | # The variables have the same names as the options, with | ||
890 | # dashes changed to underlines. | ||
891 | cache_file=/dev/null | ||
892 | exec_prefix=NONE | ||
893 | no_create= | ||
894 | no_recursion= | ||
895 | prefix=NONE | ||
896 | program_prefix=NONE | ||
897 | program_suffix=NONE | ||
898 | program_transform_name=s,x,x, | ||
899 | silent= | ||
900 | site= | ||
901 | srcdir= | ||
902 | verbose= | ||
903 | x_includes=NONE | ||
904 | x_libraries=NONE | ||
905 | |||
906 | # Installation directory options. | ||
907 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
908 | # and all the variables that are supposed to be based on exec_prefix | ||
909 | # by default will actually change. | ||
910 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
911 | # (The list follows the same order as the GNU Coding Standards.) | ||
912 | bindir='${exec_prefix}/bin' | ||
913 | sbindir='${exec_prefix}/sbin' | ||
914 | libexecdir='${exec_prefix}/libexec' | ||
915 | datarootdir='${prefix}/share' | ||
916 | datadir='${datarootdir}' | ||
917 | sysconfdir='${prefix}/etc' | ||
918 | sharedstatedir='${prefix}/com' | ||
919 | localstatedir='${prefix}/var' | ||
920 | includedir='${prefix}/include' | ||
921 | oldincludedir='/usr/include' | ||
922 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
923 | infodir='${datarootdir}/info' | ||
924 | htmldir='${docdir}' | ||
925 | dvidir='${docdir}' | ||
926 | pdfdir='${docdir}' | ||
927 | psdir='${docdir}' | ||
928 | libdir='${exec_prefix}/lib' | ||
929 | localedir='${datarootdir}/locale' | ||
930 | mandir='${datarootdir}/man' | ||
931 | |||
932 | ac_prev= | ||
933 | ac_dashdash= | ||
934 | for ac_option | ||
935 | do | ||
936 | # If the previous option needs an argument, assign it. | ||
937 | if test -n "$ac_prev"; then | ||
938 | eval $ac_prev=\$ac_option | ||
939 | ac_prev= | ||
940 | continue | ||
941 | fi | ||
942 | |||
943 | case $ac_option in | ||
944 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
945 | *) ac_optarg=yes ;; | ||
946 | esac | ||
947 | |||
948 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
949 | |||
950 | case $ac_dashdash$ac_option in | ||
951 | --) | ||
952 | ac_dashdash=yes ;; | ||
953 | |||
954 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
955 | ac_prev=bindir ;; | ||
956 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
957 | bindir=$ac_optarg ;; | ||
958 | |||
959 | -build | --build | --buil | --bui | --bu) | ||
960 | ac_prev=build_alias ;; | ||
961 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
962 | build_alias=$ac_optarg ;; | ||
963 | |||
964 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
965 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
966 | ac_prev=cache_file ;; | ||
967 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
968 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
969 | cache_file=$ac_optarg ;; | ||
970 | |||
971 | --config-cache | -C) | ||
972 | cache_file=config.cache ;; | ||
973 | |||
974 | -datadir | --datadir | --datadi | --datad) | ||
975 | ac_prev=datadir ;; | ||
976 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
977 | datadir=$ac_optarg ;; | ||
978 | |||
979 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
980 | | --dataroo | --dataro | --datar) | ||
981 | ac_prev=datarootdir ;; | ||
982 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
983 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
984 | datarootdir=$ac_optarg ;; | ||
985 | |||
986 | -disable-* | --disable-*) | ||
987 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
988 | # Reject names that are not valid shell variable names. | ||
989 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
990 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
991 | { (exit 1); exit 1; }; } | ||
992 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
993 | eval enable_$ac_feature=no ;; | ||
994 | |||
995 | -docdir | --docdir | --docdi | --doc | --do) | ||
996 | ac_prev=docdir ;; | ||
997 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
998 | docdir=$ac_optarg ;; | ||
999 | |||
1000 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1001 | ac_prev=dvidir ;; | ||
1002 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1003 | dvidir=$ac_optarg ;; | ||
1004 | |||
1005 | -enable-* | --enable-*) | ||
1006 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1007 | # Reject names that are not valid shell variable names. | ||
1008 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1009 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
1010 | { (exit 1); exit 1; }; } | ||
1011 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
1012 | eval enable_$ac_feature=\$ac_optarg ;; | ||
1013 | |||
1014 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1015 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1016 | | --exec | --exe | --ex) | ||
1017 | ac_prev=exec_prefix ;; | ||
1018 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1019 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1020 | | --exec=* | --exe=* | --ex=*) | ||
1021 | exec_prefix=$ac_optarg ;; | ||
1022 | |||
1023 | -gas | --gas | --ga | --g) | ||
1024 | # Obsolete; use --with-gas. | ||
1025 | with_gas=yes ;; | ||
1026 | |||
1027 | -help | --help | --hel | --he | -h) | ||
1028 | ac_init_help=long ;; | ||
1029 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1030 | ac_init_help=recursive ;; | ||
1031 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1032 | ac_init_help=short ;; | ||
1033 | |||
1034 | -host | --host | --hos | --ho) | ||
1035 | ac_prev=host_alias ;; | ||
1036 | -host=* | --host=* | --hos=* | --ho=*) | ||
1037 | host_alias=$ac_optarg ;; | ||
1038 | |||
1039 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1040 | ac_prev=htmldir ;; | ||
1041 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1042 | | --ht=*) | ||
1043 | htmldir=$ac_optarg ;; | ||
1044 | |||
1045 | -includedir | --includedir | --includedi | --included | --include \ | ||
1046 | | --includ | --inclu | --incl | --inc) | ||
1047 | ac_prev=includedir ;; | ||
1048 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1049 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1050 | includedir=$ac_optarg ;; | ||
1051 | |||
1052 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1053 | ac_prev=infodir ;; | ||
1054 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1055 | infodir=$ac_optarg ;; | ||
1056 | |||
1057 | -libdir | --libdir | --libdi | --libd) | ||
1058 | ac_prev=libdir ;; | ||
1059 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1060 | libdir=$ac_optarg ;; | ||
1061 | |||
1062 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1063 | | --libexe | --libex | --libe) | ||
1064 | ac_prev=libexecdir ;; | ||
1065 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1066 | | --libexe=* | --libex=* | --libe=*) | ||
1067 | libexecdir=$ac_optarg ;; | ||
1068 | |||
1069 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1070 | ac_prev=localedir ;; | ||
1071 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1072 | localedir=$ac_optarg ;; | ||
1073 | |||
1074 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1075 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1076 | ac_prev=localstatedir ;; | ||
1077 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1078 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1079 | localstatedir=$ac_optarg ;; | ||
1080 | |||
1081 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1082 | ac_prev=mandir ;; | ||
1083 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1084 | mandir=$ac_optarg ;; | ||
1085 | |||
1086 | -nfp | --nfp | --nf) | ||
1087 | # Obsolete; use --without-fp. | ||
1088 | with_fp=no ;; | ||
1089 | |||
1090 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1091 | | --no-cr | --no-c | -n) | ||
1092 | no_create=yes ;; | ||
1093 | |||
1094 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1095 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1096 | no_recursion=yes ;; | ||
1097 | |||
1098 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1099 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1100 | | --oldin | --oldi | --old | --ol | --o) | ||
1101 | ac_prev=oldincludedir ;; | ||
1102 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1103 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1104 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1105 | oldincludedir=$ac_optarg ;; | ||
1106 | |||
1107 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1108 | ac_prev=prefix ;; | ||
1109 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1110 | prefix=$ac_optarg ;; | ||
1111 | |||
1112 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1113 | | --program-pre | --program-pr | --program-p) | ||
1114 | ac_prev=program_prefix ;; | ||
1115 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1116 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1117 | program_prefix=$ac_optarg ;; | ||
1118 | |||
1119 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1120 | | --program-suf | --program-su | --program-s) | ||
1121 | ac_prev=program_suffix ;; | ||
1122 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1123 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1124 | program_suffix=$ac_optarg ;; | ||
1125 | |||
1126 | -program-transform-name | --program-transform-name \ | ||
1127 | | --program-transform-nam | --program-transform-na \ | ||
1128 | | --program-transform-n | --program-transform- \ | ||
1129 | | --program-transform | --program-transfor \ | ||
1130 | | --program-transfo | --program-transf \ | ||
1131 | | --program-trans | --program-tran \ | ||
1132 | | --progr-tra | --program-tr | --program-t) | ||
1133 | ac_prev=program_transform_name ;; | ||
1134 | -program-transform-name=* | --program-transform-name=* \ | ||
1135 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1136 | | --program-transform-n=* | --program-transform-=* \ | ||
1137 | | --program-transform=* | --program-transfor=* \ | ||
1138 | | --program-transfo=* | --program-transf=* \ | ||
1139 | | --program-trans=* | --program-tran=* \ | ||
1140 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1141 | program_transform_name=$ac_optarg ;; | ||
1142 | |||
1143 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1144 | ac_prev=pdfdir ;; | ||
1145 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1146 | pdfdir=$ac_optarg ;; | ||
1147 | |||
1148 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1149 | ac_prev=psdir ;; | ||
1150 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1151 | psdir=$ac_optarg ;; | ||
1152 | |||
1153 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1154 | | -silent | --silent | --silen | --sile | --sil) | ||
1155 | silent=yes ;; | ||
1156 | |||
1157 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1158 | ac_prev=sbindir ;; | ||
1159 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1160 | | --sbi=* | --sb=*) | ||
1161 | sbindir=$ac_optarg ;; | ||
1162 | |||
1163 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1164 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1165 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1166 | | --sha | --sh) | ||
1167 | ac_prev=sharedstatedir ;; | ||
1168 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1169 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1170 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1171 | | --sha=* | --sh=*) | ||
1172 | sharedstatedir=$ac_optarg ;; | ||
1173 | |||
1174 | -site | --site | --sit) | ||
1175 | ac_prev=site ;; | ||
1176 | -site=* | --site=* | --sit=*) | ||
1177 | site=$ac_optarg ;; | ||
1178 | |||
1179 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1180 | ac_prev=srcdir ;; | ||
1181 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1182 | srcdir=$ac_optarg ;; | ||
1183 | |||
1184 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1185 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1186 | ac_prev=sysconfdir ;; | ||
1187 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1188 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1189 | sysconfdir=$ac_optarg ;; | ||
1190 | |||
1191 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1192 | ac_prev=target_alias ;; | ||
1193 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1194 | target_alias=$ac_optarg ;; | ||
1195 | |||
1196 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1197 | verbose=yes ;; | ||
1198 | |||
1199 | -version | --version | --versio | --versi | --vers | -V) | ||
1200 | ac_init_version=: ;; | ||
1201 | |||
1202 | -with-* | --with-*) | ||
1203 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1204 | # Reject names that are not valid shell variable names. | ||
1205 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1206 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1207 | { (exit 1); exit 1; }; } | ||
1208 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
1209 | eval with_$ac_package=\$ac_optarg ;; | ||
1210 | |||
1211 | -without-* | --without-*) | ||
1212 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1213 | # Reject names that are not valid shell variable names. | ||
1214 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
1215 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1216 | { (exit 1); exit 1; }; } | ||
1217 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
1218 | eval with_$ac_package=no ;; | ||
1219 | |||
1220 | --x) | ||
1221 | # Obsolete; use --with-x. | ||
1222 | with_x=yes ;; | ||
1223 | |||
1224 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1225 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1226 | ac_prev=x_includes ;; | ||
1227 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1228 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1229 | x_includes=$ac_optarg ;; | ||
1230 | |||
1231 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1232 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1233 | ac_prev=x_libraries ;; | ||
1234 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1235 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1236 | x_libraries=$ac_optarg ;; | ||
1237 | |||
1238 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1239 | Try \`$0 --help' for more information." >&2 | ||
1240 | { (exit 1); exit 1; }; } | ||
1241 | ;; | ||
1242 | |||
1243 | *=*) | ||
1244 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1245 | # Reject names that are not valid shell variable names. | ||
1246 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1247 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1248 | { (exit 1); exit 1; }; } | ||
1249 | eval $ac_envvar=\$ac_optarg | ||
1250 | export $ac_envvar ;; | ||
1251 | |||
1252 | *) | ||
1253 | # FIXME: should be removed in autoconf 3.0. | ||
1254 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1255 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1256 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1257 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1258 | ;; | ||
1259 | |||
1260 | esac | ||
1261 | done | ||
1262 | |||
1263 | if test -n "$ac_prev"; then | ||
1264 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1265 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1266 | { (exit 1); exit 1; }; } | ||
1267 | fi | ||
1268 | |||
1269 | # Be sure to have absolute directory names. | ||
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1273 | libdir localedir mandir | ||
1274 | do | ||
1275 | eval ac_val=\$$ac_var | ||
1276 | case $ac_val in | ||
1277 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1279 | esac | ||
1280 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1281 | { (exit 1); exit 1; }; } | ||
1282 | done | ||
1283 | |||
1284 | # There might be people who depend on the old broken behavior: `$host' | ||
1285 | # used to hold the argument of --host etc. | ||
1286 | # FIXME: To remove some day. | ||
1287 | build=$build_alias | ||
1288 | host=$host_alias | ||
1289 | target=$target_alias | ||
1290 | |||
1291 | # FIXME: To remove some day. | ||
1292 | if test "x$host_alias" != x; then | ||
1293 | if test "x$build_alias" = x; then | ||
1294 | cross_compiling=maybe | ||
1295 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1296 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1297 | elif test "x$build_alias" != "x$host_alias"; then | ||
1298 | cross_compiling=yes | ||
1299 | fi | ||
1300 | fi | ||
1301 | |||
1302 | ac_tool_prefix= | ||
1303 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1304 | |||
1305 | test "$silent" = yes && exec 6>/dev/null | ||
1306 | |||
1307 | |||
1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1309 | ac_ls_di=`ls -di .` && | ||
1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1311 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1312 | { (exit 1); exit 1; }; } | ||
1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1314 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1315 | { (exit 1); exit 1; }; } | ||
1316 | |||
1317 | |||
1318 | # Find the source files, if location was not specified. | ||
1319 | if test -z "$srcdir"; then | ||
1320 | ac_srcdir_defaulted=yes | ||
1321 | # Try the directory containing this script, then the parent directory. | ||
1322 | ac_confdir=`$as_dirname -- "$0" || | ||
1323 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1324 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1325 | X"$0" : 'X\(//\)$' \| \ | ||
1326 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1327 | echo X"$0" | | ||
1328 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1329 | s//\1/ | ||
1330 | q | ||
1331 | } | ||
1332 | /^X\(\/\/\)[^/].*/{ | ||
1333 | s//\1/ | ||
1334 | q | ||
1335 | } | ||
1336 | /^X\(\/\/\)$/{ | ||
1337 | s//\1/ | ||
1338 | q | ||
1339 | } | ||
1340 | /^X\(\/\).*/{ | ||
1341 | s//\1/ | ||
1342 | q | ||
1343 | } | ||
1344 | s/.*/./; q'` | ||
1345 | srcdir=$ac_confdir | ||
1346 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1347 | srcdir=.. | ||
1348 | fi | ||
1349 | else | ||
1350 | ac_srcdir_defaulted=no | ||
1351 | fi | ||
1352 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1353 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1354 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1355 | { (exit 1); exit 1; }; } | ||
1356 | fi | ||
1357 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1358 | ac_abs_confdir=`( | ||
1359 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1360 | { (exit 1); exit 1; }; } | ||
1361 | pwd)` | ||
1362 | # When building in place, set srcdir=. | ||
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1364 | srcdir=. | ||
1365 | fi | ||
1366 | # Remove unnecessary trailing slashes from srcdir. | ||
1367 | # Double slashes in file names in object file debugging info | ||
1368 | # mess up M-x gdb in Emacs. | ||
1369 | case $srcdir in | ||
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1371 | esac | ||
1372 | for ac_var in $ac_precious_vars; do | ||
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1377 | done | ||
1378 | |||
1379 | # | ||
1380 | # Report the --help message. | ||
1381 | # | ||
1382 | if test "$ac_init_help" = "long"; then | ||
1383 | # Omit some internal or obsolete options to make the list less imposing. | ||
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1385 | cat <<_ACEOF | ||
1386 | \`configure' configures libltdl 1.2 to adapt to many kinds of systems. | ||
1387 | |||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1389 | |||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1392 | |||
1393 | Defaults for the options are specified in brackets. | ||
1394 | |||
1395 | Configuration: | ||
1396 | -h, --help display this help and exit | ||
1397 | --help=short display options specific to this package | ||
1398 | --help=recursive display the short help of all the included packages | ||
1399 | -V, --version display version information and exit | ||
1400 | -q, --quiet, --silent do not print \`checking...' messages | ||
1401 | --cache-file=FILE cache test results in FILE [disabled] | ||
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1403 | -n, --no-create do not create output files | ||
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1405 | |||
1406 | Installation directories: | ||
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1408 | [$ac_default_prefix] | ||
1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1410 | [PREFIX] | ||
1411 | |||
1412 | By default, \`make install' will install all the files in | ||
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1415 | for instance \`--prefix=\$HOME'. | ||
1416 | |||
1417 | For better control, use the options below. | ||
1418 | |||
1419 | Fine tuning of the installation directories: | ||
1420 | --bindir=DIR user executables [EPREFIX/bin] | ||
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1427 | --includedir=DIR C header files [PREFIX/include] | ||
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl] | ||
1435 | --htmldir=DIR html documentation [DOCDIR] | ||
1436 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1438 | --psdir=DIR ps documentation [DOCDIR] | ||
1439 | _ACEOF | ||
1440 | |||
1441 | cat <<\_ACEOF | ||
1442 | |||
1443 | Program names: | ||
1444 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1445 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1447 | |||
1448 | System types: | ||
1449 | --build=BUILD configure for building on BUILD [guessed] | ||
1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1451 | _ACEOF | ||
1452 | fi | ||
1453 | |||
1454 | if test -n "$ac_init_help"; then | ||
1455 | case $ac_init_help in | ||
1456 | short | recursive ) echo "Configuration of libltdl 1.2:";; | ||
1457 | esac | ||
1458 | cat <<\_ACEOF | ||
1459 | |||
1460 | Optional Features: | ||
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1463 | --enable-maintainer-mode enable make rules and dependencies not useful | ||
1464 | (and sometimes confusing) to the casual installer | ||
1465 | --disable-dependency-tracking speeds up one-time build | ||
1466 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1467 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1468 | --enable-static[=PKGS] build static libraries [default=yes] | ||
1469 | --enable-fast-install[=PKGS] | ||
1470 | optimize for fast installation [default=yes] | ||
1471 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1472 | --enable-ltdl-install install libltdl | ||
1473 | |||
1474 | Optional Packages: | ||
1475 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1476 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1477 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1478 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1479 | both] | ||
1480 | --with-tags[=TAGS] include additional configurations [automatic] | ||
1481 | |||
1482 | Some influential environment variables: | ||
1483 | CC C compiler command | ||
1484 | CFLAGS C compiler flags | ||
1485 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1486 | nonstandard directory <lib dir> | ||
1487 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1488 | you have headers in a nonstandard directory <include dir> | ||
1489 | CPP C preprocessor | ||
1490 | CXX C++ compiler command | ||
1491 | CXXFLAGS C++ compiler flags | ||
1492 | CXXCPP C++ preprocessor | ||
1493 | F77 Fortran 77 compiler command | ||
1494 | FFLAGS Fortran 77 compiler flags | ||
1495 | |||
1496 | Use these variables to override the choices made by `configure' or to help | ||
1497 | it to find libraries and programs with nonstandard names/locations. | ||
1498 | |||
1499 | Report bugs to <bug-libtool@gnu.org>. | ||
1500 | _ACEOF | ||
1501 | ac_status=$? | ||
1502 | fi | ||
1503 | |||
1504 | if test "$ac_init_help" = "recursive"; then | ||
1505 | # If there are subdirs, report their specific --help. | ||
1506 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1507 | test -d "$ac_dir" || continue | ||
1508 | ac_builddir=. | ||
1509 | |||
1510 | case "$ac_dir" in | ||
1511 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1512 | *) | ||
1513 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1514 | # A ".." for each directory in $ac_dir_suffix. | ||
1515 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1516 | case $ac_top_builddir_sub in | ||
1517 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1518 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1519 | esac ;; | ||
1520 | esac | ||
1521 | ac_abs_top_builddir=$ac_pwd | ||
1522 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1523 | # for backward compatibility: | ||
1524 | ac_top_builddir=$ac_top_build_prefix | ||
1525 | |||
1526 | case $srcdir in | ||
1527 | .) # We are building in place. | ||
1528 | ac_srcdir=. | ||
1529 | ac_top_srcdir=$ac_top_builddir_sub | ||
1530 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1531 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1532 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1533 | ac_top_srcdir=$srcdir | ||
1534 | ac_abs_top_srcdir=$srcdir ;; | ||
1535 | *) # Relative name. | ||
1536 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1537 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1538 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1539 | esac | ||
1540 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1541 | |||
1542 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1543 | # Check for guested configure. | ||
1544 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1545 | echo && | ||
1546 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1547 | elif test -f "$ac_srcdir/configure"; then | ||
1548 | echo && | ||
1549 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1550 | else | ||
1551 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1552 | fi || ac_status=$? | ||
1553 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1554 | done | ||
1555 | fi | ||
1556 | |||
1557 | test -n "$ac_init_help" && exit $ac_status | ||
1558 | if $ac_init_version; then | ||
1559 | cat <<\_ACEOF | ||
1560 | libltdl configure 1.2 | ||
1561 | generated by GNU Autoconf 2.60a | ||
1562 | |||
1563 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1564 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1565 | This configure script is free software; the Free Software Foundation | ||
1566 | gives unlimited permission to copy, distribute and modify it. | ||
1567 | _ACEOF | ||
1568 | exit | ||
1569 | fi | ||
1570 | cat >config.log <<_ACEOF | ||
1571 | This file contains any messages produced by compilers while | ||
1572 | running configure, to aid debugging if configure makes a mistake. | ||
1573 | |||
1574 | It was created by libltdl $as_me 1.2, which was | ||
1575 | generated by GNU Autoconf 2.60a. Invocation command line was | ||
1576 | |||
1577 | $ $0 $@ | ||
1578 | |||
1579 | _ACEOF | ||
1580 | exec 5>>config.log | ||
1581 | { | ||
1582 | cat <<_ASUNAME | ||
1583 | ## --------- ## | ||
1584 | ## Platform. ## | ||
1585 | ## --------- ## | ||
1586 | |||
1587 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1588 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1589 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1590 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1591 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1592 | |||
1593 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1594 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1595 | |||
1596 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1597 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1598 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1599 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1600 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1601 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1602 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1603 | |||
1604 | _ASUNAME | ||
1605 | |||
1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1607 | for as_dir in $PATH | ||
1608 | do | ||
1609 | IFS=$as_save_IFS | ||
1610 | test -z "$as_dir" && as_dir=. | ||
1611 | echo "PATH: $as_dir" | ||
1612 | done | ||
1613 | IFS=$as_save_IFS | ||
1614 | |||
1615 | } >&5 | ||
1616 | |||
1617 | cat >&5 <<_ACEOF | ||
1618 | |||
1619 | |||
1620 | ## ----------- ## | ||
1621 | ## Core tests. ## | ||
1622 | ## ----------- ## | ||
1623 | |||
1624 | _ACEOF | ||
1625 | |||
1626 | |||
1627 | # Keep a trace of the command line. | ||
1628 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1629 | # Strip out --silent because we don't want to record it for future runs. | ||
1630 | # Also quote any args containing shell meta-characters. | ||
1631 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1632 | ac_configure_args= | ||
1633 | ac_configure_args0= | ||
1634 | ac_configure_args1= | ||
1635 | ac_must_keep_next=false | ||
1636 | for ac_pass in 1 2 | ||
1637 | do | ||
1638 | for ac_arg | ||
1639 | do | ||
1640 | case $ac_arg in | ||
1641 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1642 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1643 | | -silent | --silent | --silen | --sile | --sil) | ||
1644 | continue ;; | ||
1645 | *\'*) | ||
1646 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1647 | esac | ||
1648 | case $ac_pass in | ||
1649 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1650 | 2) | ||
1651 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1652 | if test $ac_must_keep_next = true; then | ||
1653 | ac_must_keep_next=false # Got value, back to normal. | ||
1654 | else | ||
1655 | case $ac_arg in | ||
1656 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1657 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1658 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1659 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1660 | case "$ac_configure_args0 " in | ||
1661 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1662 | esac | ||
1663 | ;; | ||
1664 | -* ) ac_must_keep_next=true ;; | ||
1665 | esac | ||
1666 | fi | ||
1667 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1668 | ;; | ||
1669 | esac | ||
1670 | done | ||
1671 | done | ||
1672 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1673 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1674 | |||
1675 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1676 | # config.log. We remove comments because anyway the quotes in there | ||
1677 | # would cause problems or look ugly. | ||
1678 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1679 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1680 | trap 'exit_status=$? | ||
1681 | # Save into config.log some information that might help in debugging. | ||
1682 | { | ||
1683 | echo | ||
1684 | |||
1685 | cat <<\_ASBOX | ||
1686 | ## ---------------- ## | ||
1687 | ## Cache variables. ## | ||
1688 | ## ---------------- ## | ||
1689 | _ASBOX | ||
1690 | echo | ||
1691 | # The following way of writing the cache mishandles newlines in values, | ||
1692 | ( | ||
1693 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1694 | eval ac_val=\$$ac_var | ||
1695 | case $ac_val in #( | ||
1696 | *${as_nl}*) | ||
1697 | case $ac_var in #( | ||
1698 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1699 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1700 | esac | ||
1701 | case $ac_var in #( | ||
1702 | _ | IFS | as_nl) ;; #( | ||
1703 | *) $as_unset $ac_var ;; | ||
1704 | esac ;; | ||
1705 | esac | ||
1706 | done | ||
1707 | (set) 2>&1 | | ||
1708 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1709 | *${as_nl}ac_space=\ *) | ||
1710 | sed -n \ | ||
1711 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1712 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1713 | ;; #( | ||
1714 | *) | ||
1715 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1716 | ;; | ||
1717 | esac | | ||
1718 | sort | ||
1719 | ) | ||
1720 | echo | ||
1721 | |||
1722 | cat <<\_ASBOX | ||
1723 | ## ----------------- ## | ||
1724 | ## Output variables. ## | ||
1725 | ## ----------------- ## | ||
1726 | _ASBOX | ||
1727 | echo | ||
1728 | for ac_var in $ac_subst_vars | ||
1729 | do | ||
1730 | eval ac_val=\$$ac_var | ||
1731 | case $ac_val in | ||
1732 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1733 | esac | ||
1734 | echo "$ac_var='\''$ac_val'\''" | ||
1735 | done | sort | ||
1736 | echo | ||
1737 | |||
1738 | if test -n "$ac_subst_files"; then | ||
1739 | cat <<\_ASBOX | ||
1740 | ## ------------------- ## | ||
1741 | ## File substitutions. ## | ||
1742 | ## ------------------- ## | ||
1743 | _ASBOX | ||
1744 | echo | ||
1745 | for ac_var in $ac_subst_files | ||
1746 | do | ||
1747 | eval ac_val=\$$ac_var | ||
1748 | case $ac_val in | ||
1749 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1750 | esac | ||
1751 | echo "$ac_var='\''$ac_val'\''" | ||
1752 | done | sort | ||
1753 | echo | ||
1754 | fi | ||
1755 | |||
1756 | if test -s confdefs.h; then | ||
1757 | cat <<\_ASBOX | ||
1758 | ## ----------- ## | ||
1759 | ## confdefs.h. ## | ||
1760 | ## ----------- ## | ||
1761 | _ASBOX | ||
1762 | echo | ||
1763 | cat confdefs.h | ||
1764 | echo | ||
1765 | fi | ||
1766 | test "$ac_signal" != 0 && | ||
1767 | echo "$as_me: caught signal $ac_signal" | ||
1768 | echo "$as_me: exit $exit_status" | ||
1769 | } >&5 | ||
1770 | rm -f core *.core core.conftest.* && | ||
1771 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1772 | exit $exit_status | ||
1773 | ' 0 | ||
1774 | for ac_signal in 1 2 13 15; do | ||
1775 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1776 | done | ||
1777 | ac_signal=0 | ||
1778 | |||
1779 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1780 | rm -f -r conftest* confdefs.h | ||
1781 | |||
1782 | # Predefined preprocessor variables. | ||
1783 | |||
1784 | cat >>confdefs.h <<_ACEOF | ||
1785 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1786 | _ACEOF | ||
1787 | |||
1788 | |||
1789 | cat >>confdefs.h <<_ACEOF | ||
1790 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1791 | _ACEOF | ||
1792 | |||
1793 | |||
1794 | cat >>confdefs.h <<_ACEOF | ||
1795 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1796 | _ACEOF | ||
1797 | |||
1798 | |||
1799 | cat >>confdefs.h <<_ACEOF | ||
1800 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1801 | _ACEOF | ||
1802 | |||
1803 | |||
1804 | cat >>confdefs.h <<_ACEOF | ||
1805 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1806 | _ACEOF | ||
1807 | |||
1808 | |||
1809 | # Let the site file select an alternate cache file if it wants to. | ||
1810 | # Prefer explicitly selected file to automatically selected ones. | ||
1811 | if test -n "$CONFIG_SITE"; then | ||
1812 | set x "$CONFIG_SITE" | ||
1813 | elif test "x$prefix" != xNONE; then | ||
1814 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1815 | else | ||
1816 | set x "$ac_default_prefix/share/config.site" \ | ||
1817 | "$ac_default_prefix/etc/config.site" | ||
1818 | fi | ||
1819 | shift | ||
1820 | for ac_site_file | ||
1821 | do | ||
1822 | if test -r "$ac_site_file"; then | ||
1823 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1824 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1825 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1826 | . "$ac_site_file" | ||
1827 | fi | ||
1828 | done | ||
1829 | |||
1830 | if test -r "$cache_file"; then | ||
1831 | # Some versions of bash will fail to source /dev/null (special | ||
1832 | # files actually), so we avoid doing that. | ||
1833 | if test -f "$cache_file"; then | ||
1834 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1835 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1836 | case $cache_file in | ||
1837 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1838 | *) . "./$cache_file";; | ||
1839 | esac | ||
1840 | fi | ||
1841 | else | ||
1842 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1843 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1844 | >$cache_file | ||
1845 | fi | ||
1846 | |||
1847 | # Check that the precious variables saved in the cache have kept the same | ||
1848 | # value. | ||
1849 | ac_cache_corrupted=false | ||
1850 | for ac_var in $ac_precious_vars; do | ||
1851 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1852 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1853 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1854 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1855 | case $ac_old_set,$ac_new_set in | ||
1856 | set,) | ||
1857 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1858 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1859 | ac_cache_corrupted=: ;; | ||
1860 | ,set) | ||
1861 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1862 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1863 | ac_cache_corrupted=: ;; | ||
1864 | ,);; | ||
1865 | *) | ||
1866 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1867 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1868 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1869 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1870 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1871 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1872 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1873 | ac_cache_corrupted=: | ||
1874 | fi;; | ||
1875 | esac | ||
1876 | # Pass precious variables to config.status. | ||
1877 | if test "$ac_new_set" = set; then | ||
1878 | case $ac_new_val in | ||
1879 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1880 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1881 | esac | ||
1882 | case " $ac_configure_args " in | ||
1883 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1884 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1885 | esac | ||
1886 | fi | ||
1887 | done | ||
1888 | if $ac_cache_corrupted; then | ||
1889 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1890 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1891 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1892 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1893 | { (exit 1); exit 1; }; } | ||
1894 | fi | ||
1895 | |||
1896 | |||
1897 | |||
1898 | |||
1899 | |||
1900 | |||
1901 | |||
1902 | |||
1903 | |||
1904 | |||
1905 | |||
1906 | |||
1907 | |||
1908 | |||
1909 | |||
1910 | |||
1911 | |||
1912 | |||
1913 | |||
1914 | |||
1915 | |||
1916 | |||
1917 | |||
1918 | |||
1919 | |||
1920 | ac_ext=c | ||
1921 | ac_cpp='$CPP $CPPFLAGS' | ||
1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1925 | |||
1926 | |||
1927 | |||
1928 | |||
1929 | |||
1930 | ## ------------------------------- ## | ||
1931 | ## Libltdl specific configuration. ## | ||
1932 | ## ------------------------------- ## | ||
1933 | |||
1934 | ac_aux_dir= | ||
1935 | for ac_dir in . "$srcdir"/.; do | ||
1936 | if test -f "$ac_dir/install-sh"; then | ||
1937 | ac_aux_dir=$ac_dir | ||
1938 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1939 | break | ||
1940 | elif test -f "$ac_dir/install.sh"; then | ||
1941 | ac_aux_dir=$ac_dir | ||
1942 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1943 | break | ||
1944 | elif test -f "$ac_dir/shtool"; then | ||
1945 | ac_aux_dir=$ac_dir | ||
1946 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1947 | break | ||
1948 | fi | ||
1949 | done | ||
1950 | if test -z "$ac_aux_dir"; then | ||
1951 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 | ||
1952 | echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} | ||
1953 | { (exit 1); exit 1; }; } | ||
1954 | fi | ||
1955 | |||
1956 | # These three variables are undocumented and unsupported, | ||
1957 | # and are intended to be withdrawn in a future Autoconf release. | ||
1958 | # They can cause serious problems if a builder's source tree is in a directory | ||
1959 | # whose full name contains unusual characters. | ||
1960 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1961 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1962 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1963 | |||
1964 | |||
1965 | |||
1966 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then | ||
1967 | if test -f ${srcdir}/ltmain.sh; then | ||
1968 | # if libltdl is libtoolized, it is assumed to be stand-alone and | ||
1969 | # installed unless the command line overrides it (tested above) | ||
1970 | enable_ltdl_install=yes | ||
1971 | else | ||
1972 | { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5 | ||
1973 | echo "$as_me: WARNING: *** The top-level configure must select either" >&2;} | ||
1974 | { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5 | ||
1975 | echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;} | ||
1976 | { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5 | ||
1977 | echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;} | ||
1978 | { (exit 1); exit 1; }; } | ||
1979 | fi | ||
1980 | fi | ||
1981 | |||
1982 | |||
1983 | ## ------------------------ ## | ||
1984 | ## Automake Initialisation. ## | ||
1985 | ## ------------------------ ## | ||
1986 | am__api_version="1.8" | ||
1987 | # Find a good install program. We prefer a C program (faster), | ||
1988 | # so one script is as good as another. But avoid the broken or | ||
1989 | # incompatible versions: | ||
1990 | # SysV /etc/install, /usr/sbin/install | ||
1991 | # SunOS /usr/etc/install | ||
1992 | # IRIX /sbin/install | ||
1993 | # AIX /bin/install | ||
1994 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1995 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1996 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1997 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1998 | # OS/2's system install, which has a completely different semantic | ||
1999 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2000 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2001 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
2002 | if test -z "$INSTALL"; then | ||
2003 | if test "${ac_cv_path_install+set}" = set; then | ||
2004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2005 | else | ||
2006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2007 | for as_dir in $PATH | ||
2008 | do | ||
2009 | IFS=$as_save_IFS | ||
2010 | test -z "$as_dir" && as_dir=. | ||
2011 | # Account for people who put trailing slashes in PATH elements. | ||
2012 | case $as_dir/ in | ||
2013 | ./ | .// | /cC/* | \ | ||
2014 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2015 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2016 | /usr/ucb/* ) ;; | ||
2017 | *) | ||
2018 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2019 | # Don't use installbsd from OSF since it installs stuff as root | ||
2020 | # by default. | ||
2021 | for ac_prog in ginstall scoinst install; do | ||
2022 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2023 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2024 | if test $ac_prog = install && | ||
2025 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2026 | # AIX install. It has an incompatible calling convention. | ||
2027 | : | ||
2028 | elif test $ac_prog = install && | ||
2029 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2030 | # program-specific install script used by HP pwplus--don't use. | ||
2031 | : | ||
2032 | else | ||
2033 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2034 | break 3 | ||
2035 | fi | ||
2036 | fi | ||
2037 | done | ||
2038 | done | ||
2039 | ;; | ||
2040 | esac | ||
2041 | done | ||
2042 | IFS=$as_save_IFS | ||
2043 | |||
2044 | |||
2045 | fi | ||
2046 | if test "${ac_cv_path_install+set}" = set; then | ||
2047 | INSTALL=$ac_cv_path_install | ||
2048 | else | ||
2049 | # As a last resort, use the slow shell script. Don't cache a | ||
2050 | # value for INSTALL within a source directory, because that will | ||
2051 | # break other packages using the cache if that directory is | ||
2052 | # removed, or if the value is a relative name. | ||
2053 | INSTALL=$ac_install_sh | ||
2054 | fi | ||
2055 | fi | ||
2056 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2057 | echo "${ECHO_T}$INSTALL" >&6; } | ||
2058 | |||
2059 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2060 | # It thinks the first close brace ends the variable substitution. | ||
2061 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2062 | |||
2063 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2064 | |||
2065 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2066 | |||
2067 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
2068 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
2069 | # Just in case | ||
2070 | sleep 1 | ||
2071 | echo timestamp > conftest.file | ||
2072 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2073 | # arguments. Must try -L first in case configure is actually a | ||
2074 | # symlink; some systems play weird games with the mod time of symlinks | ||
2075 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2076 | # directory). | ||
2077 | if ( | ||
2078 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
2079 | if test "$*" = "X"; then | ||
2080 | # -L didn't work. | ||
2081 | set X `ls -t $srcdir/configure conftest.file` | ||
2082 | fi | ||
2083 | rm -f conftest.file | ||
2084 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2085 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2086 | |||
2087 | # If neither matched, then we have a broken ls. This can happen | ||
2088 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2089 | # broken ls alias from the environment. This has actually | ||
2090 | # happened. Such a system could not be considered "sane". | ||
2091 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
2092 | alias in your environment" >&5 | ||
2093 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
2094 | alias in your environment" >&2;} | ||
2095 | { (exit 1); exit 1; }; } | ||
2096 | fi | ||
2097 | |||
2098 | test "$2" = conftest.file | ||
2099 | ) | ||
2100 | then | ||
2101 | # Ok. | ||
2102 | : | ||
2103 | else | ||
2104 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
2105 | Check your system clock" >&5 | ||
2106 | echo "$as_me: error: newly created file is older than distributed files! | ||
2107 | Check your system clock" >&2;} | ||
2108 | { (exit 1); exit 1; }; } | ||
2109 | fi | ||
2110 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2111 | echo "${ECHO_T}yes" >&6; } | ||
2112 | test "$program_prefix" != NONE && | ||
2113 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2114 | # Use a double $ so make ignores it. | ||
2115 | test "$program_suffix" != NONE && | ||
2116 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2117 | # Double any \ or $. echo might interpret backslashes. | ||
2118 | # By default was `s,x,x', remove it if useless. | ||
2119 | cat <<\_ACEOF >conftest.sed | ||
2120 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
2121 | _ACEOF | ||
2122 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
2123 | rm -f conftest.sed | ||
2124 | |||
2125 | # expand $ac_aux_dir to an absolute path | ||
2126 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2127 | |||
2128 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
2129 | # Use eval to expand $SHELL | ||
2130 | if eval "$MISSING --run true"; then | ||
2131 | am_missing_run="$MISSING --run " | ||
2132 | else | ||
2133 | am_missing_run= | ||
2134 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
2135 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2136 | fi | ||
2137 | |||
2138 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | ||
2139 | # Keeping the `.' argument allows $(mkdir_p) to be used without | ||
2140 | # argument. Indeed, we sometimes output rules like | ||
2141 | # $(mkdir_p) $(somedir) | ||
2142 | # where $(somedir) is conditionally defined. | ||
2143 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | ||
2144 | # expensive solution, as it forces Make to start a sub-shell.) | ||
2145 | mkdir_p='mkdir -p -- .' | ||
2146 | else | ||
2147 | # On NextStep and OpenStep, the `mkdir' command does not | ||
2148 | # recognize any option. It will interpret all options as | ||
2149 | # directories to create, and then abort because `.' already | ||
2150 | # exists. | ||
2151 | for d in ./-p ./--version; | ||
2152 | do | ||
2153 | test -d $d && rmdir $d | ||
2154 | done | ||
2155 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | ||
2156 | if test -f "$ac_aux_dir/mkinstalldirs"; then | ||
2157 | mkdir_p='$(mkinstalldirs)' | ||
2158 | else | ||
2159 | mkdir_p='$(install_sh) -d' | ||
2160 | fi | ||
2161 | fi | ||
2162 | |||
2163 | for ac_prog in gawk mawk nawk awk | ||
2164 | do | ||
2165 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2166 | set dummy $ac_prog; ac_word=$2 | ||
2167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2169 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2171 | else | ||
2172 | if test -n "$AWK"; then | ||
2173 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2174 | else | ||
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2176 | for as_dir in $PATH | ||
2177 | do | ||
2178 | IFS=$as_save_IFS | ||
2179 | test -z "$as_dir" && as_dir=. | ||
2180 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2182 | ac_cv_prog_AWK="$ac_prog" | ||
2183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2184 | break 2 | ||
2185 | fi | ||
2186 | done | ||
2187 | done | ||
2188 | IFS=$as_save_IFS | ||
2189 | |||
2190 | fi | ||
2191 | fi | ||
2192 | AWK=$ac_cv_prog_AWK | ||
2193 | if test -n "$AWK"; then | ||
2194 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2195 | echo "${ECHO_T}$AWK" >&6; } | ||
2196 | else | ||
2197 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2198 | echo "${ECHO_T}no" >&6; } | ||
2199 | fi | ||
2200 | |||
2201 | |||
2202 | test -n "$AWK" && break | ||
2203 | done | ||
2204 | |||
2205 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2206 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
2207 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2208 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
2209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2210 | else | ||
2211 | cat >conftest.make <<\_ACEOF | ||
2212 | SHELL = /bin/sh | ||
2213 | all: | ||
2214 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2215 | _ACEOF | ||
2216 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2217 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2218 | *@@@%%%=?*=@@@%%%*) | ||
2219 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2220 | *) | ||
2221 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2222 | esac | ||
2223 | rm -f conftest.make | ||
2224 | fi | ||
2225 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2226 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2227 | echo "${ECHO_T}yes" >&6; } | ||
2228 | SET_MAKE= | ||
2229 | else | ||
2230 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2231 | echo "${ECHO_T}no" >&6; } | ||
2232 | SET_MAKE="MAKE=${MAKE-make}" | ||
2233 | fi | ||
2234 | |||
2235 | rm -rf .tst 2>/dev/null | ||
2236 | mkdir .tst 2>/dev/null | ||
2237 | if test -d .tst; then | ||
2238 | am__leading_dot=. | ||
2239 | else | ||
2240 | am__leading_dot=_ | ||
2241 | fi | ||
2242 | rmdir .tst 2>/dev/null | ||
2243 | |||
2244 | # test to see if srcdir already configured | ||
2245 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
2246 | test -f $srcdir/config.status; then | ||
2247 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2248 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2249 | { (exit 1); exit 1; }; } | ||
2250 | fi | ||
2251 | |||
2252 | # test whether we have cygpath | ||
2253 | if test -z "$CYGPATH_W"; then | ||
2254 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2255 | CYGPATH_W='cygpath -w' | ||
2256 | else | ||
2257 | CYGPATH_W=echo | ||
2258 | fi | ||
2259 | fi | ||
2260 | |||
2261 | |||
2262 | # Define the identity of the package. | ||
2263 | PACKAGE=libltdl | ||
2264 | VERSION=1.2 | ||
2265 | |||
2266 | |||
2267 | # Some tools Automake needs. | ||
2268 | |||
2269 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2270 | |||
2271 | |||
2272 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2273 | |||
2274 | |||
2275 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2276 | |||
2277 | |||
2278 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2279 | |||
2280 | |||
2281 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2282 | |||
2283 | |||
2284 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2285 | |||
2286 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
2287 | |||
2288 | # Installed binaries are usually stripped using `strip' when the user | ||
2289 | # run `make install-strip'. However `strip' might not be the right | ||
2290 | # tool to use in cross-compilation environments, therefore Automake | ||
2291 | # will honor the `STRIP' environment variable to overrule this program. | ||
2292 | if test "$cross_compiling" != no; then | ||
2293 | if test -n "$ac_tool_prefix"; then | ||
2294 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2295 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2298 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2300 | else | ||
2301 | if test -n "$STRIP"; then | ||
2302 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2303 | else | ||
2304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2305 | for as_dir in $PATH | ||
2306 | do | ||
2307 | IFS=$as_save_IFS | ||
2308 | test -z "$as_dir" && as_dir=. | ||
2309 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2311 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2313 | break 2 | ||
2314 | fi | ||
2315 | done | ||
2316 | done | ||
2317 | IFS=$as_save_IFS | ||
2318 | |||
2319 | fi | ||
2320 | fi | ||
2321 | STRIP=$ac_cv_prog_STRIP | ||
2322 | if test -n "$STRIP"; then | ||
2323 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2324 | echo "${ECHO_T}$STRIP" >&6; } | ||
2325 | else | ||
2326 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2327 | echo "${ECHO_T}no" >&6; } | ||
2328 | fi | ||
2329 | |||
2330 | |||
2331 | fi | ||
2332 | if test -z "$ac_cv_prog_STRIP"; then | ||
2333 | ac_ct_STRIP=$STRIP | ||
2334 | # Extract the first word of "strip", so it can be a program name with args. | ||
2335 | set dummy strip; ac_word=$2 | ||
2336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2338 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2340 | else | ||
2341 | if test -n "$ac_ct_STRIP"; then | ||
2342 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2343 | else | ||
2344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2345 | for as_dir in $PATH | ||
2346 | do | ||
2347 | IFS=$as_save_IFS | ||
2348 | test -z "$as_dir" && as_dir=. | ||
2349 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2351 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2353 | break 2 | ||
2354 | fi | ||
2355 | done | ||
2356 | done | ||
2357 | IFS=$as_save_IFS | ||
2358 | |||
2359 | fi | ||
2360 | fi | ||
2361 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2362 | if test -n "$ac_ct_STRIP"; then | ||
2363 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2364 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2365 | else | ||
2366 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2367 | echo "${ECHO_T}no" >&6; } | ||
2368 | fi | ||
2369 | |||
2370 | if test "x$ac_ct_STRIP" = x; then | ||
2371 | STRIP=":" | ||
2372 | else | ||
2373 | case $cross_compiling:$ac_tool_warned in | ||
2374 | yes:) | ||
2375 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2376 | whose name does not start with the host triplet. If you think this | ||
2377 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2378 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2379 | whose name does not start with the host triplet. If you think this | ||
2380 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2381 | ac_tool_warned=yes ;; | ||
2382 | esac | ||
2383 | STRIP=$ac_ct_STRIP | ||
2384 | fi | ||
2385 | else | ||
2386 | STRIP="$ac_cv_prog_STRIP" | ||
2387 | fi | ||
2388 | |||
2389 | fi | ||
2390 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
2391 | |||
2392 | # We need awk for the "check" target. The system "awk" is bad on | ||
2393 | # some platforms. | ||
2394 | |||
2395 | |||
2396 | |||
2397 | ac_config_headers="$ac_config_headers config.h:config-h.in" | ||
2398 | |||
2399 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | ||
2400 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | ||
2401 | # Check whether --enable-maintainer-mode was given. | ||
2402 | if test "${enable_maintainer_mode+set}" = set; then | ||
2403 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | ||
2404 | else | ||
2405 | USE_MAINTAINER_MODE=no | ||
2406 | fi | ||
2407 | |||
2408 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | ||
2409 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | ||
2410 | |||
2411 | |||
2412 | if test $USE_MAINTAINER_MODE = yes; then | ||
2413 | MAINTAINER_MODE_TRUE= | ||
2414 | MAINTAINER_MODE_FALSE='#' | ||
2415 | else | ||
2416 | MAINTAINER_MODE_TRUE='#' | ||
2417 | MAINTAINER_MODE_FALSE= | ||
2418 | fi | ||
2419 | |||
2420 | MAINT=$MAINTAINER_MODE_TRUE | ||
2421 | |||
2422 | |||
2423 | |||
2424 | |||
2425 | ## ------------------ ## | ||
2426 | ## C compiler checks. ## | ||
2427 | ## ------------------ ## | ||
2428 | ac_ext=c | ||
2429 | ac_cpp='$CPP $CPPFLAGS' | ||
2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2433 | if test -n "$ac_tool_prefix"; then | ||
2434 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2435 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2436 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2438 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2440 | else | ||
2441 | if test -n "$CC"; then | ||
2442 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2443 | else | ||
2444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2445 | for as_dir in $PATH | ||
2446 | do | ||
2447 | IFS=$as_save_IFS | ||
2448 | test -z "$as_dir" && as_dir=. | ||
2449 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2451 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2453 | break 2 | ||
2454 | fi | ||
2455 | done | ||
2456 | done | ||
2457 | IFS=$as_save_IFS | ||
2458 | |||
2459 | fi | ||
2460 | fi | ||
2461 | CC=$ac_cv_prog_CC | ||
2462 | if test -n "$CC"; then | ||
2463 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2464 | echo "${ECHO_T}$CC" >&6; } | ||
2465 | else | ||
2466 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2467 | echo "${ECHO_T}no" >&6; } | ||
2468 | fi | ||
2469 | |||
2470 | |||
2471 | fi | ||
2472 | if test -z "$ac_cv_prog_CC"; then | ||
2473 | ac_ct_CC=$CC | ||
2474 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2475 | set dummy gcc; ac_word=$2 | ||
2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2480 | else | ||
2481 | if test -n "$ac_ct_CC"; then | ||
2482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2483 | else | ||
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2485 | for as_dir in $PATH | ||
2486 | do | ||
2487 | IFS=$as_save_IFS | ||
2488 | test -z "$as_dir" && as_dir=. | ||
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2491 | ac_cv_prog_ac_ct_CC="gcc" | ||
2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2493 | break 2 | ||
2494 | fi | ||
2495 | done | ||
2496 | done | ||
2497 | IFS=$as_save_IFS | ||
2498 | |||
2499 | fi | ||
2500 | fi | ||
2501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2502 | if test -n "$ac_ct_CC"; then | ||
2503 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2504 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2505 | else | ||
2506 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2507 | echo "${ECHO_T}no" >&6; } | ||
2508 | fi | ||
2509 | |||
2510 | if test "x$ac_ct_CC" = x; then | ||
2511 | CC="" | ||
2512 | else | ||
2513 | case $cross_compiling:$ac_tool_warned in | ||
2514 | yes:) | ||
2515 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2516 | whose name does not start with the host triplet. If you think this | ||
2517 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2518 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2519 | whose name does not start with the host triplet. If you think this | ||
2520 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2521 | ac_tool_warned=yes ;; | ||
2522 | esac | ||
2523 | CC=$ac_ct_CC | ||
2524 | fi | ||
2525 | else | ||
2526 | CC="$ac_cv_prog_CC" | ||
2527 | fi | ||
2528 | |||
2529 | if test -z "$CC"; then | ||
2530 | if test -n "$ac_tool_prefix"; then | ||
2531 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2532 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2535 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2537 | else | ||
2538 | if test -n "$CC"; then | ||
2539 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2540 | else | ||
2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2542 | for as_dir in $PATH | ||
2543 | do | ||
2544 | IFS=$as_save_IFS | ||
2545 | test -z "$as_dir" && as_dir=. | ||
2546 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2548 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2550 | break 2 | ||
2551 | fi | ||
2552 | done | ||
2553 | done | ||
2554 | IFS=$as_save_IFS | ||
2555 | |||
2556 | fi | ||
2557 | fi | ||
2558 | CC=$ac_cv_prog_CC | ||
2559 | if test -n "$CC"; then | ||
2560 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2561 | echo "${ECHO_T}$CC" >&6; } | ||
2562 | else | ||
2563 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2564 | echo "${ECHO_T}no" >&6; } | ||
2565 | fi | ||
2566 | |||
2567 | |||
2568 | fi | ||
2569 | fi | ||
2570 | if test -z "$CC"; then | ||
2571 | # Extract the first word of "cc", so it can be a program name with args. | ||
2572 | set dummy cc; ac_word=$2 | ||
2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2575 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2577 | else | ||
2578 | if test -n "$CC"; then | ||
2579 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2580 | else | ||
2581 | ac_prog_rejected=no | ||
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2583 | for as_dir in $PATH | ||
2584 | do | ||
2585 | IFS=$as_save_IFS | ||
2586 | test -z "$as_dir" && as_dir=. | ||
2587 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2589 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2590 | ac_prog_rejected=yes | ||
2591 | continue | ||
2592 | fi | ||
2593 | ac_cv_prog_CC="cc" | ||
2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2595 | break 2 | ||
2596 | fi | ||
2597 | done | ||
2598 | done | ||
2599 | IFS=$as_save_IFS | ||
2600 | |||
2601 | if test $ac_prog_rejected = yes; then | ||
2602 | # We found a bogon in the path, so make sure we never use it. | ||
2603 | set dummy $ac_cv_prog_CC | ||
2604 | shift | ||
2605 | if test $# != 0; then | ||
2606 | # We chose a different compiler from the bogus one. | ||
2607 | # However, it has the same basename, so the bogon will be chosen | ||
2608 | # first if we set CC to just the basename; use the full file name. | ||
2609 | shift | ||
2610 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2611 | fi | ||
2612 | fi | ||
2613 | fi | ||
2614 | fi | ||
2615 | CC=$ac_cv_prog_CC | ||
2616 | if test -n "$CC"; then | ||
2617 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2618 | echo "${ECHO_T}$CC" >&6; } | ||
2619 | else | ||
2620 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2621 | echo "${ECHO_T}no" >&6; } | ||
2622 | fi | ||
2623 | |||
2624 | |||
2625 | fi | ||
2626 | if test -z "$CC"; then | ||
2627 | if test -n "$ac_tool_prefix"; then | ||
2628 | for ac_prog in cl.exe | ||
2629 | do | ||
2630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2634 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2636 | else | ||
2637 | if test -n "$CC"; then | ||
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2639 | else | ||
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2641 | for as_dir in $PATH | ||
2642 | do | ||
2643 | IFS=$as_save_IFS | ||
2644 | test -z "$as_dir" && as_dir=. | ||
2645 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2647 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2649 | break 2 | ||
2650 | fi | ||
2651 | done | ||
2652 | done | ||
2653 | IFS=$as_save_IFS | ||
2654 | |||
2655 | fi | ||
2656 | fi | ||
2657 | CC=$ac_cv_prog_CC | ||
2658 | if test -n "$CC"; then | ||
2659 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2660 | echo "${ECHO_T}$CC" >&6; } | ||
2661 | else | ||
2662 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2663 | echo "${ECHO_T}no" >&6; } | ||
2664 | fi | ||
2665 | |||
2666 | |||
2667 | test -n "$CC" && break | ||
2668 | done | ||
2669 | fi | ||
2670 | if test -z "$CC"; then | ||
2671 | ac_ct_CC=$CC | ||
2672 | for ac_prog in cl.exe | ||
2673 | do | ||
2674 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2675 | set dummy $ac_prog; ac_word=$2 | ||
2676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2678 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2680 | else | ||
2681 | if test -n "$ac_ct_CC"; then | ||
2682 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2683 | else | ||
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2685 | for as_dir in $PATH | ||
2686 | do | ||
2687 | IFS=$as_save_IFS | ||
2688 | test -z "$as_dir" && as_dir=. | ||
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2691 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2693 | break 2 | ||
2694 | fi | ||
2695 | done | ||
2696 | done | ||
2697 | IFS=$as_save_IFS | ||
2698 | |||
2699 | fi | ||
2700 | fi | ||
2701 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2702 | if test -n "$ac_ct_CC"; then | ||
2703 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2704 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2705 | else | ||
2706 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2707 | echo "${ECHO_T}no" >&6; } | ||
2708 | fi | ||
2709 | |||
2710 | |||
2711 | test -n "$ac_ct_CC" && break | ||
2712 | done | ||
2713 | |||
2714 | if test "x$ac_ct_CC" = x; then | ||
2715 | CC="" | ||
2716 | else | ||
2717 | case $cross_compiling:$ac_tool_warned in | ||
2718 | yes:) | ||
2719 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2720 | whose name does not start with the host triplet. If you think this | ||
2721 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2722 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2723 | whose name does not start with the host triplet. If you think this | ||
2724 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2725 | ac_tool_warned=yes ;; | ||
2726 | esac | ||
2727 | CC=$ac_ct_CC | ||
2728 | fi | ||
2729 | fi | ||
2730 | |||
2731 | fi | ||
2732 | |||
2733 | |||
2734 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2735 | See \`config.log' for more details." >&5 | ||
2736 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2737 | See \`config.log' for more details." >&2;} | ||
2738 | { (exit 1); exit 1; }; } | ||
2739 | |||
2740 | # Provide some information about the compiler. | ||
2741 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2742 | ac_compiler=`set X $ac_compile; echo $2` | ||
2743 | { (ac_try="$ac_compiler --version >&5" | ||
2744 | case "(($ac_try" in | ||
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2746 | *) ac_try_echo=$ac_try;; | ||
2747 | esac | ||
2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2749 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2750 | ac_status=$? | ||
2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2752 | (exit $ac_status); } | ||
2753 | { (ac_try="$ac_compiler -v >&5" | ||
2754 | case "(($ac_try" in | ||
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2756 | *) ac_try_echo=$ac_try;; | ||
2757 | esac | ||
2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2759 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2760 | ac_status=$? | ||
2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2762 | (exit $ac_status); } | ||
2763 | { (ac_try="$ac_compiler -V >&5" | ||
2764 | case "(($ac_try" in | ||
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2766 | *) ac_try_echo=$ac_try;; | ||
2767 | esac | ||
2768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2769 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2770 | ac_status=$? | ||
2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2772 | (exit $ac_status); } | ||
2773 | |||
2774 | cat >conftest.$ac_ext <<_ACEOF | ||
2775 | /* confdefs.h. */ | ||
2776 | _ACEOF | ||
2777 | cat confdefs.h >>conftest.$ac_ext | ||
2778 | cat >>conftest.$ac_ext <<_ACEOF | ||
2779 | /* end confdefs.h. */ | ||
2780 | |||
2781 | int | ||
2782 | main () | ||
2783 | { | ||
2784 | |||
2785 | ; | ||
2786 | return 0; | ||
2787 | } | ||
2788 | _ACEOF | ||
2789 | ac_clean_files_save=$ac_clean_files | ||
2790 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2791 | # Try to create an executable without -o first, disregard a.out. | ||
2792 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2793 | # of exeext. | ||
2794 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2795 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2796 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2797 | # | ||
2798 | # List of possible output files, starting from the most likely. | ||
2799 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2800 | # only as a last resort. b.out is created by i960 compilers. | ||
2801 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2802 | # | ||
2803 | # The IRIX 6 linker writes into existing files which may not be | ||
2804 | # executable, retaining their permissions. Remove them first so a | ||
2805 | # subsequent execution test works. | ||
2806 | ac_rmfiles= | ||
2807 | for ac_file in $ac_files | ||
2808 | do | ||
2809 | case $ac_file in | ||
2810 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2811 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2812 | esac | ||
2813 | done | ||
2814 | rm -f $ac_rmfiles | ||
2815 | |||
2816 | if { (ac_try="$ac_link_default" | ||
2817 | case "(($ac_try" in | ||
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2819 | *) ac_try_echo=$ac_try;; | ||
2820 | esac | ||
2821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2822 | (eval "$ac_link_default") 2>&5 | ||
2823 | ac_status=$? | ||
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2825 | (exit $ac_status); }; then | ||
2826 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2827 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2828 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2829 | # so that the user can short-circuit this test for compilers unknown to | ||
2830 | # Autoconf. | ||
2831 | for ac_file in $ac_files '' | ||
2832 | do | ||
2833 | test -f "$ac_file" || continue | ||
2834 | case $ac_file in | ||
2835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2836 | ;; | ||
2837 | [ab].out ) | ||
2838 | # We found the default executable, but exeext='' is most | ||
2839 | # certainly right. | ||
2840 | break;; | ||
2841 | *.* ) | ||
2842 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2843 | then :; else | ||
2844 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2845 | fi | ||
2846 | # We set ac_cv_exeext here because the later test for it is not | ||
2847 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2848 | # argument, so we may need to know it at that point already. | ||
2849 | # Even if this section looks crufty: it has the advantage of | ||
2850 | # actually working. | ||
2851 | break;; | ||
2852 | * ) | ||
2853 | break;; | ||
2854 | esac | ||
2855 | done | ||
2856 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2857 | |||
2858 | else | ||
2859 | ac_file='' | ||
2860 | fi | ||
2861 | |||
2862 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2863 | echo "${ECHO_T}$ac_file" >&6; } | ||
2864 | if test -z "$ac_file"; then | ||
2865 | echo "$as_me: failed program was:" >&5 | ||
2866 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2867 | |||
2868 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2869 | See \`config.log' for more details." >&5 | ||
2870 | echo "$as_me: error: C compiler cannot create executables | ||
2871 | See \`config.log' for more details." >&2;} | ||
2872 | { (exit 77); exit 77; }; } | ||
2873 | fi | ||
2874 | |||
2875 | ac_exeext=$ac_cv_exeext | ||
2876 | |||
2877 | # Check that the compiler produces executables we can run. If not, either | ||
2878 | # the compiler is broken, or we cross compile. | ||
2879 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2880 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2881 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2882 | # If not cross compiling, check that we can run a simple program. | ||
2883 | if test "$cross_compiling" != yes; then | ||
2884 | if { ac_try='./$ac_file' | ||
2885 | { (case "(($ac_try" in | ||
2886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2887 | *) ac_try_echo=$ac_try;; | ||
2888 | esac | ||
2889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2890 | (eval "$ac_try") 2>&5 | ||
2891 | ac_status=$? | ||
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2893 | (exit $ac_status); }; }; then | ||
2894 | cross_compiling=no | ||
2895 | else | ||
2896 | if test "$cross_compiling" = maybe; then | ||
2897 | cross_compiling=yes | ||
2898 | else | ||
2899 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2900 | If you meant to cross compile, use \`--host'. | ||
2901 | See \`config.log' for more details." >&5 | ||
2902 | echo "$as_me: error: cannot run C compiled programs. | ||
2903 | If you meant to cross compile, use \`--host'. | ||
2904 | See \`config.log' for more details." >&2;} | ||
2905 | { (exit 1); exit 1; }; } | ||
2906 | fi | ||
2907 | fi | ||
2908 | fi | ||
2909 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2910 | echo "${ECHO_T}yes" >&6; } | ||
2911 | |||
2912 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2913 | ac_clean_files=$ac_clean_files_save | ||
2914 | # Check that the compiler produces executables we can run. If not, either | ||
2915 | # the compiler is broken, or we cross compile. | ||
2916 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2917 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2918 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2919 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2920 | |||
2921 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2922 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2923 | if { (ac_try="$ac_link" | ||
2924 | case "(($ac_try" in | ||
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2926 | *) ac_try_echo=$ac_try;; | ||
2927 | esac | ||
2928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2929 | (eval "$ac_link") 2>&5 | ||
2930 | ac_status=$? | ||
2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2932 | (exit $ac_status); }; then | ||
2933 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2934 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2935 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2936 | # `rm'. | ||
2937 | for ac_file in conftest.exe conftest conftest.*; do | ||
2938 | test -f "$ac_file" || continue | ||
2939 | case $ac_file in | ||
2940 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2941 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2942 | break;; | ||
2943 | * ) break;; | ||
2944 | esac | ||
2945 | done | ||
2946 | else | ||
2947 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2948 | See \`config.log' for more details." >&5 | ||
2949 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2950 | See \`config.log' for more details." >&2;} | ||
2951 | { (exit 1); exit 1; }; } | ||
2952 | fi | ||
2953 | |||
2954 | rm -f conftest$ac_cv_exeext | ||
2955 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2956 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
2957 | |||
2958 | rm -f conftest.$ac_ext | ||
2959 | EXEEXT=$ac_cv_exeext | ||
2960 | ac_exeext=$EXEEXT | ||
2961 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2962 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
2963 | if test "${ac_cv_objext+set}" = set; then | ||
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2965 | else | ||
2966 | cat >conftest.$ac_ext <<_ACEOF | ||
2967 | /* confdefs.h. */ | ||
2968 | _ACEOF | ||
2969 | cat confdefs.h >>conftest.$ac_ext | ||
2970 | cat >>conftest.$ac_ext <<_ACEOF | ||
2971 | /* end confdefs.h. */ | ||
2972 | |||
2973 | int | ||
2974 | main () | ||
2975 | { | ||
2976 | |||
2977 | ; | ||
2978 | return 0; | ||
2979 | } | ||
2980 | _ACEOF | ||
2981 | rm -f conftest.o conftest.obj | ||
2982 | if { (ac_try="$ac_compile" | ||
2983 | case "(($ac_try" in | ||
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2988 | (eval "$ac_compile") 2>&5 | ||
2989 | ac_status=$? | ||
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2991 | (exit $ac_status); }; then | ||
2992 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2993 | test -f "$ac_file" || continue; | ||
2994 | case $ac_file in | ||
2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
2996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2997 | break;; | ||
2998 | esac | ||
2999 | done | ||
3000 | else | ||
3001 | echo "$as_me: failed program was:" >&5 | ||
3002 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3003 | |||
3004 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
3005 | See \`config.log' for more details." >&5 | ||
3006 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
3007 | See \`config.log' for more details." >&2;} | ||
3008 | { (exit 1); exit 1; }; } | ||
3009 | fi | ||
3010 | |||
3011 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3012 | fi | ||
3013 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
3014 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
3015 | OBJEXT=$ac_cv_objext | ||
3016 | ac_objext=$OBJEXT | ||
3017 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
3018 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
3019 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
3020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3021 | else | ||
3022 | cat >conftest.$ac_ext <<_ACEOF | ||
3023 | /* confdefs.h. */ | ||
3024 | _ACEOF | ||
3025 | cat confdefs.h >>conftest.$ac_ext | ||
3026 | cat >>conftest.$ac_ext <<_ACEOF | ||
3027 | /* end confdefs.h. */ | ||
3028 | |||
3029 | int | ||
3030 | main () | ||
3031 | { | ||
3032 | #ifndef __GNUC__ | ||
3033 | choke me | ||
3034 | #endif | ||
3035 | |||
3036 | ; | ||
3037 | return 0; | ||
3038 | } | ||
3039 | _ACEOF | ||
3040 | rm -f conftest.$ac_objext | ||
3041 | if { (ac_try="$ac_compile" | ||
3042 | case "(($ac_try" in | ||
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3044 | *) ac_try_echo=$ac_try;; | ||
3045 | esac | ||
3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3047 | (eval "$ac_compile") 2>conftest.er1 | ||
3048 | ac_status=$? | ||
3049 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3050 | rm -f conftest.er1 | ||
3051 | cat conftest.err >&5 | ||
3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3053 | (exit $ac_status); } && | ||
3054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3055 | { (case "(($ac_try" in | ||
3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3057 | *) ac_try_echo=$ac_try;; | ||
3058 | esac | ||
3059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3060 | (eval "$ac_try") 2>&5 | ||
3061 | ac_status=$? | ||
3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3063 | (exit $ac_status); }; } && | ||
3064 | { ac_try='test -s conftest.$ac_objext' | ||
3065 | { (case "(($ac_try" in | ||
3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3067 | *) ac_try_echo=$ac_try;; | ||
3068 | esac | ||
3069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3070 | (eval "$ac_try") 2>&5 | ||
3071 | ac_status=$? | ||
3072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3073 | (exit $ac_status); }; }; then | ||
3074 | ac_compiler_gnu=yes | ||
3075 | else | ||
3076 | echo "$as_me: failed program was:" >&5 | ||
3077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3078 | |||
3079 | ac_compiler_gnu=no | ||
3080 | fi | ||
3081 | |||
3082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3084 | |||
3085 | fi | ||
3086 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
3087 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
3088 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
3089 | ac_test_CFLAGS=${CFLAGS+set} | ||
3090 | ac_save_CFLAGS=$CFLAGS | ||
3091 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
3092 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
3093 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3095 | else | ||
3096 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3097 | ac_c_werror_flag=yes | ||
3098 | ac_cv_prog_cc_g=no | ||
3099 | CFLAGS="-g" | ||
3100 | cat >conftest.$ac_ext <<_ACEOF | ||
3101 | /* confdefs.h. */ | ||
3102 | _ACEOF | ||
3103 | cat confdefs.h >>conftest.$ac_ext | ||
3104 | cat >>conftest.$ac_ext <<_ACEOF | ||
3105 | /* end confdefs.h. */ | ||
3106 | |||
3107 | int | ||
3108 | main () | ||
3109 | { | ||
3110 | |||
3111 | ; | ||
3112 | return 0; | ||
3113 | } | ||
3114 | _ACEOF | ||
3115 | rm -f conftest.$ac_objext | ||
3116 | if { (ac_try="$ac_compile" | ||
3117 | case "(($ac_try" in | ||
3118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3119 | *) ac_try_echo=$ac_try;; | ||
3120 | esac | ||
3121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3122 | (eval "$ac_compile") 2>conftest.er1 | ||
3123 | ac_status=$? | ||
3124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3125 | rm -f conftest.er1 | ||
3126 | cat conftest.err >&5 | ||
3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3128 | (exit $ac_status); } && | ||
3129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3130 | { (case "(($ac_try" in | ||
3131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3132 | *) ac_try_echo=$ac_try;; | ||
3133 | esac | ||
3134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3135 | (eval "$ac_try") 2>&5 | ||
3136 | ac_status=$? | ||
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3138 | (exit $ac_status); }; } && | ||
3139 | { ac_try='test -s conftest.$ac_objext' | ||
3140 | { (case "(($ac_try" in | ||
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3142 | *) ac_try_echo=$ac_try;; | ||
3143 | esac | ||
3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3145 | (eval "$ac_try") 2>&5 | ||
3146 | ac_status=$? | ||
3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3148 | (exit $ac_status); }; }; then | ||
3149 | ac_cv_prog_cc_g=yes | ||
3150 | else | ||
3151 | echo "$as_me: failed program was:" >&5 | ||
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3153 | |||
3154 | CFLAGS="" | ||
3155 | cat >conftest.$ac_ext <<_ACEOF | ||
3156 | /* confdefs.h. */ | ||
3157 | _ACEOF | ||
3158 | cat confdefs.h >>conftest.$ac_ext | ||
3159 | cat >>conftest.$ac_ext <<_ACEOF | ||
3160 | /* end confdefs.h. */ | ||
3161 | |||
3162 | int | ||
3163 | main () | ||
3164 | { | ||
3165 | |||
3166 | ; | ||
3167 | return 0; | ||
3168 | } | ||
3169 | _ACEOF | ||
3170 | rm -f conftest.$ac_objext | ||
3171 | if { (ac_try="$ac_compile" | ||
3172 | case "(($ac_try" in | ||
3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3174 | *) ac_try_echo=$ac_try;; | ||
3175 | esac | ||
3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3177 | (eval "$ac_compile") 2>conftest.er1 | ||
3178 | ac_status=$? | ||
3179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3180 | rm -f conftest.er1 | ||
3181 | cat conftest.err >&5 | ||
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3183 | (exit $ac_status); } && | ||
3184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3185 | { (case "(($ac_try" in | ||
3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3187 | *) ac_try_echo=$ac_try;; | ||
3188 | esac | ||
3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3190 | (eval "$ac_try") 2>&5 | ||
3191 | ac_status=$? | ||
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3193 | (exit $ac_status); }; } && | ||
3194 | { ac_try='test -s conftest.$ac_objext' | ||
3195 | { (case "(($ac_try" in | ||
3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3197 | *) ac_try_echo=$ac_try;; | ||
3198 | esac | ||
3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3200 | (eval "$ac_try") 2>&5 | ||
3201 | ac_status=$? | ||
3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3203 | (exit $ac_status); }; }; then | ||
3204 | : | ||
3205 | else | ||
3206 | echo "$as_me: failed program was:" >&5 | ||
3207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3208 | |||
3209 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3210 | CFLAGS="-g" | ||
3211 | cat >conftest.$ac_ext <<_ACEOF | ||
3212 | /* confdefs.h. */ | ||
3213 | _ACEOF | ||
3214 | cat confdefs.h >>conftest.$ac_ext | ||
3215 | cat >>conftest.$ac_ext <<_ACEOF | ||
3216 | /* end confdefs.h. */ | ||
3217 | |||
3218 | int | ||
3219 | main () | ||
3220 | { | ||
3221 | |||
3222 | ; | ||
3223 | return 0; | ||
3224 | } | ||
3225 | _ACEOF | ||
3226 | rm -f conftest.$ac_objext | ||
3227 | if { (ac_try="$ac_compile" | ||
3228 | case "(($ac_try" in | ||
3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3230 | *) ac_try_echo=$ac_try;; | ||
3231 | esac | ||
3232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3233 | (eval "$ac_compile") 2>conftest.er1 | ||
3234 | ac_status=$? | ||
3235 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3236 | rm -f conftest.er1 | ||
3237 | cat conftest.err >&5 | ||
3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3239 | (exit $ac_status); } && | ||
3240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3241 | { (case "(($ac_try" in | ||
3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3243 | *) ac_try_echo=$ac_try;; | ||
3244 | esac | ||
3245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3246 | (eval "$ac_try") 2>&5 | ||
3247 | ac_status=$? | ||
3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3249 | (exit $ac_status); }; } && | ||
3250 | { ac_try='test -s conftest.$ac_objext' | ||
3251 | { (case "(($ac_try" in | ||
3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3253 | *) ac_try_echo=$ac_try;; | ||
3254 | esac | ||
3255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3256 | (eval "$ac_try") 2>&5 | ||
3257 | ac_status=$? | ||
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3259 | (exit $ac_status); }; }; then | ||
3260 | ac_cv_prog_cc_g=yes | ||
3261 | else | ||
3262 | echo "$as_me: failed program was:" >&5 | ||
3263 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3264 | |||
3265 | |||
3266 | fi | ||
3267 | |||
3268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3269 | fi | ||
3270 | |||
3271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3272 | fi | ||
3273 | |||
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3275 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3276 | fi | ||
3277 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3278 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3279 | if test "$ac_test_CFLAGS" = set; then | ||
3280 | CFLAGS=$ac_save_CFLAGS | ||
3281 | elif test $ac_cv_prog_cc_g = yes; then | ||
3282 | if test "$GCC" = yes; then | ||
3283 | CFLAGS="-g -O2" | ||
3284 | else | ||
3285 | CFLAGS="-g" | ||
3286 | fi | ||
3287 | else | ||
3288 | if test "$GCC" = yes; then | ||
3289 | CFLAGS="-O2" | ||
3290 | else | ||
3291 | CFLAGS= | ||
3292 | fi | ||
3293 | fi | ||
3294 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3295 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3296 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3298 | else | ||
3299 | ac_cv_prog_cc_c89=no | ||
3300 | ac_save_CC=$CC | ||
3301 | cat >conftest.$ac_ext <<_ACEOF | ||
3302 | /* confdefs.h. */ | ||
3303 | _ACEOF | ||
3304 | cat confdefs.h >>conftest.$ac_ext | ||
3305 | cat >>conftest.$ac_ext <<_ACEOF | ||
3306 | /* end confdefs.h. */ | ||
3307 | #include <stdarg.h> | ||
3308 | #include <stdio.h> | ||
3309 | #include <sys/types.h> | ||
3310 | #include <sys/stat.h> | ||
3311 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3312 | struct buf { int x; }; | ||
3313 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3314 | static char *e (p, i) | ||
3315 | char **p; | ||
3316 | int i; | ||
3317 | { | ||
3318 | return p[i]; | ||
3319 | } | ||
3320 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3321 | { | ||
3322 | char *s; | ||
3323 | va_list v; | ||
3324 | va_start (v,p); | ||
3325 | s = g (p, va_arg (v,int)); | ||
3326 | va_end (v); | ||
3327 | return s; | ||
3328 | } | ||
3329 | |||
3330 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3331 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3332 | These don't provoke an error unfortunately, instead are silently treated | ||
3333 | as 'x'. The following induces an error, until -std is added to get | ||
3334 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3335 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3336 | that's true only with -std. */ | ||
3337 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3338 | |||
3339 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3340 | inside strings and character constants. */ | ||
3341 | #define FOO(x) 'x' | ||
3342 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3343 | |||
3344 | int test (int i, double x); | ||
3345 | struct s1 {int (*f) (int a);}; | ||
3346 | struct s2 {int (*f) (double a);}; | ||
3347 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3348 | int argc; | ||
3349 | char **argv; | ||
3350 | int | ||
3351 | main () | ||
3352 | { | ||
3353 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3354 | ; | ||
3355 | return 0; | ||
3356 | } | ||
3357 | _ACEOF | ||
3358 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3359 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3360 | do | ||
3361 | CC="$ac_save_CC $ac_arg" | ||
3362 | rm -f conftest.$ac_objext | ||
3363 | if { (ac_try="$ac_compile" | ||
3364 | case "(($ac_try" in | ||
3365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3366 | *) ac_try_echo=$ac_try;; | ||
3367 | esac | ||
3368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3369 | (eval "$ac_compile") 2>conftest.er1 | ||
3370 | ac_status=$? | ||
3371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3372 | rm -f conftest.er1 | ||
3373 | cat conftest.err >&5 | ||
3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3375 | (exit $ac_status); } && | ||
3376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3377 | { (case "(($ac_try" in | ||
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3379 | *) ac_try_echo=$ac_try;; | ||
3380 | esac | ||
3381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3382 | (eval "$ac_try") 2>&5 | ||
3383 | ac_status=$? | ||
3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3385 | (exit $ac_status); }; } && | ||
3386 | { ac_try='test -s conftest.$ac_objext' | ||
3387 | { (case "(($ac_try" in | ||
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3389 | *) ac_try_echo=$ac_try;; | ||
3390 | esac | ||
3391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3392 | (eval "$ac_try") 2>&5 | ||
3393 | ac_status=$? | ||
3394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3395 | (exit $ac_status); }; }; then | ||
3396 | ac_cv_prog_cc_c89=$ac_arg | ||
3397 | else | ||
3398 | echo "$as_me: failed program was:" >&5 | ||
3399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3400 | |||
3401 | |||
3402 | fi | ||
3403 | |||
3404 | rm -f core conftest.err conftest.$ac_objext | ||
3405 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3406 | done | ||
3407 | rm -f conftest.$ac_ext | ||
3408 | CC=$ac_save_CC | ||
3409 | |||
3410 | fi | ||
3411 | # AC_CACHE_VAL | ||
3412 | case "x$ac_cv_prog_cc_c89" in | ||
3413 | x) | ||
3414 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3415 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3416 | xno) | ||
3417 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3418 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3419 | *) | ||
3420 | CC="$CC $ac_cv_prog_cc_c89" | ||
3421 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3422 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3423 | esac | ||
3424 | |||
3425 | |||
3426 | ac_ext=c | ||
3427 | ac_cpp='$CPP $CPPFLAGS' | ||
3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3431 | DEPDIR="${am__leading_dot}deps" | ||
3432 | |||
3433 | ac_config_commands="$ac_config_commands depfiles" | ||
3434 | |||
3435 | |||
3436 | am_make=${MAKE-make} | ||
3437 | cat > confinc << 'END' | ||
3438 | am__doit: | ||
3439 | @echo done | ||
3440 | .PHONY: am__doit | ||
3441 | END | ||
3442 | # If we don't find an include directive, just comment out the code. | ||
3443 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
3444 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
3445 | am__include="#" | ||
3446 | am__quote= | ||
3447 | _am_result=none | ||
3448 | # First try GNU make style include. | ||
3449 | echo "include confinc" > confmf | ||
3450 | # We grep out `Entering directory' and `Leaving directory' | ||
3451 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
3452 | # In particular we don't look at `^make:' because GNU make might | ||
3453 | # be invoked under some other name (usually "gmake"), in which | ||
3454 | # case it prints its new name instead of `make'. | ||
3455 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
3456 | am__include=include | ||
3457 | am__quote= | ||
3458 | _am_result=GNU | ||
3459 | fi | ||
3460 | # Now try BSD make style include. | ||
3461 | if test "$am__include" = "#"; then | ||
3462 | echo '.include "confinc"' > confmf | ||
3463 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
3464 | am__include=.include | ||
3465 | am__quote="\"" | ||
3466 | _am_result=BSD | ||
3467 | fi | ||
3468 | fi | ||
3469 | |||
3470 | |||
3471 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
3472 | echo "${ECHO_T}$_am_result" >&6; } | ||
3473 | rm -f confinc confmf | ||
3474 | |||
3475 | # Check whether --enable-dependency-tracking was given. | ||
3476 | if test "${enable_dependency_tracking+set}" = set; then | ||
3477 | enableval=$enable_dependency_tracking; | ||
3478 | fi | ||
3479 | |||
3480 | if test "x$enable_dependency_tracking" != xno; then | ||
3481 | am_depcomp="$ac_aux_dir/depcomp" | ||
3482 | AMDEPBACKSLASH='\' | ||
3483 | fi | ||
3484 | |||
3485 | |||
3486 | if test "x$enable_dependency_tracking" != xno; then | ||
3487 | AMDEP_TRUE= | ||
3488 | AMDEP_FALSE='#' | ||
3489 | else | ||
3490 | AMDEP_TRUE='#' | ||
3491 | AMDEP_FALSE= | ||
3492 | fi | ||
3493 | |||
3494 | |||
3495 | |||
3496 | |||
3497 | depcc="$CC" am_compiler_list= | ||
3498 | |||
3499 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3500 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3501 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3503 | else | ||
3504 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3505 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3506 | # making bogus files that we don't know about and never remove. For | ||
3507 | # instance it was reported that on HP-UX the gcc test will end up | ||
3508 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3509 | # in D'. | ||
3510 | mkdir conftest.dir | ||
3511 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3512 | # using a relative directory. | ||
3513 | cp "$am_depcomp" conftest.dir | ||
3514 | cd conftest.dir | ||
3515 | # We will build objects and dependencies in a subdirectory because | ||
3516 | # it helps to detect inapplicable dependency modes. For instance | ||
3517 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3518 | # side effect of compilation, but ICC will put the dependencies in | ||
3519 | # the current directory while Tru64 will put them in the object | ||
3520 | # directory. | ||
3521 | mkdir sub | ||
3522 | |||
3523 | am_cv_CC_dependencies_compiler_type=none | ||
3524 | if test "$am_compiler_list" = ""; then | ||
3525 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3526 | fi | ||
3527 | for depmode in $am_compiler_list; do | ||
3528 | # Setup a source with many dependencies, because some compilers | ||
3529 | # like to wrap large dependency lists on column 80 (with \), and | ||
3530 | # we should not choose a depcomp mode which is confused by this. | ||
3531 | # | ||
3532 | # We need to recreate these files for each test, as the compiler may | ||
3533 | # overwrite some of them when testing with obscure command lines. | ||
3534 | # This happens at least with the AIX C compiler. | ||
3535 | : > sub/conftest.c | ||
3536 | for i in 1 2 3 4 5 6; do | ||
3537 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3538 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3539 | # Solaris 8's {/usr,}/bin/sh. | ||
3540 | touch sub/conftst$i.h | ||
3541 | done | ||
3542 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3543 | |||
3544 | case $depmode in | ||
3545 | nosideeffect) | ||
3546 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3547 | # only be used when explicitly requested | ||
3548 | if test "x$enable_dependency_tracking" = xyes; then | ||
3549 | continue | ||
3550 | else | ||
3551 | break | ||
3552 | fi | ||
3553 | ;; | ||
3554 | none) break ;; | ||
3555 | esac | ||
3556 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3557 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3558 | # handle `-M -o', and we need to detect this. | ||
3559 | if depmode=$depmode \ | ||
3560 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3561 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3562 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3563 | >/dev/null 2>conftest.err && | ||
3564 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3565 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3566 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3567 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3568 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3569 | # that says an option was ignored or not supported. | ||
3570 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3571 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3572 | # The diagnosis changed in icc 8.0: | ||
3573 | # icc: Command line remark: option '-MP' not supported | ||
3574 | if (grep 'ignoring option' conftest.err || | ||
3575 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3576 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3577 | break | ||
3578 | fi | ||
3579 | fi | ||
3580 | done | ||
3581 | |||
3582 | cd .. | ||
3583 | rm -rf conftest.dir | ||
3584 | else | ||
3585 | am_cv_CC_dependencies_compiler_type=none | ||
3586 | fi | ||
3587 | |||
3588 | fi | ||
3589 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3590 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3591 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3592 | |||
3593 | |||
3594 | |||
3595 | if | ||
3596 | test "x$enable_dependency_tracking" != xno \ | ||
3597 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3598 | am__fastdepCC_TRUE= | ||
3599 | am__fastdepCC_FALSE='#' | ||
3600 | else | ||
3601 | am__fastdepCC_TRUE='#' | ||
3602 | am__fastdepCC_FALSE= | ||
3603 | fi | ||
3604 | |||
3605 | |||
3606 | |||
3607 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ||
3608 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | ||
3609 | if test "${ac_cv_c_const+set}" = set; then | ||
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3611 | else | ||
3612 | cat >conftest.$ac_ext <<_ACEOF | ||
3613 | /* confdefs.h. */ | ||
3614 | _ACEOF | ||
3615 | cat confdefs.h >>conftest.$ac_ext | ||
3616 | cat >>conftest.$ac_ext <<_ACEOF | ||
3617 | /* end confdefs.h. */ | ||
3618 | |||
3619 | int | ||
3620 | main () | ||
3621 | { | ||
3622 | /* FIXME: Include the comments suggested by Paul. */ | ||
3623 | #ifndef __cplusplus | ||
3624 | /* Ultrix mips cc rejects this. */ | ||
3625 | typedef int charset[2]; | ||
3626 | const charset cs; | ||
3627 | /* SunOS 4.1.1 cc rejects this. */ | ||
3628 | char const *const *pcpcc; | ||
3629 | char **ppc; | ||
3630 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
3631 | struct point {int x, y;}; | ||
3632 | static struct point const zero = {0,0}; | ||
3633 | /* AIX XL C 1.02.0.0 rejects this. | ||
3634 | It does not let you subtract one const X* pointer from another in | ||
3635 | an arm of an if-expression whose if-part is not a constant | ||
3636 | expression */ | ||
3637 | const char *g = "string"; | ||
3638 | pcpcc = &g + (g ? g-g : 0); | ||
3639 | /* HPUX 7.0 cc rejects these. */ | ||
3640 | ++pcpcc; | ||
3641 | ppc = (char**) pcpcc; | ||
3642 | pcpcc = (char const *const *) ppc; | ||
3643 | { /* SCO 3.2v4 cc rejects this. */ | ||
3644 | char *t; | ||
3645 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
3646 | |||
3647 | *t++ = 0; | ||
3648 | if (s) return 0; | ||
3649 | } | ||
3650 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
3651 | int x[] = {25, 17}; | ||
3652 | const int *foo = &x[0]; | ||
3653 | ++foo; | ||
3654 | } | ||
3655 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
3656 | typedef const int *iptr; | ||
3657 | iptr p = 0; | ||
3658 | ++p; | ||
3659 | } | ||
3660 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
3661 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
3662 | struct s { int j; const int *ap[3]; }; | ||
3663 | struct s *b; b->j = 5; | ||
3664 | } | ||
3665 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
3666 | const int foo = 10; | ||
3667 | if (!foo) return 0; | ||
3668 | } | ||
3669 | return !cs[0] && !zero.x; | ||
3670 | #endif | ||
3671 | |||
3672 | ; | ||
3673 | return 0; | ||
3674 | } | ||
3675 | _ACEOF | ||
3676 | rm -f conftest.$ac_objext | ||
3677 | if { (ac_try="$ac_compile" | ||
3678 | case "(($ac_try" in | ||
3679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3680 | *) ac_try_echo=$ac_try;; | ||
3681 | esac | ||
3682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3683 | (eval "$ac_compile") 2>conftest.er1 | ||
3684 | ac_status=$? | ||
3685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3686 | rm -f conftest.er1 | ||
3687 | cat conftest.err >&5 | ||
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3689 | (exit $ac_status); } && | ||
3690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3691 | { (case "(($ac_try" in | ||
3692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3693 | *) ac_try_echo=$ac_try;; | ||
3694 | esac | ||
3695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3696 | (eval "$ac_try") 2>&5 | ||
3697 | ac_status=$? | ||
3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3699 | (exit $ac_status); }; } && | ||
3700 | { ac_try='test -s conftest.$ac_objext' | ||
3701 | { (case "(($ac_try" in | ||
3702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3703 | *) ac_try_echo=$ac_try;; | ||
3704 | esac | ||
3705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3706 | (eval "$ac_try") 2>&5 | ||
3707 | ac_status=$? | ||
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3709 | (exit $ac_status); }; }; then | ||
3710 | ac_cv_c_const=yes | ||
3711 | else | ||
3712 | echo "$as_me: failed program was:" >&5 | ||
3713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3714 | |||
3715 | ac_cv_c_const=no | ||
3716 | fi | ||
3717 | |||
3718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3719 | fi | ||
3720 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ||
3721 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | ||
3722 | if test $ac_cv_c_const = no; then | ||
3723 | |||
3724 | cat >>confdefs.h <<\_ACEOF | ||
3725 | #define const | ||
3726 | _ACEOF | ||
3727 | |||
3728 | fi | ||
3729 | |||
3730 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
3731 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
3732 | if test "${ac_cv_c_inline+set}" = set; then | ||
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3734 | else | ||
3735 | ac_cv_c_inline=no | ||
3736 | for ac_kw in inline __inline__ __inline; do | ||
3737 | cat >conftest.$ac_ext <<_ACEOF | ||
3738 | /* confdefs.h. */ | ||
3739 | _ACEOF | ||
3740 | cat confdefs.h >>conftest.$ac_ext | ||
3741 | cat >>conftest.$ac_ext <<_ACEOF | ||
3742 | /* end confdefs.h. */ | ||
3743 | #ifndef __cplusplus | ||
3744 | typedef int foo_t; | ||
3745 | static $ac_kw foo_t static_foo () {return 0; } | ||
3746 | $ac_kw foo_t foo () {return 0; } | ||
3747 | #endif | ||
3748 | |||
3749 | _ACEOF | ||
3750 | rm -f conftest.$ac_objext | ||
3751 | if { (ac_try="$ac_compile" | ||
3752 | case "(($ac_try" in | ||
3753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3754 | *) ac_try_echo=$ac_try;; | ||
3755 | esac | ||
3756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3757 | (eval "$ac_compile") 2>conftest.er1 | ||
3758 | ac_status=$? | ||
3759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3760 | rm -f conftest.er1 | ||
3761 | cat conftest.err >&5 | ||
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3763 | (exit $ac_status); } && | ||
3764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3765 | { (case "(($ac_try" in | ||
3766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3767 | *) ac_try_echo=$ac_try;; | ||
3768 | esac | ||
3769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3770 | (eval "$ac_try") 2>&5 | ||
3771 | ac_status=$? | ||
3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3773 | (exit $ac_status); }; } && | ||
3774 | { ac_try='test -s conftest.$ac_objext' | ||
3775 | { (case "(($ac_try" in | ||
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3777 | *) ac_try_echo=$ac_try;; | ||
3778 | esac | ||
3779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3780 | (eval "$ac_try") 2>&5 | ||
3781 | ac_status=$? | ||
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3783 | (exit $ac_status); }; }; then | ||
3784 | ac_cv_c_inline=$ac_kw | ||
3785 | else | ||
3786 | echo "$as_me: failed program was:" >&5 | ||
3787 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3788 | |||
3789 | |||
3790 | fi | ||
3791 | |||
3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3793 | test "$ac_cv_c_inline" != no && break | ||
3794 | done | ||
3795 | |||
3796 | fi | ||
3797 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3798 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
3799 | |||
3800 | |||
3801 | case $ac_cv_c_inline in | ||
3802 | inline | yes) ;; | ||
3803 | *) | ||
3804 | case $ac_cv_c_inline in | ||
3805 | no) ac_val=;; | ||
3806 | *) ac_val=$ac_cv_c_inline;; | ||
3807 | esac | ||
3808 | cat >>confdefs.h <<_ACEOF | ||
3809 | #ifndef __cplusplus | ||
3810 | #define inline $ac_val | ||
3811 | #endif | ||
3812 | _ACEOF | ||
3813 | ;; | ||
3814 | esac | ||
3815 | |||
3816 | |||
3817 | |||
3818 | ## ----------------------- ## | ||
3819 | ## Libtool initialisation. ## | ||
3820 | ## ----------------------- ## | ||
3821 | |||
3822 | |||
3823 | # Check whether --enable-shared was given. | ||
3824 | if test "${enable_shared+set}" = set; then | ||
3825 | enableval=$enable_shared; p=${PACKAGE-default} | ||
3826 | case $enableval in | ||
3827 | yes) enable_shared=yes ;; | ||
3828 | no) enable_shared=no ;; | ||
3829 | *) | ||
3830 | enable_shared=no | ||
3831 | # Look at the argument we got. We use all the common list separators. | ||
3832 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3833 | for pkg in $enableval; do | ||
3834 | IFS="$lt_save_ifs" | ||
3835 | if test "X$pkg" = "X$p"; then | ||
3836 | enable_shared=yes | ||
3837 | fi | ||
3838 | done | ||
3839 | IFS="$lt_save_ifs" | ||
3840 | ;; | ||
3841 | esac | ||
3842 | else | ||
3843 | enable_shared=yes | ||
3844 | fi | ||
3845 | |||
3846 | |||
3847 | # Check whether --enable-static was given. | ||
3848 | if test "${enable_static+set}" = set; then | ||
3849 | enableval=$enable_static; p=${PACKAGE-default} | ||
3850 | case $enableval in | ||
3851 | yes) enable_static=yes ;; | ||
3852 | no) enable_static=no ;; | ||
3853 | *) | ||
3854 | enable_static=no | ||
3855 | # Look at the argument we got. We use all the common list separators. | ||
3856 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3857 | for pkg in $enableval; do | ||
3858 | IFS="$lt_save_ifs" | ||
3859 | if test "X$pkg" = "X$p"; then | ||
3860 | enable_static=yes | ||
3861 | fi | ||
3862 | done | ||
3863 | IFS="$lt_save_ifs" | ||
3864 | ;; | ||
3865 | esac | ||
3866 | else | ||
3867 | enable_static=yes | ||
3868 | fi | ||
3869 | |||
3870 | |||
3871 | # Check whether --enable-fast-install was given. | ||
3872 | if test "${enable_fast_install+set}" = set; then | ||
3873 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
3874 | case $enableval in | ||
3875 | yes) enable_fast_install=yes ;; | ||
3876 | no) enable_fast_install=no ;; | ||
3877 | *) | ||
3878 | enable_fast_install=no | ||
3879 | # Look at the argument we got. We use all the common list separators. | ||
3880 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3881 | for pkg in $enableval; do | ||
3882 | IFS="$lt_save_ifs" | ||
3883 | if test "X$pkg" = "X$p"; then | ||
3884 | enable_fast_install=yes | ||
3885 | fi | ||
3886 | done | ||
3887 | IFS="$lt_save_ifs" | ||
3888 | ;; | ||
3889 | esac | ||
3890 | else | ||
3891 | enable_fast_install=yes | ||
3892 | fi | ||
3893 | |||
3894 | |||
3895 | # Make sure we can run config.sub. | ||
3896 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3897 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
3898 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
3899 | { (exit 1); exit 1; }; } | ||
3900 | |||
3901 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
3902 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
3903 | if test "${ac_cv_build+set}" = set; then | ||
3904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3905 | else | ||
3906 | ac_build_alias=$build_alias | ||
3907 | test "x$ac_build_alias" = x && | ||
3908 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3909 | test "x$ac_build_alias" = x && | ||
3910 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
3911 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
3912 | { (exit 1); exit 1; }; } | ||
3913 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3914 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
3915 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
3916 | { (exit 1); exit 1; }; } | ||
3917 | |||
3918 | fi | ||
3919 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
3920 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
3921 | case $ac_cv_build in | ||
3922 | *-*-*) ;; | ||
3923 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
3924 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
3925 | { (exit 1); exit 1; }; };; | ||
3926 | esac | ||
3927 | build=$ac_cv_build | ||
3928 | ac_save_IFS=$IFS; IFS='-' | ||
3929 | set x $ac_cv_build | ||
3930 | shift | ||
3931 | build_cpu=$1 | ||
3932 | build_vendor=$2 | ||
3933 | shift; shift | ||
3934 | # Remember, the first character of IFS is used to create $*, | ||
3935 | # except with old shells: | ||
3936 | build_os=$* | ||
3937 | IFS=$ac_save_IFS | ||
3938 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3939 | |||
3940 | |||
3941 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
3942 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
3943 | if test "${ac_cv_host+set}" = set; then | ||
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3945 | else | ||
3946 | if test "x$host_alias" = x; then | ||
3947 | ac_cv_host=$ac_cv_build | ||
3948 | else | ||
3949 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3950 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
3951 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
3952 | { (exit 1); exit 1; }; } | ||
3953 | fi | ||
3954 | |||
3955 | fi | ||
3956 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
3957 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
3958 | case $ac_cv_host in | ||
3959 | *-*-*) ;; | ||
3960 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
3961 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
3962 | { (exit 1); exit 1; }; };; | ||
3963 | esac | ||
3964 | host=$ac_cv_host | ||
3965 | ac_save_IFS=$IFS; IFS='-' | ||
3966 | set x $ac_cv_host | ||
3967 | shift | ||
3968 | host_cpu=$1 | ||
3969 | host_vendor=$2 | ||
3970 | shift; shift | ||
3971 | # Remember, the first character of IFS is used to create $*, | ||
3972 | # except with old shells: | ||
3973 | host_os=$* | ||
3974 | IFS=$ac_save_IFS | ||
3975 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3976 | |||
3977 | |||
3978 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
3979 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | ||
3980 | if test "${lt_cv_path_SED+set}" = set; then | ||
3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3982 | else | ||
3983 | # Loop through the user's path and test for sed and gsed. | ||
3984 | # Then use that list of sed's as ones to test for truncation. | ||
3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3986 | for as_dir in $PATH | ||
3987 | do | ||
3988 | IFS=$as_save_IFS | ||
3989 | test -z "$as_dir" && as_dir=. | ||
3990 | for lt_ac_prog in sed gsed; do | ||
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3992 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
3993 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
3994 | fi | ||
3995 | done | ||
3996 | done | ||
3997 | done | ||
3998 | lt_ac_max=0 | ||
3999 | lt_ac_count=0 | ||
4000 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
4001 | # along with /bin/sed that truncates output. | ||
4002 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
4003 | test ! -f $lt_ac_sed && continue | ||
4004 | cat /dev/null > conftest.in | ||
4005 | lt_ac_count=0 | ||
4006 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
4007 | # Check for GNU sed and select it if it is found. | ||
4008 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
4009 | lt_cv_path_SED=$lt_ac_sed | ||
4010 | break | ||
4011 | fi | ||
4012 | while true; do | ||
4013 | cat conftest.in conftest.in >conftest.tmp | ||
4014 | mv conftest.tmp conftest.in | ||
4015 | cp conftest.in conftest.nl | ||
4016 | echo >>conftest.nl | ||
4017 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
4018 | cmp -s conftest.out conftest.nl || break | ||
4019 | # 10000 chars as input seems more than enough | ||
4020 | test $lt_ac_count -gt 10 && break | ||
4021 | lt_ac_count=`expr $lt_ac_count + 1` | ||
4022 | if test $lt_ac_count -gt $lt_ac_max; then | ||
4023 | lt_ac_max=$lt_ac_count | ||
4024 | lt_cv_path_SED=$lt_ac_sed | ||
4025 | fi | ||
4026 | done | ||
4027 | done | ||
4028 | |||
4029 | fi | ||
4030 | |||
4031 | SED=$lt_cv_path_SED | ||
4032 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4033 | echo "${ECHO_T}$SED" >&6; } | ||
4034 | |||
4035 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
4036 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
4037 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4039 | else | ||
4040 | # Extract the first word of "grep ggrep" to use in msg output | ||
4041 | if test -z "$GREP"; then | ||
4042 | set dummy grep ggrep; ac_prog_name=$2 | ||
4043 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | ac_path_GREP_found=false | ||
4047 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4049 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4050 | do | ||
4051 | IFS=$as_save_IFS | ||
4052 | test -z "$as_dir" && as_dir=. | ||
4053 | for ac_prog in grep ggrep; do | ||
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4055 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4056 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | ||
4057 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4058 | # Check for GNU $ac_path_GREP | ||
4059 | case `"$ac_path_GREP" --version 2>&1` in | ||
4060 | *GNU*) | ||
4061 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4062 | *) | ||
4063 | ac_count=0 | ||
4064 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4065 | while : | ||
4066 | do | ||
4067 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4068 | mv "conftest.tmp" "conftest.in" | ||
4069 | cp "conftest.in" "conftest.nl" | ||
4070 | echo 'GREP' >> "conftest.nl" | ||
4071 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4072 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4073 | ac_count=`expr $ac_count + 1` | ||
4074 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4075 | # Best one so far, save it but keep looking for a better one | ||
4076 | ac_cv_path_GREP="$ac_path_GREP" | ||
4077 | ac_path_GREP_max=$ac_count | ||
4078 | fi | ||
4079 | # 10*(2^10) chars as input seems more than enough | ||
4080 | test $ac_count -gt 10 && break | ||
4081 | done | ||
4082 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4083 | esac | ||
4084 | |||
4085 | |||
4086 | $ac_path_GREP_found && break 3 | ||
4087 | done | ||
4088 | done | ||
4089 | |||
4090 | done | ||
4091 | IFS=$as_save_IFS | ||
4092 | |||
4093 | |||
4094 | fi | ||
4095 | |||
4096 | GREP="$ac_cv_path_GREP" | ||
4097 | if test -z "$GREP"; then | ||
4098 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4099 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4100 | { (exit 1); exit 1; }; } | ||
4101 | fi | ||
4102 | |||
4103 | else | ||
4104 | ac_cv_path_GREP=$GREP | ||
4105 | fi | ||
4106 | |||
4107 | |||
4108 | fi | ||
4109 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
4110 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
4111 | GREP="$ac_cv_path_GREP" | ||
4112 | |||
4113 | |||
4114 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4115 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4116 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4118 | else | ||
4119 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4120 | then ac_cv_path_EGREP="$GREP -E" | ||
4121 | else | ||
4122 | # Extract the first word of "egrep" to use in msg output | ||
4123 | if test -z "$EGREP"; then | ||
4124 | set dummy egrep; ac_prog_name=$2 | ||
4125 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4127 | else | ||
4128 | ac_path_EGREP_found=false | ||
4129 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4131 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4132 | do | ||
4133 | IFS=$as_save_IFS | ||
4134 | test -z "$as_dir" && as_dir=. | ||
4135 | for ac_prog in egrep; do | ||
4136 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4137 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4138 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | ||
4139 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4140 | # Check for GNU $ac_path_EGREP | ||
4141 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4142 | *GNU*) | ||
4143 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4144 | *) | ||
4145 | ac_count=0 | ||
4146 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4147 | while : | ||
4148 | do | ||
4149 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4150 | mv "conftest.tmp" "conftest.in" | ||
4151 | cp "conftest.in" "conftest.nl" | ||
4152 | echo 'EGREP' >> "conftest.nl" | ||
4153 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4154 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4155 | ac_count=`expr $ac_count + 1` | ||
4156 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4157 | # Best one so far, save it but keep looking for a better one | ||
4158 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4159 | ac_path_EGREP_max=$ac_count | ||
4160 | fi | ||
4161 | # 10*(2^10) chars as input seems more than enough | ||
4162 | test $ac_count -gt 10 && break | ||
4163 | done | ||
4164 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4165 | esac | ||
4166 | |||
4167 | |||
4168 | $ac_path_EGREP_found && break 3 | ||
4169 | done | ||
4170 | done | ||
4171 | |||
4172 | done | ||
4173 | IFS=$as_save_IFS | ||
4174 | |||
4175 | |||
4176 | fi | ||
4177 | |||
4178 | EGREP="$ac_cv_path_EGREP" | ||
4179 | if test -z "$EGREP"; then | ||
4180 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4181 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4182 | { (exit 1); exit 1; }; } | ||
4183 | fi | ||
4184 | |||
4185 | else | ||
4186 | ac_cv_path_EGREP=$EGREP | ||
4187 | fi | ||
4188 | |||
4189 | |||
4190 | fi | ||
4191 | fi | ||
4192 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4193 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4194 | EGREP="$ac_cv_path_EGREP" | ||
4195 | |||
4196 | |||
4197 | |||
4198 | # Check whether --with-gnu-ld was given. | ||
4199 | if test "${with_gnu_ld+set}" = set; then | ||
4200 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4201 | else | ||
4202 | with_gnu_ld=no | ||
4203 | fi | ||
4204 | |||
4205 | ac_prog=ld | ||
4206 | if test "$GCC" = yes; then | ||
4207 | # Check if gcc -print-prog-name=ld gives a path. | ||
4208 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
4209 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | ||
4210 | case $host in | ||
4211 | *-*-mingw*) | ||
4212 | # gcc leaves a trailing carriage return which upsets mingw | ||
4213 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4214 | *) | ||
4215 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4216 | esac | ||
4217 | case $ac_prog in | ||
4218 | # Accept absolute paths. | ||
4219 | [\\/]* | ?:[\\/]*) | ||
4220 | re_direlt='/[^/][^/]*/\.\./' | ||
4221 | # Canonicalize the pathname of ld | ||
4222 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
4223 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
4224 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
4225 | done | ||
4226 | test -z "$LD" && LD="$ac_prog" | ||
4227 | ;; | ||
4228 | "") | ||
4229 | # If it fails, then pretend we aren't using GCC. | ||
4230 | ac_prog=ld | ||
4231 | ;; | ||
4232 | *) | ||
4233 | # If it is relative, then search for the first ld in PATH. | ||
4234 | with_gnu_ld=unknown | ||
4235 | ;; | ||
4236 | esac | ||
4237 | elif test "$with_gnu_ld" = yes; then | ||
4238 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
4239 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | ||
4240 | else | ||
4241 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
4242 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | ||
4243 | fi | ||
4244 | if test "${lt_cv_path_LD+set}" = set; then | ||
4245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4246 | else | ||
4247 | if test -z "$LD"; then | ||
4248 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4249 | for ac_dir in $PATH; do | ||
4250 | IFS="$lt_save_ifs" | ||
4251 | test -z "$ac_dir" && ac_dir=. | ||
4252 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4253 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4254 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4255 | # but apparently some variants of GNU ld only accept -v. | ||
4256 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4257 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4258 | *GNU* | *'with BFD'*) | ||
4259 | test "$with_gnu_ld" != no && break | ||
4260 | ;; | ||
4261 | *) | ||
4262 | test "$with_gnu_ld" != yes && break | ||
4263 | ;; | ||
4264 | esac | ||
4265 | fi | ||
4266 | done | ||
4267 | IFS="$lt_save_ifs" | ||
4268 | else | ||
4269 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4270 | fi | ||
4271 | fi | ||
4272 | |||
4273 | LD="$lt_cv_path_LD" | ||
4274 | if test -n "$LD"; then | ||
4275 | { echo "$as_me:$LINENO: result: $LD" >&5 | ||
4276 | echo "${ECHO_T}$LD" >&6; } | ||
4277 | else | ||
4278 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4279 | echo "${ECHO_T}no" >&6; } | ||
4280 | fi | ||
4281 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
4282 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
4283 | { (exit 1); exit 1; }; } | ||
4284 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
4285 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | ||
4286 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4288 | else | ||
4289 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
4290 | case `$LD -v 2>&1 </dev/null` in | ||
4291 | *GNU* | *'with BFD'*) | ||
4292 | lt_cv_prog_gnu_ld=yes | ||
4293 | ;; | ||
4294 | *) | ||
4295 | lt_cv_prog_gnu_ld=no | ||
4296 | ;; | ||
4297 | esac | ||
4298 | fi | ||
4299 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
4300 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | ||
4301 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4302 | |||
4303 | |||
4304 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
4305 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | ||
4306 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||