]> sourceware.org Git - newlib-cygwin.git/blob - newlib/configure
2008-07-17 Ken Werner <ken.werner@de.ibm.com>
[newlib-cygwin.git] / newlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for newlib 1.16.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582 $*
583 _LT_EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='newlib'
723 PACKAGE_TARNAME='newlib'
724 PACKAGE_VERSION='1.16.0'
725 PACKAGE_STRING='newlib 1.16.0'
726 PACKAGE_BUGREPORT=''
727
728 ac_unique_file="libc"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 MAY_SUPPLY_SYSCALLS_TRUE
803 MAY_SUPPLY_SYSCALLS_FALSE
804 newlib_basedir
805 build
806 build_cpu
807 build_vendor
808 build_os
809 host
810 host_cpu
811 host_vendor
812 host_os
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 CYGPATH_W
817 PACKAGE
818 VERSION
819 ACLOCAL
820 AUTOCONF
821 AUTOMAKE
822 AUTOHEADER
823 MAKEINFO
824 install_sh
825 STRIP
826 INSTALL_STRIP_PROGRAM
827 mkdir_p
828 AWK
829 SET_MAKE
830 am__leading_dot
831 AMTAR
832 am__tar
833 am__untar
834 CC
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 AS
845 AR
846 RANLIB
847 READELF
848 MAINTAINER_MODE_TRUE
849 MAINTAINER_MODE_FALSE
850 MAINT
851 CCAS
852 CCASFLAGS
853 NEWLIB_CFLAGS
854 LDFLAGS
855 ELIX_LEVEL_0_TRUE
856 ELIX_LEVEL_0_FALSE
857 ELIX_LEVEL_1_TRUE
858 ELIX_LEVEL_1_FALSE
859 ELIX_LEVEL_2_TRUE
860 ELIX_LEVEL_2_FALSE
861 ELIX_LEVEL_3_TRUE
862 ELIX_LEVEL_3_FALSE
863 ELIX_LEVEL_4_TRUE
864 ELIX_LEVEL_4_FALSE
865 USE_LIBTOOL_TRUE
866 USE_LIBTOOL_FALSE
867 OBJEXT
868 oext
869 aext
870 lpfx
871 libm_machine_dir
872 machine_dir
873 sys_dir
874 SED
875 DLLTOOL
876 OBJDUMP
877 LIBTOOL
878 CFLAGS
879 CPPFLAGS
880 ac_ct_CC
881 EXEEXT
882 GREP
883 EGREP
884 FGREP
885 LD
886 DUMPBIN
887 ac_ct_DUMPBIN
888 NM
889 LN_S
890 lt_ECHO
891 CPP
892 NEWLIB_HW_FP_TRUE
893 NEWLIB_HW_FP_FALSE
894 CC_FOR_NEWLIB
895 subdirs
896 HAVE_DOC_TRUE
897 HAVE_DOC_FALSE
898 EXTRA_DIRS
899 CRT0
900 CRT0_DIR
901 CRT1
902 CRT1_DIR
903 LIBM_MACHINE_OBJECTLIST
904 MACHINE_OBJECTLIST
905 SYS_OBJECTLIST
906 SYS_MACH_OBJECTLIST
907 POSIX_OBJECTLIST
908 SIGNAL_OBJECTLIST
909 SYSCALL_OBJECTLIST
910 UNIX_OBJECTLIST
911 STDIO64_OBJECTLIST
912 CC_FOR_BUILD
913 libc_cv_initfinit_array
914 libc_cv_array_aliasing
915 LIBOBJS
916 LTLIBOBJS'
917 ac_subst_files=''
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CCAS
922 CCASFLAGS
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP'
929 ac_subdirs_all='libc
930 libm
931 doc
932 iconvdata'
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
953
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
979
980 ac_prev=
981 ac_dashdash=
982 for ac_option
983 do
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
989 fi
990
991 case $ac_option in
992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *) ac_optarg=yes ;;
994 esac
995
996 # Accept the important Cygnus configure options, so we can diagnose typos.
997
998 case $ac_dashdash$ac_option in
999 --)
1000 ac_dashdash=yes ;;
1001
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1006
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1011
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1018
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1021
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1026
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1033
1034 -disable-* | --disable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=no ;;
1042
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1047
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1052
1053 -enable-* | --enable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=\$ac_optarg ;;
1061
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1070
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1074
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1081
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1086
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1092
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1099
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1104
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1109
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1116
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1121
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1128
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1133
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1137
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1141
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1145
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1154
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1159
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1166
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1173
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1190
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1195
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1200
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=\$ac_optarg ;;
1258
1259 -without-* | --without-*)
1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid package name: $ac_package" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266 eval with_$ac_package=no ;;
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1285
1286 -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288 { (exit 1); exit 1; }; }
1289 ;;
1290
1291 *=*)
1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296 { (exit 1); exit 1; }; }
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1299
1300 *)
1301 # FIXME: should be removed in autoconf 3.0.
1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306 ;;
1307
1308 esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 { echo "$as_me: error: missing argument to $ac_option" >&2
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 # Be sure to have absolute directory names.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1322 do
1323 eval ac_val=\$$ac_var
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329 { (exit 1); exit 1; }; }
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used." >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1347 fi
1348 fi
1349
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353 test "$silent" = yes && exec 6>/dev/null
1354
1355
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 { echo "$as_me: error: Working directory cannot be determined" >&2
1360 { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 { echo "$as_me: error: pwd does not report name of working directory" >&2
1363 { (exit 1); exit 1; }; }
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$0" : 'X\(//\)[^/]' \| \
1373 X"$0" : 'X\(//\)$' \| \
1374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 echo X"$0" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)[^/].*/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)$/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\).*/{
1389 s//\1/
1390 q
1391 }
1392 s/.*/./; q'`
1393 srcdir=$ac_confdir
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 srcdir=..
1396 fi
1397 else
1398 ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403 { (exit 1); exit 1; }; }
1404 fi
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408 { (exit 1); exit 1; }; }
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures newlib 1.16.0 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1488
1489 cat <<\_ACEOF
1490
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of newlib 1.16.0:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-newlib-io-pos-args enable printf-family positional arg support
1512 --enable-newlib-io-c99-formats enable C99 support in IO functions like printf/scanf
1513 --enable-newlib-io-long-long enable long long type support in IO functions like printf/scanf
1514 --enable-newlib-io-long-double enable long double type support in IO functions printf/scanf
1515 --enable-newlib-mb enable multibyte support
1516 --enable-newlib-iconv-encodings enable specific comma-separated list of bidirectional iconv encodings to be built-in
1517 --enable-newlib-iconv-from-encodings enable specific comma-separated list of \"from\" iconv encodings to be built-in
1518 --enable-newlib-iconv-to-encodings enable specific comma-separated list of \"to\" iconv encodings to be built-in
1519 --enable-newlib-iconv-external-ccs enable capabilities to load external CCS files for iconv
1520 --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries
1521 --enable-newlib-reent-small enable small reentrant struct support
1522 --enable-multilib build many library versions (default)
1523 --enable-target-optspace optimize for space
1524 --enable-malloc-debugging indicate malloc debugging requested
1525 --enable-newlib-multithread enable support for multiple threads
1526 --enable-newlib-iconv enable iconv library support
1527 --enable-newlib-elix-level supply desired elix library level (1-4)
1528 --disable-newlib-io-float disable printf/scanf family float support
1529 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1530 --disable-dependency-tracking speeds up one-time build
1531 --enable-dependency-tracking do not reject slow dependency extractors
1532 --enable-maintainer-mode enable make rules and dependencies not useful
1533 (and sometimes confusing) to the casual installer
1534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-static[=PKGS] build static libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --enable-newlib-hw-fp Turn on hardware floating point math
1540
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-pic try to use only PIC/non-PIC objects [default=use
1545 both]
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547
1548 Some influential environment variables:
1549 CCAS assembler compiler command (defaults to CC)
1550 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1571 ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 newlib configure 1.16.0
1624 generated by GNU Autoconf 2.61
1625
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631 exit
1632 fi
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1636
1637 It was created by newlib $as_me 1.16.0, which was
1638 generated by GNU Autoconf 2.61. Invocation command line was
1639
1640 $ $0 $@
1641
1642 _ACEOF
1643 exec 5>>config.log
1644 {
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1649
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1658
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666
1667 _ASUNAME
1668
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1675 done
1676 IFS=$as_save_IFS
1677
1678 } >&5
1679
1680 cat >&5 <<_ACEOF
1681
1682
1683 ## ----------- ##
1684 ## Core tests. ##
1685 ## ----------- ##
1686
1687 _ACEOF
1688
1689
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_configure_args=
1696 ac_configure_args0=
1697 ac_configure_args1=
1698 ac_must_keep_next=false
1699 for ac_pass in 1 2
1700 do
1701 for ac_arg
1702 do
1703 case $ac_arg in
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1707 continue ;;
1708 *\'*)
1709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710 esac
1711 case $ac_pass in
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713 2)
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1717 else
1718 case $ac_arg in
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725 esac
1726 ;;
1727 -* ) ac_must_keep_next=true ;;
1728 esac
1729 fi
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1731 ;;
1732 esac
1733 done
1734 done
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1745 {
1746 echo
1747
1748 cat <<\_ASBOX
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1752 _ASBOX
1753 echo
1754 # The following way of writing the cache mishandles newlines in values,
1755 (
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in #(
1759 *${as_nl}*)
1760 case $ac_var in #(
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 esac
1764 case $ac_var in #(
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1767 esac ;;
1768 esac
1769 done
1770 (set) 2>&1 |
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1773 sed -n \
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 ;; #(
1777 *)
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ;;
1780 esac |
1781 sort
1782 )
1783 echo
1784
1785 cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_vars
1792 do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1800
1801 if test -n "$ac_subst_files"; then
1802 cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807 echo
1808 for ac_var in $ac_subst_files
1809 do
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 echo "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1817 fi
1818
1819 if test -s confdefs.h; then
1820 cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825 echo
1826 cat confdefs.h
1827 echo
1828 fi
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1832 } >&5
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 exit $exit_status
1836 ' 0
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1841
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1844
1845 # Predefined preprocessor variables.
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1870
1871
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1881 fi
1882 shift
1883 for ac_site_file
1884 do
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1889 . "$ac_site_file"
1890 fi
1891 done
1892
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1899 case $cache_file in
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1902 esac
1903 fi
1904 else
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1907 >$cache_file
1908 fi
1909
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1919 set,)
1920 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,set)
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,);;
1928 *)
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1933 echo "$as_me: former value: $ac_old_val" >&2;}
1934 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1935 echo "$as_me: current value: $ac_new_val" >&2;}
1936 ac_cache_corrupted=:
1937 fi;;
1938 esac
1939 # Pass precious variables to config.status.
1940 if test "$ac_new_set" = set; then
1941 case $ac_new_val in
1942 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943 *) ac_arg=$ac_var=$ac_new_val ;;
1944 esac
1945 case " $ac_configure_args " in
1946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1947 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 esac
1949 fi
1950 done
1951 if $ac_cache_corrupted; then
1952 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956 { (exit 1); exit 1; }; }
1957 fi
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990
1991 ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
1992
1993
1994 ac_aux_dir=
1995 for ac_dir in .. "$srcdir"/..; do
1996 if test -f "$ac_dir/install-sh"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 break
2000 elif test -f "$ac_dir/install.sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 break
2004 elif test -f "$ac_dir/shtool"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/shtool install -c"
2007 break
2008 fi
2009 done
2010 if test -z "$ac_aux_dir"; then
2011 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&5
2012 echo "$as_me: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&2;}
2013 { (exit 1); exit 1; }; }
2014 fi
2015
2016 # These three variables are undocumented and unsupported,
2017 # and are intended to be withdrawn in a future Autoconf release.
2018 # They can cause serious problems if a builder's source tree is in a directory
2019 # whose full name contains unusual characters.
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2023
2024
2025
2026 # Check whether --enable-newlib-io-pos-args was given.
2027 if test "${enable_newlib_io_pos_args+set}" = set; then
2028 enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2029 yes) newlib_io_pos_args=yes ;;
2030 no) newlib_io_pos_args=no ;;
2031 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
2032 echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
2033 { (exit 1); exit 1; }; } ;;
2034 esac
2035 else
2036 newlib_io_pos_args=
2037 fi
2038
2039 # Check whether --enable-newlib-io-c99-formats was given.
2040 if test "${enable_newlib_io_c99_formats+set}" = set; then
2041 enableval=$enable_newlib_io_c99_formats; case "${enableval}" in
2042 yes) newlib_io_c99_formats=yes;;
2043 no) newlib_io_c99_formats=no ;;
2044 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
2045 echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
2046 { (exit 1); exit 1; }; } ;;
2047 esac
2048 else
2049 newlib_io_c99_formats=
2050 fi
2051
2052 # Check whether --enable-newlib-io-long-long was given.
2053 if test "${enable_newlib_io_long_long+set}" = set; then
2054 enableval=$enable_newlib_io_long_long; case "${enableval}" in
2055 yes) newlib_io_long_long=yes;;
2056 no) newlib_io_long_long=no ;;
2057 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
2058 echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
2059 { (exit 1); exit 1; }; } ;;
2060 esac
2061 else
2062 newlib_io_long_long=
2063 fi
2064
2065 # Check whether --enable-newlib-io-long-double was given.
2066 if test "${enable_newlib_io_long_double+set}" = set; then
2067 enableval=$enable_newlib_io_long_double; case "${enableval}" in
2068 yes) newlib_io_long_double=yes;;
2069 no) newlib_io_long_double=no ;;
2070 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
2071 echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
2072 { (exit 1); exit 1; }; } ;;
2073 esac
2074 else
2075 newlib_io_long_double=
2076 fi
2077
2078 # Check whether --enable-newlib-mb was given.
2079 if test "${enable_newlib_mb+set}" = set; then
2080 enableval=$enable_newlib_mb; case "${enableval}" in
2081 yes) newlib_mb=yes;;
2082 no) newlib_mb=no ;;
2083 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
2084 echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
2085 { (exit 1); exit 1; }; } ;;
2086 esac
2087 else
2088 newlib_mb=
2089 fi
2090
2091 # Check whether --enable-newlib-iconv-encodings was given.
2092 if test "${enable_newlib_iconv_encodings+set}" = set; then
2093 enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
2094 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
2095 echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
2096 { (exit 1); exit 1; }; }
2097 fi
2098 iconv_encodings=${enableval}
2099
2100 else
2101 iconv_encodings=
2102 fi
2103
2104 # Check whether --enable-newlib-iconv-from-encodings was given.
2105 if test "${enable_newlib_iconv_from_encodings+set}" = set; then
2106 enableval=$enable_newlib_iconv_from_encodings; if test x${enableval} = x; then
2107 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
2108 echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
2109 { (exit 1); exit 1; }; }
2110 fi
2111 iconv_from_encodings=${enableval}
2112
2113 else
2114 iconv_from_encodings=
2115 fi
2116
2117 # Check whether --enable-newlib-iconv-to-encodings was given.
2118 if test "${enable_newlib_iconv_to_encodings+set}" = set; then
2119 enableval=$enable_newlib_iconv_to_encodings; if test x${enableval} = x; then
2120 { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
2121 echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
2122 { (exit 1); exit 1; }; }
2123 fi
2124 iconv_to_encodings=${enableval}
2125
2126 else
2127 iconv_to_encodings=
2128 fi
2129
2130 # Check whether --enable-newlib-iconv-external-ccs was given.
2131 if test "${enable_newlib_iconv_external_ccs+set}" = set; then
2132 enableval=$enable_newlib_iconv_external_ccs; if test "${newlib_iconv_external_ccs+set}" != set; then
2133 case "${enableval}" in
2134 yes) newlib_iconv_external_ccs=yes ;;
2135 no) newlib_iconv_external_ccs=no ;;
2136 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
2137 echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
2138 { (exit 1); exit 1; }; } ;;
2139 esac
2140 fi
2141 else
2142 newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
2143 fi
2144
2145 # Check whether --enable-newlib-atexit-dynamic-alloc was given.
2146 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
2147 enableval=$enable_newlib_atexit_dynamic_alloc; if test "${newlib_atexit_dynamic_alloc+set}" != set; then
2148 case "${enableval}" in
2149 yes) newlib_atexit_dynamic_alloc=yes ;;
2150 no) newlib_atexit_dynamic_alloc=no ;;
2151 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
2152 echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
2153 { (exit 1); exit 1; }; } ;;
2154 esac
2155 fi
2156 else
2157 newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
2158 fi
2159
2160 # Check whether --enable-newlib-reent-small was given.
2161 if test "${enable_newlib_reent_small+set}" = set; then
2162 enableval=$enable_newlib_reent_small; case "${enableval}" in
2163 yes) newlib_reent_small=yes;;
2164 no) newlib_reent_small=no ;;
2165 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
2166 echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
2167 { (exit 1); exit 1; }; } ;;
2168 esac
2169 else
2170 newlib_reent_small=
2171 fi
2172
2173
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178 { (exit 1); exit 1; }; }
2179
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2196
2197 fi
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2201 *-*-*) ;;
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2205 esac
2206 build=$ac_cv_build
2207 ac_save_IFS=$IFS; IFS='-'
2208 set x $ac_cv_build
2209 shift
2210 build_cpu=$1
2211 build_vendor=$2
2212 shift; shift
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2215 build_os=$*
2216 IFS=$ac_save_IFS
2217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2218
2219
2220 am__api_version="1.9"
2221 # Find a good install program. We prefer a C program (faster),
2222 # so one script is as good as another. But avoid the broken or
2223 # incompatible versions:
2224 # SysV /etc/install, /usr/sbin/install
2225 # SunOS /usr/etc/install
2226 # IRIX /sbin/install
2227 # AIX /bin/install
2228 # AmigaOS /C/install, which installs bootblocks on floppy discs
2229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232 # OS/2's system install, which has a completely different semantic
2233 # ./install, which can be erroneously created by make from ./install.sh.
2234 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2236 if test -z "$INSTALL"; then
2237 if test "${ac_cv_path_install+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 # Account for people who put trailing slashes in PATH elements.
2246 case $as_dir/ in
2247 ./ | .// | /cC/* | \
2248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2250 /usr/ucb/* ) ;;
2251 *)
2252 # OSF1 and SCO ODT 3.0 have their own names for install.
2253 # Don't use installbsd from OSF since it installs stuff as root
2254 # by default.
2255 for ac_prog in ginstall scoinst install; do
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258 if test $ac_prog = install &&
2259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # AIX install. It has an incompatible calling convention.
2261 :
2262 elif test $ac_prog = install &&
2263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # program-specific install script used by HP pwplus--don't use.
2265 :
2266 else
2267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2268 break 3
2269 fi
2270 fi
2271 done
2272 done
2273 ;;
2274 esac
2275 done
2276 IFS=$as_save_IFS
2277
2278
2279 fi
2280 if test "${ac_cv_path_install+set}" = set; then
2281 INSTALL=$ac_cv_path_install
2282 else
2283 # As a last resort, use the slow shell script. Don't cache a
2284 # value for INSTALL within a source directory, because that will
2285 # break other packages using the cache if that directory is
2286 # removed, or if the value is a relative name.
2287 INSTALL=$ac_install_sh
2288 fi
2289 fi
2290 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2291 echo "${ECHO_T}$INSTALL" >&6; }
2292
2293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2294 # It thinks the first close brace ends the variable substitution.
2295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2296
2297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2298
2299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2300
2301 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2302 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2303 # Just in case
2304 sleep 1
2305 echo timestamp > conftest.file
2306 # Do `set' in a subshell so we don't clobber the current shell's
2307 # arguments. Must try -L first in case configure is actually a
2308 # symlink; some systems play weird games with the mod time of symlinks
2309 # (eg FreeBSD returns the mod time of the symlink's containing
2310 # directory).
2311 if (
2312 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2313 if test "$*" = "X"; then
2314 # -L didn't work.
2315 set X `ls -t $srcdir/configure conftest.file`
2316 fi
2317 rm -f conftest.file
2318 if test "$*" != "X $srcdir/configure conftest.file" \
2319 && test "$*" != "X conftest.file $srcdir/configure"; then
2320
2321 # If neither matched, then we have a broken ls. This can happen
2322 # if, for instance, CONFIG_SHELL is bash and it inherits a
2323 # broken ls alias from the environment. This has actually
2324 # happened. Such a system could not be considered "sane".
2325 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2326 alias in your environment" >&5
2327 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2328 alias in your environment" >&2;}
2329 { (exit 1); exit 1; }; }
2330 fi
2331
2332 test "$2" = conftest.file
2333 )
2334 then
2335 # Ok.
2336 :
2337 else
2338 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2339 Check your system clock" >&5
2340 echo "$as_me: error: newly created file is older than distributed files!
2341 Check your system clock" >&2;}
2342 { (exit 1); exit 1; }; }
2343 fi
2344 { echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6; }
2346 test "$program_prefix" != NONE &&
2347 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2348 # Use a double $ so make ignores it.
2349 test "$program_suffix" != NONE &&
2350 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2351 # Double any \ or $. echo might interpret backslashes.
2352 # By default was `s,x,x', remove it if useless.
2353 cat <<\_ACEOF >conftest.sed
2354 s/[\\$]/&&/g;s/;s,x,x,$//
2355 _ACEOF
2356 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2357 rm -f conftest.sed
2358
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir=`cd $ac_aux_dir && pwd`
2361
2362 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2363 # Use eval to expand $SHELL
2364 if eval "$MISSING --run true"; then
2365 am_missing_run="$MISSING --run "
2366 else
2367 am_missing_run=
2368 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2369 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2370 fi
2371
2372 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2373 # We used to keeping the `.' as first argument, in order to
2374 # allow $(mkdir_p) to be used without argument. As in
2375 # $(mkdir_p) $(somedir)
2376 # where $(somedir) is conditionally defined. However this is wrong
2377 # for two reasons:
2378 # 1. if the package is installed by a user who cannot write `.'
2379 # make install will fail,
2380 # 2. the above comment should most certainly read
2381 # $(mkdir_p) $(DESTDIR)$(somedir)
2382 # so it does not work when $(somedir) is undefined and
2383 # $(DESTDIR) is not.
2384 # To support the latter case, we have to write
2385 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2386 # so the `.' trick is pointless.
2387 mkdir_p='mkdir -p --'
2388 else
2389 # On NextStep and OpenStep, the `mkdir' command does not
2390 # recognize any option. It will interpret all options as
2391 # directories to create, and then abort because `.' already
2392 # exists.
2393 for d in ./-p ./--version;
2394 do
2395 test -d $d && rmdir $d
2396 done
2397 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2398 if test -f "$ac_aux_dir/mkinstalldirs"; then
2399 mkdir_p='$(mkinstalldirs)'
2400 else
2401 mkdir_p='$(install_sh) -d'
2402 fi
2403 fi
2404
2405 for ac_prog in gawk mawk nawk awk
2406 do
2407 # Extract the first word of "$ac_prog", so it can be a program name with args.
2408 set dummy $ac_prog; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_AWK+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 if test -n "$AWK"; then
2415 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_AWK="$ac_prog"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 fi
2433 fi
2434 AWK=$ac_cv_prog_AWK
2435 if test -n "$AWK"; then
2436 { echo "$as_me:$LINENO: result: $AWK" >&5
2437 echo "${ECHO_T}$AWK" >&6; }
2438 else
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2441 fi
2442
2443
2444 test -n "$AWK" && break
2445 done
2446
2447 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2448 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2449 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2450 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.make <<\_ACEOF
2454 SHELL = /bin/sh
2455 all:
2456 @echo '@@@%%%=$(MAKE)=@@@%%%'
2457 _ACEOF
2458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2460 *@@@%%%=?*=@@@%%%*)
2461 eval ac_cv_prog_make_${ac_make}_set=yes;;
2462 *)
2463 eval ac_cv_prog_make_${ac_make}_set=no;;
2464 esac
2465 rm -f conftest.make
2466 fi
2467 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2468 { echo "$as_me:$LINENO: result: yes" >&5
2469 echo "${ECHO_T}yes" >&6; }
2470 SET_MAKE=
2471 else
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2474 SET_MAKE="MAKE=${MAKE-make}"
2475 fi
2476
2477 rm -rf .tst 2>/dev/null
2478 mkdir .tst 2>/dev/null
2479 if test -d .tst; then
2480 am__leading_dot=.
2481 else
2482 am__leading_dot=_
2483 fi
2484 rmdir .tst 2>/dev/null
2485
2486 DEPDIR="${am__leading_dot}deps"
2487
2488 ac_config_commands="$ac_config_commands depfiles"
2489
2490
2491 am_make=${MAKE-make}
2492 cat > confinc << 'END'
2493 am__doit:
2494 @echo done
2495 .PHONY: am__doit
2496 END
2497 # If we don't find an include directive, just comment out the code.
2498 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2499 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2500 am__include="#"
2501 am__quote=
2502 _am_result=none
2503 # First try GNU make style include.
2504 echo "include confinc" > confmf
2505 # We grep out `Entering directory' and `Leaving directory'
2506 # messages which can occur if `w' ends up in MAKEFLAGS.
2507 # In particular we don't look at `^make:' because GNU make might
2508 # be invoked under some other name (usually "gmake"), in which
2509 # case it prints its new name instead of `make'.
2510 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2511 am__include=include
2512 am__quote=
2513 _am_result=GNU
2514 fi
2515 # Now try BSD make style include.
2516 if test "$am__include" = "#"; then
2517 echo '.include "confinc"' > confmf
2518 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2519 am__include=.include
2520 am__quote="\""
2521 _am_result=BSD
2522 fi
2523 fi
2524
2525
2526 { echo "$as_me:$LINENO: result: $_am_result" >&5
2527 echo "${ECHO_T}$_am_result" >&6; }
2528 rm -f confinc confmf
2529
2530 # Check whether --enable-dependency-tracking was given.
2531 if test "${enable_dependency_tracking+set}" = set; then
2532 enableval=$enable_dependency_tracking;
2533 fi
2534
2535 if test "x$enable_dependency_tracking" != xno; then
2536 am_depcomp="$ac_aux_dir/depcomp"
2537 AMDEPBACKSLASH='\'
2538 fi
2539
2540
2541 if test "x$enable_dependency_tracking" != xno; then
2542 AMDEP_TRUE=
2543 AMDEP_FALSE='#'
2544 else
2545 AMDEP_TRUE='#'
2546 AMDEP_FALSE=
2547 fi
2548
2549
2550
2551
2552 # Check whether --enable-multilib was given.
2553 if test "${enable_multilib+set}" = set; then
2554 enableval=$enable_multilib; case "${enableval}" in
2555 yes) multilib=yes ;;
2556 no) multilib=no ;;
2557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2558 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2559 { (exit 1); exit 1; }; } ;;
2560 esac
2561 else
2562 multilib=yes
2563 fi
2564
2565 # Check whether --enable-target-optspace was given.
2566 if test "${enable_target_optspace+set}" = set; then
2567 enableval=$enable_target_optspace; case "${enableval}" in
2568 yes) target_optspace=yes ;;
2569 no) target_optspace=no ;;
2570 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2571 echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2572 { (exit 1); exit 1; }; } ;;
2573 esac
2574 else
2575 target_optspace=
2576 fi
2577
2578 # Check whether --enable-malloc-debugging was given.
2579 if test "${enable_malloc_debugging+set}" = set; then
2580 enableval=$enable_malloc_debugging; case "${enableval}" in
2581 yes) malloc_debugging=yes ;;
2582 no) malloc_debugging=no ;;
2583 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2584 echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2585 { (exit 1); exit 1; }; } ;;
2586 esac
2587 else
2588 malloc_debugging=
2589 fi
2590
2591 # Check whether --enable-newlib-multithread was given.
2592 if test "${enable_newlib_multithread+set}" = set; then
2593 enableval=$enable_newlib_multithread; case "${enableval}" in
2594 yes) newlib_multithread=yes ;;
2595 no) newlib_multithread=no ;;
2596 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2597 echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2598 { (exit 1); exit 1; }; } ;;
2599 esac
2600 else
2601 newlib_multithread=yes
2602 fi
2603
2604 # Check whether --enable-newlib-iconv was given.
2605 if test "${enable_newlib_iconv+set}" = set; then
2606 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2607 case "${enableval}" in
2608 yes) newlib_iconv=yes ;;
2609 no) newlib_iconv=no ;;
2610 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2611 echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2612 { (exit 1); exit 1; }; } ;;
2613 esac
2614 fi
2615 else
2616 newlib_iconv=${newlib_iconv}
2617 fi
2618
2619 # Check whether --enable-newlib-elix-level was given.
2620 if test "${enable_newlib_elix_level+set}" = set; then
2621 enableval=$enable_newlib_elix_level; case "${enableval}" in
2622 0) newlib_elix_level=0 ;;
2623 1) newlib_elix_level=1 ;;
2624 2) newlib_elix_level=2 ;;
2625 3) newlib_elix_level=3 ;;
2626 4) newlib_elix_level=4 ;;
2627 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2628 echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2629 { (exit 1); exit 1; }; } ;;
2630 esac
2631 else
2632 newlib_elix_level=0
2633 fi
2634
2635 # Check whether --enable-newlib-io-float was given.
2636 if test "${enable_newlib_io_float+set}" = set; then
2637 enableval=$enable_newlib_io_float; case "${enableval}" in
2638 yes) newlib_io_float=yes ;;
2639 no) newlib_io_float=no ;;
2640 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2641 echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2642 { (exit 1); exit 1; }; } ;;
2643 esac
2644 else
2645 newlib_io_float=yes
2646 fi
2647
2648 # Check whether --enable-newlib-supplied-syscalls was given.
2649 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2650 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2651 yes) newlib_may_supply_syscalls=yes ;;
2652 no) newlib_may_supply_syscalls=no ;;
2653 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2654 echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2655 { (exit 1); exit 1; }; } ;;
2656 esac
2657 else
2658 newlib_may_supply_syscalls=yes
2659 fi
2660
2661
2662
2663 if test x${newlib_may_supply_syscalls} = xyes; then
2664 MAY_SUPPLY_SYSCALLS_TRUE=
2665 MAY_SUPPLY_SYSCALLS_FALSE='#'
2666 else
2667 MAY_SUPPLY_SYSCALLS_TRUE='#'
2668 MAY_SUPPLY_SYSCALLS_FALSE=
2669 fi
2670
2671
2672
2673 test -z "${with_target_subdir}" && with_target_subdir=.
2674
2675 if test "${srcdir}" = "."; then
2676 if test "${with_target_subdir}" != "."; then
2677 newlib_basedir="${srcdir}/${with_multisrctop}../."
2678 else
2679 newlib_basedir="${srcdir}/${with_multisrctop}."
2680 fi
2681 else
2682 newlib_basedir="${srcdir}/."
2683 fi
2684
2685
2686 { echo "$as_me:$LINENO: checking host system type" >&5
2687 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2688 if test "${ac_cv_host+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test "x$host_alias" = x; then
2692 ac_cv_host=$ac_cv_build
2693 else
2694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2695 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2696 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2697 { (exit 1); exit 1; }; }
2698 fi
2699
2700 fi
2701 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2702 echo "${ECHO_T}$ac_cv_host" >&6; }
2703 case $ac_cv_host in
2704 *-*-*) ;;
2705 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2706 echo "$as_me: error: invalid value of canonical host" >&2;}
2707 { (exit 1); exit 1; }; };;
2708 esac
2709 host=$ac_cv_host
2710 ac_save_IFS=$IFS; IFS='-'
2711 set x $ac_cv_host
2712 shift
2713 host_cpu=$1
2714 host_vendor=$2
2715 shift; shift
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2718 host_os=$*
2719 IFS=$ac_save_IFS
2720 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2721
2722
2723
2724 # test to see if srcdir already configured
2725 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2726 test -f $srcdir/config.status; then
2727 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2728 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2729 { (exit 1); exit 1; }; }
2730 fi
2731
2732 # test whether we have cygpath
2733 if test -z "$CYGPATH_W"; then
2734 if (cygpath --version) >/dev/null 2>/dev/null; then
2735 CYGPATH_W='cygpath -w'
2736 else
2737 CYGPATH_W=echo
2738 fi
2739 fi
2740
2741
2742 # Define the identity of the package.
2743 PACKAGE='newlib'
2744 VERSION='1.16.0'
2745
2746
2747 # Some tools Automake needs.
2748
2749 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2750
2751
2752 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2753
2754
2755 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2756
2757
2758 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2759
2760
2761 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2762
2763 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2764
2765 # Installed binaries are usually stripped using `strip' when the user
2766 # run `make install-strip'. However `strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the `STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}strip; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_STRIP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 STRIP=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { echo "$as_me:$LINENO: result: $STRIP" >&5
2801 echo "${ECHO_T}$STRIP" >&6; }
2802 else
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2805 fi
2806
2807
2808 fi
2809 if test -z "$ac_cv_prog_STRIP"; then
2810 ac_ct_STRIP=$STRIP
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_STRIP="strip"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2841 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2842 else
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847 if test "x$ac_ct_STRIP" = x; then
2848 STRIP=":"
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&5
2855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 STRIP=$ac_ct_STRIP
2861 fi
2862 else
2863 STRIP="$ac_cv_prog_STRIP"
2864 fi
2865
2866 fi
2867 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2868
2869 # We need awk for the "check" target. The system "awk" is bad on
2870 # some platforms.
2871 # Always define AMTAR for backward compatibility.
2872
2873 AMTAR=${AMTAR-"${am_missing_run}tar"}
2874
2875 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2876
2877
2878
2879
2880
2881
2882 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2883 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2884 # are probably using a cross compiler, which will not be able to fully
2885 # link an executable. This should really be fixed in autoconf
2886 # itself.
2887
2888
2889
2890
2891
2892
2893
2894 # Extract the first word of "gcc", so it can be a program name with args.
2895 set dummy gcc; ac_word=$2
2896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="gcc"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2925 else
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2928 fi
2929
2930
2931
2932 depcc="$CC" am_compiler_list=
2933
2934 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2944 # in D'.
2945 mkdir conftest.dir
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2949 cd conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2955 # directory.
2956 mkdir sub
2957
2958 am_cv_CC_dependencies_compiler_type=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2961 fi
2962 for depmode in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2966 #
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2970 : > sub/conftest.c
2971 for i in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub/conftst$i.h
2976 done
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2978
2979 case $depmode in
2980 nosideeffect)
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes; then
2984 continue
2985 else
2986 break
2987 fi
2988 ;;
2989 none) break ;;
2990 esac
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode=$depmode \
2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998 >/dev/null 2>conftest.err &&
2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3012 break
3013 fi
3014 fi
3015 done
3016
3017 cd ..
3018 rm -rf conftest.dir
3019 else
3020 am_cv_CC_dependencies_compiler_type=none
3021 fi
3022
3023 fi
3024 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3027
3028
3029
3030 if
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3033 am__fastdepCC_TRUE=
3034 am__fastdepCC_FALSE='#'
3035 else
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3038 fi
3039
3040
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 ac_prog_rejected=no
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3062 continue
3063 fi
3064 ac_cv_prog_CC="cc"
3065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3075 shift
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3080 shift
3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3082 fi
3083 fi
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088 { echo "$as_me:$LINENO: result: $CC" >&5
3089 echo "${ECHO_T}$CC" >&6; }
3090 else
3091 { echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6; }
3093 fi
3094
3095
3096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3097 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3098 { (exit 1); exit 1; }; }
3099 fi
3100
3101 { echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3102 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6; }
3103 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat > conftest.c <<EOF
3107 #ifdef __GNUC__
3108 yes;
3109 #endif
3110 EOF
3111 if { ac_try='${CC-cc} -E conftest.c'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3117 ac_cv_c_compiler_gnu=yes
3118 else
3119 ac_cv_c_compiler_gnu=no
3120 fi
3121 fi
3122 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3124
3125 if test $ac_cv_c_compiler_gnu = yes; then
3126 GCC=yes
3127 ac_test_CFLAGS="${CFLAGS+set}"
3128 ac_save_CFLAGS="$CFLAGS"
3129 CFLAGS=
3130 ac_test_CFLAGS=${CFLAGS+set}
3131 ac_save_CFLAGS=$CFLAGS
3132 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_cc_g+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 ac_save_c_werror_flag=$ac_c_werror_flag
3138 ac_c_werror_flag=yes
3139 ac_cv_prog_cc_g=no
3140 CFLAGS="-g"
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147
3148 int
3149 main ()
3150 {
3151
3152 ;
3153 return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3173 ac_cv_prog_cc_g=yes
3174 else
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 CFLAGS=""
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } && {
3208 test -z "$ac_c_werror_flag" ||
3209 test ! -s conftest.err
3210 } && test -s conftest.$ac_objext; then
3211 :
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 ac_c_werror_flag=$ac_save_c_werror_flag
3217 CFLAGS="-g"
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3250 ac_cv_prog_cc_g=yes
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3269 if test "$ac_test_CFLAGS" = set; then
3270 CFLAGS=$ac_save_CFLAGS
3271 elif test $ac_cv_prog_cc_g = yes; then
3272 if test "$GCC" = yes; then
3273 CFLAGS="-g -O2"
3274 else
3275 CFLAGS="-g"
3276 fi
3277 else
3278 if test "$GCC" = yes; then
3279 CFLAGS="-O2"
3280 else
3281 CFLAGS=
3282 fi
3283 fi
3284 if test "$ac_test_CFLAGS" = set; then
3285 CFLAGS="$ac_save_CFLAGS"
3286 elif test $ac_cv_prog_cc_g = yes; then
3287 CFLAGS="-g -O2"
3288 else
3289 CFLAGS="-O2"
3290 fi
3291 else
3292 GCC=
3293 test "${CFLAGS+set}" = set || CFLAGS="-g"
3294 fi
3295
3296
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}as; ac_word=$2
3300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3302 if test "${ac_cv_prog_AS+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if test -n "$AS"; then
3306 ac_cv_prog_AS="$AS" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_AS="${ac_tool_prefix}as"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 AS=$ac_cv_prog_AS
3326 if test -n "$AS"; then
3327 { echo "$as_me:$LINENO: result: $AS" >&5
3328 echo "${ECHO_T}$AS" >&6; }
3329 else
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_AS"; then
3337 ac_ct_AS=$AS
3338 # Extract the first word of "as", so it can be a program name with args.
3339 set dummy as; ac_word=$2
3340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3342 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 if test -n "$ac_ct_AS"; then
3346 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_ac_ct_AS="as"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3366 if test -n "$ac_ct_AS"; then
3367 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3368 echo "${ECHO_T}$ac_ct_AS" >&6; }
3369 else
3370 { echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6; }
3372 fi
3373
3374 if test "x$ac_ct_AS" = x; then
3375 AS=""
3376 else
3377 case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3380 whose name does not start with the host triplet. If you think this
3381 configuration is useful to you, please write to autoconf@gnu.org." >&5
3382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3383 whose name does not start with the host triplet. If you think this
3384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3385 ac_tool_warned=yes ;;
3386 esac
3387 AS=$ac_ct_AS
3388 fi
3389 else
3390 AS="$ac_cv_prog_AS"
3391 fi
3392
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}ar; ac_word=$2
3396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3398 if test "${ac_cv_prog_AR+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$AR"; then
3402 ac_cv_prog_AR="$AR" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_AR="${ac_tool_prefix}ar"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 AR=$ac_cv_prog_AR
3422 if test -n "$AR"; then
3423 { echo "$as_me:$LINENO: result: $AR" >&5
3424 echo "${ECHO_T}$AR" >&6; }
3425 else
3426 { echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6; }
3428 fi
3429
3430
3431 fi
3432 if test -z "$ac_cv_prog_AR"; then
3433 ac_ct_AR=$AR
3434 # Extract the first word of "ar", so it can be a program name with args.
3435 set dummy ar; ac_word=$2
3436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if test -n "$ac_ct_AR"; then
3442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_ac_ct_AR="ar"
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 fi
3460 fi
3461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3462 if test -n "$ac_ct_AR"; then
3463 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3464 echo "${ECHO_T}$ac_ct_AR" >&6; }
3465 else
3466 { echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6; }
3468 fi
3469
3470 if test "x$ac_ct_AR" = x; then
3471 AR=""
3472 else
3473 case $cross_compiling:$ac_tool_warned in
3474 yes:)
3475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3476 whose name does not start with the host triplet. If you think this
3477 configuration is useful to you, please write to autoconf@gnu.org." >&5
3478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3479 whose name does not start with the host triplet. If you think this
3480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483 AR=$ac_ct_AR
3484 fi
3485 else
3486 AR="$ac_cv_prog_AR"
3487 fi
3488
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_RANLIB+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$RANLIB"; then
3498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 RANLIB=$ac_cv_prog_RANLIB
3518 if test -n "$RANLIB"; then
3519 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3520 echo "${ECHO_T}$RANLIB" >&6; }
3521 else
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3524 fi
3525
3526
3527 fi
3528 if test -z "$ac_cv_prog_RANLIB"; then
3529 ac_ct_RANLIB=$RANLIB
3530 # Extract the first word of "ranlib", so it can be a program name with args.
3531 set dummy ranlib; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$ac_ct_RANLIB"; then
3538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_ac_ct_RANLIB="ranlib"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3558 if test -n "$ac_ct_RANLIB"; then
3559 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3561 else
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3564 fi
3565
3566 if test "x$ac_ct_RANLIB" = x; then
3567 RANLIB=":"
3568 else
3569 case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3572 whose name does not start with the host triplet. If you think this
3573 configuration is useful to you, please write to autoconf@gnu.org." >&5
3574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3575 whose name does not start with the host triplet. If you think this
3576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 RANLIB=$ac_ct_RANLIB
3580 fi
3581 else
3582 RANLIB="$ac_cv_prog_RANLIB"
3583 fi
3584
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3590 if test "${ac_cv_prog_READELF+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 if test -n "$READELF"; then
3594 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 READELF=$ac_cv_prog_READELF
3614 if test -n "$READELF"; then
3615 { echo "$as_me:$LINENO: result: $READELF" >&5
3616 echo "${ECHO_T}$READELF" >&6; }
3617 else
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3620 fi
3621
3622
3623 fi
3624 if test -z "$ac_cv_prog_READELF"; then
3625 ac_ct_READELF=$READELF
3626 # Extract the first word of "readelf", so it can be a program name with args.
3627 set dummy readelf; ac_word=$2
3628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3630 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 if test -n "$ac_ct_READELF"; then
3634 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_READELF="readelf"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3654 if test -n "$ac_ct_READELF"; then
3655 { echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3656 echo "${ECHO_T}$ac_ct_READELF" >&6; }
3657 else
3658 { echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6; }
3660 fi
3661
3662 if test "x$ac_ct_READELF" = x; then
3663 READELF=":"
3664 else
3665 case $cross_compiling:$ac_tool_warned in
3666 yes:)
3667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3668 whose name does not start with the host triplet. If you think this
3669 configuration is useful to you, please write to autoconf@gnu.org." >&5
3670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3671 whose name does not start with the host triplet. If you think this
3672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3673 ac_tool_warned=yes ;;
3674 esac
3675 READELF=$ac_ct_READELF
3676 fi
3677 else
3678 READELF="$ac_cv_prog_READELF"
3679 fi
3680
3681
3682 # Find a good install program. We prefer a C program (faster),
3683 # so one script is as good as another. But avoid the broken or
3684 # incompatible versions:
3685 # SysV /etc/install, /usr/sbin/install
3686 # SunOS /usr/etc/install
3687 # IRIX /sbin/install
3688 # AIX /bin/install
3689 # AmigaOS /C/install, which installs bootblocks on floppy discs
3690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3693 # OS/2's system install, which has a completely different semantic
3694 # ./install, which can be erroneously created by make from ./install.sh.
3695 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3696 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3697 if test -z "$INSTALL"; then
3698 if test "${ac_cv_path_install+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 # Account for people who put trailing slashes in PATH elements.
3707 case $as_dir/ in
3708 ./ | .// | /cC/* | \
3709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3711 /usr/ucb/* ) ;;
3712 *)
3713 # OSF1 and SCO ODT 3.0 have their own names for install.
3714 # Don't use installbsd from OSF since it installs stuff as root
3715 # by default.
3716 for ac_prog in ginstall scoinst install; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3719 if test $ac_prog = install &&
3720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3721 # AIX install. It has an incompatible calling convention.
3722 :
3723 elif test $ac_prog = install &&
3724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3725 # program-specific install script used by HP pwplus--don't use.
3726 :
3727 else
3728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3729 break 3
3730 fi
3731 fi
3732 done
3733 done
3734 ;;
3735 esac
3736 done
3737 IFS=$as_save_IFS
3738
3739
3740 fi
3741 if test "${ac_cv_path_install+set}" = set; then
3742 INSTALL=$ac_cv_path_install
3743 else
3744 # As a last resort, use the slow shell script. Don't cache a
3745 # value for INSTALL within a source directory, because that will
3746 # break other packages using the cache if that directory is
3747 # removed, or if the value is a relative name.
3748 INSTALL=$ac_install_sh
3749 fi
3750 fi
3751 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3752 echo "${ECHO_T}$INSTALL" >&6; }
3753
3754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3755 # It thinks the first close brace ends the variable substitution.
3756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3757
3758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3759
3760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3761
3762
3763 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3764 ac_given_INSTALL=$INSTALL
3765
3766 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3767 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
3768 # Check whether --enable-maintainer-mode was given.
3769 if test "${enable_maintainer_mode+set}" = set; then
3770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3771 else
3772 USE_MAINTAINER_MODE=no
3773 fi
3774
3775 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3776 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
3777
3778
3779 if test $USE_MAINTAINER_MODE = yes; then
3780 MAINTAINER_MODE_TRUE=
3781 MAINTAINER_MODE_FALSE='#'
3782 else
3783 MAINTAINER_MODE_TRUE='#'
3784 MAINTAINER_MODE_FALSE=
3785 fi
3786
3787 MAINT=$MAINTAINER_MODE_TRUE
3788
3789
3790 # By default we simply use the C compiler to build assembly code.
3791
3792 test "${CCAS+set}" = set || CCAS=$CC
3793 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3794
3795
3796
3797
3798 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3799 # at least currently, we never actually build a program, so we never
3800 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3801 # fails, because we are probably configuring with a cross compiler
3802 # which can't create executables. So we include AC_EXEEXT to keep
3803 # automake happy, but we don't execute it, since we don't care about
3804 # the result.
3805 if false; then
3806
3807 dummy_var=1
3808 fi
3809
3810 . ${newlib_basedir}/configure.host
3811
3812 newlib_cflags="${newlib_cflags} -fno-builtin"
3813
3814 NEWLIB_CFLAGS=${newlib_cflags}
3815
3816
3817 LDFLAGS=${ldflags}
3818
3819
3820
3821
3822 if test x${newlib_elix_level} = x0; then
3823 ELIX_LEVEL_0_TRUE=
3824 ELIX_LEVEL_0_FALSE='#'
3825 else
3826 ELIX_LEVEL_0_TRUE='#'
3827 ELIX_LEVEL_0_FALSE=
3828 fi
3829
3830
3831
3832 if test x${newlib_elix_level} = x1; then
3833 ELIX_LEVEL_1_TRUE=
3834 ELIX_LEVEL_1_FALSE='#'
3835 else
3836 ELIX_LEVEL_1_TRUE='#'
3837 ELIX_LEVEL_1_FALSE=
3838 fi
3839
3840
3841
3842 if test x${newlib_elix_level} = x2; then
3843 ELIX_LEVEL_2_TRUE=
3844 ELIX_LEVEL_2_FALSE='#'
3845 else
3846 ELIX_LEVEL_2_TRUE='#'
3847 ELIX_LEVEL_2_FALSE=
3848 fi
3849
3850
3851
3852 if test x${newlib_elix_level} = x3; then
3853 ELIX_LEVEL_3_TRUE=
3854 ELIX_LEVEL_3_FALSE='#'
3855 else
3856 ELIX_LEVEL_3_TRUE='#'
3857 ELIX_LEVEL_3_FALSE=
3858 fi
3859
3860
3861
3862 if test x${newlib_elix_level} = x4; then
3863 ELIX_LEVEL_4_TRUE=
3864 ELIX_LEVEL_4_FALSE='#'
3865 else
3866 ELIX_LEVEL_4_TRUE='#'
3867 ELIX_LEVEL_4_FALSE=
3868 fi
3869
3870
3871
3872
3873 if test x${use_libtool} = xyes; then
3874 USE_LIBTOOL_TRUE=
3875 USE_LIBTOOL_FALSE='#'
3876 else
3877 USE_LIBTOOL_TRUE='#'
3878 USE_LIBTOOL_FALSE=
3879 fi
3880
3881
3882 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3883 # use oext, which is set in configure.host based on the target platform.
3884 OBJEXT=${oext}
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3897 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3898 if test "${ac_cv_path_SED+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3902 for ac_i in 1 2 3 4 5 6 7; do
3903 ac_script="$ac_script$as_nl$ac_script"
3904 done
3905 echo "$ac_script" | sed 99q >conftest.sed
3906 $as_unset ac_script || ac_script=
3907 # Extract the first word of "sed gsed" to use in msg output
3908 if test -z "$SED"; then
3909 set dummy sed gsed; ac_prog_name=$2
3910 if test "${ac_cv_path_SED+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 ac_path_SED_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in sed gsed; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3924 # Check for GNU ac_path_SED and select it if it is found.
3925 # Check for GNU $ac_path_SED
3926 case `"$ac_path_SED" --version 2>&1` in
3927 *GNU*)
3928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3929 *)
3930 ac_count=0
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932 while :
3933 do
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo '' >> "conftest.nl"
3938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_SED_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_SED="$ac_path_SED"
3944 ac_path_SED_max=$ac_count
3945 fi
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 esac
3951
3952
3953 $ac_path_SED_found && break 3
3954 done
3955 done
3956
3957 done
3958 IFS=$as_save_IFS
3959
3960
3961 fi
3962
3963 SED="$ac_cv_path_SED"
3964 if test -z "$SED"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3967 { (exit 1); exit 1; }; }
3968 fi
3969
3970 else
3971 ac_cv_path_SED=$SED
3972 fi
3973
3974 fi
3975 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3976 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3977 SED="$ac_cv_path_SED"
3978 rm -f conftest.sed
3979
3980 test -z "$SED" && SED=sed
3981 Xsed="$SED -e 1s/^X//"
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993 for ac_prog in gawk mawk nawk awk
3994 do
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_AWK+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 if test -n "$AWK"; then
4003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_AWK="$ac_prog"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 AWK=$ac_cv_prog_AWK
4023 if test -n "$AWK"; then
4024 { echo "$as_me:$LINENO: result: $AWK" >&5
4025 echo "${ECHO_T}$AWK" >&6; }
4026 else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030
4031
4032 test -n "$AWK" && break
4033 done
4034
4035 if test "${use_libtool}" = "yes"; then
4036 enable_win32_dll=yes
4037
4038 case $host in
4039 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}as; ac_word=$2
4043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4045 if test "${ac_cv_prog_AS+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 if test -n "$AS"; then
4049 ac_cv_prog_AS="$AS" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058 ac_cv_prog_AS="${ac_tool_prefix}as"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 AS=$ac_cv_prog_AS
4069 if test -n "$AS"; then
4070 { echo "$as_me:$LINENO: result: $AS" >&5
4071 echo "${ECHO_T}$AS" >&6; }
4072 else
4073 { echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$ac_cv_prog_AS"; then
4080 ac_ct_AS=$AS
4081 # Extract the first word of "as", so it can be a program name with args.
4082 set dummy as; ac_word=$2
4083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4085 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088 if test -n "$ac_ct_AS"; then
4089 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_ac_ct_AS="as"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4109 if test -n "$ac_ct_AS"; then
4110 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4111 echo "${ECHO_T}$ac_ct_AS" >&6; }
4112 else
4113 { echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6; }
4115 fi
4116
4117 if test "x$ac_ct_AS" = x; then
4118 AS="false"
4119 else
4120 case $cross_compiling:$ac_tool_warned in
4121 yes:)
4122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4123 whose name does not start with the host triplet. If you think this
4124 configuration is useful to you, please write to autoconf@gnu.org." >&5
4125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4126 whose name does not start with the host triplet. If you think this
4127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4128 ac_tool_warned=yes ;;
4129 esac
4130 AS=$ac_ct_AS
4131 fi
4132 else
4133 AS="$ac_cv_prog_AS"
4134 fi
4135
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 if test -n "$DLLTOOL"; then
4145 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 DLLTOOL=$ac_cv_prog_DLLTOOL
4165 if test -n "$DLLTOOL"; then
4166 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4167 echo "${ECHO_T}$DLLTOOL" >&6; }
4168 else
4169 { echo "$as_me:$LINENO: result: no" >&5
4170 echo "${ECHO_T}no" >&6; }
4171 fi
4172
4173
4174 fi
4175 if test -z "$ac_cv_prog_DLLTOOL"; then
4176 ac_ct_DLLTOOL=$DLLTOOL
4177 # Extract the first word of "dlltool", so it can be a program name with args.
4178 set dummy dlltool; ac_word=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 if test -n "$ac_ct_DLLTOOL"; then
4185 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4197 fi
4198 done
4199 done
4200 IFS=$as_save_IFS
4201
4202 fi
4203 fi
4204 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4205 if test -n "$ac_ct_DLLTOOL"; then
4206 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4207 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4208 else
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4211 fi
4212
4213 if test "x$ac_ct_DLLTOOL" = x; then
4214 DLLTOOL="false"
4215 else
4216 case $cross_compiling:$ac_tool_warned in
4217 yes:)
4218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet. If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&5
4221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4222 whose name does not start with the host triplet. If you think this
4223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4224 ac_tool_warned=yes ;;
4225 esac
4226 DLLTOOL=$ac_ct_DLLTOOL
4227 fi
4228 else
4229 DLLTOOL="$ac_cv_prog_DLLTOOL"
4230 fi
4231
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240 if test -n "$OBJDUMP"; then
4241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 OBJDUMP=$ac_cv_prog_OBJDUMP
4261 if test -n "$OBJDUMP"; then
4262 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4263 echo "${ECHO_T}$OBJDUMP" >&6; }
4264 else
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4267 fi
4268
4269
4270 fi
4271 if test -z "$ac_cv_prog_OBJDUMP"; then
4272 ac_ct_OBJDUMP=$OBJDUMP
4273 # Extract the first word of "objdump", so it can be a program name with args.
4274 set dummy objdump; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$ac_ct_OBJDUMP"; then
4281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4301 if test -n "$ac_ct_OBJDUMP"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4303 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4304 else
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4307 fi
4308
4309 if test "x$ac_ct_OBJDUMP" = x; then
4310 OBJDUMP="false"
4311 else
4312 case $cross_compiling:$ac_tool_warned in
4313 yes:)
4314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4321 esac
4322 OBJDUMP=$ac_ct_OBJDUMP
4323 fi
4324 else
4325 OBJDUMP="$ac_cv_prog_OBJDUMP"
4326 fi
4327
4328 ;;
4329 esac
4330
4331 test -z "$AS" && AS=as
4332
4333
4334
4335
4336
4337 test -z "$DLLTOOL" && DLLTOOL=dlltool
4338
4339
4340
4341
4342
4343 test -z "$OBJDUMP" && OBJDUMP=objdump
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353 macro_version='2.1a'
4354 macro_revision='1.2435'
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 ltmain="$ac_aux_dir/ltmain.sh"
4368
4369 # Set options
4370
4371 enable_dlopen=no
4372
4373
4374
4375 # Check whether --enable-shared was given.
4376 if test "${enable_shared+set}" = set; then
4377 enableval=$enable_shared; p=${PACKAGE-default}
4378 case $enableval in
4379 yes) enable_shared=yes ;;
4380 no) enable_shared=no ;;
4381 *)
4382 enable_shared=no
4383 # Look at the argument we got. We use all the common list separators.
4384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4385 for pkg in $enableval; do
4386 IFS="$lt_save_ifs"
4387 if test "X$pkg" = "X$p"; then
4388 enable_shared=yes
4389 fi
4390 done
4391 IFS="$lt_save_ifs"
4392 ;;
4393 esac
4394 else
4395 enable_shared=yes
4396 fi
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 # Check whether --enable-static was given.
4407 if test "${enable_static+set}" = set; then
4408 enableval=$enable_static; p=${PACKAGE-default}
4409 case $enableval in
4410 yes) enable_static=yes ;;
4411 no) enable_static=no ;;
4412 *)
4413 enable_static=no
4414 # Look at the argument we got. We use all the common list separators.
4415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4416 for pkg in $enableval; do
4417 IFS="$lt_save_ifs"
4418 if test "X$pkg" = "X$p"; then
4419 enable_static=yes
4420 fi
4421 done
4422 IFS="$lt_save_ifs"
4423 ;;
4424 esac
4425 else
4426 enable_static=yes
4427 fi
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438 # Check whether --with-pic was given.
4439 if test "${with_pic+set}" = set; then
4440 withval=$with_pic; pic_mode="$withval"
4441 else
4442 pic_mode=default
4443 fi
4444
4445
4446 test -z "$pic_mode" && pic_mode=default
4447
4448
4449
4450
4451
4452
4453
4454 # Check whether --enable-fast-install was given.
4455 if test "${enable_fast_install+set}" = set; then
4456 enableval=$enable_fast_install; p=${PACKAGE-default}
4457 case $enableval in
4458 yes) enable_fast_install=yes ;;
4459 no) enable_fast_install=no ;;
4460 *)
4461 enable_fast_install=no
4462 # Look at the argument we got. We use all the common list separators.
4463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4464 for pkg in $enableval; do
4465 IFS="$lt_save_ifs"
4466 if test "X$pkg" = "X$p"; then
4467 enable_fast_install=yes
4468 fi
4469 done
4470 IFS="$lt_save_ifs"
4471 ;;
4472 esac
4473 else
4474 enable_fast_install=yes
4475 fi
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_prog_CC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 CC=$ac_cv_prog_CC
4519 if test -n "$CC"; then
4520 { echo "$as_me:$LINENO: result: $CC" >&5
4521 echo "${ECHO_T}$CC" >&6; }
4522 else
4523 { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4525 fi
4526
4527
4528 fi
4529 if test -z "$ac_cv_prog_CC"; then
4530 ac_ct_CC=$CC
4531 # Extract the first word of "gcc", so it can be a program name with args.
4532 set dummy gcc; ac_word=$2
4533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 if test -n "$ac_ct_CC"; then
4539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_prog_ac_ct_CC="gcc"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 fi
4557 fi
4558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4559 if test -n "$ac_ct_CC"; then
4560 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4561 echo "${ECHO_T}$ac_ct_CC" >&6; }
4562 else
4563 { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567 if test "x$ac_ct_CC" = x; then
4568 CC=""
4569 else
4570 case $cross_compiling:$ac_tool_warned in
4571 yes:)
4572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4573 whose name does not start with the host triplet. If you think this
4574 configuration is useful to you, please write to autoconf@gnu.org." >&5
4575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4576 whose name does not start with the host triplet. If you think this
4577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4578 ac_tool_warned=yes ;;
4579 esac
4580 CC=$ac_ct_CC
4581 fi
4582 else
4583 CC="$ac_cv_prog_CC"
4584 fi
4585
4586 if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}cc; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_CC+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_CC="${ac_tool_prefix}cc"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 CC=$ac_cv_prog_CC
4616 if test -n "$CC"; then
4617 { echo "$as_me:$LINENO: result: $CC" >&5
4618 echo "${ECHO_T}$CC" >&6; }
4619 else
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625 fi
4626 fi
4627 if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629 set dummy cc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 ac_prog_rejected=no
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_CC="cc"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_CC
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set CC to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669 fi
4670 fi
4671 fi
4672 CC=$ac_cv_prog_CC
4673 if test -n "$CC"; then
4674 { echo "$as_me:$LINENO: result: $CC" >&5
4675 echo "${ECHO_T}$CC" >&6; }
4676 else
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4679 fi
4680
4681
4682 fi
4683 if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in cl.exe
4686 do
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 CC=$ac_cv_prog_CC
4715 if test -n "$CC"; then
4716 { echo "$as_me:$LINENO: result: $CC" >&5
4717 echo "${ECHO_T}$CC" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 fi
4722
4723
4724 test -n "$CC" && break
4725 done
4726 fi
4727 if test -z "$CC"; then
4728 ac_ct_CC=$CC
4729 for ac_prog in cl.exe
4730 do
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 if test -n "$ac_ct_CC"; then
4739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_CC="$ac_prog"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4759 if test -n "$ac_ct_CC"; then
4760 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4761 echo "${ECHO_T}$ac_ct_CC" >&6; }
4762 else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765 fi
4766
4767
4768 test -n "$ac_ct_CC" && break
4769 done
4770
4771 if test "x$ac_ct_CC" = x; then
4772 CC=""
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4777 whose name does not start with the host triplet. If you think this
4778 configuration is useful to you, please write to autoconf@gnu.org." >&5
4779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4780 whose name does not start with the host triplet. If you think this
4781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 CC=$ac_ct_CC
4785 fi
4786 fi
4787
4788 fi
4789
4790
4791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4792 See \`config.log' for more details." >&5
4793 echo "$as_me: error: no acceptable C compiler found in \$PATH
4794 See \`config.log' for more details." >&2;}
4795 { (exit 1); exit 1; }; }
4796
4797 # Provide some information about the compiler.
4798 echo "$as_me:$LINENO: checking for C compiler version" >&5
4799 ac_compiler=`set X $ac_compile; echo $2`
4800 { (ac_try="$ac_compiler --version >&5"
4801 case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compiler --version >&5") 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }
4810 { (ac_try="$ac_compiler -v >&5"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compiler -v >&5") 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }
4820 { (ac_try="$ac_compiler -V >&5"
4821 case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_compiler -V >&5") 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }
4830
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 ac_clean_files_save=$ac_clean_files
4847 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4848 # Try to create an executable without -o first, disregard a.out.
4849 # It will help us diagnose broken compilers, and finding out an intuition
4850 # of exeext.
4851 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4852 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4853 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4854 #
4855 # List of possible output files, starting from the most likely.
4856 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4857 # only as a last resort. b.out is created by i960 compilers.
4858 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4859 #
4860 # The IRIX 6 linker writes into existing files which may not be
4861 # executable, retaining their permissions. Remove them first so a
4862 # subsequent execution test works.
4863 ac_rmfiles=
4864 for ac_file in $ac_files
4865 do
4866 case $ac_file in
4867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4869 esac
4870 done
4871 rm -f $ac_rmfiles
4872
4873 if { (ac_try="$ac_link_default"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link_default") 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; then
4883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4884 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4885 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4886 # so that the user can short-circuit this test for compilers unknown to
4887 # Autoconf.
4888 for ac_file in $ac_files ''
4889 do
4890 test -f "$ac_file" || continue
4891 case $ac_file in
4892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4893 ;;
4894 [ab].out )
4895 # We found the default executable, but exeext='' is most
4896 # certainly right.
4897 break;;
4898 *.* )
4899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4900 then :; else
4901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4902 fi
4903 # We set ac_cv_exeext here because the later test for it is not
4904 # safe: cross compilers may not add the suffix if given an `-o'
4905 # argument, so we may need to know it at that point already.
4906 # Even if this section looks crufty: it has the advantage of
4907 # actually working.
4908 break;;
4909 * )
4910 break;;
4911 esac
4912 done
4913 test "$ac_cv_exeext" = no && ac_cv_exeext=
4914
4915 else
4916 ac_file=''
4917 fi
4918
4919 { echo "$as_me:$LINENO: result: $ac_file" >&5
4920 echo "${ECHO_T}$ac_file" >&6; }
4921 if test -z "$ac_file"; then
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4926 See \`config.log' for more details." >&5
4927 echo "$as_me: error: C compiler cannot create executables
4928 See \`config.log' for more details." >&2;}
4929 { (exit 77); exit 77; }; }
4930 fi
4931
4932 ac_exeext=$ac_cv_exeext
4933
4934 # Check that the compiler produces executables we can run. If not, either
4935 # the compiler is broken, or we cross compile.
4936 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4939 # If not cross compiling, check that we can run a simple program.
4940 if test "$cross_compiling" != yes; then
4941 if { ac_try='./$ac_file'
4942 { (case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_try") 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4951 cross_compiling=no
4952 else
4953 if test "$cross_compiling" = maybe; then
4954 cross_compiling=yes
4955 else
4956 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4957 If you meant to cross compile, use \`--host'.
4958 See \`config.log' for more details." >&5
4959 echo "$as_me: error: cannot run C compiled programs.
4960 If you meant to cross compile, use \`--host'.
4961 See \`config.log' for more details." >&2;}
4962 { (exit 1); exit 1; }; }
4963 fi
4964 fi
4965 fi
4966 { echo "$as_me:$LINENO: result: yes" >&5
4967 echo "${ECHO_T}yes" >&6; }
4968
4969 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4970 ac_clean_files=$ac_clean_files_save
4971 # Check that the compiler produces executables we can run. If not, either
4972 # the compiler is broken, or we cross compile.
4973 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4974 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4975 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4976 echo "${ECHO_T}$cross_compiling" >&6; }
4977
4978 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4979 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4980 if { (ac_try="$ac_link"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4992 # work properly (i.e., refer to `conftest.exe'), while it won't with
4993 # `rm'.
4994 for ac_file in conftest.exe conftest conftest.*; do
4995 test -f "$ac_file" || continue
4996 case $ac_file in
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4999 break;;
5000 * ) break;;
5001 esac
5002 done
5003 else
5004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5005 See \`config.log' for more details." >&5
5006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5007 See \`config.log' for more details." >&2;}
5008 { (exit 1); exit 1; }; }
5009 fi
5010
5011 rm -f conftest$ac_cv_exeext
5012 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5013 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5014
5015 rm -f conftest.$ac_ext
5016 EXEEXT=$ac_cv_exeext
5017 ac_exeext=$EXEEXT
5018 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5020 if test "${ac_cv_objext+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029
5030 int
5031 main ()
5032 {
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.o conftest.obj
5039 if { (ac_try="$ac_compile"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_compile") 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; then
5049 for ac_file in conftest.o conftest.obj conftest.*; do
5050 test -f "$ac_file" || continue;
5051 case $ac_file in
5052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5054 break;;
5055 esac
5056 done
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5062 See \`config.log' for more details." >&5
5063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; }
5066 fi
5067
5068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5069 fi
5070 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5071 echo "${ECHO_T}$ac_cv_objext" >&6; }
5072 OBJEXT=$ac_cv_objext
5073 ac_objext=$OBJEXT
5074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085
5086 int
5087 main ()
5088 {
5089 #ifndef __GNUC__
5090 choke me
5091 #endif
5092
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5114 ac_compiler_gnu=yes
5115 else
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_compiler_gnu=no
5120 fi
5121
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5124
5125 fi
5126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5128 GCC=`test $ac_compiler_gnu = yes && echo yes`
5129 ac_test_CFLAGS=${CFLAGS+set}
5130 ac_save_CFLAGS=$CFLAGS
5131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5138 ac_cv_prog_cc_g=no
5139 CFLAGS="-g"
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146
5147 int
5148 main ()
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5157 case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
5163 ac_status=$?
5164 grep -v '^ *+' conftest.er1 >conftest.err
5165 rm -f conftest.er1
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && {
5169 test -z "$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5171 } && test -s conftest.$ac_objext; then
5172 ac_cv_prog_cc_g=yes
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 CFLAGS=""
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5210 :
5211 else
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5216 CFLAGS="-g"
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5234 case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237 esac
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compile") 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && {
5246 test -z "$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 } && test -s conftest.$ac_objext; then
5249 ac_cv_prog_cc_g=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254
5255 fi
5256
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 fi
5259
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 fi
5262
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5265 fi
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5268 if test "$ac_test_CFLAGS" = set; then
5269 CFLAGS=$ac_save_CFLAGS
5270 elif test $ac_cv_prog_cc_g = yes; then
5271 if test "$GCC" = yes; then
5272 CFLAGS="-g -O2"
5273 else
5274 CFLAGS="-g"
5275 fi
5276 else
5277 if test "$GCC" = yes; then
5278 CFLAGS="-O2"
5279 else
5280 CFLAGS=
5281 fi
5282 fi
5283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_cc_c89+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 ac_cv_prog_cc_c89=no
5289 ac_save_CC=$CC
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <stdarg.h>
5297 #include <stdio.h>
5298 #include <sys/types.h>
5299 #include <sys/stat.h>
5300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5301 struct buf { int x; };
5302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5303 static char *e (p, i)
5304 char **p;
5305 int i;
5306 {
5307 return p[i];
5308 }
5309 static char *f (char * (*g) (char **, int), char **p, ...)
5310 {
5311 char *s;
5312 va_list v;
5313 va_start (v,p);
5314 s = g (p, va_arg (v,int));
5315 va_end (v);
5316 return s;
5317 }
5318
5319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5320 function prototypes and stuff, but not '\xHH' hex character constants.
5321 These don't provoke an error unfortunately, instead are silently treated
5322 as 'x'. The following induces an error, until -std is added to get
5323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5324 array size at least. It's necessary to write '\x00'==0 to get something
5325 that's true only with -std. */
5326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5327
5328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5329 inside strings and character constants. */
5330 #define FOO(x) 'x'
5331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5332
5333 int test (int i, double x);
5334 struct s1 {int (*f) (int a);};
5335 struct s2 {int (*f) (double a);};
5336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5337 int argc;
5338 char **argv;
5339 int
5340 main ()
5341 {
5342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5349 do
5350 CC="$ac_save_CC $ac_arg"
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_prog_cc_c89=$ac_arg
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5378 done
5379 rm -f conftest.$ac_ext
5380 CC=$ac_save_CC
5381
5382 fi
5383 # AC_CACHE_VAL
5384 case "x$ac_cv_prog_cc_c89" in
5385 x)
5386 { echo "$as_me:$LINENO: result: none needed" >&5
5387 echo "${ECHO_T}none needed" >&6; } ;;
5388 xno)
5389 { echo "$as_me:$LINENO: result: unsupported" >&5
5390 echo "${ECHO_T}unsupported" >&6; } ;;
5391 *)
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5395 esac
5396
5397
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404 depcc="$CC" am_compiler_list=
5405
5406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5416 # in D'.
5417 mkdir conftest.dir
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5421 cd conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5427 # directory.
5428 mkdir sub
5429
5430 am_cv_CC_dependencies_compiler_type=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5433 fi
5434 for depmode in $am_compiler_list; do
5435 # Setup a source with many dependencies, because some compilers
5436 # like to wrap large dependency lists on column 80 (with \), and
5437 # we should not choose a depcomp mode which is confused by this.
5438 #
5439 # We need to recreate these files for each test, as the compiler may
5440 # overwrite some of them when testing with obscure command lines.
5441 # This happens at least with the AIX C compiler.
5442 : > sub/conftest.c
5443 for i in 1 2 3 4 5 6; do
5444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446 # Solaris 8's {/usr,}/bin/sh.
5447 touch sub/conftst$i.h
5448 done
5449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5450
5451 case $depmode in
5452 nosideeffect)
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes; then
5456 continue
5457 else
5458 break
5459 fi
5460 ;;
5461 none) break ;;
5462 esac
5463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle `-M -o', and we need to detect this.
5466 if depmode=$depmode \
5467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5470 >/dev/null 2>conftest.err &&
5471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type=$depmode
5484 break
5485 fi
5486 fi
5487 done
5488
5489 cd ..
5490 rm -rf conftest.dir
5491 else
5492 am_cv_CC_dependencies_compiler_type=none
5493 fi
5494
5495 fi
5496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5499
5500
5501
5502 if
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5505 am__fastdepCC_TRUE=
5506 am__fastdepCC_FALSE='#'
5507 else
5508 am__fastdepCC_TRUE='#'
5509 am__fastdepCC_FALSE=
5510 fi
5511
5512
5513 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5514 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5515 if test "${ac_cv_path_GREP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 # Extract the first word of "grep ggrep" to use in msg output
5519 if test -z "$GREP"; then
5520 set dummy grep ggrep; ac_prog_name=$2
5521 if test "${ac_cv_path_GREP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 ac_path_GREP_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_prog in grep ggrep; do
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5535 # Check for GNU ac_path_GREP and select it if it is found.
5536 # Check for GNU $ac_path_GREP
5537 case `"$ac_path_GREP" --version 2>&1` in
5538 *GNU*)
5539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5540 *)
5541 ac_count=0
5542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5543 while :
5544 do
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 echo 'GREP' >> "conftest.nl"
5549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551 ac_count=`expr $ac_count + 1`
5552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_GREP="$ac_path_GREP"
5555 ac_path_GREP_max=$ac_count
5556 fi
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5559 done
5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5561 esac
5562
5563
5564 $ac_path_GREP_found && break 3
5565 done
5566 done
5567
5568 done
5569 IFS=$as_save_IFS
5570
5571
5572 fi
5573
5574 GREP="$ac_cv_path_GREP"
5575 if test -z "$GREP"; then
5576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5578 { (exit 1); exit 1; }; }
5579 fi
5580
5581 else
5582 ac_cv_path_GREP=$GREP
5583 fi
5584
5585
5586 fi
5587 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5588 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5589 GREP="$ac_cv_path_GREP"
5590
5591
5592 { echo "$as_me:$LINENO: checking for egrep" >&5
5593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5594 if test "${ac_cv_path_EGREP+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5598 then ac_cv_path_EGREP="$GREP -E"
5599 else
5600 # Extract the first word of "egrep" to use in msg output
5601 if test -z "$EGREP"; then
5602 set dummy egrep; ac_prog_name=$2
5603 if test "${ac_cv_path_EGREP+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606 ac_path_EGREP_found=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_prog in egrep; do
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5617 # Check for GNU ac_path_EGREP and select it if it is found.
5618 # Check for GNU $ac_path_EGREP
5619 case `"$ac_path_EGREP" --version 2>&1` in
5620 *GNU*)
5621 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5622 *)
5623 ac_count=0
5624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5625 while :
5626 do
5627 cat "conftest.in" "conftest.in" >"conftest.tmp"
5628 mv "conftest.tmp" "conftest.in"
5629 cp "conftest.in" "conftest.nl"
5630 echo 'EGREP' >> "conftest.nl"
5631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633 ac_count=`expr $ac_count + 1`
5634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5635 # Best one so far, save it but keep looking for a better one
5636 ac_cv_path_EGREP="$ac_path_EGREP"
5637 ac_path_EGREP_max=$ac_count
5638 fi
5639 # 10*(2^10) chars as input seems more than enough
5640 test $ac_count -gt 10 && break
5641 done
5642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643 esac
5644
5645
5646 $ac_path_EGREP_found && break 3
5647 done
5648 done
5649
5650 done
5651 IFS=$as_save_IFS
5652
5653
5654 fi
5655
5656 EGREP="$ac_cv_path_EGREP"
5657 if test -z "$EGREP"; then
5658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5660 { (exit 1); exit 1; }; }
5661 fi
5662
5663 else
5664 ac_cv_path_EGREP=$EGREP
5665 fi
5666
5667
5668 fi
5669 fi
5670 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5671 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5673
5674
5675 { echo "$as_me:$LINENO: checking for fgrep" >&5
5676 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5677 if test "${ac_cv_path_FGREP+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5681 then ac_cv_path_FGREP="$GREP -F"
5682 else
5683 # Extract the first word of "fgrep" to use in msg output
5684 if test -z "$FGREP"; then
5685 set dummy fgrep; ac_prog_name=$2
5686 if test "${ac_cv_path_FGREP+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 ac_path_FGREP_found=false
5690 # Loop through the user's path and test for each of PROGNAME-LIST
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5693 do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_prog in fgrep; do
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5699 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5700 # Check for GNU ac_path_FGREP and select it if it is found.
5701 # Check for GNU $ac_path_FGREP
5702 case `"$ac_path_FGREP" --version 2>&1` in
5703 *GNU*)
5704 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5705 *)
5706 ac_count=0
5707 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5708 while :
5709 do
5710 cat "conftest.in" "conftest.in" >"conftest.tmp"
5711 mv "conftest.tmp" "conftest.in"
5712 cp "conftest.in" "conftest.nl"
5713 echo 'FGREP' >> "conftest.nl"
5714 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5716 ac_count=`expr $ac_count + 1`
5717 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5718 # Best one so far, save it but keep looking for a better one
5719 ac_cv_path_FGREP="$ac_path_FGREP"
5720 ac_path_FGREP_max=$ac_count
5721 fi
5722 # 10*(2^10) chars as input seems more than enough
5723 test $ac_count -gt 10 && break
5724 done
5725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726 esac
5727
5728
5729 $ac_path_FGREP_found && break 3
5730 done
5731 done
5732
5733 done
5734 IFS=$as_save_IFS
5735
5736
5737 fi
5738
5739 FGREP="$ac_cv_path_FGREP"
5740 if test -z "$FGREP"; then
5741 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743 { (exit 1); exit 1; }; }
5744 fi
5745
5746 else
5747 ac_cv_path_FGREP=$FGREP
5748 fi
5749
5750
5751 fi
5752 fi
5753 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5754 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5755 FGREP="$ac_cv_path_FGREP"
5756
5757
5758 test -z "$GREP" && GREP=grep
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-gnu-ld was given.
5779 if test "${with_gnu_ld+set}" = set; then
5780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5781 else
5782 with_gnu_ld=no
5783 fi
5784
5785 ac_prog=ld
5786 if test "$GCC" = yes; then
5787 # Check if gcc -print-prog-name=ld gives a path.
5788 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5789 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5790 case $host in
5791 *-*-mingw*)
5792 # gcc leaves a trailing carriage return which upsets mingw
5793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5794 *)
5795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5796 esac
5797 case $ac_prog in
5798 # Accept absolute paths.
5799 [\\/]* | ?:[\\/]*)
5800 re_direlt='/[^/][^/]*/\.\./'
5801 # Canonicalize the pathname of ld
5802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5805 done
5806 test -z "$LD" && LD="$ac_prog"
5807 ;;
5808 "")
5809 # If it fails, then pretend we aren't using GCC.
5810 ac_prog=ld
5811 ;;
5812 *)
5813 # If it is relative, then search for the first ld in PATH.
5814 with_gnu_ld=unknown
5815 ;;
5816 esac
5817 elif test "$with_gnu_ld" = yes; then
5818 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5819 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5820 else
5821 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5822 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5823 fi
5824 if test "${lt_cv_path_LD+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 if test -z "$LD"; then
5828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829 for ac_dir in $PATH; do
5830 IFS="$lt_save_ifs"
5831 test -z "$ac_dir" && ac_dir=.
5832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5833 lt_cv_path_LD="$ac_dir/$ac_prog"
5834 # Check to see if the program is GNU ld. I'd rather use --version,
5835 # but apparently some variants of GNU ld only accept -v.
5836 # Break only if it was the GNU/non-GNU ld that we prefer.
5837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5838 *GNU* | *'with BFD'*)
5839 test "$with_gnu_ld" != no && break
5840 ;;
5841 *)
5842 test "$with_gnu_ld" != yes && break
5843 ;;
5844 esac
5845 fi
5846 done
5847 IFS="$lt_save_ifs"
5848 else
5849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5850 fi
5851 fi
5852
5853 LD="$lt_cv_path_LD"
5854 if test -n "$LD"; then
5855 { echo "$as_me:$LINENO: result: $LD" >&5
5856 echo "${ECHO_T}$LD" >&6; }
5857 else
5858 { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5860 fi
5861 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5862 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5863 { (exit 1); exit 1; }; }
5864 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5865 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5866 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5870 case `$LD -v 2>&1 </dev/null` in
5871 *GNU* | *'with BFD'*)
5872 lt_cv_prog_gnu_ld=yes
5873 ;;
5874 *)
5875 lt_cv_prog_gnu_ld=no
5876 ;;
5877 esac
5878 fi
5879 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5880 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5881 with_gnu_ld=$lt_cv_prog_gnu_ld
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5893 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5894 if test "${lt_cv_path_NM+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897 if test -n "$NM"; then
5898 # Let the user override the test.
5899 lt_cv_path_NM="$NM"
5900 else
5901 lt_nm_to_check="${ac_tool_prefix}nm"
5902 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5903 lt_nm_to_check="$lt_nm_to_check nm"
5904 fi
5905 for lt_tmp_nm in $lt_nm_to_check; do
5906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5907 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5908 IFS="$lt_save_ifs"
5909 test -z "$ac_dir" && ac_dir=.
5910 tmp_nm="$ac_dir/$lt_tmp_nm"
5911 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5912 # Check to see if the nm accepts a BSD-compat flag.
5913 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5914 # nm: unknown option "B" ignored
5915 # Tru64's nm complains that /dev/null is an invalid object file
5916 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5917 */dev/null* | *'Invalid file or object type'*)
5918 lt_cv_path_NM="$tmp_nm -B"
5919 break
5920 ;;
5921 *)
5922 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5923 */dev/null*)
5924 lt_cv_path_NM="$tmp_nm -p"
5925 break
5926 ;;
5927 *)
5928 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5929 continue # so that we can try to find one that supports BSD flags
5930 ;;
5931 esac
5932 ;;
5933 esac
5934 fi
5935 done
5936 IFS="$lt_save_ifs"
5937 done
5938 : ${lt_cv_path_NM=no}
5939 fi
5940 fi
5941 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5942 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5943 if test "$lt_cv_path_NM" != "no"; then
5944 NM="$lt_cv_path_NM"
5945 else
5946 # Didn't find any BSD compatible name lister, look for dumpbin.
5947 if test -n "$ac_tool_prefix"; then
5948 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5949 do
5950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 if test -n "$DUMPBIN"; then
5958 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 DUMPBIN=$ac_cv_prog_DUMPBIN
5978 if test -n "$DUMPBIN"; then
5979 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5980 echo "${ECHO_T}$DUMPBIN" >&6; }
5981 else
5982 { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987 test -n "$DUMPBIN" && break
5988 done
5989 fi
5990 if test -z "$DUMPBIN"; then
5991 ac_ct_DUMPBIN=$DUMPBIN
5992 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5993 do
5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 if test -n "$ac_ct_DUMPBIN"; then
6002 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6022 if test -n "$ac_ct_DUMPBIN"; then
6023 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6024 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
6025 else
6026 { echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6; }
6028 fi
6029
6030
6031 test -n "$ac_ct_DUMPBIN" && break
6032 done
6033
6034 if test "x$ac_ct_DUMPBIN" = x; then
6035 DUMPBIN=":"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&5
6042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043 whose name does not start with the host triplet. If you think this
6044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045 ac_tool_warned=yes ;;
6046 esac
6047 DUMPBIN=$ac_ct_DUMPBIN
6048 fi
6049 fi
6050
6051
6052 if test "$DUMPBIN" != ":"; then
6053 NM="$DUMPBIN"
6054 fi
6055 fi
6056 test -z "$NM" && NM=nm
6057
6058
6059
6060
6061
6062
6063 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6064 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
6065 if test "${lt_cv_nm_interface+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 lt_cv_nm_interface="BSD nm"
6069 echo "int some_variable = 0;" > conftest.$ac_ext
6070 (eval echo "\"\$as_me:6070: $ac_compile\"" >&5)
6071 (eval "$ac_compile" 2>conftest.err)
6072 cat conftest.err >&5
6073 (eval echo "\"\$as_me:6073: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6074 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6075 cat conftest.err >&5
6076 (eval echo "\"\$as_me:6076: output\"" >&5)
6077 cat conftest.out >&5
6078 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6079 lt_cv_nm_interface="MS dumpbin"
6080 fi
6081 rm -f conftest*
6082 fi
6083 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6084 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6085
6086 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6087 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6088 LN_S=$as_ln_s
6089 if test "$LN_S" = "ln -s"; then
6090 { echo "$as_me:$LINENO: result: yes" >&5
6091 echo "${ECHO_T}yes" >&6; }
6092 else
6093 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6094 echo "${ECHO_T}no, using $LN_S" >&6; }
6095 fi
6096
6097 # find the maximum length of command line arguments
6098 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6099 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6100 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103 i=0
6104 teststring="ABCD"
6105
6106 case $build_os in
6107 msdosdjgpp*)
6108 # On DJGPP, this test can blow up pretty badly due to problems in libc
6109 # (any single argument exceeding 2000 bytes causes a buffer overrun
6110 # during glob expansion). Even if it were fixed, the result of this
6111 # check would be larger than it should be.
6112 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6113 ;;
6114
6115 gnu*)
6116 # Under GNU Hurd, this test is not required because there is
6117 # no limit to the length of command line arguments.
6118 # Libtool will interpret -1 as no limit whatsoever
6119 lt_cv_sys_max_cmd_len=-1;
6120 ;;
6121
6122 cygwin* | mingw*)
6123 # On Win9x/ME, this test blows up -- it succeeds, but takes
6124 # about 5 minutes as the teststring grows exponentially.
6125 # Worse, since 9x/ME are not pre-emptively multitasking,
6126 # you end up with a "frozen" computer, even though with patience
6127 # the test eventually succeeds (with a max line length of 256k).
6128 # Instead, let's just punt: use the minimum linelength reported by
6129 # all of the supported platforms: 8192 (on NT/2K/XP).
6130 lt_cv_sys_max_cmd_len=8192;
6131 ;;
6132
6133 amigaos*)
6134 # On AmigaOS with pdksh, this test takes hours, literally.
6135 # So we just punt and use a minimum line length of 8192.
6136 lt_cv_sys_max_cmd_len=8192;
6137 ;;
6138
6139 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6140 # This has been around since 386BSD, at least. Likely further.
6141 if test -x /sbin/sysctl; then
6142 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6143 elif test -x /usr/sbin/sysctl; then
6144 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6145 else
6146 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6147 fi
6148 # And add a safety zone
6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6151 ;;
6152
6153 interix*)
6154 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6155 lt_cv_sys_max_cmd_len=196608
6156 ;;
6157
6158 osf*)
6159 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6160 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6161 # nice to cause kernel panics so lets avoid the loop below.
6162 # First set a reasonable default.
6163 lt_cv_sys_max_cmd_len=16384
6164 #
6165 if test -x /sbin/sysconfig; then
6166 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6167 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6168 esac
6169 fi
6170 ;;
6171 sco3.2v5*)
6172 lt_cv_sys_max_cmd_len=102400
6173 ;;
6174 sysv5* | sco5v6* | sysv4.2uw2*)
6175 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6176 if test -n "$kargmax"; then
6177 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6178 else
6179 lt_cv_sys_max_cmd_len=32768
6180 fi
6181 ;;
6182 *)
6183 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6184 if test -n $lt_cv_sys_max_cmd_len; then
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6187 else
6188 # Make teststring a little bigger before we do anything with it.
6189 # a 1K string should be a reasonable start.
6190 for i in 1 2 3 4 5 6 7 8 ; do
6191 teststring=$teststring$teststring
6192 done
6193 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6194 # If test is not a shell built-in, we'll probably end up computing a
6195 # maximum length that is only half of the actual maximum length, but
6196 # we can't tell.
6197 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6198 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6199 test $i != 17 # 1/2 MB should be enough
6200 do
6201 i=`expr $i + 1`
6202 teststring=$teststring$teststring
6203 done
6204 # Only check the string length outside the loop.
6205 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6206 teststring=
6207 # Add a significant safety factor because C++ compilers can tack on
6208 # massive amounts of additional arguments before passing them to the
6209 # linker. It appears as though 1/2 is a usable value.
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6211 fi
6212 ;;
6213 esac
6214
6215 fi
6216
6217 if test -n $lt_cv_sys_max_cmd_len ; then
6218 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6219 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6220 else
6221 { echo "$as_me:$LINENO: result: none" >&5
6222 echo "${ECHO_T}none" >&6; }
6223 fi
6224 max_cmd_len=$lt_cv_sys_max_cmd_len
6225
6226
6227
6228
6229
6230
6231 : ${CP="cp -f"}
6232 : ${MV="mv -f"}
6233 : ${RM="rm -f"}
6234
6235 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6236 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6237 # Try some XSI features
6238 xsi_shell=no
6239 ( _lt_dummy="a/b/c"
6240 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6241 = c,a/b,, ) >/dev/null 2>&1 \
6242 && xsi_shell=yes
6243 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6244 echo "${ECHO_T}$xsi_shell" >&6; }
6245
6246
6247 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6248 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6249 lt_shell_append=no
6250 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6251 >/dev/null 2>&1 \
6252 && lt_shell_append=yes
6253 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6254 echo "${ECHO_T}$lt_shell_append" >&6; }
6255
6256
6257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6258 lt_unset=unset
6259 else
6260 lt_unset=false
6261 fi
6262
6263
6264
6265
6266
6267 # test EBCDIC or ASCII
6268 case `echo X|tr X '\101'` in
6269 A) # ASCII based system
6270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6271 lt_SP2NL='tr \040 \012'
6272 lt_NL2SP='tr \015\012 \040\040'
6273 ;;
6274 *) # EBCDIC based system
6275 lt_SP2NL='tr \100 \n'
6276 lt_NL2SP='tr \r\n \100\100'
6277 ;;
6278 esac
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6289 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6290 if test "${lt_cv_ld_reload_flag+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 lt_cv_ld_reload_flag='-r'
6294 fi
6295 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6296 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6297 reload_flag=$lt_cv_ld_reload_flag
6298 case $reload_flag in
6299 "" | " "*) ;;
6300 *) reload_flag=" $reload_flag" ;;
6301 esac
6302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6303 case $host_os in
6304 darwin*)
6305 if test "$GCC" = yes; then
6306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6307 else
6308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6309 fi
6310 ;;
6311 esac
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6323 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6324 if test "${lt_cv_deplibs_check_method+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 lt_cv_file_magic_cmd='$MAGIC_CMD'
6328 lt_cv_file_magic_test_file=
6329 lt_cv_deplibs_check_method='unknown'
6330 # Need to set the preceding variable on all platforms that support
6331 # interlibrary dependencies.
6332 # 'none' -- dependencies not supported.
6333 # `unknown' -- same as none, but documents that we really don't know.
6334 # 'pass_all' -- all dependencies passed with no checks.
6335 # 'test_compile' -- check by making test program.
6336 # 'file_magic [[regex]]' -- check by looking for files in library path
6337 # which responds to the $file_magic_cmd with a given extended regex.
6338 # If you have `file' or equivalent on your system and you're not sure
6339 # whether `pass_all' will *always* work, you probably want this one.
6340
6341 case $host_os in
6342 aix4* | aix5*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 beos*)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349
6350 bsdi[45]*)
6351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6352 lt_cv_file_magic_cmd='/usr/bin/file -L'
6353 lt_cv_file_magic_test_file=/shlib/libc.so
6354 ;;
6355
6356 cygwin*)
6357 # func_win32_libid is a shell function defined in ltmain.sh
6358 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6359 lt_cv_file_magic_cmd='func_win32_libid'
6360 ;;
6361
6362 mingw* | pw32*)
6363 # Base MSYS/MinGW do not provide the 'file' command needed by
6364 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6365 # unless we find 'file', for example because we are cross-compiling.
6366 if ( file / ) >/dev/null 2>&1; then
6367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6368 lt_cv_file_magic_cmd='func_win32_libid'
6369 else
6370 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6371 lt_cv_file_magic_cmd='$OBJDUMP -f'
6372 fi
6373 ;;
6374
6375 darwin* | rhapsody*)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378
6379 freebsd* | dragonfly*)
6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6381 case $host_cpu in
6382 i*86 )
6383 # Not sure whether the presence of OpenBSD here was a mistake.
6384 # Let's accept both of them until this is cleared up.
6385 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6386 lt_cv_file_magic_cmd=/usr/bin/file
6387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6388 ;;
6389 esac
6390 else
6391 lt_cv_deplibs_check_method=pass_all
6392 fi
6393 ;;
6394
6395 gnu*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398
6399 hpux10.20* | hpux11*)
6400 lt_cv_file_magic_cmd=/usr/bin/file
6401 case $host_cpu in
6402 ia64*)
6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6405 ;;
6406 hppa*64*)
6407 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6409 ;;
6410 *)
6411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6412 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6413 ;;
6414 esac
6415 ;;
6416
6417 interix[3-9]*)
6418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6420 ;;
6421
6422 irix5* | irix6* | nonstopux*)
6423 case $LD in
6424 *-32|*"-32 ") libmagic=32-bit;;
6425 *-n32|*"-n32 ") libmagic=N32;;
6426 *-64|*"-64 ") libmagic=64-bit;;
6427 *) libmagic=never-match;;
6428 esac
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 # This must be Linux ELF.
6433 linux* | k*bsd*-gnu)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436
6437 netbsd*)
6438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 else
6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6442 fi
6443 ;;
6444
6445 newos6*)
6446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6449 ;;
6450
6451 *nto* | *qnx*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 openbsd*)
6456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6458 else
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6460 fi
6461 ;;
6462
6463 osf3* | osf4* | osf5*)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 rdos*)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
6470
6471 solaris*)
6472 lt_cv_deplibs_check_method=pass_all
6473 ;;
6474
6475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478
6479 sysv4 | sysv4.3*)
6480 case $host_vendor in
6481 motorola)
6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6484 ;;
6485 ncr)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488 sequent)
6489 lt_cv_file_magic_cmd='/bin/file'
6490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6491 ;;
6492 sni)
6493 lt_cv_file_magic_cmd='/bin/file'
6494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6495 lt_cv_file_magic_test_file=/lib/libc.so
6496 ;;
6497 siemens)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500 pc)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503 esac
6504 ;;
6505
6506 tpf*)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509 esac
6510
6511 fi
6512 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6513 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6514 file_magic_cmd=$lt_cv_file_magic_cmd
6515 deplibs_check_method=$lt_cv_deplibs_check_method
6516 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 if test -n "$AR"; then
6538 ac_cv_prog_AR="$AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_AR="${ac_tool_prefix}ar"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 AR=$ac_cv_prog_AR
6558 if test -n "$AR"; then
6559 { echo "$as_me:$LINENO: result: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6561 else
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_AR"; then
6569 ac_ct_AR=$AR
6570 # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 if test -n "$ac_ct_AR"; then
6578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_AR="ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6601 else
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606 if test "x$ac_ct_AR" = x; then
6607 AR="false"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet. If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet. If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 AR=$ac_ct_AR
6620 fi
6621 else
6622 AR="$ac_cv_prog_AR"
6623 fi
6624
6625 test -z "$AR" && AR=ar
6626 test -z "$AR_FLAGS" && AR_FLAGS=cru
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}strip; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_STRIP+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 if test -n "$STRIP"; then
6647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 STRIP=$ac_cv_prog_STRIP
6667 if test -n "$STRIP"; then
6668 { echo "$as_me:$LINENO: result: $STRIP" >&5
6669 echo "${ECHO_T}$STRIP" >&6; }
6670 else
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_STRIP"; then
6678 ac_ct_STRIP=$STRIP
6679 # Extract the first word of "strip", so it can be a program name with args.
6680 set dummy strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 if test -n "$ac_ct_STRIP"; then
6687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_STRIP="strip"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6707 if test -n "$ac_ct_STRIP"; then
6708 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6709 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6710 else
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715 if test "x$ac_ct_STRIP" = x; then
6716 STRIP=":"
6717 else
6718 case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet. If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet. If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728 STRIP=$ac_ct_STRIP
6729 fi
6730 else
6731 STRIP="$ac_cv_prog_STRIP"
6732 fi
6733
6734 test -z "$STRIP" && STRIP=:
6735
6736
6737
6738
6739
6740
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_prog_RANLIB+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test -n "$RANLIB"; then
6750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 RANLIB=$ac_cv_prog_RANLIB
6770 if test -n "$RANLIB"; then
6771 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6772 echo "${ECHO_T}$RANLIB" >&6; }
6773 else
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_RANLIB"; then
6781 ac_ct_RANLIB=$RANLIB
6782 # Extract the first word of "ranlib", so it can be a program name with args.
6783 set dummy ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 if test -n "$ac_ct_RANLIB"; then
6790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_ac_ct_RANLIB="ranlib"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6810 if test -n "$ac_ct_RANLIB"; then
6811 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6812 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6813 else
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6816 fi
6817
6818 if test "x$ac_ct_RANLIB" = x; then
6819 RANLIB=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet. If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&5
6826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet. If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831 RANLIB=$ac_ct_RANLIB
6832 fi
6833 else
6834 RANLIB="$ac_cv_prog_RANLIB"
6835 fi
6836
6837 test -z "$RANLIB" && RANLIB=:
6838
6839
6840
6841
6842
6843
6844 # Determine commands to create old-style static archives.
6845 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6846 old_postinstall_cmds='chmod 644 $oldlib'
6847 old_postuninstall_cmds=
6848
6849 if test -n "$RANLIB"; then
6850 case $host_os in
6851 openbsd*)
6852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6853 ;;
6854 *)
6855 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6856 ;;
6857 esac
6858 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6859 fi
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 # If no C compiler was specified, use CC.
6895 LTCC=${LTCC-"$CC"}
6896
6897 # If no C compiler flags were specified, use CFLAGS.
6898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6899
6900 # Allow CC to be a program name with arguments.
6901 compiler=$CC
6902
6903
6904 # Check for command to grab the raw symbol name followed by C symbol from nm.
6905 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6906 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910
6911 # These are sane defaults that work on at least a few old systems.
6912 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6913
6914 # Character class describing NM global symbol codes.
6915 symcode='[BCDEGRST]'
6916
6917 # Regexp to match symbols that can be accessed directly from C.
6918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6919
6920 # Define system-specific variables.
6921 case $host_os in
6922 aix*)
6923 symcode='[BCDT]'
6924 ;;
6925 cygwin* | mingw* | pw32*)
6926 symcode='[ABCDGISTW]'
6927 ;;
6928 hpux*)
6929 if test "$host_cpu" = ia64; then
6930 symcode='[ABCDEGRST]'
6931 fi
6932 ;;
6933 irix* | nonstopux*)
6934 symcode='[BCDEGRST]'
6935 ;;
6936 osf*)
6937 symcode='[BCDEGQRST]'
6938 ;;
6939 solaris*)
6940 symcode='[BDRT]'
6941 ;;
6942 sco3.2v5*)
6943 symcode='[DT]'
6944 ;;
6945 sysv4.2uw2*)
6946 symcode='[DT]'
6947 ;;
6948 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6949 symcode='[ABDT]'
6950 ;;
6951 sysv4)
6952 symcode='[DFNSTU]'
6953 ;;
6954 esac
6955
6956 # If we're using GNU nm, then use its standard symbol codes.
6957 case `$NM -V 2>&1` in
6958 *GNU* | *'with BFD'*)
6959 symcode='[ABCDGIRSTW]' ;;
6960 esac
6961
6962 # Transform an extracted symbol line into a proper C declaration.
6963 # Some systems (esp. on ia64) link data and code symbols differently,
6964 # so use this general approach.
6965 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6966
6967 # Transform an extracted symbol line into symbol name and symbol address
6968 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6969
6970 # Handle CRLF in mingw tool chain
6971 opt_cr=
6972 case $build_os in
6973 mingw*)
6974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6975 ;;
6976 esac
6977
6978 # Try without a prefix underscore, then with it.
6979 for ac_symprfx in "" "_"; do
6980
6981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982 symxfrm="\\1 $ac_symprfx\\2 \\2"
6983
6984 # Write the raw and C identifiers.
6985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986 # Fake it for dumpbin and say T for any non-static function
6987 # and D for any global variable.
6988 # Also find C++ and __fastcall symbols from MSVC++,
6989 # which start with @ or ?.
6990 lt_cv_sys_global_symbol_pipe="$AWK '"\
6991 " {last_section=section; section=\$ 3};"\
6992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993 " \$ 0!~/External *\|/{next};"\
6994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995 " {if(hide[section]) next};"\
6996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000 " ' prfx=^$ac_symprfx"
7001 else
7002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003 fi
7004
7005 # Check to see that the pipe works correctly.
7006 pipe_works=no
7007
7008 rm -f conftest*
7009 cat > conftest.$ac_ext <<_LT_EOF
7010 #ifdef __cplusplus
7011 extern "C" {
7012 #endif
7013 char nm_test_var;
7014 void nm_test_func(void);
7015 void nm_test_func(void){}
7016 #ifdef __cplusplus
7017 }
7018 #endif
7019 int main(){nm_test_var='a';nm_test_func();return(0);}
7020 _LT_EOF
7021
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; then
7027 # Now try to grab the symbols.
7028 nlist=conftest.nm
7029 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7030 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && test -s "$nlist"; then
7034 # Try sorting and uniquifying the output.
7035 if sort "$nlist" | uniq > "$nlist"T; then
7036 mv -f "$nlist"T "$nlist"
7037 else
7038 rm -f "$nlist"T
7039 fi
7040
7041 # Make sure that we snagged all the symbols we need.
7042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044 cat <<_LT_EOF > conftest.$ac_ext
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048
7049 _LT_EOF
7050 # Now generate the symbol file.
7051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7052
7053 cat <<_LT_EOF >> conftest.$ac_ext
7054
7055 /* The mapping between symbol names and symbols. */
7056 const struct {
7057 const char *name;
7058 void *address;
7059 }
7060 lt__PROGRAM__LTX_preloaded_symbols[] =
7061 {
7062 { "@PROGRAM@", (void *) 0 },
7063 _LT_EOF
7064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065 cat <<\_LT_EOF >> conftest.$ac_ext
7066 {0, (void *) 0}
7067 };
7068
7069 /* This works around a problem in FreeBSD linker */
7070 #ifdef FREEBSD_WORKAROUND
7071 static const void *lt_preloaded_setup() {
7072 return lt__PROGRAM__LTX_preloaded_symbols;
7073 }
7074 #endif
7075
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079 _LT_EOF
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7091 pipe_works=yes
7092 fi
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7095 else
7096 echo "cannot find nm_test_func in $nlist" >&5
7097 fi
7098 else
7099 echo "cannot find nm_test_var in $nlist" >&5
7100 fi
7101 else
7102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7103 fi
7104 else
7105 echo "$progname: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 fi
7108 rm -f conftest* conftst*
7109
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7112 break
7113 else
7114 lt_cv_sys_global_symbol_pipe=
7115 fi
7116 done
7117
7118 fi
7119
7120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7122 fi
7123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124 { echo "$as_me:$LINENO: result: failed" >&5
7125 echo "${ECHO_T}failed" >&6; }
7126 else
7127 { echo "$as_me:$LINENO: result: ok" >&5
7128 echo "${ECHO_T}ok" >&6; }
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 # Check whether --enable-libtool-lock was given.
7149 if test "${enable_libtool_lock+set}" = set; then
7150 enableval=$enable_libtool_lock;
7151 fi
7152
7153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7154
7155 # Some flags need to be propagated to the compiler or linker for good
7156 # libtool support.
7157 case $host in
7158 ia64-*-hpux*)
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; then
7166 case `/usr/bin/file conftest.$ac_objext` in
7167 *ELF-32*)
7168 HPUX_IA64_MODE="32"
7169 ;;
7170 *ELF-64*)
7171 HPUX_IA64_MODE="64"
7172 ;;
7173 esac
7174 fi
7175 rm -rf conftest*
7176 ;;
7177 *-*-irix6*)
7178 # Find out which ABI we are using.
7179 echo '#line 7179 "configure"' > conftest.$ac_ext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181 (eval $ac_compile) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; then
7185 if test "$lt_cv_prog_gnu_ld" = yes; then
7186 case `/usr/bin/file conftest.$ac_objext` in
7187 *32-bit*)
7188 LD="${LD-ld} -melf32bsmip"
7189 ;;
7190 *N32*)
7191 LD="${LD-ld} -melf32bmipn32"
7192 ;;
7193 *64-bit*)
7194 LD="${LD-ld} -melf64bmip"
7195 ;;
7196 esac
7197 else
7198 case `/usr/bin/file conftest.$ac_objext` in
7199 *32-bit*)
7200 LD="${LD-ld} -32"
7201 ;;
7202 *N32*)
7203 LD="${LD-ld} -n32"
7204 ;;
7205 *64-bit*)
7206 LD="${LD-ld} -64"
7207 ;;
7208 esac
7209 fi
7210 fi
7211 rm -rf conftest*
7212 ;;
7213
7214 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7215 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7216 # Find out which ABI we are using.
7217 echo 'int i;' > conftest.$ac_ext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219 (eval $ac_compile) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; then
7223 case `/usr/bin/file conftest.o` in
7224 *32-bit*)
7225 case $host in
7226 x86_64-*kfreebsd*-gnu)
7227 LD="${LD-ld} -m elf_i386_fbsd"
7228 ;;
7229 x86_64-*linux*)
7230 LD="${LD-ld} -m elf_i386"
7231 ;;
7232 ppc64-*linux*|powerpc64-*linux*)
7233 LD="${LD-ld} -m elf32ppclinux"
7234 ;;
7235 s390x-*linux*)
7236 LD="${LD-ld} -m elf_s390"
7237 ;;
7238 sparc64-*linux*)
7239 LD="${LD-ld} -m elf32_sparc"
7240 ;;
7241 esac
7242 ;;
7243 *64-bit*)
7244 case $host in
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_x86_64_fbsd"
7247 ;;
7248 x86_64-*linux*)
7249 LD="${LD-ld} -m elf_x86_64"
7250 ;;
7251 ppc*-*linux*|powerpc*-*linux*)
7252 LD="${LD-ld} -m elf64ppc"
7253 ;;
7254 s390*-*linux*|s390*-*tpf*)
7255 LD="${LD-ld} -m elf64_s390"
7256 ;;
7257 sparc*-*linux*)
7258 LD="${LD-ld} -m elf64_sparc"
7259 ;;
7260 esac
7261 ;;
7262 esac
7263 fi
7264 rm -rf conftest*
7265 ;;
7266
7267 *-*-sco3.2v5*)
7268 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7269 SAVE_CFLAGS="$CFLAGS"
7270 CFLAGS="$CFLAGS -belf"
7271 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7272 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7273 if test "${lt_cv_cc_needs_belf+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288
7289 int
7290 main ()
7291 {
7292
7293 ;
7294 return 0;
7295 }
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (ac_try="$ac_link"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_link") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest$ac_exeext &&
7314 $as_test_x conftest$ac_exeext; then
7315 lt_cv_cc_needs_belf=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 lt_cv_cc_needs_belf=no
7321 fi
7322
7323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7324 conftest$ac_exeext conftest.$ac_ext
7325 ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331 fi
7332 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7333 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7336 CFLAGS="$SAVE_CFLAGS"
7337 fi
7338 ;;
7339 sparc*-*solaris*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; then
7347 case `/usr/bin/file conftest.o` in
7348 *64-bit*)
7349 case $lt_cv_prog_gnu_ld in
7350 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7351 *) LD="${LD-ld} -64" ;;
7352 esac
7353 ;;
7354 esac
7355 fi
7356 rm -rf conftest*
7357 ;;
7358 esac
7359
7360 need_locks="$enable_libtool_lock"
7361
7362 ac_ext=c
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7368 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7369 # On Suns, sometimes $CPP names a directory.
7370 if test -n "$CPP" && test -d "$CPP"; then
7371 CPP=
7372 fi
7373 if test -z "$CPP"; then
7374 if test "${ac_cv_prog_CPP+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 # Double quotes because CPP needs to be expanded
7378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7379 do
7380 ac_preproc_ok=false
7381 for ac_c_preproc_warn_flag in '' yes
7382 do
7383 # Use a header file that comes with gcc, so configuring glibc
7384 # with a fresh cross-compiler works.
7385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7386 # <limits.h> exists even on freestanding compilers.
7387 # On the NeXT, cc -E runs the code through the compiler's parser,
7388 # not just through cpp. "Syntax error" is here to catch this case.
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #ifdef __STDC__
7396 # include <limits.h>
7397 #else
7398 # include <assert.h>
7399 #endif
7400 Syntax error
7401 _ACEOF
7402 if { (ac_try="$ac_cpp conftest.$ac_ext"
7403 case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } >/dev/null && {
7415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 }; then
7418 :
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 # Broken: fails on valid input.
7424 continue
7425 fi
7426
7427 rm -f conftest.err conftest.$ac_ext
7428
7429 # OK, works on sane cases. Now check whether nonexistent headers
7430 # can be detected and how.
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <ac_nonexistent.h>
7438 _ACEOF
7439 if { (ac_try="$ac_cpp conftest.$ac_ext"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } >/dev/null && {
7452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 }; then
7455 # Broken: success on invalid input.
7456 continue
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 # Passes both tests.
7462 ac_preproc_ok=:
7463 break
7464 fi
7465
7466 rm -f conftest.err conftest.$ac_ext
7467
7468 done
7469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7470 rm -f conftest.err conftest.$ac_ext
7471 if $ac_preproc_ok; then
7472 break
7473 fi
7474
7475 done
7476 ac_cv_prog_CPP=$CPP
7477
7478 fi
7479 CPP=$ac_cv_prog_CPP
7480 else
7481 ac_cv_prog_CPP=$CPP
7482 fi
7483 { echo "$as_me:$LINENO: result: $CPP" >&5
7484 echo "${ECHO_T}$CPP" >&6; }
7485 ac_preproc_ok=false
7486 for ac_c_preproc_warn_flag in '' yes
7487 do
7488 # Use a header file that comes with gcc, so configuring glibc
7489 # with a fresh cross-compiler works.
7490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7491 # <limits.h> exists even on freestanding compilers.
7492 # On the NeXT, cc -E runs the code through the compiler's parser,
7493 # not just through cpp. "Syntax error" is here to catch this case.
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 #ifdef __STDC__
7501 # include <limits.h>
7502 #else
7503 # include <assert.h>
7504 #endif
7505 Syntax error
7506 _ACEOF
7507 if { (ac_try="$ac_cpp conftest.$ac_ext"
7508 case "(($ac_try" in
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } >/dev/null && {
7520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 }; then
7523 :
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 # Broken: fails on valid input.
7529 continue
7530 fi
7531
7532 rm -f conftest.err conftest.$ac_ext
7533
7534 # OK, works on sane cases. Now check whether nonexistent headers
7535 # can be detected and how.
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <ac_nonexistent.h>
7543 _ACEOF
7544 if { (ac_try="$ac_cpp conftest.$ac_ext"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 }; then
7560 # Broken: success on invalid input.
7561 continue
7562 else
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 # Passes both tests.
7567 ac_preproc_ok=:
7568 break
7569 fi
7570
7571 rm -f conftest.err conftest.$ac_ext
7572
7573 done
7574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7575 rm -f conftest.err conftest.$ac_ext
7576 if $ac_preproc_ok; then
7577 :
7578 else
7579 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7580 See \`config.log' for more details." >&5
7581 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7582 See \`config.log' for more details." >&2;}
7583 { (exit 1); exit 1; }; }
7584 fi
7585
7586 ac_ext=c
7587 ac_cpp='$CPP $CPPFLAGS'
7588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592
7593 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7594 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7595 if test "${ac_cv_header_stdc+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <stdlib.h>
7605 #include <stdarg.h>
7606 #include <string.h>
7607 #include <float.h>
7608
7609 int
7610 main ()
7611 {
7612
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_cv_header_stdc=yes
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639 ac_cv_header_stdc=no
7640 fi
7641
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643
7644 if test $ac_cv_header_stdc = yes; then
7645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <string.h>
7653
7654 _ACEOF
7655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7656 $EGREP "memchr" >/dev/null 2>&1; then
7657 :
7658 else
7659 ac_cv_header_stdc=no
7660 fi
7661 rm -f conftest*
7662
7663 fi
7664
7665 if test $ac_cv_header_stdc = yes; then
7666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <stdlib.h>
7674
7675 _ACEOF
7676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7677 $EGREP "free" >/dev/null 2>&1; then
7678 :
7679 else
7680 ac_cv_header_stdc=no
7681 fi
7682 rm -f conftest*
7683
7684 fi
7685
7686 if test $ac_cv_header_stdc = yes; then
7687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7688 if test "$cross_compiling" = yes; then
7689 :
7690 else
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 #include <ctype.h>
7698 #include <stdlib.h>
7699 #if ((' ' & 0x0FF) == 0x020)
7700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7702 #else
7703 # define ISLOWER(c) \
7704 (('a' <= (c) && (c) <= 'i') \
7705 || ('j' <= (c) && (c) <= 'r') \
7706 || ('s' <= (c) && (c) <= 'z'))
7707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7708 #endif
7709
7710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7711 int
7712 main ()
7713 {
7714 int i;
7715 for (i = 0; i < 256; i++)
7716 if (XOR (islower (i), ISLOWER (i))
7717 || toupper (i) != TOUPPER (i))
7718 return 2;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_link") 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 :
7743 else
7744 echo "$as_me: program exited with status $ac_status" >&5
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 ( exit $ac_status )
7749 ac_cv_header_stdc=no
7750 fi
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7752 fi
7753
7754
7755 fi
7756 fi
7757 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7758 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7759 if test $ac_cv_header_stdc = yes; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define STDC_HEADERS 1
7763 _ACEOF
7764
7765 fi
7766
7767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7778 inttypes.h stdint.h unistd.h
7779 do
7780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 $ac_includes_default
7793
7794 #include <$ac_header>
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801 esac
7802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7804 ac_status=$?
7805 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7814 else
7815 echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 eval "$as_ac_Header=no"
7819 fi
7820
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 fi
7823 ac_res=`eval echo '${'$as_ac_Header'}'`
7824 { echo "$as_me:$LINENO: result: $ac_res" >&5
7825 echo "${ECHO_T}$ac_res" >&6; }
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827 cat >>confdefs.h <<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829 _ACEOF
7830
7831 fi
7832
7833 done
7834
7835
7836
7837 for ac_header in dlfcn.h
7838 do
7839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h. */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 $ac_includes_default
7852
7853 #include <$ac_header>
7854 _ACEOF
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7857 case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860 esac
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862 (eval "$ac_compile") 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } && {
7869 test -z "$ac_c_werror_flag" ||
7870 test ! -s conftest.err
7871 } && test -s conftest.$ac_objext; then
7872 eval "$as_ac_Header=yes"
7873 else
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877 eval "$as_ac_Header=no"
7878 fi
7879
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 fi
7882 ac_res=`eval echo '${'$as_ac_Header'}'`
7883 { echo "$as_me:$LINENO: result: $ac_res" >&5
7884 echo "${ECHO_T}$ac_res" >&6; }
7885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7886 cat >>confdefs.h <<_ACEOF
7887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888 _ACEOF
7889
7890 fi
7891
7892 done
7893
7894
7895
7896 # This can be used to rebuild libtool when needed
7897 LIBTOOL_DEPS="$ltmain"
7898
7899 # Always use our own libtool.
7900 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 test -z "$LN_S" && LN_S="ln -s"
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 if test -n "${ZSH_VERSION+set}" ; then
7942 setopt NO_GLOB_SUBST
7943 fi
7944
7945 { echo "$as_me:$LINENO: checking for objdir" >&5
7946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7947 if test "${lt_cv_objdir+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 rm -f .libs 2>/dev/null
7951 mkdir .libs 2>/dev/null
7952 if test -d .libs; then
7953 lt_cv_objdir=.libs
7954 else
7955 # MS-DOS does not allow filenames that begin with a dot.
7956 lt_cv_objdir=_libs
7957 fi
7958 rmdir .libs 2>/dev/null
7959 fi
7960 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7961 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7962 objdir=$lt_cv_objdir
7963
7964
7965
7966
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define LT_OBJDIR "$lt_cv_objdir/"
7970 _ACEOF
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 case $host_os in
7989 aix3*)
7990 # AIX sometimes has problems with the GCC collect2 program. For some
7991 # reason, if we set the COLLECT_NAMES environment variable, the problems
7992 # vanish in a puff of smoke.
7993 if test "X${COLLECT_NAMES+set}" != Xset; then
7994 COLLECT_NAMES=
7995 export COLLECT_NAMES
7996 fi
7997 ;;
7998 esac
7999
8000 # Sed substitution that helps us do robust quoting. It backslashifies
8001 # metacharacters that are still active within double-quoted strings.
8002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8003
8004 # Same as above, but do not quote variable references.
8005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8006
8007 # Sed substitution to delay expansion of an escaped shell variable in a
8008 # double_quote_subst'ed string.
8009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8010
8011 # Sed substitution to delay expansion of an escaped single quote.
8012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8013
8014 # Sed substitution to avoid accidental globbing in evaled expressions
8015 no_glob_subst='s/\*/\\\*/g'
8016
8017 # Global variables:
8018 ofile=libtool
8019 can_build_shared=yes
8020
8021 # All known linkers require a `.a' archive for static linking (except MSVC,
8022 # which needs '.lib').
8023 libext=a
8024
8025 with_gnu_ld="$lt_cv_prog_gnu_ld"
8026
8027 old_CC="$CC"
8028 old_CFLAGS="$CFLAGS"
8029
8030 # Set sane defaults for various variables
8031 test -z "$CC" && CC=cc
8032 test -z "$LTCC" && LTCC=$CC
8033 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8034 test -z "$LD" && LD=ld
8035 test -z "$ac_objext" && ac_objext=o
8036
8037 for cc_temp in $compiler""; do
8038 case $cc_temp in
8039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8041 \-*) ;;
8042 *) break;;
8043 esac
8044 done
8045 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8046
8047
8048 # Only perform the check for file, if the check method requires it
8049 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8050 case $deplibs_check_method in
8051 file_magic*)
8052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8053 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8054 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 case $MAGIC_CMD in
8059 [\\/*] | ?:[\\/]*)
8060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8061 ;;
8062 *)
8063 lt_save_MAGIC_CMD="$MAGIC_CMD"
8064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8066 for ac_dir in $ac_dummy; do
8067 IFS="$lt_save_ifs"
8068 test -z "$ac_dir" && ac_dir=.
8069 if test -f $ac_dir/${ac_tool_prefix}file; then
8070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8071 if test -n "$file_magic_test_file"; then
8072 case $deplibs_check_method in
8073 "file_magic "*)
8074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8077 $EGREP "$file_magic_regex" > /dev/null; then
8078 :
8079 else
8080 cat <<_LT_EOF 1>&2
8081
8082 *** Warning: the command libtool uses to detect shared libraries,
8083 *** $file_magic_cmd, produces output that libtool cannot recognize.
8084 *** The result is that libtool may fail to recognize shared libraries
8085 *** as such. This will affect the creation of libtool libraries that
8086 *** depend on shared libraries, but programs linked with such libtool
8087 *** libraries will work regardless of this problem. Nevertheless, you
8088 *** may want to report the problem to your system manager and/or to
8089 *** bug-libtool@gnu.org
8090
8091 _LT_EOF
8092 fi ;;
8093 esac
8094 fi
8095 break
8096 fi
8097 done
8098 IFS="$lt_save_ifs"
8099 MAGIC_CMD="$lt_save_MAGIC_CMD"
8100 ;;
8101 esac
8102 fi
8103
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if test -n "$MAGIC_CMD"; then
8106 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8107 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8108 else
8109 { echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6; }
8111 fi
8112
8113
8114
8115
8116
8117 if test -z "$lt_cv_path_MAGIC_CMD"; then
8118 if test -n "$ac_tool_prefix"; then
8119 { echo "$as_me:$LINENO: checking for file" >&5
8120 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8121 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 case $MAGIC_CMD in
8125 [\\/*] | ?:[\\/]*)
8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8127 ;;
8128 *)
8129 lt_save_MAGIC_CMD="$MAGIC_CMD"
8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8133 IFS="$lt_save_ifs"
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f $ac_dir/file; then
8136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8139 "file_magic "*)
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8144 :
8145 else
8146 cat <<_LT_EOF 1>&2
8147
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such. This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem. Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8156
8157 _LT_EOF
8158 fi ;;
8159 esac
8160 fi
8161 break
8162 fi
8163 done
8164 IFS="$lt_save_ifs"
8165 MAGIC_CMD="$lt_save_MAGIC_CMD"
8166 ;;
8167 esac
8168 fi
8169
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8173 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8174 else
8175 { echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6; }
8177 fi
8178
8179
8180 else
8181 MAGIC_CMD=:
8182 fi
8183 fi
8184
8185 fi
8186 ;;
8187 esac
8188
8189 # Use C for the default configuration in the libtool script
8190
8191 lt_save_CC="$CC"
8192 ac_ext=c
8193 ac_cpp='$CPP $CPPFLAGS'
8194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198
8199 # Source file extension for C test sources.
8200 ac_ext=c
8201
8202 # Object file extension for compiled C test sources.
8203 objext=o
8204 objext=$objext
8205
8206 # Code to be used in simple compile tests
8207 lt_simple_compile_test_code="int some_variable = 0;"
8208
8209 # Code to be used in simple link tests
8210 lt_simple_link_test_code='int main(){return(0);}'
8211
8212
8213
8214
8215
8216
8217
8218 # If no C compiler was specified, use CC.
8219 LTCC=${LTCC-"$CC"}
8220
8221 # If no C compiler flags were specified, use CFLAGS.
8222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8223
8224 # Allow CC to be a program name with arguments.
8225 compiler=$CC
8226
8227 # Save the default compiler, since it gets overwritten when the other
8228 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8229 compiler_DEFAULT=$CC
8230
8231 # save warnings/boilerplate of simple test code
8232 ac_outfile=conftest.$ac_objext
8233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8235 _lt_compiler_boilerplate=`cat conftest.err`
8236 $RM conftest*
8237
8238 ac_outfile=conftest.$ac_objext
8239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8241 _lt_linker_boilerplate=`cat conftest.err`
8242 $RM conftest*
8243
8244
8245 ## CAVEAT EMPTOR:
8246 ## There is no encapsulation within the following macros, do not change
8247 ## the running order or otherwise move them around unless you know exactly
8248 ## what you are doing...
8249 if test -n "$compiler"; then
8250
8251 lt_prog_compiler_no_builtin_flag=
8252
8253 if test "$GCC" = yes; then
8254 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8255
8256 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8257 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8258 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 lt_cv_prog_compiler_rtti_exceptions=no
8262 ac_outfile=conftest.$ac_objext
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264 lt_compiler_flag="-fno-rtti -fno-exceptions"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 # The option is referenced via a variable to avoid confusing sed.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:8274: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>conftest.err)
8276 ac_status=$?
8277 cat conftest.err >&5
8278 echo "$as_me:8278: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s "$ac_outfile"; then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings other than the usual output.
8282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_rtti_exceptions=yes
8286 fi
8287 fi
8288 $RM conftest*
8289
8290 fi
8291 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8292 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8293
8294 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8295 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8296 else
8297 :
8298 fi
8299
8300 fi
8301
8302
8303
8304
8305
8306
8307 lt_prog_compiler_wl=
8308 lt_prog_compiler_pic=
8309 lt_prog_compiler_static=
8310
8311 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8312 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8313
8314 if test "$GCC" = yes; then
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_static='-static'
8317
8318 case $host_os in
8319 aix*)
8320 # All AIX code is PIC.
8321 if test "$host_cpu" = ia64; then
8322 # AIX 5 now supports IA64 processor
8323 lt_prog_compiler_static='-Bstatic'
8324 fi
8325 ;;
8326
8327 amigaos*)
8328 if test "$host_cpu" = m68k; then
8329 # FIXME: we need at least 68020 code to build shared libraries, but
8330 # adding the `-m68020' flag to GCC prevents building anything better,
8331 # like `-m68040'.
8332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8333 fi
8334 ;;
8335
8336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8337 # PIC is the default for these OSes.
8338 ;;
8339
8340 mingw* | cygwin* | pw32* | os2*)
8341 # This hack is so that the source file can tell whether it is being
8342 # built for inclusion in a dll (and should export symbols for example).
8343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8344 # (--disable-auto-import) libraries
8345 lt_prog_compiler_pic='-DDLL_EXPORT'
8346 ;;
8347
8348 darwin* | rhapsody*)
8349 # PIC is the default on this platform
8350 # Common symbols not allowed in MH_DYLIB files
8351 lt_prog_compiler_pic='-fno-common'
8352 ;;
8353
8354 hpux*)
8355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8356 # not for PA HP-UX.
8357 case $host_cpu in
8358 hppa*64*|ia64*)
8359 # +Z the default
8360 ;;
8361 *)
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 esac
8365 ;;
8366
8367 interix[3-9]*)
8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369 # Instead, we relocate shared libraries at runtime.
8370 ;;
8371
8372 msdosdjgpp*)
8373 # Just because we use GCC doesn't mean we suddenly get shared libraries
8374 # on systems that don't support them.
8375 lt_prog_compiler_can_build_shared=no
8376 enable_shared=no
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 sysv4*MP*)
8386 if test -d /usr/nec; then
8387 lt_prog_compiler_pic=-Kconform_pic
8388 fi
8389 ;;
8390
8391 *)
8392 lt_prog_compiler_pic='-fPIC'
8393 ;;
8394 esac
8395 else
8396 # PORTME Check for flag to pass linker flags through the system compiler.
8397 case $host_os in
8398 aix*)
8399 lt_prog_compiler_wl='-Wl,'
8400 if test "$host_cpu" = ia64; then
8401 # AIX 5 now supports IA64 processor
8402 lt_prog_compiler_static='-Bstatic'
8403 else
8404 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8405 fi
8406 ;;
8407 darwin*)
8408 # PIC is the default on this platform
8409 # Common symbols not allowed in MH_DYLIB files
8410 case $cc_basename in
8411 xlc*)
8412 lt_prog_compiler_pic='-qnocommon'
8413 lt_prog_compiler_wl='-Wl,'
8414 ;;
8415 esac
8416 ;;
8417
8418 mingw* | cygwin* | pw32* | os2*)
8419 # This hack is so that the source file can tell whether it is being
8420 # built for inclusion in a dll (and should export symbols for example).
8421 lt_prog_compiler_pic='-DDLL_EXPORT'
8422 ;;
8423
8424 hpux9* | hpux10* | hpux11*)
8425 lt_prog_compiler_wl='-Wl,'
8426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8427 # not for PA HP-UX.
8428 case $host_cpu in
8429 hppa*64*|ia64*)
8430 # +Z the default
8431 ;;
8432 *)
8433 lt_prog_compiler_pic='+Z'
8434 ;;
8435 esac
8436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8437 lt_prog_compiler_static='${wl}-a ${wl}archive'
8438 ;;
8439
8440 irix5* | irix6* | nonstopux*)
8441 lt_prog_compiler_wl='-Wl,'
8442 # PIC (with -KPIC) is the default.
8443 lt_prog_compiler_static='-non_shared'
8444 ;;
8445
8446 linux* | k*bsd*-gnu)
8447 case $cc_basename in
8448 icc* | ecc*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-static'
8452 ;;
8453 pgcc* | pgf77* | pgf90* | pgf95*)
8454 # Portland Group compilers (*not* the Pentium gcc compiler,
8455 # which looks to be a dead project)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-fpic'
8458 lt_prog_compiler_static='-Bstatic'
8459 ;;
8460 ccc*)
8461 lt_prog_compiler_wl='-Wl,'
8462 # All Alpha code is PIC.
8463 lt_prog_compiler_static='-non_shared'
8464 ;;
8465 *)
8466 case `$CC -V 2>&1 | sed 5q` in
8467 *Sun\ C*)
8468 # Sun C 5.9
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_wl='-Wl,'
8472 ;;
8473 *Sun\ F*)
8474 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 lt_prog_compiler_wl=''
8478 ;;
8479 esac
8480 ;;
8481 esac
8482 ;;
8483
8484 newsos6)
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-Bstatic'
8487 ;;
8488
8489 *nto* | *qnx*)
8490 # QNX uses GNU C++, but need to define -shared option too, otherwise
8491 # it will coredump.
8492 lt_prog_compiler_pic='-fPIC -shared'
8493 ;;
8494
8495 osf3* | osf4* | osf5*)
8496 lt_prog_compiler_wl='-Wl,'
8497 # All OSF/1 code is PIC.
8498 lt_prog_compiler_static='-non_shared'
8499 ;;
8500
8501 rdos*)
8502 lt_prog_compiler_static='-non_shared'
8503 ;;
8504
8505 solaris*)
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-Bstatic'
8508 case $cc_basename in
8509 f77* | f90* | f95*)
8510 lt_prog_compiler_wl='-Qoption ld ';;
8511 *)
8512 lt_prog_compiler_wl='-Wl,';;
8513 esac
8514 ;;
8515
8516 sunos4*)
8517 lt_prog_compiler_wl='-Qoption ld '
8518 lt_prog_compiler_pic='-PIC'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
8521
8522 sysv4 | sysv4.2uw2* | sysv4.3*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-KPIC'
8525 lt_prog_compiler_static='-Bstatic'
8526 ;;
8527
8528 sysv4*MP*)
8529 if test -d /usr/nec ;then
8530 lt_prog_compiler_pic='-Kconform_pic'
8531 lt_prog_compiler_static='-Bstatic'
8532 fi
8533 ;;
8534
8535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 ;;
8540
8541 unicos*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_can_build_shared=no
8544 ;;
8545
8546 uts4*)
8547 lt_prog_compiler_pic='-pic'
8548 lt_prog_compiler_static='-Bstatic'
8549 ;;
8550
8551 *)
8552 lt_prog_compiler_can_build_shared=no
8553 ;;
8554 esac
8555 fi
8556
8557 case $host_os in
8558 # For platforms which do not support PIC, -DPIC is meaningless:
8559 *djgpp*)
8560 lt_prog_compiler_pic=
8561 ;;
8562 *)
8563 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8564 ;;
8565 esac
8566 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8567 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8568
8569
8570
8571
8572
8573
8574 #
8575 # Check to make sure the PIC flag actually works.
8576 #
8577 if test -n "$lt_prog_compiler_pic"; then
8578 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8579 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8580 if test "${lt_prog_compiler_pic_works+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 lt_prog_compiler_pic_works=no
8584 ac_outfile=conftest.$ac_objext
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8587 # Insert the option either (1) after the last *FLAGS variable, or
8588 # (2) before a word containing "conftest.", or (3) at the end.
8589 # Note that $ac_compile itself does not contain backslashes and begins
8590 # with a dollar sign (not a hyphen), so the echo should work correctly.
8591 # The option is referenced via a variable to avoid confusing sed.
8592 lt_compile=`echo "$ac_compile" | $SED \
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595 -e 's:$: $lt_compiler_flag:'`
8596 (eval echo "\"\$as_me:8596: $lt_compile\"" >&5)
8597 (eval "$lt_compile" 2>conftest.err)
8598 ac_status=$?
8599 cat conftest.err >&5
8600 echo "$as_me:8600: \$? = $ac_status" >&5
8601 if (exit $ac_status) && test -s "$ac_outfile"; then
8602 # The compiler can only warn and ignore the option if not recognized
8603 # So say no if there are warnings other than the usual output.
8604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8607 lt_prog_compiler_pic_works=yes
8608 fi
8609 fi
8610 $RM conftest*
8611
8612 fi
8613 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8614 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8615
8616 if test x"$lt_prog_compiler_pic_works" = xyes; then
8617 case $lt_prog_compiler_pic in
8618 "" | " "*) ;;
8619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8620 esac
8621 else
8622 lt_prog_compiler_pic=
8623 lt_prog_compiler_can_build_shared=no
8624 fi
8625
8626 fi
8627
8628
8629
8630
8631
8632
8633 #
8634 # Check to make sure the static flag actually works.
8635 #
8636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8637 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8638 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8639 if test "${lt_prog_compiler_static_works+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642 lt_prog_compiler_static_works=no
8643 save_LDFLAGS="$LDFLAGS"
8644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8647 # The linker can only warn and ignore the option if not recognized
8648 # So say no if there are warnings
8649 if test -s conftest.err; then
8650 # Append any errors to the config.log.
8651 cat conftest.err 1>&5
8652 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654 if diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_prog_compiler_static_works=yes
8656 fi
8657 else
8658 lt_prog_compiler_static_works=yes
8659 fi
8660 fi
8661 $RM conftest*
8662 LDFLAGS="$save_LDFLAGS"
8663
8664 fi
8665 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8667
8668 if test x"$lt_prog_compiler_static_works" = xyes; then
8669 :
8670 else
8671 lt_prog_compiler_static=
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8681 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8682 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 lt_cv_prog_compiler_c_o=no
8686 $RM -r conftest 2>/dev/null
8687 mkdir conftest
8688 cd conftest
8689 mkdir out
8690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691
8692 lt_compiler_flag="-o out/conftest2.$ac_objext"
8693 # Insert the option either (1) after the last *FLAGS variable, or
8694 # (2) before a word containing "conftest.", or (3) at the end.
8695 # Note that $ac_compile itself does not contain backslashes and begins
8696 # with a dollar sign (not a hyphen), so the echo should work correctly.
8697 lt_compile=`echo "$ac_compile" | $SED \
8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700 -e 's:$: $lt_compiler_flag:'`
8701 (eval echo "\"\$as_me:8701: $lt_compile\"" >&5)
8702 (eval "$lt_compile" 2>out/conftest.err)
8703 ac_status=$?
8704 cat out/conftest.err >&5
8705 echo "$as_me:8705: \$? = $ac_status" >&5
8706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8707 then
8708 # The compiler can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler_c_o=yes
8714 fi
8715 fi
8716 chmod u+w . 2>&5
8717 $RM conftest*
8718 # SGI C++ compiler will create directory out/ii_files/ for
8719 # template instantiation
8720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8721 $RM out/* && rmdir out
8722 cd ..
8723 $RM -r conftest
8724 $RM conftest*
8725
8726 fi
8727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8728 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8729
8730
8731
8732
8733
8734
8735 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8736 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8737 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740 lt_cv_prog_compiler_c_o=no
8741 $RM -r conftest 2>/dev/null
8742 mkdir conftest
8743 cd conftest
8744 mkdir out
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746
8747 lt_compiler_flag="-o out/conftest2.$ac_objext"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\$as_me:8756: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>out/conftest.err)
8758 ac_status=$?
8759 cat out/conftest.err >&5
8760 echo "$as_me:8760: \$? = $ac_status" >&5
8761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8762 then
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings
8765 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8768 lt_cv_prog_compiler_c_o=yes
8769 fi
8770 fi
8771 chmod u+w . 2>&5
8772 $RM conftest*
8773 # SGI C++ compiler will create directory out/ii_files/ for
8774 # template instantiation
8775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8776 $RM out/* && rmdir out
8777 cd ..
8778 $RM -r conftest
8779 $RM conftest*
8780
8781 fi
8782 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8783 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8784
8785
8786
8787
8788 hard_links="nottested"
8789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8790 # do not overwrite the value of need_locks provided by the user
8791 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8792 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8793 hard_links=yes
8794 $RM conftest*
8795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8796 touch conftest.a
8797 ln conftest.a conftest.b 2>&5 || hard_links=no
8798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8799 { echo "$as_me:$LINENO: result: $hard_links" >&5
8800 echo "${ECHO_T}$hard_links" >&6; }
8801 if test "$hard_links" = no; then
8802 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8803 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8804 need_locks=warn
8805 fi
8806 else
8807 need_locks=no
8808 fi
8809
8810
8811
8812
8813
8814
8815 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8816 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8817
8818 runpath_var=
8819 allow_undefined_flag=
8820 always_export_symbols=no
8821 archive_cmds=
8822 archive_expsym_cmds=
8823 compiler_needs_object=no
8824 enable_shared_with_static_runtimes=no
8825 export_dynamic_flag_spec=
8826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8827 hardcode_automatic=no
8828 hardcode_direct=no
8829 hardcode_direct_absolute=no
8830 hardcode_libdir_flag_spec=
8831 hardcode_libdir_flag_spec_ld=
8832 hardcode_libdir_separator=
8833 hardcode_minus_L=no
8834 hardcode_shlibpath_var=unsupported
8835 inherit_rpath=no
8836 link_all_deplibs=unknown
8837 module_cmds=
8838 module_expsym_cmds=
8839 old_archive_from_new_cmds=
8840 old_archive_from_expsyms_cmds=
8841 thread_safe_flag_spec=
8842 whole_archive_flag_spec=
8843 # include_expsyms should be a list of space-separated symbols to be *always*
8844 # included in the symbol list
8845 include_expsyms=
8846 # exclude_expsyms can be an extended regexp of symbols to exclude
8847 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8848 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8849 # as well as any symbol that contains `d'.
8850 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8852 # platforms (ab)use it in PIC code, but their linkers get confused if
8853 # the symbol is explicitly referenced. Since portable code cannot
8854 # rely on this symbol name, it's probably fine to never include it in
8855 # preloaded symbol tables.
8856 extract_expsyms_cmds=
8857
8858 case $host_os in
8859 cygwin* | mingw* | pw32*)
8860 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8861 # When not using gcc, we currently assume that we are using
8862 # Microsoft Visual C++.
8863 if test "$GCC" != yes; then
8864 with_gnu_ld=no
8865 fi
8866 ;;
8867 interix*)
8868 # we just hope/assume this is gcc and not c89 (= MSVC++)
8869 with_gnu_ld=yes
8870 ;;
8871 openbsd*)
8872 with_gnu_ld=no
8873 ;;
8874 esac
8875
8876 ld_shlibs=yes
8877 if test "$with_gnu_ld" = yes; then
8878 # If archive_cmds runs LD, not CC, wlarc should be empty
8879 wlarc='${wl}'
8880
8881 # Set some defaults for GNU ld with shared library support. These
8882 # are reset later if shared libraries are not supported. Putting them
8883 # here allows them to be overridden if necessary.
8884 runpath_var=LD_RUN_PATH
8885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886 export_dynamic_flag_spec='${wl}--export-dynamic'
8887 # ancient GNU ld didn't support --whole-archive et. al.
8888 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8889 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8890 else
8891 whole_archive_flag_spec=
8892 fi
8893 supports_anon_versioning=no
8894 case `$LD -v 2>&1` in
8895 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8896 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8897 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8898 *\ 2.11.*) ;; # other 2.11 versions
8899 *) supports_anon_versioning=yes ;;
8900 esac
8901
8902 # See if GNU ld supports shared libraries.
8903 case $host_os in
8904 aix3* | aix4* | aix5*)
8905 # On AIX/PPC, the GNU linker is very broken
8906 if test "$host_cpu" != ia64; then
8907 ld_shlibs=no
8908 cat <<_LT_EOF 1>&2
8909
8910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8911 *** to be unable to reliably create shared libraries on AIX.
8912 *** Therefore, libtool is disabling shared libraries support. If you
8913 *** really care for shared libraries, you may want to modify your PATH
8914 *** so that a non-GNU linker is found, and then restart.
8915
8916 _LT_EOF
8917 fi
8918 ;;
8919
8920 amigaos*)
8921 if test "$host_cpu" = m68k; then
8922 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_minus_L=yes
8925 fi
8926
8927 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8928 # that the semantics of dynamic libraries on AmigaOS, at least up
8929 # to version 4, is to share data among multiple programs linked
8930 # with the same dynamic library. Since this doesn't match the
8931 # behavior of shared libraries on other platforms, we can't use
8932 # them.
8933 ld_shlibs=no
8934 ;;
8935
8936 beos*)
8937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 allow_undefined_flag=unsupported
8939 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8940 # support --undefined. This deserves some investigation. FIXME
8941 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942 else
8943 ld_shlibs=no
8944 fi
8945 ;;
8946
8947 cygwin* | mingw* | pw32*)
8948 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8949 # as there is no search path for DLLs.
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 allow_undefined_flag=unsupported
8952 always_export_symbols=no
8953 enable_shared_with_static_runtimes=yes
8954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8955
8956 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8958 # If the export-symbols file already is a .def file (1st line
8959 # is EXPORTS), use it as is; otherwise, prepend...
8960 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8961 cp $export_symbols $output_objdir/$soname.def;
8962 else
8963 echo EXPORTS > $output_objdir/$soname.def;
8964 cat $export_symbols >> $output_objdir/$soname.def;
8965 fi~
8966 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8967 else
8968 ld_shlibs=no
8969 fi
8970 ;;
8971
8972 interix[3-9]*)
8973 hardcode_direct=no
8974 hardcode_shlibpath_var=no
8975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8976 export_dynamic_flag_spec='${wl}-E'
8977 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8978 # Instead, shared libraries are loaded at an image base (0x10000000 by
8979 # default) and relocated if they conflict, which is a slow very memory
8980 # consuming and fragmenting process. To avoid this, we pick a random,
8981 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8982 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8984 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8985 ;;
8986
8987 gnu* | linux* | tpf* | k*bsd*-gnu)
8988 tmp_diet=no
8989 if test "$host_os" = linux-dietlibc; then
8990 case $cc_basename in
8991 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8992 esac
8993 fi
8994 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8995 && test "$tmp_diet" = no
8996 then
8997 tmp_addflag=
8998 case $cc_basename,$host_cpu in
8999 pgcc*) # Portland Group C compiler
9000 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9001 tmp_addflag=' $pic_flag'
9002 ;;
9003 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9004 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9005 tmp_addflag=' $pic_flag -Mnomain' ;;
9006 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9007 tmp_addflag=' -i_dynamic' ;;
9008 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9009 tmp_addflag=' -i_dynamic -nofor_main' ;;
9010 ifc* | ifort*) # Intel Fortran compiler
9011 tmp_addflag=' -nofor_main' ;;
9012 esac
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*) # Sun C 5.9
9015 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9016 compiler_needs_object=yes
9017 tmp_sharedflag='-G' ;;
9018 *Sun\ F*) # Sun Fortran 8.3
9019 tmp_sharedflag='-G' ;;
9020 *)
9021 tmp_sharedflag='-shared' ;;
9022 esac
9023 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9024
9025 if test "x$supports_anon_versioning" = xyes; then
9026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9028 echo "local: *; };" >> $output_objdir/$libname.ver~
9029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9030 fi
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035
9036 netbsd*)
9037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9038 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9039 wlarc=
9040 else
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9043 fi
9044 ;;
9045
9046 solaris*)
9047 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9048 ld_shlibs=no
9049 cat <<_LT_EOF 1>&2
9050
9051 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9052 *** create shared libraries on Solaris systems. Therefore, libtool
9053 *** is disabling shared libraries support. We urge you to upgrade GNU
9054 *** binutils to release 2.9.1 or newer. Another option is to modify
9055 *** your PATH or compiler configuration so that the native linker is
9056 *** used, and then restart.
9057
9058 _LT_EOF
9059 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
9066
9067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9068 case `$LD -v 2>&1` in
9069 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9070 ld_shlibs=no
9071 cat <<_LT_EOF 1>&2
9072
9073 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9074 *** reliably create shared libraries on SCO systems. Therefore, libtool
9075 *** is disabling shared libraries support. We urge you to upgrade GNU
9076 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9077 *** your PATH or compiler configuration so that the native linker is
9078 *** used, and then restart.
9079
9080 _LT_EOF
9081 ;;
9082 *)
9083 # For security reasons, it is highly recommended that you always
9084 # use absolute paths for naming shared libraries, and exclude the
9085 # DT_RUNPATH tag from executables and libraries. But doing so
9086 # requires that you compile everything twice, which is a pain.
9087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9091 else
9092 ld_shlibs=no
9093 fi
9094 ;;
9095 esac
9096 ;;
9097
9098 sunos4*)
9099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9100 wlarc=
9101 hardcode_direct=yes
9102 hardcode_shlibpath_var=no
9103 ;;
9104
9105 *)
9106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9109 else
9110 ld_shlibs=no
9111 fi
9112 ;;
9113 esac
9114
9115 if test "$ld_shlibs" = no; then
9116 runpath_var=
9117 hardcode_libdir_flag_spec=
9118 export_dynamic_flag_spec=
9119 whole_archive_flag_spec=
9120 fi
9121 else
9122 # PORTME fill in a description of your system's linker (not GNU ld)
9123 case $host_os in
9124 aix3*)
9125 allow_undefined_flag=unsupported
9126 always_export_symbols=yes
9127 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9128 # Note: this linker hardcodes the directories in LIBPATH if there
9129 # are no directories specified by -L.
9130 hardcode_minus_L=yes
9131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9132 # Neither direct hardcoding nor static linking is supported with a
9133 # broken collect2.
9134 hardcode_direct=unsupported
9135 fi
9136 ;;
9137
9138 aix4* | aix5*)
9139 if test "$host_cpu" = ia64; then
9140 # On IA64, the linker does run time linking by default, so we don't
9141 # have to do anything special.
9142 aix_use_runtimelinking=no
9143 exp_sym_flag='-Bexport'
9144 no_entry_flag=""
9145 else
9146 # If we're using GNU nm, then we don't want the "-C" option.
9147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9149 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9150 else
9151 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9152 fi
9153 aix_use_runtimelinking=no
9154
9155 # Test if we are trying to use run time linking or normal
9156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9157 # need to do runtime linking.
9158 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9159 for ld_flag in $LDFLAGS; do
9160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9161 aix_use_runtimelinking=yes
9162 break
9163 fi
9164 done
9165 ;;
9166 esac
9167
9168 exp_sym_flag='-bexport'
9169 no_entry_flag='-bnoentry'
9170 fi
9171
9172 # When large executables or shared objects are built, AIX ld can
9173 # have problems creating the table of contents. If linking a library
9174 # or program results in "error TOC overflow" add -mminimal-toc to
9175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9177
9178 archive_cmds=''
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 hardcode_libdir_separator=':'
9182 link_all_deplibs=yes
9183 file_list_spec='${wl}-f,'
9184
9185 if test "$GCC" = yes; then
9186 case $host_os in aix4.[012]|aix4.[012].*)
9187 # We only want to do this on AIX 4.2 and lower, the check
9188 # below for broken collect2 doesn't work under 4.3+
9189 collect2name=`${CC} -print-prog-name=collect2`
9190 if test -f "$collect2name" &&
9191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9192 then
9193 # We have reworked collect2
9194 :
9195 else
9196 # We have old collect2
9197 hardcode_direct=unsupported
9198 # It fails to find uninstalled libraries when the uninstalled
9199 # path is not listed in the libpath. Setting hardcode_minus_L
9200 # to unsupported forces relinking
9201 hardcode_minus_L=yes
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 hardcode_libdir_separator=
9204 fi
9205 ;;
9206 esac
9207 shared_flag='-shared'
9208 if test "$aix_use_runtimelinking" = yes; then
9209 shared_flag="$shared_flag "'${wl}-G'
9210 fi
9211 else
9212 # not using gcc
9213 if test "$host_cpu" = ia64; then
9214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9215 # chokes on -Wl,-G. The following line is correct:
9216 shared_flag='-G'
9217 else
9218 if test "$aix_use_runtimelinking" = yes; then
9219 shared_flag='${wl}-G'
9220 else
9221 shared_flag='${wl}-bM:SRE'
9222 fi
9223 fi
9224 fi
9225
9226 # It seems that -bexpall does not export symbols beginning with
9227 # underscore (_), so it is better to generate a list of symbols to export.
9228 always_export_symbols=yes
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # Warning - without using the other runtime loading flags (-brtl),
9231 # -berok will link without error, but may produce a broken library.
9232 allow_undefined_flag='-berok'
9233 # Determine the default libpath from the value encoded in an
9234 # empty executable.
9235 cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h. */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241
9242 int
9243 main ()
9244 {
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (ac_try="$ac_link"
9252 case "(($ac_try" in
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_link") 2>conftest.er1
9258 ac_status=$?
9259 grep -v '^ *+' conftest.er1 >conftest.err
9260 rm -f conftest.er1
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } && {
9264 test -z "$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9266 } && test -s conftest$ac_exeext &&
9267 $as_test_x conftest$ac_exeext; then
9268
9269 lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9271 /^0/ {
9272 s/^0 *\(.*\)$/\1/
9273 p
9274 }
9275 }'
9276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 # Check for a 64-bit object if we didn't find anything.
9278 if test -z "$aix_libpath"; then
9279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280 fi
9281 else
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285
9286 fi
9287
9288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9289 conftest$ac_exeext conftest.$ac_ext
9290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9291
9292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9293 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9294 else
9295 if test "$host_cpu" = ia64; then
9296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9297 allow_undefined_flag="-z nodefs"
9298 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9299 else
9300 # Determine the default libpath from the value encoded in an
9301 # empty executable.
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308
9309 int
9310 main ()
9311 {
9312
9313 ;
9314 return 0;
9315 }
9316 _ACEOF
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (ac_try="$ac_link"
9319 case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322 esac
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_link") 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && {
9331 test -z "$ac_c_werror_flag" ||
9332 test ! -s conftest.err
9333 } && test -s conftest$ac_exeext &&
9334 $as_test_x conftest$ac_exeext; then
9335
9336 lt_aix_libpath_sed='
9337 /Import File Strings/,/^$/ {
9338 /^0/ {
9339 s/^0 *\(.*\)$/\1/
9340 p
9341 }
9342 }'
9343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9344 # Check for a 64-bit object if we didn't find anything.
9345 if test -z "$aix_libpath"; then
9346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9347 fi
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352
9353 fi
9354
9355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 conftest$ac_exeext conftest.$ac_ext
9357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9358
9359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9360 # Warning - without using the other run time loading flags,
9361 # -berok will link without error, but may produce a broken library.
9362 no_undefined_flag=' ${wl}-bernotok'
9363 allow_undefined_flag=' ${wl}-berok'
9364 # Exported symbols can be pulled into shared objects from archives
9365 whole_archive_flag_spec='$convenience'
9366 archive_cmds_need_lc=yes
9367 # This is similar to how AIX traditionally builds its shared libraries.
9368 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9369 fi
9370 fi
9371 ;;
9372
9373 amigaos*)
9374 if test "$host_cpu" = m68k; then
9375 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_minus_L=yes
9378 fi
9379 # see comment about different semantics on the GNU ld section
9380 ld_shlibs=no
9381 ;;
9382
9383 bsdi[45]*)
9384 export_dynamic_flag_spec=-rdynamic
9385 ;;
9386
9387 cygwin* | mingw* | pw32*)
9388 # When not using gcc, we currently assume that we are using
9389 # Microsoft Visual C++.
9390 # hardcode_libdir_flag_spec is actually meaningless, as there is
9391 # no search path for DLLs.
9392 hardcode_libdir_flag_spec=' '
9393 allow_undefined_flag=unsupported
9394 # Tell ltmain to make .lib files, not .a files.
9395 libext=lib
9396 # Tell ltmain to make .dll files, not .so files.
9397 shrext_cmds=".dll"
9398 # FIXME: Setting linknames here is a bad hack.
9399 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9400 # The linker will automatically build a .lib file if we build a DLL.
9401 old_archive_from_new_cmds='true'
9402 # FIXME: Should let the user specify the lib program.
9403 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9404 fix_srcfile_path='`cygpath -w "$srcfile"`'
9405 enable_shared_with_static_runtimes=yes
9406 ;;
9407
9408 darwin* | rhapsody*)
9409 case $host_os in
9410 rhapsody* | darwin1.[012])
9411 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9412 ;;
9413 *) # Darwin 1.3 on
9414 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9415 10.[012])
9416 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9417 ;;
9418 10.*)
9419 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9420 ;;
9421 esac
9422 ;;
9423 esac
9424 archive_cmds_need_lc=no
9425 hardcode_direct=no
9426 hardcode_automatic=yes
9427 hardcode_shlibpath_var=unsupported
9428 whole_archive_flag_spec=''
9429 link_all_deplibs=yes
9430 if test "$GCC" = yes ; then
9431 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 lt_cv_apple_cc_single_mod=no
9435 if test -z "${LT_MULTI_MODULE}"; then
9436 # By default we will add the -single_module flag. You can override
9437 # by either setting the environment variable LT_MULTI_MODULE
9438 # non-empty at configure time, or by adding -multi-module to the
9439 # link flags.
9440 echo "int foo(void){return 1;}" > conftest.c
9441 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9442 -dynamiclib ${wl}-single_module conftest.c
9443 if test -f libconftest.dylib; then
9444 lt_cv_apple_cc_single_mod=yes
9445 rm libconftest.dylib
9446 fi
9447 rm conftest.$ac_ext
9448 fi
9449 fi
9450
9451 output_verbose_link_cmd=echo
9452 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9453 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9454 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9455 else
9456 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9457 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9458 fi
9459 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9460 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9461 else
9462 case $cc_basename in
9463 xlc*)
9464 output_verbose_link_cmd=echo
9465 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9466 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9468 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9469 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9470 ;;
9471 *)
9472 ld_shlibs=no
9473 ;;
9474 esac
9475 fi
9476 ;;
9477
9478 dgux*)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 hardcode_shlibpath_var=no
9482 ;;
9483
9484 freebsd1*)
9485 ld_shlibs=no
9486 ;;
9487
9488 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9489 # support. Future versions do this automatically, but an explicit c++rt0.o
9490 # does not break anything, and helps significantly (at the cost of a little
9491 # extra space).
9492 freebsd2.2*)
9493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_direct=yes
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9500 freebsd2*)
9501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_direct=yes
9503 hardcode_minus_L=yes
9504 hardcode_shlibpath_var=no
9505 ;;
9506
9507 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9508 freebsd* | dragonfly*)
9509 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 hpux9*)
9516 if test "$GCC" = yes; then
9517 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9518 else
9519 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9520 fi
9521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 hardcode_direct=yes
9524
9525 # hardcode_minus_L: Not really in the search PATH,
9526 # but as the default location of the library.
9527 hardcode_minus_L=yes
9528 export_dynamic_flag_spec='${wl}-E'
9529 ;;
9530
9531 hpux10*)
9532 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9533 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9536 fi
9537 if test "$with_gnu_ld" = no; then
9538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9539 hardcode_libdir_flag_spec_ld='+b $libdir'
9540 hardcode_libdir_separator=:
9541 hardcode_direct=yes
9542 hardcode_direct_absolute=yes
9543 export_dynamic_flag_spec='${wl}-E'
9544 # hardcode_minus_L: Not really in the search PATH,
9545 # but as the default location of the library.
9546 hardcode_minus_L=yes
9547 fi
9548 ;;
9549
9550 hpux11*)
9551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9552 case $host_cpu in
9553 hppa*64*)
9554 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 ;;
9556 ia64*)
9557 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9558 ;;
9559 *)
9560 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561 ;;
9562 esac
9563 else
9564 case $host_cpu in
9565 hppa*64*)
9566 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 ;;
9568 ia64*)
9569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9570 ;;
9571 *)
9572 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9573 ;;
9574 esac
9575 fi
9576 if test "$with_gnu_ld" = no; then
9577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator=:
9579
9580 case $host_cpu in
9581 hppa*64*|ia64*)
9582 hardcode_direct=no
9583 hardcode_shlibpath_var=no
9584 ;;
9585 *)
9586 hardcode_direct=yes
9587 hardcode_direct_absolute=yes
9588 export_dynamic_flag_spec='${wl}-E'
9589
9590 # hardcode_minus_L: Not really in the search PATH,
9591 # but as the default location of the library.
9592 hardcode_minus_L=yes
9593 ;;
9594 esac
9595 fi
9596 ;;
9597
9598 irix5* | irix6* | nonstopux*)
9599 if test "$GCC" = yes; then
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9601 # Try to use the -exported_symbol ld option, if it does not
9602 # work, assume that -exports_file does not work either and
9603 # implicitly export all symbols.
9604 save_LDFLAGS="$LDFLAGS"
9605 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 int foo(void) {}
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9628
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633
9634 fi
9635
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LDFLAGS="$save_LDFLAGS"
9639 else
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9642 fi
9643 archive_cmds_need_lc='no'
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 inherit_rpath=yes
9647 link_all_deplibs=yes
9648 ;;
9649
9650 netbsd*)
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9653 else
9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_direct=yes
9658 hardcode_shlibpath_var=no
9659 ;;
9660
9661 newsos6)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=yes
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 hardcode_libdir_separator=:
9666 hardcode_shlibpath_var=no
9667 ;;
9668
9669 *nto* | *qnx*)
9670 ;;
9671
9672 openbsd*)
9673 hardcode_direct=yes
9674 hardcode_shlibpath_var=no
9675 hardcode_direct_absolute=yes
9676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680 export_dynamic_flag_spec='${wl}-E'
9681 else
9682 case $host_os in
9683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_libdir_flag_spec='-R$libdir'
9686 ;;
9687 *)
9688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9690 ;;
9691 esac
9692 fi
9693 ;;
9694
9695 os2*)
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 allow_undefined_flag=unsupported
9699 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9700 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9701 ;;
9702
9703 osf3*)
9704 if test "$GCC" = yes; then
9705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9706 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9707 else
9708 allow_undefined_flag=' -expect_unresolved \*'
9709 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9710 fi
9711 archive_cmds_need_lc='no'
9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9713 hardcode_libdir_separator=:
9714 ;;
9715
9716 osf4* | osf5*) # as osf3* with the addition of -msym flag
9717 if test "$GCC" = yes; then
9718 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 else
9722 allow_undefined_flag=' -expect_unresolved \*'
9723 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9724 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9725 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9726
9727 # Both c and cxx compiler support -rpath directly
9728 hardcode_libdir_flag_spec='-rpath $libdir'
9729 fi
9730 archive_cmds_need_lc='no'
9731 hardcode_libdir_separator=:
9732 ;;
9733
9734 solaris*)
9735 no_undefined_flag=' -z defs'
9736 if test "$GCC" = yes; then
9737 wlarc='${wl}'
9738 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9741 else
9742 case `$CC -V 2>&1` in
9743 *"Compilers 5.0"*)
9744 wlarc=''
9745 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9747 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9748 ;;
9749 *)
9750 wlarc='${wl}'
9751 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9753 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9754 ;;
9755 esac
9756 fi
9757 hardcode_libdir_flag_spec='-R$libdir'
9758 hardcode_shlibpath_var=no
9759 case $host_os in
9760 solaris2.[0-5] | solaris2.[0-5].*) ;;
9761 *)
9762 # The compiler driver will combine and reorder linker options,
9763 # but understands `-z linker_flag'. GCC discards it without `$wl',
9764 # but is careful enough not to reorder.
9765 # Supported since Solaris 2.6 (maybe 2.5.1?)
9766 if test "$GCC" = yes; then
9767 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9768 else
9769 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9770 fi
9771 ;;
9772 esac
9773 link_all_deplibs=yes
9774 ;;
9775
9776 sunos4*)
9777 if test "x$host_vendor" = xsequent; then
9778 # Use $CC to link under sequent, because it throws in some extra .o
9779 # files that make .init and .fini sections work.
9780 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9781 else
9782 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9783 fi
9784 hardcode_libdir_flag_spec='-L$libdir'
9785 hardcode_direct=yes
9786 hardcode_minus_L=yes
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 sysv4)
9791 case $host_vendor in
9792 sni)
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes # is this really true???
9795 ;;
9796 siemens)
9797 ## LD is ld it makes a PLAMLIB
9798 ## CC just makes a GrossModule.
9799 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9800 reload_cmds='$CC -r -o $output$reload_objs'
9801 hardcode_direct=no
9802 ;;
9803 motorola)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9806 ;;
9807 esac
9808 runpath_var='LD_RUN_PATH'
9809 hardcode_shlibpath_var=no
9810 ;;
9811
9812 sysv4.3*)
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_shlibpath_var=no
9815 export_dynamic_flag_spec='-Bexport'
9816 ;;
9817
9818 sysv4*MP*)
9819 if test -d /usr/nec; then
9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_shlibpath_var=no
9822 runpath_var=LD_RUN_PATH
9823 hardcode_runpath_var=yes
9824 ld_shlibs=yes
9825 fi
9826 ;;
9827
9828 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9829 no_undefined_flag='${wl}-z,text'
9830 archive_cmds_need_lc=no
9831 hardcode_shlibpath_var=no
9832 runpath_var='LD_RUN_PATH'
9833
9834 if test "$GCC" = yes; then
9835 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 else
9838 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 fi
9841 ;;
9842
9843 sysv5* | sco3.2v5* | sco5v6*)
9844 # Note: We can NOT use -z defs as we might desire, because we do not
9845 # link with -lc, and that would cause any symbols used from libc to
9846 # always be unresolved, which means just about no library would
9847 # ever link correctly. If we're not using GNU ld we use -z text
9848 # though, which does catch some bad symbols but isn't as heavy-handed
9849 # as -z defs.
9850 no_undefined_flag='${wl}-z,text'
9851 allow_undefined_flag='${wl}-z,nodefs'
9852 archive_cmds_need_lc=no
9853 hardcode_shlibpath_var=no
9854 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9855 hardcode_libdir_separator=':'
9856 link_all_deplibs=yes
9857 export_dynamic_flag_spec='${wl}-Bexport'
9858 runpath_var='LD_RUN_PATH'
9859
9860 if test "$GCC" = yes; then
9861 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 else
9864 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866 fi
9867 ;;
9868
9869 uts4*)
9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 *)
9876 ld_shlibs=no
9877 ;;
9878 esac
9879
9880 if test x$host_vendor = xsni; then
9881 case $host in
9882 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9883 export_dynamic_flag_spec='${wl}-Blargedynsym'
9884 ;;
9885 esac
9886 fi
9887 fi
9888
9889 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9890 echo "${ECHO_T}$ld_shlibs" >&6; }
9891 test "$ld_shlibs" = no && can_build_shared=no
9892
9893 with_gnu_ld=$with_gnu_ld
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909 #
9910 # Do we need to explicitly link libc?
9911 #
9912 case "x$archive_cmds_need_lc" in
9913 x|xyes)
9914 # Assume -lc should be added
9915 archive_cmds_need_lc=yes
9916
9917 if test "$enable_shared" = yes && test "$GCC" = yes; then
9918 case $archive_cmds in
9919 *'~'*)
9920 # FIXME: we may have to deal with multi-command sequences.
9921 ;;
9922 '$CC '*)
9923 # Test whether the compiler implicitly links with -lc since on some
9924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9925 # to ld, don't add -lc before -lgcc.
9926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9928 $RM conftest*
9929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930
9931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } 2>conftest.err; then
9936 soname=conftest
9937 lib=conftest
9938 libobjs=conftest.$ac_objext
9939 deplibs=
9940 wl=$lt_prog_compiler_wl
9941 pic_flag=$lt_prog_compiler_pic
9942 compiler_flags=-v
9943 linker_flags=-v
9944 verstring=
9945 output_objdir=.
9946 libname=conftest
9947 lt_save_allow_undefined_flag=$allow_undefined_flag
9948 allow_undefined_flag=
9949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9950 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }
9954 then
9955 archive_cmds_need_lc=no
9956 else
9957 archive_cmds_need_lc=yes
9958 fi
9959 allow_undefined_flag=$lt_save_allow_undefined_flag
9960 else
9961 cat conftest.err 1>&5
9962 fi
9963 $RM conftest*
9964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9966 ;;
9967 esac
9968 fi
9969 ;;
9970 esac
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10129 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10130 withGCC=$GCC
10131 if test "$withGCC" = yes; then
10132 case $host_os in
10133 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10134 *) lt_awk_arg="/^libraries:/" ;;
10135 esac
10136 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10137 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10138 # if the path contains ";" then we assume it to be the separator
10139 # otherwise default to the standard path separator (i.e. ":") - it is
10140 # assumed that no part of a normal pathname contains ";" but that should
10141 # okay in the real world where ";" in dirpaths is itself problematic.
10142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10143 else
10144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10145 fi
10146 # Ok, now we have the path, separated by spaces, we can step through it
10147 # and add multilib dir if necessary.
10148 lt_tmp_lt_search_path_spec=
10149 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10150 for lt_sys_path in $lt_search_path_spec; do
10151 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10153 else
10154 test -d "$lt_sys_path" && \
10155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10156 fi
10157 done
10158 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10159 BEGIN {RS=" "; FS="/|\n";} {
10160 lt_foo="";
10161 lt_count=0;
10162 for (lt_i = NF; lt_i > 0; lt_i--) {
10163 if ($lt_i != "" && $lt_i != ".") {
10164 if ($lt_i == "..") {
10165 lt_count++;
10166 } else {
10167 if (lt_count == 0) {
10168 lt_foo="/" $lt_i lt_foo;
10169 } else {
10170 lt_count--;
10171 }
10172 }
10173 }
10174 }
10175 if (lt_foo != "") { lt_freq[lt_foo]++; }
10176 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10177 }'`
10178 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10179 else
10180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10181 fi
10182 library_names_spec=
10183 libname_spec='lib$name'
10184 soname_spec=
10185 shrext_cmds=".so"
10186 postinstall_cmds=
10187 postuninstall_cmds=
10188 finish_cmds=
10189 finish_eval=
10190 shlibpath_var=
10191 shlibpath_overrides_runpath=unknown
10192 version_type=none
10193 dynamic_linker="$host_os ld.so"
10194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10195 need_lib_prefix=unknown
10196 hardcode_into_libs=no
10197
10198 # when you set need_version to no, make sure it does not cause -set_version
10199 # flags to be left without arguments
10200 need_version=unknown
10201
10202 case $host_os in
10203 aix3*)
10204 version_type=linux
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10206 shlibpath_var=LIBPATH
10207
10208 # AIX 3 has no versioning support, so we append a major version to the name.
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 ;;
10211
10212 aix4* | aix5*)
10213 version_type=linux
10214 need_lib_prefix=no
10215 need_version=no
10216 hardcode_into_libs=yes
10217 if test "$host_cpu" = ia64; then
10218 # AIX 5 supports IA64
10219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 else
10222 # With GCC up to 2.95.x, collect2 would create an import file
10223 # for dependence libraries. The import file would start with
10224 # the line `#! .'. This would cause the generated library to
10225 # depend on `.', always an invalid library. This was fixed in
10226 # development snapshots of GCC prior to 3.0.
10227 case $host_os in
10228 aix4 | aix4.[01] | aix4.[01].*)
10229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10230 echo ' yes '
10231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10232 :
10233 else
10234 can_build_shared=no
10235 fi
10236 ;;
10237 esac
10238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10239 # soname into executable. Probably we can add versioning support to
10240 # collect2, so additional links can be useful in future.
10241 if test "$aix_use_runtimelinking" = yes; then
10242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10243 # instead of lib<name>.a to let people know that these are not
10244 # typical AIX shared libraries.
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 else
10247 # We preserve .a as extension for shared libraries through AIX4.2
10248 # and later when we are not doing run time linking.
10249 library_names_spec='${libname}${release}.a $libname.a'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 fi
10252 shlibpath_var=LIBPATH
10253 fi
10254 ;;
10255
10256 amigaos*)
10257 if test "$host_cpu" = m68k; then
10258 library_names_spec='$libname.ixlibrary $libname.a'
10259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10260 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10261 else
10262 dynamic_linker=no
10263 fi
10264 ;;
10265
10266 beos*)
10267 library_names_spec='${libname}${shared_ext}'
10268 dynamic_linker="$host_os ld.so"
10269 shlibpath_var=LIBRARY_PATH
10270 ;;
10271
10272 bsdi[45]*)
10273 version_type=linux
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10281 # the default ld.so.conf also contains /usr/contrib/lib and
10282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10283 # libtool to hard-code these into programs
10284 ;;
10285
10286 cygwin* | mingw* | pw32*)
10287 version_type=windows
10288 shrext_cmds=".dll"
10289 need_version=no
10290 need_lib_prefix=no
10291
10292 case $withGCC,$host_os in
10293 yes,cygwin* | yes,mingw* | yes,pw32*)
10294 library_names_spec='$libname.dll.a'
10295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10296 postinstall_cmds='base_file=`basename \${file}`~
10297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10298 dldir=$destdir/`dirname \$dlpath`~
10299 test -d \$dldir || mkdir -p \$dldir~
10300 $install_prog $dir/$dlname \$dldir/$dlname~
10301 chmod a+x \$dldir/$dlname~
10302 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10303 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10304 fi'
10305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10306 dlpath=$dir/\$dldll~
10307 $RM \$dlpath'
10308 shlibpath_overrides_runpath=yes
10309
10310 case $host_os in
10311 cygwin*)
10312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10315 ;;
10316 mingw*)
10317 # MinGW DLLs use traditional 'lib' prefix
10318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10319 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10320 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10321 # It is most probably a Windows format PATH printed by
10322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10323 # path with ; separators, and with drive letters. We can handle the
10324 # drive letters (cygwin fileutils understands them), so leave them,
10325 # especially as we might pass files found there to a mingw objdump,
10326 # which wouldn't understand a cygwinified path. Ahh.
10327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10328 else
10329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10330 fi
10331 ;;
10332 pw32*)
10333 # pw32 DLLs use 'pw' prefix rather than 'lib'
10334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335 ;;
10336 esac
10337 ;;
10338
10339 *)
10340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10341 ;;
10342 esac
10343 dynamic_linker='Win32 ld.exe'
10344 # FIXME: first we should search . and the directory the executable is in
10345 shlibpath_var=PATH
10346 ;;
10347
10348 darwin* | rhapsody*)
10349 dynamic_linker="$host_os dyld"
10350 version_type=darwin
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10354 soname_spec='${libname}${release}${major}$shared_ext'
10355 shlibpath_overrides_runpath=yes
10356 shlibpath_var=DYLD_LIBRARY_PATH
10357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10358
10359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10361 ;;
10362
10363 dgux*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 ;;
10371
10372 freebsd1*)
10373 dynamic_linker=no
10374 ;;
10375
10376 freebsd* | dragonfly*)
10377 # DragonFly does not have aout. When/if they implement a new
10378 # versioning mechanism, adjust this.
10379 if test -x /usr/bin/objformat; then
10380 objformat=`/usr/bin/objformat`
10381 else
10382 case $host_os in
10383 freebsd[123]*) objformat=aout ;;
10384 *) objformat=elf ;;
10385 esac
10386 fi
10387 version_type=freebsd-$objformat
10388 case $version_type in
10389 freebsd-elf*)
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 need_version=no
10392 need_lib_prefix=no
10393 ;;
10394 freebsd-*)
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10396 need_version=yes
10397 ;;
10398 esac
10399 shlibpath_var=LD_LIBRARY_PATH
10400 case $host_os in
10401 freebsd2*)
10402 shlibpath_overrides_runpath=yes
10403 ;;
10404 freebsd3.[01]* | freebsdelf3.[01]*)
10405 shlibpath_overrides_runpath=yes
10406 hardcode_into_libs=yes
10407 ;;
10408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10410 shlibpath_overrides_runpath=no
10411 hardcode_into_libs=yes
10412 ;;
10413 *) # from 4.6 on, and DragonFly
10414 shlibpath_overrides_runpath=yes
10415 hardcode_into_libs=yes
10416 ;;
10417 esac
10418 ;;
10419
10420 gnu*)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 hardcode_into_libs=yes
10428 ;;
10429
10430 hpux9* | hpux10* | hpux11*)
10431 # Give a soname corresponding to the major version so that dld.sl refuses to
10432 # link against other versions.
10433 version_type=sunos
10434 need_lib_prefix=no
10435 need_version=no
10436 case $host_cpu in
10437 ia64*)
10438 shrext_cmds='.so'
10439 hardcode_into_libs=yes
10440 dynamic_linker="$host_os dld.so"
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 if test "X$HPUX_IA64_MODE" = X32; then
10446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10447 else
10448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10449 fi
10450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10451 ;;
10452 hppa*64*)
10453 shrext_cmds='.sl'
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.sl"
10456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10462 ;;
10463 *)
10464 shrext_cmds='.sl'
10465 dynamic_linker="$host_os dld.sl"
10466 shlibpath_var=SHLIB_PATH
10467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 ;;
10471 esac
10472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10473 postinstall_cmds='chmod 555 $lib'
10474 ;;
10475
10476 interix[3-9]*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 shlibpath_overrides_runpath=no
10485 hardcode_into_libs=yes
10486 ;;
10487
10488 irix5* | irix6* | nonstopux*)
10489 case $host_os in
10490 nonstopux*) version_type=nonstopux ;;
10491 *)
10492 if test "$lt_cv_prog_gnu_ld" = yes; then
10493 version_type=linux
10494 else
10495 version_type=irix
10496 fi ;;
10497 esac
10498 need_lib_prefix=no
10499 need_version=no
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10502 case $host_os in
10503 irix5* | nonstopux*)
10504 libsuff= shlibsuff=
10505 ;;
10506 *)
10507 case $LD in # libtool.m4 will add one of these switches to LD
10508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10509 libsuff= shlibsuff= libmagic=32-bit;;
10510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10511 libsuff=32 shlibsuff=N32 libmagic=N32;;
10512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10514 *) libsuff= shlibsuff= libmagic=never-match;;
10515 esac
10516 ;;
10517 esac
10518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10519 shlibpath_overrides_runpath=no
10520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10522 hardcode_into_libs=yes
10523 ;;
10524
10525 # No shared lib support for Linux oldld, aout, or coff.
10526 linux*oldld* | linux*aout* | linux*coff*)
10527 dynamic_linker=no
10528 ;;
10529
10530 # This must be Linux ELF.
10531 linux* | k*bsd*-gnu)
10532 version_type=linux
10533 need_lib_prefix=no
10534 need_version=no
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=no
10540 # Some binutils ld are patched to set DT_RUNPATH
10541 save_LDFLAGS=$LDFLAGS
10542 save_libdir=$libdir
10543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551
10552 int
10553 main ()
10554 {
10555
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (ac_try="$ac_link"
10562 case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_link") 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } && {
10574 test -z "$ac_c_werror_flag" ||
10575 test ! -s conftest.err
10576 } && test -s conftest$ac_exeext &&
10577 $as_test_x conftest$ac_exeext; then
10578 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
10579 shlibpath_overrides_runpath=yes
10580 fi
10581
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LDFLAGS=$save_LDFLAGS
10592 libdir=$save_libdir
10593
10594 # This implies no fast_install, which is unacceptable.
10595 # Some rework will be needed to allow for fast_install
10596 # before this can be enabled.
10597 hardcode_into_libs=yes
10598
10599 # Append ld.so.conf contents to the search path
10600 if test -f /etc/ld.so.conf; then
10601 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10603 fi
10604
10605 # We used to test for /lib/ld.so.1 and disable shared libraries on
10606 # powerpc, because MkLinux only supported shared libraries with the
10607 # GNU dynamic linker. Since this was broken with cross compilers,
10608 # most powerpc-linux boxes support dynamic linking these days and
10609 # people can always --disable-shared, the test was removed, and we
10610 # assume the GNU/Linux dynamic linker is in use.
10611 dynamic_linker='GNU/Linux ld.so'
10612 ;;
10613
10614 netbsd*)
10615 version_type=sunos
10616 need_lib_prefix=no
10617 need_version=no
10618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10621 dynamic_linker='NetBSD (a.out) ld.so'
10622 else
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 dynamic_linker='NetBSD ld.elf_so'
10626 fi
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 ;;
10631
10632 newsos6)
10633 version_type=linux
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 ;;
10638
10639 *nto* | *qnx*)
10640 version_type=qnx
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 dynamic_linker='ldqnx.so'
10649 ;;
10650
10651 openbsd*)
10652 version_type=sunos
10653 sys_lib_dlsearch_path_spec="/usr/lib"
10654 need_lib_prefix=no
10655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10656 case $host_os in
10657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10658 *) need_version=no ;;
10659 esac
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10664 case $host_os in
10665 openbsd2.[89] | openbsd2.[89].*)
10666 shlibpath_overrides_runpath=no
10667 ;;
10668 *)
10669 shlibpath_overrides_runpath=yes
10670 ;;
10671 esac
10672 else
10673 shlibpath_overrides_runpath=yes
10674 fi
10675 ;;
10676
10677 os2*)
10678 libname_spec='$name'
10679 shrext_cmds=".dll"
10680 need_lib_prefix=no
10681 library_names_spec='$libname${shared_ext} $libname.a'
10682 dynamic_linker='OS/2 ld.exe'
10683 shlibpath_var=LIBPATH
10684 ;;
10685
10686 osf3* | osf4* | osf5*)
10687 version_type=osf
10688 need_lib_prefix=no
10689 need_version=no
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10695 ;;
10696
10697 rdos*)
10698 dynamic_linker=no
10699 ;;
10700
10701 solaris*)
10702 version_type=linux
10703 need_lib_prefix=no
10704 need_version=no
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706 soname_spec='${libname}${release}${shared_ext}$major'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 # ldd complains unless libraries are executable
10711 postinstall_cmds='chmod +x $lib'
10712 ;;
10713
10714 sunos4*)
10715 version_type=sunos
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10720 if test "$with_gnu_ld" = yes; then
10721 need_lib_prefix=no
10722 fi
10723 need_version=yes
10724 ;;
10725
10726 sysv4 | sysv4.3*)
10727 version_type=linux
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 case $host_vendor in
10732 sni)
10733 shlibpath_overrides_runpath=no
10734 need_lib_prefix=no
10735 runpath_var=LD_RUN_PATH
10736 ;;
10737 siemens)
10738 need_lib_prefix=no
10739 ;;
10740 motorola)
10741 need_lib_prefix=no
10742 need_version=no
10743 shlibpath_overrides_runpath=no
10744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10745 ;;
10746 esac
10747 ;;
10748
10749 sysv4*MP*)
10750 if test -d /usr/nec ;then
10751 version_type=linux
10752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10753 soname_spec='$libname${shared_ext}.$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 fi
10756 ;;
10757
10758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10759 version_type=freebsd-elf
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 hardcode_into_libs=yes
10767 if test "$with_gnu_ld" = yes; then
10768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10769 else
10770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10771 case $host_os in
10772 sco3.2v5*)
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10774 ;;
10775 esac
10776 fi
10777 sys_lib_dlsearch_path_spec='/usr/lib'
10778 ;;
10779
10780 tpf*)
10781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10782 version_type=linux
10783 need_lib_prefix=no
10784 need_version=no
10785 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
10791 uts4*)
10792 version_type=linux
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 ;;
10797
10798 *)
10799 dynamic_linker=no
10800 ;;
10801 esac
10802 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10803 echo "${ECHO_T}$dynamic_linker" >&6; }
10804 test "$dynamic_linker" = no && can_build_shared=no
10805
10806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10807 if test "$GCC" = yes; then
10808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10809 fi
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10899 hardcode_action=
10900 if test -n "$hardcode_libdir_flag_spec" ||
10901 test -n "$runpath_var" ||
10902 test "X$hardcode_automatic" = "Xyes" ; then
10903
10904 # We can hardcode non-existent directories.
10905 if test "$hardcode_direct" != no &&
10906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10907 # have to relink, otherwise we might link with an installed library
10908 # when we should be linking with a yet-to-be-installed one
10909 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10910 test "$hardcode_minus_L" != no; then
10911 # Linking always hardcodes the temporary library directory.
10912 hardcode_action=relink
10913 else
10914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10915 hardcode_action=immediate
10916 fi
10917 else
10918 # We cannot hardcode anything, or else we can only hardcode existing
10919 # directories.
10920 hardcode_action=unsupported
10921 fi
10922 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10923 echo "${ECHO_T}$hardcode_action" >&6; }
10924
10925 if test "$hardcode_action" = relink ||
10926 test "$inherit_rpath" = yes; then
10927 # Fast installation is not supported
10928 enable_fast_install=no
10929 elif test "$shlibpath_overrides_runpath" = yes ||
10930 test "$enable_shared" = no; then
10931 # Fast installation is not necessary
10932 enable_fast_install=needless
10933 fi
10934
10935
10936
10937
10938
10939
10940 if test "x$enable_dlopen" != xyes; then
10941 enable_dlopen=unknown
10942 enable_dlopen_self=unknown
10943 enable_dlopen_self_static=unknown
10944 else
10945 lt_cv_dlopen=no
10946 lt_cv_dlopen_libs=
10947
10948 case $host_os in
10949 beos*)
10950 lt_cv_dlopen="load_add_on"
10951 lt_cv_dlopen_libs=
10952 lt_cv_dlopen_self=yes
10953 ;;
10954
10955 mingw* | pw32*)
10956 lt_cv_dlopen="LoadLibrary"
10957 lt_cv_dlopen_libs=
10958 ;;
10959
10960 cygwin*)
10961 lt_cv_dlopen="dlopen"
10962 lt_cv_dlopen_libs=
10963 ;;
10964
10965 darwin*)
10966 # if libdl is installed we need to link against it
10967 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10968 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-ldl $LIBS"
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h. */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char dlopen ();
10988 int
10989 main ()
10990 {
10991 return dlopen ();
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest$ac_exeext &&
11013 $as_test_x conftest$ac_exeext; then
11014 ac_cv_lib_dl_dlopen=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_cv_lib_dl_dlopen=no
11020 fi
11021
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023 conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11028 if test $ac_cv_lib_dl_dlopen = yes; then
11029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11030 else
11031
11032 lt_cv_dlopen="dyld"
11033 lt_cv_dlopen_libs=
11034 lt_cv_dlopen_self=yes
11035
11036 fi
11037
11038 ;;
11039
11040 *)
11041 { echo "$as_me:$LINENO: checking for shl_load" >&5
11042 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11043 if test "${ac_cv_func_shl_load+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define shl_load innocuous_shl_load
11055
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char shl_load (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11060
11061 #ifdef __STDC__
11062 # include <limits.h>
11063 #else
11064 # include <assert.h>
11065 #endif
11066
11067 #undef shl_load
11068
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char shl_load ();
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_shl_load || defined __stub___shl_load
11080 choke me
11081 #endif
11082
11083 int
11084 main ()
11085 {
11086 return shl_load ();
11087 ;
11088 return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 ac_cv_func_shl_load=yes
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_cv_func_shl_load=no
11115 fi
11116
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11121 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11122 if test $ac_cv_func_shl_load = yes; then
11123 lt_cv_dlopen="shl_load"
11124 else
11125 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11126 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11127 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-ldld $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char shl_load ();
11146 int
11147 main ()
11148 {
11149 return shl_load ();
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_link") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest$ac_exeext &&
11171 $as_test_x conftest$ac_exeext; then
11172 ac_cv_lib_dld_shl_load=yes
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 ac_cv_lib_dld_shl_load=no
11178 fi
11179
11180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11185 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11186 if test $ac_cv_lib_dld_shl_load = yes; then
11187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11188 else
11189 { echo "$as_me:$LINENO: checking for dlopen" >&5
11190 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11191 if test "${ac_cv_func_dlopen+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define dlopen innocuous_dlopen
11203
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char dlopen (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11208
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11214
11215 #undef dlopen
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char dlopen ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_dlopen || defined __stub___dlopen
11228 choke me
11229 #endif
11230
11231 int
11232 main ()
11233 {
11234 return dlopen ();
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11257 ac_cv_func_dlopen=yes
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_cv_func_dlopen=no
11263 fi
11264
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11267 fi
11268 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11269 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11270 if test $ac_cv_func_dlopen = yes; then
11271 lt_cv_dlopen="dlopen"
11272 else
11273 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11274 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-ldl $LIBS"
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 char dlopen ();
11294 int
11295 main ()
11296 {
11297 return dlopen ();
11298 ;
11299 return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest$ac_exeext &&
11319 $as_test_x conftest$ac_exeext; then
11320 ac_cv_lib_dl_dlopen=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325 ac_cv_lib_dl_dlopen=no
11326 fi
11327
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11334 if test $ac_cv_lib_dl_dlopen = yes; then
11335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11336 else
11337 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11338 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-lsvld $LIBS"
11344 cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h. */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 char dlopen ();
11358 int
11359 main ()
11360 {
11361 return dlopen ();
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (ac_try="$ac_link"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_link") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest$ac_exeext &&
11383 $as_test_x conftest$ac_exeext; then
11384 ac_cv_lib_svld_dlopen=yes
11385 else
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 ac_cv_lib_svld_dlopen=no
11390 fi
11391
11392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11395 fi
11396 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11397 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11398 if test $ac_cv_lib_svld_dlopen = yes; then
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11400 else
11401 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11402 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11403 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-ldld $LIBS"
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h. */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414
11415 /* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 char dld_link ();
11422 int
11423 main ()
11424 {
11425 return dld_link ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 ac_cv_lib_dld_dld_link=yes
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_lib_dld_dld_link=no
11454 fi
11455
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11459 fi
11460 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11461 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11462 if test $ac_cv_lib_dld_dld_link = yes; then
11463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11464 fi
11465
11466
11467 fi
11468
11469
11470 fi
11471
11472
11473 fi
11474
11475
11476 fi
11477
11478
11479 fi
11480
11481 ;;
11482 esac
11483
11484 if test "x$lt_cv_dlopen" != xno; then
11485 enable_dlopen=yes
11486 else
11487 enable_dlopen=no
11488 fi
11489
11490 case $lt_cv_dlopen in
11491 dlopen)
11492 save_CPPFLAGS="$CPPFLAGS"
11493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11494
11495 save_LDFLAGS="$LDFLAGS"
11496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11497
11498 save_LIBS="$LIBS"
11499 LIBS="$lt_cv_dlopen_libs $LIBS"
11500
11501 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11502 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11503 if test "${lt_cv_dlopen_self+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506 if test "$cross_compiling" = yes; then :
11507 lt_cv_dlopen_self=cross
11508 else
11509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11510 lt_status=$lt_dlunknown
11511 cat > conftest.$ac_ext <<_LT_EOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11514
11515 #if HAVE_DLFCN_H
11516 #include <dlfcn.h>
11517 #endif
11518
11519 #include <stdio.h>
11520
11521 #ifdef RTLD_GLOBAL
11522 # define LT_DLGLOBAL RTLD_GLOBAL
11523 #else
11524 # ifdef DL_GLOBAL
11525 # define LT_DLGLOBAL DL_GLOBAL
11526 # else
11527 # define LT_DLGLOBAL 0
11528 # endif
11529 #endif
11530
11531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532 find out it does not work in some platform. */
11533 #ifndef LT_DLLAZY_OR_NOW
11534 # ifdef RTLD_LAZY
11535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11536 # else
11537 # ifdef DL_LAZY
11538 # define LT_DLLAZY_OR_NOW DL_LAZY
11539 # else
11540 # ifdef RTLD_NOW
11541 # define LT_DLLAZY_OR_NOW RTLD_NOW
11542 # else
11543 # ifdef DL_NOW
11544 # define LT_DLLAZY_OR_NOW DL_NOW
11545 # else
11546 # define LT_DLLAZY_OR_NOW 0
11547 # endif
11548 # endif
11549 # endif
11550 # endif
11551 #endif
11552
11553 #ifdef __cplusplus
11554 extern "C" void exit (int);
11555 #endif
11556
11557 void fnord() { int i=42;}
11558 int main ()
11559 {
11560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561 int status = $lt_dlunknown;
11562
11563 if (self)
11564 {
11565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 /* dlclose (self); */
11568 }
11569 else
11570 puts (dlerror ());
11571
11572 exit (status);
11573 }
11574 _LT_EOF
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11580 (./conftest; exit; ) >&5 2>/dev/null
11581 lt_status=$?
11582 case x$lt_status in
11583 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586 esac
11587 else :
11588 # compilation failed
11589 lt_cv_dlopen_self=no
11590 fi
11591 fi
11592 rm -fr conftest*
11593
11594
11595 fi
11596 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11597 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11598
11599 if test "x$lt_cv_dlopen_self" = xyes; then
11600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11602 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11603 if test "${lt_cv_dlopen_self_static+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 if test "$cross_compiling" = yes; then :
11607 lt_cv_dlopen_self_static=cross
11608 else
11609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610 lt_status=$lt_dlunknown
11611 cat > conftest.$ac_ext <<_LT_EOF
11612 #line 11612 "configure"
11613 #include "confdefs.h"
11614
11615 #if HAVE_DLFCN_H
11616 #include <dlfcn.h>
11617 #endif
11618
11619 #include <stdio.h>
11620
11621 #ifdef RTLD_GLOBAL
11622 # define LT_DLGLOBAL RTLD_GLOBAL
11623 #else
11624 # ifdef DL_GLOBAL
11625 # define LT_DLGLOBAL DL_GLOBAL
11626 # else
11627 # define LT_DLGLOBAL 0
11628 # endif
11629 #endif
11630
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632 find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11634 # ifdef RTLD_LAZY
11635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11636 # else
11637 # ifdef DL_LAZY
11638 # define LT_DLLAZY_OR_NOW DL_LAZY
11639 # else
11640 # ifdef RTLD_NOW
11641 # define LT_DLLAZY_OR_NOW RTLD_NOW
11642 # else
11643 # ifdef DL_NOW
11644 # define LT_DLLAZY_OR_NOW DL_NOW
11645 # else
11646 # define LT_DLLAZY_OR_NOW 0
11647 # endif
11648 # endif
11649 # endif
11650 # endif
11651 #endif
11652
11653 #ifdef __cplusplus
11654 extern "C" void exit (int);
11655 #endif
11656
11657 void fnord() { int i=42;}
11658 int main ()
11659 {
11660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11661 int status = $lt_dlunknown;
11662
11663 if (self)
11664 {
11665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 /* dlclose (self); */
11668 }
11669 else
11670 puts (dlerror ());
11671
11672 exit (status);
11673 }
11674 _LT_EOF
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11680 (./conftest; exit; ) >&5 2>/dev/null
11681 lt_status=$?
11682 case x$lt_status in
11683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 esac
11687 else :
11688 # compilation failed
11689 lt_cv_dlopen_self_static=no
11690 fi
11691 fi
11692 rm -fr conftest*
11693
11694
11695 fi
11696 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11697 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11698 fi
11699
11700 CPPFLAGS="$save_CPPFLAGS"
11701 LDFLAGS="$save_LDFLAGS"
11702 LIBS="$save_LIBS"
11703 ;;
11704 esac
11705
11706 case $lt_cv_dlopen_self in
11707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11708 *) enable_dlopen_self=unknown ;;
11709 esac
11710
11711 case $lt_cv_dlopen_self_static in
11712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11713 *) enable_dlopen_self_static=unknown ;;
11714 esac
11715 fi
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733 striplib=
11734 old_striplib=
11735 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11737 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11740 { echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6; }
11742 else
11743 # FIXME - insert some real tests, host_os isn't really good enough
11744 case $host_os in
11745 darwin*)
11746 if test -n "$STRIP" ; then
11747 striplib="$STRIP -x"
11748 old_striplib="$STRIP -S"
11749 { echo "$as_me:$LINENO: result: yes" >&5
11750 echo "${ECHO_T}yes" >&6; }
11751 else
11752 { echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6; }
11754 fi
11755 ;;
11756 *)
11757 { echo "$as_me:$LINENO: result: no" >&5
11758 echo "${ECHO_T}no" >&6; }
11759 ;;
11760 esac
11761 fi
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774 # Report which library types will actually be built
11775 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11776 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11777 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11778 echo "${ECHO_T}$can_build_shared" >&6; }
11779
11780 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11781 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11782 test "$can_build_shared" = "no" && enable_shared=no
11783
11784 # On AIX, shared libraries and static libraries use the same namespace, and
11785 # are all built from PIC.
11786 case $host_os in
11787 aix3*)
11788 test "$enable_shared" = yes && enable_static=no
11789 if test -n "$RANLIB"; then
11790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11791 postinstall_cmds='$RANLIB $lib'
11792 fi
11793 ;;
11794
11795 aix4* | aix5*)
11796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11797 test "$enable_shared" = yes && enable_static=no
11798 fi
11799 ;;
11800 esac
11801 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11802 echo "${ECHO_T}$enable_shared" >&6; }
11803
11804 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11805 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11806 # Make sure either enable_shared or enable_static is yes.
11807 test "$enable_shared" = yes || enable_static=yes
11808 { echo "$as_me:$LINENO: result: $enable_static" >&5
11809 echo "${ECHO_T}$enable_static" >&6; }
11810
11811
11812
11813
11814 fi
11815 ac_ext=c
11816 ac_cpp='$CPP $CPPFLAGS'
11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821 CC="$lt_save_CC"
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835 ac_config_commands="$ac_config_commands libtool"
11836
11837
11838
11839
11840 # Only expand once:
11841
11842
11843 fi
11844
11845 # Check whether --enable-newlib_hw_fp was given.
11846 if test "${enable_newlib_hw_fp+set}" = set; then
11847 enableval=$enable_newlib_hw_fp; case "${enableval}" in
11848 yes) newlib_hw_fp=true ;;
11849 no) newlib_hw_fp=false ;;
11850 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
11851 echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
11852 { (exit 1); exit 1; }; } ;;
11853 esac
11854 else
11855 newlib_hw_fp=false
11856 fi
11857
11858
11859
11860 if test x$newlib_hw_fp = xtrue; then
11861 NEWLIB_HW_FP_TRUE=
11862 NEWLIB_HW_FP_FALSE='#'
11863 else
11864 NEWLIB_HW_FP_TRUE='#'
11865 NEWLIB_HW_FP_FALSE=
11866 fi
11867
11868
11869 # These get added in the top-level configure.in, except in the case where
11870 # newlib is being built natively.
11871 LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
11872 abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
11873 if test -z "${LIBC_INCLUDE_GREP}"; then
11874 CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
11875 else
11876 CC_FOR_NEWLIB="${CC}"
11877 fi
11878
11879
11880 subdirs="$subdirs libc"
11881
11882 subdirs="$subdirs libm"
11883
11884
11885 if test -z "${with_multisubdir}"; then
11886 subdirs="$subdirs doc"
11887
11888 have_doc=yes
11889 else
11890 have_doc=
11891 fi
11892
11893
11894 if test x$have_doc = xyes; then
11895 HAVE_DOC_TRUE=
11896 HAVE_DOC_FALSE='#'
11897 else
11898 HAVE_DOC_TRUE='#'
11899 HAVE_DOC_FALSE=
11900 fi
11901
11902
11903 EXTRA_DIRS=
11904 case $host in
11905 i[34567]86-pc-linux-*)
11906 subdirs="$subdirs iconvdata"
11907
11908 EXTRA_DIRS=iconvdata
11909 ;;
11910 esac
11911
11912
11913 CRT0=
11914 CRT0_DIR=
11915 if test "x${have_crt0}" = "xyes"; then
11916 CRT0=crt0.o
11917 CRT0_DIR=libc/
11918 fi
11919
11920
11921
11922 CRT1=${crt1}
11923 CRT1_DIR=
11924 if test -n "${crt1_dir}"; then
11925 CRT1_DIR=${crt1_dir}/
11926 fi
11927
11928
11929
11930 if test -n "${libm_machine_dir}"; then
11931 LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
11932 fi
11933
11934
11935 if test -n "${machine_dir}"; then
11936 MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
11937 fi
11938
11939
11940 if test -n "${sys_dir}"; then
11941 SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
11942 fi
11943
11944
11945 if test "${have_sys_mach_dir}" = "yes"; then
11946 SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
11947 fi
11948
11949
11950 if test -n "${posix_dir}"; then
11951 POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
11952 fi
11953
11954
11955 if test -n "${signal_dir}"; then
11956 SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
11957 fi
11958
11959
11960 if test -n "${syscall_dir}"; then
11961 SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
11962 fi
11963
11964
11965 if test -n "${unix_dir}"; then
11966 UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
11967 fi
11968
11969
11970 if test -n "${stdio64_dir}"; then
11971 STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
11972 fi
11973
11974
11975 # Put a plausible default for CC_FOR_BUILD in Makefile.
11976 if test -z "$CC_FOR_BUILD"; then
11977 CC_FOR_BUILD=gcc
11978 fi
11979
11980
11981 if test "${newlib_elix_level}" -gt "0"; then
11982 cat >>confdefs.h <<_ACEOF
11983 #define _ELIX_LEVEL ${newlib_elix_level}
11984 _ACEOF
11985
11986 fi
11987
11988 if test "${newlib_io_c99_formats}" = "yes"; then
11989 cat >>confdefs.h <<_ACEOF
11990 #define _WANT_IO_C99_FORMATS 1
11991 _ACEOF
11992
11993 fi
11994
11995 if test "${newlib_io_long_long}" = "yes"; then
11996 cat >>confdefs.h <<_ACEOF
11997 #define _WANT_IO_LONG_LONG 1
11998 _ACEOF
11999
12000 fi
12001
12002 if test "${newlib_io_long_double}" = "yes"; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define _WANT_IO_LONG_DOUBLE 1
12005 _ACEOF
12006
12007 fi
12008
12009 if test "${newlib_io_pos_args}" = "yes"; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define _WANT_IO_POS_ARGS 1
12012 _ACEOF
12013
12014 fi
12015
12016 if test "${newlib_reent_small}" = "yes"; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define _WANT_REENT_SMALL 1
12019 _ACEOF
12020
12021 fi
12022
12023 if test "${newlib_mb}" = "yes"; then
12024 cat >>confdefs.h <<_ACEOF
12025 #define _MB_CAPABLE 1
12026 _ACEOF
12027
12028 cat >>confdefs.h <<_ACEOF
12029 #define _MB_LEN_MAX 8
12030 _ACEOF
12031
12032 else
12033 cat >>confdefs.h <<_ACEOF
12034 #define _MB_LEN_MAX 1
12035 _ACEOF
12036
12037 fi
12038
12039 if test "${newlib_iconv_external_ccs}" = "yes"; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12042 _ACEOF
12043
12044 fi
12045
12046 cat >>confdefs.h <<_ACEOF
12047 #define _NEWLIB_VERSION "1.16.0"
12048 _ACEOF
12049
12050
12051 if test "${multilib}" = "yes"; then
12052 multilib_arg="--enable-multilib"
12053 else
12054 multilib_arg=
12055 fi
12056
12057 if test "${newlib_iconv}" = "yes"; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define _ICONV_ENABLED 1
12060 _ACEOF
12061
12062 fi
12063
12064 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
12065 if test "x${newlib_iconv}" = "x"; then
12066 { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
12067 echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
12068 { (exit use --enable-newlib-iconv to enable it.); exit use --enable-newlib-iconv to enable it.; }; }
12069 fi
12070 cat >>confdefs.h <<_ACEOF
12071 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12072 _ACEOF
12073
12074 fi
12075
12076 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define _ATEXIT_DYNAMIC_ALLOC 1
12079 _ACEOF
12080
12081 fi
12082
12083
12084 if test "x${iconv_encodings}" != "x" \
12085 || test "x${iconv_to_encodings}" != "x" \
12086 || test "x${iconv_from_encodings}" != "x"; then
12087 if test "x${newlib_iconv}" = "x"; then
12088 { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&5
12089 echo "$as_me: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&2;}
12090 { (exit 1); exit 1; }; }
12091 fi
12092
12093 iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12094 iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12095 iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12096
12097 available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
12098
12099
12100 iconv_encodings1="${iconv_encodings}"
12101 iconv_encodings=""
12102 for encoding in ${iconv_encodings1}; do
12103 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12104 if test $? != "0"; then
12105 { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
12106 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12107 { (exit 1); exit 1; }; }
12108 fi
12109 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12110 iconv_encodings="${iconv_encodings} ${encoding1}"
12111 done
12112 for encoding in ${iconv_encodings}; do
12113 opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12114 cat >>confdefs.h <<_ACEOF
12115 #define $opt 1
12116 _ACEOF
12117
12118 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12119 cat >>confdefs.h <<_ACEOF
12120 #define $opt 1
12121 _ACEOF
12122
12123 done
12124
12125 iconv_encodings1="${iconv_to_encodings}"
12126 iconv_to_encodings=""
12127 for encoding in ${iconv_encodings1}; do
12128 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12129 if test $? != "0"; then
12130 { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
12131 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12132 { (exit 1); exit 1; }; }
12133 fi
12134 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12135 iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
12136 done
12137 for encoding in ${iconv_to_encodings}; do
12138 opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12139 cat >>confdefs.h <<_ACEOF
12140 #define $opt 1
12141 _ACEOF
12142
12143 done
12144
12145 iconv_encodings1="${iconv_from_encodings}"
12146 iconv_from_encodings=""
12147 for encoding in ${iconv_encodings1}; do
12148 result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12149 if test $? != "0"; then
12150 { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
12151 echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
12152 { (exit 1); exit 1; }; }
12153 fi
12154 encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12155 iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
12156 done
12157 for encoding in ${iconv_from_encodings}; do
12158 opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12159 cat >>confdefs.h <<_ACEOF
12160 #define $opt 1
12161 _ACEOF
12162
12163 done
12164 fi;
12165
12166 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12167 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
12168 if test "${libc_cv_initfinit_array+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171 cat > conftest.c <<EOF
12172 int _start (void) { return 0; }
12173 int __start (void) { return 0; }
12174 int foo (void) { return 1; }
12175 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12176 EOF
12177 if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
12178 -static -nostartfiles -nostdlib 1>&5'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }
12184 then
12185 if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
12186 libc_cv_initfinit_array=yes
12187 else
12188 libc_cv_initfinit_array=no
12189 fi
12190 else
12191 libc_cv_initfinit_array=no
12192 fi
12193 rm -f conftest*
12194 fi
12195 { echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
12196 echo "${ECHO_T}$libc_cv_initfinit_array" >&6; }
12197
12198 if test $libc_cv_initfinit_array = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define HAVE_INITFINI_ARRAY 1
12201 _ACEOF
12202
12203 fi
12204
12205 { echo "$as_me:$LINENO: checking for array aliasing support" >&5
12206 echo $ECHO_N "checking for array aliasing support... $ECHO_C" >&6; }
12207 if test "${libc_cv_array_aliasing+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 cat > conftest.c <<EOF
12211 char x3 = { 'a', 'b', 'c' };
12212 extern char y2 __attribute__((alias ("x+1")));
12213 EOF
12214 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
12215 1>&5'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }
12221 then
12222 libc_cv_array_aliasing=yes
12223 else
12224 libc_cv_array_aliasing=no
12225 fi
12226 rm -f conftest*
12227 fi
12228 { echo "$as_me:$LINENO: result: $libc_cv_array_aliasing" >&5
12229 echo "${ECHO_T}$libc_cv_array_aliasing" >&6; }
12230
12231 if test $libc_cv_array_aliasing = yes; then
12232 cat >>confdefs.h <<_ACEOF
12233 #define _HAVE_ARRAY_ALIASING 1
12234 _ACEOF
12235
12236 fi
12237
12238 ac_config_files="$ac_config_files Makefile"
12239
12240 cat >confcache <<\_ACEOF
12241 # This file is a shell script that caches the results of configure
12242 # tests run on this system so they can be shared between configure
12243 # scripts and configure runs, see configure's option --config-cache.
12244 # It is not useful on other systems. If it contains results you don't
12245 # want to keep, you may remove or edit it.
12246 #
12247 # config.status only pays attention to the cache file if you give it
12248 # the --recheck option to rerun configure.
12249 #
12250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12252 # following values.
12253
12254 _ACEOF
12255
12256 # The following way of writing the cache mishandles newlines in values,
12257 # but we know of no workaround that is simple, portable, and efficient.
12258 # So, we kill variables containing newlines.
12259 # Ultrix sh set writes to stderr and can't be redirected directly,
12260 # and sets the high bit in the cache file unless we assign to the vars.
12261 (
12262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12263 eval ac_val=\$$ac_var
12264 case $ac_val in #(
12265 *${as_nl}*)
12266 case $ac_var in #(
12267 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12268 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12269 esac
12270 case $ac_var in #(
12271 _ | IFS | as_nl) ;; #(
12272 *) $as_unset $ac_var ;;
12273 esac ;;
12274 esac
12275 done
12276
12277 (set) 2>&1 |
12278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12279 *${as_nl}ac_space=\ *)
12280 # `set' does not quote correctly, so add quotes (double-quote
12281 # substitution turns \\\\ into \\, and sed turns \\ into \).
12282 sed -n \
12283 "s/'/'\\\\''/g;
12284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12285 ;; #(
12286 *)
12287 # `set' quotes correctly as required by POSIX, so do not add quotes.
12288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12289 ;;
12290 esac |
12291 sort
12292 ) |
12293 sed '
12294 /^ac_cv_env_/b end
12295 t clear
12296 :clear
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12298 t end
12299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12300 :end' >>confcache
12301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12302 if test -w "$cache_file"; then
12303 test "x$cache_file" != "x/dev/null" &&
12304 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12305 echo "$as_me: updating cache $cache_file" >&6;}
12306 cat confcache >$cache_file
12307 else
12308 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12309 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12310 fi
12311 fi
12312 rm -f confcache
12313
12314 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12315 # Let make expand exec_prefix.
12316 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12317
12318 DEFS=-DHAVE_CONFIG_H
12319
12320 ac_libobjs=
12321 ac_ltlibobjs=
12322 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12323 # 1. Remove the extension, and $U if already installed.
12324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12325 ac_i=`echo "$ac_i" | sed "$ac_script"`
12326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12327 # will be set to the directory where LIBOBJS objects are built.
12328 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12329 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12330 done
12331 LIBOBJS=$ac_libobjs
12332
12333 LTLIBOBJS=$ac_ltlibobjs
12334
12335
12336 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12337 { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12338 Usually this means the macro was only invoked conditionally." >&5
12339 echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12340 Usually this means the macro was only invoked conditionally." >&2;}
12341 { (exit 1); exit 1; }; }
12342 fi
12343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12344 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12345 Usually this means the macro was only invoked conditionally." >&5
12346 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12347 Usually this means the macro was only invoked conditionally." >&2;}
12348 { (exit 1); exit 1; }; }
12349 fi
12350 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12351 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12352 Usually this means the macro was only invoked conditionally." >&5
12353 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12354 Usually this means the macro was only invoked conditionally." >&2;}
12355 { (exit 1); exit 1; }; }
12356 fi
12357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12358 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12359 Usually this means the macro was only invoked conditionally." >&5
12360 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12361 Usually this means the macro was only invoked conditionally." >&2;}
12362 { (exit 1); exit 1; }; }
12363 fi
12364 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12365 { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12366 Usually this means the macro was only invoked conditionally." >&5
12367 echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12368 Usually this means the macro was only invoked conditionally." >&2;}
12369 { (exit 1); exit 1; }; }
12370 fi
12371 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12372 { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12373 Usually this means the macro was only invoked conditionally." >&5
12374 echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12375 Usually this means the macro was only invoked conditionally." >&2;}
12376 { (exit 1); exit 1; }; }
12377 fi
12378 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12379 { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12380 Usually this means the macro was only invoked conditionally." >&5
12381 echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12382 Usually this means the macro was only invoked conditionally." >&2;}
12383 { (exit 1); exit 1; }; }
12384 fi
12385 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12386 { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12387 Usually this means the macro was only invoked conditionally." >&5
12388 echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12389 Usually this means the macro was only invoked conditionally." >&2;}
12390 { (exit 1); exit 1; }; }
12391 fi
12392 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12393 { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12394 Usually this means the macro was only invoked conditionally." >&5
12395 echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12396 Usually this means the macro was only invoked conditionally." >&2;}
12397 { (exit 1); exit 1; }; }
12398 fi
12399 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12401 Usually this means the macro was only invoked conditionally." >&5
12402 echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&2;}
12404 { (exit 1); exit 1; }; }
12405 fi
12406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12408 Usually this means the macro was only invoked conditionally." >&5
12409 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&2;}
12411 { (exit 1); exit 1; }; }
12412 fi
12413 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12414 { { echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
12415 Usually this means the macro was only invoked conditionally." >&5
12416 echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
12417 Usually this means the macro was only invoked conditionally." >&2;}
12418 { (exit 1); exit 1; }; }
12419 fi
12420 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
12421 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOC\" was never defined.
12422 Usually this means the macro was only invoked conditionally." >&5
12423 echo "$as_me: error: conditional \"HAVE_DOC\" was never defined.
12424 Usually this means the macro was only invoked conditionally." >&2;}
12425 { (exit 1); exit 1; }; }
12426 fi
12427
12428 : ${CONFIG_STATUS=./config.status}
12429 ac_clean_files_save=$ac_clean_files
12430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12433 cat >$CONFIG_STATUS <<_ACEOF
12434 #! $SHELL
12435 # Generated by $as_me.
12436 # Run this file to recreate the current configuration.
12437 # Compiler output produced by configure, useful for debugging
12438 # configure, is in config.log if it exists.
12439
12440 debug=false
12441 ac_cs_recheck=false
12442 ac_cs_silent=false
12443 SHELL=\${CONFIG_SHELL-$SHELL}
12444 _ACEOF
12445
12446 cat >>$CONFIG_STATUS <<\_ACEOF
12447 ## --------------------- ##
12448 ## M4sh Initialization. ##
12449 ## --------------------- ##
12450
12451 # Be more Bourne compatible
12452 DUALCASE=1; export DUALCASE # for MKS sh
12453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12454 emulate sh
12455 NULLCMD=:
12456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12457 # is contrary to our usage. Disable this feature.
12458 alias -g '${1+"$@"}'='"$@"'
12459 setopt NO_GLOB_SUBST
12460 else
12461 case `(set -o) 2>/dev/null` in
12462 *posix*) set -o posix ;;
12463 esac
12464
12465 fi
12466
12467
12468
12469
12470 # PATH needs CR
12471 # Avoid depending upon Character Ranges.
12472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12475 as_cr_digits='0123456789'
12476 as_cr_alnum=$as_cr_Letters$as_cr_digits
12477
12478 # The user is always right.
12479 if test "${PATH_SEPARATOR+set}" != set; then
12480 echo "#! /bin/sh" >conf$$.sh
12481 echo "exit 0" >>conf$$.sh
12482 chmod +x conf$$.sh
12483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12484 PATH_SEPARATOR=';'
12485 else
12486 PATH_SEPARATOR=:
12487 fi
12488 rm -f conf$$.sh
12489 fi
12490
12491 # Support unset when possible.
12492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12493 as_unset=unset
12494 else
12495 as_unset=false
12496 fi
12497
12498
12499 # IFS
12500 # We need space, tab and new line, in precisely that order. Quoting is
12501 # there to prevent editors from complaining about space-tab.
12502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12503 # splitting by setting IFS to empty value.)
12504 as_nl='
12505 '
12506 IFS=" "" $as_nl"
12507
12508 # Find who we are. Look in the path if we contain no directory separator.
12509 case $0 in
12510 *[\\/]* ) as_myself=$0 ;;
12511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12517 done
12518 IFS=$as_save_IFS
12519
12520 ;;
12521 esac
12522 # We did not find ourselves, most probably we were run as `sh COMMAND'
12523 # in which case we are not to be found in the path.
12524 if test "x$as_myself" = x; then
12525 as_myself=$0
12526 fi
12527 if test ! -f "$as_myself"; then
12528 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12529 { (exit 1); exit 1; }
12530 fi
12531
12532 # Work around bugs in pre-3.0 UWIN ksh.
12533 for as_var in ENV MAIL MAILPATH
12534 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12535 done
12536 PS1='$ '
12537 PS2='> '
12538 PS4='+ '
12539
12540 # NLS nuisances.
12541 for as_var in \
12542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12544 LC_TELEPHONE LC_TIME
12545 do
12546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12547 eval $as_var=C; export $as_var
12548 else
12549 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12550 fi
12551 done
12552
12553 # Required to use basename.
12554 if expr a : '\(a\)' >/dev/null 2>&1 &&
12555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12556 as_expr=expr
12557 else
12558 as_expr=false
12559 fi
12560
12561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12562 as_basename=basename
12563 else
12564 as_basename=false
12565 fi
12566
12567
12568 # Name of the executable.
12569 as_me=`$as_basename -- "$0" ||
12570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12571 X"$0" : 'X\(//\)$' \| \
12572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12573 echo X/"$0" |
12574 sed '/^.*\/\([^/][^/]*\)\/*$/{
12575 s//\1/
12576 q
12577 }
12578 /^X\/\(\/\/\)$/{
12579 s//\1/
12580 q
12581 }
12582 /^X\/\(\/\).*/{
12583 s//\1/
12584 q
12585 }
12586 s/.*/./; q'`
12587
12588 # CDPATH.
12589 $as_unset CDPATH
12590
12591
12592
12593 as_lineno_1=$LINENO
12594 as_lineno_2=$LINENO
12595 test "x$as_lineno_1" != "x$as_lineno_2" &&
12596 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12597
12598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12599 # uniformly replaced by the line number. The first 'sed' inserts a
12600 # line-number line after each line using $LINENO; the second 'sed'
12601 # does the real work. The second script uses 'N' to pair each
12602 # line-number line with the line containing $LINENO, and appends
12603 # trailing '-' during substitution so that $LINENO is not a special
12604 # case at line end.
12605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12606 # scripts with optimization help from Paolo Bonzini. Blame Lee
12607 # E. McMahon (1931-1989) for sed's syntax. :-)
12608 sed -n '
12609 p
12610 /[$]LINENO/=
12611 ' <$as_myself |
12612 sed '
12613 s/[$]LINENO.*/&-/
12614 t lineno
12615 b
12616 :lineno
12617 N
12618 :loop
12619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12620 t loop
12621 s/-\n.*//
12622 ' >$as_me.lineno &&
12623 chmod +x "$as_me.lineno" ||
12624 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12625 { (exit 1); exit 1; }; }
12626
12627 # Don't try to exec as it changes $[0], causing all sort of problems
12628 # (the dirname of $[0] is not the place where we might find the
12629 # original and so on. Autoconf is especially sensitive to this).
12630 . "./$as_me.lineno"
12631 # Exit status is that of the last command.
12632 exit
12633 }
12634
12635
12636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12637 as_dirname=dirname
12638 else
12639 as_dirname=false
12640 fi
12641
12642 ECHO_C= ECHO_N= ECHO_T=
12643 case `echo -n x` in
12644 -n*)
12645 case `echo 'x\c'` in
12646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12647 *) ECHO_C='\c';;
12648 esac;;
12649 *)
12650 ECHO_N='-n';;
12651 esac
12652
12653 if expr a : '\(a\)' >/dev/null 2>&1 &&
12654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12655 as_expr=expr
12656 else
12657 as_expr=false
12658 fi
12659
12660 rm -f conf$$ conf$$.exe conf$$.file
12661 if test -d conf$$.dir; then
12662 rm -f conf$$.dir/conf$$.file
12663 else
12664 rm -f conf$$.dir
12665 mkdir conf$$.dir
12666 fi
12667 echo >conf$$.file
12668 if ln -s conf$$.file conf$$ 2>/dev/null; then
12669 as_ln_s='ln -s'
12670 # ... but there are two gotchas:
12671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12673 # In both cases, we have to default to `cp -p'.
12674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12675 as_ln_s='cp -p'
12676 elif ln conf$$.file conf$$ 2>/dev/null; then
12677 as_ln_s=ln
12678 else
12679 as_ln_s='cp -p'
12680 fi
12681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12682 rmdir conf$$.dir 2>/dev/null
12683
12684 if mkdir -p . 2>/dev/null; then
12685 as_mkdir_p=:
12686 else
12687 test -d ./-p && rmdir ./-p
12688 as_mkdir_p=false
12689 fi
12690
12691 if test -x / >/dev/null 2>&1; then
12692 as_test_x='test -x'
12693 else
12694 if ls -dL / >/dev/null 2>&1; then
12695 as_ls_L_option=L
12696 else
12697 as_ls_L_option=
12698 fi
12699 as_test_x='
12700 eval sh -c '\''
12701 if test -d "$1"; then
12702 test -d "$1/.";
12703 else
12704 case $1 in
12705 -*)set "./$1";;
12706 esac;
12707 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12708 ???[sx]*):;;*)false;;esac;fi
12709 '\'' sh
12710 '
12711 fi
12712 as_executable_p=$as_test_x
12713
12714 # Sed expression to map a string onto a valid CPP name.
12715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12716
12717 # Sed expression to map a string onto a valid variable name.
12718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12719
12720
12721 exec 6>&1
12722
12723 # Save the log message, to keep $[0] and so on meaningful, and to
12724 # report actual input values of CONFIG_FILES etc. instead of their
12725 # values after options handling.
12726 ac_log="
12727 This file was extended by newlib $as_me 1.16.0, which was
12728 generated by GNU Autoconf 2.61. Invocation command line was
12729
12730 CONFIG_FILES = $CONFIG_FILES
12731 CONFIG_HEADERS = $CONFIG_HEADERS
12732 CONFIG_LINKS = $CONFIG_LINKS
12733 CONFIG_COMMANDS = $CONFIG_COMMANDS
12734 $ $0 $@
12735
12736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12737 "
12738
12739 _ACEOF
12740
12741 cat >>$CONFIG_STATUS <<_ACEOF
12742 # Files that config.status was made for.
12743 config_files="$ac_config_files"
12744 config_headers="$ac_config_headers"
12745 config_commands="$ac_config_commands"
12746
12747 _ACEOF
12748
12749 cat >>$CONFIG_STATUS <<\_ACEOF
12750 ac_cs_usage="\
12751 \`$as_me' instantiates files from templates according to the
12752 current configuration.
12753
12754 Usage: $0 [OPTIONS] [FILE]...
12755
12756 -h, --help print this help, then exit
12757 -V, --version print version number and configuration settings, then exit
12758 -q, --quiet do not print progress messages
12759 -d, --debug don't remove temporary files
12760 --recheck update $as_me by reconfiguring in the same conditions
12761 --file=FILE[:TEMPLATE]
12762 instantiate the configuration file FILE
12763 --header=FILE[:TEMPLATE]
12764 instantiate the configuration header FILE
12765
12766 Configuration files:
12767 $config_files
12768
12769 Configuration headers:
12770 $config_headers
12771
12772 Configuration commands:
12773 $config_commands
12774
12775 Report bugs to <bug-autoconf@gnu.org>."
12776
12777 _ACEOF
12778 cat >>$CONFIG_STATUS <<_ACEOF
12779 ac_cs_version="\\
12780 newlib config.status 1.16.0
12781 configured by $0, generated by GNU Autoconf 2.61,
12782 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12783
12784 Copyright (C) 2006 Free Software Foundation, Inc.
12785 This config.status script is free software; the Free Software Foundation
12786 gives unlimited permission to copy, distribute and modify it."
12787
12788 ac_pwd='$ac_pwd'
12789 srcdir='$srcdir'
12790 INSTALL='$INSTALL'
12791 _ACEOF
12792
12793 cat >>$CONFIG_STATUS <<\_ACEOF
12794 # If no file are specified by the user, then we need to provide default
12795 # value. By we need to know if files were specified by the user.
12796 ac_need_defaults=:
12797 while test $# != 0
12798 do
12799 case $1 in
12800 --*=*)
12801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12803 ac_shift=:
12804 ;;
12805 *)
12806 ac_option=$1
12807 ac_optarg=$2
12808 ac_shift=shift
12809 ;;
12810 esac
12811
12812 case $ac_option in
12813 # Handling of the options.
12814 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12815 ac_cs_recheck=: ;;
12816 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12817 echo "$ac_cs_version"; exit ;;
12818 --debug | --debu | --deb | --de | --d | -d )
12819 debug=: ;;
12820 --file | --fil | --fi | --f )
12821 $ac_shift
12822 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12823 ac_need_defaults=false;;
12824 --header | --heade | --head | --hea )
12825 $ac_shift
12826 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12827 ac_need_defaults=false;;
12828 --he | --h)
12829 # Conflict between --help and --header
12830 { echo "$as_me: error: ambiguous option: $1
12831 Try \`$0 --help' for more information." >&2
12832 { (exit 1); exit 1; }; };;
12833 --help | --hel | -h )
12834 echo "$ac_cs_usage"; exit ;;
12835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12837 ac_cs_silent=: ;;
12838
12839 # This is an error.
12840 -*) { echo "$as_me: error: unrecognized option: $1
12841 Try \`$0 --help' for more information." >&2
12842 { (exit 1); exit 1; }; } ;;
12843
12844 *) ac_config_targets="$ac_config_targets $1"
12845 ac_need_defaults=false ;;
12846
12847 esac
12848 shift
12849 done
12850
12851 ac_configure_extra_args=
12852
12853 if $ac_cs_silent; then
12854 exec 6>/dev/null
12855 ac_configure_extra_args="$ac_configure_extra_args --silent"
12856 fi
12857
12858 _ACEOF
12859 cat >>$CONFIG_STATUS <<_ACEOF
12860 if \$ac_cs_recheck; then
12861 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12862 CONFIG_SHELL=$SHELL
12863 export CONFIG_SHELL
12864 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12865 fi
12866
12867 _ACEOF
12868 cat >>$CONFIG_STATUS <<\_ACEOF
12869 exec 5>>config.log
12870 {
12871 echo
12872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12873 ## Running $as_me. ##
12874 _ASBOX
12875 echo "$ac_log"
12876 } >&5
12877
12878 _ACEOF
12879 cat >>$CONFIG_STATUS <<_ACEOF
12880 #
12881 # INIT-COMMANDS
12882 #
12883 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12884
12885
12886 # The HP-UX ksh and POSIX shell print the target directory to stdout
12887 # if CDPATH is set.
12888 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12889
12890 sed_quote_subst='$sed_quote_subst'
12891 double_quote_subst='$double_quote_subst'
12892 delay_variable_subst='$delay_variable_subst'
12893 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12894 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12895 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12896 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12897 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12898 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12899 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12900 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12901 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12902 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12903 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12904 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12905 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12906 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12907 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12908 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12909 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12910 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12911 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12912 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12913 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12914 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12915 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12916 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12917 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12918 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12919 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12920 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12921 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12922 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12923 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12924 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12925 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12926 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12927 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12928 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12929 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12930 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12931 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12932 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12934 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12935 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12936 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12937 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12938 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12939 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12940 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12941 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12942 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12943 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12944 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12945 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12946 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12947 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12948 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12949 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12950 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12951 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12952 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12953 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12954 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12955 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12956 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12957 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12958 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12959 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12960 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12961 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12962 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12963 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12964 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12965 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12966 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12967 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12968 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12969 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12970 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12971 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12972 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12973 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12974 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12975 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12976 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12977 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12978 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12979 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12980 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12981 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12982 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12983 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12984 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12985 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12986 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12987 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12988 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12989 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12990 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12991 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12992 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12993 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12994 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12996 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12997 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12998 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12999 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13000 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13001 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13002 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13003 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13004 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13005 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13006 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13007
13008 LTCC='$LTCC'
13009 LTCFLAGS='$LTCFLAGS'
13010 compiler='$compiler_DEFAULT'
13011
13012 # Quote evaled strings.
13013 for var in SED \
13014 GREP \
13015 EGREP \
13016 FGREP \
13017 LD \
13018 NM \
13019 LN_S \
13020 lt_SP2NL \
13021 lt_NL2SP \
13022 reload_flag \
13023 deplibs_check_method \
13024 file_magic_cmd \
13025 AR \
13026 AR_FLAGS \
13027 STRIP \
13028 RANLIB \
13029 CC \
13030 CFLAGS \
13031 compiler \
13032 lt_cv_sys_global_symbol_pipe \
13033 lt_cv_sys_global_symbol_to_cdecl \
13034 lt_cv_sys_global_symbol_to_c_name_address \
13035 SHELL \
13036 ECHO \
13037 lt_prog_compiler_no_builtin_flag \
13038 lt_prog_compiler_wl \
13039 lt_prog_compiler_pic \
13040 lt_prog_compiler_static \
13041 lt_cv_prog_compiler_c_o \
13042 need_locks \
13043 shrext_cmds \
13044 export_dynamic_flag_spec \
13045 whole_archive_flag_spec \
13046 compiler_needs_object \
13047 with_gnu_ld \
13048 allow_undefined_flag \
13049 no_undefined_flag \
13050 hardcode_libdir_flag_spec \
13051 hardcode_libdir_flag_spec_ld \
13052 hardcode_libdir_separator \
13053 fix_srcfile_path \
13054 exclude_expsyms \
13055 include_expsyms \
13056 file_list_spec \
13057 variables_saved_for_relink \
13058 libname_spec \
13059 library_names_spec \
13060 soname_spec \
13061 finish_eval \
13062 old_striplib \
13063 striplib; do
13064 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13065 *[\\\\\\\`\\"\\\$]*)
13066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13067 ;;
13068 *)
13069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13070 ;;
13071 esac
13072 done
13073
13074 # Double-quote double-evaled strings.
13075 for var in reload_cmds \
13076 old_postinstall_cmds \
13077 old_postuninstall_cmds \
13078 old_archive_cmds \
13079 extract_expsyms_cmds \
13080 old_archive_from_new_cmds \
13081 old_archive_from_expsyms_cmds \
13082 archive_cmds \
13083 archive_expsym_cmds \
13084 module_cmds \
13085 module_expsym_cmds \
13086 export_symbols_cmds \
13087 prelink_cmds \
13088 postinstall_cmds \
13089 postuninstall_cmds \
13090 finish_cmds \
13091 sys_lib_search_path_spec \
13092 sys_lib_dlsearch_path_spec; do
13093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13094 *[\\\\\\\`\\"\\\$]*)
13095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13096 ;;
13097 *)
13098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13099 ;;
13100 esac
13101 done
13102
13103 # Fix-up fallback echo if it was mangled by the above quoting rules.
13104 case \$lt_ECHO in
13105 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13106 ;;
13107 esac
13108
13109 ac_aux_dir='$ac_aux_dir'
13110 xsi_shell='$xsi_shell'
13111 lt_shell_append='$lt_shell_append'
13112
13113 # See if we are running on zsh, and set the options which allow our
13114 # commands through without removal of \ escapes INIT.
13115 if test -n "\${ZSH_VERSION+set}" ; then
13116 setopt NO_GLOB_SUBST
13117 fi
13118
13119
13120 PACKAGE='$PACKAGE'
13121 VERSION='$VERSION'
13122 TIMESTAMP='$TIMESTAMP'
13123 RM='$RM'
13124 ofile='$ofile'
13125
13126
13127
13128 srcdir=${srcdir}
13129 host=${host}
13130 with_multisubdir=${with_multisubdir}
13131 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13132 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13133 newlib_basedir=${newlib_basedir}
13134 CC="${CC}"
13135 LDFLAGS="${LDFLAGS}"
13136
13137
13138 _ACEOF
13139
13140 cat >>$CONFIG_STATUS <<\_ACEOF
13141
13142 # Handling of arguments.
13143 for ac_config_target in $ac_config_targets
13144 do
13145 case $ac_config_target in
13146 "newlib.h") CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
13147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13148 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13150
13151 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13152 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13153 { (exit 1); exit 1; }; };;
13154 esac
13155 done
13156
13157
13158 # If the user did not use the arguments to specify the items to instantiate,
13159 # then the envvar interface is used. Set only those that are not.
13160 # We use the long form for the default assignment because of an extremely
13161 # bizarre bug on SunOS 4.1.3.
13162 if $ac_need_defaults; then
13163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13166 fi
13167
13168 # Have a temporary directory for convenience. Make it in the build tree
13169 # simply because there is no reason against having it here, and in addition,
13170 # creating and moving files from /tmp can sometimes cause problems.
13171 # Hook for its removal unless debugging.
13172 # Note that there is a small window in which the directory will not be cleaned:
13173 # after its creation but before its name has been assigned to `$tmp'.
13174 $debug ||
13175 {
13176 tmp=
13177 trap 'exit_status=$?
13178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13179 ' 0
13180 trap '{ (exit 1); exit 1; }' 1 2 13 15
13181 }
13182 # Create a (secure) tmp directory for tmp files.
13183
13184 {
13185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13186 test -n "$tmp" && test -d "$tmp"
13187 } ||
13188 {
13189 tmp=./conf$$-$RANDOM
13190 (umask 077 && mkdir "$tmp")
13191 } ||
13192 {
13193 echo "$me: cannot create a temporary directory in ." >&2
13194 { (exit 1); exit 1; }
13195 }
13196
13197 #
13198 # Set up the sed scripts for CONFIG_FILES section.
13199 #
13200
13201 # No need to generate the scripts if there are no CONFIG_FILES.
13202 # This happens for instance when ./config.status config.h
13203 if test -n "$CONFIG_FILES"; then
13204
13205 _ACEOF
13206
13207
13208
13209 ac_delim='%!_!# '
13210 for ac_last_try in false false false false false :; do
13211 cat >conf$$subs.sed <<_ACEOF
13212 SHELL!$SHELL$ac_delim
13213 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13214 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13215 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13216 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13217 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13218 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13219 exec_prefix!$exec_prefix$ac_delim
13220 prefix!$prefix$ac_delim
13221 program_transform_name!$program_transform_name$ac_delim
13222 bindir!$bindir$ac_delim
13223 sbindir!$sbindir$ac_delim
13224 libexecdir!$libexecdir$ac_delim
13225 datarootdir!$datarootdir$ac_delim
13226 datadir!$datadir$ac_delim
13227 sysconfdir!$sysconfdir$ac_delim
13228 sharedstatedir!$sharedstatedir$ac_delim
13229 localstatedir!$localstatedir$ac_delim
13230 includedir!$includedir$ac_delim
13231 oldincludedir!$oldincludedir$ac_delim
13232 docdir!$docdir$ac_delim
13233 infodir!$infodir$ac_delim
13234 htmldir!$htmldir$ac_delim
13235 dvidir!$dvidir$ac_delim
13236 pdfdir!$pdfdir$ac_delim
13237 psdir!$psdir$ac_delim
13238 libdir!$libdir$ac_delim
13239 localedir!$localedir$ac_delim
13240 mandir!$mandir$ac_delim
13241 DEFS!$DEFS$ac_delim
13242 ECHO_C!$ECHO_C$ac_delim
13243 ECHO_N!$ECHO_N$ac_delim
13244 ECHO_T!$ECHO_T$ac_delim
13245 LIBS!$LIBS$ac_delim
13246 build_alias!$build_alias$ac_delim
13247 host_alias!$host_alias$ac_delim
13248 target_alias!$target_alias$ac_delim
13249 MAY_SUPPLY_SYSCALLS_TRUE!$MAY_SUPPLY_SYSCALLS_TRUE$ac_delim
13250 MAY_SUPPLY_SYSCALLS_FALSE!$MAY_SUPPLY_SYSCALLS_FALSE$ac_delim
13251 newlib_basedir!$newlib_basedir$ac_delim
13252 build!$build$ac_delim
13253 build_cpu!$build_cpu$ac_delim
13254 build_vendor!$build_vendor$ac_delim
13255 build_os!$build_os$ac_delim
13256 host!$host$ac_delim
13257 host_cpu!$host_cpu$ac_delim
13258 host_vendor!$host_vendor$ac_delim
13259 host_os!$host_os$ac_delim
13260 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13261 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13262 INSTALL_DATA!$INSTALL_DATA$ac_delim
13263 CYGPATH_W!$CYGPATH_W$ac_delim
13264 PACKAGE!$PACKAGE$ac_delim
13265 VERSION!$VERSION$ac_delim
13266 ACLOCAL!$ACLOCAL$ac_delim
13267 AUTOCONF!$AUTOCONF$ac_delim
13268 AUTOMAKE!$AUTOMAKE$ac_delim
13269 AUTOHEADER!$AUTOHEADER$ac_delim
13270 MAKEINFO!$MAKEINFO$ac_delim
13271 install_sh!$install_sh$ac_delim
13272 STRIP!$STRIP$ac_delim
13273 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13274 mkdir_p!$mkdir_p$ac_delim
13275 AWK!$AWK$ac_delim
13276 SET_MAKE!$SET_MAKE$ac_delim
13277 am__leading_dot!$am__leading_dot$ac_delim
13278 AMTAR!$AMTAR$ac_delim
13279 am__tar!$am__tar$ac_delim
13280 am__untar!$am__untar$ac_delim
13281 CC!$CC$ac_delim
13282 DEPDIR!$DEPDIR$ac_delim
13283 am__include!$am__include$ac_delim
13284 am__quote!$am__quote$ac_delim
13285 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13286 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13287 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13288 CCDEPMODE!$CCDEPMODE$ac_delim
13289 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13290 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13291 AS!$AS$ac_delim
13292 AR!$AR$ac_delim
13293 RANLIB!$RANLIB$ac_delim
13294 READELF!$READELF$ac_delim
13295 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13296 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13297 MAINT!$MAINT$ac_delim
13298 CCAS!$CCAS$ac_delim
13299 CCASFLAGS!$CCASFLAGS$ac_delim
13300 NEWLIB_CFLAGS!$NEWLIB_CFLAGS$ac_delim
13301 LDFLAGS!$LDFLAGS$ac_delim
13302 ELIX_LEVEL_0_TRUE!$ELIX_LEVEL_0_TRUE$ac_delim
13303 ELIX_LEVEL_0_FALSE!$ELIX_LEVEL_0_FALSE$ac_delim
13304 ELIX_LEVEL_1_TRUE!$ELIX_LEVEL_1_TRUE$ac_delim
13305 ELIX_LEVEL_1_FALSE!$ELIX_LEVEL_1_FALSE$ac_delim
13306 ELIX_LEVEL_2_TRUE!$ELIX_LEVEL_2_TRUE$ac_delim
13307 ELIX_LEVEL_2_FALSE!$ELIX_LEVEL_2_FALSE$ac_delim
13308 ELIX_LEVEL_3_TRUE!$ELIX_LEVEL_3_TRUE$ac_delim
13309 _ACEOF
13310
13311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13312 break
13313 elif $ac_last_try; then
13314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13316 { (exit 1); exit 1; }; }
13317 else
13318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13319 fi
13320 done
13321
13322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13323 if test -n "$ac_eof"; then
13324 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13325 ac_eof=`expr $ac_eof + 1`
13326 fi
13327
13328 cat >>$CONFIG_STATUS <<_ACEOF
13329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13331 _ACEOF
13332 sed '
13333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13334 s/^/s,@/; s/!/@,|#_!!_#|/
13335 :n
13336 t n
13337 s/'"$ac_delim"'$/,g/; t
13338 s/$/\\/; p
13339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13340 ' >>$CONFIG_STATUS <conf$$subs.sed
13341 rm -f conf$$subs.sed
13342 cat >>$CONFIG_STATUS <<_ACEOF
13343 CEOF$ac_eof
13344 _ACEOF
13345
13346
13347 ac_delim='%!_!# '
13348 for ac_last_try in false false false false false :; do
13349 cat >conf$$subs.sed <<_ACEOF
13350 ELIX_LEVEL_3_FALSE!$ELIX_LEVEL_3_FALSE$ac_delim
13351 ELIX_LEVEL_4_TRUE!$ELIX_LEVEL_4_TRUE$ac_delim
13352 ELIX_LEVEL_4_FALSE!$ELIX_LEVEL_4_FALSE$ac_delim
13353 USE_LIBTOOL_TRUE!$USE_LIBTOOL_TRUE$ac_delim
13354 USE_LIBTOOL_FALSE!$USE_LIBTOOL_FALSE$ac_delim
13355 OBJEXT!$OBJEXT$ac_delim
13356 oext!$oext$ac_delim
13357 aext!$aext$ac_delim
13358 lpfx!$lpfx$ac_delim
13359 libm_machine_dir!$libm_machine_dir$ac_delim
13360 machine_dir!$machine_dir$ac_delim
13361 sys_dir!$sys_dir$ac_delim
13362 SED!$SED$ac_delim
13363 DLLTOOL!$DLLTOOL$ac_delim
13364 OBJDUMP!$OBJDUMP$ac_delim
13365 LIBTOOL!$LIBTOOL$ac_delim
13366 CFLAGS!$CFLAGS$ac_delim
13367 CPPFLAGS!$CPPFLAGS$ac_delim
13368 ac_ct_CC!$ac_ct_CC$ac_delim
13369 EXEEXT!$EXEEXT$ac_delim
13370 GREP!$GREP$ac_delim
13371 EGREP!$EGREP$ac_delim
13372 FGREP!$FGREP$ac_delim
13373 LD!$LD$ac_delim
13374 DUMPBIN!$DUMPBIN$ac_delim
13375 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13376 NM!$NM$ac_delim
13377 LN_S!$LN_S$ac_delim
13378 lt_ECHO!$lt_ECHO$ac_delim
13379 CPP!$CPP$ac_delim
13380 NEWLIB_HW_FP_TRUE!$NEWLIB_HW_FP_TRUE$ac_delim
13381 NEWLIB_HW_FP_FALSE!$NEWLIB_HW_FP_FALSE$ac_delim
13382 CC_FOR_NEWLIB!$CC_FOR_NEWLIB$ac_delim
13383 subdirs!$subdirs$ac_delim
13384 HAVE_DOC_TRUE!$HAVE_DOC_TRUE$ac_delim
13385 HAVE_DOC_FALSE!$HAVE_DOC_FALSE$ac_delim
13386 EXTRA_DIRS!$EXTRA_DIRS$ac_delim
13387 CRT0!$CRT0$ac_delim
13388 CRT0_DIR!$CRT0_DIR$ac_delim
13389 CRT1!$CRT1$ac_delim
13390 CRT1_DIR!$CRT1_DIR$ac_delim
13391 LIBM_MACHINE_OBJECTLIST!$LIBM_MACHINE_OBJECTLIST$ac_delim
13392 MACHINE_OBJECTLIST!$MACHINE_OBJECTLIST$ac_delim
13393 SYS_OBJECTLIST!$SYS_OBJECTLIST$ac_delim
13394 SYS_MACH_OBJECTLIST!$SYS_MACH_OBJECTLIST$ac_delim
13395 POSIX_OBJECTLIST!$POSIX_OBJECTLIST$ac_delim
13396 SIGNAL_OBJECTLIST!$SIGNAL_OBJECTLIST$ac_delim
13397 SYSCALL_OBJECTLIST!$SYSCALL_OBJECTLIST$ac_delim
13398 UNIX_OBJECTLIST!$UNIX_OBJECTLIST$ac_delim
13399 STDIO64_OBJECTLIST!$STDIO64_OBJECTLIST$ac_delim
13400 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13401 libc_cv_initfinit_array!$libc_cv_initfinit_array$ac_delim
13402 libc_cv_array_aliasing!$libc_cv_array_aliasing$ac_delim
13403 LIBOBJS!$LIBOBJS$ac_delim
13404 LTLIBOBJS!$LTLIBOBJS$ac_delim
13405 _ACEOF
13406
13407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
13408 break
13409 elif $ac_last_try; then
13410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13412 { (exit 1); exit 1; }; }
13413 else
13414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13415 fi
13416 done
13417
13418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13419 if test -n "$ac_eof"; then
13420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13421 ac_eof=`expr $ac_eof + 1`
13422 fi
13423
13424 cat >>$CONFIG_STATUS <<_ACEOF
13425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13427 _ACEOF
13428 sed '
13429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13430 s/^/s,@/; s/!/@,|#_!!_#|/
13431 :n
13432 t n
13433 s/'"$ac_delim"'$/,g/; t
13434 s/$/\\/; p
13435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13436 ' >>$CONFIG_STATUS <conf$$subs.sed
13437 rm -f conf$$subs.sed
13438 cat >>$CONFIG_STATUS <<_ACEOF
13439 :end
13440 s/|#_!!_#|//g
13441 CEOF$ac_eof
13442 _ACEOF
13443
13444
13445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13447 # trailing colons and then remove the whole line if VPATH becomes empty
13448 # (actually we leave an empty line to preserve line numbers).
13449 if test "x$srcdir" = x.; then
13450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13451 s/:*\$(srcdir):*/:/
13452 s/:*\${srcdir}:*/:/
13453 s/:*@srcdir@:*/:/
13454 s/^\([^=]*=[ ]*\):*/\1/
13455 s/:*$//
13456 s/^[^=]*=[ ]*$//
13457 }'
13458 fi
13459
13460 cat >>$CONFIG_STATUS <<\_ACEOF
13461 fi # test -n "$CONFIG_FILES"
13462
13463
13464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13465 do
13466 case $ac_tag in
13467 :[FHLC]) ac_mode=$ac_tag; continue;;
13468 esac
13469 case $ac_mode$ac_tag in
13470 :[FHL]*:*);;
13471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13473 { (exit 1); exit 1; }; };;
13474 :[FH]-) ac_tag=-:-;;
13475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13476 esac
13477 ac_save_IFS=$IFS
13478 IFS=:
13479 set x $ac_tag
13480 IFS=$ac_save_IFS
13481 shift
13482 ac_file=$1
13483 shift
13484
13485 case $ac_mode in
13486 :L) ac_source=$1;;
13487 :[FH])
13488 ac_file_inputs=
13489 for ac_f
13490 do
13491 case $ac_f in
13492 -) ac_f="$tmp/stdin";;
13493 *) # Look for the file first in the build tree, then in the source tree
13494 # (if the path is not absolute). The absolute path cannot be DOS-style,
13495 # because $ac_f cannot contain `:'.
13496 test -f "$ac_f" ||
13497 case $ac_f in
13498 [\\/$]*) false;;
13499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13500 esac ||
13501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13503 { (exit 1); exit 1; }; };;
13504 esac
13505 ac_file_inputs="$ac_file_inputs $ac_f"
13506 done
13507
13508 # Let's still pretend it is `configure' which instantiates (i.e., don't
13509 # use $as_me), people would be surprised to read:
13510 # /* config.h. Generated by config.status. */
13511 configure_input="Generated from "`IFS=:
13512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13513 if test x"$ac_file" != x-; then
13514 configure_input="$ac_file. $configure_input"
13515 { echo "$as_me:$LINENO: creating $ac_file" >&5
13516 echo "$as_me: creating $ac_file" >&6;}
13517 fi
13518
13519 case $ac_tag in
13520 *:-:* | *:-) cat >"$tmp/stdin";;
13521 esac
13522 ;;
13523 esac
13524
13525 ac_dir=`$as_dirname -- "$ac_file" ||
13526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13527 X"$ac_file" : 'X\(//\)[^/]' \| \
13528 X"$ac_file" : 'X\(//\)$' \| \
13529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13530 echo X"$ac_file" |
13531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13532 s//\1/
13533 q
13534 }
13535 /^X\(\/\/\)[^/].*/{
13536 s//\1/
13537 q
13538 }
13539 /^X\(\/\/\)$/{
13540 s//\1/
13541 q
13542 }
13543 /^X\(\/\).*/{
13544 s//\1/
13545 q
13546 }
13547 s/.*/./; q'`
13548 { as_dir="$ac_dir"
13549 case $as_dir in #(
13550 -*) as_dir=./$as_dir;;
13551 esac
13552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13553 as_dirs=
13554 while :; do
13555 case $as_dir in #(
13556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13557 *) as_qdir=$as_dir;;
13558 esac
13559 as_dirs="'$as_qdir' $as_dirs"
13560 as_dir=`$as_dirname -- "$as_dir" ||
13561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13562 X"$as_dir" : 'X\(//\)[^/]' \| \
13563 X"$as_dir" : 'X\(//\)$' \| \
13564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13565 echo X"$as_dir" |
13566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13567 s//\1/
13568 q
13569 }
13570 /^X\(\/\/\)[^/].*/{
13571 s//\1/
13572 q
13573 }
13574 /^X\(\/\/\)$/{
13575 s//\1/
13576 q
13577 }
13578 /^X\(\/\).*/{
13579 s//\1/
13580 q
13581 }
13582 s/.*/./; q'`
13583 test -d "$as_dir" && break
13584 done
13585 test -z "$as_dirs" || eval "mkdir $as_dirs"
13586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13588 { (exit 1); exit 1; }; }; }
13589 ac_builddir=.
13590
13591 case "$ac_dir" in
13592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13593 *)
13594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13595 # A ".." for each directory in $ac_dir_suffix.
13596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13597 case $ac_top_builddir_sub in
13598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13600 esac ;;
13601 esac
13602 ac_abs_top_builddir=$ac_pwd
13603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13604 # for backward compatibility:
13605 ac_top_builddir=$ac_top_build_prefix
13606
13607 case $srcdir in
13608 .) # We are building in place.
13609 ac_srcdir=.
13610 ac_top_srcdir=$ac_top_builddir_sub
13611 ac_abs_top_srcdir=$ac_pwd ;;
13612 [\\/]* | ?:[\\/]* ) # Absolute name.
13613 ac_srcdir=$srcdir$ac_dir_suffix;
13614 ac_top_srcdir=$srcdir
13615 ac_abs_top_srcdir=$srcdir ;;
13616 *) # Relative name.
13617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13618 ac_top_srcdir=$ac_top_build_prefix$srcdir
13619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13620 esac
13621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13622
13623
13624 case $ac_mode in
13625 :F)
13626 #
13627 # CONFIG_FILE
13628 #
13629
13630 case $INSTALL in
13631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13633 esac
13634 _ACEOF
13635
13636 cat >>$CONFIG_STATUS <<\_ACEOF
13637 # If the template does not know about datarootdir, expand it.
13638 # FIXME: This hack should be removed a few years after 2.60.
13639 ac_datarootdir_hack=; ac_datarootdir_seen=
13640
13641 case `sed -n '/datarootdir/ {
13642 p
13643 q
13644 }
13645 /@datadir@/p
13646 /@docdir@/p
13647 /@infodir@/p
13648 /@localedir@/p
13649 /@mandir@/p
13650 ' $ac_file_inputs` in
13651 *datarootdir*) ac_datarootdir_seen=yes;;
13652 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13653 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13654 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13655 _ACEOF
13656 cat >>$CONFIG_STATUS <<_ACEOF
13657 ac_datarootdir_hack='
13658 s&@datadir@&$datadir&g
13659 s&@docdir@&$docdir&g
13660 s&@infodir@&$infodir&g
13661 s&@localedir@&$localedir&g
13662 s&@mandir@&$mandir&g
13663 s&\\\${datarootdir}&$datarootdir&g' ;;
13664 esac
13665 _ACEOF
13666
13667 # Neutralize VPATH when `$srcdir' = `.'.
13668 # Shell code in configure.ac might set extrasub.
13669 # FIXME: do we really want to maintain this feature?
13670 cat >>$CONFIG_STATUS <<_ACEOF
13671 sed "$ac_vpsub
13672 $extrasub
13673 _ACEOF
13674 cat >>$CONFIG_STATUS <<\_ACEOF
13675 :t
13676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13677 s&@configure_input@&$configure_input&;t t
13678 s&@top_builddir@&$ac_top_builddir_sub&;t t
13679 s&@srcdir@&$ac_srcdir&;t t
13680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13681 s&@top_srcdir@&$ac_top_srcdir&;t t
13682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13683 s&@builddir@&$ac_builddir&;t t
13684 s&@abs_builddir@&$ac_abs_builddir&;t t
13685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13686 s&@INSTALL@&$ac_INSTALL&;t t
13687 $ac_datarootdir_hack
13688 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13689
13690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13694 which seems to be undefined. Please make sure it is defined." >&5
13695 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13696 which seems to be undefined. Please make sure it is defined." >&2;}
13697
13698 rm -f "$tmp/stdin"
13699 case $ac_file in
13700 -) cat "$tmp/out"; rm -f "$tmp/out";;
13701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13702 esac
13703 ;;
13704 :H)
13705 #
13706 # CONFIG_HEADER
13707 #
13708 _ACEOF
13709
13710 # Transform confdefs.h into a sed script `conftest.defines', that
13711 # substitutes the proper values into config.h.in to produce config.h.
13712 rm -f conftest.defines conftest.tail
13713 # First, append a space to every undef/define line, to ease matching.
13714 echo 's/$/ /' >conftest.defines
13715 # Then, protect against being on the right side of a sed subst, or in
13716 # an unquoted here document, in config.status. If some macros were
13717 # called several times there might be several #defines for the same
13718 # symbol, which is useless. But do not sort them, since the last
13719 # AC_DEFINE must be honored.
13720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13721 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13722 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13723 # PARAMS is the parameter list in the macro definition--in most cases, it's
13724 # just an empty string.
13725 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13726 ac_dB='\\)[ (].*,\\1define\\2'
13727 ac_dC=' '
13728 ac_dD=' ,'
13729
13730 uniq confdefs.h |
13731 sed -n '
13732 t rset
13733 :rset
13734 s/^[ ]*#[ ]*define[ ][ ]*//
13735 t ok
13736 d
13737 :ok
13738 s/[\\&,]/\\&/g
13739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13741 ' >>conftest.defines
13742
13743 # Remove the space that was appended to ease matching.
13744 # Then replace #undef with comments. This is necessary, for
13745 # example, in the case of _POSIX_SOURCE, which is predefined and required
13746 # on some systems where configure will not decide to define it.
13747 # (The regexp can be short, since the line contains either #define or #undef.)
13748 echo 's/ $//
13749 s,^[ #]*u.*,/* & */,' >>conftest.defines
13750
13751 # Break up conftest.defines:
13752 ac_max_sed_lines=50
13753
13754 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13755 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13756 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13757 # et cetera.
13758 ac_in='$ac_file_inputs'
13759 ac_out='"$tmp/out1"'
13760 ac_nxt='"$tmp/out2"'
13761
13762 while :
13763 do
13764 # Write a here document:
13765 cat >>$CONFIG_STATUS <<_ACEOF
13766 # First, check the format of the line:
13767 cat >"\$tmp/defines.sed" <<\\CEOF
13768 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13769 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13770 b
13771 :def
13772 _ACEOF
13773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13774 echo 'CEOF
13775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13778 grep . conftest.tail >/dev/null || break
13779 rm -f conftest.defines
13780 mv conftest.tail conftest.defines
13781 done
13782 rm -f conftest.defines conftest.tail
13783
13784 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13785 cat >>$CONFIG_STATUS <<\_ACEOF
13786 if test x"$ac_file" != x-; then
13787 echo "/* $configure_input */" >"$tmp/config.h"
13788 cat "$ac_result" >>"$tmp/config.h"
13789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13791 echo "$as_me: $ac_file is unchanged" >&6;}
13792 else
13793 rm -f $ac_file
13794 mv "$tmp/config.h" $ac_file
13795 fi
13796 else
13797 echo "/* $configure_input */"
13798 cat "$ac_result"
13799 fi
13800 rm -f "$tmp/out12"
13801 # Compute $ac_file's index in $config_headers.
13802 _am_stamp_count=1
13803 for _am_header in $config_headers :; do
13804 case $_am_header in
13805 $ac_file | $ac_file:* )
13806 break ;;
13807 * )
13808 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13809 esac
13810 done
13811 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13812 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13813 X$ac_file : 'X\(//\)[^/]' \| \
13814 X$ac_file : 'X\(//\)$' \| \
13815 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13816 echo X$ac_file |
13817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13818 s//\1/
13819 q
13820 }
13821 /^X\(\/\/\)[^/].*/{
13822 s//\1/
13823 q
13824 }
13825 /^X\(\/\/\)$/{
13826 s//\1/
13827 q
13828 }
13829 /^X\(\/\).*/{
13830 s//\1/
13831 q
13832 }
13833 s/.*/./; q'`/stamp-h$_am_stamp_count
13834 ;;
13835
13836 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13837 echo "$as_me: executing $ac_file commands" >&6;}
13838 ;;
13839 esac
13840
13841
13842 case $ac_file$ac_mode in
13843 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13844 # Strip MF so we end up with the name of the file.
13845 mf=`echo "$mf" | sed -e 's/:.*$//'`
13846 # Check whether this is an Automake generated Makefile or not.
13847 # We used to match only the files named `Makefile.in', but
13848 # some people rename them; so instead we look at the file content.
13849 # Grep'ing the first line is not enough: some people post-process
13850 # each Makefile.in and add a new line on top of each file to say so.
13851 # So let's grep whole file.
13852 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13853 dirpart=`$as_dirname -- "$mf" ||
13854 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13855 X"$mf" : 'X\(//\)[^/]' \| \
13856 X"$mf" : 'X\(//\)$' \| \
13857 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13858 echo X"$mf" |
13859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13860 s//\1/
13861 q
13862 }
13863 /^X\(\/\/\)[^/].*/{
13864 s//\1/
13865 q
13866 }
13867 /^X\(\/\/\)$/{
13868 s//\1/
13869 q
13870 }
13871 /^X\(\/\).*/{
13872 s//\1/
13873 q
13874 }
13875 s/.*/./; q'`
13876 else
13877 continue
13878 fi
13879 # Extract the definition of DEPDIR, am__include, and am__quote
13880 # from the Makefile without running `make'.
13881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13882 test -z "$DEPDIR" && continue
13883 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13884 test -z "am__include" && continue
13885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13886 # When using ansi2knr, U may be empty or an underscore; expand it
13887 U=`sed -n 's/^U = //p' < "$mf"`
13888 # Find all dependency output files, they are included files with
13889 # $(DEPDIR) in their names. We invoke sed twice because it is the
13890 # simplest approach to changing $(DEPDIR) to its actual value in the
13891 # expansion.
13892 for file in `sed -n "
13893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13895 # Make sure the directory exists.
13896 test -f "$dirpart/$file" && continue
13897 fdir=`$as_dirname -- "$file" ||
13898 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13899 X"$file" : 'X\(//\)[^/]' \| \
13900 X"$file" : 'X\(//\)$' \| \
13901 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13902 echo X"$file" |
13903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13904 s//\1/
13905 q
13906 }
13907 /^X\(\/\/\)[^/].*/{
13908 s//\1/
13909 q
13910 }
13911 /^X\(\/\/\)$/{
13912 s//\1/
13913 q
13914 }
13915 /^X\(\/\).*/{
13916 s//\1/
13917 q
13918 }
13919 s/.*/./; q'`
13920 { as_dir=$dirpart/$fdir
13921 case $as_dir in #(
13922 -*) as_dir=./$as_dir;;
13923 esac
13924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13925 as_dirs=
13926 while :; do
13927 case $as_dir in #(
13928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13929 *) as_qdir=$as_dir;;
13930 esac
13931 as_dirs="'$as_qdir' $as_dirs"
13932 as_dir=`$as_dirname -- "$as_dir" ||
13933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13934 X"$as_dir" : 'X\(//\)[^/]' \| \
13935 X"$as_dir" : 'X\(//\)$' \| \
13936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13937 echo X"$as_dir" |
13938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13939 s//\1/
13940 q
13941 }
13942 /^X\(\/\/\)[^/].*/{
13943 s//\1/
13944 q
13945 }
13946 /^X\(\/\/\)$/{
13947 s//\1/
13948 q
13949 }
13950 /^X\(\/\).*/{
13951 s//\1/
13952 q
13953 }
13954 s/.*/./; q'`
13955 test -d "$as_dir" && break
13956 done
13957 test -z "$as_dirs" || eval "mkdir $as_dirs"
13958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13960 { (exit 1); exit 1; }; }; }
13961 # echo "creating $dirpart/$file"
13962 echo '# dummy' > "$dirpart/$file"
13963 done
13964 done
13965 ;;
13966 "libtool":C)
13967
13968 # See if we are running on zsh, and set the options which allow our
13969 # commands through without removal of \ escapes.
13970 if test -n "${ZSH_VERSION+set}" ; then
13971 setopt NO_GLOB_SUBST
13972 fi
13973
13974 cfgfile="${ofile}T"
13975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13976 $RM "$cfgfile"
13977
13978 cat <<_LT_EOF >> "$cfgfile"
13979 #! $SHELL
13980
13981 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13982 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13984 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13985 #
13986 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13987 # 2006, 2007 Free Software Foundation, Inc.
13988 #
13989 # This file is part of GNU Libtool:
13990 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13991 #
13992 # This program is free software; you can redistribute it and/or modify
13993 # it under the terms of the GNU General Public License as published by
13994 # the Free Software Foundation; either version 2 of the License, or
13995 # (at your option) any later version.
13996 #
13997 # This program is distributed in the hope that it will be useful, but
13998 # WITHOUT ANY WARRANTY; without even the implied warranty of
13999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14000 # General Public License for more details.
14001 #
14002 # You should have received a copy of the GNU General Public License
14003 # along with this program; if not, a copy can be downloaded from
14004 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14005 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14006 # MA 02110-1301, USA.
14007 #
14008 # As a special exception to the GNU General Public License, if you
14009 # distribute this file as part of a program that contains a
14010 # configuration script generated by Autoconf, you may include it under
14011 # the same distribution terms that you use for the rest of that program.
14012
14013
14014 # The names of the tagged configurations supported by this script.
14015 available_tags=""
14016
14017 # ### BEGIN LIBTOOL CONFIG
14018
14019 # A sed program that does not truncate output.
14020 SED=$lt_SED
14021
14022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14023 Xsed="\$SED -e 1s/^X//"
14024
14025 # Assembler program.
14026 AS=$AS
14027
14028 # DLL creation program.
14029 DLLTOOL=$DLLTOOL
14030
14031 # Object dumper program.
14032 OBJDUMP=$OBJDUMP
14033
14034 # Which release of libtool.m4 was used?
14035 macro_version=$macro_version
14036 macro_revision=$macro_revision
14037
14038 # Whether or not to build shared libraries.
14039 build_libtool_libs=$enable_shared
14040
14041 # Whether or not to build static libraries.
14042 build_old_libs=$enable_static
14043
14044 # What type of objects to build.
14045 pic_mode=$pic_mode
14046
14047 # Whether or not to optimize for fast installation.
14048 fast_install=$enable_fast_install
14049
14050 # The host system.
14051 host_alias=$host_alias
14052 host=$host
14053 host_os=$host_os
14054
14055 # The build system.
14056 build_alias=$build_alias
14057 build=$build
14058 build_os=$build_os
14059
14060 # A grep program that handles long lines.
14061 GREP=$lt_GREP
14062
14063 # An ERE matcher.
14064 EGREP=$lt_EGREP
14065
14066 # A literal string matcher.
14067 FGREP=$lt_FGREP
14068
14069 # A BSD- or MS-compatible name lister.
14070 NM=$lt_NM
14071
14072 # Whether we need soft or hard links.
14073 LN_S=$lt_LN_S
14074
14075 # What is the maximum length of a command?
14076 max_cmd_len=$max_cmd_len
14077
14078 # Object file suffix (normally "o").
14079 objext=$ac_objext
14080
14081 # Executable file suffix (normally "").
14082 exeext=$exeext
14083
14084 # whether the shell understands "unset".
14085 lt_unset=$lt_unset
14086
14087 # turn spaces into newlines.
14088 SP2NL=$lt_lt_SP2NL
14089
14090 # turn newlines into spaces.
14091 NL2SP=$lt_lt_NL2SP
14092
14093 # How to create reloadable object files.
14094 reload_flag=$lt_reload_flag
14095 reload_cmds=$lt_reload_cmds
14096
14097 # Method to check whether dependent libraries are shared objects.
14098 deplibs_check_method=$lt_deplibs_check_method
14099
14100 # Command to use when deplibs_check_method == "file_magic".
14101 file_magic_cmd=$lt_file_magic_cmd
14102
14103 # The archiver.
14104 AR=$lt_AR
14105 AR_FLAGS=$lt_AR_FLAGS
14106
14107 # A symbol stripping program.
14108 STRIP=$lt_STRIP
14109
14110 # Commands used to install an old-style archive.
14111 RANLIB=$lt_RANLIB
14112 old_postinstall_cmds=$lt_old_postinstall_cmds
14113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14114
14115 # A C compiler.
14116 LTCC=$lt_CC
14117
14118 # LTCC compiler flags.
14119 LTCFLAGS=$lt_CFLAGS
14120
14121 # Take the output of nm and produce a listing of raw symbols and C names.
14122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14123
14124 # Transform the output of nm in a proper C declaration.
14125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14126
14127 # Transform the output of nm in a C name address pair.
14128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14129
14130 # The name of the directory that contains temporary libtool files.
14131 objdir=$objdir
14132
14133 # Shell to use when invoking shell scripts.
14134 SHELL=$lt_SHELL
14135
14136 # An echo program that does not interpret backslashes.
14137 ECHO=$lt_ECHO
14138
14139 # Used to examine libraries when file_magic_cmd begins with "file".
14140 MAGIC_CMD=$MAGIC_CMD
14141
14142 # Must we lock files when doing compilation?
14143 need_locks=$lt_need_locks
14144
14145 # Old archive suffix (normally "a").
14146 libext=$libext
14147
14148 # Shared library suffix (normally ".so").
14149 shrext_cmds=$lt_shrext_cmds
14150
14151 # The commands to extract the exported symbol list from a shared archive.
14152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14153
14154 # Variables whose values should be saved in libtool wrapper scripts and
14155 # restored at link time.
14156 variables_saved_for_relink=$lt_variables_saved_for_relink
14157
14158 # Do we need the "lib" prefix for modules?
14159 need_lib_prefix=$need_lib_prefix
14160
14161 # Do we need a version for libraries?
14162 need_version=$need_version
14163
14164 # Library versioning type.
14165 version_type=$version_type
14166
14167 # Shared library runtime path variable.
14168 runpath_var=$runpath_var
14169
14170 # Shared library path variable.
14171 shlibpath_var=$shlibpath_var
14172
14173 # Is shlibpath searched before the hard-coded library search path?
14174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14175
14176 # Format of library name prefix.
14177 libname_spec=$lt_libname_spec
14178
14179 # List of archive names. First name is the real one, the rest are links.
14180 # The last name is the one that the linker finds with -lNAME
14181 library_names_spec=$lt_library_names_spec
14182
14183 # The coded name of the library, if different from the real name.
14184 soname_spec=$lt_soname_spec
14185
14186 # Command to use after installation of a shared archive.
14187 postinstall_cmds=$lt_postinstall_cmds
14188
14189 # Command to use after uninstallation of a shared archive.
14190 postuninstall_cmds=$lt_postuninstall_cmds
14191
14192 # Commands used to finish a libtool library installation in a directory.
14193 finish_cmds=$lt_finish_cmds
14194
14195 # As "finish_cmds", except a single script fragment to be evaled but
14196 # not shown.
14197 finish_eval=$lt_finish_eval
14198
14199 # Whether we should hardcode library paths into libraries.
14200 hardcode_into_libs=$hardcode_into_libs
14201
14202 # Compile-time system search path for libraries.
14203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14204
14205 # Run-time system search path for libraries.
14206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14207
14208 # Whether dlopen is supported.
14209 dlopen_support=$enable_dlopen
14210
14211 # Whether dlopen of programs is supported.
14212 dlopen_self=$enable_dlopen_self
14213
14214 # Whether dlopen of statically linked programs is supported.
14215 dlopen_self_static=$enable_dlopen_self_static
14216
14217 # Commands to strip libraries.
14218 old_striplib=$lt_old_striplib
14219 striplib=$lt_striplib
14220
14221
14222 # The linker used to build libraries.
14223 LD=$lt_LD
14224
14225 # Commands used to build an old-style archive.
14226 old_archive_cmds=$lt_old_archive_cmds
14227
14228 # A language specific compiler.
14229 CC=$lt_compiler
14230
14231 # Is the compiler the GNU compiler?
14232 with_gcc=$GCC
14233
14234 # Compiler flag to turn off builtin functions.
14235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14236
14237 # How to pass a linker flag through the compiler.
14238 wl=$lt_lt_prog_compiler_wl
14239
14240 # Additional compiler flags for building library objects.
14241 pic_flag=$lt_lt_prog_compiler_pic
14242
14243 # Compiler flag to prevent dynamic linking.
14244 link_static_flag=$lt_lt_prog_compiler_static
14245
14246 # Does compiler simultaneously support -c and -o options?
14247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14248
14249 # Whether or not to add -lc for building shared libraries.
14250 build_libtool_need_lc=$archive_cmds_need_lc
14251
14252 # Whether or not to disallow shared libs when runtime libs are static.
14253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14254
14255 # Compiler flag to allow reflexive dlopens.
14256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14257
14258 # Compiler flag to generate shared objects directly from archives.
14259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14260
14261 # Whether the compiler copes with passing no objects directly.
14262 compiler_needs_object=$lt_compiler_needs_object
14263
14264 # Create an old-style archive from a shared archive.
14265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14266
14267 # Create a temporary old-style archive to link instead of a shared archive.
14268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14269
14270 # Commands used to build a shared archive.
14271 archive_cmds=$lt_archive_cmds
14272 archive_expsym_cmds=$lt_archive_expsym_cmds
14273
14274 # Commands used to build a loadable module if different from building
14275 # a shared archive.
14276 module_cmds=$lt_module_cmds
14277 module_expsym_cmds=$lt_module_expsym_cmds
14278
14279 # Whether we are building with GNU ld or not.
14280 with_gnu_ld=$lt_with_gnu_ld
14281
14282 # Flag that allows shared libraries with undefined symbols to be built.
14283 allow_undefined_flag=$lt_allow_undefined_flag
14284
14285 # Flag that enforces no undefined symbols.
14286 no_undefined_flag=$lt_no_undefined_flag
14287
14288 # Flag to hardcode \$libdir into a binary during linking.
14289 # This must work even if \$libdir does not exist
14290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14291
14292 # If ld is used when linking, flag to hardcode \$libdir into a binary
14293 # during linking. This must work even if \$libdir does not exist.
14294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14295
14296 # Whether we need a single "-rpath" flag with a separated argument.
14297 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14298
14299 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14300 # DIR into the resulting binary.
14301 hardcode_direct=$hardcode_direct
14302
14303 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14304 # DIR into the resulting binary and the resulting library dependency is
14305 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14306 # library is relocated.
14307 hardcode_direct_absolute=$hardcode_direct_absolute
14308
14309 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14310 # into the resulting binary.
14311 hardcode_minus_L=$hardcode_minus_L
14312
14313 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14314 # into the resulting binary.
14315 hardcode_shlibpath_var=$hardcode_shlibpath_var
14316
14317 # Set to "yes" if building a shared library automatically hardcodes DIR
14318 # into the library and all subsequent libraries and executables linked
14319 # against it.
14320 hardcode_automatic=$hardcode_automatic
14321
14322 # Set to yes if linker adds runtime paths of dependent libraries
14323 # to runtime path list.
14324 inherit_rpath=$inherit_rpath
14325
14326 # Whether libtool must link a program against all its dependency libraries.
14327 link_all_deplibs=$link_all_deplibs
14328
14329 # Fix the shell variable \$srcfile for the compiler.
14330 fix_srcfile_path=$lt_fix_srcfile_path
14331
14332 # Set to "yes" if exported symbols are required.
14333 always_export_symbols=$always_export_symbols
14334
14335 # The commands to list exported symbols.
14336 export_symbols_cmds=$lt_export_symbols_cmds
14337
14338 # Symbols that should not be listed in the preloaded symbols.
14339 exclude_expsyms=$lt_exclude_expsyms
14340
14341 # Symbols that must always be exported.
14342 include_expsyms=$lt_include_expsyms
14343
14344 # Commands necessary for linking programs (against libraries) with templates.
14345 prelink_cmds=$lt_prelink_cmds
14346
14347 # Specify filename containing input files.
14348 file_list_spec=$lt_file_list_spec
14349
14350 # How to hardcode a shared library path into an executable.
14351 hardcode_action=$hardcode_action
14352
14353 # ### END LIBTOOL CONFIG
14354
14355 _LT_EOF
14356
14357 case $host_os in
14358 aix3*)
14359 cat <<\_LT_EOF >> "$cfgfile"
14360 # AIX sometimes has problems with the GCC collect2 program. For some
14361 # reason, if we set the COLLECT_NAMES environment variable, the problems
14362 # vanish in a puff of smoke.
14363 if test "X${COLLECT_NAMES+set}" != Xset; then
14364 COLLECT_NAMES=
14365 export COLLECT_NAMES
14366 fi
14367 _LT_EOF
14368 ;;
14369 esac
14370
14371
14372 ltmain="$ac_aux_dir/ltmain.sh"
14373
14374
14375 # We use sed instead of cat because bash on DJGPP gets confused if
14376 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14377 # text mode, it properly converts lines to CR/LF. This bash problem
14378 # is reportedly fixed, but why not run on old versions too?
14379 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14380 || (rm -f "$cfgfile"; exit 1)
14381
14382 case $xsi_shell in
14383 yes)
14384 cat << \_LT_EOF >> "$cfgfile"
14385 # func_dirname file append nondir_replacement
14386 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14387 # otherwise set result to NONDIR_REPLACEMENT.
14388 func_dirname ()
14389 {
14390 case ${1} in
14391 */*) func_dirname_result="${1%/*}${2}" ;;
14392 * ) func_dirname_result="${3}" ;;
14393 esac
14394 }
14395
14396 # func_basename file
14397 func_basename ()
14398 {
14399 func_basename_result="${1##*/}"
14400 }
14401
14402 # func_stripname prefix suffix name
14403 # strip PREFIX and SUFFIX off of NAME.
14404 # PREFIX and SUFFIX must not contain globbing or regex special
14405 # characters, hashes, percent signs, but SUFFIX may contain a leading
14406 # dot (in which case that matches only a dot).
14407 func_stripname ()
14408 {
14409 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14410 # positional parameters, so assign one to ordinary parameter first.
14411 func_stripname_result=${3}
14412 func_stripname_result=${func_stripname_result#"${1}"}
14413 func_stripname_result=${func_stripname_result%"${2}"}
14414 }
14415
14416 # func_opt_split
14417 func_opt_split ()
14418 {
14419 func_opt_split_opt=${1%%=*}
14420 func_opt_split_arg=${1#*=}
14421 }
14422
14423 # func_lo2o object
14424 func_lo2o ()
14425 {
14426 case ${1} in
14427 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14428 *) func_lo2o_result=${1} ;;
14429 esac
14430 }
14431 _LT_EOF
14432 ;;
14433 *) # Bourne compatible functions.
14434 cat << \_LT_EOF >> "$cfgfile"
14435 # func_dirname file append nondir_replacement
14436 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14437 # otherwise set result to NONDIR_REPLACEMENT.
14438 func_dirname ()
14439 {
14440 # Extract subdirectory from the argument.
14441 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14442 if test "X$func_dirname_result" = "X${1}"; then
14443 func_dirname_result="${3}"
14444 else
14445 func_dirname_result="$func_dirname_result${2}"
14446 fi
14447 }
14448
14449 # func_basename file
14450 func_basename ()
14451 {
14452 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14453 }
14454
14455 # func_stripname prefix suffix name
14456 # strip PREFIX and SUFFIX off of NAME.
14457 # PREFIX and SUFFIX must not contain globbing or regex special
14458 # characters, hashes, percent signs, but SUFFIX may contain a leading
14459 # dot (in which case that matches only a dot).
14460 # func_strip_suffix prefix name
14461 func_stripname ()
14462 {
14463 case ${2} in
14464 .*) func_stripname_result=`$ECHO "X${3}" \
14465 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14466 *) func_stripname_result=`$ECHO "X${3}" \
14467 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14468 esac
14469 }
14470
14471 # sed scripts:
14472 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14473 my_sed_long_arg='1s/^-[^=]*=//'
14474
14475 # func_opt_split
14476 func_opt_split ()
14477 {
14478 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14479 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14480 }
14481
14482 # func_lo2o object
14483 func_lo2o ()
14484 {
14485 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14486 }
14487 _LT_EOF
14488 esac
14489
14490 case $lt_shell_append in
14491 yes)
14492 cat << \_LT_EOF >> "$cfgfile"
14493
14494 # func_append var value
14495 # Append VALUE to the end of shell variable VAR.
14496 func_append ()
14497 {
14498 eval "$1+=\$2"
14499 }
14500 _LT_EOF
14501 ;;
14502 *)
14503 cat << \_LT_EOF >> "$cfgfile"
14504
14505 # func_append var value
14506 # Append VALUE to the end of shell variable VAR.
14507 func_append ()
14508 {
14509 eval "$1=\$$1\$2"
14510 }
14511 _LT_EOF
14512 ;;
14513 esac
14514
14515
14516 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14517 || (rm -f "$cfgfile"; exit 1)
14518
14519 mv -f "$cfgfile" "$ofile" ||
14520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14521 chmod +x "$ofile"
14522
14523 ;;
14524 "Makefile":F) if test -n "$CONFIG_FILES"; then
14525 unset ac_file
14526 . ${newlib_basedir}/../config-ml.in
14527 fi ;;
14528
14529 esac
14530 done # for ac_tag
14531
14532
14533 { (exit 0); exit 0; }
14534 _ACEOF
14535 chmod +x $CONFIG_STATUS
14536 ac_clean_files=$ac_clean_files_save
14537
14538
14539 # configure is writing to config.log, and then calls config.status.
14540 # config.status does its own redirection, appending to config.log.
14541 # Unfortunately, on DOS this fails, as config.log is still kept open
14542 # by configure, so config.status won't be able to write to it; its
14543 # output is simply discarded. So we exec the FD to /dev/null,
14544 # effectively closing config.log, so it can be properly (re)opened and
14545 # appended to by config.status. When coming back to configure, we
14546 # need to make the FD available again.
14547 if test "$no_create" != yes; then
14548 ac_cs_success=:
14549 ac_config_status_args=
14550 test "$silent" = yes &&
14551 ac_config_status_args="$ac_config_status_args --quiet"
14552 exec 5>/dev/null
14553 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14554 exec 5>>config.log
14555 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14556 # would make configure fail if this is the last instruction.
14557 $ac_cs_success || { (exit 1); exit 1; }
14558 fi
14559
14560 #
14561 # CONFIG_SUBDIRS section.
14562 #
14563 if test "$no_recursion" != yes; then
14564
14565 # Remove --cache-file and --srcdir arguments so they do not pile up.
14566 ac_sub_configure_args=
14567 ac_prev=
14568 eval "set x $ac_configure_args"
14569 shift
14570 for ac_arg
14571 do
14572 if test -n "$ac_prev"; then
14573 ac_prev=
14574 continue
14575 fi
14576 case $ac_arg in
14577 -cache-file | --cache-file | --cache-fil | --cache-fi \
14578 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14579 ac_prev=cache_file ;;
14580 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14581 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14582 | --c=*)
14583 ;;
14584 --config-cache | -C)
14585 ;;
14586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14587 ac_prev=srcdir ;;
14588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14589 ;;
14590 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14591 ac_prev=prefix ;;
14592 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14593 ;;
14594 *)
14595 case $ac_arg in
14596 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14597 esac
14598 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14599 esac
14600 done
14601
14602 # Always prepend --prefix to ensure using the same prefix
14603 # in subdir configurations.
14604 ac_arg="--prefix=$prefix"
14605 case $ac_arg in
14606 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14607 esac
14608 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14609
14610 # Pass --silent
14611 if test "$silent" = yes; then
14612 ac_sub_configure_args="--silent $ac_sub_configure_args"
14613 fi
14614
14615 ac_popdir=`pwd`
14616 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14617
14618 # Do not complain, so a configure script can configure whichever
14619 # parts of a large source tree are present.
14620 test -d "$srcdir/$ac_dir" || continue
14621
14622 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14623 echo "$as_me:$LINENO: $ac_msg" >&5
14624 echo "$ac_msg" >&6
14625 { as_dir="$ac_dir"
14626 case $as_dir in #(
14627 -*) as_dir=./$as_dir;;
14628 esac
14629 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14630 as_dirs=
14631 while :; do
14632 case $as_dir in #(
14633 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14634 *) as_qdir=$as_dir;;
14635 esac
14636 as_dirs="'$as_qdir' $as_dirs"
14637 as_dir=`$as_dirname -- "$as_dir" ||
14638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14639 X"$as_dir" : 'X\(//\)[^/]' \| \
14640 X"$as_dir" : 'X\(//\)$' \| \
14641 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14642 echo X"$as_dir" |
14643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14644 s//\1/
14645 q
14646 }
14647 /^X\(\/\/\)[^/].*/{
14648 s//\1/
14649 q
14650 }
14651 /^X\(\/\/\)$/{
14652 s//\1/
14653 q
14654 }
14655 /^X\(\/\).*/{
14656 s//\1/
14657 q
14658 }
14659 s/.*/./; q'`
14660 test -d "$as_dir" && break
14661 done
14662 test -z "$as_dirs" || eval "mkdir $as_dirs"
14663 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14664 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14665 { (exit 1); exit 1; }; }; }
14666 ac_builddir=.
14667
14668 case "$ac_dir" in
14669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14670 *)
14671 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14672 # A ".." for each directory in $ac_dir_suffix.
14673 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14674 case $ac_top_builddir_sub in
14675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14677 esac ;;
14678 esac
14679 ac_abs_top_builddir=$ac_pwd
14680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14681 # for backward compatibility:
14682 ac_top_builddir=$ac_top_build_prefix
14683
14684 case $srcdir in
14685 .) # We are building in place.
14686 ac_srcdir=.
14687 ac_top_srcdir=$ac_top_builddir_sub
14688 ac_abs_top_srcdir=$ac_pwd ;;
14689 [\\/]* | ?:[\\/]* ) # Absolute name.
14690 ac_srcdir=$srcdir$ac_dir_suffix;
14691 ac_top_srcdir=$srcdir
14692 ac_abs_top_srcdir=$srcdir ;;
14693 *) # Relative name.
14694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14695 ac_top_srcdir=$ac_top_build_prefix$srcdir
14696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14697 esac
14698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14699
14700
14701 cd "$ac_dir"
14702
14703 # Check for guested configure; otherwise get Cygnus style configure.
14704 if test -f "$ac_srcdir/configure.gnu"; then
14705 ac_sub_configure=$ac_srcdir/configure.gnu
14706 elif test -f "$ac_srcdir/configure"; then
14707 ac_sub_configure=$ac_srcdir/configure
14708 elif test -f "$ac_srcdir/configure.in"; then
14709 # This should be Cygnus configure.
14710 ac_sub_configure=$ac_aux_dir/configure
14711 else
14712 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
14713 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14714 ac_sub_configure=
14715 fi
14716
14717 # The recursion is here.
14718 if test -n "$ac_sub_configure"; then
14719 # Make the cache file name correct relative to the subdirectory.
14720 case $cache_file in
14721 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14722 *) # Relative name.
14723 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14724 esac
14725
14726 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14727 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14728 # The eval makes quoting arguments work.
14729 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14730 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14731 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14732 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14733 { (exit 1); exit 1; }; }
14734 fi
14735
14736 cd "$ac_popdir"
14737 done
14738 fi
14739
This page took 0.742671 seconds and 5 git commands to generate.