]> code.delx.au - pulseaudio/blob - libltdl/configure
merge 'lennart' branch back into trunk.
[pulseaudio] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libltdl'
730 PACKAGE_TARNAME='libltdl'
731 PACKAGE_VERSION='1.2'
732 PACKAGE_STRING='libltdl 1.2'
733 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
734
735 ac_unique_file="ltdl.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
855 SED
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 DLLTOOL
863 AS
864 OBJDUMP
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBTOOL_DEPS
878 INSTALL_LTDL_TRUE
879 INSTALL_LTDL_FALSE
880 CONVENIENCE_LTDL_TRUE
881 CONVENIENCE_LTDL_FALSE
882 LIBADD_DL
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP
899 F77
900 FFLAGS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *) ac_optarg=yes ;;
963 esac
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
995
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1021
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 ;;
1276
1277 esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1284 fi
1285
1286 # Be sure to have absolute directory names.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1291 do
1292 eval ac_val=\$$ac_var
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libltdl 1.2:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-ltdl-install install libltdl
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-tags[=TAGS] include additional configurations [automatic]
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <bug-libtool@gnu.org>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 libltdl configure 1.2
1577 generated by GNU Autoconf 2.61
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1589
1590 It was created by libltdl $as_me 1.2, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1592
1593 $ $0 $@
1594
1595 _ACEOF
1596 exec 5>>config.log
1597 {
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1602
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619
1620 _ASUNAME
1621
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1630
1631 } >&5
1632
1633 cat >&5 <<_ACEOF
1634
1635
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1639
1640 _ACEOF
1641
1642
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1653 do
1654 for ac_arg
1655 do
1656 case $ac_arg in
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1660 continue ;;
1661 *\'*)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 esac
1664 case $ac_pass in
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 2)
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1670 else
1671 case $ac_arg in
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 esac
1679 ;;
1680 -* ) ac_must_keep_next=true ;;
1681 esac
1682 fi
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 ;;
1685 esac
1686 done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1698 {
1699 echo
1700
1701 cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706 echo
1707 # The following way of writing the cache mishandles newlines in values,
1708 (
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1711 case $ac_val in #(
1712 *${as_nl}*)
1713 case $ac_var in #(
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 esac
1717 case $ac_var in #(
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
1723 (set) 2>&1 |
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1726 sed -n \
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
1730 *)
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 ;;
1733 esac |
1734 sort
1735 )
1736 echo
1737
1738 cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1745 do
1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 echo "$ac_var='\''$ac_val'\''"
1751 done | sort
1752 echo
1753
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1762 do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1770 fi
1771
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778 echo
1779 cat confdefs.h
1780 echo
1781 fi
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1785 } >&5
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1834 fi
1835 shift
1836 for ac_site_file
1837 do
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1842 . "$ac_site_file"
1843 fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852 case $cache_file in
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1855 esac
1856 fi
1857 else
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860 >$cache_file
1861 fi
1862
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1872 set,)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,set)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,);;
1881 *)
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1890 fi;;
1891 esac
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1894 case $ac_new_val in
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1897 esac
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 esac
1902 fi
1903 done
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1910 fi
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936 ac_ext=c
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941
1942
1943
1944
1945
1946 ## ------------------------------- ##
1947 ## Libltdl specific configuration. ##
1948 ## ------------------------------- ##
1949
1950 ac_aux_dir=
1951 for ac_dir in . "$srcdir"/.; do
1952 if test -f "$ac_dir/install-sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
1956 elif test -f "$ac_dir/install.sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
1960 elif test -f "$ac_dir/shtool"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
1980
1981
1982 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983 if test -f ${srcdir}/ltmain.sh; then
1984 # if libltdl is libtoolized, it is assumed to be stand-alone and
1985 # installed unless the command line overrides it (tested above)
1986 enable_ltdl_install=yes
1987 else
1988 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996 fi
1997
1998
1999 ## ------------------------ ##
2000 ## Automake Initialisation. ##
2001 ## ------------------------ ##
2002 am__api_version='1.10'
2003
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2010 # AIX /bin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2029 case $as_dir/ in
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033 /usr/ucb/* ) ;;
2034 *)
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2037 # by default.
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2044 :
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2048 :
2049 else
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2051 break 3
2052 fi
2053 fi
2054 done
2055 done
2056 ;;
2057 esac
2058 done
2059 IFS=$as_save_IFS
2060
2061
2062 fi
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2065 else
2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
2068 # break other packages using the cache if that directory is
2069 # removed, or if the value is a relative name.
2070 INSTALL=$ac_install_sh
2071 fi
2072 fi
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2075
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2086 # Just in case
2087 sleep 1
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell's
2090 # arguments. Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2093 # directory).
2094 if (
2095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2097 # -L didn't work.
2098 set X `ls -t $srcdir/configure conftest.file`
2099 fi
2100 rm -f conftest.file
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2103
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 test "$2" = conftest.file
2116 )
2117 then
2118 # Ok.
2119 :
2120 else
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2126 fi
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE &&
2130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE &&
2133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $. echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF >conftest.sed
2137 s/[\\$]/&&/g;s/;s,x,x,$//
2138 _ACEOF
2139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2140 rm -f conftest.sed
2141
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir=`cd $ac_aux_dir && pwd`
2144
2145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148 am_missing_run="$MISSING --run "
2149 else
2150 am_missing_run=
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153 fi
2154
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_prog in mkdir gmkdir; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174 break 3;;
2175 esac
2176 done
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 fi
2182
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P="$ac_cv_path_mkdir -p"
2185 else
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d ./--version && rmdir ./--version
2191 MKDIR_P="$ac_install_sh -d"
2192 fi
2193 fi
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2196
2197 mkdir_p="$MKDIR_P"
2198 case $mkdir_p in
2199 [\\/$]* | ?:[\\/]*) ;;
2200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2201 esac
2202
2203 for ac_prog in gawk mawk nawk awk
2204 do
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 AWK=$ac_cv_prog_AWK
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242 test -n "$AWK" && break
2243 done
2244
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.make <<\_ACEOF
2252 SHELL = /bin/sh
2253 all:
2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 _ACEOF
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 *@@@%%%=?*=@@@%%%*)
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2260 *)
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2262 esac
2263 rm -f conftest.make
2264 fi
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268 SET_MAKE=
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE="MAKE=${MAKE-make}"
2273 fi
2274
2275 rm -rf .tst 2>/dev/null
2276 mkdir .tst 2>/dev/null
2277 if test -d .tst; then
2278 am__leading_dot=.
2279 else
2280 am__leading_dot=_
2281 fi
2282 rmdir .tst 2>/dev/null
2283
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2300 else
2301 CYGPATH_W=echo
2302 fi
2303 fi
2304
2305
2306 # Define the identity of the package.
2307 PACKAGE=libltdl
2308 VERSION=1.2
2309
2310
2311 # Some tools Automake needs.
2312
2313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2314
2315
2316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2317
2318
2319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2320
2321
2322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2323
2324
2325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326
2327 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2328
2329 # Installed binaries are usually stripped using `strip' when the user
2330 # run `make install-strip'. However `strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the `STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 STRIP=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365 echo "${ECHO_T}$STRIP" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$ac_cv_prog_STRIP"; then
2374 ac_ct_STRIP=$STRIP
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 fi
2410
2411 if test "x$ac_ct_STRIP" = x; then
2412 STRIP=":"
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2423 esac
2424 STRIP=$ac_ct_STRIP
2425 fi
2426 else
2427 STRIP="$ac_cv_prog_STRIP"
2428 fi
2429
2430 fi
2431 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2432
2433 # We need awk for the "check" target. The system "awk" is bad on
2434 # some platforms.
2435 # Always define AMTAR for backward compatibility.
2436
2437 AMTAR=${AMTAR-"${am_missing_run}tar"}
2438
2439 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2440
2441
2442
2443
2444
2445 ac_config_headers="$ac_config_headers config.h:config-h.in"
2446
2447
2448
2449 ## ------------------ ##
2450 ## C compiler checks. ##
2451 ## ------------------ ##
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_CC"; then
2497 ac_ct_CC=$CC
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499 set dummy gcc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_CC="gcc"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526 if test -n "$ac_ct_CC"; then
2527 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2528 echo "${ECHO_T}$ac_ct_CC" >&6; }
2529 else
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2532 fi
2533
2534 if test "x$ac_ct_CC" = x; then
2535 CC=""
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet. If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 CC=$ac_ct_CC
2548 fi
2549 else
2550 CC="$ac_cv_prog_CC"
2551 fi
2552
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}cc; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="${ac_tool_prefix}cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592 fi
2593 fi
2594 if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596 set dummy cc; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 ac_prog_rejected=no
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected=yes
2615 continue
2616 fi
2617 ac_cv_prog_CC="cc"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy $ac_cv_prog_CC
2628 shift
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2633 shift
2634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635 fi
2636 fi
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2643 else
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2646 fi
2647
2648
2649 fi
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog in cl.exe
2653 do
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6; }
2685 else
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690
2691 test -n "$CC" && break
2692 done
2693 fi
2694 if test -z "$CC"; then
2695 ac_ct_CC=$CC
2696 for ac_prog in cl.exe
2697 do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6; }
2729 else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735 test -n "$ac_ct_CC" && break
2736 done
2737
2738 if test "x$ac_ct_CC" = x; then
2739 CC=""
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&5
2746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet. If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751 CC=$ac_ct_CC
2752 fi
2753 fi
2754
2755 fi
2756
2757
2758 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759 See \`config.log' for more details." >&5
2760 echo "$as_me: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2763
2764 # Provide some information about the compiler.
2765 echo "$as_me:$LINENO: checking for C compiler version" >&5
2766 ac_compiler=`set X $ac_compile; echo $2`
2767 { (ac_try="$ac_compiler --version >&5"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler --version >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (ac_try="$ac_compiler -v >&5"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -v >&5") 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787 { (ac_try="$ac_compiler -V >&5"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2797
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2817 # of exeext.
2818 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2820 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821 #
2822 # List of possible output files, starting from the most likely.
2823 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2824 # only as a last resort. b.out is created by i960 compilers.
2825 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826 #
2827 # The IRIX 6 linker writes into existing files which may not be
2828 # executable, retaining their permissions. Remove them first so a
2829 # subsequent execution test works.
2830 ac_rmfiles=
2831 for ac_file in $ac_files
2832 do
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837 done
2838 rm -f $ac_rmfiles
2839
2840 if { (ac_try="$ac_link_default"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_link_default") 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; then
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2854 # Autoconf.
2855 for ac_file in $ac_files ''
2856 do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2875 break;;
2876 * )
2877 break;;
2878 esac
2879 done
2880 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881
2882 else
2883 ac_file=''
2884 fi
2885
2886 { echo "$as_me:$LINENO: result: $ac_file" >&5
2887 echo "${ECHO_T}$ac_file" >&6; }
2888 if test -z "$ac_file"; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&2;}
2896 { (exit 77); exit 77; }; }
2897 fi
2898
2899 ac_exeext=$ac_cv_exeext
2900
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906 # If not cross compiling, check that we can run a simple program.
2907 if test "$cross_compiling" != yes; then
2908 if { ac_try='./$ac_file'
2909 { (case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_try") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 cross_compiling=no
2919 else
2920 if test "$cross_compiling" = maybe; then
2921 cross_compiling=yes
2922 else
2923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924 If you meant to cross compile, use \`--host'.
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931 fi
2932 fi
2933 { echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6; }
2935
2936 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937 ac_clean_files=$ac_clean_files_save
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2941 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2942 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2943 echo "${ECHO_T}$cross_compiling" >&6; }
2944
2945 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2946 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2947 if { (ac_try="$ac_link"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_link") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2959 # work properly (i.e., refer to `conftest.exe'), while it won't with
2960 # `rm'.
2961 for ac_file in conftest.exe conftest conftest.*; do
2962 test -f "$ac_file" || continue
2963 case $ac_file in
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 break;;
2967 * ) break;;
2968 esac
2969 done
2970 else
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978 rm -f conftest$ac_cv_exeext
2979 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2980 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981
2982 rm -f conftest.$ac_ext
2983 EXEEXT=$ac_cv_exeext
2984 ac_exeext=$EXEEXT
2985 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2986 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2987 if test "${ac_cv_objext+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996
2997 int
2998 main ()
2999 {
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.o conftest.obj
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021 break;;
3022 esac
3023 done
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034
3035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3038 echo "${ECHO_T}$ac_cv_objext" >&6; }
3039 OBJEXT=$ac_cv_objext
3040 ac_objext=$OBJEXT
3041 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3042 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3043 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056 #ifndef __GNUC__
3057 choke me
3058 #endif
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_compiler_gnu=yes
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 ac_compiler_gnu=no
3087 fi
3088
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092 fi
3093 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3095 GCC=`test $ac_compiler_gnu = yes && echo yes`
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_cc_g+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 CFLAGS=""
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151
3152 int
3153 main ()
3154 {
3155
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3177 :
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_g=yes
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3232 fi
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249 fi
3250 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271 char **p;
3272 int i;
3273 {
3274 return p[i];
3275 }
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3277 {
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3284 }
3285
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3306 int
3307 main ()
3308 {
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3335 ac_cv_prog_cc_c89=$ac_arg
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext
3344 test "x$ac_cv_prog_cc_c89" != "xno" && break
3345 done
3346 rm -f conftest.$ac_ext
3347 CC=$ac_save_CC
3348
3349 fi
3350 # AC_CACHE_VAL
3351 case "x$ac_cv_prog_cc_c89" in
3352 x)
3353 { echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6; } ;;
3355 xno)
3356 { echo "$as_me:$LINENO: result: unsupported" >&5
3357 echo "${ECHO_T}unsupported" >&6; } ;;
3358 *)
3359 CC="$CC $ac_cv_prog_cc_c89"
3360 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3362 esac
3363
3364
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 DEPDIR="${am__leading_dot}deps"
3371
3372 ac_config_commands="$ac_config_commands depfiles"
3373
3374
3375 am_make=${MAKE-make}
3376 cat > confinc << 'END'
3377 am__doit:
3378 @echo done
3379 .PHONY: am__doit
3380 END
3381 # If we don't find an include directive, just comment out the code.
3382 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3383 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3384 am__include="#"
3385 am__quote=
3386 _am_result=none
3387 # First try GNU make style include.
3388 echo "include confinc" > confmf
3389 # We grep out `Entering directory' and `Leaving directory'
3390 # messages which can occur if `w' ends up in MAKEFLAGS.
3391 # In particular we don't look at `^make:' because GNU make might
3392 # be invoked under some other name (usually "gmake"), in which
3393 # case it prints its new name instead of `make'.
3394 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395 am__include=include
3396 am__quote=
3397 _am_result=GNU
3398 fi
3399 # Now try BSD make style include.
3400 if test "$am__include" = "#"; then
3401 echo '.include "confinc"' > confmf
3402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403 am__include=.include
3404 am__quote="\""
3405 _am_result=BSD
3406 fi
3407 fi
3408
3409
3410 { echo "$as_me:$LINENO: result: $_am_result" >&5
3411 echo "${ECHO_T}$_am_result" >&6; }
3412 rm -f confinc confmf
3413
3414 # Check whether --enable-dependency-tracking was given.
3415 if test "${enable_dependency_tracking+set}" = set; then
3416 enableval=$enable_dependency_tracking;
3417 fi
3418
3419 if test "x$enable_dependency_tracking" != xno; then
3420 am_depcomp="$ac_aux_dir/depcomp"
3421 AMDEPBACKSLASH='\'
3422 fi
3423 if test "x$enable_dependency_tracking" != xno; then
3424 AMDEP_TRUE=
3425 AMDEP_FALSE='#'
3426 else
3427 AMDEP_TRUE='#'
3428 AMDEP_FALSE=
3429 fi
3430
3431
3432
3433 depcc="$CC" am_compiler_list=
3434
3435 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # in D'.
3446 mkdir conftest.dir
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3450 cd conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3456 # directory.
3457 mkdir sub
3458
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 fi
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3467 #
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3471 : > sub/conftest.c
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3477 done
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3515 fi
3516 fi
3517 done
3518
3519 cd ..
3520 rm -rf conftest.dir
3521 else
3522 am_cv_CC_dependencies_compiler_type=none
3523 fi
3524
3525 fi
3526 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529
3530 if
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535 else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3538 fi
3539
3540
3541
3542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3544 if test "${ac_cv_c_const+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557 /* FIXME: Include the comments suggested by Paul. */
3558 #ifndef __cplusplus
3559 /* Ultrix mips cc rejects this. */
3560 typedef int charset[2];
3561 const charset cs;
3562 /* SunOS 4.1.1 cc rejects this. */
3563 char const *const *pcpcc;
3564 char **ppc;
3565 /* NEC SVR4.0.2 mips cc rejects this. */
3566 struct point {int x, y;};
3567 static struct point const zero = {0,0};
3568 /* AIX XL C 1.02.0.0 rejects this.
3569 It does not let you subtract one const X* pointer from another in
3570 an arm of an if-expression whose if-part is not a constant
3571 expression */
3572 const char *g = "string";
3573 pcpcc = &g + (g ? g-g : 0);
3574 /* HPUX 7.0 cc rejects these. */
3575 ++pcpcc;
3576 ppc = (char**) pcpcc;
3577 pcpcc = (char const *const *) ppc;
3578 { /* SCO 3.2v4 cc rejects this. */
3579 char *t;
3580 char const *s = 0 ? (char *) 0 : (char const *) 0;
3581
3582 *t++ = 0;
3583 if (s) return 0;
3584 }
3585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586 int x[] = {25, 17};
3587 const int *foo = &x[0];
3588 ++foo;
3589 }
3590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591 typedef const int *iptr;
3592 iptr p = 0;
3593 ++p;
3594 }
3595 { /* AIX XL C 1.02.0.0 rejects this saying
3596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597 struct s { int j; const int *ap[3]; };
3598 struct s *b; b->j = 5;
3599 }
3600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601 const int foo = 10;
3602 if (!foo) return 0;
3603 }
3604 return !cs[0] && !zero.x;
3605 #endif
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_c_const=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_c_const=no
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3640 if test $ac_cv_c_const = no; then
3641
3642 cat >>confdefs.h <<\_ACEOF
3643 #define const
3644 _ACEOF
3645
3646 fi
3647
3648 { echo "$as_me:$LINENO: checking for inline" >&5
3649 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3650 if test "${ac_cv_c_inline+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 ac_cv_c_inline=no
3654 for ac_kw in inline __inline__ __inline; do
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #ifndef __cplusplus
3662 typedef int foo_t;
3663 static $ac_kw foo_t static_foo () {return 0; }
3664 $ac_kw foo_t foo () {return 0; }
3665 #endif
3666
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_cv_c_inline=$ac_kw
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691 fi
3692
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 test "$ac_cv_c_inline" != no && break
3695 done
3696
3697 fi
3698 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3699 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3700
3701
3702 case $ac_cv_c_inline in
3703 inline | yes) ;;
3704 *)
3705 case $ac_cv_c_inline in
3706 no) ac_val=;;
3707 *) ac_val=$ac_cv_c_inline;;
3708 esac
3709 cat >>confdefs.h <<_ACEOF
3710 #ifndef __cplusplus
3711 #define inline $ac_val
3712 #endif
3713 _ACEOF
3714 ;;
3715 esac
3716
3717
3718
3719 ## ----------------------- ##
3720 ## Libtool initialisation. ##
3721 ## ----------------------- ##
3722
3723
3724 # Check whether --enable-shared was given.
3725 if test "${enable_shared+set}" = set; then
3726 enableval=$enable_shared; p=${PACKAGE-default}
3727 case $enableval in
3728 yes) enable_shared=yes ;;
3729 no) enable_shared=no ;;
3730 *)
3731 enable_shared=no
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734 for pkg in $enableval; do
3735 IFS="$lt_save_ifs"
3736 if test "X$pkg" = "X$p"; then
3737 enable_shared=yes
3738 fi
3739 done
3740 IFS="$lt_save_ifs"
3741 ;;
3742 esac
3743 else
3744 enable_shared=yes
3745 fi
3746
3747
3748 # Check whether --enable-static was given.
3749 if test "${enable_static+set}" = set; then
3750 enableval=$enable_static; p=${PACKAGE-default}
3751 case $enableval in
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3754 *)
3755 enable_static=no
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3759 IFS="$lt_save_ifs"
3760 if test "X$pkg" = "X$p"; then
3761 enable_static=yes
3762 fi
3763 done
3764 IFS="$lt_save_ifs"
3765 ;;
3766 esac
3767 else
3768 enable_static=yes
3769 fi
3770
3771
3772 # Check whether --enable-fast-install was given.
3773 if test "${enable_fast_install+set}" = set; then
3774 enableval=$enable_fast_install; p=${PACKAGE-default}
3775 case $enableval in
3776 yes) enable_fast_install=yes ;;
3777 no) enable_fast_install=no ;;
3778 *)
3779 enable_fast_install=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3783 IFS="$lt_save_ifs"
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install=yes
3786 fi
3787 done
3788 IFS="$lt_save_ifs"
3789 ;;
3790 esac
3791 else
3792 enable_fast_install=yes
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3849 else
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3854 fi
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3881 if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 # Loop through the user's path and test for sed and gsed.
3885 # Then use that list of sed's as ones to test for truncation.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895 fi
3896 done
3897 done
3898 done
3899 IFS=$as_save_IFS
3900 lt_ac_max=0
3901 lt_ac_count=0
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev/null > conftest.in
3907 lt_ac_count=0
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911 lt_cv_path_SED=$lt_ac_sed
3912 break
3913 fi
3914 while true; do
3915 cat conftest.in conftest.in >conftest.tmp
3916 mv conftest.tmp conftest.in
3917 cp conftest.in conftest.nl
3918 echo >>conftest.nl
3919 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920 cmp -s conftest.out conftest.nl || break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max=$lt_ac_count
3926 lt_cv_path_SED=$lt_ac_sed
3927 fi
3928 done
3929 done
3930
3931 fi
3932
3933 SED=$lt_cv_path_SED
3934
3935 { echo "$as_me:$LINENO: result: $SED" >&5
3936 echo "${ECHO_T}$SED" >&6; }
3937
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953 do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965 *)
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3969 do
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3981 fi
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3987
3988
3989 $ac_path_GREP_found && break 3
3990 done
3991 done
3992
3993 done
3994 IFS=$as_save_IFS
3995
3996
3997 fi
3998
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004 fi
4005
4006 else
4007 ac_cv_path_GREP=$GREP
4008 fi
4009
4010
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4015
4016
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4047 *)
4048 ac_count=0
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070
4071 $ac_path_EGREP_found && break 3
4072 done
4073 done
4074
4075 done
4076 IFS=$as_save_IFS
4077
4078
4079 fi
4080
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4086 fi
4087
4088 else
4089 ac_cv_path_EGREP=$EGREP
4090 fi
4091
4092
4093 fi
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4098
4099
4100
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then
4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4104 else
4105 with_gnu_ld=no
4106 fi
4107
4108 ac_prog=ld
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117 *)
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4130 ;;
4131 "")
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4134 ;;
4135 *)
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4138 ;;
4139 esac
4140 elif test "$with_gnu_ld" = yes; then
4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4143 else
4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4146 fi
4147 if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4163 ;;
4164 *)
4165 test "$with_gnu_ld" != yes && break
4166 ;;
4167 esac
4168 fi
4169 done
4170 IFS="$lt_save_ifs"
4171 else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173 fi
4174 fi
4175
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6; }
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 fi
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 lt_cv_prog_gnu_ld=yes
4196 ;;
4197 *)
4198 lt_cv_prog_gnu_ld=no
4199 ;;
4200 esac
4201 fi
4202 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4204 with_gnu_ld=$lt_cv_prog_gnu_ld
4205
4206
4207 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4209 if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 lt_cv_ld_reload_flag='-r'
4213 fi
4214 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4216 reload_flag=$lt_cv_ld_reload_flag
4217 case $reload_flag in
4218 "" | " "*) ;;
4219 *) reload_flag=" $reload_flag" ;;
4220 esac
4221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222 case $host_os in
4223 darwin*)
4224 if test "$GCC" = yes; then
4225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4226 else
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4228 fi
4229 ;;
4230 esac
4231
4232 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4234 if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4239 lt_cv_path_NM="$NM"
4240 else
4241 lt_nm_to_check="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check="$lt_nm_to_check nm"
4244 fi
4245 for lt_tmp_nm in $lt_nm_to_check; do
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4248 IFS="$lt_save_ifs"
4249 test -z "$ac_dir" && ac_dir=.
4250 tmp_nm="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev/null* | *'Invalid file or object type'*)
4258 lt_cv_path_NM="$tmp_nm -B"
4259 break
4260 ;;
4261 *)
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4263 */dev/null*)
4264 lt_cv_path_NM="$tmp_nm -p"
4265 break
4266 ;;
4267 *)
4268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4270 ;;
4271 esac
4272 ;;
4273 esac
4274 fi
4275 done
4276 IFS="$lt_save_ifs"
4277 done
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4279 fi
4280 fi
4281 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4283 NM="$lt_cv_path_NM"
4284
4285 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4286 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4287 LN_S=$as_ln_s
4288 if test "$LN_S" = "ln -s"; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4293 echo "${ECHO_T}no, using $LN_S" >&6; }
4294 fi
4295
4296 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4297 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4298 if test "${lt_cv_deplibs_check_method+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 lt_cv_file_magic_cmd='$MAGIC_CMD'
4302 lt_cv_file_magic_test_file=
4303 lt_cv_deplibs_check_method='unknown'
4304 # Need to set the preceding variable on all platforms that support
4305 # interlibrary dependencies.
4306 # 'none' -- dependencies not supported.
4307 # `unknown' -- same as none, but documents that we really don't know.
4308 # 'pass_all' -- all dependencies passed with no checks.
4309 # 'test_compile' -- check by making test program.
4310 # 'file_magic [[regex]]' -- check by looking for files in library path
4311 # which responds to the $file_magic_cmd with a given extended regex.
4312 # If you have `file' or equivalent on your system and you're not sure
4313 # whether `pass_all' will *always* work, you probably want this one.
4314
4315 case $host_os in
4316 aix4* | aix5*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320 beos*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324 bsdi[45]*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file=/shlib/libc.so
4328 ;;
4329
4330 cygwin*)
4331 # func_win32_libid is a shell function defined in ltmain.sh
4332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd='func_win32_libid'
4334 ;;
4335
4336 mingw* | pw32*)
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
4338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339 # unless we find 'file', for example because we are cross-compiling.
4340 if ( file / ) >/dev/null 2>&1; then
4341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4342 lt_cv_file_magic_cmd='func_win32_libid'
4343 else
4344 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4345 lt_cv_file_magic_cmd='$OBJDUMP -f'
4346 fi
4347 ;;
4348
4349 darwin* | rhapsody*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352
4353 freebsd* | dragonfly*)
4354 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4355 case $host_cpu in
4356 i*86 )
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362 ;;
4363 esac
4364 else
4365 lt_cv_deplibs_check_method=pass_all
4366 fi
4367 ;;
4368
4369 gnu*)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372
4373 hpux10.20* | hpux11*)
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 case $host_cpu in
4376 ia64*)
4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4379 ;;
4380 hppa*64*)
4381 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]'
4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4383 ;;
4384 *)
4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4387 ;;
4388 esac
4389 ;;
4390
4391 interix[3-9]*)
4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4394 ;;
4395
4396 irix5* | irix6* | nonstopux*)
4397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
4402 esac
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406 # This must be Linux ELF.
4407 linux* | k*bsd*-gnu)
4408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411 netbsd* | netbsdelf*-gnu)
4412 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4414 else
4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4416 fi
4417 ;;
4418
4419 newos6*)
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4423 ;;
4424
4425 nto-qnx*)
4426 lt_cv_deplibs_check_method=unknown
4427 ;;
4428
4429 openbsd*)
4430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4432 else
4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4434 fi
4435 ;;
4436
4437 osf3* | osf4* | osf5*)
4438 lt_cv_deplibs_check_method=pass_all
4439 ;;
4440
4441 rdos*)
4442 lt_cv_deplibs_check_method=pass_all
4443 ;;
4444
4445 solaris*)
4446 lt_cv_deplibs_check_method=pass_all
4447 ;;
4448
4449 sysv4 | sysv4.3*)
4450 case $host_vendor in
4451 motorola)
4452 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]'
4453 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4454 ;;
4455 ncr)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458 sequent)
4459 lt_cv_file_magic_cmd='/bin/file'
4460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4461 ;;
4462 sni)
4463 lt_cv_file_magic_cmd='/bin/file'
4464 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4465 lt_cv_file_magic_test_file=/lib/libc.so
4466 ;;
4467 siemens)
4468 lt_cv_deplibs_check_method=pass_all
4469 ;;
4470 pc)
4471 lt_cv_deplibs_check_method=pass_all
4472 ;;
4473 esac
4474 ;;
4475
4476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
4479 esac
4480
4481 fi
4482 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4483 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4484 file_magic_cmd=$lt_cv_file_magic_cmd
4485 deplibs_check_method=$lt_cv_deplibs_check_method
4486 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4487
4488
4489
4490
4491 # If no C compiler was specified, use CC.
4492 LTCC=${LTCC-"$CC"}
4493
4494 # If no C compiler flags were specified, use CFLAGS.
4495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4496
4497 # Allow CC to be a program name with arguments.
4498 compiler=$CC
4499
4500 # Check whether --enable-libtool-lock was given.
4501 if test "${enable_libtool_lock+set}" = set; then
4502 enableval=$enable_libtool_lock;
4503 fi
4504
4505 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4506
4507 # Some flags need to be propagated to the compiler or linker for good
4508 # libtool support.
4509 case $host in
4510 ia64-*-hpux*)
4511 # Find out which ABI we are using.
4512 echo 'int i;' > conftest.$ac_ext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; then
4518 case `/usr/bin/file conftest.$ac_objext` in
4519 *ELF-32*)
4520 HPUX_IA64_MODE="32"
4521 ;;
4522 *ELF-64*)
4523 HPUX_IA64_MODE="64"
4524 ;;
4525 esac
4526 fi
4527 rm -rf conftest*
4528 ;;
4529 *-*-irix6*)
4530 # Find out which ABI we are using.
4531 echo '#line 4531 "configure"' > conftest.$ac_ext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; then
4537 if test "$lt_cv_prog_gnu_ld" = yes; then
4538 case `/usr/bin/file conftest.$ac_objext` in
4539 *32-bit*)
4540 LD="${LD-ld} -melf32bsmip"
4541 ;;
4542 *N32*)
4543 LD="${LD-ld} -melf32bmipn32"
4544 ;;
4545 *64-bit*)
4546 LD="${LD-ld} -melf64bmip"
4547 ;;
4548 esac
4549 else
4550 case `/usr/bin/file conftest.$ac_objext` in
4551 *32-bit*)
4552 LD="${LD-ld} -32"
4553 ;;
4554 *N32*)
4555 LD="${LD-ld} -n32"
4556 ;;
4557 *64-bit*)
4558 LD="${LD-ld} -64"
4559 ;;
4560 esac
4561 fi
4562 fi
4563 rm -rf conftest*
4564 ;;
4565
4566 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4567 s390*-*linux*|sparc*-*linux*)
4568 # Find out which ABI we are using.
4569 echo 'int i;' > conftest.$ac_ext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; then
4575 case `/usr/bin/file conftest.o` in
4576 *32-bit*)
4577 case $host in
4578 x86_64-*kfreebsd*-gnu)
4579 LD="${LD-ld} -m elf_i386_fbsd"
4580 ;;
4581 x86_64-*linux*)
4582 LD="${LD-ld} -m elf_i386"
4583 ;;
4584 ppc64-*linux*|powerpc64-*linux*)
4585 LD="${LD-ld} -m elf32ppclinux"
4586 ;;
4587 s390x-*linux*)
4588 LD="${LD-ld} -m elf_s390"
4589 ;;
4590 sparc64-*linux*)
4591 LD="${LD-ld} -m elf32_sparc"
4592 ;;
4593 esac
4594 ;;
4595 *64-bit*)
4596 case $host in
4597 x86_64-*kfreebsd*-gnu)
4598 LD="${LD-ld} -m elf_x86_64_fbsd"
4599 ;;
4600 x86_64-*linux*)
4601 LD="${LD-ld} -m elf_x86_64"
4602 ;;
4603 ppc*-*linux*|powerpc*-*linux*)
4604 LD="${LD-ld} -m elf64ppc"
4605 ;;
4606 s390*-*linux*)
4607 LD="${LD-ld} -m elf64_s390"
4608 ;;
4609 sparc*-*linux*)
4610 LD="${LD-ld} -m elf64_sparc"
4611 ;;
4612 esac
4613 ;;
4614 esac
4615 fi
4616 rm -rf conftest*
4617 ;;
4618
4619 *-*-sco3.2v5*)
4620 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -belf"
4623 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4624 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4625 if test "${lt_cv_cc_needs_belf+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640
4641 int
4642 main ()
4643 {
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (ac_try="$ac_link"
4651 case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_link") 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && {
4663 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 } && test -s conftest$ac_exeext &&
4666 $as_test_x conftest$ac_exeext; then
4667 lt_cv_cc_needs_belf=yes
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 lt_cv_cc_needs_belf=no
4673 fi
4674
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676 conftest$ac_exeext conftest.$ac_ext
4677 ac_ext=c
4678 ac_cpp='$CPP $CPPFLAGS'
4679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
4683 fi
4684 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4685 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4688 CFLAGS="$SAVE_CFLAGS"
4689 fi
4690 ;;
4691 sparc*-*solaris*)
4692 # Find out which ABI we are using.
4693 echo 'int i;' > conftest.$ac_ext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; then
4699 case `/usr/bin/file conftest.o` in
4700 *64-bit*)
4701 case $lt_cv_prog_gnu_ld in
4702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4703 *) LD="${LD-ld} -64" ;;
4704 esac
4705 ;;
4706 esac
4707 fi
4708 rm -rf conftest*
4709 ;;
4710
4711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$DLLTOOL"; then
4721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 DLLTOOL=$ac_cv_prog_DLLTOOL
4741 if test -n "$DLLTOOL"; then
4742 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4743 echo "${ECHO_T}$DLLTOOL" >&6; }
4744 else
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4747 fi
4748
4749
4750 fi
4751 if test -z "$ac_cv_prog_DLLTOOL"; then
4752 ac_ct_DLLTOOL=$DLLTOOL
4753 # Extract the first word of "dlltool", so it can be a program name with args.
4754 set dummy dlltool; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$ac_ct_DLLTOOL"; then
4761 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4781 if test -n "$ac_ct_DLLTOOL"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4783 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4784 else
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 fi
4788
4789 if test "x$ac_ct_DLLTOOL" = x; then
4790 DLLTOOL="false"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 DLLTOOL=$ac_ct_DLLTOOL
4803 fi
4804 else
4805 DLLTOOL="$ac_cv_prog_DLLTOOL"
4806 fi
4807
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}as; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_AS+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 if test -n "$AS"; then
4817 ac_cv_prog_AS="$AS" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_AS="${ac_tool_prefix}as"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 AS=$ac_cv_prog_AS
4837 if test -n "$AS"; then
4838 { echo "$as_me:$LINENO: result: $AS" >&5
4839 echo "${ECHO_T}$AS" >&6; }
4840 else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$ac_cv_prog_AS"; then
4848 ac_ct_AS=$AS
4849 # Extract the first word of "as", so it can be a program name with args.
4850 set dummy as; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 if test -n "$ac_ct_AS"; then
4857 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_AS="as"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4877 if test -n "$ac_ct_AS"; then
4878 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4879 echo "${ECHO_T}$ac_ct_AS" >&6; }
4880 else
4881 { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885 if test "x$ac_ct_AS" = x; then
4886 AS="false"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet. If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&5
4893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894 whose name does not start with the host triplet. If you think this
4895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 AS=$ac_ct_AS
4899 fi
4900 else
4901 AS="$ac_cv_prog_AS"
4902 fi
4903
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 if test -n "$OBJDUMP"; then
4913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 OBJDUMP=$ac_cv_prog_OBJDUMP
4933 if test -n "$OBJDUMP"; then
4934 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4935 echo "${ECHO_T}$OBJDUMP" >&6; }
4936 else
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 fi
4943 if test -z "$ac_cv_prog_OBJDUMP"; then
4944 ac_ct_OBJDUMP=$OBJDUMP
4945 # Extract the first word of "objdump", so it can be a program name with args.
4946 set dummy objdump; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4973 if test -n "$ac_ct_OBJDUMP"; then
4974 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4975 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4976 else
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 fi
4980
4981 if test "x$ac_ct_OBJDUMP" = x; then
4982 OBJDUMP="false"
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4987 whose name does not start with the host triplet. If you think this
4988 configuration is useful to you, please write to autoconf@gnu.org." >&5
4989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4990 whose name does not start with the host triplet. If you think this
4991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 OBJDUMP=$ac_ct_OBJDUMP
4995 fi
4996 else
4997 OBJDUMP="$ac_cv_prog_OBJDUMP"
4998 fi
4999
5000 ;;
5001
5002 esac
5003
5004 need_locks="$enable_libtool_lock"
5005
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5016 CPP=
5017 fi
5018 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 do
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5027 do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045 Syntax error
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 }; then
5063 :
5064 else
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 # Broken: fails on valid input.
5069 continue
5070 fi
5071
5072 rm -f conftest.err conftest.$ac_ext
5073
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <ac_nonexistent.h>
5083 _ACEOF
5084 if { (ac_try="$ac_cpp conftest.$ac_ext"
5085 case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088 esac
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } >/dev/null && {
5097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 }; then
5100 # Broken: success on invalid input.
5101 continue
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106 # Passes both tests.
5107 ac_preproc_ok=:
5108 break
5109 fi
5110
5111 rm -f conftest.err conftest.$ac_ext
5112
5113 done
5114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115 rm -f conftest.err conftest.$ac_ext
5116 if $ac_preproc_ok; then
5117 break
5118 fi
5119
5120 done
5121 ac_cv_prog_CPP=$CPP
5122
5123 fi
5124 CPP=$ac_cv_prog_CPP
5125 else
5126 ac_cv_prog_CPP=$CPP
5127 fi
5128 { echo "$as_me:$LINENO: result: $CPP" >&5
5129 echo "${ECHO_T}$CPP" >&6; }
5130 ac_preproc_ok=false
5131 for ac_c_preproc_warn_flag in '' yes
5132 do
5133 # Use a header file that comes with gcc, so configuring glibc
5134 # with a fresh cross-compiler works.
5135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 # <limits.h> exists even on freestanding compilers.
5137 # On the NeXT, cc -E runs the code through the compiler's parser,
5138 # not just through cpp. "Syntax error" is here to catch this case.
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #ifdef __STDC__
5146 # include <limits.h>
5147 #else
5148 # include <assert.h>
5149 #endif
5150 Syntax error
5151 _ACEOF
5152 if { (ac_try="$ac_cpp conftest.$ac_ext"
5153 case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } >/dev/null && {
5165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5167 }; then
5168 :
5169 else
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 # Broken: fails on valid input.
5174 continue
5175 fi
5176
5177 rm -f conftest.err conftest.$ac_ext
5178
5179 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <ac_nonexistent.h>
5188 _ACEOF
5189 if { (ac_try="$ac_cpp conftest.$ac_ext"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null && {
5202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 }; then
5205 # Broken: success on invalid input.
5206 continue
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 # Passes both tests.
5212 ac_preproc_ok=:
5213 break
5214 fi
5215
5216 rm -f conftest.err conftest.$ac_ext
5217
5218 done
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok; then
5222 :
5223 else
5224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228 { (exit 1); exit 1; }; }
5229 fi
5230
5231 ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237
5238 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <stdlib.h>
5250 #include <stdarg.h>
5251 #include <string.h>
5252 #include <float.h>
5253
5254 int
5255 main ()
5256 {
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_compile") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && {
5276 test -z "$ac_c_werror_flag" ||
5277 test ! -s conftest.err
5278 } && test -s conftest.$ac_objext; then
5279 ac_cv_header_stdc=yes
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 ac_cv_header_stdc=no
5285 fi
5286
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288
5289 if test $ac_cv_header_stdc = yes; then
5290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <string.h>
5298
5299 _ACEOF
5300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 $EGREP "memchr" >/dev/null 2>&1; then
5302 :
5303 else
5304 ac_cv_header_stdc=no
5305 fi
5306 rm -f conftest*
5307
5308 fi
5309
5310 if test $ac_cv_header_stdc = yes; then
5311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 #include <stdlib.h>
5319
5320 _ACEOF
5321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5322 $EGREP "free" >/dev/null 2>&1; then
5323 :
5324 else
5325 ac_cv_header_stdc=no
5326 fi
5327 rm -f conftest*
5328
5329 fi
5330
5331 if test $ac_cv_header_stdc = yes; then
5332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5333 if test "$cross_compiling" = yes; then
5334 :
5335 else
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #include <ctype.h>
5343 #include <stdlib.h>
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 #else
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #endif
5354
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356 int
5357 main ()
5358 {
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 return 2;
5364 return 0;
5365 }
5366 _ACEOF
5367 rm -f conftest$ac_exeext
5368 if { (ac_try="$ac_link"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5378 { (case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_try") 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 :
5388 else
5389 echo "$as_me: program exited with status $ac_status" >&5
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ( exit $ac_status )
5394 ac_cv_header_stdc=no
5395 fi
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5397 fi
5398
5399
5400 fi
5401 fi
5402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5404 if test $ac_cv_header_stdc = yes; then
5405
5406 cat >>confdefs.h <<\_ACEOF
5407 #define STDC_HEADERS 1
5408 _ACEOF
5409
5410 fi
5411
5412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423 inttypes.h stdint.h unistd.h
5424 do
5425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5438
5439 #include <$ac_header>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.$ac_objext; then
5458 eval "$as_ac_Header=yes"
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 eval "$as_ac_Header=no"
5464 fi
5465
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 ac_res=`eval echo '${'$as_ac_Header'}'`
5469 { echo "$as_me:$LINENO: result: $ac_res" >&5
5470 echo "${ECHO_T}$ac_res" >&6; }
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 _ACEOF
5475
5476 fi
5477
5478 done
5479
5480
5481
5482 for ac_header in dlfcn.h
5483 do
5484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 fi
5491 ac_res=`eval echo '${'$as_ac_Header'}'`
5492 { echo "$as_me:$LINENO: result: $ac_res" >&5
5493 echo "${ECHO_T}$ac_res" >&6; }
5494 else
5495 # Is the header compilable?
5496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 #include <$ac_header>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 ac_header_compiler=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_header_compiler=no
5530 fi
5531
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534 echo "${ECHO_T}$ac_header_compiler" >&6; }
5535
5536 # Is the header present?
5537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <$ac_header>
5546 _ACEOF
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null && {
5560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 }; then
5563 ac_header_preproc=yes
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5567
5568 ac_header_preproc=no
5569 fi
5570
5571 rm -f conftest.err conftest.$ac_ext
5572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5573 echo "${ECHO_T}$ac_header_preproc" >&6; }
5574
5575 # So? What about this header?
5576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5577 yes:no: )
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5582 ac_header_preproc=yes
5583 ;;
5584 no:yes:* )
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5597 ( cat <<\_ASBOX
5598 ## ---------------------------------- ##
5599 ## Report this to bug-libtool@gnu.org ##
5600 ## ---------------------------------- ##
5601 _ASBOX
5602 ) | sed "s/^/$as_me: WARNING: /" >&2
5603 ;;
5604 esac
5605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 eval "$as_ac_Header=\$ac_header_preproc"
5611 fi
5612 ac_res=`eval echo '${'$as_ac_Header'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614 echo "${ECHO_T}$ac_res" >&6; }
5615
5616 fi
5617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5618 cat >>confdefs.h <<_ACEOF
5619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5620 _ACEOF
5621
5622 fi
5623
5624 done
5625
5626 ac_ext=cpp
5627 ac_cpp='$CXXCPP $CPPFLAGS'
5628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631 if test -z "$CXX"; then
5632 if test -n "$CCC"; then
5633 CXX=$CCC
5634 else
5635 if test -n "$ac_tool_prefix"; then
5636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5637 do
5638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642 if test "${ac_cv_prog_CXX+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 if test -n "$CXX"; then
5646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 CXX=$ac_cv_prog_CXX
5666 if test -n "$CXX"; then
5667 { echo "$as_me:$LINENO: result: $CXX" >&5
5668 echo "${ECHO_T}$CXX" >&6; }
5669 else
5670 { echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6; }
5672 fi
5673
5674
5675 test -n "$CXX" && break
5676 done
5677 fi
5678 if test -z "$CXX"; then
5679 ac_ct_CXX=$CXX
5680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5681 do
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test -n "$ac_ct_CXX"; then
5690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_ac_ct_CXX="$ac_prog"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703 done
5704 done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5710 if test -n "$ac_ct_CXX"; then
5711 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5712 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5713 else
5714 { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5716 fi
5717
5718
5719 test -n "$ac_ct_CXX" && break
5720 done
5721
5722 if test "x$ac_ct_CXX" = x; then
5723 CXX="g++"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5728 whose name does not start with the host triplet. If you think this
5729 configuration is useful to you, please write to autoconf@gnu.org." >&5
5730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5733 ac_tool_warned=yes ;;
5734 esac
5735 CXX=$ac_ct_CXX
5736 fi
5737 fi
5738
5739 fi
5740 fi
5741 # Provide some information about the compiler.
5742 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5743 ac_compiler=`set X $ac_compile; echo $2`
5744 { (ac_try="$ac_compiler --version >&5"
5745 case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler --version >&5") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754 { (ac_try="$ac_compiler -v >&5"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_compiler -v >&5") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }
5764 { (ac_try="$ac_compiler -V >&5"
5765 case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler -V >&5") 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5774
5775 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5776 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786
5787 int
5788 main ()
5789 {
5790 #ifndef __GNUC__
5791 choke me
5792 #endif
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_cxx_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_compiler_gnu=yes
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 ac_compiler_gnu=no
5821 fi
5822
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5825
5826 fi
5827 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5828 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5829 GXX=`test $ac_compiler_gnu = yes && echo yes`
5830 ac_test_CXXFLAGS=${CXXFLAGS+set}
5831 ac_save_CXXFLAGS=$CXXFLAGS
5832 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5833 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5834 if test "${ac_cv_prog_cxx_g+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5838 ac_cxx_werror_flag=yes
5839 ac_cv_prog_cxx_g=no
5840 CXXFLAGS="-g"
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847
5848 int
5849 main ()
5850 {
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (ac_try="$ac_compile"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5873 ac_cv_prog_cxx_g=yes
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 CXXFLAGS=""
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885
5886 int
5887 main ()
5888 {
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_cxx_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_objext; then
5911 :
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917 CXXFLAGS="-g"
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924
5925 int
5926 main ()
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_prog_cxx_g=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5966 fi
5967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969 if test "$ac_test_CXXFLAGS" = set; then
5970 CXXFLAGS=$ac_save_CXXFLAGS
5971 elif test $ac_cv_prog_cxx_g = yes; then
5972 if test "$GXX" = yes; then
5973 CXXFLAGS="-g -O2"
5974 else
5975 CXXFLAGS="-g"
5976 fi
5977 else
5978 if test "$GXX" = yes; then
5979 CXXFLAGS="-O2"
5980 else
5981 CXXFLAGS=
5982 fi
5983 fi
5984 ac_ext=cpp
5985 ac_cpp='$CXXCPP $CPPFLAGS'
5986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5989
5990 depcc="$CXX" am_compiler_list=
5991
5992 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5993 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5994 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5998 # We make a subdir and do the tests there. Otherwise we can end up
5999 # making bogus files that we don't know about and never remove. For
6000 # instance it was reported that on HP-UX the gcc test will end up
6001 # making a dummy file named `D' -- because `-MD' means `put the output
6002 # in D'.
6003 mkdir conftest.dir
6004 # Copy depcomp to subdir because otherwise we won't find it if we're
6005 # using a relative directory.
6006 cp "$am_depcomp" conftest.dir
6007 cd conftest.dir
6008 # We will build objects and dependencies in a subdirectory because
6009 # it helps to detect inapplicable dependency modes. For instance
6010 # both Tru64's cc and ICC support -MD to output dependencies as a
6011 # side effect of compilation, but ICC will put the dependencies in
6012 # the current directory while Tru64 will put them in the object
6013 # directory.
6014 mkdir sub
6015
6016 am_cv_CXX_dependencies_compiler_type=none
6017 if test "$am_compiler_list" = ""; then
6018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6019 fi
6020 for depmode in $am_compiler_list; do
6021 # Setup a source with many dependencies, because some compilers
6022 # like to wrap large dependency lists on column 80 (with \), and
6023 # we should not choose a depcomp mode which is confused by this.
6024 #
6025 # We need to recreate these files for each test, as the compiler may
6026 # overwrite some of them when testing with obscure command lines.
6027 # This happens at least with the AIX C compiler.
6028 : > sub/conftest.c
6029 for i in 1 2 3 4 5 6; do
6030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6032 # Solaris 8's {/usr,}/bin/sh.
6033 touch sub/conftst$i.h
6034 done
6035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6036
6037 case $depmode in
6038 nosideeffect)
6039 # after this tag, mechanisms are not by side-effect, so they'll
6040 # only be used when explicitly requested
6041 if test "x$enable_dependency_tracking" = xyes; then
6042 continue
6043 else
6044 break
6045 fi
6046 ;;
6047 none) break ;;
6048 esac
6049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6050 # mode. It turns out that the SunPro C++ compiler does not properly
6051 # handle `-M -o', and we need to detect this.
6052 if depmode=$depmode \
6053 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6055 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6056 >/dev/null 2>conftest.err &&
6057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6061 # icc doesn't choke on unknown options, it will just issue warnings
6062 # or remarks (even with -Werror). So we grep stderr for any message
6063 # that says an option was ignored or not supported.
6064 # When given -MP, icc 7.0 and 7.1 complain thusly:
6065 # icc: Command line warning: ignoring option '-M'; no argument required
6066 # The diagnosis changed in icc 8.0:
6067 # icc: Command line remark: option '-MP' not supported
6068 if (grep 'ignoring option' conftest.err ||
6069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6070 am_cv_CXX_dependencies_compiler_type=$depmode
6071 break
6072 fi
6073 fi
6074 done
6075
6076 cd ..
6077 rm -rf conftest.dir
6078 else
6079 am_cv_CXX_dependencies_compiler_type=none
6080 fi
6081
6082 fi
6083 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6084 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6085 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6086
6087 if
6088 test "x$enable_dependency_tracking" != xno \
6089 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6090 am__fastdepCXX_TRUE=
6091 am__fastdepCXX_FALSE='#'
6092 else
6093 am__fastdepCXX_TRUE='#'
6094 am__fastdepCXX_FALSE=
6095 fi
6096
6097
6098
6099
6100 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6102 (test "X$CXX" != "Xg++"))) ; then
6103 ac_ext=cpp
6104 ac_cpp='$CXXCPP $CPPFLAGS'
6105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6108 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6109 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6110 if test -z "$CXXCPP"; then
6111 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 # Double quotes because CXXCPP needs to be expanded
6115 for CXXCPP in "$CXX -E" "/lib/cpp"
6116 do
6117 ac_preproc_ok=false
6118 for ac_cxx_preproc_warn_flag in '' yes
6119 do
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #ifdef __STDC__
6133 # include <limits.h>
6134 #else
6135 # include <assert.h>
6136 #endif
6137 Syntax error
6138 _ACEOF
6139 if { (ac_try="$ac_cpp conftest.$ac_ext"
6140 case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146 ac_status=$?
6147 grep -v '^ *+' conftest.er1 >conftest.err
6148 rm -f conftest.er1
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null && {
6152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6153 test ! -s conftest.err
6154 }; then
6155 :
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6159
6160 # Broken: fails on valid input.
6161 continue
6162 fi
6163
6164 rm -f conftest.err conftest.$ac_ext
6165
6166 # OK, works on sane cases. Now check whether nonexistent headers
6167 # can be detected and how.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <ac_nonexistent.h>
6175 _ACEOF
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null && {
6189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6190 test ! -s conftest.err
6191 }; then
6192 # Broken: success on invalid input.
6193 continue
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 # Passes both tests.
6199 ac_preproc_ok=:
6200 break
6201 fi
6202
6203 rm -f conftest.err conftest.$ac_ext
6204
6205 done
6206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6207 rm -f conftest.err conftest.$ac_ext
6208 if $ac_preproc_ok; then
6209 break
6210 fi
6211
6212 done
6213 ac_cv_prog_CXXCPP=$CXXCPP
6214
6215 fi
6216 CXXCPP=$ac_cv_prog_CXXCPP
6217 else
6218 ac_cv_prog_CXXCPP=$CXXCPP
6219 fi
6220 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6221 echo "${ECHO_T}$CXXCPP" >&6; }
6222 ac_preproc_ok=false
6223 for ac_cxx_preproc_warn_flag in '' yes
6224 do
6225 # Use a header file that comes with gcc, so configuring glibc
6226 # with a fresh cross-compiler works.
6227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 # <limits.h> exists even on freestanding compilers.
6229 # On the NeXT, cc -E runs the code through the compiler's parser,
6230 # not just through cpp. "Syntax error" is here to catch this case.
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #ifdef __STDC__
6238 # include <limits.h>
6239 #else
6240 # include <assert.h>
6241 #endif
6242 Syntax error
6243 _ACEOF
6244 if { (ac_try="$ac_cpp conftest.$ac_ext"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6258 test ! -s conftest.err
6259 }; then
6260 :
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 # Broken: fails on valid input.
6266 continue
6267 fi
6268
6269 rm -f conftest.err conftest.$ac_ext
6270
6271 # OK, works on sane cases. Now check whether nonexistent headers
6272 # can be detected and how.
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <ac_nonexistent.h>
6280 _ACEOF
6281 if { (ac_try="$ac_cpp conftest.$ac_ext"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null && {
6294 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6295 test ! -s conftest.err
6296 }; then
6297 # Broken: success on invalid input.
6298 continue
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 # Passes both tests.
6304 ac_preproc_ok=:
6305 break
6306 fi
6307
6308 rm -f conftest.err conftest.$ac_ext
6309
6310 done
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok; then
6314 :
6315 else
6316 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320 { (exit 1); exit 1; }; }
6321 fi
6322
6323 ac_ext=cpp
6324 ac_cpp='$CXXCPP $CPPFLAGS'
6325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6328
6329 fi
6330
6331
6332 ac_ext=f
6333 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6334 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6336 if test -n "$ac_tool_prefix"; then
6337 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6338 do
6339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_prog_F77+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$F77"; then
6347 ac_cv_prog_F77="$F77" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 F77=$ac_cv_prog_F77
6367 if test -n "$F77"; then
6368 { echo "$as_me:$LINENO: result: $F77" >&5
6369 echo "${ECHO_T}$F77" >&6; }
6370 else
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6373 fi
6374
6375
6376 test -n "$F77" && break
6377 done
6378 fi
6379 if test -z "$F77"; then
6380 ac_ct_F77=$F77
6381 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6382 do
6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy $ac_prog; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 if test -n "$ac_ct_F77"; then
6391 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_F77="$ac_prog"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6411 if test -n "$ac_ct_F77"; then
6412 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6413 echo "${ECHO_T}$ac_ct_F77" >&6; }
6414 else
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6417 fi
6418
6419
6420 test -n "$ac_ct_F77" && break
6421 done
6422
6423 if test "x$ac_ct_F77" = x; then
6424 F77=""
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6429 whose name does not start with the host triplet. If you think this
6430 configuration is useful to you, please write to autoconf@gnu.org." >&5
6431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6432 whose name does not start with the host triplet. If you think this
6433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 F77=$ac_ct_F77
6437 fi
6438 fi
6439
6440
6441 # Provide some information about the compiler.
6442 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6443 ac_compiler=`set X $ac_compile; echo $2`
6444 { (ac_try="$ac_compiler --version >&5"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454 { (ac_try="$ac_compiler -v >&5"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try="$ac_compiler -V >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6474 rm -f a.out
6475
6476 # If we don't use `.F' as extension, the preprocessor is not run on the
6477 # input file. (Note that this only needs to work for GNU compilers.)
6478 ac_save_ext=$ac_ext
6479 ac_ext=F
6480 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6481 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6482 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 cat >conftest.$ac_ext <<_ACEOF
6486 program main
6487 #ifndef __GNUC__
6488 choke me
6489 #endif
6490
6491 end
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_f77_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_compiler_gnu=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_compiler_gnu=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6520
6521 fi
6522 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6523 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6524 ac_ext=$ac_save_ext
6525 ac_test_FFLAGS=${FFLAGS+set}
6526 ac_save_FFLAGS=$FFLAGS
6527 FFLAGS=
6528 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6529 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_f77_g+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 FFLAGS=-g
6534 cat >conftest.$ac_ext <<_ACEOF
6535 program main
6536
6537 end
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_f77_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_prog_f77_g=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_cv_prog_f77_g=no
6562 fi
6563
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565
6566 fi
6567 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6568 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6569 if test "$ac_test_FFLAGS" = set; then
6570 FFLAGS=$ac_save_FFLAGS
6571 elif test $ac_cv_prog_f77_g = yes; then
6572 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6573 FFLAGS="-g -O2"
6574 else
6575 FFLAGS="-g"
6576 fi
6577 else
6578 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6579 FFLAGS="-O2"
6580 else
6581 FFLAGS=
6582 fi
6583 fi
6584
6585 G77=`test $ac_compiler_gnu = yes && echo yes`
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
6592
6593
6594 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6595
6596 # find the maximum length of command line arguments
6597 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6598 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6599 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 i=0
6603 teststring="ABCD"
6604
6605 case $build_os in
6606 msdosdjgpp*)
6607 # On DJGPP, this test can blow up pretty badly due to problems in libc
6608 # (any single argument exceeding 2000 bytes causes a buffer overrun
6609 # during glob expansion). Even if it were fixed, the result of this
6610 # check would be larger than it should be.
6611 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6612 ;;
6613
6614 gnu*)
6615 # Under GNU Hurd, this test is not required because there is
6616 # no limit to the length of command line arguments.
6617 # Libtool will interpret -1 as no limit whatsoever
6618 lt_cv_sys_max_cmd_len=-1;
6619 ;;
6620
6621 cygwin* | mingw*)
6622 # On Win9x/ME, this test blows up -- it succeeds, but takes
6623 # about 5 minutes as the teststring grows exponentially.
6624 # Worse, since 9x/ME are not pre-emptively multitasking,
6625 # you end up with a "frozen" computer, even though with patience
6626 # the test eventually succeeds (with a max line length of 256k).
6627 # Instead, let's just punt: use the minimum linelength reported by
6628 # all of the supported platforms: 8192 (on NT/2K/XP).
6629 lt_cv_sys_max_cmd_len=8192;
6630 ;;
6631
6632 amigaos*)
6633 # On AmigaOS with pdksh, this test takes hours, literally.
6634 # So we just punt and use a minimum line length of 8192.
6635 lt_cv_sys_max_cmd_len=8192;
6636 ;;
6637
6638 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6639 # This has been around since 386BSD, at least. Likely further.
6640 if test -x /sbin/sysctl; then
6641 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6642 elif test -x /usr/sbin/sysctl; then
6643 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6644 else
6645 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6646 fi
6647 # And add a safety zone
6648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6650 ;;
6651
6652 interix*)
6653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6654 lt_cv_sys_max_cmd_len=196608
6655 ;;
6656
6657 osf*)
6658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6660 # nice to cause kernel panics so lets avoid the loop below.
6661 # First set a reasonable default.
6662 lt_cv_sys_max_cmd_len=16384
6663 #
6664 if test -x /sbin/sysconfig; then
6665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6667 esac
6668 fi
6669 ;;
6670 sco3.2v5*)
6671 lt_cv_sys_max_cmd_len=102400
6672 ;;
6673 sysv5* | sco5v6* | sysv4.2uw2*)
6674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6675 if test -n "$kargmax"; then
6676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6677 else
6678 lt_cv_sys_max_cmd_len=32768
6679 fi
6680 ;;
6681 *)
6682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6683 if test -n "$lt_cv_sys_max_cmd_len"; then
6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6686 else
6687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6688 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6689 = "XX$teststring") >/dev/null 2>&1 &&
6690 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6691 lt_cv_sys_max_cmd_len=$new_result &&
6692 test $i != 17 # 1/2 MB should be enough
6693 do
6694 i=`expr $i + 1`
6695 teststring=$teststring$teststring
6696 done
6697 teststring=
6698 # Add a significant safety factor because C++ compilers can tack on massive
6699 # amounts of additional arguments before passing them to the linker.
6700 # It appears as though 1/2 is a usable value.
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6702 fi
6703 ;;
6704 esac
6705
6706 fi
6707
6708 if test -n $lt_cv_sys_max_cmd_len ; then
6709 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6710 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6711 else
6712 { echo "$as_me:$LINENO: result: none" >&5
6713 echo "${ECHO_T}none" >&6; }
6714 fi
6715
6716
6717
6718
6719
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6722 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726
6727 # These are sane defaults that work on at least a few old systems.
6728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729
6730 # Character class describing NM global symbol codes.
6731 symcode='[BCDEGRST]'
6732
6733 # Regexp to match symbols that can be accessed directly from C.
6734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735
6736 # Transform an extracted symbol line into a proper C declaration
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6738
6739 # Transform an extracted symbol line into symbol name and symbol address
6740 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6741
6742 # Define system-specific variables.
6743 case $host_os in
6744 aix*)
6745 symcode='[BCDT]'
6746 ;;
6747 cygwin* | mingw* | pw32*)
6748 symcode='[ABCDGISTW]'
6749 ;;
6750 hpux*) # Its linker distinguishes data from code symbols
6751 if test "$host_cpu" = ia64; then
6752 symcode='[ABCDEGRST]'
6753 fi
6754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6756 ;;
6757 linux* | k*bsd*-gnu)
6758 if test "$host_cpu" = ia64; then
6759 symcode='[ABCDGIRSTW]'
6760 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6761 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6762 fi
6763 ;;
6764 irix* | nonstopux*)
6765 symcode='[BCDEGRST]'
6766 ;;
6767 osf*)
6768 symcode='[BCDEGQRST]'
6769 ;;
6770 solaris*)
6771 symcode='[BDRT]'
6772 ;;
6773 sco3.2v5*)
6774 symcode='[DT]'
6775 ;;
6776 sysv4.2uw2*)
6777 symcode='[DT]'
6778 ;;
6779 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6780 symcode='[ABDT]'
6781 ;;
6782 sysv4)
6783 symcode='[DFNSTU]'
6784 ;;
6785 esac
6786
6787 # Handle CRLF in mingw tool chain
6788 opt_cr=
6789 case $build_os in
6790 mingw*)
6791 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6792 ;;
6793 esac
6794
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798 symcode='[ABCDGIRSTW]' ;;
6799 esac
6800
6801 # Try without a prefix undercore, then with it.
6802 for ac_symprfx in "" "_"; do
6803
6804 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6805 symxfrm="\\1 $ac_symprfx\\2 \\2"
6806
6807 # Write the raw and C identifiers.
6808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6809
6810 # Check to see that the pipe works correctly.
6811 pipe_works=no
6812
6813 rm -f conftest*
6814 cat > conftest.$ac_ext <<EOF
6815 #ifdef __cplusplus
6816 extern "C" {
6817 #endif
6818 char nm_test_var;
6819 void nm_test_func(){}
6820 #ifdef __cplusplus
6821 }
6822 #endif
6823 int main(){nm_test_var='a';nm_test_func();return(0);}
6824 EOF
6825
6826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 (eval $ac_compile) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; then
6831 # Now try to grab the symbols.
6832 nlist=conftest.nm
6833 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6834 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && test -s "$nlist"; then
6838 # Try sorting and uniquifying the output.
6839 if sort "$nlist" | uniq > "$nlist"T; then
6840 mv -f "$nlist"T "$nlist"
6841 else
6842 rm -f "$nlist"T
6843 fi
6844
6845 # Make sure that we snagged all the symbols we need.
6846 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6847 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6848 cat <<EOF > conftest.$ac_ext
6849 #ifdef __cplusplus
6850 extern "C" {
6851 #endif
6852
6853 EOF
6854 # Now generate the symbol file.
6855 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6856
6857 cat <<EOF >> conftest.$ac_ext
6858 #if defined (__STDC__) && __STDC__
6859 # define lt_ptr_t void *
6860 #else
6861 # define lt_ptr_t char *
6862 # define const
6863 #endif
6864
6865 /* The mapping between symbol names and symbols. */
6866 const struct {
6867 const char *name;
6868 lt_ptr_t address;
6869 }
6870 lt_preloaded_symbols[] =
6871 {
6872 EOF
6873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6874 cat <<\EOF >> conftest.$ac_ext
6875 {0, (lt_ptr_t) 0}
6876 };
6877
6878 #ifdef __cplusplus
6879 }
6880 #endif
6881 EOF
6882 # Now try linking the two files.
6883 mv conftest.$ac_objext conftstm.$ac_objext
6884 lt_save_LIBS="$LIBS"
6885 lt_save_CFLAGS="$CFLAGS"
6886 LIBS="conftstm.$ac_objext"
6887 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6893 pipe_works=yes
6894 fi
6895 LIBS="$lt_save_LIBS"
6896 CFLAGS="$lt_save_CFLAGS"
6897 else
6898 echo "cannot find nm_test_func in $nlist" >&5
6899 fi
6900 else
6901 echo "cannot find nm_test_var in $nlist" >&5
6902 fi
6903 else
6904 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6905 fi
6906 else
6907 echo "$progname: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6909 fi
6910 rm -f conftest* conftst*
6911
6912 # Do not use the global_symbol_pipe unless it works.
6913 if test "$pipe_works" = yes; then
6914 break
6915 else
6916 lt_cv_sys_global_symbol_pipe=
6917 fi
6918 done
6919
6920 fi
6921
6922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6923 lt_cv_sys_global_symbol_to_cdecl=
6924 fi
6925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6926 { echo "$as_me:$LINENO: result: failed" >&5
6927 echo "${ECHO_T}failed" >&6; }
6928 else
6929 { echo "$as_me:$LINENO: result: ok" >&5
6930 echo "${ECHO_T}ok" >&6; }
6931 fi
6932
6933 { echo "$as_me:$LINENO: checking for objdir" >&5
6934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6935 if test "${lt_cv_objdir+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 rm -f .libs 2>/dev/null
6939 mkdir .libs 2>/dev/null
6940 if test -d .libs; then
6941 lt_cv_objdir=.libs
6942 else
6943 # MS-DOS does not allow filenames that begin with a dot.
6944 lt_cv_objdir=_libs
6945 fi
6946 rmdir .libs 2>/dev/null
6947 fi
6948 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6949 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6950 objdir=$lt_cv_objdir
6951
6952
6953
6954
6955
6956 case $host_os in
6957 aix3*)
6958 # AIX sometimes has problems with the GCC collect2 program. For some
6959 # reason, if we set the COLLECT_NAMES environment variable, the problems
6960 # vanish in a puff of smoke.
6961 if test "X${COLLECT_NAMES+set}" != Xset; then
6962 COLLECT_NAMES=
6963 export COLLECT_NAMES
6964 fi
6965 ;;
6966 esac
6967
6968 # Sed substitution that helps us do robust quoting. It backslashifies
6969 # metacharacters that are still active within double-quoted strings.
6970 Xsed='sed -e 1s/^X//'
6971 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6972
6973 # Same as above, but do not quote variable references.
6974 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6975
6976 # Sed substitution to delay expansion of an escaped shell variable in a
6977 # double_quote_subst'ed string.
6978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6979
6980 # Sed substitution to avoid accidental globbing in evaled expressions
6981 no_glob_subst='s/\*/\\\*/g'
6982
6983 # Constants:
6984 rm="rm -f"
6985
6986 # Global variables:
6987 default_ofile=libtool
6988 can_build_shared=yes
6989
6990 # All known linkers require a `.a' archive for static linking (except MSVC,
6991 # which needs '.lib').
6992 libext=a
6993 ltmain="$ac_aux_dir/ltmain.sh"
6994 ofile="$default_ofile"
6995 with_gnu_ld="$lt_cv_prog_gnu_ld"
6996
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}ar; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_prog_AR+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 if test -n "$AR"; then
7006 ac_cv_prog_AR="$AR" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_AR="${ac_tool_prefix}ar"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7018 fi
7019 done
7020 done
7021 IFS=$as_save_IFS
7022
7023 fi
7024 fi
7025 AR=$ac_cv_prog_AR
7026 if test -n "$AR"; then
7027 { echo "$as_me:$LINENO: result: $AR" >&5
7028 echo "${ECHO_T}$AR" >&6; }
7029 else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7032 fi
7033
7034
7035 fi
7036 if test -z "$ac_cv_prog_AR"; then
7037 ac_ct_AR=$AR
7038 # Extract the first word of "ar", so it can be a program name with args.
7039 set dummy ar; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 if test -n "$ac_ct_AR"; then
7046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_prog_ac_ct_AR="ar"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7066 if test -n "$ac_ct_AR"; then
7067 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7068 echo "${ECHO_T}$ac_ct_AR" >&6; }
7069 else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074 if test "x$ac_ct_AR" = x; then
7075 AR="false"
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7080 whose name does not start with the host triplet. If you think this
7081 configuration is useful to you, please write to autoconf@gnu.org." >&5
7082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7083 whose name does not start with the host triplet. If you think this
7084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 AR=$ac_ct_AR
7088 fi
7089 else
7090 AR="$ac_cv_prog_AR"
7091 fi
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124 echo "${ECHO_T}$RANLIB" >&6; }
7125 else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165 else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176 whose name does not start with the host triplet. If you think this
7177 configuration is useful to you, please write to autoconf@gnu.org." >&5
7178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179 whose name does not start with the host triplet. If you think this
7180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183 RANLIB=$ac_ct_RANLIB
7184 fi
7185 else
7186 RANLIB="$ac_cv_prog_RANLIB"
7187 fi
7188
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}strip; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_STRIP+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$STRIP"; then
7198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 STRIP=$ac_cv_prog_STRIP
7218 if test -n "$STRIP"; then
7219 { echo "$as_me:$LINENO: result: $STRIP" >&5
7220 echo "${ECHO_T}$STRIP" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7224 fi
7225
7226
7227 fi
7228 if test -z "$ac_cv_prog_STRIP"; then
7229 ac_ct_STRIP=$STRIP
7230 # Extract the first word of "strip", so it can be a program name with args.
7231 set dummy strip; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_STRIP"; then
7238 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_STRIP="strip"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7258 if test -n "$ac_ct_STRIP"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7260 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7264 fi
7265
7266 if test "x$ac_ct_STRIP" = x; then
7267 STRIP=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 STRIP=$ac_ct_STRIP
7280 fi
7281 else
7282 STRIP="$ac_cv_prog_STRIP"
7283 fi
7284
7285
7286 old_CC="$CC"
7287 old_CFLAGS="$CFLAGS"
7288
7289 # Set sane defaults for various variables
7290 test -z "$AR" && AR=ar
7291 test -z "$AR_FLAGS" && AR_FLAGS=cru
7292 test -z "$AS" && AS=as
7293 test -z "$CC" && CC=cc
7294 test -z "$LTCC" && LTCC=$CC
7295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7296 test -z "$DLLTOOL" && DLLTOOL=dlltool
7297 test -z "$LD" && LD=ld
7298 test -z "$LN_S" && LN_S="ln -s"
7299 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7300 test -z "$NM" && NM=nm
7301 test -z "$SED" && SED=sed
7302 test -z "$OBJDUMP" && OBJDUMP=objdump
7303 test -z "$RANLIB" && RANLIB=:
7304 test -z "$STRIP" && STRIP=:
7305 test -z "$ac_objext" && ac_objext=o
7306
7307 # Determine commands to create old-style static archives.
7308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7309 old_postinstall_cmds='chmod 644 $oldlib'
7310 old_postuninstall_cmds=
7311
7312 if test -n "$RANLIB"; then
7313 case $host_os in
7314 openbsd*)
7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7316 ;;
7317 *)
7318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7319 ;;
7320 esac
7321 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7322 fi
7323
7324 for cc_temp in $compiler""; do
7325 case $cc_temp in
7326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7328 \-*) ;;
7329 *) break;;
7330 esac
7331 done
7332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7333
7334
7335 # Only perform the check for file, if the check method requires it
7336 case $deplibs_check_method in
7337 file_magic*)
7338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7339 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7340 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 case $MAGIC_CMD in
7345 [\\/*] | ?:[\\/]*)
7346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 lt_save_MAGIC_CMD="$MAGIC_CMD"
7350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352 for ac_dir in $ac_dummy; do
7353 IFS="$lt_save_ifs"
7354 test -z "$ac_dir" && ac_dir=.
7355 if test -f $ac_dir/${ac_tool_prefix}file; then
7356 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7357 if test -n "$file_magic_test_file"; then
7358 case $deplibs_check_method in
7359 "file_magic "*)
7360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363 $EGREP "$file_magic_regex" > /dev/null; then
7364 :
7365 else
7366 cat <<EOF 1>&2
7367
7368 *** Warning: the command libtool uses to detect shared libraries,
7369 *** $file_magic_cmd, produces output that libtool cannot recognize.
7370 *** The result is that libtool may fail to recognize shared libraries
7371 *** as such. This will affect the creation of libtool libraries that
7372 *** depend on shared libraries, but programs linked with such libtool
7373 *** libraries will work regardless of this problem. Nevertheless, you
7374 *** may want to report the problem to your system manager and/or to
7375 *** bug-libtool@gnu.org
7376
7377 EOF
7378 fi ;;
7379 esac
7380 fi
7381 break
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 MAGIC_CMD="$lt_save_MAGIC_CMD"
7386 ;;
7387 esac
7388 fi
7389
7390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391 if test -n "$MAGIC_CMD"; then
7392 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7393 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7394 else
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7397 fi
7398
7399 if test -z "$lt_cv_path_MAGIC_CMD"; then
7400 if test -n "$ac_tool_prefix"; then
7401 { echo "$as_me:$LINENO: checking for file" >&5
7402 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 case $MAGIC_CMD in
7407 [\\/*] | ?:[\\/]*)
7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7409 ;;
7410 *)
7411 lt_save_MAGIC_CMD="$MAGIC_CMD"
7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir in $ac_dummy; do
7415 IFS="$lt_save_ifs"
7416 test -z "$ac_dir" && ac_dir=.
7417 if test -f $ac_dir/file; then
7418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7421 "file_magic "*)
7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425 $EGREP "$file_magic_regex" > /dev/null; then
7426 :
7427 else
7428 cat <<EOF 1>&2
7429
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7438
7439 EOF
7440 fi ;;
7441 esac
7442 fi
7443 break
7444 fi
7445 done
7446 IFS="$lt_save_ifs"
7447 MAGIC_CMD="$lt_save_MAGIC_CMD"
7448 ;;
7449 esac
7450 fi
7451
7452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7455 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7456 else
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7459 fi
7460
7461 else
7462 MAGIC_CMD=:
7463 fi
7464 fi
7465
7466 fi
7467 ;;
7468 esac
7469
7470 enable_dlopen=no
7471 enable_win32_dll=yes
7472
7473 # Check whether --enable-libtool-lock was given.
7474 if test "${enable_libtool_lock+set}" = set; then
7475 enableval=$enable_libtool_lock;
7476 fi
7477
7478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7479
7480
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483 withval=$with_pic; pic_mode="$withval"
7484 else
7485 pic_mode=default
7486 fi
7487
7488 test -z "$pic_mode" && pic_mode=default
7489
7490 # Use C for the default configuration in the libtool script
7491 tagname=
7492 lt_save_CC="$CC"
7493 ac_ext=c
7494 ac_cpp='$CPP $CPPFLAGS'
7495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498
7499
7500 # Source file extension for C test sources.
7501 ac_ext=c
7502
7503 # Object file extension for compiled C test sources.
7504 objext=o
7505 objext=$objext
7506
7507 # Code to be used in simple compile tests
7508 lt_simple_compile_test_code="int some_variable = 0;"
7509
7510 # Code to be used in simple link tests
7511 lt_simple_link_test_code='int main(){return(0);}'
7512
7513
7514 # If no C compiler was specified, use CC.
7515 LTCC=${LTCC-"$CC"}
7516
7517 # If no C compiler flags were specified, use CFLAGS.
7518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7519
7520 # Allow CC to be a program name with arguments.
7521 compiler=$CC
7522
7523
7524 # save warnings/boilerplate of simple test code
7525 ac_outfile=conftest.$ac_objext
7526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7528 _lt_compiler_boilerplate=`cat conftest.err`
7529 $rm conftest*
7530
7531 ac_outfile=conftest.$ac_objext
7532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534 _lt_linker_boilerplate=`cat conftest.err`
7535 $rm conftest*
7536
7537
7538 ## CAVEAT EMPTOR:
7539 ## There is no encapsulation within the following macros, do not change
7540 ## the running order or otherwise move them around unless you know exactly
7541 ## what you are doing...
7542
7543 lt_prog_compiler_no_builtin_flag=
7544
7545 if test "$GCC" = yes; then
7546 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7547
7548
7549 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7550 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 lt_cv_prog_compiler_rtti_exceptions=no
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7557 lt_compiler_flag="-fno-rtti -fno-exceptions"
7558 # Insert the option either (1) after the last *FLAGS variable, or
7559 # (2) before a word containing "conftest.", or (3) at the end.
7560 # Note that $ac_compile itself does not contain backslashes and begins
7561 # with a dollar sign (not a hyphen), so the echo should work correctly.
7562 # The option is referenced via a variable to avoid confusing sed.
7563 lt_compile=`echo "$ac_compile" | $SED \
7564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566 -e 's:$: $lt_compiler_flag:'`
7567 (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568 (eval "$lt_compile" 2>conftest.err)
7569 ac_status=$?
7570 cat conftest.err >&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 if (exit $ac_status) && test -s "$ac_outfile"; then
7573 # The compiler can only warn and ignore the option if not recognized
7574 # So say no if there are warnings other than the usual output.
7575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7578 lt_cv_prog_compiler_rtti_exceptions=yes
7579 fi
7580 fi
7581 $rm conftest*
7582
7583 fi
7584 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7586
7587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7589 else
7590 :
7591 fi
7592
7593 fi
7594
7595 lt_prog_compiler_wl=
7596 lt_prog_compiler_pic=
7597 lt_prog_compiler_static=
7598
7599 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7600 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7601
7602 if test "$GCC" = yes; then
7603 lt_prog_compiler_wl='-Wl,'
7604 lt_prog_compiler_static='-static'
7605
7606 case $host_os in
7607 aix*)
7608 # All AIX code is PIC.
7609 if test "$host_cpu" = ia64; then
7610 # AIX 5 now supports IA64 processor
7611 lt_prog_compiler_static='-Bstatic'
7612 fi
7613 ;;
7614
7615 amigaos*)
7616 # FIXME: we need at least 68020 code to build shared libraries, but
7617 # adding the `-m68020' flag to GCC prevents building anything better,
7618 # like `-m68040'.
7619 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7620 ;;
7621
7622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7623 # PIC is the default for these OSes.
7624 ;;
7625
7626 mingw* | cygwin* | pw32* | os2*)
7627 # This hack is so that the source file can tell whether it is being
7628 # built for inclusion in a dll (and should export symbols for example).
7629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7630 # (--disable-auto-import) libraries
7631 lt_prog_compiler_pic='-DDLL_EXPORT'
7632 ;;
7633
7634 darwin* | rhapsody*)
7635 # PIC is the default on this platform
7636 # Common symbols not allowed in MH_DYLIB files
7637 lt_prog_compiler_pic='-fno-common'
7638 ;;
7639
7640 interix[3-9]*)
7641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642 # Instead, we relocate shared libraries at runtime.
7643 ;;
7644
7645 msdosdjgpp*)
7646 # Just because we use GCC doesn't mean we suddenly get shared libraries
7647 # on systems that don't support them.
7648 lt_prog_compiler_can_build_shared=no
7649 enable_shared=no
7650 ;;
7651
7652 sysv4*MP*)
7653 if test -d /usr/nec; then
7654 lt_prog_compiler_pic=-Kconform_pic
7655 fi
7656 ;;
7657
7658 hpux*)
7659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7660 # not for PA HP-UX.
7661 case $host_cpu in
7662 hppa*64*|ia64*)
7663 # +Z the default
7664 ;;
7665 *)
7666 lt_prog_compiler_pic='-fPIC'
7667 ;;
7668 esac
7669 ;;
7670
7671 *)
7672 lt_prog_compiler_pic='-fPIC'
7673 ;;
7674 esac
7675 else
7676 # PORTME Check for flag to pass linker flags through the system compiler.
7677 case $host_os in
7678 aix*)
7679 lt_prog_compiler_wl='-Wl,'
7680 if test "$host_cpu" = ia64; then
7681 # AIX 5 now supports IA64 processor
7682 lt_prog_compiler_static='-Bstatic'
7683 else
7684 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7685 fi
7686 ;;
7687 darwin*)
7688 # PIC is the default on this platform
7689 # Common symbols not allowed in MH_DYLIB files
7690 case $cc_basename in
7691 xlc*)
7692 lt_prog_compiler_pic='-qnocommon'
7693 lt_prog_compiler_wl='-Wl,'
7694 ;;
7695 esac
7696 ;;
7697
7698 mingw* | cygwin* | pw32* | os2*)
7699 # This hack is so that the source file can tell whether it is being
7700 # built for inclusion in a dll (and should export symbols for example).
7701 lt_prog_compiler_pic='-DDLL_EXPORT'
7702 ;;
7703
7704 hpux9* | hpux10* | hpux11*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7707 # not for PA HP-UX.
7708 case $host_cpu in
7709 hppa*64*|ia64*)
7710 # +Z the default
7711 ;;
7712 *)
7713 lt_prog_compiler_pic='+Z'
7714 ;;
7715 esac
7716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7717 lt_prog_compiler_static='${wl}-a ${wl}archive'
7718 ;;
7719
7720 irix5* | irix6* | nonstopux*)
7721 lt_prog_compiler_wl='-Wl,'
7722 # PIC (with -KPIC) is the default.
7723 lt_prog_compiler_static='-non_shared'
7724 ;;
7725
7726 newsos6)
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 ;;
7730
7731 linux* | k*bsd*-gnu)
7732 case $cc_basename in
7733 icc* | ecc*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-KPIC'
7736 lt_prog_compiler_static='-static'
7737 ;;
7738 pgcc* | pgf77* | pgf90* | pgf95*)
7739 # Portland Group compilers (*not* the Pentium gcc compiler,
7740 # which looks to be a dead project)
7741 lt_prog_compiler_wl='-Wl,'
7742 lt_prog_compiler_pic='-fpic'
7743 lt_prog_compiler_static='-Bstatic'
7744 ;;
7745 ccc*)
7746 lt_prog_compiler_wl='-Wl,'
7747 # All Alpha code is PIC.
7748 lt_prog_compiler_static='-non_shared'
7749 ;;
7750 *)
7751 case `$CC -V 2>&1 | sed 5q` in
7752 *Sun\ C*)
7753 # Sun C 5.9
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_wl='-Wl,'
7757 ;;
7758 *Sun\ F*)
7759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 lt_prog_compiler_wl=''
7763 ;;
7764 esac
7765 ;;
7766 esac
7767 ;;
7768
7769 osf3* | osf4* | osf5*)
7770 lt_prog_compiler_wl='-Wl,'
7771 # All OSF/1 code is PIC.
7772 lt_prog_compiler_static='-non_shared'
7773 ;;
7774
7775 rdos*)
7776 lt_prog_compiler_static='-non_shared'
7777 ;;
7778
7779 solaris*)
7780 lt_prog_compiler_pic='-KPIC'
7781 lt_prog_compiler_static='-Bstatic'
7782 case $cc_basename in
7783 f77* | f90* | f95*)
7784 lt_prog_compiler_wl='-Qoption ld ';;
7785 *)
7786 lt_prog_compiler_wl='-Wl,';;
7787 esac
7788 ;;
7789
7790 sunos4*)
7791 lt_prog_compiler_wl='-Qoption ld '
7792 lt_prog_compiler_pic='-PIC'
7793 lt_prog_compiler_static='-Bstatic'
7794 ;;
7795
7796 sysv4 | sysv4.2uw2* | sysv4.3*)
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7800 ;;
7801
7802 sysv4*MP*)
7803 if test -d /usr/nec ;then
7804 lt_prog_compiler_pic='-Kconform_pic'
7805 lt_prog_compiler_static='-Bstatic'
7806 fi
7807 ;;
7808
7809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7810 lt_prog_compiler_wl='-Wl,'
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 ;;
7814
7815 unicos*)
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_can_build_shared=no
7818 ;;
7819
7820 uts4*)
7821 lt_prog_compiler_pic='-pic'
7822 lt_prog_compiler_static='-Bstatic'
7823 ;;
7824
7825 *)
7826 lt_prog_compiler_can_build_shared=no
7827 ;;
7828 esac
7829 fi
7830
7831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7832 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7833
7834 #
7835 # Check to make sure the PIC flag actually works.
7836 #
7837 if test -n "$lt_prog_compiler_pic"; then
7838
7839 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7840 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7841 if test "${lt_prog_compiler_pic_works+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 lt_prog_compiler_pic_works=no
7845 ac_outfile=conftest.$ac_objext
7846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7848 # Insert the option either (1) after the last *FLAGS variable, or
7849 # (2) before a word containing "conftest.", or (3) at the end.
7850 # Note that $ac_compile itself does not contain backslashes and begins
7851 # with a dollar sign (not a hyphen), so the echo should work correctly.
7852 # The option is referenced via a variable to avoid confusing sed.
7853 lt_compile=`echo "$ac_compile" | $SED \
7854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856 -e 's:$: $lt_compiler_flag:'`
7857 (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
7858 (eval "$lt_compile" 2>conftest.err)
7859 ac_status=$?
7860 cat conftest.err >&5
7861 echo "$as_me:7861: \$? = $ac_status" >&5
7862 if (exit $ac_status) && test -s "$ac_outfile"; then
7863 # The compiler can only warn and ignore the option if not recognized
7864 # So say no if there are warnings other than the usual output.
7865 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7868 lt_prog_compiler_pic_works=yes
7869 fi
7870 fi
7871 $rm conftest*
7872
7873 fi
7874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7875 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7876
7877 if test x"$lt_prog_compiler_pic_works" = xyes; then
7878 case $lt_prog_compiler_pic in
7879 "" | " "*) ;;
7880 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7881 esac
7882 else
7883 lt_prog_compiler_pic=
7884 lt_prog_compiler_can_build_shared=no
7885 fi
7886
7887 fi
7888 case $host_os in
7889 # For platforms which do not support PIC, -DPIC is meaningless:
7890 *djgpp*)
7891 lt_prog_compiler_pic=
7892 ;;
7893 *)
7894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7895 ;;
7896 esac
7897
7898 #
7899 # Check to make sure the static flag actually works.
7900 #
7901 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7902 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7903 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7904 if test "${lt_prog_compiler_static_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 lt_prog_compiler_static_works=no
7908 save_LDFLAGS="$LDFLAGS"
7909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7910 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7912 # The linker can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 if test -s conftest.err; then
7915 # Append any errors to the config.log.
7916 cat conftest.err 1>&5
7917 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7919 if diff conftest.exp conftest.er2 >/dev/null; then
7920 lt_prog_compiler_static_works=yes
7921 fi
7922 else
7923 lt_prog_compiler_static_works=yes
7924 fi
7925 fi
7926 $rm conftest*
7927 LDFLAGS="$save_LDFLAGS"
7928
7929 fi
7930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7931 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7932
7933 if test x"$lt_prog_compiler_static_works" = xyes; then
7934 :
7935 else
7936 lt_prog_compiler_static=
7937 fi
7938
7939
7940 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7942 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 lt_cv_prog_compiler_c_o=no
7946 $rm -r conftest 2>/dev/null
7947 mkdir conftest
7948 cd conftest
7949 mkdir out
7950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7951
7952 lt_compiler_flag="-o out/conftest2.$ac_objext"
7953 # Insert the option either (1) after the last *FLAGS variable, or
7954 # (2) before a word containing "conftest.", or (3) at the end.
7955 # Note that $ac_compile itself does not contain backslashes and begins
7956 # with a dollar sign (not a hyphen), so the echo should work correctly.
7957 lt_compile=`echo "$ac_compile" | $SED \
7958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960 -e 's:$: $lt_compiler_flag:'`
7961 (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
7962 (eval "$lt_compile" 2>out/conftest.err)
7963 ac_status=$?
7964 cat out/conftest.err >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7967 then
7968 # The compiler can only warn and ignore the option if not recognized
7969 # So say no if there are warnings
7970 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7973 lt_cv_prog_compiler_c_o=yes
7974 fi
7975 fi
7976 chmod u+w . 2>&5
7977 $rm conftest*
7978 # SGI C++ compiler will create directory out/ii_files/ for
7979 # template instantiation
7980 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7981 $rm out/* && rmdir out
7982 cd ..
7983 rmdir conftest
7984 $rm conftest*
7985
7986 fi
7987 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7988 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7989
7990
7991 hard_links="nottested"
7992 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7993 # do not overwrite the value of need_locks provided by the user
7994 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7995 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7996 hard_links=yes
7997 $rm conftest*
7998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7999 touch conftest.a
8000 ln conftest.a conftest.b 2>&5 || hard_links=no
8001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8002 { echo "$as_me:$LINENO: result: $hard_links" >&5
8003 echo "${ECHO_T}$hard_links" >&6; }
8004 if test "$hard_links" = no; then
8005 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8006 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8007 need_locks=warn
8008 fi
8009 else
8010 need_locks=no
8011 fi
8012
8013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8015
8016 runpath_var=
8017 allow_undefined_flag=
8018 enable_shared_with_static_runtimes=no
8019 archive_cmds=
8020 archive_expsym_cmds=
8021 old_archive_From_new_cmds=
8022 old_archive_from_expsyms_cmds=
8023 export_dynamic_flag_spec=
8024 whole_archive_flag_spec=
8025 thread_safe_flag_spec=
8026 hardcode_libdir_flag_spec=
8027 hardcode_libdir_flag_spec_ld=
8028 hardcode_libdir_separator=
8029 hardcode_direct=no
8030 hardcode_minus_L=no
8031 hardcode_shlibpath_var=unsupported
8032 link_all_deplibs=unknown
8033 hardcode_automatic=no
8034 module_cmds=
8035 module_expsym_cmds=
8036 always_export_symbols=no
8037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8038 # include_expsyms should be a list of space-separated symbols to be *always*
8039 # included in the symbol list
8040 include_expsyms=
8041 # exclude_expsyms can be an extended regexp of symbols to exclude
8042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8044 # as well as any symbol that contains `d'.
8045 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8047 # platforms (ab)use it in PIC code, but their linkers get confused if
8048 # the symbol is explicitly referenced. Since portable code cannot
8049 # rely on this symbol name, it's probably fine to never include it in
8050 # preloaded symbol tables.
8051 extract_expsyms_cmds=
8052 # Just being paranoid about ensuring that cc_basename is set.
8053 for cc_temp in $compiler""; do
8054 case $cc_temp in
8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057 \-*) ;;
8058 *) break;;
8059 esac
8060 done
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8062
8063 case $host_os in
8064 cygwin* | mingw* | pw32*)
8065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 if test "$GCC" != yes; then
8069 with_gnu_ld=no
8070 fi
8071 ;;
8072 interix*)
8073 # we just hope/assume this is gcc and not c89 (= MSVC++)
8074 with_gnu_ld=yes
8075 ;;
8076 openbsd*)
8077 with_gnu_ld=no
8078 ;;
8079 esac
8080
8081 ld_shlibs=yes
8082 if test "$with_gnu_ld" = yes; then
8083 # If archive_cmds runs LD, not CC, wlarc should be empty
8084 wlarc='${wl}'
8085
8086 # Set some defaults for GNU ld with shared library support. These
8087 # are reset later if shared libraries are not supported. Putting them
8088 # here allows them to be overridden if necessary.
8089 runpath_var=LD_RUN_PATH
8090 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8091 export_dynamic_flag_spec='${wl}--export-dynamic'
8092 # ancient GNU ld didn't support --whole-archive et. al.
8093 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8094 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8095 else
8096 whole_archive_flag_spec=
8097 fi
8098 supports_anon_versioning=no
8099 case `$LD -v 2>/dev/null` in
8100 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8103 *\ 2.11.*) ;; # other 2.11 versions
8104 *) supports_anon_versioning=yes ;;
8105 esac
8106
8107 # See if GNU ld supports shared libraries.
8108 case $host_os in
8109 aix3* | aix4* | aix5*)
8110 # On AIX/PPC, the GNU linker is very broken
8111 if test "$host_cpu" != ia64; then
8112 ld_shlibs=no
8113 cat <<EOF 1>&2
8114
8115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8116 *** to be unable to reliably create shared libraries on AIX.
8117 *** Therefore, libtool is disabling shared libraries support. If you
8118 *** really care for shared libraries, you may want to modify your PATH
8119 *** so that a non-GNU linker is found, and then restart.
8120
8121 EOF
8122 fi
8123 ;;
8124
8125 amigaos*)
8126 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)'
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8129
8130 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8131 # that the semantics of dynamic libraries on AmigaOS, at least up
8132 # to version 4, is to share data among multiple programs linked
8133 # with the same dynamic library. Since this doesn't match the
8134 # behavior of shared libraries on other platforms, we can't use
8135 # them.
8136 ld_shlibs=no
8137 ;;
8138
8139 beos*)
8140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8141 allow_undefined_flag=unsupported
8142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8143 # support --undefined. This deserves some investigation. FIXME
8144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8145 else
8146 ld_shlibs=no
8147 fi
8148 ;;
8149
8150 cygwin* | mingw* | pw32*)
8151 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8152 # as there is no search path for DLLs.
8153 hardcode_libdir_flag_spec='-L$libdir'
8154 allow_undefined_flag=unsupported
8155 always_export_symbols=no
8156 enable_shared_with_static_runtimes=yes
8157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8158
8159 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8161 # If the export-symbols file already is a .def file (1st line
8162 # is EXPORTS), use it as is; otherwise, prepend...
8163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8164 cp $export_symbols $output_objdir/$soname.def;
8165 else
8166 echo EXPORTS > $output_objdir/$soname.def;
8167 cat $export_symbols >> $output_objdir/$soname.def;
8168 fi~
8169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8170 else
8171 ld_shlibs=no
8172 fi
8173 ;;
8174
8175 interix[3-9]*)
8176 hardcode_direct=no
8177 hardcode_shlibpath_var=no
8178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8179 export_dynamic_flag_spec='${wl}-E'
8180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8181 # Instead, shared libraries are loaded at an image base (0x10000000 by
8182 # default) and relocated if they conflict, which is a slow very memory
8183 # consuming and fragmenting process. To avoid this, we pick a random,
8184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8185 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8187 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'
8188 ;;
8189
8190 gnu* | linux* | k*bsd*-gnu)
8191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8192 tmp_addflag=
8193 case $cc_basename,$host_cpu in
8194 pgcc*) # Portland Group C compiler
8195 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'
8196 tmp_addflag=' $pic_flag'
8197 ;;
8198 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8199 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'
8200 tmp_addflag=' $pic_flag -Mnomain' ;;
8201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8202 tmp_addflag=' -i_dynamic' ;;
8203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8204 tmp_addflag=' -i_dynamic -nofor_main' ;;
8205 ifc* | ifort*) # Intel Fortran compiler
8206 tmp_addflag=' -nofor_main' ;;
8207 esac
8208 case `$CC -V 2>&1 | sed 5q` in
8209 *Sun\ C*) # Sun C 5.9
8210 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'
8211 tmp_sharedflag='-G' ;;
8212 *Sun\ F*) # Sun Fortran 8.3
8213 tmp_sharedflag='-G' ;;
8214 *)
8215 tmp_sharedflag='-shared' ;;
8216 esac
8217 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218
8219 if test $supports_anon_versioning = yes; then
8220 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8222 $echo "local: *; };" >> $output_objdir/$libname.ver~
8223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8224 fi
8225 link_all_deplibs=no
8226 else
8227 ld_shlibs=no
8228 fi
8229 ;;
8230
8231 netbsd* | netbsdelf*-gnu)
8232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8234 wlarc=
8235 else
8236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8238 fi
8239 ;;
8240
8241 solaris*)
8242 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8243 ld_shlibs=no
8244 cat <<EOF 1>&2
8245
8246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8247 *** create shared libraries on Solaris systems. Therefore, libtool
8248 *** is disabling shared libraries support. We urge you to upgrade GNU
8249 *** binutils to release 2.9.1 or newer. Another option is to modify
8250 *** your PATH or compiler configuration so that the native linker is
8251 *** used, and then restart.
8252
8253 EOF
8254 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257 else
8258 ld_shlibs=no
8259 fi
8260 ;;
8261
8262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8263 case `$LD -v 2>&1` in
8264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8265 ld_shlibs=no
8266 cat <<_LT_EOF 1>&2
8267
8268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8269 *** reliably create shared libraries on SCO systems. Therefore, libtool
8270 *** is disabling shared libraries support. We urge you to upgrade GNU
8271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8272 *** your PATH or compiler configuration so that the native linker is
8273 *** used, and then restart.
8274
8275 _LT_EOF
8276 ;;
8277 *)
8278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8282 else
8283 ld_shlibs=no
8284 fi
8285 ;;
8286 esac
8287 ;;
8288
8289 sunos4*)
8290 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291 wlarc=
8292 hardcode_direct=yes
8293 hardcode_shlibpath_var=no
8294 ;;
8295
8296 *)
8297 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304 esac
8305
8306 if test "$ld_shlibs" = no; then
8307 runpath_var=
8308 hardcode_libdir_flag_spec=
8309 export_dynamic_flag_spec=
8310 whole_archive_flag_spec=
8311 fi
8312 else
8313 # PORTME fill in a description of your system's linker (not GNU ld)
8314 case $host_os in
8315 aix3*)
8316 allow_undefined_flag=unsupported
8317 always_export_symbols=yes
8318 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'
8319 # Note: this linker hardcodes the directories in LIBPATH if there
8320 # are no directories specified by -L.
8321 hardcode_minus_L=yes
8322 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8323 # Neither direct hardcoding nor static linking is supported with a
8324 # broken collect2.
8325 hardcode_direct=unsupported
8326 fi
8327 ;;
8328
8329 aix4* | aix5*)
8330 if test "$host_cpu" = ia64; then
8331 # On IA64, the linker does run time linking by default, so we don't
8332 # have to do anything special.
8333 aix_use_runtimelinking=no
8334 exp_sym_flag='-Bexport'
8335 no_entry_flag=""
8336 else
8337 # If we're using GNU nm, then we don't want the "-C" option.
8338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8339 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8340 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'
8341 else
8342 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'
8343 fi
8344 aix_use_runtimelinking=no
8345
8346 # Test if we are trying to use run time linking or normal
8347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8348 # need to do runtime linking.
8349 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8350 for ld_flag in $LDFLAGS; do
8351 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8352 aix_use_runtimelinking=yes
8353 break
8354 fi
8355 done
8356 ;;
8357 esac
8358
8359 exp_sym_flag='-bexport'
8360 no_entry_flag='-bnoentry'
8361 fi
8362
8363 # When large executables or shared objects are built, AIX ld can
8364 # have problems creating the table of contents. If linking a library
8365 # or program results in "error TOC overflow" add -mminimal-toc to
8366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8368
8369 archive_cmds=''
8370 hardcode_direct=yes
8371 hardcode_libdir_separator=':'
8372 link_all_deplibs=yes
8373
8374 if test "$GCC" = yes; then
8375 case $host_os in aix4.[012]|aix4.[012].*)
8376 # We only want to do this on AIX 4.2 and lower, the check
8377 # below for broken collect2 doesn't work under 4.3+
8378 collect2name=`${CC} -print-prog-name=collect2`
8379 if test -f "$collect2name" && \
8380 strings "$collect2name" | grep resolve_lib_name >/dev/null
8381 then
8382 # We have reworked collect2
8383 :
8384 else
8385 # We have old collect2
8386 hardcode_direct=unsupported
8387 # It fails to find uninstalled libraries when the uninstalled
8388 # path is not listed in the libpath. Setting hardcode_minus_L
8389 # to unsupported forces relinking
8390 hardcode_minus_L=yes
8391 hardcode_libdir_flag_spec='-L$libdir'
8392 hardcode_libdir_separator=
8393 fi
8394 ;;
8395 esac
8396 shared_flag='-shared'
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag="$shared_flag "'${wl}-G'
8399 fi
8400 else
8401 # not using gcc
8402 if test "$host_cpu" = ia64; then
8403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404 # chokes on -Wl,-G. The following line is correct:
8405 shared_flag='-G'
8406 else
8407 if test "$aix_use_runtimelinking" = yes; then
8408 shared_flag='${wl}-G'
8409 else
8410 shared_flag='${wl}-bM:SRE'
8411 fi
8412 fi
8413 fi
8414
8415 # It seems that -bexpall does not export symbols beginning with
8416 # underscore (_), so it is better to generate a list of symbols to export.
8417 always_export_symbols=yes
8418 if test "$aix_use_runtimelinking" = yes; then
8419 # Warning - without using the other runtime loading flags (-brtl),
8420 # -berok will link without error, but may produce a broken library.
8421 allow_undefined_flag='-berok'
8422 # Determine the default libpath from the value encoded in an empty executable.
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429
8430 int
8431 main ()
8432 {
8433
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
8456
8457 lt_aix_libpath_sed='
8458 /Import File Strings/,/^$/ {
8459 /^0/ {
8460 s/^0 *\(.*\)$/\1/
8461 p
8462 }
8463 }'
8464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then
8467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 fi
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8482 else
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 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"
8487 else
8488 # Determine the default libpath from the value encoded in an empty executable.
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495
8496 int
8497 main ()
8498 {
8499
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext conftest$ac_exeext
8505 if { (ac_try="$ac_link"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_link") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest$ac_exeext &&
8521 $as_test_x conftest$ac_exeext; then
8522
8523 lt_aix_libpath_sed='
8524 /Import File Strings/,/^$/ {
8525 /^0/ {
8526 s/^0 *\(.*\)$/\1/
8527 p
8528 }
8529 }'
8530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8531 # Check for a 64-bit object if we didn't find anything.
8532 if test -z "$aix_libpath"; then
8533 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8534 fi
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8543 conftest$ac_exeext conftest.$ac_ext
8544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8545
8546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8547 # Warning - without using the other run time loading flags,
8548 # -berok will link without error, but may produce a broken library.
8549 no_undefined_flag=' ${wl}-bernotok'
8550 allow_undefined_flag=' ${wl}-berok'
8551 # Exported symbols can be pulled into shared objects from archives
8552 whole_archive_flag_spec='$convenience'
8553 archive_cmds_need_lc=yes
8554 # This is similar to how AIX traditionally builds its shared libraries.
8555 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'
8556 fi
8557 fi
8558 ;;
8559
8560 amigaos*)
8561 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)'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_minus_L=yes
8564 # see comment about different semantics on the GNU ld section
8565 ld_shlibs=no
8566 ;;
8567
8568 bsdi[45]*)
8569 export_dynamic_flag_spec=-rdynamic
8570 ;;
8571
8572 cygwin* | mingw* | pw32*)
8573 # When not using gcc, we currently assume that we are using
8574 # Microsoft Visual C++.
8575 # hardcode_libdir_flag_spec is actually meaningless, as there is
8576 # no search path for DLLs.
8577 hardcode_libdir_flag_spec=' '
8578 allow_undefined_flag=unsupported
8579 # Tell ltmain to make .lib files, not .a files.
8580 libext=lib
8581 # Tell ltmain to make .dll files, not .so files.
8582 shrext_cmds=".dll"
8583 # FIXME: Setting linknames here is a bad hack.
8584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8585 # The linker will automatically build a .lib file if we build a DLL.
8586 old_archive_From_new_cmds='true'
8587 # FIXME: Should let the user specify the lib program.
8588 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8589 fix_srcfile_path='`cygpath -w "$srcfile"`'
8590 enable_shared_with_static_runtimes=yes
8591 ;;
8592
8593 darwin* | rhapsody*)
8594 case $host_os in
8595 rhapsody* | darwin1.[012])
8596 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8597 ;;
8598 *) # Darwin 1.3 on
8599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8600 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8601 else
8602 case ${MACOSX_DEPLOYMENT_TARGET} in
8603 10.[012])
8604 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8605 ;;
8606 10.*)
8607 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8608 ;;
8609 esac
8610 fi
8611 ;;
8612 esac
8613 archive_cmds_need_lc=no
8614 hardcode_direct=no
8615 hardcode_automatic=yes
8616 hardcode_shlibpath_var=unsupported
8617 whole_archive_flag_spec=''
8618 link_all_deplibs=yes
8619 if test "$GCC" = yes ; then
8620 output_verbose_link_cmd='echo'
8621 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8624 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
8625 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
8626 else
8627 case $cc_basename in
8628 xlc*)
8629 output_verbose_link_cmd='echo'
8630 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8634 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
8635 ;;
8636 *)
8637 ld_shlibs=no
8638 ;;
8639 esac
8640 fi
8641 ;;
8642
8643 dgux*)
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_libdir_flag_spec='-L$libdir'
8646 hardcode_shlibpath_var=no
8647 ;;
8648
8649 freebsd1*)
8650 ld_shlibs=no
8651 ;;
8652
8653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8654 # support. Future versions do this automatically, but an explicit c++rt0.o
8655 # does not break anything, and helps significantly (at the cost of a little
8656 # extra space).
8657 freebsd2.2*)
8658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8659 hardcode_libdir_flag_spec='-R$libdir'
8660 hardcode_direct=yes
8661 hardcode_shlibpath_var=no
8662 ;;
8663
8664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8665 freebsd2*)
8666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8667 hardcode_direct=yes
8668 hardcode_minus_L=yes
8669 hardcode_shlibpath_var=no
8670 ;;
8671
8672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8673 freebsd* | dragonfly*)
8674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8675 hardcode_libdir_flag_spec='-R$libdir'
8676 hardcode_direct=yes
8677 hardcode_shlibpath_var=no
8678 ;;
8679
8680 hpux9*)
8681 if test "$GCC" = yes; then
8682 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'
8683 else
8684 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'
8685 fi
8686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8687 hardcode_libdir_separator=:
8688 hardcode_direct=yes
8689
8690 # hardcode_minus_L: Not really in the search PATH,
8691 # but as the default location of the library.
8692 hardcode_minus_L=yes
8693 export_dynamic_flag_spec='${wl}-E'
8694 ;;
8695
8696 hpux10*)
8697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8699 else
8700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8701 fi
8702 if test "$with_gnu_ld" = no; then
8703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704 hardcode_libdir_separator=:
8705
8706 hardcode_direct=yes
8707 export_dynamic_flag_spec='${wl}-E'
8708
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L=yes
8712 fi
8713 ;;
8714
8715 hpux11*)
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717 case $host_cpu in
8718 hppa*64*)
8719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 ;;
8721 ia64*)
8722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8723 ;;
8724 *)
8725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726 ;;
8727 esac
8728 else
8729 case $host_cpu in
8730 hppa*64*)
8731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 ia64*)
8734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8735 ;;
8736 *)
8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8738 ;;
8739 esac
8740 fi
8741 if test "$with_gnu_ld" = no; then
8742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator=:
8744
8745 case $host_cpu in
8746 hppa*64*|ia64*)
8747 hardcode_libdir_flag_spec_ld='+b $libdir'
8748 hardcode_direct=no
8749 hardcode_shlibpath_var=no
8750 ;;
8751 *)
8752 hardcode_direct=yes
8753 export_dynamic_flag_spec='${wl}-E'
8754
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8758 ;;
8759 esac
8760 fi
8761 ;;
8762
8763 irix5* | irix6* | nonstopux*)
8764 if test "$GCC" = yes; then
8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8766 else
8767 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8768 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8769 fi
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 hardcode_libdir_separator=:
8772 link_all_deplibs=yes
8773 ;;
8774
8775 netbsd* | netbsdelf*-gnu)
8776 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8778 else
8779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8780 fi
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 hardcode_direct=yes
8783 hardcode_shlibpath_var=no
8784 ;;
8785
8786 newsos6)
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_direct=yes
8789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 openbsd*)
8795 if test -f /usr/libexec/ld.so; then
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8802 export_dynamic_flag_spec='${wl}-E'
8803 else
8804 case $host_os in
8805 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_libdir_flag_spec='-R$libdir'
8808 ;;
8809 *)
8810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8812 ;;
8813 esac
8814 fi
8815 else
8816 ld_shlibs=no
8817 fi
8818 ;;
8819
8820 os2*)
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8823 allow_undefined_flag=unsupported
8824 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'
8825 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8826 ;;
8827
8828 osf3*)
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8832 else
8833 allow_undefined_flag=' -expect_unresolved \*'
8834 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8835 fi
8836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837 hardcode_libdir_separator=:
8838 ;;
8839
8840 osf4* | osf5*) # as osf3* with the addition of -msym flag
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845 else
8846 allow_undefined_flag=' -expect_unresolved \*'
8847 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8848 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8850
8851 # Both c and cxx compiler support -rpath directly
8852 hardcode_libdir_flag_spec='-rpath $libdir'
8853 fi
8854 hardcode_libdir_separator=:
8855 ;;
8856
8857 solaris*)
8858 no_undefined_flag=' -z text'
8859 if test "$GCC" = yes; then
8860 wlarc='${wl}'
8861 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8863 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864 else
8865 wlarc=''
8866 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8869 fi
8870 hardcode_libdir_flag_spec='-R$libdir'
8871 hardcode_shlibpath_var=no
8872 case $host_os in
8873 solaris2.[0-5] | solaris2.[0-5].*) ;;
8874 *)
8875 # The compiler driver will combine and reorder linker options,
8876 # but understands `-z linker_flag'. GCC discards it without `$wl',
8877 # but is careful enough not to reorder.
8878 # Supported since Solaris 2.6 (maybe 2.5.1?)
8879 if test "$GCC" = yes; then
8880 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8881 else
8882 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8883 fi
8884 ;;
8885 esac
8886 link_all_deplibs=yes
8887 ;;
8888
8889 sunos4*)
8890 if test "x$host_vendor" = xsequent; then
8891 # Use $CC to link under sequent, because it throws in some extra .o
8892 # files that make .init and .fini sections work.
8893 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8894 else
8895 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 fi
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_direct=yes
8899 hardcode_minus_L=yes
8900 hardcode_shlibpath_var=no
8901 ;;
8902
8903 sysv4)
8904 case $host_vendor in
8905 sni)
8906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_direct=yes # is this really true???
8908 ;;
8909 siemens)
8910 ## LD is ld it makes a PLAMLIB
8911 ## CC just makes a GrossModule.
8912 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8913 reload_cmds='$CC -r -o $output$reload_objs'
8914 hardcode_direct=no
8915 ;;
8916 motorola)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8919 ;;
8920 esac
8921 runpath_var='LD_RUN_PATH'
8922 hardcode_shlibpath_var=no
8923 ;;
8924
8925 sysv4.3*)
8926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_shlibpath_var=no
8928 export_dynamic_flag_spec='-Bexport'
8929 ;;
8930
8931 sysv4*MP*)
8932 if test -d /usr/nec; then
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_shlibpath_var=no
8935 runpath_var=LD_RUN_PATH
8936 hardcode_runpath_var=yes
8937 ld_shlibs=yes
8938 fi
8939 ;;
8940
8941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8942 no_undefined_flag='${wl}-z,text'
8943 archive_cmds_need_lc=no
8944 hardcode_shlibpath_var=no
8945 runpath_var='LD_RUN_PATH'
8946
8947 if test "$GCC" = yes; then
8948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 else
8951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 fi
8954 ;;
8955
8956 sysv5* | sco3.2v5* | sco5v6*)
8957 # Note: We can NOT use -z defs as we might desire, because we do not
8958 # link with -lc, and that would cause any symbols used from libc to
8959 # always be unresolved, which means just about no library would
8960 # ever link correctly. If we're not using GNU ld we use -z text
8961 # though, which does catch some bad symbols but isn't as heavy-handed
8962 # as -z defs.
8963 no_undefined_flag='${wl}-z,text'
8964 allow_undefined_flag='${wl}-z,nodefs'
8965 archive_cmds_need_lc=no
8966 hardcode_shlibpath_var=no
8967 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8968 hardcode_libdir_separator=':'
8969 link_all_deplibs=yes
8970 export_dynamic_flag_spec='${wl}-Bexport'
8971 runpath_var='LD_RUN_PATH'
8972
8973 if test "$GCC" = yes; then
8974 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 else
8977 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8978 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 fi
8980 ;;
8981
8982 uts4*)
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 *)
8989 ld_shlibs=no
8990 ;;
8991 esac
8992 fi
8993
8994 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995 echo "${ECHO_T}$ld_shlibs" >&6; }
8996 test "$ld_shlibs" = no && can_build_shared=no
8997
8998 #
8999 # Do we need to explicitly link libc?
9000 #
9001 case "x$archive_cmds_need_lc" in
9002 x|xyes)
9003 # Assume -lc should be added
9004 archive_cmds_need_lc=yes
9005
9006 if test "$enable_shared" = yes && test "$GCC" = yes; then
9007 case $archive_cmds in
9008 *'~'*)
9009 # FIXME: we may have to deal with multi-command sequences.
9010 ;;
9011 '$CC '*)
9012 # Test whether the compiler implicitly links with -lc since on some
9013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9014 # to ld, don't add -lc before -lgcc.
9015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9017 $rm conftest*
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9019
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } 2>conftest.err; then
9025 soname=conftest
9026 lib=conftest
9027 libobjs=conftest.$ac_objext
9028 deplibs=
9029 wl=$lt_prog_compiler_wl
9030 pic_flag=$lt_prog_compiler_pic
9031 compiler_flags=-v
9032 linker_flags=-v
9033 verstring=
9034 output_objdir=.
9035 libname=conftest
9036 lt_save_allow_undefined_flag=$allow_undefined_flag
9037 allow_undefined_flag=
9038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9039 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }
9043 then
9044 archive_cmds_need_lc=no
9045 else
9046 archive_cmds_need_lc=yes
9047 fi
9048 allow_undefined_flag=$lt_save_allow_undefined_flag
9049 else
9050 cat conftest.err 1>&5
9051 fi
9052 $rm conftest*
9053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9054 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9055 ;;
9056 esac
9057 fi
9058 ;;
9059 esac
9060
9061 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9063 library_names_spec=
9064 libname_spec='lib$name'
9065 soname_spec=
9066 shrext_cmds=".so"
9067 postinstall_cmds=
9068 postuninstall_cmds=
9069 finish_cmds=
9070 finish_eval=
9071 shlibpath_var=
9072 shlibpath_overrides_runpath=unknown
9073 version_type=none
9074 dynamic_linker="$host_os ld.so"
9075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9076
9077 if test "$GCC" = yes; then
9078 case $host_os in
9079 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9080 *) lt_awk_arg="/^libraries:/" ;;
9081 esac
9082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9084 # if the path contains ";" then we assume it to be the separator
9085 # otherwise default to the standard path separator (i.e. ":") - it is
9086 # assumed that no part of a normal pathname contains ";" but that should
9087 # okay in the real world where ";" in dirpaths is itself problematic.
9088 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9089 else
9090 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9091 fi
9092 # Ok, now we have the path, separated by spaces, we can step through it
9093 # and add multilib dir if necessary.
9094 lt_tmp_lt_search_path_spec=
9095 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9096 for lt_sys_path in $lt_search_path_spec; do
9097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9099 else
9100 test -d "$lt_sys_path" && \
9101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9102 fi
9103 done
9104 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9105 BEGIN {RS=" "; FS="/|\n";} {
9106 lt_foo="";
9107 lt_count=0;
9108 for (lt_i = NF; lt_i > 0; lt_i--) {
9109 if ($lt_i != "" && $lt_i != ".") {
9110 if ($lt_i == "..") {
9111 lt_count++;
9112 } else {
9113 if (lt_count == 0) {
9114 lt_foo="/" $lt_i lt_foo;
9115 } else {
9116 lt_count--;
9117 }
9118 }
9119 }
9120 }
9121 if (lt_foo != "") { lt_freq[lt_foo]++; }
9122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9123 }'`
9124 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9125 else
9126 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9127 fi
9128 need_lib_prefix=unknown
9129 hardcode_into_libs=no
9130
9131 # when you set need_version to no, make sure it does not cause -set_version
9132 # flags to be left without arguments
9133 need_version=unknown
9134
9135 case $host_os in
9136 aix3*)
9137 version_type=linux
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9139 shlibpath_var=LIBPATH
9140
9141 # AIX 3 has no versioning support, so we append a major version to the name.
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 ;;
9144
9145 aix4* | aix5*)
9146 version_type=linux
9147 need_lib_prefix=no
9148 need_version=no
9149 hardcode_into_libs=yes
9150 if test "$host_cpu" = ia64; then
9151 # AIX 5 supports IA64
9152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 else
9155 # With GCC up to 2.95.x, collect2 would create an import file
9156 # for dependence libraries. The import file would start with
9157 # the line `#! .'. This would cause the generated library to
9158 # depend on `.', always an invalid library. This was fixed in
9159 # development snapshots of GCC prior to 3.0.
9160 case $host_os in
9161 aix4 | aix4.[01] | aix4.[01].*)
9162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9163 echo ' yes '
9164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9165 :
9166 else
9167 can_build_shared=no
9168 fi
9169 ;;
9170 esac
9171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9172 # soname into executable. Probably we can add versioning support to
9173 # collect2, so additional links can be useful in future.
9174 if test "$aix_use_runtimelinking" = yes; then
9175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9176 # instead of lib<name>.a to let people know that these are not
9177 # typical AIX shared libraries.
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 else
9180 # We preserve .a as extension for shared libraries through AIX4.2
9181 # and later when we are not doing run time linking.
9182 library_names_spec='${libname}${release}.a $libname.a'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 fi
9185 shlibpath_var=LIBPATH
9186 fi
9187 ;;
9188
9189 amigaos*)
9190 library_names_spec='$libname.ixlibrary $libname.a'
9191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9192 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'
9193 ;;
9194
9195 beos*)
9196 library_names_spec='${libname}${shared_ext}'
9197 dynamic_linker="$host_os ld.so"
9198 shlibpath_var=LIBRARY_PATH
9199 ;;
9200
9201 bsdi[45]*)
9202 version_type=linux
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9210 # the default ld.so.conf also contains /usr/contrib/lib and
9211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9212 # libtool to hard-code these into programs
9213 ;;
9214
9215 cygwin* | mingw* | pw32*)
9216 version_type=windows
9217 shrext_cmds=".dll"
9218 need_version=no
9219 need_lib_prefix=no
9220
9221 case $GCC,$host_os in
9222 yes,cygwin* | yes,mingw* | yes,pw32*)
9223 library_names_spec='$libname.dll.a'
9224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9225 postinstall_cmds='base_file=`basename \${file}`~
9226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9227 dldir=$destdir/`dirname \$dlpath`~
9228 test -d \$dldir || mkdir -p \$dldir~
9229 $install_prog $dir/$dlname \$dldir/$dlname~
9230 chmod a+x \$dldir/$dlname'
9231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9232 dlpath=$dir/\$dldll~
9233 $rm \$dlpath'
9234 shlibpath_overrides_runpath=yes
9235
9236 case $host_os in
9237 cygwin*)
9238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9241 ;;
9242 mingw*)
9243 # MinGW DLLs use traditional 'lib' prefix
9244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9246 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9247 # It is most probably a Windows format PATH printed by
9248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9249 # path with ; separators, and with drive letters. We can handle the
9250 # drive letters (cygwin fileutils understands them), so leave them,
9251 # especially as we might pass files found there to a mingw objdump,
9252 # which wouldn't understand a cygwinified path. Ahh.
9253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9254 else
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9256 fi
9257 ;;
9258 pw32*)
9259 # pw32 DLLs use 'pw' prefix rather than 'lib'
9260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9261 ;;
9262 esac
9263 ;;
9264
9265 *)
9266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9267 ;;
9268 esac
9269 dynamic_linker='Win32 ld.exe'
9270 # FIXME: first we should search . and the directory the executable is in
9271 shlibpath_var=PATH
9272 ;;
9273
9274 darwin* | rhapsody*)
9275 dynamic_linker="$host_os dyld"
9276 version_type=darwin
9277 need_lib_prefix=no
9278 need_version=no
9279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9280 soname_spec='${libname}${release}${major}$shared_ext'
9281 shlibpath_overrides_runpath=yes
9282 shlibpath_var=DYLD_LIBRARY_PATH
9283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9284
9285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9287 ;;
9288
9289 dgux*)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 ;;
9297
9298 freebsd1*)
9299 dynamic_linker=no
9300 ;;
9301
9302 freebsd* | dragonfly*)
9303 # DragonFly does not have aout. When/if they implement a new
9304 # versioning mechanism, adjust this.
9305 if test -x /usr/bin/objformat; then
9306 objformat=`/usr/bin/objformat`
9307 else
9308 case $host_os in
9309 freebsd[123]*) objformat=aout ;;
9310 *) objformat=elf ;;
9311 esac
9312 fi
9313 version_type=freebsd-$objformat
9314 case $version_type in
9315 freebsd-elf*)
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 need_version=no
9318 need_lib_prefix=no
9319 ;;
9320 freebsd-*)
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9322 need_version=yes
9323 ;;
9324 esac
9325 shlibpath_var=LD_LIBRARY_PATH
9326 case $host_os in
9327 freebsd2*)
9328 shlibpath_overrides_runpath=yes
9329 ;;
9330 freebsd3.[01]* | freebsdelf3.[01]*)
9331 shlibpath_overrides_runpath=yes
9332 hardcode_into_libs=yes
9333 ;;
9334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9336 shlibpath_overrides_runpath=no
9337 hardcode_into_libs=yes
9338 ;;
9339 *) # from 4.6 on, and DragonFly
9340 shlibpath_overrides_runpath=yes
9341 hardcode_into_libs=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 gnu*)
9347 version_type=linux
9348 need_lib_prefix=no
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 hardcode_into_libs=yes
9354 ;;
9355
9356 hpux9* | hpux10* | hpux11*)
9357 # Give a soname corresponding to the major version so that dld.sl refuses to
9358 # link against other versions.
9359 version_type=sunos
9360 need_lib_prefix=no
9361 need_version=no
9362 case $host_cpu in
9363 ia64*)
9364 shrext_cmds='.so'
9365 hardcode_into_libs=yes
9366 dynamic_linker="$host_os dld.so"
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 if test "X$HPUX_IA64_MODE" = X32; then
9372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9373 else
9374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9375 fi
9376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9377 ;;
9378 hppa*64*)
9379 shrext_cmds='.sl'
9380 hardcode_into_libs=yes
9381 dynamic_linker="$host_os dld.sl"
9382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9388 ;;
9389 *)
9390 shrext_cmds='.sl'
9391 dynamic_linker="$host_os dld.sl"
9392 shlibpath_var=SHLIB_PATH
9393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 ;;
9397 esac
9398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9399 postinstall_cmds='chmod 555 $lib'
9400 ;;
9401
9402 interix[3-9]*)
9403 version_type=linux
9404 need_lib_prefix=no
9405 need_version=no
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=no
9411 hardcode_into_libs=yes
9412 ;;
9413
9414 irix5* | irix6* | nonstopux*)
9415 case $host_os in
9416 nonstopux*) version_type=nonstopux ;;
9417 *)
9418 if test "$lt_cv_prog_gnu_ld" = yes; then
9419 version_type=linux
9420 else
9421 version_type=irix
9422 fi ;;
9423 esac
9424 need_lib_prefix=no
9425 need_version=no
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9428 case $host_os in
9429 irix5* | nonstopux*)
9430 libsuff= shlibsuff=
9431 ;;
9432 *)
9433 case $LD in # libtool.m4 will add one of these switches to LD
9434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9435 libsuff= shlibsuff= libmagic=32-bit;;
9436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9437 libsuff=32 shlibsuff=N32 libmagic=N32;;
9438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9440 *) libsuff= shlibsuff= libmagic=never-match;;
9441 esac
9442 ;;
9443 esac
9444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9445 shlibpath_overrides_runpath=no
9446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9448 hardcode_into_libs=yes
9449 ;;
9450
9451 # No shared lib support for Linux oldld, aout, or coff.
9452 linux*oldld* | linux*aout* | linux*coff*)
9453 dynamic_linker=no
9454 ;;
9455
9456 # This must be Linux ELF.
9457 linux* | k*bsd*-gnu)
9458 version_type=linux
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=no
9466 # This implies no fast_install, which is unacceptable.
9467 # Some rework will be needed to allow for fast_install
9468 # before this can be enabled.
9469 hardcode_into_libs=yes
9470
9471 # Append ld.so.conf contents to the search path
9472 if test -f /etc/ld.so.conf; then
9473 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9474 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9475 fi
9476
9477 # We used to test for /lib/ld.so.1 and disable shared libraries on
9478 # powerpc, because MkLinux only supported shared libraries with the
9479 # GNU dynamic linker. Since this was broken with cross compilers,
9480 # most powerpc-linux boxes support dynamic linking these days and
9481 # people can always --disable-shared, the test was removed, and we
9482 # assume the GNU/Linux dynamic linker is in use.
9483 dynamic_linker='GNU/Linux ld.so'
9484 ;;
9485
9486 netbsdelf*-gnu)
9487 version_type=linux
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='NetBSD ld.elf_so'
9496 ;;
9497
9498 netbsd*)
9499 version_type=sunos
9500 need_lib_prefix=no
9501 need_version=no
9502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9505 dynamic_linker='NetBSD (a.out) ld.so'
9506 else
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 dynamic_linker='NetBSD ld.elf_so'
9510 fi
9511 shlibpath_var=LD_LIBRARY_PATH
9512 shlibpath_overrides_runpath=yes
9513 hardcode_into_libs=yes
9514 ;;
9515
9516 newsos6)
9517 version_type=linux
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=yes
9521 ;;
9522
9523 nto-qnx*)
9524 version_type=linux
9525 need_lib_prefix=no
9526 need_version=no
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 shlibpath_var=LD_LIBRARY_PATH
9530 shlibpath_overrides_runpath=yes
9531 ;;
9532
9533 openbsd*)
9534 version_type=sunos
9535 sys_lib_dlsearch_path_spec="/usr/lib"
9536 need_lib_prefix=no
9537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9538 case $host_os in
9539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9540 *) need_version=no ;;
9541 esac
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9546 case $host_os in
9547 openbsd2.[89] | openbsd2.[89].*)
9548 shlibpath_overrides_runpath=no
9549 ;;
9550 *)
9551 shlibpath_overrides_runpath=yes
9552 ;;
9553 esac
9554 else
9555 shlibpath_overrides_runpath=yes
9556 fi
9557 ;;
9558
9559 os2*)
9560 libname_spec='$name'
9561 shrext_cmds=".dll"
9562 need_lib_prefix=no
9563 library_names_spec='$libname${shared_ext} $libname.a'
9564 dynamic_linker='OS/2 ld.exe'
9565 shlibpath_var=LIBPATH
9566 ;;
9567
9568 osf3* | osf4* | osf5*)
9569 version_type=osf
9570 need_lib_prefix=no
9571 need_version=no
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9577 ;;
9578
9579 rdos*)
9580 dynamic_linker=no
9581 ;;
9582
9583 solaris*)
9584 version_type=linux
9585 need_lib_prefix=no
9586 need_version=no
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 shlibpath_overrides_runpath=yes
9591 hardcode_into_libs=yes
9592 # ldd complains unless libraries are executable
9593 postinstall_cmds='chmod +x $lib'
9594 ;;
9595
9596 sunos4*)
9597 version_type=sunos
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 shlibpath_overrides_runpath=yes
9602 if test "$with_gnu_ld" = yes; then
9603 need_lib_prefix=no
9604 fi
9605 need_version=yes
9606 ;;
9607
9608 sysv4 | sysv4.3*)
9609 version_type=linux
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 case $host_vendor in
9614 sni)
9615 shlibpath_overrides_runpath=no
9616 need_lib_prefix=no
9617 export_dynamic_flag_spec='${wl}-Blargedynsym'
9618 runpath_var=LD_RUN_PATH
9619 ;;
9620 siemens)
9621 need_lib_prefix=no
9622 ;;
9623 motorola)
9624 need_lib_prefix=no
9625 need_version=no
9626 shlibpath_overrides_runpath=no
9627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9628 ;;
9629 esac
9630 ;;
9631
9632 sysv4*MP*)
9633 if test -d /usr/nec ;then
9634 version_type=linux
9635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9636 soname_spec='$libname${shared_ext}.$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 fi
9639 ;;
9640
9641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9642 version_type=freebsd-elf
9643 need_lib_prefix=no
9644 need_version=no
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 hardcode_into_libs=yes
9649 if test "$with_gnu_ld" = yes; then
9650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9651 shlibpath_overrides_runpath=no
9652 else
9653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9654 shlibpath_overrides_runpath=yes
9655 case $host_os in
9656 sco3.2v5*)
9657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9658 ;;
9659 esac
9660 fi
9661 sys_lib_dlsearch_path_spec='/usr/lib'
9662 ;;
9663
9664 uts4*)
9665 version_type=linux
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 shlibpath_var=LD_LIBRARY_PATH
9669 ;;
9670
9671 *)
9672 dynamic_linker=no
9673 ;;
9674 esac
9675 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9676 echo "${ECHO_T}$dynamic_linker" >&6; }
9677 test "$dynamic_linker" = no && can_build_shared=no
9678
9679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9680 if test "$GCC" = yes; then
9681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9682 fi
9683
9684 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9685 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9686 hardcode_action=
9687 if test -n "$hardcode_libdir_flag_spec" || \
9688 test -n "$runpath_var" || \
9689 test "X$hardcode_automatic" = "Xyes" ; then
9690
9691 # We can hardcode non-existant directories.
9692 if test "$hardcode_direct" != no &&
9693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9694 # have to relink, otherwise we might link with an installed library
9695 # when we should be linking with a yet-to-be-installed one
9696 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9697 test "$hardcode_minus_L" != no; then
9698 # Linking always hardcodes the temporary library directory.
9699 hardcode_action=relink
9700 else
9701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9702 hardcode_action=immediate
9703 fi
9704 else
9705 # We cannot hardcode anything, or else we can only hardcode existing
9706 # directories.
9707 hardcode_action=unsupported
9708 fi
9709 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9710 echo "${ECHO_T}$hardcode_action" >&6; }
9711
9712 if test "$hardcode_action" = relink; then
9713 # Fast installation is not supported
9714 enable_fast_install=no
9715 elif test "$shlibpath_overrides_runpath" = yes ||
9716 test "$enable_shared" = no; then
9717 # Fast installation is not necessary
9718 enable_fast_install=needless
9719 fi
9720
9721 striplib=
9722 old_striplib=
9723 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9724 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9725 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9726 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9727 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9728 { echo "$as_me:$LINENO: result: yes" >&5
9729 echo "${ECHO_T}yes" >&6; }
9730 else
9731 # FIXME - insert some real tests, host_os isn't really good enough
9732 case $host_os in
9733 darwin*)
9734 if test -n "$STRIP" ; then
9735 striplib="$STRIP -x"
9736 old_striplib="$STRIP -S"
9737 { echo "$as_me:$LINENO: result: yes" >&5
9738 echo "${ECHO_T}yes" >&6; }
9739 else
9740 { echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6; }
9742 fi
9743 ;;
9744 *)
9745 { echo "$as_me:$LINENO: result: no" >&5
9746 echo "${ECHO_T}no" >&6; }
9747 ;;
9748 esac
9749 fi
9750
9751 if test "x$enable_dlopen" != xyes; then
9752 enable_dlopen=unknown
9753 enable_dlopen_self=unknown
9754 enable_dlopen_self_static=unknown
9755 else
9756 lt_cv_dlopen=no
9757 lt_cv_dlopen_libs=
9758
9759 case $host_os in
9760 beos*)
9761 lt_cv_dlopen="load_add_on"
9762 lt_cv_dlopen_libs=
9763 lt_cv_dlopen_self=yes
9764 ;;
9765
9766 mingw* | pw32*)
9767 lt_cv_dlopen="LoadLibrary"
9768 lt_cv_dlopen_libs=
9769 ;;
9770
9771 cygwin*)
9772 lt_cv_dlopen="dlopen"
9773 lt_cv_dlopen_libs=
9774 ;;
9775
9776 darwin*)
9777 # if libdl is installed we need to link against it
9778 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9779 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9780 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-ldl $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char dlopen ();
9799 int
9800 main ()
9801 {
9802 return dlopen ();
9803 ;
9804 return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (ac_try="$ac_link"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_link") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && {
9821 test -z "$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 } && test -s conftest$ac_exeext &&
9824 $as_test_x conftest$ac_exeext; then
9825 ac_cv_lib_dl_dlopen=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 ac_cv_lib_dl_dlopen=no
9831 fi
9832
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_check_lib_save_LIBS
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9838 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9839 if test $ac_cv_lib_dl_dlopen = yes; then
9840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9841 else
9842
9843 lt_cv_dlopen="dyld"
9844 lt_cv_dlopen_libs=
9845 lt_cv_dlopen_self=yes
9846
9847 fi
9848
9849 ;;
9850
9851 *)
9852 { echo "$as_me:$LINENO: checking for shl_load" >&5
9853 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9854 if test "${ac_cv_func_shl_load+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9865 #define shl_load innocuous_shl_load
9866
9867 /* System header to define __stub macros and hopefully few prototypes,
9868 which can conflict with char shl_load (); below.
9869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9870 <limits.h> exists even on freestanding compilers. */
9871
9872 #ifdef __STDC__
9873 # include <limits.h>
9874 #else
9875 # include <assert.h>
9876 #endif
9877
9878 #undef shl_load
9879
9880 /* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 char shl_load ();
9887 /* The GNU C library defines this for functions which it implements
9888 to always fail with ENOSYS. Some functions are actually named
9889 something starting with __ and the normal name is an alias. */
9890 #if defined __stub_shl_load || defined __stub___shl_load
9891 choke me
9892 #endif
9893
9894 int
9895 main ()
9896 {
9897 return shl_load ();
9898 ;
9899 return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9904 case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest$ac_exeext &&
9919 $as_test_x conftest$ac_exeext; then
9920 ac_cv_func_shl_load=yes
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_cv_func_shl_load=no
9926 fi
9927
9928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9929 conftest$ac_exeext conftest.$ac_ext
9930 fi
9931 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9933 if test $ac_cv_func_shl_load = yes; then
9934 lt_cv_dlopen="shl_load"
9935 else
9936 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 ac_check_lib_save_LIBS=$LIBS
9942 LIBS="-ldld $LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char shl_load ();
9957 int
9958 main ()
9959 {
9960 return shl_load ();
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (ac_try="$ac_link"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext &&
9982 $as_test_x conftest$ac_exeext; then
9983 ac_cv_lib_dld_shl_load=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 ac_cv_lib_dld_shl_load=no
9989 fi
9990
9991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9997 if test $ac_cv_lib_dld_shl_load = yes; then
9998 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9999 else
10000 { echo "$as_me:$LINENO: checking for dlopen" >&5
10001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10002 if test "${ac_cv_func_dlopen+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define dlopen innocuous_dlopen
10014
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char dlopen (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10019
10020 #ifdef __STDC__
10021 # include <limits.h>
10022 #else
10023 # include <assert.h>
10024 #endif
10025
10026 #undef dlopen
10027
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char dlopen ();
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub_dlopen || defined __stub___dlopen
10039 choke me
10040 #endif
10041
10042 int
10043 main ()
10044 {
10045 return dlopen ();
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext &&
10067 $as_test_x conftest$ac_exeext; then
10068 ac_cv_func_dlopen=yes
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_cv_func_dlopen=no
10074 fi
10075
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077 conftest$ac_exeext conftest.$ac_ext
10078 fi
10079 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10081 if test $ac_cv_func_dlopen = yes; then
10082 lt_cv_dlopen="dlopen"
10083 else
10084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldl $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char dlopen ();
10105 int
10106 main ()
10107 {
10108 return dlopen ();
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_dl_dlopen=yes
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 ac_cv_lib_dl_dlopen=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10145 if test $ac_cv_lib_dl_dlopen = yes; then
10146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10147 else
10148 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10149 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10150 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lsvld $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h. */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 char dlopen ();
10169 int
10170 main ()
10171 {
10172 return dlopen ();
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
10185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && {
10191 test -z "$ac_c_werror_flag" ||
10192 test ! -s conftest.err
10193 } && test -s conftest$ac_exeext &&
10194 $as_test_x conftest$ac_exeext; then
10195 ac_cv_lib_svld_dlopen=yes
10196 else
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_lib_svld_dlopen=no
10201 fi
10202
10203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10208 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10209 if test $ac_cv_lib_svld_dlopen = yes; then
10210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10211 else
10212 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10213 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10214 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-ldld $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 char dld_link ();
10233 int
10234 main ()
10235 {
10236 return dld_link ();
10237 ;
10238 return 0;
10239 }
10240 _ACEOF
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (ac_try="$ac_link"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_link") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext &&
10258 $as_test_x conftest$ac_exeext; then
10259 ac_cv_lib_dld_dld_link=yes
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_lib_dld_dld_link=no
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10273 if test $ac_cv_lib_dld_dld_link = yes; then
10274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10275 fi
10276
10277
10278 fi
10279
10280
10281 fi
10282
10283
10284 fi
10285
10286
10287 fi
10288
10289
10290 fi
10291
10292 ;;
10293 esac
10294
10295 if test "x$lt_cv_dlopen" != xno; then
10296 enable_dlopen=yes
10297 else
10298 enable_dlopen=no
10299 fi
10300
10301 case $lt_cv_dlopen in
10302 dlopen)
10303 save_CPPFLAGS="$CPPFLAGS"
10304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10305
10306 save_LDFLAGS="$LDFLAGS"
10307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10308
10309 save_LIBS="$LIBS"
10310 LIBS="$lt_cv_dlopen_libs $LIBS"
10311
10312 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10313 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10314 if test "${lt_cv_dlopen_self+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317 if test "$cross_compiling" = yes; then :
10318 lt_cv_dlopen_self=cross
10319 else
10320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10321 lt_status=$lt_dlunknown
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10323 "configure"
10324 #include "confdefs.h"
10325
10326 #if HAVE_DLFCN_H
10327 #include <dlfcn.h>
10328 #endif
10329
10330 #include <stdio.h>
10331
10332 #ifdef RTLD_GLOBAL
10333 # define LT_DLGLOBAL RTLD_GLOBAL
10334 #else
10335 # ifdef DL_GLOBAL
10336 # define LT_DLGLOBAL DL_GLOBAL
10337 # else
10338 # define LT_DLGLOBAL 0
10339 # endif
10340 #endif
10341
10342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10343 find out it does not work in some platform. */
10344 #ifndef LT_DLLAZY_OR_NOW
10345 # ifdef RTLD_LAZY
10346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10347 # else
10348 # ifdef DL_LAZY
10349 # define LT_DLLAZY_OR_NOW DL_LAZY
10350 # else
10351 # ifdef RTLD_NOW
10352 # define LT_DLLAZY_OR_NOW RTLD_NOW
10353 # else
10354 # ifdef DL_NOW
10355 # define LT_DLLAZY_OR_NOW DL_NOW
10356 # else
10357 # define LT_DLLAZY_OR_NOW 0
10358 # endif
10359 # endif
10360 # endif
10361 # endif
10362 #endif
10363
10364 #ifdef __cplusplus
10365 extern "C" void exit (int);
10366 #endif
10367
10368 void fnord() { int i=42;}
10369 int main ()
10370 {
10371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372 int status = $lt_dlunknown;
10373
10374 if (self)
10375 {
10376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378 /* dlclose (self); */
10379 }
10380 else
10381 puts (dlerror ());
10382
10383 exit (status);
10384 }
10385 EOF
10386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387 (eval $ac_link) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10391 (./conftest; exit; ) >&5 2>/dev/null
10392 lt_status=$?
10393 case x$lt_status in
10394 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10395 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10396 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10397 esac
10398 else :
10399 # compilation failed
10400 lt_cv_dlopen_self=no
10401 fi
10402 fi
10403 rm -fr conftest*
10404
10405
10406 fi
10407 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10408 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10409
10410 if test "x$lt_cv_dlopen_self" = xyes; then
10411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10412 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10413 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10414 if test "${lt_cv_dlopen_self_static+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 if test "$cross_compiling" = yes; then :
10418 lt_cv_dlopen_self_static=cross
10419 else
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10423 "configure"
10424 #include "confdefs.h"
10425
10426 #if HAVE_DLFCN_H
10427 #include <dlfcn.h>
10428 #endif
10429
10430 #include <stdio.h>
10431
10432 #ifdef RTLD_GLOBAL
10433 # define LT_DLGLOBAL RTLD_GLOBAL
10434 #else
10435 # ifdef DL_GLOBAL
10436 # define LT_DLGLOBAL DL_GLOBAL
10437 # else
10438 # define LT_DLGLOBAL 0
10439 # endif
10440 #endif
10441
10442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444 #ifndef LT_DLLAZY_OR_NOW
10445 # ifdef RTLD_LAZY
10446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10447 # else
10448 # ifdef DL_LAZY
10449 # define LT_DLLAZY_OR_NOW DL_LAZY
10450 # else
10451 # ifdef RTLD_NOW
10452 # define LT_DLLAZY_OR_NOW RTLD_NOW
10453 # else
10454 # ifdef DL_NOW
10455 # define LT_DLLAZY_OR_NOW DL_NOW
10456 # else
10457 # define LT_DLLAZY_OR_NOW 0
10458 # endif
10459 # endif
10460 # endif
10461 # endif
10462 #endif
10463
10464 #ifdef __cplusplus
10465 extern "C" void exit (int);
10466 #endif
10467
10468 void fnord() { int i=42;}
10469 int main ()
10470 {
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10473
10474 if (self)
10475 {
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10479 }
10480 else
10481 puts (dlerror ());
10482
10483 exit (status);
10484 }
10485 EOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10492 lt_status=$?
10493 case x$lt_status in
10494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10497 esac
10498 else :
10499 # compilation failed
10500 lt_cv_dlopen_self_static=no
10501 fi
10502 fi
10503 rm -fr conftest*
10504
10505
10506 fi
10507 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10508 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10509 fi
10510
10511 CPPFLAGS="$save_CPPFLAGS"
10512 LDFLAGS="$save_LDFLAGS"
10513 LIBS="$save_LIBS"
10514 ;;
10515 esac
10516
10517 case $lt_cv_dlopen_self in
10518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10519 *) enable_dlopen_self=unknown ;;
10520 esac
10521
10522 case $lt_cv_dlopen_self_static in
10523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10524 *) enable_dlopen_self_static=unknown ;;
10525 esac
10526 fi
10527
10528
10529 # Report which library types will actually be built
10530 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10531 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10532 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10533 echo "${ECHO_T}$can_build_shared" >&6; }
10534
10535 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10536 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10537 test "$can_build_shared" = "no" && enable_shared=no
10538
10539 # On AIX, shared libraries and static libraries use the same namespace, and
10540 # are all built from PIC.
10541 case $host_os in
10542 aix3*)
10543 test "$enable_shared" = yes && enable_static=no
10544 if test -n "$RANLIB"; then
10545 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10546 postinstall_cmds='$RANLIB $lib'
10547 fi
10548 ;;
10549
10550 aix4* | aix5*)
10551 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10552 test "$enable_shared" = yes && enable_static=no
10553 fi
10554 ;;
10555 esac
10556 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10557 echo "${ECHO_T}$enable_shared" >&6; }
10558
10559 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10560 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10561 # Make sure either enable_shared or enable_static is yes.
10562 test "$enable_shared" = yes || enable_static=yes
10563 { echo "$as_me:$LINENO: result: $enable_static" >&5
10564 echo "${ECHO_T}$enable_static" >&6; }
10565
10566 # The else clause should only fire when bootstrapping the
10567 # libtool distribution, otherwise you forgot to ship ltmain.sh
10568 # with your package, and you will get complaints that there are
10569 # no rules to generate ltmain.sh.
10570 if test -f "$ltmain"; then
10571 # See if we are running on zsh, and set the options which allow our commands through
10572 # without removal of \ escapes.
10573 if test -n "${ZSH_VERSION+set}" ; then
10574 setopt NO_GLOB_SUBST
10575 fi
10576 # Now quote all the things that may contain metacharacters while being
10577 # careful not to overquote the AC_SUBSTed values. We take copies of the
10578 # variables and quote the copies for generation of the libtool script.
10579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10580 SED SHELL STRIP \
10581 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10582 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10583 deplibs_check_method reload_flag reload_cmds need_locks \
10584 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10585 lt_cv_sys_global_symbol_to_c_name_address \
10586 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10587 old_postinstall_cmds old_postuninstall_cmds \
10588 compiler \
10589 CC \
10590 LD \
10591 lt_prog_compiler_wl \
10592 lt_prog_compiler_pic \
10593 lt_prog_compiler_static \
10594 lt_prog_compiler_no_builtin_flag \
10595 export_dynamic_flag_spec \
10596 thread_safe_flag_spec \
10597 whole_archive_flag_spec \
10598 enable_shared_with_static_runtimes \
10599 old_archive_cmds \
10600 old_archive_from_new_cmds \
10601 predep_objects \
10602 postdep_objects \
10603 predeps \
10604 postdeps \
10605 compiler_lib_search_path \
10606 archive_cmds \
10607 archive_expsym_cmds \
10608 postinstall_cmds \
10609 postuninstall_cmds \
10610 old_archive_from_expsyms_cmds \
10611 allow_undefined_flag \
10612 no_undefined_flag \
10613 export_symbols_cmds \
10614 hardcode_libdir_flag_spec \
10615 hardcode_libdir_flag_spec_ld \
10616 hardcode_libdir_separator \
10617 hardcode_automatic \
10618 module_cmds \
10619 module_expsym_cmds \
10620 lt_cv_prog_compiler_c_o \
10621 fix_srcfile_path \
10622 exclude_expsyms \
10623 include_expsyms; do
10624
10625 case $var in
10626 old_archive_cmds | \
10627 old_archive_from_new_cmds | \
10628 archive_cmds | \
10629 archive_expsym_cmds | \
10630 module_cmds | \
10631 module_expsym_cmds | \
10632 old_archive_from_expsyms_cmds | \
10633 export_symbols_cmds | \
10634 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10635 postinstall_cmds | postuninstall_cmds | \
10636 old_postinstall_cmds | old_postuninstall_cmds | \
10637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10638 # Double-quote double-evaled strings.
10639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10640 ;;
10641 *)
10642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10643 ;;
10644 esac
10645 done
10646
10647 case $lt_echo in
10648 *'\$0 --fallback-echo"')
10649 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10650 ;;
10651 esac
10652
10653 cfgfile="${ofile}T"
10654 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10655 $rm -f "$cfgfile"
10656 { echo "$as_me:$LINENO: creating $ofile" >&5
10657 echo "$as_me: creating $ofile" >&6;}
10658
10659 cat <<__EOF__ >> "$cfgfile"
10660 #! $SHELL
10661
10662 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10663 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10664 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10665 #
10666 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10667 # Free Software Foundation, Inc.
10668 #
10669 # This file is part of GNU Libtool:
10670 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10671 #
10672 # This program is free software; you can redistribute it and/or modify
10673 # it under the terms of the GNU General Public License as published by
10674 # the Free Software Foundation; either version 2 of the License, or
10675 # (at your option) any later version.
10676 #
10677 # This program is distributed in the hope that it will be useful, but
10678 # WITHOUT ANY WARRANTY; without even the implied warranty of
10679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10680 # General Public License for more details.
10681 #
10682 # You should have received a copy of the GNU General Public License
10683 # along with this program; if not, write to the Free Software
10684 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10685 #
10686 # As a special exception to the GNU General Public License, if you
10687 # distribute this file as part of a program that contains a
10688 # configuration script generated by Autoconf, you may include it under
10689 # the same distribution terms that you use for the rest of that program.
10690
10691 # A sed program that does not truncate output.
10692 SED=$lt_SED
10693
10694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10695 Xsed="$SED -e 1s/^X//"
10696
10697 # The HP-UX ksh and POSIX shell print the target directory to stdout
10698 # if CDPATH is set.
10699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10700
10701 # The names of the tagged configurations supported by this script.
10702 available_tags=
10703
10704 # ### BEGIN LIBTOOL CONFIG
10705
10706 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10707
10708 # Shell to use when invoking shell scripts.
10709 SHELL=$lt_SHELL
10710
10711 # Whether or not to build shared libraries.
10712 build_libtool_libs=$enable_shared
10713
10714 # Whether or not to build static libraries.
10715 build_old_libs=$enable_static
10716
10717 # Whether or not to add -lc for building shared libraries.
10718 build_libtool_need_lc=$archive_cmds_need_lc
10719
10720 # Whether or not to disallow shared libs when runtime libs are static
10721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10722
10723 # Whether or not to optimize for fast installation.
10724 fast_install=$enable_fast_install
10725
10726 # The host system.
10727 host_alias=$host_alias
10728 host=$host
10729 host_os=$host_os
10730
10731 # The build system.
10732 build_alias=$build_alias
10733 build=$build
10734 build_os=$build_os
10735
10736 # An echo program that does not interpret backslashes.
10737 echo=$lt_echo
10738
10739 # The archiver.
10740 AR=$lt_AR
10741 AR_FLAGS=$lt_AR_FLAGS
10742
10743 # A C compiler.
10744 LTCC=$lt_LTCC
10745
10746 # LTCC compiler flags.
10747 LTCFLAGS=$lt_LTCFLAGS
10748
10749 # A language-specific compiler.
10750 CC=$lt_compiler
10751
10752 # Is the compiler the GNU C compiler?
10753 with_gcc=$GCC
10754
10755 # An ERE matcher.
10756 EGREP=$lt_EGREP
10757
10758 # The linker used to build libraries.
10759 LD=$lt_LD
10760
10761 # Whether we need hard or soft links.
10762 LN_S=$lt_LN_S
10763
10764 # A BSD-compatible nm program.
10765 NM=$lt_NM
10766
10767 # A symbol stripping program
10768 STRIP=$lt_STRIP
10769
10770 # Used to examine libraries when file_magic_cmd begins "file"
10771 MAGIC_CMD=$MAGIC_CMD
10772
10773 # Used on cygwin: DLL creation program.
10774 DLLTOOL="$DLLTOOL"
10775
10776 # Used on cygwin: object dumper.
10777 OBJDUMP="$OBJDUMP"
10778
10779 # Used on cygwin: assembler.
10780 AS="$AS"
10781
10782 # The name of the directory that contains temporary libtool files.
10783 objdir=$objdir
10784
10785 # How to create reloadable object files.
10786 reload_flag=$lt_reload_flag
10787 reload_cmds=$lt_reload_cmds
10788
10789 # How to pass a linker flag through the compiler.
10790 wl=$lt_lt_prog_compiler_wl
10791
10792 # Object file suffix (normally "o").
10793 objext="$ac_objext"
10794
10795 # Old archive suffix (normally "a").
10796 libext="$libext"
10797
10798 # Shared library suffix (normally ".so").
10799 shrext_cmds='$shrext_cmds'
10800
10801 # Executable file suffix (normally "").
10802 exeext="$exeext"
10803
10804 # Additional compiler flags for building library objects.
10805 pic_flag=$lt_lt_prog_compiler_pic
10806 pic_mode=$pic_mode
10807
10808 # What is the maximum length of a command?
10809 max_cmd_len=$lt_cv_sys_max_cmd_len
10810
10811 # Does compiler simultaneously support -c and -o options?
10812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10813
10814 # Must we lock files when doing compilation?
10815 need_locks=$lt_need_locks
10816
10817 # Do we need the lib prefix for modules?
10818 need_lib_prefix=$need_lib_prefix
10819
10820 # Do we need a version for libraries?
10821 need_version=$need_version
10822
10823 # Whether dlopen is supported.
10824 dlopen_support=$enable_dlopen
10825
10826 # Whether dlopen of programs is supported.
10827 dlopen_self=$enable_dlopen_self
10828
10829 # Whether dlopen of statically linked programs is supported.
10830 dlopen_self_static=$enable_dlopen_self_static
10831
10832 # Compiler flag to prevent dynamic linking.
10833 link_static_flag=$lt_lt_prog_compiler_static
10834
10835 # Compiler flag to turn off builtin functions.
10836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10837
10838 # Compiler flag to allow reflexive dlopens.
10839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10840
10841 # Compiler flag to generate shared objects directly from archives.
10842 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10843
10844 # Compiler flag to generate thread-safe objects.
10845 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10846
10847 # Library versioning type.
10848 version_type=$version_type
10849
10850 # Format of library name prefix.
10851 libname_spec=$lt_libname_spec
10852
10853 # List of archive names. First name is the real one, the rest are links.
10854 # The last name is the one that the linker finds with -lNAME.
10855 library_names_spec=$lt_library_names_spec
10856
10857 # The coded name of the library, if different from the real name.
10858 soname_spec=$lt_soname_spec
10859
10860 # Commands used to build and install an old-style archive.
10861 RANLIB=$lt_RANLIB
10862 old_archive_cmds=$lt_old_archive_cmds
10863 old_postinstall_cmds=$lt_old_postinstall_cmds
10864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10865
10866 # Create an old-style archive from a shared archive.
10867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10868
10869 # Create a temporary old-style archive to link instead of a shared archive.
10870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10871
10872 # Commands used to build and install a shared archive.
10873 archive_cmds=$lt_archive_cmds
10874 archive_expsym_cmds=$lt_archive_expsym_cmds
10875 postinstall_cmds=$lt_postinstall_cmds
10876 postuninstall_cmds=$lt_postuninstall_cmds
10877
10878 # Commands used to build a loadable module (assumed same as above if empty)
10879 module_cmds=$lt_module_cmds
10880 module_expsym_cmds=$lt_module_expsym_cmds
10881
10882 # Commands to strip libraries.
10883 old_striplib=$lt_old_striplib
10884 striplib=$lt_striplib
10885
10886 # Dependencies to place before the objects being linked to create a
10887 # shared library.
10888 predep_objects=$lt_predep_objects
10889
10890 # Dependencies to place after the objects being linked to create a
10891 # shared library.
10892 postdep_objects=$lt_postdep_objects
10893
10894 # Dependencies to place before the objects being linked to create a
10895 # shared library.
10896 predeps=$lt_predeps
10897
10898 # Dependencies to place after the objects being linked to create a
10899 # shared library.
10900 postdeps=$lt_postdeps
10901
10902 # The library search path used internally by the compiler when linking
10903 # a shared library.
10904 compiler_lib_search_path=$lt_compiler_lib_search_path
10905
10906 # Method to check whether dependent libraries are shared objects.
10907 deplibs_check_method=$lt_deplibs_check_method
10908
10909 # Command to use when deplibs_check_method == file_magic.
10910 file_magic_cmd=$lt_file_magic_cmd
10911
10912 # Flag that allows shared libraries with undefined symbols to be built.
10913 allow_undefined_flag=$lt_allow_undefined_flag
10914
10915 # Flag that forces no undefined symbols.
10916 no_undefined_flag=$lt_no_undefined_flag
10917
10918 # Commands used to finish a libtool library installation in a directory.
10919 finish_cmds=$lt_finish_cmds
10920
10921 # Same as above, but a single script fragment to be evaled but not shown.
10922 finish_eval=$lt_finish_eval
10923
10924 # Take the output of nm and produce a listing of raw symbols and C names.
10925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10926
10927 # Transform the output of nm in a proper C declaration
10928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10929
10930 # Transform the output of nm in a C name address pair
10931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10932
10933 # This is the shared library runtime path variable.
10934 runpath_var=$runpath_var
10935
10936 # This is the shared library path variable.
10937 shlibpath_var=$shlibpath_var
10938
10939 # Is shlibpath searched before the hard-coded library search path?
10940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10941
10942 # How to hardcode a shared library path into an executable.
10943 hardcode_action=$hardcode_action
10944
10945 # Whether we should hardcode library paths into libraries.
10946 hardcode_into_libs=$hardcode_into_libs
10947
10948 # Flag to hardcode \$libdir into a binary during linking.
10949 # This must work even if \$libdir does not exist.
10950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10951
10952 # If ld is used when linking, flag to hardcode \$libdir into
10953 # a binary during linking. This must work even if \$libdir does
10954 # not exist.
10955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10956
10957 # Whether we need a single -rpath flag with a separated argument.
10958 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10959
10960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10961 # resulting binary.
10962 hardcode_direct=$hardcode_direct
10963
10964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10965 # resulting binary.
10966 hardcode_minus_L=$hardcode_minus_L
10967
10968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10969 # the resulting binary.
10970 hardcode_shlibpath_var=$hardcode_shlibpath_var
10971
10972 # Set to yes if building a shared library automatically hardcodes DIR into the library
10973 # and all subsequent libraries and executables linked against it.
10974 hardcode_automatic=$hardcode_automatic
10975
10976 # Variables whose values should be saved in libtool wrapper scripts and
10977 # restored at relink time.
10978 variables_saved_for_relink="$variables_saved_for_relink"
10979
10980 # Whether libtool must link a program against all its dependency libraries.
10981 link_all_deplibs=$link_all_deplibs
10982
10983 # Compile-time system search path for libraries
10984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10985
10986 # Run-time system search path for libraries
10987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10988
10989 # Fix the shell variable \$srcfile for the compiler.
10990 fix_srcfile_path=$lt_fix_srcfile_path
10991
10992 # Set to yes if exported symbols are required.
10993 always_export_symbols=$always_export_symbols
10994
10995 # The commands to list exported symbols.
10996 export_symbols_cmds=$lt_export_symbols_cmds
10997
10998 # The commands to extract the exported symbol list from a shared archive.
10999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11000
11001 # Symbols that should not be listed in the preloaded symbols.
11002 exclude_expsyms=$lt_exclude_expsyms
11003
11004 # Symbols that must always be exported.
11005 include_expsyms=$lt_include_expsyms
11006
11007 # ### END LIBTOOL CONFIG
11008
11009 __EOF__
11010
11011
11012 case $host_os in
11013 aix3*)
11014 cat <<\EOF >> "$cfgfile"
11015
11016 # AIX sometimes has problems with the GCC collect2 program. For some
11017 # reason, if we set the COLLECT_NAMES environment variable, the problems
11018 # vanish in a puff of smoke.
11019 if test "X${COLLECT_NAMES+set}" != Xset; then
11020 COLLECT_NAMES=
11021 export COLLECT_NAMES
11022 fi
11023 EOF
11024 ;;
11025 esac
11026
11027 # We use sed instead of cat because bash on DJGPP gets confused if
11028 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11029 # text mode, it properly converts lines to CR/LF. This bash problem
11030 # is reportedly fixed, but why not run on old versions too?
11031 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11032
11033 mv -f "$cfgfile" "$ofile" || \
11034 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11035 chmod +x "$ofile"
11036
11037 else
11038 # If there is no Makefile yet, we rely on a make rule to execute
11039 # `config.status --recheck' to rerun these tests and create the
11040 # libtool script then.
11041 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11042 if test -f "$ltmain_in"; then
11043 test -f Makefile && make "$ltmain"
11044 fi
11045 fi
11046
11047
11048 ac_ext=c
11049 ac_cpp='$CPP $CPPFLAGS'
11050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11053
11054 CC="$lt_save_CC"
11055
11056
11057 # Check whether --with-tags was given.
11058 if test "${with_tags+set}" = set; then
11059 withval=$with_tags; tagnames="$withval"
11060 fi
11061
11062
11063 if test -f "$ltmain" && test -n "$tagnames"; then
11064 if test ! -f "${ofile}"; then
11065 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11066 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11067 fi
11068
11069 if test -z "$LTCC"; then
11070 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11071 if test -z "$LTCC"; then
11072 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11073 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11074 else
11075 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11076 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11077 fi
11078 fi
11079 if test -z "$LTCFLAGS"; then
11080 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11081 fi
11082
11083 # Extract list of available tagged configurations in $ofile.
11084 # Note that this assumes the entire list is on one line.
11085 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11086
11087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088 for tagname in $tagnames; do
11089 IFS="$lt_save_ifs"
11090 # Check whether tagname contains only valid characters
11091 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11092 "") ;;
11093 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11094 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11095 { (exit 1); exit 1; }; }
11096 ;;
11097 esac
11098
11099 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11100 then
11101 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11102 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11103 { (exit 1); exit 1; }; }
11104 fi
11105
11106 # Update the list of available tags.
11107 if test -n "$tagname"; then
11108 echo appending configuration tag \"$tagname\" to $ofile
11109
11110 case $tagname in
11111 CXX)
11112 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11113 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11114 (test "X$CXX" != "Xg++"))) ; then
11115 ac_ext=cpp
11116 ac_cpp='$CXXCPP $CPPFLAGS'
11117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11120
11121
11122
11123
11124 archive_cmds_need_lc_CXX=no
11125 allow_undefined_flag_CXX=
11126 always_export_symbols_CXX=no
11127 archive_expsym_cmds_CXX=
11128 export_dynamic_flag_spec_CXX=
11129 hardcode_direct_CXX=no
11130 hardcode_libdir_flag_spec_CXX=
11131 hardcode_libdir_flag_spec_ld_CXX=
11132 hardcode_libdir_separator_CXX=
11133 hardcode_minus_L_CXX=no
11134 hardcode_shlibpath_var_CXX=unsupported
11135 hardcode_automatic_CXX=no
11136 module_cmds_CXX=
11137 module_expsym_cmds_CXX=
11138 link_all_deplibs_CXX=unknown
11139 old_archive_cmds_CXX=$old_archive_cmds
11140 no_undefined_flag_CXX=
11141 whole_archive_flag_spec_CXX=
11142 enable_shared_with_static_runtimes_CXX=no
11143
11144 # Dependencies to place before and after the object being linked:
11145 predep_objects_CXX=
11146 postdep_objects_CXX=
11147 predeps_CXX=
11148 postdeps_CXX=
11149 compiler_lib_search_path_CXX=
11150
11151 # Source file extension for C++ test sources.
11152 ac_ext=cpp
11153
11154 # Object file extension for compiled C++ test sources.
11155 objext=o
11156 objext_CXX=$objext
11157
11158 # Code to be used in simple compile tests
11159 lt_simple_compile_test_code="int some_variable = 0;"
11160
11161 # Code to be used in simple link tests
11162 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11163
11164 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11165
11166 # If no C compiler was specified, use CC.
11167 LTCC=${LTCC-"$CC"}
11168
11169 # If no C compiler flags were specified, use CFLAGS.
11170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11171
11172 # Allow CC to be a program name with arguments.
11173 compiler=$CC
11174
11175
11176 # save warnings/boilerplate of simple test code
11177 ac_outfile=conftest.$ac_objext
11178 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11180 _lt_compiler_boilerplate=`cat conftest.err`
11181 $rm conftest*
11182
11183 ac_outfile=conftest.$ac_objext
11184 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11186 _lt_linker_boilerplate=`cat conftest.err`
11187 $rm conftest*
11188
11189
11190 # Allow CC to be a program name with arguments.
11191 lt_save_CC=$CC
11192 lt_save_LD=$LD
11193 lt_save_GCC=$GCC
11194 GCC=$GXX
11195 lt_save_with_gnu_ld=$with_gnu_ld
11196 lt_save_path_LD=$lt_cv_path_LD
11197 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11198 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11199 else
11200 $as_unset lt_cv_prog_gnu_ld
11201 fi
11202 if test -n "${lt_cv_path_LDCXX+set}"; then
11203 lt_cv_path_LD=$lt_cv_path_LDCXX
11204 else
11205 $as_unset lt_cv_path_LD
11206 fi
11207 test -z "${LDCXX+set}" || LD=$LDCXX
11208 CC=${CXX-"c++"}
11209 compiler=$CC
11210 compiler_CXX=$CC
11211 for cc_temp in $compiler""; do
11212 case $cc_temp in
11213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11215 \-*) ;;
11216 *) break;;
11217 esac
11218 done
11219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11220
11221
11222 # We don't want -fno-exception wen compiling C++ code, so set the
11223 # no_builtin_flag separately
11224 if test "$GXX" = yes; then
11225 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11226 else
11227 lt_prog_compiler_no_builtin_flag_CXX=
11228 fi
11229
11230 if test "$GXX" = yes; then
11231 # Set up default GNU C++ configuration
11232
11233
11234 # Check whether --with-gnu-ld was given.
11235 if test "${with_gnu_ld+set}" = set; then
11236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11237 else
11238 with_gnu_ld=no
11239 fi
11240
11241 ac_prog=ld
11242 if test "$GCC" = yes; then
11243 # Check if gcc -print-prog-name=ld gives a path.
11244 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11245 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11246 case $host in
11247 *-*-mingw*)
11248 # gcc leaves a trailing carriage return which upsets mingw
11249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11250 *)
11251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11252 esac
11253 case $ac_prog in
11254 # Accept absolute paths.
11255 [\\/]* | ?:[\\/]*)
11256 re_direlt='/[^/][^/]*/\.\./'
11257 # Canonicalize the pathname of ld
11258 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11260 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11261 done
11262 test -z "$LD" && LD="$ac_prog"
11263 ;;
11264 "")
11265 # If it fails, then pretend we aren't using GCC.
11266 ac_prog=ld
11267 ;;
11268 *)
11269 # If it is relative, then search for the first ld in PATH.
11270 with_gnu_ld=unknown
11271 ;;
11272 esac
11273 elif test "$with_gnu_ld" = yes; then
11274 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11275 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11276 else
11277 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11278 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11279 fi
11280 if test "${lt_cv_path_LD+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 if test -z "$LD"; then
11284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11285 for ac_dir in $PATH; do
11286 IFS="$lt_save_ifs"
11287 test -z "$ac_dir" && ac_dir=.
11288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11289 lt_cv_path_LD="$ac_dir/$ac_prog"
11290 # Check to see if the program is GNU ld. I'd rather use --version,
11291 # but apparently some variants of GNU ld only accept -v.
11292 # Break only if it was the GNU/non-GNU ld that we prefer.
11293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11294 *GNU* | *'with BFD'*)
11295 test "$with_gnu_ld" != no && break
11296 ;;
11297 *)
11298 test "$with_gnu_ld" != yes && break
11299 ;;
11300 esac
11301 fi
11302 done
11303 IFS="$lt_save_ifs"
11304 else
11305 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11306 fi
11307 fi
11308
11309 LD="$lt_cv_path_LD"
11310 if test -n "$LD"; then
11311 { echo "$as_me:$LINENO: result: $LD" >&5
11312 echo "${ECHO_T}$LD" >&6; }
11313 else
11314 { echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6; }
11316 fi
11317 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11318 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11319 { (exit 1); exit 1; }; }
11320 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11321 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11322 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11326 case `$LD -v 2>&1 </dev/null` in
11327 *GNU* | *'with BFD'*)
11328 lt_cv_prog_gnu_ld=yes
11329 ;;
11330 *)
11331 lt_cv_prog_gnu_ld=no
11332 ;;
11333 esac
11334 fi
11335 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11336 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11337 with_gnu_ld=$lt_cv_prog_gnu_ld
11338
11339
11340
11341 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11342 # archiving commands below assume that GNU ld is being used.
11343 if test "$with_gnu_ld" = yes; then
11344 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11345 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11346
11347 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11349
11350 # If archive_cmds runs LD, not CC, wlarc should be empty
11351 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11352 # investigate it a little bit more. (MM)
11353 wlarc='${wl}'
11354
11355 # ancient GNU ld didn't support --whole-archive et. al.
11356 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11357 grep 'no-whole-archive' > /dev/null; then
11358 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11359 else
11360 whole_archive_flag_spec_CXX=
11361 fi
11362 else
11363 with_gnu_ld=no
11364 wlarc=
11365
11366 # A generic and very simple default shared library creation
11367 # command for GNU C++ for the case where it uses the native
11368 # linker, instead of GNU ld. If possible, this setting should
11369 # overridden to take advantage of the native linker features on
11370 # the platform it is being used on.
11371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11372 fi
11373
11374 # Commands to make compiler produce verbose output that lists
11375 # what "hidden" libraries, object files and flags are used when
11376 # linking a shared library.
11377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11378
11379 else
11380 GXX=no
11381 with_gnu_ld=no
11382 wlarc=
11383 fi
11384
11385 # PORTME: fill in a description of your system's C++ link characteristics
11386 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11387 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11388 ld_shlibs_CXX=yes
11389 case $host_os in
11390 aix3*)
11391 # FIXME: insert proper C++ library support
11392 ld_shlibs_CXX=no
11393 ;;
11394 aix4* | aix5*)
11395 if test "$host_cpu" = ia64; then
11396 # On IA64, the linker does run time linking by default, so we don't
11397 # have to do anything special.
11398 aix_use_runtimelinking=no
11399 exp_sym_flag='-Bexport'
11400 no_entry_flag=""
11401 else
11402 aix_use_runtimelinking=no
11403
11404 # Test if we are trying to use run time linking or normal
11405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11406 # need to do runtime linking.
11407 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11408 for ld_flag in $LDFLAGS; do
11409 case $ld_flag in
11410 *-brtl*)
11411 aix_use_runtimelinking=yes
11412 break
11413 ;;
11414 esac
11415 done
11416 ;;
11417 esac
11418
11419 exp_sym_flag='-bexport'
11420 no_entry_flag='-bnoentry'
11421 fi
11422
11423 # When large executables or shared objects are built, AIX ld can
11424 # have problems creating the table of contents. If linking a library
11425 # or program results in "error TOC overflow" add -mminimal-toc to
11426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11428
11429 archive_cmds_CXX=''
11430 hardcode_direct_CXX=yes
11431 hardcode_libdir_separator_CXX=':'
11432 link_all_deplibs_CXX=yes
11433
11434 if test "$GXX" = yes; then
11435 case $host_os in aix4.[012]|aix4.[012].*)
11436 # We only want to do this on AIX 4.2 and lower, the check
11437 # below for broken collect2 doesn't work under 4.3+
11438 collect2name=`${CC} -print-prog-name=collect2`
11439 if test -f "$collect2name" && \
11440 strings "$collect2name" | grep resolve_lib_name >/dev/null
11441 then
11442 # We have reworked collect2
11443 :
11444 else
11445 # We have old collect2
11446 hardcode_direct_CXX=unsupported
11447 # It fails to find uninstalled libraries when the uninstalled
11448 # path is not listed in the libpath. Setting hardcode_minus_L
11449 # to unsupported forces relinking
11450 hardcode_minus_L_CXX=yes
11451 hardcode_libdir_flag_spec_CXX='-L$libdir'
11452 hardcode_libdir_separator_CXX=
11453 fi
11454 ;;
11455 esac
11456 shared_flag='-shared'
11457 if test "$aix_use_runtimelinking" = yes; then
11458 shared_flag="$shared_flag "'${wl}-G'
11459 fi
11460 else
11461 # not using gcc
11462 if test "$host_cpu" = ia64; then
11463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11464 # chokes on -Wl,-G. The following line is correct:
11465 shared_flag='-G'
11466 else
11467 if test "$aix_use_runtimelinking" = yes; then
11468 shared_flag='${wl}-G'
11469 else
11470 shared_flag='${wl}-bM:SRE'
11471 fi
11472 fi
11473 fi
11474
11475 # It seems that -bexpall does not export symbols beginning with
11476 # underscore (_), so it is better to generate a list of symbols to export.
11477 always_export_symbols_CXX=yes
11478 if test "$aix_use_runtimelinking" = yes; then
11479 # Warning - without using the other runtime loading flags (-brtl),
11480 # -berok will link without error, but may produce a broken library.
11481 allow_undefined_flag_CXX='-berok'
11482 # Determine the default libpath from the value encoded in an empty executable.
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489
11490 int
11491 main ()
11492 {
11493
11494 ;
11495 return 0;
11496 }
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_cxx_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest$ac_exeext &&
11515 $as_test_x conftest$ac_exeext; then
11516
11517 lt_aix_libpath_sed='
11518 /Import File Strings/,/^$/ {
11519 /^0/ {
11520 s/^0 *\(.*\)$/\1/
11521 p
11522 }
11523 }'
11524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11525 # Check for a 64-bit object if we didn't find anything.
11526 if test -z "$aix_libpath"; then
11527 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11528 fi
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533
11534 fi
11535
11536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537 conftest$ac_exeext conftest.$ac_ext
11538 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11539
11540 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11541
11542 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11543 else
11544 if test "$host_cpu" = ia64; then
11545 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11546 allow_undefined_flag_CXX="-z nodefs"
11547 archive_expsym_cmds_CXX="\$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"
11548 else
11549 # Determine the default libpath from the value encoded in an empty executable.
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556
11557 int
11558 main ()
11559 {
11560
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_cxx_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest$ac_exeext &&
11582 $as_test_x conftest$ac_exeext; then
11583
11584 lt_aix_libpath_sed='
11585 /Import File Strings/,/^$/ {
11586 /^0/ {
11587 s/^0 *\(.*\)$/\1/
11588 p
11589 }
11590 }'
11591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11592 # Check for a 64-bit object if we didn't find anything.
11593 if test -z "$aix_libpath"; then
11594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11595 fi
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600
11601 fi
11602
11603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11604 conftest$ac_exeext conftest.$ac_ext
11605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11606
11607 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11608 # Warning - without using the other run time loading flags,
11609 # -berok will link without error, but may produce a broken library.
11610 no_undefined_flag_CXX=' ${wl}-bernotok'
11611 allow_undefined_flag_CXX=' ${wl}-berok'
11612 # Exported symbols can be pulled into shared objects from archives
11613 whole_archive_flag_spec_CXX='$convenience'
11614 archive_cmds_need_lc_CXX=yes
11615 # This is similar to how AIX traditionally builds its shared libraries.
11616 archive_expsym_cmds_CXX="\$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'
11617 fi
11618 fi
11619 ;;
11620
11621 beos*)
11622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11623 allow_undefined_flag_CXX=unsupported
11624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11625 # support --undefined. This deserves some investigation. FIXME
11626 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11627 else
11628 ld_shlibs_CXX=no
11629 fi
11630 ;;
11631
11632 chorus*)
11633 case $cc_basename in
11634 *)
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
11638 esac
11639 ;;
11640
11641 cygwin* | mingw* | pw32*)
11642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11643 # as there is no search path for DLLs.
11644 hardcode_libdir_flag_spec_CXX='-L$libdir'
11645 allow_undefined_flag_CXX=unsupported
11646 always_export_symbols_CXX=no
11647 enable_shared_with_static_runtimes_CXX=yes
11648
11649 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11650 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11651 # If the export-symbols file already is a .def file (1st line
11652 # is EXPORTS), use it as is; otherwise, prepend...
11653 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11654 cp $export_symbols $output_objdir/$soname.def;
11655 else
11656 echo EXPORTS > $output_objdir/$soname.def;
11657 cat $export_symbols >> $output_objdir/$soname.def;
11658 fi~
11659 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11660 else
11661 ld_shlibs_CXX=no
11662 fi
11663 ;;
11664 darwin* | rhapsody*)
11665 case $host_os in
11666 rhapsody* | darwin1.[012])
11667 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11668 ;;
11669 *) # Darwin 1.3 on
11670 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11671 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11672 else
11673 case ${MACOSX_DEPLOYMENT_TARGET} in
11674 10.[012])
11675 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11676 ;;
11677 10.*)
11678 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11679 ;;
11680 esac
11681 fi
11682 ;;
11683 esac
11684 archive_cmds_need_lc_CXX=no
11685 hardcode_direct_CXX=no
11686 hardcode_automatic_CXX=yes
11687 hardcode_shlibpath_var_CXX=unsupported
11688 whole_archive_flag_spec_CXX=''
11689 link_all_deplibs_CXX=yes
11690
11691 if test "$GXX" = yes ; then
11692 lt_int_apple_cc_single_mod=no
11693 output_verbose_link_cmd='echo'
11694 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11695 lt_int_apple_cc_single_mod=yes
11696 fi
11697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11698 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11699 else
11700 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11701 fi
11702 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11705 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11706 else
11707 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11708 fi
11709 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
11710 else
11711 case $cc_basename in
11712 xlc*)
11713 output_verbose_link_cmd='echo'
11714 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11715 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11717 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11718 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
11719 ;;
11720 *)
11721 ld_shlibs_CXX=no
11722 ;;
11723 esac
11724 fi
11725 ;;
11726
11727 dgux*)
11728 case $cc_basename in
11729 ec++*)
11730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11732 ;;
11733 ghcx*)
11734 # Green Hills C++ Compiler
11735 # FIXME: insert proper C++ library support
11736 ld_shlibs_CXX=no
11737 ;;
11738 *)
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11741 ;;
11742 esac
11743 ;;
11744 freebsd[12]*)
11745 # C++ shared libraries reported to be fairly broken before switch to ELF
11746 ld_shlibs_CXX=no
11747 ;;
11748 freebsd-elf*)
11749 archive_cmds_need_lc_CXX=no
11750 ;;
11751 freebsd* | dragonfly*)
11752 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11753 # conventions
11754 ld_shlibs_CXX=yes
11755 ;;
11756 gnu*)
11757 ;;
11758 hpux9*)
11759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11760 hardcode_libdir_separator_CXX=:
11761 export_dynamic_flag_spec_CXX='${wl}-E'
11762 hardcode_direct_CXX=yes
11763 hardcode_minus_L_CXX=yes # Not in the search PATH,
11764 # but as the default
11765 # location of the library.
11766
11767 case $cc_basename in
11768 CC*)
11769 # FIXME: insert proper C++ library support
11770 ld_shlibs_CXX=no
11771 ;;
11772 aCC*)
11773 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11777 #
11778 # There doesn't appear to be a way to prevent this compiler from
11779 # explicitly linking system object files so we need to strip them
11780 # from the output so that they don't get included in the library
11781 # dependencies.
11782 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11783 ;;
11784 *)
11785 if test "$GXX" = yes; then
11786 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11787 else
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11790 fi
11791 ;;
11792 esac
11793 ;;
11794 hpux10*|hpux11*)
11795 if test $with_gnu_ld = no; then
11796 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11797 hardcode_libdir_separator_CXX=:
11798
11799 case $host_cpu in
11800 hppa*64*|ia64*) ;;
11801 *)
11802 export_dynamic_flag_spec_CXX='${wl}-E'
11803 ;;
11804 esac
11805 fi
11806 case $host_cpu in
11807 hppa*64*|ia64*)
11808 hardcode_direct_CXX=no
11809 hardcode_shlibpath_var_CXX=no
11810 ;;
11811 *)
11812 hardcode_direct_CXX=yes
11813 hardcode_minus_L_CXX=yes # Not in the search PATH,
11814 # but as the default
11815 # location of the library.
11816 ;;
11817 esac
11818
11819 case $cc_basename in
11820 CC*)
11821 # FIXME: insert proper C++ library support
11822 ld_shlibs_CXX=no
11823 ;;
11824 aCC*)
11825 case $host_cpu in
11826 hppa*64*)
11827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11828 ;;
11829 ia64*)
11830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11831 ;;
11832 *)
11833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11834 ;;
11835 esac
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11839 #
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11843 # dependencies.
11844 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11845 ;;
11846 *)
11847 if test "$GXX" = yes; then
11848 if test $with_gnu_ld = no; then
11849 case $host_cpu in
11850 hppa*64*)
11851 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852 ;;
11853 ia64*)
11854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11855 ;;
11856 *)
11857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11858 ;;
11859 esac
11860 fi
11861 else
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 fi
11865 ;;
11866 esac
11867 ;;
11868 interix[3-9]*)
11869 hardcode_direct_CXX=no
11870 hardcode_shlibpath_var_CXX=no
11871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11872 export_dynamic_flag_spec_CXX='${wl}-E'
11873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11874 # Instead, shared libraries are loaded at an image base (0x10000000 by
11875 # default) and relocated if they conflict, which is a slow very memory
11876 # consuming and fragmenting process. To avoid this, we pick a random,
11877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11879 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11880 archive_expsym_cmds_CXX='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'
11881 ;;
11882 irix5* | irix6*)
11883 case $cc_basename in
11884 CC*)
11885 # SGI C++
11886 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11887
11888 # Archives containing C++ object files must be created using
11889 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11890 # necessary to make sure instantiated templates are included
11891 # in the archive.
11892 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11893 ;;
11894 *)
11895 if test "$GXX" = yes; then
11896 if test "$with_gnu_ld" = no; then
11897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11898 else
11899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11900 fi
11901 fi
11902 link_all_deplibs_CXX=yes
11903 ;;
11904 esac
11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11907 ;;
11908 linux* | k*bsd*-gnu)
11909 case $cc_basename in
11910 KCC*)
11911 # Kuck and Associates, Inc. (KAI) C++ Compiler
11912
11913 # KCC will only create a shared library if the output file
11914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915 # to its proper name (with version) after linking.
11916 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11917 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11921 #
11922 # There doesn't appear to be a way to prevent this compiler from
11923 # explicitly linking system object files so we need to strip them
11924 # from the output so that they don't get included in the library
11925 # dependencies.
11926 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11927
11928 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11930
11931 # Archives containing C++ object files must be created using
11932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11934 ;;
11935 icpc*)
11936 # Intel C++
11937 with_gnu_ld=yes
11938 # version 8.0 and above of icpc choke on multiply defined symbols
11939 # if we add $predep_objects and $postdep_objects, however 7.1 and
11940 # earlier do not add the objects themselves.
11941 case `$CC -V 2>&1` in
11942 *"Version 7."*)
11943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11945 ;;
11946 *) # Version 8.0 or newer
11947 tmp_idyn=
11948 case $host_cpu in
11949 ia64*) tmp_idyn=' -i_dynamic';;
11950 esac
11951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11952 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11953 ;;
11954 esac
11955 archive_cmds_need_lc_CXX=no
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11959 ;;
11960 pgCC*)
11961 # Portland Group C++ compiler
11962 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11963 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11964
11965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11967 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11968 ;;
11969 cxx*)
11970 # Compaq C++
11971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11973
11974 runpath_var=LD_RUN_PATH
11975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11976 hardcode_libdir_separator_CXX=:
11977
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11981 #
11982 # There doesn't appear to be a way to prevent this compiler from
11983 # explicitly linking system object files so we need to strip them
11984 # from the output so that they don't get included in the library
11985 # dependencies.
11986 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11987 ;;
11988 *)
11989 case `$CC -V 2>&1 | sed 5q` in
11990 *Sun\ C*)
11991 # Sun C++ 5.9
11992 no_undefined_flag_CXX=' -zdefs'
11993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11994 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11995 hardcode_libdir_flag_spec_CXX='-R$libdir'
11996 whole_archive_flag_spec_CXX='${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'
11997
11998 # Not sure whether something based on
11999 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12000 # would be better.
12001 output_verbose_link_cmd='echo'
12002
12003 # Archives containing C++ object files must be created using
12004 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12005 # necessary to make sure instantiated templates are included
12006 # in the archive.
12007 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12008 ;;
12009 esac
12010 ;;
12011 esac
12012 ;;
12013 lynxos*)
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 ;;
12017 m88k*)
12018 # FIXME: insert proper C++ library support
12019 ld_shlibs_CXX=no
12020 ;;
12021 mvs*)
12022 case $cc_basename in
12023 cxx*)
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12026 ;;
12027 *)
12028 # FIXME: insert proper C++ library support
12029 ld_shlibs_CXX=no
12030 ;;
12031 esac
12032 ;;
12033 netbsd* | netbsdelf*-gnu)
12034 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12035 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12036 wlarc=
12037 hardcode_libdir_flag_spec_CXX='-R$libdir'
12038 hardcode_direct_CXX=yes
12039 hardcode_shlibpath_var_CXX=no
12040 fi
12041 # Workaround some broken pre-1.5 toolchains
12042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12043 ;;
12044 openbsd2*)
12045 # C++ shared libraries are fairly broken
12046 ld_shlibs_CXX=no
12047 ;;
12048 openbsd*)
12049 if test -f /usr/libexec/ld.so; then
12050 hardcode_direct_CXX=yes
12051 hardcode_shlibpath_var_CXX=no
12052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12056 export_dynamic_flag_spec_CXX='${wl}-E'
12057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12058 fi
12059 output_verbose_link_cmd='echo'
12060 else
12061 ld_shlibs_CXX=no
12062 fi
12063 ;;
12064 osf3*)
12065 case $cc_basename in
12066 KCC*)
12067 # Kuck and Associates, Inc. (KAI) C++ Compiler
12068
12069 # KCC will only create a shared library if the output file
12070 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12071 # to its proper name (with version) after linking.
12072 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12073
12074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12075 hardcode_libdir_separator_CXX=:
12076
12077 # Archives containing C++ object files must be created using
12078 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12079 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12080
12081 ;;
12082 RCC*)
12083 # Rational C++ 2.4.1
12084 # FIXME: insert proper C++ library support
12085 ld_shlibs_CXX=no
12086 ;;
12087 cxx*)
12088 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12089 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12090
12091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12092 hardcode_libdir_separator_CXX=:
12093
12094 # Commands to make compiler produce verbose output that lists
12095 # what "hidden" libraries, object files and flags are used when
12096 # linking a shared library.
12097 #
12098 # There doesn't appear to be a way to prevent this compiler from
12099 # explicitly linking system object files so we need to strip them
12100 # from the output so that they don't get included in the library
12101 # dependencies.
12102 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12103 ;;
12104 *)
12105 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12106 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12107 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12108
12109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12110 hardcode_libdir_separator_CXX=:
12111
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12116
12117 else
12118 # FIXME: insert proper C++ library support
12119 ld_shlibs_CXX=no
12120 fi
12121 ;;
12122 esac
12123 ;;
12124 osf4* | osf5*)
12125 case $cc_basename in
12126 KCC*)
12127 # Kuck and Associates, Inc. (KAI) C++ Compiler
12128
12129 # KCC will only create a shared library if the output file
12130 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12131 # to its proper name (with version) after linking.
12132 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12133
12134 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12135 hardcode_libdir_separator_CXX=:
12136
12137 # Archives containing C++ object files must be created using
12138 # the KAI C++ compiler.
12139 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12140 ;;
12141 RCC*)
12142 # Rational C++ 2.4.1
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 cxx*)
12147 allow_undefined_flag_CXX=' -expect_unresolved \*'
12148 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12149 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12150 echo "-hidden">> $lib.exp~
12151 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12152 $rm $lib.exp'
12153
12154 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12155 hardcode_libdir_separator_CXX=:
12156
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12160 #
12161 # There doesn't appear to be a way to prevent this compiler from
12162 # explicitly linking system object files so we need to strip them
12163 # from the output so that they don't get included in the library
12164 # dependencies.
12165 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12166 ;;
12167 *)
12168 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12169 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12170 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12171
12172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12173 hardcode_libdir_separator_CXX=:
12174
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12179
12180 else
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12183 fi
12184 ;;
12185 esac
12186 ;;
12187 psos*)
12188 # FIXME: insert proper C++ library support
12189 ld_shlibs_CXX=no
12190 ;;
12191 sunos4*)
12192 case $cc_basename in
12193 CC*)
12194 # Sun C++ 4.x
12195 # FIXME: insert proper C++ library support
12196 ld_shlibs_CXX=no
12197 ;;
12198 lcc*)
12199 # Lucid
12200 # FIXME: insert proper C++ library support
12201 ld_shlibs_CXX=no
12202 ;;
12203 *)
12204 # FIXME: insert proper C++ library support
12205 ld_shlibs_CXX=no
12206 ;;
12207 esac
12208 ;;
12209 solaris*)
12210 case $cc_basename in
12211 CC*)
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 archive_cmds_need_lc_CXX=yes
12214 no_undefined_flag_CXX=' -zdefs'
12215 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12216 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12217 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12218
12219 hardcode_libdir_flag_spec_CXX='-R$libdir'
12220 hardcode_shlibpath_var_CXX=no
12221 case $host_os in
12222 solaris2.[0-5] | solaris2.[0-5].*) ;;
12223 *)
12224 # The compiler driver will combine and reorder linker options,
12225 # but understands `-z linker_flag'.
12226 # Supported since Solaris 2.6 (maybe 2.5.1?)
12227 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12228 ;;
12229 esac
12230 link_all_deplibs_CXX=yes
12231
12232 output_verbose_link_cmd='echo'
12233
12234 # Archives containing C++ object files must be created using
12235 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12236 # necessary to make sure instantiated templates are included
12237 # in the archive.
12238 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12239 ;;
12240 gcx*)
12241 # Green Hills C++ Compiler
12242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12243
12244 # The C++ compiler must be used to create the archive.
12245 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12246 ;;
12247 *)
12248 # GNU C++ compiler with Solaris linker
12249 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12250 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12251 if $CC --version | grep -v '^2\.7' > /dev/null; then
12252 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12254 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12255
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12259 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12260 else
12261 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12262 # platform.
12263 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12264 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12265 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12266
12267 # Commands to make compiler produce verbose output that lists
12268 # what "hidden" libraries, object files and flags are used when
12269 # linking a shared library.
12270 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12271 fi
12272
12273 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12274 case $host_os in
12275 solaris2.[0-5] | solaris2.[0-5].*) ;;
12276 *)
12277 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12278 ;;
12279 esac
12280 fi
12281 ;;
12282 esac
12283 ;;
12284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12285 no_undefined_flag_CXX='${wl}-z,text'
12286 archive_cmds_need_lc_CXX=no
12287 hardcode_shlibpath_var_CXX=no
12288 runpath_var='LD_RUN_PATH'
12289
12290 case $cc_basename in
12291 CC*)
12292 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12293 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 ;;
12295 *)
12296 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12297 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12298 ;;
12299 esac
12300 ;;
12301 sysv5* | sco3.2v5* | sco5v6*)
12302 # Note: We can NOT use -z defs as we might desire, because we do not
12303 # link with -lc, and that would cause any symbols used from libc to
12304 # always be unresolved, which means just about no library would
12305 # ever link correctly. If we're not using GNU ld we use -z text
12306 # though, which does catch some bad symbols but isn't as heavy-handed
12307 # as -z defs.
12308 # For security reasons, it is highly recommended that you always
12309 # use absolute paths for naming shared libraries, and exclude the
12310 # DT_RUNPATH tag from executables and libraries. But doing so
12311 # requires that you compile everything twice, which is a pain.
12312 # So that behaviour is only enabled if SCOABSPATH is set to a
12313 # non-empty value in the environment. Most likely only useful for
12314 # creating official distributions of packages.
12315 # This is a hack until libtool officially supports absolute path
12316 # names for shared libraries.
12317 no_undefined_flag_CXX='${wl}-z,text'
12318 allow_undefined_flag_CXX='${wl}-z,nodefs'
12319 archive_cmds_need_lc_CXX=no
12320 hardcode_shlibpath_var_CXX=no
12321 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12322 hardcode_libdir_separator_CXX=':'
12323 link_all_deplibs_CXX=yes
12324 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12325 runpath_var='LD_RUN_PATH'
12326
12327 case $cc_basename in
12328 CC*)
12329 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12330 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12331 ;;
12332 *)
12333 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 ;;
12336 esac
12337 ;;
12338 tandem*)
12339 case $cc_basename in
12340 NCC*)
12341 # NonStop-UX NCC 3.20
12342 # FIXME: insert proper C++ library support
12343 ld_shlibs_CXX=no
12344 ;;
12345 *)
12346 # FIXME: insert proper C++ library support
12347 ld_shlibs_CXX=no
12348 ;;
12349 esac
12350 ;;
12351 vxworks*)
12352 # FIXME: insert proper C++ library support
12353 ld_shlibs_CXX=no
12354 ;;
12355 *)
12356 # FIXME: insert proper C++ library support
12357 ld_shlibs_CXX=no
12358 ;;
12359 esac
12360 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12361 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12362 test "$ld_shlibs_CXX" = no && can_build_shared=no
12363
12364 GCC_CXX="$GXX"
12365 LD_CXX="$LD"
12366
12367 ## CAVEAT EMPTOR:
12368 ## There is no encapsulation within the following macros, do not change
12369 ## the running order or otherwise move them around unless you know exactly
12370 ## what you are doing...
12371
12372 cat > conftest.$ac_ext <<EOF
12373 class Foo
12374 {
12375 public:
12376 Foo (void) { a = 0; }
12377 private:
12378 int a;
12379 };
12380 EOF
12381
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; then
12387 # Parse the compiler output and extract the necessary
12388 # objects, libraries and library flags.
12389
12390 # Sentinel used to keep track of whether or not we are before
12391 # the conftest object file.
12392 pre_test_object_deps_done=no
12393
12394 # The `*' in the case matches for architectures that use `case' in
12395 # $output_verbose_cmd can trigger glob expansion during the loop
12396 # eval without this substitution.
12397 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12398
12399 for p in `eval $output_verbose_link_cmd`; do
12400 case $p in
12401
12402 -L* | -R* | -l*)
12403 # Some compilers place space between "-{L,R}" and the path.
12404 # Remove the space.
12405 if test $p = "-L" \
12406 || test $p = "-R"; then
12407 prev=$p
12408 continue
12409 else
12410 prev=
12411 fi
12412
12413 if test "$pre_test_object_deps_done" = no; then
12414 case $p in
12415 -L* | -R*)
12416 # Internal compiler library paths should come after those
12417 # provided the user. The postdeps already come after the
12418 # user supplied libs so there is no need to process them.
12419 if test -z "$compiler_lib_search_path_CXX"; then
12420 compiler_lib_search_path_CXX="${prev}${p}"
12421 else
12422 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12423 fi
12424 ;;
12425 # The "-l" case would never come before the object being
12426 # linked, so don't bother handling this case.
12427 esac
12428 else
12429 if test -z "$postdeps_CXX"; then
12430 postdeps_CXX="${prev}${p}"
12431 else
12432 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12433 fi
12434 fi
12435 ;;
12436
12437 *.$objext)
12438 # This assumes that the test object file only shows up
12439 # once in the compiler output.
12440 if test "$p" = "conftest.$objext"; then
12441 pre_test_object_deps_done=yes
12442 continue
12443 fi
12444
12445 if test "$pre_test_object_deps_done" = no; then
12446 if test -z "$predep_objects_CXX"; then
12447 predep_objects_CXX="$p"
12448 else
12449 predep_objects_CXX="$predep_objects_CXX $p"
12450 fi
12451 else
12452 if test -z "$postdep_objects_CXX"; then
12453 postdep_objects_CXX="$p"
12454 else
12455 postdep_objects_CXX="$postdep_objects_CXX $p"
12456 fi
12457 fi
12458 ;;
12459
12460 *) ;; # Ignore the rest.
12461
12462 esac
12463 done
12464
12465 # Clean up.
12466 rm -f a.out a.exe
12467 else
12468 echo "libtool.m4: error: problem compiling CXX test program"
12469 fi
12470
12471 $rm -f confest.$objext
12472
12473 # PORTME: override above test on systems where it is broken
12474 case $host_os in
12475 interix[3-9]*)
12476 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12477 # hack all around it, let's just trust "g++" to DTRT.
12478 predep_objects_CXX=
12479 postdep_objects_CXX=
12480 postdeps_CXX=
12481 ;;
12482
12483 linux*)
12484 case `$CC -V 2>&1 | sed 5q` in
12485 *Sun\ C*)
12486 # Sun C++ 5.9
12487 #
12488 # The more standards-conforming stlport4 library is
12489 # incompatible with the Cstd library. Avoid specifying
12490 # it if it's in CXXFLAGS. Ignore libCrun as
12491 # -library=stlport4 depends on it.
12492 case " $CXX $CXXFLAGS " in
12493 *" -library=stlport4 "*)
12494 solaris_use_stlport4=yes
12495 ;;
12496 esac
12497 if test "$solaris_use_stlport4" != yes; then
12498 postdeps_CXX='-library=Cstd -library=Crun'
12499 fi
12500 ;;
12501 esac
12502 ;;
12503
12504 solaris*)
12505 case $cc_basename in
12506 CC*)
12507 # The more standards-conforming stlport4 library is
12508 # incompatible with the Cstd library. Avoid specifying
12509 # it if it's in CXXFLAGS. Ignore libCrun as
12510 # -library=stlport4 depends on it.
12511 case " $CXX $CXXFLAGS " in
12512 *" -library=stlport4 "*)
12513 solaris_use_stlport4=yes
12514 ;;
12515 esac
12516
12517 # Adding this requires a known-good setup of shared libraries for
12518 # Sun compiler versions before 5.6, else PIC objects from an old
12519 # archive will be linked into the output, leading to subtle bugs.
12520 if test "$solaris_use_stlport4" != yes; then
12521 postdeps_CXX='-library=Cstd -library=Crun'
12522 fi
12523 ;;
12524 esac
12525 ;;
12526 esac
12527
12528
12529 case " $postdeps_CXX " in
12530 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12531 esac
12532
12533 lt_prog_compiler_wl_CXX=
12534 lt_prog_compiler_pic_CXX=
12535 lt_prog_compiler_static_CXX=
12536
12537 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12538 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12539
12540 # C++ specific cases for pic, static, wl, etc.
12541 if test "$GXX" = yes; then
12542 lt_prog_compiler_wl_CXX='-Wl,'
12543 lt_prog_compiler_static_CXX='-static'
12544
12545 case $host_os in
12546 aix*)
12547 # All AIX code is PIC.
12548 if test "$host_cpu" = ia64; then
12549 # AIX 5 now supports IA64 processor
12550 lt_prog_compiler_static_CXX='-Bstatic'
12551 fi
12552 ;;
12553 amigaos*)
12554 # FIXME: we need at least 68020 code to build shared libraries, but
12555 # adding the `-m68020' flag to GCC prevents building anything better,
12556 # like `-m68040'.
12557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12558 ;;
12559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12560 # PIC is the default for these OSes.
12561 ;;
12562 mingw* | cygwin* | os2* | pw32*)
12563 # This hack is so that the source file can tell whether it is being
12564 # built for inclusion in a dll (and should export symbols for example).
12565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12566 # (--disable-auto-import) libraries
12567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12568 ;;
12569 darwin* | rhapsody*)
12570 # PIC is the default on this platform
12571 # Common symbols not allowed in MH_DYLIB files
12572 lt_prog_compiler_pic_CXX='-fno-common'
12573 ;;
12574 *djgpp*)
12575 # DJGPP does not support shared libraries at all
12576 lt_prog_compiler_pic_CXX=
12577 ;;
12578 interix[3-9]*)
12579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12580 # Instead, we relocate shared libraries at runtime.
12581 ;;
12582 sysv4*MP*)
12583 if test -d /usr/nec; then
12584 lt_prog_compiler_pic_CXX=-Kconform_pic
12585 fi
12586 ;;
12587 hpux*)
12588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12589 # not for PA HP-UX.
12590 case $host_cpu in
12591 hppa*64*|ia64*)
12592 ;;
12593 *)
12594 lt_prog_compiler_pic_CXX='-fPIC'
12595 ;;
12596 esac
12597 ;;
12598 *)
12599 lt_prog_compiler_pic_CXX='-fPIC'
12600 ;;
12601 esac
12602 else
12603 case $host_os in
12604 aix4* | aix5*)
12605 # All AIX code is PIC.
12606 if test "$host_cpu" = ia64; then
12607 # AIX 5 now supports IA64 processor
12608 lt_prog_compiler_static_CXX='-Bstatic'
12609 else
12610 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12611 fi
12612 ;;
12613 chorus*)
12614 case $cc_basename in
12615 cxch68*)
12616 # Green Hills C++ Compiler
12617 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12618 ;;
12619 esac
12620 ;;
12621 darwin*)
12622 # PIC is the default on this platform
12623 # Common symbols not allowed in MH_DYLIB files
12624 case $cc_basename in
12625 xlc*)
12626 lt_prog_compiler_pic_CXX='-qnocommon'
12627 lt_prog_compiler_wl_CXX='-Wl,'
12628 ;;
12629 esac
12630 ;;
12631 dgux*)
12632 case $cc_basename in
12633 ec++*)
12634 lt_prog_compiler_pic_CXX='-KPIC'
12635 ;;
12636 ghcx*)
12637 # Green Hills C++ Compiler
12638 lt_prog_compiler_pic_CXX='-pic'
12639 ;;
12640 *)
12641 ;;
12642 esac
12643 ;;
12644 freebsd* | dragonfly*)
12645 # FreeBSD uses GNU C++
12646 ;;
12647 hpux9* | hpux10* | hpux11*)
12648 case $cc_basename in
12649 CC*)
12650 lt_prog_compiler_wl_CXX='-Wl,'
12651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12652 if test "$host_cpu" != ia64; then
12653 lt_prog_compiler_pic_CXX='+Z'
12654 fi
12655 ;;
12656 aCC*)
12657 lt_prog_compiler_wl_CXX='-Wl,'
12658 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12659 case $host_cpu in
12660 hppa*64*|ia64*)
12661 # +Z the default
12662 ;;
12663 *)
12664 lt_prog_compiler_pic_CXX='+Z'
12665 ;;
12666 esac
12667 ;;
12668 *)
12669 ;;
12670 esac
12671 ;;
12672 interix*)
12673 # This is c89, which is MS Visual C++ (no shared libs)
12674 # Anyone wants to do a port?
12675 ;;
12676 irix5* | irix6* | nonstopux*)
12677 case $cc_basename in
12678 CC*)
12679 lt_prog_compiler_wl_CXX='-Wl,'
12680 lt_prog_compiler_static_CXX='-non_shared'
12681 # CC pic flag -KPIC is the default.
12682 ;;
12683 *)
12684 ;;
12685 esac
12686 ;;
12687 linux* | k*bsd*-gnu)
12688 case $cc_basename in
12689 KCC*)
12690 # KAI C++ Compiler
12691 lt_prog_compiler_wl_CXX='--backend -Wl,'
12692 lt_prog_compiler_pic_CXX='-fPIC'
12693 ;;
12694 icpc* | ecpc*)
12695 # Intel C++
12696 lt_prog_compiler_wl_CXX='-Wl,'
12697 lt_prog_compiler_pic_CXX='-KPIC'
12698 lt_prog_compiler_static_CXX='-static'
12699 ;;
12700 pgCC*)
12701 # Portland Group C++ compiler.
12702 lt_prog_compiler_wl_CXX='-Wl,'
12703 lt_prog_compiler_pic_CXX='-fpic'
12704 lt_prog_compiler_static_CXX='-Bstatic'
12705 ;;
12706 cxx*)
12707 # Compaq C++
12708 # Make sure the PIC flag is empty. It appears that all Alpha
12709 # Linux and Compaq Tru64 Unix objects are PIC.
12710 lt_prog_compiler_pic_CXX=
12711 lt_prog_compiler_static_CXX='-non_shared'
12712 ;;
12713 *)
12714 case `$CC -V 2>&1 | sed 5q` in
12715 *Sun\ C*)
12716 # Sun C++ 5.9
12717 lt_prog_compiler_pic_CXX='-KPIC'
12718 lt_prog_compiler_static_CXX='-Bstatic'
12719 lt_prog_compiler_wl_CXX='-Qoption ld '
12720 ;;
12721 esac
12722 ;;
12723 esac
12724 ;;
12725 lynxos*)
12726 ;;
12727 m88k*)
12728 ;;
12729 mvs*)
12730 case $cc_basename in
12731 cxx*)
12732 lt_prog_compiler_pic_CXX='-W c,exportall'
12733 ;;
12734 *)
12735 ;;
12736 esac
12737 ;;
12738 netbsd* | netbsdelf*-gnu)
12739 ;;
12740 osf3* | osf4* | osf5*)
12741 case $cc_basename in
12742 KCC*)
12743 lt_prog_compiler_wl_CXX='--backend -Wl,'
12744 ;;
12745 RCC*)
12746 # Rational C++ 2.4.1
12747 lt_prog_compiler_pic_CXX='-pic'
12748 ;;
12749 cxx*)
12750 # Digital/Compaq C++
12751 lt_prog_compiler_wl_CXX='-Wl,'
12752 # Make sure the PIC flag is empty. It appears that all Alpha
12753 # Linux and Compaq Tru64 Unix objects are PIC.
12754 lt_prog_compiler_pic_CXX=
12755 lt_prog_compiler_static_CXX='-non_shared'
12756 ;;
12757 *)
12758 ;;
12759 esac
12760 ;;
12761 psos*)
12762 ;;
12763 solaris*)
12764 case $cc_basename in
12765 CC*)
12766 # Sun C++ 4.2, 5.x and Centerline C++
12767 lt_prog_compiler_pic_CXX='-KPIC'
12768 lt_prog_compiler_static_CXX='-Bstatic'
12769 lt_prog_compiler_wl_CXX='-Qoption ld '
12770 ;;
12771 gcx*)
12772 # Green Hills C++ Compiler
12773 lt_prog_compiler_pic_CXX='-PIC'
12774 ;;
12775 *)
12776 ;;
12777 esac
12778 ;;
12779 sunos4*)
12780 case $cc_basename in
12781 CC*)
12782 # Sun C++ 4.x
12783 lt_prog_compiler_pic_CXX='-pic'
12784 lt_prog_compiler_static_CXX='-Bstatic'
12785 ;;
12786 lcc*)
12787 # Lucid
12788 lt_prog_compiler_pic_CXX='-pic'
12789 ;;
12790 *)
12791 ;;
12792 esac
12793 ;;
12794 tandem*)
12795 case $cc_basename in
12796 NCC*)
12797 # NonStop-UX NCC 3.20
12798 lt_prog_compiler_pic_CXX='-KPIC'
12799 ;;
12800 *)
12801 ;;
12802 esac
12803 ;;
12804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12805 case $cc_basename in
12806 CC*)
12807 lt_prog_compiler_wl_CXX='-Wl,'
12808 lt_prog_compiler_pic_CXX='-KPIC'
12809 lt_prog_compiler_static_CXX='-Bstatic'
12810 ;;
12811 esac
12812 ;;
12813 vxworks*)
12814 ;;
12815 *)
12816 lt_prog_compiler_can_build_shared_CXX=no
12817 ;;
12818 esac
12819 fi
12820
12821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12822 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12823
12824 #
12825 # Check to make sure the PIC flag actually works.
12826 #
12827 if test -n "$lt_prog_compiler_pic_CXX"; then
12828
12829 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12830 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12831 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 lt_prog_compiler_pic_works_CXX=no
12835 ac_outfile=conftest.$ac_objext
12836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12837 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12838 # Insert the option either (1) after the last *FLAGS variable, or
12839 # (2) before a word containing "conftest.", or (3) at the end.
12840 # Note that $ac_compile itself does not contain backslashes and begins
12841 # with a dollar sign (not a hyphen), so the echo should work correctly.
12842 # The option is referenced via a variable to avoid confusing sed.
12843 lt_compile=`echo "$ac_compile" | $SED \
12844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12846 -e 's:$: $lt_compiler_flag:'`
12847 (eval echo "\"\$as_me:12847: $lt_compile\"" >&5)
12848 (eval "$lt_compile" 2>conftest.err)
12849 ac_status=$?
12850 cat conftest.err >&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 if (exit $ac_status) && test -s "$ac_outfile"; then
12853 # The compiler can only warn and ignore the option if not recognized
12854 # So say no if there are warnings other than the usual output.
12855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12858 lt_prog_compiler_pic_works_CXX=yes
12859 fi
12860 fi
12861 $rm conftest*
12862
12863 fi
12864 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12865 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12866
12867 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12868 case $lt_prog_compiler_pic_CXX in
12869 "" | " "*) ;;
12870 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12871 esac
12872 else
12873 lt_prog_compiler_pic_CXX=
12874 lt_prog_compiler_can_build_shared_CXX=no
12875 fi
12876
12877 fi
12878 case $host_os in
12879 # For platforms which do not support PIC, -DPIC is meaningless:
12880 *djgpp*)
12881 lt_prog_compiler_pic_CXX=
12882 ;;
12883 *)
12884 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12885 ;;
12886 esac
12887
12888 #
12889 # Check to make sure the static flag actually works.
12890 #
12891 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12892 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12894 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897 lt_prog_compiler_static_works_CXX=no
12898 save_LDFLAGS="$LDFLAGS"
12899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12900 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12902 # The linker can only warn and ignore the option if not recognized
12903 # So say no if there are warnings
12904 if test -s conftest.err; then
12905 # Append any errors to the config.log.
12906 cat conftest.err 1>&5
12907 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12909 if diff conftest.exp conftest.er2 >/dev/null; then
12910 lt_prog_compiler_static_works_CXX=yes
12911 fi
12912 else
12913 lt_prog_compiler_static_works_CXX=yes
12914 fi
12915 fi
12916 $rm conftest*
12917 LDFLAGS="$save_LDFLAGS"
12918
12919 fi
12920 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12921 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12922
12923 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12924 :
12925 else
12926 lt_prog_compiler_static_CXX=
12927 fi
12928
12929
12930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 lt_cv_prog_compiler_c_o_CXX=no
12936 $rm -r conftest 2>/dev/null
12937 mkdir conftest
12938 cd conftest
12939 mkdir out
12940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12941
12942 lt_compiler_flag="-o out/conftest2.$ac_objext"
12943 # Insert the option either (1) after the last *FLAGS variable, or
12944 # (2) before a word containing "conftest.", or (3) at the end.
12945 # Note that $ac_compile itself does not contain backslashes and begins
12946 # with a dollar sign (not a hyphen), so the echo should work correctly.
12947 lt_compile=`echo "$ac_compile" | $SED \
12948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12950 -e 's:$: $lt_compiler_flag:'`
12951 (eval echo "\"\$as_me:12951: $lt_compile\"" >&5)
12952 (eval "$lt_compile" 2>out/conftest.err)
12953 ac_status=$?
12954 cat out/conftest.err >&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12957 then
12958 # The compiler can only warn and ignore the option if not recognized
12959 # So say no if there are warnings
12960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12963 lt_cv_prog_compiler_c_o_CXX=yes
12964 fi
12965 fi
12966 chmod u+w . 2>&5
12967 $rm conftest*
12968 # SGI C++ compiler will create directory out/ii_files/ for
12969 # template instantiation
12970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12971 $rm out/* && rmdir out
12972 cd ..
12973 rmdir conftest
12974 $rm conftest*
12975
12976 fi
12977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12979
12980
12981 hard_links="nottested"
12982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12983 # do not overwrite the value of need_locks provided by the user
12984 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12986 hard_links=yes
12987 $rm conftest*
12988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12989 touch conftest.a
12990 ln conftest.a conftest.b 2>&5 || hard_links=no
12991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12992 { echo "$as_me:$LINENO: result: $hard_links" >&5
12993 echo "${ECHO_T}$hard_links" >&6; }
12994 if test "$hard_links" = no; then
12995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12997 need_locks=warn
12998 fi
12999 else
13000 need_locks=no
13001 fi
13002
13003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13005
13006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13007 case $host_os in
13008 aix4* | aix5*)
13009 # If we're using GNU nm, then we don't want the "-C" option.
13010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13012 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13013 else
13014 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13015 fi
13016 ;;
13017 pw32*)
13018 export_symbols_cmds_CXX="$ltdll_cmds"
13019 ;;
13020 cygwin* | mingw*)
13021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13022 ;;
13023 linux* | k*bsd*-gnu)
13024 link_all_deplibs_CXX=no
13025 ;;
13026 *)
13027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13028 ;;
13029 esac
13030
13031 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13032 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13033 test "$ld_shlibs_CXX" = no && can_build_shared=no
13034
13035 #
13036 # Do we need to explicitly link libc?
13037 #
13038 case "x$archive_cmds_need_lc_CXX" in
13039 x|xyes)
13040 # Assume -lc should be added
13041 archive_cmds_need_lc_CXX=yes
13042
13043 if test "$enable_shared" = yes && test "$GCC" = yes; then
13044 case $archive_cmds_CXX in
13045 *'~'*)
13046 # FIXME: we may have to deal with multi-command sequences.
13047 ;;
13048 '$CC '*)
13049 # Test whether the compiler implicitly links with -lc since on some
13050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13051 # to ld, don't add -lc before -lgcc.
13052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13054 $rm conftest*
13055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13056
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } 2>conftest.err; then
13062 soname=conftest
13063 lib=conftest
13064 libobjs=conftest.$ac_objext
13065 deplibs=
13066 wl=$lt_prog_compiler_wl_CXX
13067 pic_flag=$lt_prog_compiler_pic_CXX
13068 compiler_flags=-v
13069 linker_flags=-v
13070 verstring=
13071 output_objdir=.
13072 libname=conftest
13073 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13074 allow_undefined_flag_CXX=
13075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13076 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }
13080 then
13081 archive_cmds_need_lc_CXX=no
13082 else
13083 archive_cmds_need_lc_CXX=yes
13084 fi
13085 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13086 else
13087 cat conftest.err 1>&5
13088 fi
13089 $rm conftest*
13090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13091 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13092 ;;
13093 esac
13094 fi
13095 ;;
13096 esac
13097
13098 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13100 library_names_spec=
13101 libname_spec='lib$name'
13102 soname_spec=
13103 shrext_cmds=".so"
13104 postinstall_cmds=
13105 postuninstall_cmds=
13106 finish_cmds=
13107 finish_eval=
13108 shlibpath_var=
13109 shlibpath_overrides_runpath=unknown
13110 version_type=none
13111 dynamic_linker="$host_os ld.so"
13112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13113
13114 need_lib_prefix=unknown
13115 hardcode_into_libs=no
13116
13117 # when you set need_version to no, make sure it does not cause -set_version
13118 # flags to be left without arguments
13119 need_version=unknown
13120
13121 case $host_os in
13122 aix3*)
13123 version_type=linux
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13125 shlibpath_var=LIBPATH
13126
13127 # AIX 3 has no versioning support, so we append a major version to the name.
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 ;;
13130
13131 aix4* | aix5*)
13132 version_type=linux
13133 need_lib_prefix=no
13134 need_version=no
13135 hardcode_into_libs=yes
13136 if test "$host_cpu" = ia64; then
13137 # AIX 5 supports IA64
13138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 else
13141 # With GCC up to 2.95.x, collect2 would create an import file
13142 # for dependence libraries. The import file would start with
13143 # the line `#! .'. This would cause the generated library to
13144 # depend on `.', always an invalid library. This was fixed in
13145 # development snapshots of GCC prior to 3.0.
13146 case $host_os in
13147 aix4 | aix4.[01] | aix4.[01].*)
13148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13149 echo ' yes '
13150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13151 :
13152 else
13153 can_build_shared=no
13154 fi
13155 ;;
13156 esac
13157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13158 # soname into executable. Probably we can add versioning support to
13159 # collect2, so additional links can be useful in future.
13160 if test "$aix_use_runtimelinking" = yes; then
13161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13162 # instead of lib<name>.a to let people know that these are not
13163 # typical AIX shared libraries.
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13165 else
13166 # We preserve .a as extension for shared libraries through AIX4.2
13167 # and later when we are not doing run time linking.
13168 library_names_spec='${libname}${release}.a $libname.a'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13170 fi
13171 shlibpath_var=LIBPATH
13172 fi
13173 ;;
13174
13175 amigaos*)
13176 library_names_spec='$libname.ixlibrary $libname.a'
13177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13178 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'
13179 ;;
13180
13181 beos*)
13182 library_names_spec='${libname}${shared_ext}'
13183 dynamic_linker="$host_os ld.so"
13184 shlibpath_var=LIBRARY_PATH
13185 ;;
13186
13187 bsdi[45]*)
13188 version_type=linux
13189 need_version=no
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13196 # the default ld.so.conf also contains /usr/contrib/lib and
13197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13198 # libtool to hard-code these into programs
13199 ;;
13200
13201 cygwin* | mingw* | pw32*)
13202 version_type=windows
13203 shrext_cmds=".dll"
13204 need_version=no
13205 need_lib_prefix=no
13206
13207 case $GCC,$host_os in
13208 yes,cygwin* | yes,mingw* | yes,pw32*)
13209 library_names_spec='$libname.dll.a'
13210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13211 postinstall_cmds='base_file=`basename \${file}`~
13212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13213 dldir=$destdir/`dirname \$dlpath`~
13214 test -d \$dldir || mkdir -p \$dldir~
13215 $install_prog $dir/$dlname \$dldir/$dlname~
13216 chmod a+x \$dldir/$dlname'
13217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13218 dlpath=$dir/\$dldll~
13219 $rm \$dlpath'
13220 shlibpath_overrides_runpath=yes
13221
13222 case $host_os in
13223 cygwin*)
13224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13227 ;;
13228 mingw*)
13229 # MinGW DLLs use traditional 'lib' prefix
13230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13233 # It is most probably a Windows format PATH printed by
13234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13235 # path with ; separators, and with drive letters. We can handle the
13236 # drive letters (cygwin fileutils understands them), so leave them,
13237 # especially as we might pass files found there to a mingw objdump,
13238 # which wouldn't understand a cygwinified path. Ahh.
13239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13240 else
13241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13242 fi
13243 ;;
13244 pw32*)
13245 # pw32 DLLs use 'pw' prefix rather than 'lib'
13246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13247 ;;
13248 esac
13249 ;;
13250
13251 *)
13252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13253 ;;
13254 esac
13255 dynamic_linker='Win32 ld.exe'
13256 # FIXME: first we should search . and the directory the executable is in
13257 shlibpath_var=PATH
13258 ;;
13259
13260 darwin* | rhapsody*)
13261 dynamic_linker="$host_os dyld"
13262 version_type=darwin
13263 need_lib_prefix=no
13264 need_version=no
13265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13266 soname_spec='${libname}${release}${major}$shared_ext'
13267 shlibpath_overrides_runpath=yes
13268 shlibpath_var=DYLD_LIBRARY_PATH
13269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13270
13271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13272 ;;
13273
13274 dgux*)
13275 version_type=linux
13276 need_lib_prefix=no
13277 need_version=no
13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13279 soname_spec='${libname}${release}${shared_ext}$major'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 ;;
13282
13283 freebsd1*)
13284 dynamic_linker=no
13285 ;;
13286
13287 freebsd* | dragonfly*)
13288 # DragonFly does not have aout. When/if they implement a new
13289 # versioning mechanism, adjust this.
13290 if test -x /usr/bin/objformat; then
13291 objformat=`/usr/bin/objformat`
13292 else
13293 case $host_os in
13294 freebsd[123]*) objformat=aout ;;
13295 *) objformat=elf ;;
13296 esac
13297 fi
13298 version_type=freebsd-$objformat
13299 case $version_type in
13300 freebsd-elf*)
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13302 need_version=no
13303 need_lib_prefix=no
13304 ;;
13305 freebsd-*)
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13307 need_version=yes
13308 ;;
13309 esac
13310 shlibpath_var=LD_LIBRARY_PATH
13311 case $host_os in
13312 freebsd2*)
13313 shlibpath_overrides_runpath=yes
13314 ;;
13315 freebsd3.[01]* | freebsdelf3.[01]*)
13316 shlibpath_overrides_runpath=yes
13317 hardcode_into_libs=yes
13318 ;;
13319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13321 shlibpath_overrides_runpath=no
13322 hardcode_into_libs=yes
13323 ;;
13324 *) # from 4.6 on, and DragonFly
13325 shlibpath_overrides_runpath=yes
13326 hardcode_into_libs=yes
13327 ;;
13328 esac
13329 ;;
13330
13331 gnu*)
13332 version_type=linux
13333 need_lib_prefix=no
13334 need_version=no
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13336 soname_spec='${libname}${release}${shared_ext}$major'
13337 shlibpath_var=LD_LIBRARY_PATH
13338 hardcode_into_libs=yes
13339 ;;
13340
13341 hpux9* | hpux10* | hpux11*)
13342 # Give a soname corresponding to the major version so that dld.sl refuses to
13343 # link against other versions.
13344 version_type=sunos
13345 need_lib_prefix=no
13346 need_version=no
13347 case $host_cpu in
13348 ia64*)
13349 shrext_cmds='.so'
13350 hardcode_into_libs=yes
13351 dynamic_linker="$host_os dld.so"
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355 soname_spec='${libname}${release}${shared_ext}$major'
13356 if test "X$HPUX_IA64_MODE" = X32; then
13357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13358 else
13359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13360 fi
13361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13362 ;;
13363 hppa*64*)
13364 shrext_cmds='.sl'
13365 hardcode_into_libs=yes
13366 dynamic_linker="$host_os dld.sl"
13367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13373 ;;
13374 *)
13375 shrext_cmds='.sl'
13376 dynamic_linker="$host_os dld.sl"
13377 shlibpath_var=SHLIB_PATH
13378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 ;;
13382 esac
13383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13384 postinstall_cmds='chmod 555 $lib'
13385 ;;
13386
13387 interix[3-9]*)
13388 version_type=linux
13389 need_lib_prefix=no
13390 need_version=no
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13392 soname_spec='${libname}${release}${shared_ext}$major'
13393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13394 shlibpath_var=LD_LIBRARY_PATH
13395 shlibpath_overrides_runpath=no
13396 hardcode_into_libs=yes
13397 ;;
13398
13399 irix5* | irix6* | nonstopux*)
13400 case $host_os in
13401 nonstopux*) version_type=nonstopux ;;
13402 *)
13403 if test "$lt_cv_prog_gnu_ld" = yes; then
13404 version_type=linux
13405 else
13406 version_type=irix
13407 fi ;;
13408 esac
13409 need_lib_prefix=no
13410 need_version=no
13411 soname_spec='${libname}${release}${shared_ext}$major'
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13413 case $host_os in
13414 irix5* | nonstopux*)
13415 libsuff= shlibsuff=
13416 ;;
13417 *)
13418 case $LD in # libtool.m4 will add one of these switches to LD
13419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13420 libsuff= shlibsuff= libmagic=32-bit;;
13421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13422 libsuff=32 shlibsuff=N32 libmagic=N32;;
13423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13425 *) libsuff= shlibsuff= libmagic=never-match;;
13426 esac
13427 ;;
13428 esac
13429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13430 shlibpath_overrides_runpath=no
13431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13433 hardcode_into_libs=yes
13434 ;;
13435
13436 # No shared lib support for Linux oldld, aout, or coff.
13437 linux*oldld* | linux*aout* | linux*coff*)
13438 dynamic_linker=no
13439 ;;
13440
13441 # This must be Linux ELF.
13442 linux* | k*bsd*-gnu)
13443 version_type=linux
13444 need_lib_prefix=no
13445 need_version=no
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath=no
13451 # This implies no fast_install, which is unacceptable.
13452 # Some rework will be needed to allow for fast_install
13453 # before this can be enabled.
13454 hardcode_into_libs=yes
13455
13456 # Append ld.so.conf contents to the search path
13457 if test -f /etc/ld.so.conf; then
13458 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13460 fi
13461
13462 # We used to test for /lib/ld.so.1 and disable shared libraries on
13463 # powerpc, because MkLinux only supported shared libraries with the
13464 # GNU dynamic linker. Since this was broken with cross compilers,
13465 # most powerpc-linux boxes support dynamic linking these days and
13466 # people can always --disable-shared, the test was removed, and we
13467 # assume the GNU/Linux dynamic linker is in use.
13468 dynamic_linker='GNU/Linux ld.so'
13469 ;;
13470
13471 netbsdelf*-gnu)
13472 version_type=linux
13473 need_lib_prefix=no
13474 need_version=no
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=no
13479 hardcode_into_libs=yes
13480 dynamic_linker='NetBSD ld.elf_so'
13481 ;;
13482
13483 netbsd*)
13484 version_type=sunos
13485 need_lib_prefix=no
13486 need_version=no
13487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13490 dynamic_linker='NetBSD (a.out) ld.so'
13491 else
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13493 soname_spec='${libname}${release}${shared_ext}$major'
13494 dynamic_linker='NetBSD ld.elf_so'
13495 fi
13496 shlibpath_var=LD_LIBRARY_PATH
13497 shlibpath_overrides_runpath=yes
13498 hardcode_into_libs=yes
13499 ;;
13500
13501 newsos6)
13502 version_type=linux
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath=yes
13506 ;;
13507
13508 nto-qnx*)
13509 version_type=linux
13510 need_lib_prefix=no
13511 need_version=no
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513 soname_spec='${libname}${release}${shared_ext}$major'
13514 shlibpath_var=LD_LIBRARY_PATH
13515 shlibpath_overrides_runpath=yes
13516 ;;
13517
13518 openbsd*)
13519 version_type=sunos
13520 sys_lib_dlsearch_path_spec="/usr/lib"
13521 need_lib_prefix=no
13522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13523 case $host_os in
13524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13525 *) need_version=no ;;
13526 esac
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13531 case $host_os in
13532 openbsd2.[89] | openbsd2.[89].*)
13533 shlibpath_overrides_runpath=no
13534 ;;
13535 *)
13536 shlibpath_overrides_runpath=yes
13537 ;;
13538 esac
13539 else
13540 shlibpath_overrides_runpath=yes
13541 fi
13542 ;;
13543
13544 os2*)
13545 libname_spec='$name'
13546 shrext_cmds=".dll"
13547 need_lib_prefix=no
13548 library_names_spec='$libname${shared_ext} $libname.a'
13549 dynamic_linker='OS/2 ld.exe'
13550 shlibpath_var=LIBPATH
13551 ;;
13552
13553 osf3* | osf4* | osf5*)
13554 version_type=osf
13555 need_lib_prefix=no
13556 need_version=no
13557 soname_spec='${libname}${release}${shared_ext}$major'
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13562 ;;
13563
13564 rdos*)
13565 dynamic_linker=no
13566 ;;
13567
13568 solaris*)
13569 version_type=linux
13570 need_lib_prefix=no
13571 need_version=no
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573 soname_spec='${libname}${release}${shared_ext}$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 shlibpath_overrides_runpath=yes
13576 hardcode_into_libs=yes
13577 # ldd complains unless libraries are executable
13578 postinstall_cmds='chmod +x $lib'
13579 ;;
13580
13581 sunos4*)
13582 version_type=sunos
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13585 shlibpath_var=LD_LIBRARY_PATH
13586 shlibpath_overrides_runpath=yes
13587 if test "$with_gnu_ld" = yes; then
13588 need_lib_prefix=no
13589 fi
13590 need_version=yes
13591 ;;
13592
13593 sysv4 | sysv4.3*)
13594 version_type=linux
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 case $host_vendor in
13599 sni)
13600 shlibpath_overrides_runpath=no
13601 need_lib_prefix=no
13602 export_dynamic_flag_spec='${wl}-Blargedynsym'
13603 runpath_var=LD_RUN_PATH
13604 ;;
13605 siemens)
13606 need_lib_prefix=no
13607 ;;
13608 motorola)
13609 need_lib_prefix=no
13610 need_version=no
13611 shlibpath_overrides_runpath=no
13612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13613 ;;
13614 esac
13615 ;;
13616
13617 sysv4*MP*)
13618 if test -d /usr/nec ;then
13619 version_type=linux
13620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13621 soname_spec='$libname${shared_ext}.$major'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 fi
13624 ;;
13625
13626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13627 version_type=freebsd-elf
13628 need_lib_prefix=no
13629 need_version=no
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 shlibpath_var=LD_LIBRARY_PATH
13633 hardcode_into_libs=yes
13634 if test "$with_gnu_ld" = yes; then
13635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13636 shlibpath_overrides_runpath=no
13637 else
13638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13639 shlibpath_overrides_runpath=yes
13640 case $host_os in
13641 sco3.2v5*)
13642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13643 ;;
13644 esac
13645 fi
13646 sys_lib_dlsearch_path_spec='/usr/lib'
13647 ;;
13648
13649 uts4*)
13650 version_type=linux
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 ;;
13655
13656 *)
13657 dynamic_linker=no
13658 ;;
13659 esac
13660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13661 echo "${ECHO_T}$dynamic_linker" >&6; }
13662 test "$dynamic_linker" = no && can_build_shared=no
13663
13664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13665 if test "$GCC" = yes; then
13666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13667 fi
13668
13669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13671 hardcode_action_CXX=
13672 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13673 test -n "$runpath_var_CXX" || \
13674 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13675
13676 # We can hardcode non-existant directories.
13677 if test "$hardcode_direct_CXX" != no &&
13678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13679 # have to relink, otherwise we might link with an installed library
13680 # when we should be linking with a yet-to-be-installed one
13681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13682 test "$hardcode_minus_L_CXX" != no; then
13683 # Linking always hardcodes the temporary library directory.
13684 hardcode_action_CXX=relink
13685 else
13686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13687 hardcode_action_CXX=immediate
13688 fi
13689 else
13690 # We cannot hardcode anything, or else we can only hardcode existing
13691 # directories.
13692 hardcode_action_CXX=unsupported
13693 fi
13694 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13695 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13696
13697 if test "$hardcode_action_CXX" = relink; then
13698 # Fast installation is not supported
13699 enable_fast_install=no
13700 elif test "$shlibpath_overrides_runpath" = yes ||
13701 test "$enable_shared" = no; then
13702 # Fast installation is not necessary
13703 enable_fast_install=needless
13704 fi
13705
13706
13707 # The else clause should only fire when bootstrapping the
13708 # libtool distribution, otherwise you forgot to ship ltmain.sh
13709 # with your package, and you will get complaints that there are
13710 # no rules to generate ltmain.sh.
13711 if test -f "$ltmain"; then
13712 # See if we are running on zsh, and set the options which allow our commands through
13713 # without removal of \ escapes.
13714 if test -n "${ZSH_VERSION+set}" ; then
13715 setopt NO_GLOB_SUBST
13716 fi
13717 # Now quote all the things that may contain metacharacters while being
13718 # careful not to overquote the AC_SUBSTed values. We take copies of the
13719 # variables and quote the copies for generation of the libtool script.
13720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13721 SED SHELL STRIP \
13722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13724 deplibs_check_method reload_flag reload_cmds need_locks \
13725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13726 lt_cv_sys_global_symbol_to_c_name_address \
13727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13728 old_postinstall_cmds old_postuninstall_cmds \
13729 compiler_CXX \
13730 CC_CXX \
13731 LD_CXX \
13732 lt_prog_compiler_wl_CXX \
13733 lt_prog_compiler_pic_CXX \
13734 lt_prog_compiler_static_CXX \
13735 lt_prog_compiler_no_builtin_flag_CXX \
13736 export_dynamic_flag_spec_CXX \
13737 thread_safe_flag_spec_CXX \
13738 whole_archive_flag_spec_CXX \
13739 enable_shared_with_static_runtimes_CXX \
13740 old_archive_cmds_CXX \
13741 old_archive_from_new_cmds_CXX \
13742 predep_objects_CXX \
13743 postdep_objects_CXX \
13744 predeps_CXX \
13745 postdeps_CXX \
13746 compiler_lib_search_path_CXX \
13747 archive_cmds_CXX \
13748 archive_expsym_cmds_CXX \
13749 postinstall_cmds_CXX \
13750 postuninstall_cmds_CXX \
13751 old_archive_from_expsyms_cmds_CXX \
13752 allow_undefined_flag_CXX \
13753 no_undefined_flag_CXX \
13754 export_symbols_cmds_CXX \
13755 hardcode_libdir_flag_spec_CXX \
13756 hardcode_libdir_flag_spec_ld_CXX \
13757 hardcode_libdir_separator_CXX \
13758 hardcode_automatic_CXX \
13759 module_cmds_CXX \
13760 module_expsym_cmds_CXX \
13761 lt_cv_prog_compiler_c_o_CXX \
13762 fix_srcfile_path_CXX \
13763 exclude_expsyms_CXX \
13764 include_expsyms_CXX; do
13765
13766 case $var in
13767 old_archive_cmds_CXX | \
13768 old_archive_from_new_cmds_CXX | \
13769 archive_cmds_CXX | \
13770 archive_expsym_cmds_CXX | \
13771 module_cmds_CXX | \
13772 module_expsym_cmds_CXX | \
13773 old_archive_from_expsyms_cmds_CXX | \
13774 export_symbols_cmds_CXX | \
13775 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13776 postinstall_cmds | postuninstall_cmds | \
13777 old_postinstall_cmds | old_postuninstall_cmds | \
13778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13779 # Double-quote double-evaled strings.
13780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13781 ;;
13782 *)
13783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13784 ;;
13785 esac
13786 done
13787
13788 case $lt_echo in
13789 *'\$0 --fallback-echo"')
13790 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13791 ;;
13792 esac
13793
13794 cfgfile="$ofile"
13795
13796 cat <<__EOF__ >> "$cfgfile"
13797 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13798
13799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13800
13801 # Shell to use when invoking shell scripts.
13802 SHELL=$lt_SHELL
13803
13804 # Whether or not to build shared libraries.
13805 build_libtool_libs=$enable_shared
13806
13807 # Whether or not to build static libraries.
13808 build_old_libs=$enable_static
13809
13810 # Whether or not to add -lc for building shared libraries.
13811 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13812
13813 # Whether or not to disallow shared libs when runtime libs are static
13814 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13815
13816 # Whether or not to optimize for fast installation.
13817 fast_install=$enable_fast_install
13818
13819 # The host system.
13820 host_alias=$host_alias
13821 host=$host
13822 host_os=$host_os
13823
13824 # The build system.
13825 build_alias=$build_alias
13826 build=$build
13827 build_os=$build_os
13828
13829 # An echo program that does not interpret backslashes.
13830 echo=$lt_echo
13831
13832 # The archiver.
13833 AR=$lt_AR
13834 AR_FLAGS=$lt_AR_FLAGS
13835
13836 # A C compiler.
13837 LTCC=$lt_LTCC
13838
13839 # LTCC compiler flags.
13840 LTCFLAGS=$lt_LTCFLAGS
13841
13842 # A language-specific compiler.
13843 CC=$lt_compiler_CXX
13844
13845 # Is the compiler the GNU C compiler?
13846 with_gcc=$GCC_CXX
13847
13848 # An ERE matcher.
13849 EGREP=$lt_EGREP
13850
13851 # The linker used to build libraries.
13852 LD=$lt_LD_CXX
13853
13854 # Whether we need hard or soft links.
13855 LN_S=$lt_LN_S
13856
13857 # A BSD-compatible nm program.
13858 NM=$lt_NM
13859
13860 # A symbol stripping program
13861 STRIP=$lt_STRIP
13862
13863 # Used to examine libraries when file_magic_cmd begins "file"
13864 MAGIC_CMD=$MAGIC_CMD
13865
13866 # Used on cygwin: DLL creation program.
13867 DLLTOOL="$DLLTOOL"
13868
13869 # Used on cygwin: object dumper.
13870 OBJDUMP="$OBJDUMP"
13871
13872 # Used on cygwin: assembler.
13873 AS="$AS"
13874
13875 # The name of the directory that contains temporary libtool files.
13876 objdir=$objdir
13877
13878 # How to create reloadable object files.
13879 reload_flag=$lt_reload_flag
13880 reload_cmds=$lt_reload_cmds
13881
13882 # How to pass a linker flag through the compiler.
13883 wl=$lt_lt_prog_compiler_wl_CXX
13884
13885 # Object file suffix (normally "o").
13886 objext="$ac_objext"
13887
13888 # Old archive suffix (normally "a").
13889 libext="$libext"
13890
13891 # Shared library suffix (normally ".so").
13892 shrext_cmds='$shrext_cmds'
13893
13894 # Executable file suffix (normally "").
13895 exeext="$exeext"
13896
13897 # Additional compiler flags for building library objects.
13898 pic_flag=$lt_lt_prog_compiler_pic_CXX
13899 pic_mode=$pic_mode
13900
13901 # What is the maximum length of a command?
13902 max_cmd_len=$lt_cv_sys_max_cmd_len
13903
13904 # Does compiler simultaneously support -c and -o options?
13905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13906
13907 # Must we lock files when doing compilation?
13908 need_locks=$lt_need_locks
13909
13910 # Do we need the lib prefix for modules?
13911 need_lib_prefix=$need_lib_prefix
13912
13913 # Do we need a version for libraries?
13914 need_version=$need_version
13915
13916 # Whether dlopen is supported.
13917 dlopen_support=$enable_dlopen
13918
13919 # Whether dlopen of programs is supported.
13920 dlopen_self=$enable_dlopen_self
13921
13922 # Whether dlopen of statically linked programs is supported.
13923 dlopen_self_static=$enable_dlopen_self_static
13924
13925 # Compiler flag to prevent dynamic linking.
13926 link_static_flag=$lt_lt_prog_compiler_static_CXX
13927
13928 # Compiler flag to turn off builtin functions.
13929 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13930
13931 # Compiler flag to allow reflexive dlopens.
13932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13933
13934 # Compiler flag to generate shared objects directly from archives.
13935 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13936
13937 # Compiler flag to generate thread-safe objects.
13938 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13939
13940 # Library versioning type.
13941 version_type=$version_type
13942
13943 # Format of library name prefix.
13944 libname_spec=$lt_libname_spec
13945
13946 # List of archive names. First name is the real one, the rest are links.
13947 # The last name is the one that the linker finds with -lNAME.
13948 library_names_spec=$lt_library_names_spec
13949
13950 # The coded name of the library, if different from the real name.
13951 soname_spec=$lt_soname_spec
13952
13953 # Commands used to build and install an old-style archive.
13954 RANLIB=$lt_RANLIB
13955 old_archive_cmds=$lt_old_archive_cmds_CXX
13956 old_postinstall_cmds=$lt_old_postinstall_cmds
13957 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13958
13959 # Create an old-style archive from a shared archive.
13960 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13961
13962 # Create a temporary old-style archive to link instead of a shared archive.
13963 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13964
13965 # Commands used to build and install a shared archive.
13966 archive_cmds=$lt_archive_cmds_CXX
13967 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13968 postinstall_cmds=$lt_postinstall_cmds
13969 postuninstall_cmds=$lt_postuninstall_cmds
13970
13971 # Commands used to build a loadable module (assumed same as above if empty)
13972 module_cmds=$lt_module_cmds_CXX
13973 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13974
13975 # Commands to strip libraries.
13976 old_striplib=$lt_old_striplib
13977 striplib=$lt_striplib
13978
13979 # Dependencies to place before the objects being linked to create a
13980 # shared library.
13981 predep_objects=$lt_predep_objects_CXX
13982
13983 # Dependencies to place after the objects being linked to create a
13984 # shared library.
13985 postdep_objects=$lt_postdep_objects_CXX
13986
13987 # Dependencies to place before the objects being linked to create a
13988 # shared library.
13989 predeps=$lt_predeps_CXX
13990
13991 # Dependencies to place after the objects being linked to create a
13992 # shared library.
13993 postdeps=$lt_postdeps_CXX
13994
13995 # The library search path used internally by the compiler when linking
13996 # a shared library.
13997 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13998
13999 # Method to check whether dependent libraries are shared objects.
14000 deplibs_check_method=$lt_deplibs_check_method
14001
14002 # Command to use when deplibs_check_method == file_magic.
14003 file_magic_cmd=$lt_file_magic_cmd
14004
14005 # Flag that allows shared libraries with undefined symbols to be built.
14006 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14007
14008 # Flag that forces no undefined symbols.
14009 no_undefined_flag=$lt_no_undefined_flag_CXX
14010
14011 # Commands used to finish a libtool library installation in a directory.
14012 finish_cmds=$lt_finish_cmds
14013
14014 # Same as above, but a single script fragment to be evaled but not shown.
14015 finish_eval=$lt_finish_eval
14016
14017 # Take the output of nm and produce a listing of raw symbols and C names.
14018 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14019
14020 # Transform the output of nm in a proper C declaration
14021 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14022
14023 # Transform the output of nm in a C name address pair
14024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14025
14026 # This is the shared library runtime path variable.
14027 runpath_var=$runpath_var
14028
14029 # This is the shared library path variable.
14030 shlibpath_var=$shlibpath_var
14031
14032 # Is shlibpath searched before the hard-coded library search path?
14033 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14034
14035 # How to hardcode a shared library path into an executable.
14036 hardcode_action=$hardcode_action_CXX
14037
14038 # Whether we should hardcode library paths into libraries.
14039 hardcode_into_libs=$hardcode_into_libs
14040
14041 # Flag to hardcode \$libdir into a binary during linking.
14042 # This must work even if \$libdir does not exist.
14043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14044
14045 # If ld is used when linking, flag to hardcode \$libdir into
14046 # a binary during linking. This must work even if \$libdir does
14047 # not exist.
14048 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14049
14050 # Whether we need a single -rpath flag with a separated argument.
14051 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14052
14053 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14054 # resulting binary.
14055 hardcode_direct=$hardcode_direct_CXX
14056
14057 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14058 # resulting binary.
14059 hardcode_minus_L=$hardcode_minus_L_CXX
14060
14061 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14062 # the resulting binary.
14063 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14064
14065 # Set to yes if building a shared library automatically hardcodes DIR into the library
14066 # and all subsequent libraries and executables linked against it.
14067 hardcode_automatic=$hardcode_automatic_CXX
14068
14069 # Variables whose values should be saved in libtool wrapper scripts and
14070 # restored at relink time.
14071 variables_saved_for_relink="$variables_saved_for_relink"
14072
14073 # Whether libtool must link a program against all its dependency libraries.
14074 link_all_deplibs=$link_all_deplibs_CXX
14075
14076 # Compile-time system search path for libraries
14077 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14078
14079 # Run-time system search path for libraries
14080 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14081
14082 # Fix the shell variable \$srcfile for the compiler.
14083 fix_srcfile_path=$lt_fix_srcfile_path
14084
14085 # Set to yes if exported symbols are required.
14086 always_export_symbols=$always_export_symbols_CXX
14087
14088 # The commands to list exported symbols.
14089 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14090
14091 # The commands to extract the exported symbol list from a shared archive.
14092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14093
14094 # Symbols that should not be listed in the preloaded symbols.
14095 exclude_expsyms=$lt_exclude_expsyms_CXX
14096
14097 # Symbols that must always be exported.
14098 include_expsyms=$lt_include_expsyms_CXX
14099
14100 # ### END LIBTOOL TAG CONFIG: $tagname
14101
14102 __EOF__
14103
14104
14105 else
14106 # If there is no Makefile yet, we rely on a make rule to execute
14107 # `config.status --recheck' to rerun these tests and create the
14108 # libtool script then.
14109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14110 if test -f "$ltmain_in"; then
14111 test -f Makefile && make "$ltmain"
14112 fi
14113 fi
14114
14115
14116 ac_ext=c
14117 ac_cpp='$CPP $CPPFLAGS'
14118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14121
14122 CC=$lt_save_CC
14123 LDCXX=$LD
14124 LD=$lt_save_LD
14125 GCC=$lt_save_GCC
14126 with_gnu_ldcxx=$with_gnu_ld
14127 with_gnu_ld=$lt_save_with_gnu_ld
14128 lt_cv_path_LDCXX=$lt_cv_path_LD
14129 lt_cv_path_LD=$lt_save_path_LD
14130 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14131 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14132
14133 else
14134 tagname=""
14135 fi
14136 ;;
14137
14138 F77)
14139 if test -n "$F77" && test "X$F77" != "Xno"; then
14140
14141 ac_ext=f
14142 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14143 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14145
14146
14147 archive_cmds_need_lc_F77=no
14148 allow_undefined_flag_F77=
14149 always_export_symbols_F77=no
14150 archive_expsym_cmds_F77=
14151 export_dynamic_flag_spec_F77=
14152 hardcode_direct_F77=no
14153 hardcode_libdir_flag_spec_F77=
14154 hardcode_libdir_flag_spec_ld_F77=
14155 hardcode_libdir_separator_F77=
14156 hardcode_minus_L_F77=no
14157 hardcode_automatic_F77=no
14158 module_cmds_F77=
14159 module_expsym_cmds_F77=
14160 link_all_deplibs_F77=unknown
14161 old_archive_cmds_F77=$old_archive_cmds
14162 no_undefined_flag_F77=
14163 whole_archive_flag_spec_F77=
14164 enable_shared_with_static_runtimes_F77=no
14165
14166 # Source file extension for f77 test sources.
14167 ac_ext=f
14168
14169 # Object file extension for compiled f77 test sources.
14170 objext=o
14171 objext_F77=$objext
14172
14173 # Code to be used in simple compile tests
14174 lt_simple_compile_test_code="\
14175 subroutine t
14176 return
14177 end
14178 "
14179
14180 # Code to be used in simple link tests
14181 lt_simple_link_test_code="\
14182 program t
14183 end
14184 "
14185
14186 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14187
14188 # If no C compiler was specified, use CC.
14189 LTCC=${LTCC-"$CC"}
14190
14191 # If no C compiler flags were specified, use CFLAGS.
14192 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14193
14194 # Allow CC to be a program name with arguments.
14195 compiler=$CC
14196
14197
14198 # save warnings/boilerplate of simple test code
14199 ac_outfile=conftest.$ac_objext
14200 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14201 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14202 _lt_compiler_boilerplate=`cat conftest.err`
14203 $rm conftest*
14204
14205 ac_outfile=conftest.$ac_objext
14206 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14207 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14208 _lt_linker_boilerplate=`cat conftest.err`
14209 $rm conftest*
14210
14211
14212 # Allow CC to be a program name with arguments.
14213 lt_save_CC="$CC"
14214 CC=${F77-"f77"}
14215 compiler=$CC
14216 compiler_F77=$CC
14217 for cc_temp in $compiler""; do
14218 case $cc_temp in
14219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14221 \-*) ;;
14222 *) break;;
14223 esac
14224 done
14225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14226
14227
14228 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14230 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14231 echo "${ECHO_T}$can_build_shared" >&6; }
14232
14233 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14235 test "$can_build_shared" = "no" && enable_shared=no
14236
14237 # On AIX, shared libraries and static libraries use the same namespace, and
14238 # are all built from PIC.
14239 case $host_os in
14240 aix3*)
14241 test "$enable_shared" = yes && enable_static=no
14242 if test -n "$RANLIB"; then
14243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14244 postinstall_cmds='$RANLIB $lib'
14245 fi
14246 ;;
14247 aix4* | aix5*)
14248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14249 test "$enable_shared" = yes && enable_static=no
14250 fi
14251 ;;
14252 esac
14253 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14254 echo "${ECHO_T}$enable_shared" >&6; }
14255
14256 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14257 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14258 # Make sure either enable_shared or enable_static is yes.
14259 test "$enable_shared" = yes || enable_static=yes
14260 { echo "$as_me:$LINENO: result: $enable_static" >&5
14261 echo "${ECHO_T}$enable_static" >&6; }
14262
14263 GCC_F77="$G77"
14264 LD_F77="$LD"
14265
14266 lt_prog_compiler_wl_F77=
14267 lt_prog_compiler_pic_F77=
14268 lt_prog_compiler_static_F77=
14269
14270 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14271 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14272
14273 if test "$GCC" = yes; then
14274 lt_prog_compiler_wl_F77='-Wl,'
14275 lt_prog_compiler_static_F77='-static'
14276
14277 case $host_os in
14278 aix*)
14279 # All AIX code is PIC.
14280 if test "$host_cpu" = ia64; then
14281 # AIX 5 now supports IA64 processor
14282 lt_prog_compiler_static_F77='-Bstatic'
14283 fi
14284 ;;
14285
14286 amigaos*)
14287 # FIXME: we need at least 68020 code to build shared libraries, but
14288 # adding the `-m68020' flag to GCC prevents building anything better,
14289 # like `-m68040'.
14290 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14291 ;;
14292
14293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14294 # PIC is the default for these OSes.
14295 ;;
14296
14297 mingw* | cygwin* | pw32* | os2*)
14298 # This hack is so that the source file can tell whether it is being
14299 # built for inclusion in a dll (and should export symbols for example).
14300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14301 # (--disable-auto-import) libraries
14302 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14303 ;;
14304
14305 darwin* | rhapsody*)
14306 # PIC is the default on this platform
14307 # Common symbols not allowed in MH_DYLIB files
14308 lt_prog_compiler_pic_F77='-fno-common'
14309 ;;
14310
14311 interix[3-9]*)
14312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14313 # Instead, we relocate shared libraries at runtime.
14314 ;;
14315
14316 msdosdjgpp*)
14317 # Just because we use GCC doesn't mean we suddenly get shared libraries
14318 # on systems that don't support them.
14319 lt_prog_compiler_can_build_shared_F77=no
14320 enable_shared=no
14321 ;;
14322
14323 sysv4*MP*)
14324 if test -d /usr/nec; then
14325 lt_prog_compiler_pic_F77=-Kconform_pic
14326 fi
14327 ;;
14328
14329 hpux*)
14330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14331 # not for PA HP-UX.
14332 case $host_cpu in
14333 hppa*64*|ia64*)
14334 # +Z the default
14335 ;;
14336 *)
14337 lt_prog_compiler_pic_F77='-fPIC'
14338 ;;
14339 esac
14340 ;;
14341
14342 *)
14343 lt_prog_compiler_pic_F77='-fPIC'
14344 ;;
14345 esac
14346 else
14347 # PORTME Check for flag to pass linker flags through the system compiler.
14348 case $host_os in
14349 aix*)
14350 lt_prog_compiler_wl_F77='-Wl,'
14351 if test "$host_cpu" = ia64; then
14352 # AIX 5 now supports IA64 processor
14353 lt_prog_compiler_static_F77='-Bstatic'
14354 else
14355 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14356 fi
14357 ;;
14358 darwin*)
14359 # PIC is the default on this platform
14360 # Common symbols not allowed in MH_DYLIB files
14361 case $cc_basename in
14362 xlc*)
14363 lt_prog_compiler_pic_F77='-qnocommon'
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 ;;
14366 esac
14367 ;;
14368
14369 mingw* | cygwin* | pw32* | os2*)
14370 # This hack is so that the source file can tell whether it is being
14371 # built for inclusion in a dll (and should export symbols for example).
14372 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14373 ;;
14374
14375 hpux9* | hpux10* | hpux11*)
14376 lt_prog_compiler_wl_F77='-Wl,'
14377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14378 # not for PA HP-UX.
14379 case $host_cpu in
14380 hppa*64*|ia64*)
14381 # +Z the default
14382 ;;
14383 *)
14384 lt_prog_compiler_pic_F77='+Z'
14385 ;;
14386 esac
14387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14388 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14389 ;;
14390
14391 irix5* | irix6* | nonstopux*)
14392 lt_prog_compiler_wl_F77='-Wl,'
14393 # PIC (with -KPIC) is the default.
14394 lt_prog_compiler_static_F77='-non_shared'
14395 ;;
14396
14397 newsos6)
14398 lt_prog_compiler_pic_F77='-KPIC'
14399 lt_prog_compiler_static_F77='-Bstatic'
14400 ;;
14401
14402 linux* | k*bsd*-gnu)
14403 case $cc_basename in
14404 icc* | ecc*)
14405 lt_prog_compiler_wl_F77='-Wl,'
14406 lt_prog_compiler_pic_F77='-KPIC'
14407 lt_prog_compiler_static_F77='-static'
14408 ;;
14409 pgcc* | pgf77* | pgf90* | pgf95*)
14410 # Portland Group compilers (*not* the Pentium gcc compiler,
14411 # which looks to be a dead project)
14412 lt_prog_compiler_wl_F77='-Wl,'
14413 lt_prog_compiler_pic_F77='-fpic'
14414 lt_prog_compiler_static_F77='-Bstatic'
14415 ;;
14416 ccc*)
14417 lt_prog_compiler_wl_F77='-Wl,'
14418 # All Alpha code is PIC.
14419 lt_prog_compiler_static_F77='-non_shared'
14420 ;;
14421 *)
14422 case `$CC -V 2>&1 | sed 5q` in
14423 *Sun\ C*)
14424 # Sun C 5.9
14425 lt_prog_compiler_pic_F77='-KPIC'
14426 lt_prog_compiler_static_F77='-Bstatic'
14427 lt_prog_compiler_wl_F77='-Wl,'
14428 ;;
14429 *Sun\ F*)
14430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14431 lt_prog_compiler_pic_F77='-KPIC'
14432 lt_prog_compiler_static_F77='-Bstatic'
14433 lt_prog_compiler_wl_F77=''
14434 ;;
14435 esac
14436 ;;
14437 esac
14438 ;;
14439
14440 osf3* | osf4* | osf5*)
14441 lt_prog_compiler_wl_F77='-Wl,'
14442 # All OSF/1 code is PIC.
14443 lt_prog_compiler_static_F77='-non_shared'
14444 ;;
14445
14446 rdos*)
14447 lt_prog_compiler_static_F77='-non_shared'
14448 ;;
14449
14450 solaris*)
14451 lt_prog_compiler_pic_F77='-KPIC'
14452 lt_prog_compiler_static_F77='-Bstatic'
14453 case $cc_basename in
14454 f77* | f90* | f95*)
14455 lt_prog_compiler_wl_F77='-Qoption ld ';;
14456 *)
14457 lt_prog_compiler_wl_F77='-Wl,';;
14458 esac
14459 ;;
14460
14461 sunos4*)
14462 lt_prog_compiler_wl_F77='-Qoption ld '
14463 lt_prog_compiler_pic_F77='-PIC'
14464 lt_prog_compiler_static_F77='-Bstatic'
14465 ;;
14466
14467 sysv4 | sysv4.2uw2* | sysv4.3*)
14468 lt_prog_compiler_wl_F77='-Wl,'
14469 lt_prog_compiler_pic_F77='-KPIC'
14470 lt_prog_compiler_static_F77='-Bstatic'
14471 ;;
14472
14473 sysv4*MP*)
14474 if test -d /usr/nec ;then
14475 lt_prog_compiler_pic_F77='-Kconform_pic'
14476 lt_prog_compiler_static_F77='-Bstatic'
14477 fi
14478 ;;
14479
14480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14481 lt_prog_compiler_wl_F77='-Wl,'
14482 lt_prog_compiler_pic_F77='-KPIC'
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 ;;
14485
14486 unicos*)
14487 lt_prog_compiler_wl_F77='-Wl,'
14488 lt_prog_compiler_can_build_shared_F77=no
14489 ;;
14490
14491 uts4*)
14492 lt_prog_compiler_pic_F77='-pic'
14493 lt_prog_compiler_static_F77='-Bstatic'
14494 ;;
14495
14496 *)
14497 lt_prog_compiler_can_build_shared_F77=no
14498 ;;
14499 esac
14500 fi
14501
14502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14503 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14504
14505 #
14506 # Check to make sure the PIC flag actually works.
14507 #
14508 if test -n "$lt_prog_compiler_pic_F77"; then
14509
14510 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14512 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515 lt_prog_compiler_pic_works_F77=no
14516 ac_outfile=conftest.$ac_objext
14517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14518 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 # The option is referenced via a variable to avoid confusing sed.
14524 lt_compile=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
14528 (eval echo "\"\$as_me:14528: $lt_compile\"" >&5)
14529 (eval "$lt_compile" 2>conftest.err)
14530 ac_status=$?
14531 cat conftest.err >&5
14532 echo "$as_me:14532: \$? = $ac_status" >&5
14533 if (exit $ac_status) && test -s "$ac_outfile"; then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings other than the usual output.
14536 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14539 lt_prog_compiler_pic_works_F77=yes
14540 fi
14541 fi
14542 $rm conftest*
14543
14544 fi
14545 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14546 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14547
14548 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14549 case $lt_prog_compiler_pic_F77 in
14550 "" | " "*) ;;
14551 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14552 esac
14553 else
14554 lt_prog_compiler_pic_F77=
14555 lt_prog_compiler_can_build_shared_F77=no
14556 fi
14557
14558 fi
14559 case $host_os in
14560 # For platforms which do not support PIC, -DPIC is meaningless:
14561 *djgpp*)
14562 lt_prog_compiler_pic_F77=
14563 ;;
14564 *)
14565 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14566 ;;
14567 esac
14568
14569 #
14570 # Check to make sure the static flag actually works.
14571 #
14572 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14573 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14574 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14575 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 lt_prog_compiler_static_works_F77=no
14579 save_LDFLAGS="$LDFLAGS"
14580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14583 # The linker can only warn and ignore the option if not recognized
14584 # So say no if there are warnings
14585 if test -s conftest.err; then
14586 # Append any errors to the config.log.
14587 cat conftest.err 1>&5
14588 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14590 if diff conftest.exp conftest.er2 >/dev/null; then
14591 lt_prog_compiler_static_works_F77=yes
14592 fi
14593 else
14594 lt_prog_compiler_static_works_F77=yes
14595 fi
14596 fi
14597 $rm conftest*
14598 LDFLAGS="$save_LDFLAGS"
14599
14600 fi
14601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14602 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14603
14604 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14605 :
14606 else
14607 lt_prog_compiler_static_F77=
14608 fi
14609
14610
14611 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14612 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14613 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 lt_cv_prog_compiler_c_o_F77=no
14617 $rm -r conftest 2>/dev/null
14618 mkdir conftest
14619 cd conftest
14620 mkdir out
14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14622
14623 lt_compiler_flag="-o out/conftest2.$ac_objext"
14624 # Insert the option either (1) after the last *FLAGS variable, or
14625 # (2) before a word containing "conftest.", or (3) at the end.
14626 # Note that $ac_compile itself does not contain backslashes and begins
14627 # with a dollar sign (not a hyphen), so the echo should work correctly.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>out/conftest.err)
14634 ac_status=$?
14635 cat out/conftest.err >&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14638 then
14639 # The compiler can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_c_o_F77=yes
14645 fi
14646 fi
14647 chmod u+w . 2>&5
14648 $rm conftest*
14649 # SGI C++ compiler will create directory out/ii_files/ for
14650 # template instantiation
14651 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14652 $rm out/* && rmdir out
14653 cd ..
14654 rmdir conftest
14655 $rm conftest*
14656
14657 fi
14658 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14659 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14660
14661
14662 hard_links="nottested"
14663 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14664 # do not overwrite the value of need_locks provided by the user
14665 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14666 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14667 hard_links=yes
14668 $rm conftest*
14669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14670 touch conftest.a
14671 ln conftest.a conftest.b 2>&5 || hard_links=no
14672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14673 { echo "$as_me:$LINENO: result: $hard_links" >&5
14674 echo "${ECHO_T}$hard_links" >&6; }
14675 if test "$hard_links" = no; then
14676 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14677 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14678 need_locks=warn
14679 fi
14680 else
14681 need_locks=no
14682 fi
14683
14684 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14685 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14686
14687 runpath_var=
14688 allow_undefined_flag_F77=
14689 enable_shared_with_static_runtimes_F77=no
14690 archive_cmds_F77=
14691 archive_expsym_cmds_F77=
14692 old_archive_From_new_cmds_F77=
14693 old_archive_from_expsyms_cmds_F77=
14694 export_dynamic_flag_spec_F77=
14695 whole_archive_flag_spec_F77=
14696 thread_safe_flag_spec_F77=
14697 hardcode_libdir_flag_spec_F77=
14698 hardcode_libdir_flag_spec_ld_F77=
14699 hardcode_libdir_separator_F77=
14700 hardcode_direct_F77=no
14701 hardcode_minus_L_F77=no
14702 hardcode_shlibpath_var_F77=unsupported
14703 link_all_deplibs_F77=unknown
14704 hardcode_automatic_F77=no
14705 module_cmds_F77=
14706 module_expsym_cmds_F77=
14707 always_export_symbols_F77=no
14708 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14709 # include_expsyms should be a list of space-separated symbols to be *always*
14710 # included in the symbol list
14711 include_expsyms_F77=
14712 # exclude_expsyms can be an extended regexp of symbols to exclude
14713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14715 # as well as any symbol that contains `d'.
14716 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14718 # platforms (ab)use it in PIC code, but their linkers get confused if
14719 # the symbol is explicitly referenced. Since portable code cannot
14720 # rely on this symbol name, it's probably fine to never include it in
14721 # preloaded symbol tables.
14722 extract_expsyms_cmds=
14723 # Just being paranoid about ensuring that cc_basename is set.
14724 for cc_temp in $compiler""; do
14725 case $cc_temp in
14726 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14727 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14728 \-*) ;;
14729 *) break;;
14730 esac
14731 done
14732 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14733
14734 case $host_os in
14735 cygwin* | mingw* | pw32*)
14736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14737 # When not using gcc, we currently assume that we are using
14738 # Microsoft Visual C++.
14739 if test "$GCC" != yes; then
14740 with_gnu_ld=no
14741 fi
14742 ;;
14743 interix*)
14744 # we just hope/assume this is gcc and not c89 (= MSVC++)
14745 with_gnu_ld=yes
14746 ;;
14747 openbsd*)
14748 with_gnu_ld=no
14749 ;;
14750 esac
14751
14752 ld_shlibs_F77=yes
14753 if test "$with_gnu_ld" = yes; then
14754 # If archive_cmds runs LD, not CC, wlarc should be empty
14755 wlarc='${wl}'
14756
14757 # Set some defaults for GNU ld with shared library support. These
14758 # are reset later if shared libraries are not supported. Putting them
14759 # here allows them to be overridden if necessary.
14760 runpath_var=LD_RUN_PATH
14761 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14762 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14763 # ancient GNU ld didn't support --whole-archive et. al.
14764 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14765 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14766 else
14767 whole_archive_flag_spec_F77=
14768 fi
14769 supports_anon_versioning=no
14770 case `$LD -v 2>/dev/null` in
14771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14774 *\ 2.11.*) ;; # other 2.11 versions
14775 *) supports_anon_versioning=yes ;;
14776 esac
14777
14778 # See if GNU ld supports shared libraries.
14779 case $host_os in
14780 aix3* | aix4* | aix5*)
14781 # On AIX/PPC, the GNU linker is very broken
14782 if test "$host_cpu" != ia64; then
14783 ld_shlibs_F77=no
14784 cat <<EOF 1>&2
14785
14786 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14787 *** to be unable to reliably create shared libraries on AIX.
14788 *** Therefore, libtool is disabling shared libraries support. If you
14789 *** really care for shared libraries, you may want to modify your PATH
14790 *** so that a non-GNU linker is found, and then restart.
14791
14792 EOF
14793 fi
14794 ;;
14795
14796 amigaos*)
14797 archive_cmds_F77='$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)'
14798 hardcode_libdir_flag_spec_F77='-L$libdir'
14799 hardcode_minus_L_F77=yes
14800
14801 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14802 # that the semantics of dynamic libraries on AmigaOS, at least up
14803 # to version 4, is to share data among multiple programs linked
14804 # with the same dynamic library. Since this doesn't match the
14805 # behavior of shared libraries on other platforms, we can't use
14806 # them.
14807 ld_shlibs_F77=no
14808 ;;
14809
14810 beos*)
14811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812 allow_undefined_flag_F77=unsupported
14813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14814 # support --undefined. This deserves some investigation. FIXME
14815 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 else
14817 ld_shlibs_F77=no
14818 fi
14819 ;;
14820
14821 cygwin* | mingw* | pw32*)
14822 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14823 # as there is no search path for DLLs.
14824 hardcode_libdir_flag_spec_F77='-L$libdir'
14825 allow_undefined_flag_F77=unsupported
14826 always_export_symbols_F77=no
14827 enable_shared_with_static_runtimes_F77=yes
14828 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14829
14830 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14832 # If the export-symbols file already is a .def file (1st line
14833 # is EXPORTS), use it as is; otherwise, prepend...
14834 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14835 cp $export_symbols $output_objdir/$soname.def;
14836 else
14837 echo EXPORTS > $output_objdir/$soname.def;
14838 cat $export_symbols >> $output_objdir/$soname.def;
14839 fi~
14840 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14841 else
14842 ld_shlibs_F77=no
14843 fi
14844 ;;
14845
14846 interix[3-9]*)
14847 hardcode_direct_F77=no
14848 hardcode_shlibpath_var_F77=no
14849 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14850 export_dynamic_flag_spec_F77='${wl}-E'
14851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14852 # Instead, shared libraries are loaded at an image base (0x10000000 by
14853 # default) and relocated if they conflict, which is a slow very memory
14854 # consuming and fragmenting process. To avoid this, we pick a random,
14855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14857 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14858 archive_expsym_cmds_F77='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'
14859 ;;
14860
14861 gnu* | linux* | k*bsd*-gnu)
14862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14863 tmp_addflag=
14864 case $cc_basename,$host_cpu in
14865 pgcc*) # Portland Group C compiler
14866 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14867 tmp_addflag=' $pic_flag'
14868 ;;
14869 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14870 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14871 tmp_addflag=' $pic_flag -Mnomain' ;;
14872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14873 tmp_addflag=' -i_dynamic' ;;
14874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14875 tmp_addflag=' -i_dynamic -nofor_main' ;;
14876 ifc* | ifort*) # Intel Fortran compiler
14877 tmp_addflag=' -nofor_main' ;;
14878 esac
14879 case `$CC -V 2>&1 | sed 5q` in
14880 *Sun\ C*) # Sun C 5.9
14881 whole_archive_flag_spec_F77='${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'
14882 tmp_sharedflag='-G' ;;
14883 *Sun\ F*) # Sun Fortran 8.3
14884 tmp_sharedflag='-G' ;;
14885 *)
14886 tmp_sharedflag='-shared' ;;
14887 esac
14888 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889
14890 if test $supports_anon_versioning = yes; then
14891 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14893 $echo "local: *; };" >> $output_objdir/$libname.ver~
14894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14895 fi
14896 link_all_deplibs_F77=no
14897 else
14898 ld_shlibs_F77=no
14899 fi
14900 ;;
14901
14902 netbsd* | netbsdelf*-gnu)
14903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14904 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14905 wlarc=
14906 else
14907 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14908 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909 fi
14910 ;;
14911
14912 solaris*)
14913 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14914 ld_shlibs_F77=no
14915 cat <<EOF 1>&2
14916
14917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14918 *** create shared libraries on Solaris systems. Therefore, libtool
14919 *** is disabling shared libraries support. We urge you to upgrade GNU
14920 *** binutils to release 2.9.1 or newer. Another option is to modify
14921 *** your PATH or compiler configuration so that the native linker is
14922 *** used, and then restart.
14923
14924 EOF
14925 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14926 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14928 else
14929 ld_shlibs_F77=no
14930 fi
14931 ;;
14932
14933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14934 case `$LD -v 2>&1` in
14935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14936 ld_shlibs_F77=no
14937 cat <<_LT_EOF 1>&2
14938
14939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14940 *** reliably create shared libraries on SCO systems. Therefore, libtool
14941 *** is disabling shared libraries support. We urge you to upgrade GNU
14942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14943 *** your PATH or compiler configuration so that the native linker is
14944 *** used, and then restart.
14945
14946 _LT_EOF
14947 ;;
14948 *)
14949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14950 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14951 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14952 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14953 else
14954 ld_shlibs_F77=no
14955 fi
14956 ;;
14957 esac
14958 ;;
14959
14960 sunos4*)
14961 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14962 wlarc=
14963 hardcode_direct_F77=yes
14964 hardcode_shlibpath_var_F77=no
14965 ;;
14966
14967 *)
14968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14969 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14971 else
14972 ld_shlibs_F77=no
14973 fi
14974 ;;
14975 esac
14976
14977 if test "$ld_shlibs_F77" = no; then
14978 runpath_var=
14979 hardcode_libdir_flag_spec_F77=
14980 export_dynamic_flag_spec_F77=
14981 whole_archive_flag_spec_F77=
14982 fi
14983 else
14984 # PORTME fill in a description of your system's linker (not GNU ld)
14985 case $host_os in
14986 aix3*)
14987 allow_undefined_flag_F77=unsupported
14988 always_export_symbols_F77=yes
14989 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14990 # Note: this linker hardcodes the directories in LIBPATH if there
14991 # are no directories specified by -L.
14992 hardcode_minus_L_F77=yes
14993 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14994 # Neither direct hardcoding nor static linking is supported with a
14995 # broken collect2.
14996 hardcode_direct_F77=unsupported
14997 fi
14998 ;;
14999
15000 aix4* | aix5*)
15001 if test "$host_cpu" = ia64; then
15002 # On IA64, the linker does run time linking by default, so we don't
15003 # have to do anything special.
15004 aix_use_runtimelinking=no
15005 exp_sym_flag='-Bexport'
15006 no_entry_flag=""
15007 else
15008 # If we're using GNU nm, then we don't want the "-C" option.
15009 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15010 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15011 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15012 else
15013 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15014 fi
15015 aix_use_runtimelinking=no
15016
15017 # Test if we are trying to use run time linking or normal
15018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15019 # need to do runtime linking.
15020 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15021 for ld_flag in $LDFLAGS; do
15022 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15023 aix_use_runtimelinking=yes
15024 break
15025 fi
15026 done
15027 ;;
15028 esac
15029
15030 exp_sym_flag='-bexport'
15031 no_entry_flag='-bnoentry'
15032 fi
15033
15034 # When large executables or shared objects are built, AIX ld can
15035 # have problems creating the table of contents. If linking a library
15036 # or program results in "error TOC overflow" add -mminimal-toc to
15037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15039
15040 archive_cmds_F77=''
15041 hardcode_direct_F77=yes
15042 hardcode_libdir_separator_F77=':'
15043 link_all_deplibs_F77=yes
15044
15045 if test "$GCC" = yes; then
15046 case $host_os in aix4.[012]|aix4.[012].*)
15047 # We only want to do this on AIX 4.2 and lower, the check
15048 # below for broken collect2 doesn't work under 4.3+
15049 collect2name=`${CC} -print-prog-name=collect2`
15050 if test -f "$collect2name" && \
15051 strings "$collect2name" | grep resolve_lib_name >/dev/null
15052 then
15053 # We have reworked collect2
15054 :
15055 else
15056 # We have old collect2
15057 hardcode_direct_F77=unsupported
15058 # It fails to find uninstalled libraries when the uninstalled
15059 # path is not listed in the libpath. Setting hardcode_minus_L
15060 # to unsupported forces relinking
15061 hardcode_minus_L_F77=yes
15062 hardcode_libdir_flag_spec_F77='-L$libdir'
15063 hardcode_libdir_separator_F77=
15064 fi
15065 ;;
15066 esac
15067 shared_flag='-shared'
15068 if test "$aix_use_runtimelinking" = yes; then
15069 shared_flag="$shared_flag "'${wl}-G'
15070 fi
15071 else
15072 # not using gcc
15073 if test "$host_cpu" = ia64; then
15074 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15075 # chokes on -Wl,-G. The following line is correct:
15076 shared_flag='-G'
15077 else
15078 if test "$aix_use_runtimelinking" = yes; then
15079 shared_flag='${wl}-G'
15080 else
15081 shared_flag='${wl}-bM:SRE'
15082 fi
15083 fi
15084 fi
15085
15086 # It seems that -bexpall does not export symbols beginning with
15087 # underscore (_), so it is better to generate a list of symbols to export.
15088 always_export_symbols_F77=yes
15089 if test "$aix_use_runtimelinking" = yes; then
15090 # Warning - without using the other runtime loading flags (-brtl),
15091 # -berok will link without error, but may produce a broken library.
15092 allow_undefined_flag_F77='-berok'
15093 # Determine the default libpath from the value encoded in an empty executable.
15094 cat >conftest.$ac_ext <<_ACEOF
15095 program main
15096
15097 end
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (ac_try="$ac_link"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_f77_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest$ac_exeext &&
15116 $as_test_x conftest$ac_exeext; then
15117
15118 lt_aix_libpath_sed='
15119 /Import File Strings/,/^$/ {
15120 /^0/ {
15121 s/^0 *\(.*\)$/\1/
15122 p
15123 }
15124 }'
15125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15126 # Check for a 64-bit object if we didn't find anything.
15127 if test -z "$aix_libpath"; then
15128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129 fi
15130 else
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134
15135 fi
15136
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15140
15141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15142 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15143 else
15144 if test "$host_cpu" = ia64; then
15145 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_F77="-z nodefs"
15147 archive_expsym_cmds_F77="\$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"
15148 else
15149 # Determine the default libpath from the value encoded in an empty executable.
15150 cat >conftest.$ac_ext <<_ACEOF
15151 program main
15152
15153 end
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_f77_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest$ac_exeext &&
15172 $as_test_x conftest$ac_exeext; then
15173
15174 lt_aix_libpath_sed='
15175 /Import File Strings/,/^$/ {
15176 /^0/ {
15177 s/^0 *\(.*\)$/\1/
15178 p
15179 }
15180 }'
15181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 fi
15186 else
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190
15191 fi
15192
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15196
15197 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15198 # Warning - without using the other run time loading flags,
15199 # -berok will link without error, but may produce a broken library.
15200 no_undefined_flag_F77=' ${wl}-bernotok'
15201 allow_undefined_flag_F77=' ${wl}-berok'
15202 # Exported symbols can be pulled into shared objects from archives
15203 whole_archive_flag_spec_F77='$convenience'
15204 archive_cmds_need_lc_F77=yes
15205 # This is similar to how AIX traditionally builds its shared libraries.
15206 archive_expsym_cmds_F77="\$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'
15207 fi
15208 fi
15209 ;;
15210
15211 amigaos*)
15212 archive_cmds_F77='$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)'
15213 hardcode_libdir_flag_spec_F77='-L$libdir'
15214 hardcode_minus_L_F77=yes
15215 # see comment about different semantics on the GNU ld section
15216 ld_shlibs_F77=no
15217 ;;
15218
15219 bsdi[45]*)
15220 export_dynamic_flag_spec_F77=-rdynamic
15221 ;;
15222
15223 cygwin* | mingw* | pw32*)
15224 # When not using gcc, we currently assume that we are using
15225 # Microsoft Visual C++.
15226 # hardcode_libdir_flag_spec is actually meaningless, as there is
15227 # no search path for DLLs.
15228 hardcode_libdir_flag_spec_F77=' '
15229 allow_undefined_flag_F77=unsupported
15230 # Tell ltmain to make .lib files, not .a files.
15231 libext=lib
15232 # Tell ltmain to make .dll files, not .so files.
15233 shrext_cmds=".dll"
15234 # FIXME: Setting linknames here is a bad hack.
15235 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15236 # The linker will automatically build a .lib file if we build a DLL.
15237 old_archive_From_new_cmds_F77='true'
15238 # FIXME: Should let the user specify the lib program.
15239 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15240 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15241 enable_shared_with_static_runtimes_F77=yes
15242 ;;
15243
15244 darwin* | rhapsody*)
15245 case $host_os in
15246 rhapsody* | darwin1.[012])
15247 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15248 ;;
15249 *) # Darwin 1.3 on
15250 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15251 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15252 else
15253 case ${MACOSX_DEPLOYMENT_TARGET} in
15254 10.[012])
15255 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15256 ;;
15257 10.*)
15258 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15259 ;;
15260 esac
15261 fi
15262 ;;
15263 esac
15264 archive_cmds_need_lc_F77=no
15265 hardcode_direct_F77=no
15266 hardcode_automatic_F77=yes
15267 hardcode_shlibpath_var_F77=unsupported
15268 whole_archive_flag_spec_F77=''
15269 link_all_deplibs_F77=yes
15270 if test "$GCC" = yes ; then
15271 output_verbose_link_cmd='echo'
15272 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15273 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15275 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
15276 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
15277 else
15278 case $cc_basename in
15279 xlc*)
15280 output_verbose_link_cmd='echo'
15281 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15282 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15283 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15284 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15285 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
15286 ;;
15287 *)
15288 ld_shlibs_F77=no
15289 ;;
15290 esac
15291 fi
15292 ;;
15293
15294 dgux*)
15295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_libdir_flag_spec_F77='-L$libdir'
15297 hardcode_shlibpath_var_F77=no
15298 ;;
15299
15300 freebsd1*)
15301 ld_shlibs_F77=no
15302 ;;
15303
15304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15305 # support. Future versions do this automatically, but an explicit c++rt0.o
15306 # does not break anything, and helps significantly (at the cost of a little
15307 # extra space).
15308 freebsd2.2*)
15309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15310 hardcode_libdir_flag_spec_F77='-R$libdir'
15311 hardcode_direct_F77=yes
15312 hardcode_shlibpath_var_F77=no
15313 ;;
15314
15315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15316 freebsd2*)
15317 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15318 hardcode_direct_F77=yes
15319 hardcode_minus_L_F77=yes
15320 hardcode_shlibpath_var_F77=no
15321 ;;
15322
15323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15324 freebsd* | dragonfly*)
15325 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15326 hardcode_libdir_flag_spec_F77='-R$libdir'
15327 hardcode_direct_F77=yes
15328 hardcode_shlibpath_var_F77=no
15329 ;;
15330
15331 hpux9*)
15332 if test "$GCC" = yes; then
15333 archive_cmds_F77='$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'
15334 else
15335 archive_cmds_F77='$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'
15336 fi
15337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15338 hardcode_libdir_separator_F77=:
15339 hardcode_direct_F77=yes
15340
15341 # hardcode_minus_L: Not really in the search PATH,
15342 # but as the default location of the library.
15343 hardcode_minus_L_F77=yes
15344 export_dynamic_flag_spec_F77='${wl}-E'
15345 ;;
15346
15347 hpux10*)
15348 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15349 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15350 else
15351 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15352 fi
15353 if test "$with_gnu_ld" = no; then
15354 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15355 hardcode_libdir_separator_F77=:
15356
15357 hardcode_direct_F77=yes
15358 export_dynamic_flag_spec_F77='${wl}-E'
15359
15360 # hardcode_minus_L: Not really in the search PATH,
15361 # but as the default location of the library.
15362 hardcode_minus_L_F77=yes
15363 fi
15364 ;;
15365
15366 hpux11*)
15367 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15368 case $host_cpu in
15369 hppa*64*)
15370 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 ;;
15372 ia64*)
15373 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15374 ;;
15375 *)
15376 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377 ;;
15378 esac
15379 else
15380 case $host_cpu in
15381 hppa*64*)
15382 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383 ;;
15384 ia64*)
15385 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15386 ;;
15387 *)
15388 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15389 ;;
15390 esac
15391 fi
15392 if test "$with_gnu_ld" = no; then
15393 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15394 hardcode_libdir_separator_F77=:
15395
15396 case $host_cpu in
15397 hppa*64*|ia64*)
15398 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15399 hardcode_direct_F77=no
15400 hardcode_shlibpath_var_F77=no
15401 ;;
15402 *)
15403 hardcode_direct_F77=yes
15404 export_dynamic_flag_spec_F77='${wl}-E'
15405
15406 # hardcode_minus_L: Not really in the search PATH,
15407 # but as the default location of the library.
15408 hardcode_minus_L_F77=yes
15409 ;;
15410 esac
15411 fi
15412 ;;
15413
15414 irix5* | irix6* | nonstopux*)
15415 if test "$GCC" = yes; then
15416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15417 else
15418 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15419 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15420 fi
15421 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15422 hardcode_libdir_separator_F77=:
15423 link_all_deplibs_F77=yes
15424 ;;
15425
15426 netbsd* | netbsdelf*-gnu)
15427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15429 else
15430 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15431 fi
15432 hardcode_libdir_flag_spec_F77='-R$libdir'
15433 hardcode_direct_F77=yes
15434 hardcode_shlibpath_var_F77=no
15435 ;;
15436
15437 newsos6)
15438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439 hardcode_direct_F77=yes
15440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15441 hardcode_libdir_separator_F77=:
15442 hardcode_shlibpath_var_F77=no
15443 ;;
15444
15445 openbsd*)
15446 if test -f /usr/libexec/ld.so; then
15447 hardcode_direct_F77=yes
15448 hardcode_shlibpath_var_F77=no
15449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15450 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15451 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15452 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15453 export_dynamic_flag_spec_F77='${wl}-E'
15454 else
15455 case $host_os in
15456 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15457 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_libdir_flag_spec_F77='-R$libdir'
15459 ;;
15460 *)
15461 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15462 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15463 ;;
15464 esac
15465 fi
15466 else
15467 ld_shlibs_F77=no
15468 fi
15469 ;;
15470
15471 os2*)
15472 hardcode_libdir_flag_spec_F77='-L$libdir'
15473 hardcode_minus_L_F77=yes
15474 allow_undefined_flag_F77=unsupported
15475 archive_cmds_F77='$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'
15476 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15477 ;;
15478
15479 osf3*)
15480 if test "$GCC" = yes; then
15481 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15482 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15483 else
15484 allow_undefined_flag_F77=' -expect_unresolved \*'
15485 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15486 fi
15487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator_F77=:
15489 ;;
15490
15491 osf4* | osf5*) # as osf3* with the addition of -msym flag
15492 if test "$GCC" = yes; then
15493 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15494 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15495 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15496 else
15497 allow_undefined_flag_F77=' -expect_unresolved \*'
15498 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15499 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15500 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15501
15502 # Both c and cxx compiler support -rpath directly
15503 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15504 fi
15505 hardcode_libdir_separator_F77=:
15506 ;;
15507
15508 solaris*)
15509 no_undefined_flag_F77=' -z text'
15510 if test "$GCC" = yes; then
15511 wlarc='${wl}'
15512 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15515 else
15516 wlarc=''
15517 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15518 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15520 fi
15521 hardcode_libdir_flag_spec_F77='-R$libdir'
15522 hardcode_shlibpath_var_F77=no
15523 case $host_os in
15524 solaris2.[0-5] | solaris2.[0-5].*) ;;
15525 *)
15526 # The compiler driver will combine and reorder linker options,
15527 # but understands `-z linker_flag'. GCC discards it without `$wl',
15528 # but is careful enough not to reorder.
15529 # Supported since Solaris 2.6 (maybe 2.5.1?)
15530 if test "$GCC" = yes; then
15531 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15532 else
15533 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15534 fi
15535 ;;
15536 esac
15537 link_all_deplibs_F77=yes
15538 ;;
15539
15540 sunos4*)
15541 if test "x$host_vendor" = xsequent; then
15542 # Use $CC to link under sequent, because it throws in some extra .o
15543 # files that make .init and .fini sections work.
15544 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15545 else
15546 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15547 fi
15548 hardcode_libdir_flag_spec_F77='-L$libdir'
15549 hardcode_direct_F77=yes
15550 hardcode_minus_L_F77=yes
15551 hardcode_shlibpath_var_F77=no
15552 ;;
15553
15554 sysv4)
15555 case $host_vendor in
15556 sni)
15557 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558 hardcode_direct_F77=yes # is this really true???
15559 ;;
15560 siemens)
15561 ## LD is ld it makes a PLAMLIB
15562 ## CC just makes a GrossModule.
15563 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15564 reload_cmds_F77='$CC -r -o $output$reload_objs'
15565 hardcode_direct_F77=no
15566 ;;
15567 motorola)
15568 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15570 ;;
15571 esac
15572 runpath_var='LD_RUN_PATH'
15573 hardcode_shlibpath_var_F77=no
15574 ;;
15575
15576 sysv4.3*)
15577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_shlibpath_var_F77=no
15579 export_dynamic_flag_spec_F77='-Bexport'
15580 ;;
15581
15582 sysv4*MP*)
15583 if test -d /usr/nec; then
15584 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_shlibpath_var_F77=no
15586 runpath_var=LD_RUN_PATH
15587 hardcode_runpath_var=yes
15588 ld_shlibs_F77=yes
15589 fi
15590 ;;
15591
15592 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15593 no_undefined_flag_F77='${wl}-z,text'
15594 archive_cmds_need_lc_F77=no
15595 hardcode_shlibpath_var_F77=no
15596 runpath_var='LD_RUN_PATH'
15597
15598 if test "$GCC" = yes; then
15599 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 else
15602 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 fi
15605 ;;
15606
15607 sysv5* | sco3.2v5* | sco5v6*)
15608 # Note: We can NOT use -z defs as we might desire, because we do not
15609 # link with -lc, and that would cause any symbols used from libc to
15610 # always be unresolved, which means just about no library would
15611 # ever link correctly. If we're not using GNU ld we use -z text
15612 # though, which does catch some bad symbols but isn't as heavy-handed
15613 # as -z defs.
15614 no_undefined_flag_F77='${wl}-z,text'
15615 allow_undefined_flag_F77='${wl}-z,nodefs'
15616 archive_cmds_need_lc_F77=no
15617 hardcode_shlibpath_var_F77=no
15618 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15619 hardcode_libdir_separator_F77=':'
15620 link_all_deplibs_F77=yes
15621 export_dynamic_flag_spec_F77='${wl}-Bexport'
15622 runpath_var='LD_RUN_PATH'
15623
15624 if test "$GCC" = yes; then
15625 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 else
15628 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 fi
15631 ;;
15632
15633 uts4*)
15634 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_libdir_flag_spec_F77='-L$libdir'
15636 hardcode_shlibpath_var_F77=no
15637 ;;
15638
15639 *)
15640 ld_shlibs_F77=no
15641 ;;
15642 esac
15643 fi
15644
15645 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15646 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15647 test "$ld_shlibs_F77" = no && can_build_shared=no
15648
15649 #
15650 # Do we need to explicitly link libc?
15651 #
15652 case "x$archive_cmds_need_lc_F77" in
15653 x|xyes)
15654 # Assume -lc should be added
15655 archive_cmds_need_lc_F77=yes
15656
15657 if test "$enable_shared" = yes && test "$GCC" = yes; then
15658 case $archive_cmds_F77 in
15659 *'~'*)
15660 # FIXME: we may have to deal with multi-command sequences.
15661 ;;
15662 '$CC '*)
15663 # Test whether the compiler implicitly links with -lc since on some
15664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15665 # to ld, don't add -lc before -lgcc.
15666 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15667 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15668 $rm conftest*
15669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15670
15671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15672 (eval $ac_compile) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } 2>conftest.err; then
15676 soname=conftest
15677 lib=conftest
15678 libobjs=conftest.$ac_objext
15679 deplibs=
15680 wl=$lt_prog_compiler_wl_F77
15681 pic_flag=$lt_prog_compiler_pic_F77
15682 compiler_flags=-v
15683 linker_flags=-v
15684 verstring=
15685 output_objdir=.
15686 libname=conftest
15687 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15688 allow_undefined_flag_F77=
15689 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15690 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }
15694 then
15695 archive_cmds_need_lc_F77=no
15696 else
15697 archive_cmds_need_lc_F77=yes
15698 fi
15699 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15700 else
15701 cat conftest.err 1>&5
15702 fi
15703 $rm conftest*
15704 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15705 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15706 ;;
15707 esac
15708 fi
15709 ;;
15710 esac
15711
15712 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15714 library_names_spec=
15715 libname_spec='lib$name'
15716 soname_spec=
15717 shrext_cmds=".so"
15718 postinstall_cmds=
15719 postuninstall_cmds=
15720 finish_cmds=
15721 finish_eval=
15722 shlibpath_var=
15723 shlibpath_overrides_runpath=unknown
15724 version_type=none
15725 dynamic_linker="$host_os ld.so"
15726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15727
15728 need_lib_prefix=unknown
15729 hardcode_into_libs=no
15730
15731 # when you set need_version to no, make sure it does not cause -set_version
15732 # flags to be left without arguments
15733 need_version=unknown
15734
15735 case $host_os in
15736 aix3*)
15737 version_type=linux
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15739 shlibpath_var=LIBPATH
15740
15741 # AIX 3 has no versioning support, so we append a major version to the name.
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 ;;
15744
15745 aix4* | aix5*)
15746 version_type=linux
15747 need_lib_prefix=no
15748 need_version=no
15749 hardcode_into_libs=yes
15750 if test "$host_cpu" = ia64; then
15751 # AIX 5 supports IA64
15752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 else
15755 # With GCC up to 2.95.x, collect2 would create an import file
15756 # for dependence libraries. The import file would start with
15757 # the line `#! .'. This would cause the generated library to
15758 # depend on `.', always an invalid library. This was fixed in
15759 # development snapshots of GCC prior to 3.0.
15760 case $host_os in
15761 aix4 | aix4.[01] | aix4.[01].*)
15762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15763 echo ' yes '
15764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15765 :
15766 else
15767 can_build_shared=no
15768 fi
15769 ;;
15770 esac
15771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15772 # soname into executable. Probably we can add versioning support to
15773 # collect2, so additional links can be useful in future.
15774 if test "$aix_use_runtimelinking" = yes; then
15775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15776 # instead of lib<name>.a to let people know that these are not
15777 # typical AIX shared libraries.
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 else
15780 # We preserve .a as extension for shared libraries through AIX4.2
15781 # and later when we are not doing run time linking.
15782 library_names_spec='${libname}${release}.a $libname.a'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 fi
15785 shlibpath_var=LIBPATH
15786 fi
15787 ;;
15788
15789 amigaos*)
15790 library_names_spec='$libname.ixlibrary $libname.a'
15791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15792 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'
15793 ;;
15794
15795 beos*)
15796 library_names_spec='${libname}${shared_ext}'
15797 dynamic_linker="$host_os ld.so"
15798 shlibpath_var=LIBRARY_PATH
15799 ;;
15800
15801 bsdi[45]*)
15802 version_type=linux
15803 need_version=no
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15810 # the default ld.so.conf also contains /usr/contrib/lib and
15811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15812 # libtool to hard-code these into programs
15813 ;;
15814
15815 cygwin* | mingw* | pw32*)
15816 version_type=windows
15817 shrext_cmds=".dll"
15818 need_version=no
15819 need_lib_prefix=no
15820
15821 case $GCC,$host_os in
15822 yes,cygwin* | yes,mingw* | yes,pw32*)
15823 library_names_spec='$libname.dll.a'
15824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15825 postinstall_cmds='base_file=`basename \${file}`~
15826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15827 dldir=$destdir/`dirname \$dlpath`~
15828 test -d \$dldir || mkdir -p \$dldir~
15829 $install_prog $dir/$dlname \$dldir/$dlname~
15830 chmod a+x \$dldir/$dlname'
15831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15832 dlpath=$dir/\$dldll~
15833 $rm \$dlpath'
15834 shlibpath_overrides_runpath=yes
15835
15836 case $host_os in
15837 cygwin*)
15838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15841 ;;
15842 mingw*)
15843 # MinGW DLLs use traditional 'lib' prefix
15844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15846 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15847 # It is most probably a Windows format PATH printed by
15848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15849 # path with ; separators, and with drive letters. We can handle the
15850 # drive letters (cygwin fileutils understands them), so leave them,
15851 # especially as we might pass files found there to a mingw objdump,
15852 # which wouldn't understand a cygwinified path. Ahh.
15853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15854 else
15855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15856 fi
15857 ;;
15858 pw32*)
15859 # pw32 DLLs use 'pw' prefix rather than 'lib'
15860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15861 ;;
15862 esac
15863 ;;
15864
15865 *)
15866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15867 ;;
15868 esac
15869 dynamic_linker='Win32 ld.exe'
15870 # FIXME: first we should search . and the directory the executable is in
15871 shlibpath_var=PATH
15872 ;;
15873
15874 darwin* | rhapsody*)
15875 dynamic_linker="$host_os dyld"
15876 version_type=darwin
15877 need_lib_prefix=no
15878 need_version=no
15879 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15880 soname_spec='${libname}${release}${major}$shared_ext'
15881 shlibpath_overrides_runpath=yes
15882 shlibpath_var=DYLD_LIBRARY_PATH
15883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15884
15885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15886 ;;
15887
15888 dgux*)
15889 version_type=linux
15890 need_lib_prefix=no
15891 need_version=no
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 ;;
15896
15897 freebsd1*)
15898 dynamic_linker=no
15899 ;;
15900
15901 freebsd* | dragonfly*)
15902 # DragonFly does not have aout. When/if they implement a new
15903 # versioning mechanism, adjust this.
15904 if test -x /usr/bin/objformat; then
15905 objformat=`/usr/bin/objformat`
15906 else
15907 case $host_os in
15908 freebsd[123]*) objformat=aout ;;
15909 *) objformat=elf ;;
15910 esac
15911 fi
15912 version_type=freebsd-$objformat
15913 case $version_type in
15914 freebsd-elf*)
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15916 need_version=no
15917 need_lib_prefix=no
15918 ;;
15919 freebsd-*)
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15921 need_version=yes
15922 ;;
15923 esac
15924 shlibpath_var=LD_LIBRARY_PATH
15925 case $host_os in
15926 freebsd2*)
15927 shlibpath_overrides_runpath=yes
15928 ;;
15929 freebsd3.[01]* | freebsdelf3.[01]*)
15930 shlibpath_overrides_runpath=yes
15931 hardcode_into_libs=yes
15932 ;;
15933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15935 shlibpath_overrides_runpath=no
15936 hardcode_into_libs=yes
15937 ;;
15938 *) # from 4.6 on, and DragonFly
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15941 ;;
15942 esac
15943 ;;
15944
15945 gnu*)
15946 version_type=linux
15947 need_lib_prefix=no
15948 need_version=no
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 hardcode_into_libs=yes
15953 ;;
15954
15955 hpux9* | hpux10* | hpux11*)
15956 # Give a soname corresponding to the major version so that dld.sl refuses to
15957 # link against other versions.
15958 version_type=sunos
15959 need_lib_prefix=no
15960 need_version=no
15961 case $host_cpu in
15962 ia64*)
15963 shrext_cmds='.so'
15964 hardcode_into_libs=yes
15965 dynamic_linker="$host_os dld.so"
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 if test "X$HPUX_IA64_MODE" = X32; then
15971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15972 else
15973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15974 fi
15975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976 ;;
15977 hppa*64*)
15978 shrext_cmds='.sl'
15979 hardcode_into_libs=yes
15980 dynamic_linker="$host_os dld.sl"
15981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15987 ;;
15988 *)
15989 shrext_cmds='.sl'
15990 dynamic_linker="$host_os dld.sl"
15991 shlibpath_var=SHLIB_PATH
15992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 ;;
15996 esac
15997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998 postinstall_cmds='chmod 555 $lib'
15999 ;;
16000
16001 interix[3-9]*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 hardcode_into_libs=yes
16011 ;;
16012
16013 irix5* | irix6* | nonstopux*)
16014 case $host_os in
16015 nonstopux*) version_type=nonstopux ;;
16016 *)
16017 if test "$lt_cv_prog_gnu_ld" = yes; then
16018 version_type=linux
16019 else
16020 version_type=irix
16021 fi ;;
16022 esac
16023 need_lib_prefix=no
16024 need_version=no
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16027 case $host_os in
16028 irix5* | nonstopux*)
16029 libsuff= shlibsuff=
16030 ;;
16031 *)
16032 case $LD in # libtool.m4 will add one of these switches to LD
16033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16034 libsuff= shlibsuff= libmagic=32-bit;;
16035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16036 libsuff=32 shlibsuff=N32 libmagic=N32;;
16037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16039 *) libsuff= shlibsuff= libmagic=never-match;;
16040 esac
16041 ;;
16042 esac
16043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16044 shlibpath_overrides_runpath=no
16045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16047 hardcode_into_libs=yes
16048 ;;
16049
16050 # No shared lib support for Linux oldld, aout, or coff.
16051 linux*oldld* | linux*aout* | linux*coff*)
16052 dynamic_linker=no
16053 ;;
16054
16055 # This must be Linux ELF.
16056 linux* | k*bsd*-gnu)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=no
16065 # This implies no fast_install, which is unacceptable.
16066 # Some rework will be needed to allow for fast_install
16067 # before this can be enabled.
16068 hardcode_into_libs=yes
16069
16070 # Append ld.so.conf contents to the search path
16071 if test -f /etc/ld.so.conf; then
16072 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16074 fi
16075
16076 # We used to test for /lib/ld.so.1 and disable shared libraries on
16077 # powerpc, because MkLinux only supported shared libraries with the
16078 # GNU dynamic linker. Since this was broken with cross compilers,
16079 # most powerpc-linux boxes support dynamic linking these days and
16080 # people can always --disable-shared, the test was removed, and we
16081 # assume the GNU/Linux dynamic linker is in use.
16082 dynamic_linker='GNU/Linux ld.so'
16083 ;;
16084
16085 netbsdelf*-gnu)
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=no
16093 hardcode_into_libs=yes
16094 dynamic_linker='NetBSD ld.elf_so'
16095 ;;
16096
16097 netbsd*)
16098 version_type=sunos
16099 need_lib_prefix=no
16100 need_version=no
16101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104 dynamic_linker='NetBSD (a.out) ld.so'
16105 else
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 dynamic_linker='NetBSD ld.elf_so'
16109 fi
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 hardcode_into_libs=yes
16113 ;;
16114
16115 newsos6)
16116 version_type=linux
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=yes
16120 ;;
16121
16122 nto-qnx*)
16123 version_type=linux
16124 need_lib_prefix=no
16125 need_version=no
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16130 ;;
16131
16132 openbsd*)
16133 version_type=sunos
16134 sys_lib_dlsearch_path_spec="/usr/lib"
16135 need_lib_prefix=no
16136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16137 case $host_os in
16138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16139 *) need_version=no ;;
16140 esac
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145 case $host_os in
16146 openbsd2.[89] | openbsd2.[89].*)
16147 shlibpath_overrides_runpath=no
16148 ;;
16149 *)
16150 shlibpath_overrides_runpath=yes
16151 ;;
16152 esac
16153 else
16154 shlibpath_overrides_runpath=yes
16155 fi
16156 ;;
16157
16158 os2*)
16159 libname_spec='$name'
16160 shrext_cmds=".dll"
16161 need_lib_prefix=no
16162 library_names_spec='$libname${shared_ext} $libname.a'
16163 dynamic_linker='OS/2 ld.exe'
16164 shlibpath_var=LIBPATH
16165 ;;
16166
16167 osf3* | osf4* | osf5*)
16168 version_type=osf
16169 need_lib_prefix=no
16170 need_version=no
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16176 ;;
16177
16178 rdos*)
16179 dynamic_linker=no
16180 ;;
16181
16182 solaris*)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=yes
16190 hardcode_into_libs=yes
16191 # ldd complains unless libraries are executable
16192 postinstall_cmds='chmod +x $lib'
16193 ;;
16194
16195 sunos4*)
16196 version_type=sunos
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 shlibpath_overrides_runpath=yes
16201 if test "$with_gnu_ld" = yes; then
16202 need_lib_prefix=no
16203 fi
16204 need_version=yes
16205 ;;
16206
16207 sysv4 | sysv4.3*)
16208 version_type=linux
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 case $host_vendor in
16213 sni)
16214 shlibpath_overrides_runpath=no
16215 need_lib_prefix=no
16216 export_dynamic_flag_spec='${wl}-Blargedynsym'
16217 runpath_var=LD_RUN_PATH
16218 ;;
16219 siemens)
16220 need_lib_prefix=no
16221 ;;
16222 motorola)
16223 need_lib_prefix=no
16224 need_version=no
16225 shlibpath_overrides_runpath=no
16226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16227 ;;
16228 esac
16229 ;;
16230
16231 sysv4*MP*)
16232 if test -d /usr/nec ;then
16233 version_type=linux
16234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16235 soname_spec='$libname${shared_ext}.$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 fi
16238 ;;
16239
16240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16241 version_type=freebsd-elf
16242 need_lib_prefix=no
16243 need_version=no
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16247 hardcode_into_libs=yes
16248 if test "$with_gnu_ld" = yes; then
16249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16250 shlibpath_overrides_runpath=no
16251 else
16252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16253 shlibpath_overrides_runpath=yes
16254 case $host_os in
16255 sco3.2v5*)
16256 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16257 ;;
16258 esac
16259 fi
16260 sys_lib_dlsearch_path_spec='/usr/lib'
16261 ;;
16262
16263 uts4*)
16264 version_type=linux
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 ;;
16269
16270 *)
16271 dynamic_linker=no
16272 ;;
16273 esac
16274 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16275 echo "${ECHO_T}$dynamic_linker" >&6; }
16276 test "$dynamic_linker" = no && can_build_shared=no
16277
16278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16279 if test "$GCC" = yes; then
16280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16281 fi
16282
16283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16285 hardcode_action_F77=
16286 if test -n "$hardcode_libdir_flag_spec_F77" || \
16287 test -n "$runpath_var_F77" || \
16288 test "X$hardcode_automatic_F77" = "Xyes" ; then
16289
16290 # We can hardcode non-existant directories.
16291 if test "$hardcode_direct_F77" != no &&
16292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293 # have to relink, otherwise we might link with an installed library
16294 # when we should be linking with a yet-to-be-installed one
16295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16296 test "$hardcode_minus_L_F77" != no; then
16297 # Linking always hardcodes the temporary library directory.
16298 hardcode_action_F77=relink
16299 else
16300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301 hardcode_action_F77=immediate
16302 fi
16303 else
16304 # We cannot hardcode anything, or else we can only hardcode existing
16305 # directories.
16306 hardcode_action_F77=unsupported
16307 fi
16308 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16309 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16310
16311 if test "$hardcode_action_F77" = relink; then
16312 # Fast installation is not supported
16313 enable_fast_install=no
16314 elif test "$shlibpath_overrides_runpath" = yes ||
16315 test "$enable_shared" = no; then
16316 # Fast installation is not necessary
16317 enable_fast_install=needless
16318 fi
16319
16320
16321 # The else clause should only fire when bootstrapping the
16322 # libtool distribution, otherwise you forgot to ship ltmain.sh
16323 # with your package, and you will get complaints that there are
16324 # no rules to generate ltmain.sh.
16325 if test -f "$ltmain"; then
16326 # See if we are running on zsh, and set the options which allow our commands through
16327 # without removal of \ escapes.
16328 if test -n "${ZSH_VERSION+set}" ; then
16329 setopt NO_GLOB_SUBST
16330 fi
16331 # Now quote all the things that may contain metacharacters while being
16332 # careful not to overquote the AC_SUBSTed values. We take copies of the
16333 # variables and quote the copies for generation of the libtool script.
16334 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16335 SED SHELL STRIP \
16336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16338 deplibs_check_method reload_flag reload_cmds need_locks \
16339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16340 lt_cv_sys_global_symbol_to_c_name_address \
16341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16342 old_postinstall_cmds old_postuninstall_cmds \
16343 compiler_F77 \
16344 CC_F77 \
16345 LD_F77 \
16346 lt_prog_compiler_wl_F77 \
16347 lt_prog_compiler_pic_F77 \
16348 lt_prog_compiler_static_F77 \
16349 lt_prog_compiler_no_builtin_flag_F77 \
16350 export_dynamic_flag_spec_F77 \
16351 thread_safe_flag_spec_F77 \
16352 whole_archive_flag_spec_F77 \
16353 enable_shared_with_static_runtimes_F77 \
16354 old_archive_cmds_F77 \
16355 old_archive_from_new_cmds_F77 \
16356 predep_objects_F77 \
16357 postdep_objects_F77 \
16358 predeps_F77 \
16359 postdeps_F77 \
16360 compiler_lib_search_path_F77 \
16361 archive_cmds_F77 \
16362 archive_expsym_cmds_F77 \
16363 postinstall_cmds_F77 \
16364 postuninstall_cmds_F77 \
16365 old_archive_from_expsyms_cmds_F77 \
16366 allow_undefined_flag_F77 \
16367 no_undefined_flag_F77 \
16368 export_symbols_cmds_F77 \
16369 hardcode_libdir_flag_spec_F77 \
16370 hardcode_libdir_flag_spec_ld_F77 \
16371 hardcode_libdir_separator_F77 \
16372 hardcode_automatic_F77 \
16373 module_cmds_F77 \
16374 module_expsym_cmds_F77 \
16375 lt_cv_prog_compiler_c_o_F77 \
16376 fix_srcfile_path_F77 \
16377 exclude_expsyms_F77 \
16378 include_expsyms_F77; do
16379
16380 case $var in
16381 old_archive_cmds_F77 | \
16382 old_archive_from_new_cmds_F77 | \
16383 archive_cmds_F77 | \
16384 archive_expsym_cmds_F77 | \
16385 module_cmds_F77 | \
16386 module_expsym_cmds_F77 | \
16387 old_archive_from_expsyms_cmds_F77 | \
16388 export_symbols_cmds_F77 | \
16389 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16390 postinstall_cmds | postuninstall_cmds | \
16391 old_postinstall_cmds | old_postuninstall_cmds | \
16392 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16393 # Double-quote double-evaled strings.
16394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16395 ;;
16396 *)
16397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16398 ;;
16399 esac
16400 done
16401
16402 case $lt_echo in
16403 *'\$0 --fallback-echo"')
16404 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16405 ;;
16406 esac
16407
16408 cfgfile="$ofile"
16409
16410 cat <<__EOF__ >> "$cfgfile"
16411 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16412
16413 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16414
16415 # Shell to use when invoking shell scripts.
16416 SHELL=$lt_SHELL
16417
16418 # Whether or not to build shared libraries.
16419 build_libtool_libs=$enable_shared
16420
16421 # Whether or not to build static libraries.
16422 build_old_libs=$enable_static
16423
16424 # Whether or not to add -lc for building shared libraries.
16425 build_libtool_need_lc=$archive_cmds_need_lc_F77
16426
16427 # Whether or not to disallow shared libs when runtime libs are static
16428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16429
16430 # Whether or not to optimize for fast installation.
16431 fast_install=$enable_fast_install
16432
16433 # The host system.
16434 host_alias=$host_alias
16435 host=$host
16436 host_os=$host_os
16437
16438 # The build system.
16439 build_alias=$build_alias
16440 build=$build
16441 build_os=$build_os
16442
16443 # An echo program that does not interpret backslashes.
16444 echo=$lt_echo
16445
16446 # The archiver.
16447 AR=$lt_AR
16448 AR_FLAGS=$lt_AR_FLAGS
16449
16450 # A C compiler.
16451 LTCC=$lt_LTCC
16452
16453 # LTCC compiler flags.
16454 LTCFLAGS=$lt_LTCFLAGS
16455
16456 # A language-specific compiler.
16457 CC=$lt_compiler_F77
16458
16459 # Is the compiler the GNU C compiler?
16460 with_gcc=$GCC_F77
16461
16462 # An ERE matcher.
16463 EGREP=$lt_EGREP
16464
16465 # The linker used to build libraries.
16466 LD=$lt_LD_F77
16467
16468 # Whether we need hard or soft links.
16469 LN_S=$lt_LN_S
16470
16471 # A BSD-compatible nm program.
16472 NM=$lt_NM
16473
16474 # A symbol stripping program
16475 STRIP=$lt_STRIP
16476
16477 # Used to examine libraries when file_magic_cmd begins "file"
16478 MAGIC_CMD=$MAGIC_CMD
16479
16480 # Used on cygwin: DLL creation program.
16481 DLLTOOL="$DLLTOOL"
16482
16483 # Used on cygwin: object dumper.
16484 OBJDUMP="$OBJDUMP"
16485
16486 # Used on cygwin: assembler.
16487 AS="$AS"
16488
16489 # The name of the directory that contains temporary libtool files.
16490 objdir=$objdir
16491
16492 # How to create reloadable object files.
16493 reload_flag=$lt_reload_flag
16494 reload_cmds=$lt_reload_cmds
16495
16496 # How to pass a linker flag through the compiler.
16497 wl=$lt_lt_prog_compiler_wl_F77
16498
16499 # Object file suffix (normally "o").
16500 objext="$ac_objext"
16501
16502 # Old archive suffix (normally "a").
16503 libext="$libext"
16504
16505 # Shared library suffix (normally ".so").
16506 shrext_cmds='$shrext_cmds'
16507
16508 # Executable file suffix (normally "").
16509 exeext="$exeext"
16510
16511 # Additional compiler flags for building library objects.
16512 pic_flag=$lt_lt_prog_compiler_pic_F77
16513 pic_mode=$pic_mode
16514
16515 # What is the maximum length of a command?
16516 max_cmd_len=$lt_cv_sys_max_cmd_len
16517
16518 # Does compiler simultaneously support -c and -o options?
16519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16520
16521 # Must we lock files when doing compilation?
16522 need_locks=$lt_need_locks
16523
16524 # Do we need the lib prefix for modules?
16525 need_lib_prefix=$need_lib_prefix
16526
16527 # Do we need a version for libraries?
16528 need_version=$need_version
16529
16530 # Whether dlopen is supported.
16531 dlopen_support=$enable_dlopen
16532
16533 # Whether dlopen of programs is supported.
16534 dlopen_self=$enable_dlopen_self
16535
16536 # Whether dlopen of statically linked programs is supported.
16537 dlopen_self_static=$enable_dlopen_self_static
16538
16539 # Compiler flag to prevent dynamic linking.
16540 link_static_flag=$lt_lt_prog_compiler_static_F77
16541
16542 # Compiler flag to turn off builtin functions.
16543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16544
16545 # Compiler flag to allow reflexive dlopens.
16546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16547
16548 # Compiler flag to generate shared objects directly from archives.
16549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16550
16551 # Compiler flag to generate thread-safe objects.
16552 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16553
16554 # Library versioning type.
16555 version_type=$version_type
16556
16557 # Format of library name prefix.
16558 libname_spec=$lt_libname_spec
16559
16560 # List of archive names. First name is the real one, the rest are links.
16561 # The last name is the one that the linker finds with -lNAME.
16562 library_names_spec=$lt_library_names_spec
16563
16564 # The coded name of the library, if different from the real name.
16565 soname_spec=$lt_soname_spec
16566
16567 # Commands used to build and install an old-style archive.
16568 RANLIB=$lt_RANLIB
16569 old_archive_cmds=$lt_old_archive_cmds_F77
16570 old_postinstall_cmds=$lt_old_postinstall_cmds
16571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16572
16573 # Create an old-style archive from a shared archive.
16574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16575
16576 # Create a temporary old-style archive to link instead of a shared archive.
16577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16578
16579 # Commands used to build and install a shared archive.
16580 archive_cmds=$lt_archive_cmds_F77
16581 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16582 postinstall_cmds=$lt_postinstall_cmds
16583 postuninstall_cmds=$lt_postuninstall_cmds
16584
16585 # Commands used to build a loadable module (assumed same as above if empty)
16586 module_cmds=$lt_module_cmds_F77
16587 module_expsym_cmds=$lt_module_expsym_cmds_F77
16588
16589 # Commands to strip libraries.
16590 old_striplib=$lt_old_striplib
16591 striplib=$lt_striplib
16592
16593 # Dependencies to place before the objects being linked to create a
16594 # shared library.
16595 predep_objects=$lt_predep_objects_F77
16596
16597 # Dependencies to place after the objects being linked to create a
16598 # shared library.
16599 postdep_objects=$lt_postdep_objects_F77
16600
16601 # Dependencies to place before the objects being linked to create a
16602 # shared library.
16603 predeps=$lt_predeps_F77
16604
16605 # Dependencies to place after the objects being linked to create a
16606 # shared library.
16607 postdeps=$lt_postdeps_F77
16608
16609 # The library search path used internally by the compiler when linking
16610 # a shared library.
16611 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16612
16613 # Method to check whether dependent libraries are shared objects.
16614 deplibs_check_method=$lt_deplibs_check_method
16615
16616 # Command to use when deplibs_check_method == file_magic.
16617 file_magic_cmd=$lt_file_magic_cmd
16618
16619 # Flag that allows shared libraries with undefined symbols to be built.
16620 allow_undefined_flag=$lt_allow_undefined_flag_F77
16621
16622 # Flag that forces no undefined symbols.
16623 no_undefined_flag=$lt_no_undefined_flag_F77
16624
16625 # Commands used to finish a libtool library installation in a directory.
16626 finish_cmds=$lt_finish_cmds
16627
16628 # Same as above, but a single script fragment to be evaled but not shown.
16629 finish_eval=$lt_finish_eval
16630
16631 # Take the output of nm and produce a listing of raw symbols and C names.
16632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16633
16634 # Transform the output of nm in a proper C declaration
16635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16636
16637 # Transform the output of nm in a C name address pair
16638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16639
16640 # This is the shared library runtime path variable.
16641 runpath_var=$runpath_var
16642
16643 # This is the shared library path variable.
16644 shlibpath_var=$shlibpath_var
16645
16646 # Is shlibpath searched before the hard-coded library search path?
16647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16648
16649 # How to hardcode a shared library path into an executable.
16650 hardcode_action=$hardcode_action_F77
16651
16652 # Whether we should hardcode library paths into libraries.
16653 hardcode_into_libs=$hardcode_into_libs
16654
16655 # Flag to hardcode \$libdir into a binary during linking.
16656 # This must work even if \$libdir does not exist.
16657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16658
16659 # If ld is used when linking, flag to hardcode \$libdir into
16660 # a binary during linking. This must work even if \$libdir does
16661 # not exist.
16662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16663
16664 # Whether we need a single -rpath flag with a separated argument.
16665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16666
16667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16668 # resulting binary.
16669 hardcode_direct=$hardcode_direct_F77
16670
16671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16672 # resulting binary.
16673 hardcode_minus_L=$hardcode_minus_L_F77
16674
16675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16676 # the resulting binary.
16677 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16678
16679 # Set to yes if building a shared library automatically hardcodes DIR into the library
16680 # and all subsequent libraries and executables linked against it.
16681 hardcode_automatic=$hardcode_automatic_F77
16682
16683 # Variables whose values should be saved in libtool wrapper scripts and
16684 # restored at relink time.
16685 variables_saved_for_relink="$variables_saved_for_relink"
16686
16687 # Whether libtool must link a program against all its dependency libraries.
16688 link_all_deplibs=$link_all_deplibs_F77
16689
16690 # Compile-time system search path for libraries
16691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16692
16693 # Run-time system search path for libraries
16694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16695
16696 # Fix the shell variable \$srcfile for the compiler.
16697 fix_srcfile_path=$lt_fix_srcfile_path
16698
16699 # Set to yes if exported symbols are required.
16700 always_export_symbols=$always_export_symbols_F77
16701
16702 # The commands to list exported symbols.
16703 export_symbols_cmds=$lt_export_symbols_cmds_F77
16704
16705 # The commands to extract the exported symbol list from a shared archive.
16706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16707
16708 # Symbols that should not be listed in the preloaded symbols.
16709 exclude_expsyms=$lt_exclude_expsyms_F77
16710
16711 # Symbols that must always be exported.
16712 include_expsyms=$lt_include_expsyms_F77
16713
16714 # ### END LIBTOOL TAG CONFIG: $tagname
16715
16716 __EOF__
16717
16718
16719 else
16720 # If there is no Makefile yet, we rely on a make rule to execute
16721 # `config.status --recheck' to rerun these tests and create the
16722 # libtool script then.
16723 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16724 if test -f "$ltmain_in"; then
16725 test -f Makefile && make "$ltmain"
16726 fi
16727 fi
16728
16729
16730 ac_ext=c
16731 ac_cpp='$CPP $CPPFLAGS'
16732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16735
16736 CC="$lt_save_CC"
16737
16738 else
16739 tagname=""
16740 fi
16741 ;;
16742
16743 GCJ)
16744 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16745
16746
16747 # Source file extension for Java test sources.
16748 ac_ext=java
16749
16750 # Object file extension for compiled Java test sources.
16751 objext=o
16752 objext_GCJ=$objext
16753
16754 # Code to be used in simple compile tests
16755 lt_simple_compile_test_code="class foo {}"
16756
16757 # Code to be used in simple link tests
16758 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16759
16760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16761
16762 # If no C compiler was specified, use CC.
16763 LTCC=${LTCC-"$CC"}
16764
16765 # If no C compiler flags were specified, use CFLAGS.
16766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16767
16768 # Allow CC to be a program name with arguments.
16769 compiler=$CC
16770
16771
16772 # save warnings/boilerplate of simple test code
16773 ac_outfile=conftest.$ac_objext
16774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16776 _lt_compiler_boilerplate=`cat conftest.err`
16777 $rm conftest*
16778
16779 ac_outfile=conftest.$ac_objext
16780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16782 _lt_linker_boilerplate=`cat conftest.err`
16783 $rm conftest*
16784
16785
16786 # Allow CC to be a program name with arguments.
16787 lt_save_CC="$CC"
16788 CC=${GCJ-"gcj"}
16789 compiler=$CC
16790 compiler_GCJ=$CC
16791 for cc_temp in $compiler""; do
16792 case $cc_temp in
16793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16795 \-*) ;;
16796 *) break;;
16797 esac
16798 done
16799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16800
16801
16802 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16803 archive_cmds_need_lc_GCJ=no
16804
16805 old_archive_cmds_GCJ=$old_archive_cmds
16806
16807 ## CAVEAT EMPTOR:
16808 ## There is no encapsulation within the following macros, do not change
16809 ## the running order or otherwise move them around unless you know exactly
16810 ## what you are doing...
16811
16812 lt_prog_compiler_no_builtin_flag_GCJ=
16813
16814 if test "$GCC" = yes; then
16815 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16816
16817
16818 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16819 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16820 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823 lt_cv_prog_compiler_rtti_exceptions=no
16824 ac_outfile=conftest.$ac_objext
16825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16826 lt_compiler_flag="-fno-rtti -fno-exceptions"
16827 # Insert the option either (1) after the last *FLAGS variable, or
16828 # (2) before a word containing "conftest.", or (3) at the end.
16829 # Note that $ac_compile itself does not contain backslashes and begins
16830 # with a dollar sign (not a hyphen), so the echo should work correctly.
16831 # The option is referenced via a variable to avoid confusing sed.
16832 lt_compile=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837 (eval "$lt_compile" 2>conftest.err)
16838 ac_status=$?
16839 cat conftest.err >&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 if (exit $ac_status) && test -s "$ac_outfile"; then
16842 # The compiler can only warn and ignore the option if not recognized
16843 # So say no if there are warnings other than the usual output.
16844 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16846 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16847 lt_cv_prog_compiler_rtti_exceptions=yes
16848 fi
16849 fi
16850 $rm conftest*
16851
16852 fi
16853 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16854 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16855
16856 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16857 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16858 else
16859 :
16860 fi
16861
16862 fi
16863
16864 lt_prog_compiler_wl_GCJ=
16865 lt_prog_compiler_pic_GCJ=
16866 lt_prog_compiler_static_GCJ=
16867
16868 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16869 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16870
16871 if test "$GCC" = yes; then
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 lt_prog_compiler_static_GCJ='-static'
16874
16875 case $host_os in
16876 aix*)
16877 # All AIX code is PIC.
16878 if test "$host_cpu" = ia64; then
16879 # AIX 5 now supports IA64 processor
16880 lt_prog_compiler_static_GCJ='-Bstatic'
16881 fi
16882 ;;
16883
16884 amigaos*)
16885 # FIXME: we need at least 68020 code to build shared libraries, but
16886 # adding the `-m68020' flag to GCC prevents building anything better,
16887 # like `-m68040'.
16888 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16889 ;;
16890
16891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16892 # PIC is the default for these OSes.
16893 ;;
16894
16895 mingw* | cygwin* | pw32* | os2*)
16896 # This hack is so that the source file can tell whether it is being
16897 # built for inclusion in a dll (and should export symbols for example).
16898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16899 # (--disable-auto-import) libraries
16900 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16901 ;;
16902
16903 darwin* | rhapsody*)
16904 # PIC is the default on this platform
16905 # Common symbols not allowed in MH_DYLIB files
16906 lt_prog_compiler_pic_GCJ='-fno-common'
16907 ;;
16908
16909 interix[3-9]*)
16910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16911 # Instead, we relocate shared libraries at runtime.
16912 ;;
16913
16914 msdosdjgpp*)
16915 # Just because we use GCC doesn't mean we suddenly get shared libraries
16916 # on systems that don't support them.
16917 lt_prog_compiler_can_build_shared_GCJ=no
16918 enable_shared=no
16919 ;;
16920
16921 sysv4*MP*)
16922 if test -d /usr/nec; then
16923 lt_prog_compiler_pic_GCJ=-Kconform_pic
16924 fi
16925 ;;
16926
16927 hpux*)
16928 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16929 # not for PA HP-UX.
16930 case $host_cpu in
16931 hppa*64*|ia64*)
16932 # +Z the default
16933 ;;
16934 *)
16935 lt_prog_compiler_pic_GCJ='-fPIC'
16936 ;;
16937 esac
16938 ;;
16939
16940 *)
16941 lt_prog_compiler_pic_GCJ='-fPIC'
16942 ;;
16943 esac
16944 else
16945 # PORTME Check for flag to pass linker flags through the system compiler.
16946 case $host_os in
16947 aix*)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 if test "$host_cpu" = ia64; then
16950 # AIX 5 now supports IA64 processor
16951 lt_prog_compiler_static_GCJ='-Bstatic'
16952 else
16953 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16954 fi
16955 ;;
16956 darwin*)
16957 # PIC is the default on this platform
16958 # Common symbols not allowed in MH_DYLIB files
16959 case $cc_basename in
16960 xlc*)
16961 lt_prog_compiler_pic_GCJ='-qnocommon'
16962 lt_prog_compiler_wl_GCJ='-Wl,'
16963 ;;
16964 esac
16965 ;;
16966
16967 mingw* | cygwin* | pw32* | os2*)
16968 # This hack is so that the source file can tell whether it is being
16969 # built for inclusion in a dll (and should export symbols for example).
16970 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16971 ;;
16972
16973 hpux9* | hpux10* | hpux11*)
16974 lt_prog_compiler_wl_GCJ='-Wl,'
16975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16976 # not for PA HP-UX.
16977 case $host_cpu in
16978 hppa*64*|ia64*)
16979 # +Z the default
16980 ;;
16981 *)
16982 lt_prog_compiler_pic_GCJ='+Z'
16983 ;;
16984 esac
16985 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16986 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16987 ;;
16988
16989 irix5* | irix6* | nonstopux*)
16990 lt_prog_compiler_wl_GCJ='-Wl,'
16991 # PIC (with -KPIC) is the default.
16992 lt_prog_compiler_static_GCJ='-non_shared'
16993 ;;
16994
16995 newsos6)
16996 lt_prog_compiler_pic_GCJ='-KPIC'
16997 lt_prog_compiler_static_GCJ='-Bstatic'
16998 ;;
16999
17000 linux* | k*bsd*-gnu)
17001 case $cc_basename in
17002 icc* | ecc*)
17003 lt_prog_compiler_wl_GCJ='-Wl,'
17004 lt_prog_compiler_pic_GCJ='-KPIC'
17005 lt_prog_compiler_static_GCJ='-static'
17006 ;;
17007 pgcc* | pgf77* | pgf90* | pgf95*)
17008 # Portland Group compilers (*not* the Pentium gcc compiler,
17009 # which looks to be a dead project)
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 lt_prog_compiler_pic_GCJ='-fpic'
17012 lt_prog_compiler_static_GCJ='-Bstatic'
17013 ;;
17014 ccc*)
17015 lt_prog_compiler_wl_GCJ='-Wl,'
17016 # All Alpha code is PIC.
17017 lt_prog_compiler_static_GCJ='-non_shared'
17018 ;;
17019 *)
17020 case `$CC -V 2>&1 | sed 5q` in
17021 *Sun\ C*)
17022 # Sun C 5.9
17023 lt_prog_compiler_pic_GCJ='-KPIC'
17024 lt_prog_compiler_static_GCJ='-Bstatic'
17025 lt_prog_compiler_wl_GCJ='-Wl,'
17026 ;;
17027 *Sun\ F*)
17028 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17029 lt_prog_compiler_pic_GCJ='-KPIC'
17030 lt_prog_compiler_static_GCJ='-Bstatic'
17031 lt_prog_compiler_wl_GCJ=''
17032 ;;
17033 esac
17034 ;;
17035 esac
17036 ;;
17037
17038 osf3* | osf4* | osf5*)
17039 lt_prog_compiler_wl_GCJ='-Wl,'
17040 # All OSF/1 code is PIC.
17041 lt_prog_compiler_static_GCJ='-non_shared'
17042 ;;
17043
17044 rdos*)
17045 lt_prog_compiler_static_GCJ='-non_shared'
17046 ;;
17047
17048 solaris*)
17049 lt_prog_compiler_pic_GCJ='-KPIC'
17050 lt_prog_compiler_static_GCJ='-Bstatic'
17051 case $cc_basename in
17052 f77* | f90* | f95*)
17053 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17054 *)
17055 lt_prog_compiler_wl_GCJ='-Wl,';;
17056 esac
17057 ;;
17058
17059 sunos4*)
17060 lt_prog_compiler_wl_GCJ='-Qoption ld '
17061 lt_prog_compiler_pic_GCJ='-PIC'
17062 lt_prog_compiler_static_GCJ='-Bstatic'
17063 ;;
17064
17065 sysv4 | sysv4.2uw2* | sysv4.3*)
17066 lt_prog_compiler_wl_GCJ='-Wl,'
17067 lt_prog_compiler_pic_GCJ='-KPIC'
17068 lt_prog_compiler_static_GCJ='-Bstatic'
17069 ;;
17070
17071 sysv4*MP*)
17072 if test -d /usr/nec ;then
17073 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17074 lt_prog_compiler_static_GCJ='-Bstatic'
17075 fi
17076 ;;
17077
17078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17080 lt_prog_compiler_pic_GCJ='-KPIC'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17082 ;;
17083
17084 unicos*)
17085 lt_prog_compiler_wl_GCJ='-Wl,'
17086 lt_prog_compiler_can_build_shared_GCJ=no
17087 ;;
17088
17089 uts4*)
17090 lt_prog_compiler_pic_GCJ='-pic'
17091 lt_prog_compiler_static_GCJ='-Bstatic'
17092 ;;
17093
17094 *)
17095 lt_prog_compiler_can_build_shared_GCJ=no
17096 ;;
17097 esac
17098 fi
17099
17100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17101 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17102
17103 #
17104 # Check to make sure the PIC flag actually works.
17105 #
17106 if test -n "$lt_prog_compiler_pic_GCJ"; then
17107
17108 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17109 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17110 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 lt_prog_compiler_pic_works_GCJ=no
17114 ac_outfile=conftest.$ac_objext
17115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17116 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17117 # Insert the option either (1) after the last *FLAGS variable, or
17118 # (2) before a word containing "conftest.", or (3) at the end.
17119 # Note that $ac_compile itself does not contain backslashes and begins
17120 # with a dollar sign (not a hyphen), so the echo should work correctly.
17121 # The option is referenced via a variable to avoid confusing sed.
17122 lt_compile=`echo "$ac_compile" | $SED \
17123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125 -e 's:$: $lt_compiler_flag:'`
17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127 (eval "$lt_compile" 2>conftest.err)
17128 ac_status=$?
17129 cat conftest.err >&5
17130 echo "$as_me:17130: \$? = $ac_status" >&5
17131 if (exit $ac_status) && test -s "$ac_outfile"; then
17132 # The compiler can only warn and ignore the option if not recognized
17133 # So say no if there are warnings other than the usual output.
17134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17137 lt_prog_compiler_pic_works_GCJ=yes
17138 fi
17139 fi
17140 $rm conftest*
17141
17142 fi
17143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17144 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17145
17146 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17147 case $lt_prog_compiler_pic_GCJ in
17148 "" | " "*) ;;
17149 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17150 esac
17151 else
17152 lt_prog_compiler_pic_GCJ=
17153 lt_prog_compiler_can_build_shared_GCJ=no
17154 fi
17155
17156 fi
17157 case $host_os in
17158 # For platforms which do not support PIC, -DPIC is meaningless:
17159 *djgpp*)
17160 lt_prog_compiler_pic_GCJ=
17161 ;;
17162 *)
17163 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17164 ;;
17165 esac
17166
17167 #
17168 # Check to make sure the static flag actually works.
17169 #
17170 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17171 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17172 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17173 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 else
17176 lt_prog_compiler_static_works_GCJ=no
17177 save_LDFLAGS="$LDFLAGS"
17178 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17179 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17181 # The linker can only warn and ignore the option if not recognized
17182 # So say no if there are warnings
17183 if test -s conftest.err; then
17184 # Append any errors to the config.log.
17185 cat conftest.err 1>&5
17186 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17188 if diff conftest.exp conftest.er2 >/dev/null; then
17189 lt_prog_compiler_static_works_GCJ=yes
17190 fi
17191 else
17192 lt_prog_compiler_static_works_GCJ=yes
17193 fi
17194 fi
17195 $rm conftest*
17196 LDFLAGS="$save_LDFLAGS"
17197
17198 fi
17199 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17200 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17201
17202 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17203 :
17204 else
17205 lt_prog_compiler_static_GCJ=
17206 fi
17207
17208
17209 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17210 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17211 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214 lt_cv_prog_compiler_c_o_GCJ=no
17215 $rm -r conftest 2>/dev/null
17216 mkdir conftest
17217 cd conftest
17218 mkdir out
17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17220
17221 lt_compiler_flag="-o out/conftest2.$ac_objext"
17222 # Insert the option either (1) after the last *FLAGS variable, or
17223 # (2) before a word containing "conftest.", or (3) at the end.
17224 # Note that $ac_compile itself does not contain backslashes and begins
17225 # with a dollar sign (not a hyphen), so the echo should work correctly.
17226 lt_compile=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\$as_me:17230: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>out/conftest.err)
17232 ac_status=$?
17233 cat out/conftest.err >&5
17234 echo "$as_me:17234: \$? = $ac_status" >&5
17235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17236 then
17237 # The compiler can only warn and ignore the option if not recognized
17238 # So say no if there are warnings
17239 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17242 lt_cv_prog_compiler_c_o_GCJ=yes
17243 fi
17244 fi
17245 chmod u+w . 2>&5
17246 $rm conftest*
17247 # SGI C++ compiler will create directory out/ii_files/ for
17248 # template instantiation
17249 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17250 $rm out/* && rmdir out
17251 cd ..
17252 rmdir conftest
17253 $rm conftest*
17254
17255 fi
17256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17257 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17258
17259
17260 hard_links="nottested"
17261 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17262 # do not overwrite the value of need_locks provided by the user
17263 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17264 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17265 hard_links=yes
17266 $rm conftest*
17267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17268 touch conftest.a
17269 ln conftest.a conftest.b 2>&5 || hard_links=no
17270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17271 { echo "$as_me:$LINENO: result: $hard_links" >&5
17272 echo "${ECHO_T}$hard_links" >&6; }
17273 if test "$hard_links" = no; then
17274 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17275 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17276 need_locks=warn
17277 fi
17278 else
17279 need_locks=no
17280 fi
17281
17282 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17284
17285 runpath_var=
17286 allow_undefined_flag_GCJ=
17287 enable_shared_with_static_runtimes_GCJ=no
17288 archive_cmds_GCJ=
17289 archive_expsym_cmds_GCJ=
17290 old_archive_From_new_cmds_GCJ=
17291 old_archive_from_expsyms_cmds_GCJ=
17292 export_dynamic_flag_spec_GCJ=
17293 whole_archive_flag_spec_GCJ=
17294 thread_safe_flag_spec_GCJ=
17295 hardcode_libdir_flag_spec_GCJ=
17296 hardcode_libdir_flag_spec_ld_GCJ=
17297 hardcode_libdir_separator_GCJ=
17298 hardcode_direct_GCJ=no
17299 hardcode_minus_L_GCJ=no
17300 hardcode_shlibpath_var_GCJ=unsupported
17301 link_all_deplibs_GCJ=unknown
17302 hardcode_automatic_GCJ=no
17303 module_cmds_GCJ=
17304 module_expsym_cmds_GCJ=
17305 always_export_symbols_GCJ=no
17306 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17307 # include_expsyms should be a list of space-separated symbols to be *always*
17308 # included in the symbol list
17309 include_expsyms_GCJ=
17310 # exclude_expsyms can be an extended regexp of symbols to exclude
17311 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17312 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17313 # as well as any symbol that contains `d'.
17314 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17316 # platforms (ab)use it in PIC code, but their linkers get confused if
17317 # the symbol is explicitly referenced. Since portable code cannot
17318 # rely on this symbol name, it's probably fine to never include it in
17319 # preloaded symbol tables.
17320 extract_expsyms_cmds=
17321 # Just being paranoid about ensuring that cc_basename is set.
17322 for cc_temp in $compiler""; do
17323 case $cc_temp in
17324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17326 \-*) ;;
17327 *) break;;
17328 esac
17329 done
17330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17331
17332 case $host_os in
17333 cygwin* | mingw* | pw32*)
17334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17335 # When not using gcc, we currently assume that we are using
17336 # Microsoft Visual C++.
17337 if test "$GCC" != yes; then
17338 with_gnu_ld=no
17339 fi
17340 ;;
17341 interix*)
17342 # we just hope/assume this is gcc and not c89 (= MSVC++)
17343 with_gnu_ld=yes
17344 ;;
17345 openbsd*)
17346 with_gnu_ld=no
17347 ;;
17348 esac
17349
17350 ld_shlibs_GCJ=yes
17351 if test "$with_gnu_ld" = yes; then
17352 # If archive_cmds runs LD, not CC, wlarc should be empty
17353 wlarc='${wl}'
17354
17355 # Set some defaults for GNU ld with shared library support. These
17356 # are reset later if shared libraries are not supported. Putting them
17357 # here allows them to be overridden if necessary.
17358 runpath_var=LD_RUN_PATH
17359 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17360 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17361 # ancient GNU ld didn't support --whole-archive et. al.
17362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17363 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17364 else
17365 whole_archive_flag_spec_GCJ=
17366 fi
17367 supports_anon_versioning=no
17368 case `$LD -v 2>/dev/null` in
17369 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17370 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17371 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17372 *\ 2.11.*) ;; # other 2.11 versions
17373 *) supports_anon_versioning=yes ;;
17374 esac
17375
17376 # See if GNU ld supports shared libraries.
17377 case $host_os in
17378 aix3* | aix4* | aix5*)
17379 # On AIX/PPC, the GNU linker is very broken
17380 if test "$host_cpu" != ia64; then
17381 ld_shlibs_GCJ=no
17382 cat <<EOF 1>&2
17383
17384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17385 *** to be unable to reliably create shared libraries on AIX.
17386 *** Therefore, libtool is disabling shared libraries support. If you
17387 *** really care for shared libraries, you may want to modify your PATH
17388 *** so that a non-GNU linker is found, and then restart.
17389
17390 EOF
17391 fi
17392 ;;
17393
17394 amigaos*)
17395 archive_cmds_GCJ='$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)'
17396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17397 hardcode_minus_L_GCJ=yes
17398
17399 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17400 # that the semantics of dynamic libraries on AmigaOS, at least up
17401 # to version 4, is to share data among multiple programs linked
17402 # with the same dynamic library. Since this doesn't match the
17403 # behavior of shared libraries on other platforms, we can't use
17404 # them.
17405 ld_shlibs_GCJ=no
17406 ;;
17407
17408 beos*)
17409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410 allow_undefined_flag_GCJ=unsupported
17411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412 # support --undefined. This deserves some investigation. FIXME
17413 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 else
17415 ld_shlibs_GCJ=no
17416 fi
17417 ;;
17418
17419 cygwin* | mingw* | pw32*)
17420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17421 # as there is no search path for DLLs.
17422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17423 allow_undefined_flag_GCJ=unsupported
17424 always_export_symbols_GCJ=no
17425 enable_shared_with_static_runtimes_GCJ=yes
17426 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17427
17428 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17429 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17430 # If the export-symbols file already is a .def file (1st line
17431 # is EXPORTS), use it as is; otherwise, prepend...
17432 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17433 cp $export_symbols $output_objdir/$soname.def;
17434 else
17435 echo EXPORTS > $output_objdir/$soname.def;
17436 cat $export_symbols >> $output_objdir/$soname.def;
17437 fi~
17438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17439 else
17440 ld_shlibs_GCJ=no
17441 fi
17442 ;;
17443
17444 interix[3-9]*)
17445 hardcode_direct_GCJ=no
17446 hardcode_shlibpath_var_GCJ=no
17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448 export_dynamic_flag_spec_GCJ='${wl}-E'
17449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17450 # Instead, shared libraries are loaded at an image base (0x10000000 by
17451 # default) and relocated if they conflict, which is a slow very memory
17452 # consuming and fragmenting process. To avoid this, we pick a random,
17453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17454 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17455 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17456 archive_expsym_cmds_GCJ='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'
17457 ;;
17458
17459 gnu* | linux* | k*bsd*-gnu)
17460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461 tmp_addflag=
17462 case $cc_basename,$host_cpu in
17463 pgcc*) # Portland Group C compiler
17464 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17465 tmp_addflag=' $pic_flag'
17466 ;;
17467 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17468 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17469 tmp_addflag=' $pic_flag -Mnomain' ;;
17470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17471 tmp_addflag=' -i_dynamic' ;;
17472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17473 tmp_addflag=' -i_dynamic -nofor_main' ;;
17474 ifc* | ifort*) # Intel Fortran compiler
17475 tmp_addflag=' -nofor_main' ;;
17476 esac
17477 case `$CC -V 2>&1 | sed 5q` in
17478 *Sun\ C*) # Sun C 5.9
17479 whole_archive_flag_spec_GCJ='${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'
17480 tmp_sharedflag='-G' ;;
17481 *Sun\ F*) # Sun Fortran 8.3
17482 tmp_sharedflag='-G' ;;
17483 *)
17484 tmp_sharedflag='-shared' ;;
17485 esac
17486 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17487
17488 if test $supports_anon_versioning = yes; then
17489 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17491 $echo "local: *; };" >> $output_objdir/$libname.ver~
17492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17493 fi
17494 link_all_deplibs_GCJ=no
17495 else
17496 ld_shlibs_GCJ=no
17497 fi
17498 ;;
17499
17500 netbsd* | netbsdelf*-gnu)
17501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17503 wlarc=
17504 else
17505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17507 fi
17508 ;;
17509
17510 solaris*)
17511 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17512 ld_shlibs_GCJ=no
17513 cat <<EOF 1>&2
17514
17515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17516 *** create shared libraries on Solaris systems. Therefore, libtool
17517 *** is disabling shared libraries support. We urge you to upgrade GNU
17518 *** binutils to release 2.9.1 or newer. Another option is to modify
17519 *** your PATH or compiler configuration so that the native linker is
17520 *** used, and then restart.
17521
17522 EOF
17523 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17524 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17526 else
17527 ld_shlibs_GCJ=no
17528 fi
17529 ;;
17530
17531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17532 case `$LD -v 2>&1` in
17533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17534 ld_shlibs_GCJ=no
17535 cat <<_LT_EOF 1>&2
17536
17537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17538 *** reliably create shared libraries on SCO systems. Therefore, libtool
17539 *** is disabling shared libraries support. We urge you to upgrade GNU
17540 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17541 *** your PATH or compiler configuration so that the native linker is
17542 *** used, and then restart.
17543
17544 _LT_EOF
17545 ;;
17546 *)
17547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17549 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17550 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17551 else
17552 ld_shlibs_GCJ=no
17553 fi
17554 ;;
17555 esac
17556 ;;
17557
17558 sunos4*)
17559 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17560 wlarc=
17561 hardcode_direct_GCJ=yes
17562 hardcode_shlibpath_var_GCJ=no
17563 ;;
17564
17565 *)
17566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17567 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17569 else
17570 ld_shlibs_GCJ=no
17571 fi
17572 ;;
17573 esac
17574
17575 if test "$ld_shlibs_GCJ" = no; then
17576 runpath_var=
17577 hardcode_libdir_flag_spec_GCJ=
17578 export_dynamic_flag_spec_GCJ=
17579 whole_archive_flag_spec_GCJ=
17580 fi
17581 else
17582 # PORTME fill in a description of your system's linker (not GNU ld)
17583 case $host_os in
17584 aix3*)
17585 allow_undefined_flag_GCJ=unsupported
17586 always_export_symbols_GCJ=yes
17587 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17588 # Note: this linker hardcodes the directories in LIBPATH if there
17589 # are no directories specified by -L.
17590 hardcode_minus_L_GCJ=yes
17591 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17592 # Neither direct hardcoding nor static linking is supported with a
17593 # broken collect2.
17594 hardcode_direct_GCJ=unsupported
17595 fi
17596 ;;
17597
17598 aix4* | aix5*)
17599 if test "$host_cpu" = ia64; then
17600 # On IA64, the linker does run time linking by default, so we don't
17601 # have to do anything special.
17602 aix_use_runtimelinking=no
17603 exp_sym_flag='-Bexport'
17604 no_entry_flag=""
17605 else
17606 # If we're using GNU nm, then we don't want the "-C" option.
17607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17608 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17609 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17610 else
17611 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17612 fi
17613 aix_use_runtimelinking=no
17614
17615 # Test if we are trying to use run time linking or normal
17616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17617 # need to do runtime linking.
17618 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17619 for ld_flag in $LDFLAGS; do
17620 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17621 aix_use_runtimelinking=yes
17622 break
17623 fi
17624 done
17625 ;;
17626 esac
17627
17628 exp_sym_flag='-bexport'
17629 no_entry_flag='-bnoentry'
17630 fi
17631
17632 # When large executables or shared objects are built, AIX ld can
17633 # have problems creating the table of contents. If linking a library
17634 # or program results in "error TOC overflow" add -mminimal-toc to
17635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17637
17638 archive_cmds_GCJ=''
17639 hardcode_direct_GCJ=yes
17640 hardcode_libdir_separator_GCJ=':'
17641 link_all_deplibs_GCJ=yes
17642
17643 if test "$GCC" = yes; then
17644 case $host_os in aix4.[012]|aix4.[012].*)
17645 # We only want to do this on AIX 4.2 and lower, the check
17646 # below for broken collect2 doesn't work under 4.3+
17647 collect2name=`${CC} -print-prog-name=collect2`
17648 if test -f "$collect2name" && \
17649 strings "$collect2name" | grep resolve_lib_name >/dev/null
17650 then
17651 # We have reworked collect2
17652 :
17653 else
17654 # We have old collect2
17655 hardcode_direct_GCJ=unsupported
17656 # It fails to find uninstalled libraries when the uninstalled
17657 # path is not listed in the libpath. Setting hardcode_minus_L
17658 # to unsupported forces relinking
17659 hardcode_minus_L_GCJ=yes
17660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17661 hardcode_libdir_separator_GCJ=
17662 fi
17663 ;;
17664 esac
17665 shared_flag='-shared'
17666 if test "$aix_use_runtimelinking" = yes; then
17667 shared_flag="$shared_flag "'${wl}-G'
17668 fi
17669 else
17670 # not using gcc
17671 if test "$host_cpu" = ia64; then
17672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17673 # chokes on -Wl,-G. The following line is correct:
17674 shared_flag='-G'
17675 else
17676 if test "$aix_use_runtimelinking" = yes; then
17677 shared_flag='${wl}-G'
17678 else
17679 shared_flag='${wl}-bM:SRE'
17680 fi
17681 fi
17682 fi
17683
17684 # It seems that -bexpall does not export symbols beginning with
17685 # underscore (_), so it is better to generate a list of symbols to export.
17686 always_export_symbols_GCJ=yes
17687 if test "$aix_use_runtimelinking" = yes; then
17688 # Warning - without using the other runtime loading flags (-brtl),
17689 # -berok will link without error, but may produce a broken library.
17690 allow_undefined_flag_GCJ='-berok'
17691 # Determine the default libpath from the value encoded in an empty executable.
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698
17699 int
17700 main ()
17701 {
17702
17703 ;
17704 return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (ac_try="$ac_link"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && {
17721 test -z "$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 } && test -s conftest$ac_exeext &&
17724 $as_test_x conftest$ac_exeext; then
17725
17726 lt_aix_libpath_sed='
17727 /Import File Strings/,/^$/ {
17728 /^0/ {
17729 s/^0 *\(.*\)$/\1/
17730 p
17731 }
17732 }'
17733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17734 # Check for a 64-bit object if we didn't find anything.
17735 if test -z "$aix_libpath"; then
17736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17737 fi
17738 else
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742
17743 fi
17744
17745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17746 conftest$ac_exeext conftest.$ac_ext
17747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17748
17749 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17750 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17751 else
17752 if test "$host_cpu" = ia64; then
17753 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17754 allow_undefined_flag_GCJ="-z nodefs"
17755 archive_expsym_cmds_GCJ="\$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"
17756 else
17757 # Determine the default libpath from the value encoded in an empty executable.
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764
17765 int
17766 main ()
17767 {
17768
17769 ;
17770 return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (ac_try="$ac_link"
17775 case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778 esac
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_link") 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && {
17787 test -z "$ac_c_werror_flag" ||
17788 test ! -s conftest.err
17789 } && test -s conftest$ac_exeext &&
17790 $as_test_x conftest$ac_exeext; then
17791
17792 lt_aix_libpath_sed='
17793 /Import File Strings/,/^$/ {
17794 /^0/ {
17795 s/^0 *\(.*\)$/\1/
17796 p
17797 }
17798 }'
17799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17800 # Check for a 64-bit object if we didn't find anything.
17801 if test -z "$aix_libpath"; then
17802 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17803 fi
17804 else
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808
17809 fi
17810
17811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812 conftest$ac_exeext conftest.$ac_ext
17813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17814
17815 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17816 # Warning - without using the other run time loading flags,
17817 # -berok will link without error, but may produce a broken library.
17818 no_undefined_flag_GCJ=' ${wl}-bernotok'
17819 allow_undefined_flag_GCJ=' ${wl}-berok'
17820 # Exported symbols can be pulled into shared objects from archives
17821 whole_archive_flag_spec_GCJ='$convenience'
17822 archive_cmds_need_lc_GCJ=yes
17823 # This is similar to how AIX traditionally builds its shared libraries.
17824 archive_expsym_cmds_GCJ="\$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'
17825 fi
17826 fi
17827 ;;
17828
17829 amigaos*)
17830 archive_cmds_GCJ='$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)'
17831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17832 hardcode_minus_L_GCJ=yes
17833 # see comment about different semantics on the GNU ld section
17834 ld_shlibs_GCJ=no
17835 ;;
17836
17837 bsdi[45]*)
17838 export_dynamic_flag_spec_GCJ=-rdynamic
17839 ;;
17840
17841 cygwin* | mingw* | pw32*)
17842 # When not using gcc, we currently assume that we are using
17843 # Microsoft Visual C++.
17844 # hardcode_libdir_flag_spec is actually meaningless, as there is
17845 # no search path for DLLs.
17846 hardcode_libdir_flag_spec_GCJ=' '
17847 allow_undefined_flag_GCJ=unsupported
17848 # Tell ltmain to make .lib files, not .a files.
17849 libext=lib
17850 # Tell ltmain to make .dll files, not .so files.
17851 shrext_cmds=".dll"
17852 # FIXME: Setting linknames here is a bad hack.
17853 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17854 # The linker will automatically build a .lib file if we build a DLL.
17855 old_archive_From_new_cmds_GCJ='true'
17856 # FIXME: Should let the user specify the lib program.
17857 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17858 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17859 enable_shared_with_static_runtimes_GCJ=yes
17860 ;;
17861
17862 darwin* | rhapsody*)
17863 case $host_os in
17864 rhapsody* | darwin1.[012])
17865 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17866 ;;
17867 *) # Darwin 1.3 on
17868 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17869 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870 else
17871 case ${MACOSX_DEPLOYMENT_TARGET} in
17872 10.[012])
17873 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17874 ;;
17875 10.*)
17876 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17877 ;;
17878 esac
17879 fi
17880 ;;
17881 esac
17882 archive_cmds_need_lc_GCJ=no
17883 hardcode_direct_GCJ=no
17884 hardcode_automatic_GCJ=yes
17885 hardcode_shlibpath_var_GCJ=unsupported
17886 whole_archive_flag_spec_GCJ=''
17887 link_all_deplibs_GCJ=yes
17888 if test "$GCC" = yes ; then
17889 output_verbose_link_cmd='echo'
17890 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17891 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17893 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
17894 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
17895 else
17896 case $cc_basename in
17897 xlc*)
17898 output_verbose_link_cmd='echo'
17899 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17900 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17902 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17903 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
17904 ;;
17905 *)
17906 ld_shlibs_GCJ=no
17907 ;;
17908 esac
17909 fi
17910 ;;
17911
17912 dgux*)
17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17915 hardcode_shlibpath_var_GCJ=no
17916 ;;
17917
17918 freebsd1*)
17919 ld_shlibs_GCJ=no
17920 ;;
17921
17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17923 # support. Future versions do this automatically, but an explicit c++rt0.o
17924 # does not break anything, and helps significantly (at the cost of a little
17925 # extra space).
17926 freebsd2.2*)
17927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929 hardcode_direct_GCJ=yes
17930 hardcode_shlibpath_var_GCJ=no
17931 ;;
17932
17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17934 freebsd2*)
17935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct_GCJ=yes
17937 hardcode_minus_L_GCJ=yes
17938 hardcode_shlibpath_var_GCJ=no
17939 ;;
17940
17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17942 freebsd* | dragonfly*)
17943 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945 hardcode_direct_GCJ=yes
17946 hardcode_shlibpath_var_GCJ=no
17947 ;;
17948
17949 hpux9*)
17950 if test "$GCC" = yes; then
17951 archive_cmds_GCJ='$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'
17952 else
17953 archive_cmds_GCJ='$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'
17954 fi
17955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17956 hardcode_libdir_separator_GCJ=:
17957 hardcode_direct_GCJ=yes
17958
17959 # hardcode_minus_L: Not really in the search PATH,
17960 # but as the default location of the library.
17961 hardcode_minus_L_GCJ=yes
17962 export_dynamic_flag_spec_GCJ='${wl}-E'
17963 ;;
17964
17965 hpux10*)
17966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17967 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17968 else
17969 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17970 fi
17971 if test "$with_gnu_ld" = no; then
17972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17973 hardcode_libdir_separator_GCJ=:
17974
17975 hardcode_direct_GCJ=yes
17976 export_dynamic_flag_spec_GCJ='${wl}-E'
17977
17978 # hardcode_minus_L: Not really in the search PATH,
17979 # but as the default location of the library.
17980 hardcode_minus_L_GCJ=yes
17981 fi
17982 ;;
17983
17984 hpux11*)
17985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17986 case $host_cpu in
17987 hppa*64*)
17988 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17989 ;;
17990 ia64*)
17991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 ;;
17993 *)
17994 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17995 ;;
17996 esac
17997 else
17998 case $host_cpu in
17999 hppa*64*)
18000 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18001 ;;
18002 ia64*)
18003 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18004 ;;
18005 *)
18006 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18007 ;;
18008 esac
18009 fi
18010 if test "$with_gnu_ld" = no; then
18011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18012 hardcode_libdir_separator_GCJ=:
18013
18014 case $host_cpu in
18015 hppa*64*|ia64*)
18016 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18017 hardcode_direct_GCJ=no
18018 hardcode_shlibpath_var_GCJ=no
18019 ;;
18020 *)
18021 hardcode_direct_GCJ=yes
18022 export_dynamic_flag_spec_GCJ='${wl}-E'
18023
18024 # hardcode_minus_L: Not really in the search PATH,
18025 # but as the default location of the library.
18026 hardcode_minus_L_GCJ=yes
18027 ;;
18028 esac
18029 fi
18030 ;;
18031
18032 irix5* | irix6* | nonstopux*)
18033 if test "$GCC" = yes; then
18034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18035 else
18036 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18037 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18038 fi
18039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18040 hardcode_libdir_separator_GCJ=:
18041 link_all_deplibs_GCJ=yes
18042 ;;
18043
18044 netbsd* | netbsdelf*-gnu)
18045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18046 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18047 else
18048 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18049 fi
18050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051 hardcode_direct_GCJ=yes
18052 hardcode_shlibpath_var_GCJ=no
18053 ;;
18054
18055 newsos6)
18056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057 hardcode_direct_GCJ=yes
18058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18059 hardcode_libdir_separator_GCJ=:
18060 hardcode_shlibpath_var_GCJ=no
18061 ;;
18062
18063 openbsd*)
18064 if test -f /usr/libexec/ld.so; then
18065 hardcode_direct_GCJ=yes
18066 hardcode_shlibpath_var_GCJ=no
18067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18069 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18071 export_dynamic_flag_spec_GCJ='${wl}-E'
18072 else
18073 case $host_os in
18074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18076 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18077 ;;
18078 *)
18079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18081 ;;
18082 esac
18083 fi
18084 else
18085 ld_shlibs_GCJ=no
18086 fi
18087 ;;
18088
18089 os2*)
18090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18091 hardcode_minus_L_GCJ=yes
18092 allow_undefined_flag_GCJ=unsupported
18093 archive_cmds_GCJ='$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'
18094 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18095 ;;
18096
18097 osf3*)
18098 if test "$GCC" = yes; then
18099 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18100 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18101 else
18102 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18103 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18104 fi
18105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18106 hardcode_libdir_separator_GCJ=:
18107 ;;
18108
18109 osf4* | osf5*) # as osf3* with the addition of -msym flag
18110 if test "$GCC" = yes; then
18111 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18112 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18113 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18114 else
18115 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18116 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18117 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18118 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18119
18120 # Both c and cxx compiler support -rpath directly
18121 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18122 fi
18123 hardcode_libdir_separator_GCJ=:
18124 ;;
18125
18126 solaris*)
18127 no_undefined_flag_GCJ=' -z text'
18128 if test "$GCC" = yes; then
18129 wlarc='${wl}'
18130 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18133 else
18134 wlarc=''
18135 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18137 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18138 fi
18139 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18140 hardcode_shlibpath_var_GCJ=no
18141 case $host_os in
18142 solaris2.[0-5] | solaris2.[0-5].*) ;;
18143 *)
18144 # The compiler driver will combine and reorder linker options,
18145 # but understands `-z linker_flag'. GCC discards it without `$wl',
18146 # but is careful enough not to reorder.
18147 # Supported since Solaris 2.6 (maybe 2.5.1?)
18148 if test "$GCC" = yes; then
18149 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18150 else
18151 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18152 fi
18153 ;;
18154 esac
18155 link_all_deplibs_GCJ=yes
18156 ;;
18157
18158 sunos4*)
18159 if test "x$host_vendor" = xsequent; then
18160 # Use $CC to link under sequent, because it throws in some extra .o
18161 # files that make .init and .fini sections work.
18162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18163 else
18164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18165 fi
18166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18167 hardcode_direct_GCJ=yes
18168 hardcode_minus_L_GCJ=yes
18169 hardcode_shlibpath_var_GCJ=no
18170 ;;
18171
18172 sysv4)
18173 case $host_vendor in
18174 sni)
18175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18176 hardcode_direct_GCJ=yes # is this really true???
18177 ;;
18178 siemens)
18179 ## LD is ld it makes a PLAMLIB
18180 ## CC just makes a GrossModule.
18181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18182 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18183 hardcode_direct_GCJ=no
18184 ;;
18185 motorola)
18186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18188 ;;
18189 esac
18190 runpath_var='LD_RUN_PATH'
18191 hardcode_shlibpath_var_GCJ=no
18192 ;;
18193
18194 sysv4.3*)
18195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_shlibpath_var_GCJ=no
18197 export_dynamic_flag_spec_GCJ='-Bexport'
18198 ;;
18199
18200 sysv4*MP*)
18201 if test -d /usr/nec; then
18202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 hardcode_shlibpath_var_GCJ=no
18204 runpath_var=LD_RUN_PATH
18205 hardcode_runpath_var=yes
18206 ld_shlibs_GCJ=yes
18207 fi
18208 ;;
18209
18210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18211 no_undefined_flag_GCJ='${wl}-z,text'
18212 archive_cmds_need_lc_GCJ=no
18213 hardcode_shlibpath_var_GCJ=no
18214 runpath_var='LD_RUN_PATH'
18215
18216 if test "$GCC" = yes; then
18217 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18218 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18219 else
18220 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18222 fi
18223 ;;
18224
18225 sysv5* | sco3.2v5* | sco5v6*)
18226 # Note: We can NOT use -z defs as we might desire, because we do not
18227 # link with -lc, and that would cause any symbols used from libc to
18228 # always be unresolved, which means just about no library would
18229 # ever link correctly. If we're not using GNU ld we use -z text
18230 # though, which does catch some bad symbols but isn't as heavy-handed
18231 # as -z defs.
18232 no_undefined_flag_GCJ='${wl}-z,text'
18233 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18234 archive_cmds_need_lc_GCJ=no
18235 hardcode_shlibpath_var_GCJ=no
18236 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18237 hardcode_libdir_separator_GCJ=':'
18238 link_all_deplibs_GCJ=yes
18239 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18240 runpath_var='LD_RUN_PATH'
18241
18242 if test "$GCC" = yes; then
18243 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18244 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245 else
18246 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18248 fi
18249 ;;
18250
18251 uts4*)
18252 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18253 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18254 hardcode_shlibpath_var_GCJ=no
18255 ;;
18256
18257 *)
18258 ld_shlibs_GCJ=no
18259 ;;
18260 esac
18261 fi
18262
18263 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18264 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18265 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18266
18267 #
18268 # Do we need to explicitly link libc?
18269 #
18270 case "x$archive_cmds_need_lc_GCJ" in
18271 x|xyes)
18272 # Assume -lc should be added
18273 archive_cmds_need_lc_GCJ=yes
18274
18275 if test "$enable_shared" = yes && test "$GCC" = yes; then
18276 case $archive_cmds_GCJ in
18277 *'~'*)
18278 # FIXME: we may have to deal with multi-command sequences.
18279 ;;
18280 '$CC '*)
18281 # Test whether the compiler implicitly links with -lc since on some
18282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18283 # to ld, don't add -lc before -lgcc.
18284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18285 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18286 $rm conftest*
18287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18288
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } 2>conftest.err; then
18294 soname=conftest
18295 lib=conftest
18296 libobjs=conftest.$ac_objext
18297 deplibs=
18298 wl=$lt_prog_compiler_wl_GCJ
18299 pic_flag=$lt_prog_compiler_pic_GCJ
18300 compiler_flags=-v
18301 linker_flags=-v
18302 verstring=
18303 output_objdir=.
18304 libname=conftest
18305 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18306 allow_undefined_flag_GCJ=
18307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18308 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }
18312 then
18313 archive_cmds_need_lc_GCJ=no
18314 else
18315 archive_cmds_need_lc_GCJ=yes
18316 fi
18317 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18318 else
18319 cat conftest.err 1>&5
18320 fi
18321 $rm conftest*
18322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18323 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18324 ;;
18325 esac
18326 fi
18327 ;;
18328 esac
18329
18330 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18331 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18332 library_names_spec=
18333 libname_spec='lib$name'
18334 soname_spec=
18335 shrext_cmds=".so"
18336 postinstall_cmds=
18337 postuninstall_cmds=
18338 finish_cmds=
18339 finish_eval=
18340 shlibpath_var=
18341 shlibpath_overrides_runpath=unknown
18342 version_type=none
18343 dynamic_linker="$host_os ld.so"
18344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18345
18346 need_lib_prefix=unknown
18347 hardcode_into_libs=no
18348
18349 # when you set need_version to no, make sure it does not cause -set_version
18350 # flags to be left without arguments
18351 need_version=unknown
18352
18353 case $host_os in
18354 aix3*)
18355 version_type=linux
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18357 shlibpath_var=LIBPATH
18358
18359 # AIX 3 has no versioning support, so we append a major version to the name.
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 ;;
18362
18363 aix4* | aix5*)
18364 version_type=linux
18365 need_lib_prefix=no
18366 need_version=no
18367 hardcode_into_libs=yes
18368 if test "$host_cpu" = ia64; then
18369 # AIX 5 supports IA64
18370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 else
18373 # With GCC up to 2.95.x, collect2 would create an import file
18374 # for dependence libraries. The import file would start with
18375 # the line `#! .'. This would cause the generated library to
18376 # depend on `.', always an invalid library. This was fixed in
18377 # development snapshots of GCC prior to 3.0.
18378 case $host_os in
18379 aix4 | aix4.[01] | aix4.[01].*)
18380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18381 echo ' yes '
18382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18383 :
18384 else
18385 can_build_shared=no
18386 fi
18387 ;;
18388 esac
18389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18390 # soname into executable. Probably we can add versioning support to
18391 # collect2, so additional links can be useful in future.
18392 if test "$aix_use_runtimelinking" = yes; then
18393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18394 # instead of lib<name>.a to let people know that these are not
18395 # typical AIX shared libraries.
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18397 else
18398 # We preserve .a as extension for shared libraries through AIX4.2
18399 # and later when we are not doing run time linking.
18400 library_names_spec='${libname}${release}.a $libname.a'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 fi
18403 shlibpath_var=LIBPATH
18404 fi
18405 ;;
18406
18407 amigaos*)
18408 library_names_spec='$libname.ixlibrary $libname.a'
18409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18410 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'
18411 ;;
18412
18413 beos*)
18414 library_names_spec='${libname}${shared_ext}'
18415 dynamic_linker="$host_os ld.so"
18416 shlibpath_var=LIBRARY_PATH
18417 ;;
18418
18419 bsdi[45]*)
18420 version_type=linux
18421 need_version=no
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18428 # the default ld.so.conf also contains /usr/contrib/lib and
18429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18430 # libtool to hard-code these into programs
18431 ;;
18432
18433 cygwin* | mingw* | pw32*)
18434 version_type=windows
18435 shrext_cmds=".dll"
18436 need_version=no
18437 need_lib_prefix=no
18438
18439 case $GCC,$host_os in
18440 yes,cygwin* | yes,mingw* | yes,pw32*)
18441 library_names_spec='$libname.dll.a'
18442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18443 postinstall_cmds='base_file=`basename \${file}`~
18444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18445 dldir=$destdir/`dirname \$dlpath`~
18446 test -d \$dldir || mkdir -p \$dldir~
18447 $install_prog $dir/$dlname \$dldir/$dlname~
18448 chmod a+x \$dldir/$dlname'
18449 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18450 dlpath=$dir/\$dldll~
18451 $rm \$dlpath'
18452 shlibpath_overrides_runpath=yes
18453
18454 case $host_os in
18455 cygwin*)
18456 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18457 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18458 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18459 ;;
18460 mingw*)
18461 # MinGW DLLs use traditional 'lib' prefix
18462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18464 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18465 # It is most probably a Windows format PATH printed by
18466 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18467 # path with ; separators, and with drive letters. We can handle the
18468 # drive letters (cygwin fileutils understands them), so leave them,
18469 # especially as we might pass files found there to a mingw objdump,
18470 # which wouldn't understand a cygwinified path. Ahh.
18471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18472 else
18473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18474 fi
18475 ;;
18476 pw32*)
18477 # pw32 DLLs use 'pw' prefix rather than 'lib'
18478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18479 ;;
18480 esac
18481 ;;
18482
18483 *)
18484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18485 ;;
18486 esac
18487 dynamic_linker='Win32 ld.exe'
18488 # FIXME: first we should search . and the directory the executable is in
18489 shlibpath_var=PATH
18490 ;;
18491
18492 darwin* | rhapsody*)
18493 dynamic_linker="$host_os dyld"
18494 version_type=darwin
18495 need_lib_prefix=no
18496 need_version=no
18497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18498 soname_spec='${libname}${release}${major}$shared_ext'
18499 shlibpath_overrides_runpath=yes
18500 shlibpath_var=DYLD_LIBRARY_PATH
18501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18502
18503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18504 ;;
18505
18506 dgux*)
18507 version_type=linux
18508 need_lib_prefix=no
18509 need_version=no
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 ;;
18514
18515 freebsd1*)
18516 dynamic_linker=no
18517 ;;
18518
18519 freebsd* | dragonfly*)
18520 # DragonFly does not have aout. When/if they implement a new
18521 # versioning mechanism, adjust this.
18522 if test -x /usr/bin/objformat; then
18523 objformat=`/usr/bin/objformat`
18524 else
18525 case $host_os in
18526 freebsd[123]*) objformat=aout ;;
18527 *) objformat=elf ;;
18528 esac
18529 fi
18530 version_type=freebsd-$objformat
18531 case $version_type in
18532 freebsd-elf*)
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18534 need_version=no
18535 need_lib_prefix=no
18536 ;;
18537 freebsd-*)
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18539 need_version=yes
18540 ;;
18541 esac
18542 shlibpath_var=LD_LIBRARY_PATH
18543 case $host_os in
18544 freebsd2*)
18545 shlibpath_overrides_runpath=yes
18546 ;;
18547 freebsd3.[01]* | freebsdelf3.[01]*)
18548 shlibpath_overrides_runpath=yes
18549 hardcode_into_libs=yes
18550 ;;
18551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18553 shlibpath_overrides_runpath=no
18554 hardcode_into_libs=yes
18555 ;;
18556 *) # from 4.6 on, and DragonFly
18557 shlibpath_overrides_runpath=yes
18558 hardcode_into_libs=yes
18559 ;;
18560 esac
18561 ;;
18562
18563 gnu*)
18564 version_type=linux
18565 need_lib_prefix=no
18566 need_version=no
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 hardcode_into_libs=yes
18571 ;;
18572
18573 hpux9* | hpux10* | hpux11*)
18574 # Give a soname corresponding to the major version so that dld.sl refuses to
18575 # link against other versions.
18576 version_type=sunos
18577 need_lib_prefix=no
18578 need_version=no
18579 case $host_cpu in
18580 ia64*)
18581 shrext_cmds='.so'
18582 hardcode_into_libs=yes
18583 dynamic_linker="$host_os dld.so"
18584 shlibpath_var=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587 soname_spec='${libname}${release}${shared_ext}$major'
18588 if test "X$HPUX_IA64_MODE" = X32; then
18589 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18590 else
18591 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18592 fi
18593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18594 ;;
18595 hppa*64*)
18596 shrext_cmds='.sl'
18597 hardcode_into_libs=yes
18598 dynamic_linker="$host_os dld.sl"
18599 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18605 ;;
18606 *)
18607 shrext_cmds='.sl'
18608 dynamic_linker="$host_os dld.sl"
18609 shlibpath_var=SHLIB_PATH
18610 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612 soname_spec='${libname}${release}${shared_ext}$major'
18613 ;;
18614 esac
18615 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18616 postinstall_cmds='chmod 555 $lib'
18617 ;;
18618
18619 interix[3-9]*)
18620 version_type=linux
18621 need_lib_prefix=no
18622 need_version=no
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18624 soname_spec='${libname}${release}${shared_ext}$major'
18625 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 shlibpath_overrides_runpath=no
18628 hardcode_into_libs=yes
18629 ;;
18630
18631 irix5* | irix6* | nonstopux*)
18632 case $host_os in
18633 nonstopux*) version_type=nonstopux ;;
18634 *)
18635 if test "$lt_cv_prog_gnu_ld" = yes; then
18636 version_type=linux
18637 else
18638 version_type=irix
18639 fi ;;
18640 esac
18641 need_lib_prefix=no
18642 need_version=no
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18645 case $host_os in
18646 irix5* | nonstopux*)
18647 libsuff= shlibsuff=
18648 ;;
18649 *)
18650 case $LD in # libtool.m4 will add one of these switches to LD
18651 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18652 libsuff= shlibsuff= libmagic=32-bit;;
18653 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18654 libsuff=32 shlibsuff=N32 libmagic=N32;;
18655 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18656 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18657 *) libsuff= shlibsuff= libmagic=never-match;;
18658 esac
18659 ;;
18660 esac
18661 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18662 shlibpath_overrides_runpath=no
18663 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18664 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18665 hardcode_into_libs=yes
18666 ;;
18667
18668 # No shared lib support for Linux oldld, aout, or coff.
18669 linux*oldld* | linux*aout* | linux*coff*)
18670 dynamic_linker=no
18671 ;;
18672
18673 # This must be Linux ELF.
18674 linux* | k*bsd*-gnu)
18675 version_type=linux
18676 need_lib_prefix=no
18677 need_version=no
18678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18679 soname_spec='${libname}${release}${shared_ext}$major'
18680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 shlibpath_overrides_runpath=no
18683 # This implies no fast_install, which is unacceptable.
18684 # Some rework will be needed to allow for fast_install
18685 # before this can be enabled.
18686 hardcode_into_libs=yes
18687
18688 # Append ld.so.conf contents to the search path
18689 if test -f /etc/ld.so.conf; then
18690 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18691 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18692 fi
18693
18694 # We used to test for /lib/ld.so.1 and disable shared libraries on
18695 # powerpc, because MkLinux only supported shared libraries with the
18696 # GNU dynamic linker. Since this was broken with cross compilers,
18697 # most powerpc-linux boxes support dynamic linking these days and
18698 # people can always --disable-shared, the test was removed, and we
18699 # assume the GNU/Linux dynamic linker is in use.
18700 dynamic_linker='GNU/Linux ld.so'
18701 ;;
18702
18703 netbsdelf*-gnu)
18704 version_type=linux
18705 need_lib_prefix=no
18706 need_version=no
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=no
18711 hardcode_into_libs=yes
18712 dynamic_linker='NetBSD ld.elf_so'
18713 ;;
18714
18715 netbsd*)
18716 version_type=sunos
18717 need_lib_prefix=no
18718 need_version=no
18719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722 dynamic_linker='NetBSD (a.out) ld.so'
18723 else
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 dynamic_linker='NetBSD ld.elf_so'
18727 fi
18728 shlibpath_var=LD_LIBRARY_PATH
18729 shlibpath_overrides_runpath=yes
18730 hardcode_into_libs=yes
18731 ;;
18732
18733 newsos6)
18734 version_type=linux
18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 shlibpath_var=LD_LIBRARY_PATH
18737 shlibpath_overrides_runpath=yes
18738 ;;
18739
18740 nto-qnx*)
18741 version_type=linux
18742 need_lib_prefix=no
18743 need_version=no
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath=yes
18748 ;;
18749
18750 openbsd*)
18751 version_type=sunos
18752 sys_lib_dlsearch_path_spec="/usr/lib"
18753 need_lib_prefix=no
18754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18755 case $host_os in
18756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18757 *) need_version=no ;;
18758 esac
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18763 case $host_os in
18764 openbsd2.[89] | openbsd2.[89].*)
18765 shlibpath_overrides_runpath=no
18766 ;;
18767 *)
18768 shlibpath_overrides_runpath=yes
18769 ;;
18770 esac
18771 else
18772 shlibpath_overrides_runpath=yes
18773 fi
18774 ;;
18775
18776 os2*)
18777 libname_spec='$name'
18778 shrext_cmds=".dll"
18779 need_lib_prefix=no
18780 library_names_spec='$libname${shared_ext} $libname.a'
18781 dynamic_linker='OS/2 ld.exe'
18782 shlibpath_var=LIBPATH
18783 ;;
18784
18785 osf3* | osf4* | osf5*)
18786 version_type=osf
18787 need_lib_prefix=no
18788 need_version=no
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18794 ;;
18795
18796 rdos*)
18797 dynamic_linker=no
18798 ;;
18799
18800 solaris*)
18801 version_type=linux
18802 need_lib_prefix=no
18803 need_version=no
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805 soname_spec='${libname}${release}${shared_ext}$major'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=yes
18808 hardcode_into_libs=yes
18809 # ldd complains unless libraries are executable
18810 postinstall_cmds='chmod +x $lib'
18811 ;;
18812
18813 sunos4*)
18814 version_type=sunos
18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18817 shlibpath_var=LD_LIBRARY_PATH
18818 shlibpath_overrides_runpath=yes
18819 if test "$with_gnu_ld" = yes; then
18820 need_lib_prefix=no
18821 fi
18822 need_version=yes
18823 ;;
18824
18825 sysv4 | sysv4.3*)
18826 version_type=linux
18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18828 soname_spec='${libname}${release}${shared_ext}$major'
18829 shlibpath_var=LD_LIBRARY_PATH
18830 case $host_vendor in
18831 sni)
18832 shlibpath_overrides_runpath=no
18833 need_lib_prefix=no
18834 export_dynamic_flag_spec='${wl}-Blargedynsym'
18835 runpath_var=LD_RUN_PATH
18836 ;;
18837 siemens)
18838 need_lib_prefix=no
18839 ;;
18840 motorola)
18841 need_lib_prefix=no
18842 need_version=no
18843 shlibpath_overrides_runpath=no
18844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18845 ;;
18846 esac
18847 ;;
18848
18849 sysv4*MP*)
18850 if test -d /usr/nec ;then
18851 version_type=linux
18852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853 soname_spec='$libname${shared_ext}.$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 fi
18856 ;;
18857
18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18859 version_type=freebsd-elf
18860 need_lib_prefix=no
18861 need_version=no
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 hardcode_into_libs=yes
18866 if test "$with_gnu_ld" = yes; then
18867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18868 shlibpath_overrides_runpath=no
18869 else
18870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18871 shlibpath_overrides_runpath=yes
18872 case $host_os in
18873 sco3.2v5*)
18874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18875 ;;
18876 esac
18877 fi
18878 sys_lib_dlsearch_path_spec='/usr/lib'
18879 ;;
18880
18881 uts4*)
18882 version_type=linux
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 shlibpath_var=LD_LIBRARY_PATH
18886 ;;
18887
18888 *)
18889 dynamic_linker=no
18890 ;;
18891 esac
18892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18893 echo "${ECHO_T}$dynamic_linker" >&6; }
18894 test "$dynamic_linker" = no && can_build_shared=no
18895
18896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18897 if test "$GCC" = yes; then
18898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18899 fi
18900
18901 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18902 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18903 hardcode_action_GCJ=
18904 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18905 test -n "$runpath_var_GCJ" || \
18906 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18907
18908 # We can hardcode non-existant directories.
18909 if test "$hardcode_direct_GCJ" != no &&
18910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18911 # have to relink, otherwise we might link with an installed library
18912 # when we should be linking with a yet-to-be-installed one
18913 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18914 test "$hardcode_minus_L_GCJ" != no; then
18915 # Linking always hardcodes the temporary library directory.
18916 hardcode_action_GCJ=relink
18917 else
18918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18919 hardcode_action_GCJ=immediate
18920 fi
18921 else
18922 # We cannot hardcode anything, or else we can only hardcode existing
18923 # directories.
18924 hardcode_action_GCJ=unsupported
18925 fi
18926 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18927 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18928
18929 if test "$hardcode_action_GCJ" = relink; then
18930 # Fast installation is not supported
18931 enable_fast_install=no
18932 elif test "$shlibpath_overrides_runpath" = yes ||
18933 test "$enable_shared" = no; then
18934 # Fast installation is not necessary
18935 enable_fast_install=needless
18936 fi
18937
18938
18939 # The else clause should only fire when bootstrapping the
18940 # libtool distribution, otherwise you forgot to ship ltmain.sh
18941 # with your package, and you will get complaints that there are
18942 # no rules to generate ltmain.sh.
18943 if test -f "$ltmain"; then
18944 # See if we are running on zsh, and set the options which allow our commands through
18945 # without removal of \ escapes.
18946 if test -n "${ZSH_VERSION+set}" ; then
18947 setopt NO_GLOB_SUBST
18948 fi
18949 # Now quote all the things that may contain metacharacters while being
18950 # careful not to overquote the AC_SUBSTed values. We take copies of the
18951 # variables and quote the copies for generation of the libtool script.
18952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18953 SED SHELL STRIP \
18954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18956 deplibs_check_method reload_flag reload_cmds need_locks \
18957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18958 lt_cv_sys_global_symbol_to_c_name_address \
18959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18960 old_postinstall_cmds old_postuninstall_cmds \
18961 compiler_GCJ \
18962 CC_GCJ \
18963 LD_GCJ \
18964 lt_prog_compiler_wl_GCJ \
18965 lt_prog_compiler_pic_GCJ \
18966 lt_prog_compiler_static_GCJ \
18967 lt_prog_compiler_no_builtin_flag_GCJ \
18968 export_dynamic_flag_spec_GCJ \
18969 thread_safe_flag_spec_GCJ \
18970 whole_archive_flag_spec_GCJ \
18971 enable_shared_with_static_runtimes_GCJ \
18972 old_archive_cmds_GCJ \
18973 old_archive_from_new_cmds_GCJ \
18974 predep_objects_GCJ \
18975 postdep_objects_GCJ \
18976 predeps_GCJ \
18977 postdeps_GCJ \
18978 compiler_lib_search_path_GCJ \
18979 archive_cmds_GCJ \
18980 archive_expsym_cmds_GCJ \
18981 postinstall_cmds_GCJ \
18982 postuninstall_cmds_GCJ \
18983 old_archive_from_expsyms_cmds_GCJ \
18984 allow_undefined_flag_GCJ \
18985 no_undefined_flag_GCJ \
18986 export_symbols_cmds_GCJ \
18987 hardcode_libdir_flag_spec_GCJ \
18988 hardcode_libdir_flag_spec_ld_GCJ \
18989 hardcode_libdir_separator_GCJ \
18990 hardcode_automatic_GCJ \
18991 module_cmds_GCJ \
18992 module_expsym_cmds_GCJ \
18993 lt_cv_prog_compiler_c_o_GCJ \
18994 fix_srcfile_path_GCJ \
18995 exclude_expsyms_GCJ \
18996 include_expsyms_GCJ; do
18997
18998 case $var in
18999 old_archive_cmds_GCJ | \
19000 old_archive_from_new_cmds_GCJ | \
19001 archive_cmds_GCJ | \
19002 archive_expsym_cmds_GCJ | \
19003 module_cmds_GCJ | \
19004 module_expsym_cmds_GCJ | \
19005 old_archive_from_expsyms_cmds_GCJ | \
19006 export_symbols_cmds_GCJ | \
19007 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008 postinstall_cmds | postuninstall_cmds | \
19009 old_postinstall_cmds | old_postuninstall_cmds | \
19010 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19011 # Double-quote double-evaled strings.
19012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19013 ;;
19014 *)
19015 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19016 ;;
19017 esac
19018 done
19019
19020 case $lt_echo in
19021 *'\$0 --fallback-echo"')
19022 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19023 ;;
19024 esac
19025
19026 cfgfile="$ofile"
19027
19028 cat <<__EOF__ >> "$cfgfile"
19029 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19030
19031 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19032
19033 # Shell to use when invoking shell scripts.
19034 SHELL=$lt_SHELL
19035
19036 # Whether or not to build shared libraries.
19037 build_libtool_libs=$enable_shared
19038
19039 # Whether or not to build static libraries.
19040 build_old_libs=$enable_static
19041
19042 # Whether or not to add -lc for building shared libraries.
19043 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19044
19045 # Whether or not to disallow shared libs when runtime libs are static
19046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19047
19048 # Whether or not to optimize for fast installation.
19049 fast_install=$enable_fast_install
19050
19051 # The host system.
19052 host_alias=$host_alias
19053 host=$host
19054 host_os=$host_os
19055
19056 # The build system.
19057 build_alias=$build_alias
19058 build=$build
19059 build_os=$build_os
19060
19061 # An echo program that does not interpret backslashes.
19062 echo=$lt_echo
19063
19064 # The archiver.
19065 AR=$lt_AR
19066 AR_FLAGS=$lt_AR_FLAGS
19067
19068 # A C compiler.
19069 LTCC=$lt_LTCC
19070
19071 # LTCC compiler flags.
19072 LTCFLAGS=$lt_LTCFLAGS
19073
19074 # A language-specific compiler.
19075 CC=$lt_compiler_GCJ
19076
19077 # Is the compiler the GNU C compiler?
19078 with_gcc=$GCC_GCJ
19079
19080 # An ERE matcher.
19081 EGREP=$lt_EGREP
19082
19083 # The linker used to build libraries.
19084 LD=$lt_LD_GCJ
19085
19086 # Whether we need hard or soft links.
19087 LN_S=$lt_LN_S
19088
19089 # A BSD-compatible nm program.
19090 NM=$lt_NM
19091
19092 # A symbol stripping program
19093 STRIP=$lt_STRIP
19094
19095 # Used to examine libraries when file_magic_cmd begins "file"
19096 MAGIC_CMD=$MAGIC_CMD
19097
19098 # Used on cygwin: DLL creation program.
19099 DLLTOOL="$DLLTOOL"
19100
19101 # Used on cygwin: object dumper.
19102 OBJDUMP="$OBJDUMP"
19103
19104 # Used on cygwin: assembler.
19105 AS="$AS"
19106
19107 # The name of the directory that contains temporary libtool files.
19108 objdir=$objdir
19109
19110 # How to create reloadable object files.
19111 reload_flag=$lt_reload_flag
19112 reload_cmds=$lt_reload_cmds
19113
19114 # How to pass a linker flag through the compiler.
19115 wl=$lt_lt_prog_compiler_wl_GCJ
19116
19117 # Object file suffix (normally "o").
19118 objext="$ac_objext"
19119
19120 # Old archive suffix (normally "a").
19121 libext="$libext"
19122
19123 # Shared library suffix (normally ".so").
19124 shrext_cmds='$shrext_cmds'
19125
19126 # Executable file suffix (normally "").
19127 exeext="$exeext"
19128
19129 # Additional compiler flags for building library objects.
19130 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131 pic_mode=$pic_mode
19132
19133 # What is the maximum length of a command?
19134 max_cmd_len=$lt_cv_sys_max_cmd_len
19135
19136 # Does compiler simultaneously support -c and -o options?
19137 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19138
19139 # Must we lock files when doing compilation?
19140 need_locks=$lt_need_locks
19141
19142 # Do we need the lib prefix for modules?
19143 need_lib_prefix=$need_lib_prefix
19144
19145 # Do we need a version for libraries?
19146 need_version=$need_version
19147
19148 # Whether dlopen is supported.
19149 dlopen_support=$enable_dlopen
19150
19151 # Whether dlopen of programs is supported.
19152 dlopen_self=$enable_dlopen_self
19153
19154 # Whether dlopen of statically linked programs is supported.
19155 dlopen_self_static=$enable_dlopen_self_static
19156
19157 # Compiler flag to prevent dynamic linking.
19158 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19159
19160 # Compiler flag to turn off builtin functions.
19161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19162
19163 # Compiler flag to allow reflexive dlopens.
19164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19165
19166 # Compiler flag to generate shared objects directly from archives.
19167 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19168
19169 # Compiler flag to generate thread-safe objects.
19170 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19171
19172 # Library versioning type.
19173 version_type=$version_type
19174
19175 # Format of library name prefix.
19176 libname_spec=$lt_libname_spec
19177
19178 # List of archive names. First name is the real one, the rest are links.
19179 # The last name is the one that the linker finds with -lNAME.
19180 library_names_spec=$lt_library_names_spec
19181
19182 # The coded name of the library, if different from the real name.
19183 soname_spec=$lt_soname_spec
19184
19185 # Commands used to build and install an old-style archive.
19186 RANLIB=$lt_RANLIB
19187 old_archive_cmds=$lt_old_archive_cmds_GCJ
19188 old_postinstall_cmds=$lt_old_postinstall_cmds
19189 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190
19191 # Create an old-style archive from a shared archive.
19192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19193
19194 # Create a temporary old-style archive to link instead of a shared archive.
19195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19196
19197 # Commands used to build and install a shared archive.
19198 archive_cmds=$lt_archive_cmds_GCJ
19199 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200 postinstall_cmds=$lt_postinstall_cmds
19201 postuninstall_cmds=$lt_postuninstall_cmds
19202
19203 # Commands used to build a loadable module (assumed same as above if empty)
19204 module_cmds=$lt_module_cmds_GCJ
19205 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19206
19207 # Commands to strip libraries.
19208 old_striplib=$lt_old_striplib
19209 striplib=$lt_striplib
19210
19211 # Dependencies to place before the objects being linked to create a
19212 # shared library.
19213 predep_objects=$lt_predep_objects_GCJ
19214
19215 # Dependencies to place after the objects being linked to create a
19216 # shared library.
19217 postdep_objects=$lt_postdep_objects_GCJ
19218
19219 # Dependencies to place before the objects being linked to create a
19220 # shared library.
19221 predeps=$lt_predeps_GCJ
19222
19223 # Dependencies to place after the objects being linked to create a
19224 # shared library.
19225 postdeps=$lt_postdeps_GCJ
19226
19227 # The library search path used internally by the compiler when linking
19228 # a shared library.
19229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19230
19231 # Method to check whether dependent libraries are shared objects.
19232 deplibs_check_method=$lt_deplibs_check_method
19233
19234 # Command to use when deplibs_check_method == file_magic.
19235 file_magic_cmd=$lt_file_magic_cmd
19236
19237 # Flag that allows shared libraries with undefined symbols to be built.
19238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19239
19240 # Flag that forces no undefined symbols.
19241 no_undefined_flag=$lt_no_undefined_flag_GCJ
19242
19243 # Commands used to finish a libtool library installation in a directory.
19244 finish_cmds=$lt_finish_cmds
19245
19246 # Same as above, but a single script fragment to be evaled but not shown.
19247 finish_eval=$lt_finish_eval
19248
19249 # Take the output of nm and produce a listing of raw symbols and C names.
19250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19251
19252 # Transform the output of nm in a proper C declaration
19253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19254
19255 # Transform the output of nm in a C name address pair
19256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19257
19258 # This is the shared library runtime path variable.
19259 runpath_var=$runpath_var
19260
19261 # This is the shared library path variable.
19262 shlibpath_var=$shlibpath_var
19263
19264 # Is shlibpath searched before the hard-coded library search path?
19265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19266
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action_GCJ
19269
19270 # Whether we should hardcode library paths into libraries.
19271 hardcode_into_libs=$hardcode_into_libs
19272
19273 # Flag to hardcode \$libdir into a binary during linking.
19274 # This must work even if \$libdir does not exist.
19275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19276
19277 # If ld is used when linking, flag to hardcode \$libdir into
19278 # a binary during linking. This must work even if \$libdir does
19279 # not exist.
19280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19281
19282 # Whether we need a single -rpath flag with a separated argument.
19283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19284
19285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_direct=$hardcode_direct_GCJ
19288
19289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19290 # resulting binary.
19291 hardcode_minus_L=$hardcode_minus_L_GCJ
19292
19293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19294 # the resulting binary.
19295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19296
19297 # Set to yes if building a shared library automatically hardcodes DIR into the library
19298 # and all subsequent libraries and executables linked against it.
19299 hardcode_automatic=$hardcode_automatic_GCJ
19300
19301 # Variables whose values should be saved in libtool wrapper scripts and
19302 # restored at relink time.
19303 variables_saved_for_relink="$variables_saved_for_relink"
19304
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs_GCJ
19307
19308 # Compile-time system search path for libraries
19309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19310
19311 # Run-time system search path for libraries
19312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19313
19314 # Fix the shell variable \$srcfile for the compiler.
19315 fix_srcfile_path=$lt_fix_srcfile_path
19316
19317 # Set to yes if exported symbols are required.
19318 always_export_symbols=$always_export_symbols_GCJ
19319
19320 # The commands to list exported symbols.
19321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19322
19323 # The commands to extract the exported symbol list from a shared archive.
19324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19325
19326 # Symbols that should not be listed in the preloaded symbols.
19327 exclude_expsyms=$lt_exclude_expsyms_GCJ
19328
19329 # Symbols that must always be exported.
19330 include_expsyms=$lt_include_expsyms_GCJ
19331
19332 # ### END LIBTOOL TAG CONFIG: $tagname
19333
19334 __EOF__
19335
19336
19337 else
19338 # If there is no Makefile yet, we rely on a make rule to execute
19339 # `config.status --recheck' to rerun these tests and create the
19340 # libtool script then.
19341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19342 if test -f "$ltmain_in"; then
19343 test -f Makefile && make "$ltmain"
19344 fi
19345 fi
19346
19347
19348 ac_ext=c
19349 ac_cpp='$CPP $CPPFLAGS'
19350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353
19354 CC="$lt_save_CC"
19355
19356 else
19357 tagname=""
19358 fi
19359 ;;
19360
19361 RC)
19362
19363
19364 # Source file extension for RC test sources.
19365 ac_ext=rc
19366
19367 # Object file extension for compiled RC test sources.
19368 objext=o
19369 objext_RC=$objext
19370
19371 # Code to be used in simple compile tests
19372 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19373
19374 # Code to be used in simple link tests
19375 lt_simple_link_test_code="$lt_simple_compile_test_code"
19376
19377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19378
19379 # If no C compiler was specified, use CC.
19380 LTCC=${LTCC-"$CC"}
19381
19382 # If no C compiler flags were specified, use CFLAGS.
19383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19384
19385 # Allow CC to be a program name with arguments.
19386 compiler=$CC
19387
19388
19389 # save warnings/boilerplate of simple test code
19390 ac_outfile=conftest.$ac_objext
19391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19393 _lt_compiler_boilerplate=`cat conftest.err`
19394 $rm conftest*
19395
19396 ac_outfile=conftest.$ac_objext
19397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19399 _lt_linker_boilerplate=`cat conftest.err`
19400 $rm conftest*
19401
19402
19403 # Allow CC to be a program name with arguments.
19404 lt_save_CC="$CC"
19405 CC=${RC-"windres"}
19406 compiler=$CC
19407 compiler_RC=$CC
19408 for cc_temp in $compiler""; do
19409 case $cc_temp in
19410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19412 \-*) ;;
19413 *) break;;
19414 esac
19415 done
19416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19417
19418 lt_cv_prog_compiler_c_o_RC=yes
19419
19420 # The else clause should only fire when bootstrapping the
19421 # libtool distribution, otherwise you forgot to ship ltmain.sh
19422 # with your package, and you will get complaints that there are
19423 # no rules to generate ltmain.sh.
19424 if test -f "$ltmain"; then
19425 # See if we are running on zsh, and set the options which allow our commands through
19426 # without removal of \ escapes.
19427 if test -n "${ZSH_VERSION+set}" ; then
19428 setopt NO_GLOB_SUBST
19429 fi
19430 # Now quote all the things that may contain metacharacters while being
19431 # careful not to overquote the AC_SUBSTed values. We take copies of the
19432 # variables and quote the copies for generation of the libtool script.
19433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19434 SED SHELL STRIP \
19435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19437 deplibs_check_method reload_flag reload_cmds need_locks \
19438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19439 lt_cv_sys_global_symbol_to_c_name_address \
19440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19441 old_postinstall_cmds old_postuninstall_cmds \
19442 compiler_RC \
19443 CC_RC \
19444 LD_RC \
19445 lt_prog_compiler_wl_RC \
19446 lt_prog_compiler_pic_RC \
19447 lt_prog_compiler_static_RC \
19448 lt_prog_compiler_no_builtin_flag_RC \
19449 export_dynamic_flag_spec_RC \
19450 thread_safe_flag_spec_RC \
19451 whole_archive_flag_spec_RC \
19452 enable_shared_with_static_runtimes_RC \
19453 old_archive_cmds_RC \
19454 old_archive_from_new_cmds_RC \
19455 predep_objects_RC \
19456 postdep_objects_RC \
19457 predeps_RC \
19458 postdeps_RC \
19459 compiler_lib_search_path_RC \
19460 archive_cmds_RC \
19461 archive_expsym_cmds_RC \
19462 postinstall_cmds_RC \
19463 postuninstall_cmds_RC \
19464 old_archive_from_expsyms_cmds_RC \
19465 allow_undefined_flag_RC \
19466 no_undefined_flag_RC \
19467 export_symbols_cmds_RC \
19468 hardcode_libdir_flag_spec_RC \
19469 hardcode_libdir_flag_spec_ld_RC \
19470 hardcode_libdir_separator_RC \
19471 hardcode_automatic_RC \
19472 module_cmds_RC \
19473 module_expsym_cmds_RC \
19474 lt_cv_prog_compiler_c_o_RC \
19475 fix_srcfile_path_RC \
19476 exclude_expsyms_RC \
19477 include_expsyms_RC; do
19478
19479 case $var in
19480 old_archive_cmds_RC | \
19481 old_archive_from_new_cmds_RC | \
19482 archive_cmds_RC | \
19483 archive_expsym_cmds_RC | \
19484 module_cmds_RC | \
19485 module_expsym_cmds_RC | \
19486 old_archive_from_expsyms_cmds_RC | \
19487 export_symbols_cmds_RC | \
19488 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19489 postinstall_cmds | postuninstall_cmds | \
19490 old_postinstall_cmds | old_postuninstall_cmds | \
19491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19492 # Double-quote double-evaled strings.
19493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19494 ;;
19495 *)
19496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19497 ;;
19498 esac
19499 done
19500
19501 case $lt_echo in
19502 *'\$0 --fallback-echo"')
19503 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19504 ;;
19505 esac
19506
19507 cfgfile="$ofile"
19508
19509 cat <<__EOF__ >> "$cfgfile"
19510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19511
19512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19513
19514 # Shell to use when invoking shell scripts.
19515 SHELL=$lt_SHELL
19516
19517 # Whether or not to build shared libraries.
19518 build_libtool_libs=$enable_shared
19519
19520 # Whether or not to build static libraries.
19521 build_old_libs=$enable_static
19522
19523 # Whether or not to add -lc for building shared libraries.
19524 build_libtool_need_lc=$archive_cmds_need_lc_RC
19525
19526 # Whether or not to disallow shared libs when runtime libs are static
19527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19528
19529 # Whether or not to optimize for fast installation.
19530 fast_install=$enable_fast_install
19531
19532 # The host system.
19533 host_alias=$host_alias
19534 host=$host
19535 host_os=$host_os
19536
19537 # The build system.
19538 build_alias=$build_alias
19539 build=$build
19540 build_os=$build_os
19541
19542 # An echo program that does not interpret backslashes.
19543 echo=$lt_echo
19544
19545 # The archiver.
19546 AR=$lt_AR
19547 AR_FLAGS=$lt_AR_FLAGS
19548
19549 # A C compiler.
19550 LTCC=$lt_LTCC
19551
19552 # LTCC compiler flags.
19553 LTCFLAGS=$lt_LTCFLAGS
19554
19555 # A language-specific compiler.
19556 CC=$lt_compiler_RC
19557
19558 # Is the compiler the GNU C compiler?
19559 with_gcc=$GCC_RC
19560
19561 # An ERE matcher.
19562 EGREP=$lt_EGREP
19563
19564 # The linker used to build libraries.
19565 LD=$lt_LD_RC
19566
19567 # Whether we need hard or soft links.
19568 LN_S=$lt_LN_S
19569
19570 # A BSD-compatible nm program.
19571 NM=$lt_NM
19572
19573 # A symbol stripping program
19574 STRIP=$lt_STRIP
19575
19576 # Used to examine libraries when file_magic_cmd begins "file"
19577 MAGIC_CMD=$MAGIC_CMD
19578
19579 # Used on cygwin: DLL creation program.
19580 DLLTOOL="$DLLTOOL"
19581
19582 # Used on cygwin: object dumper.
19583 OBJDUMP="$OBJDUMP"
19584
19585 # Used on cygwin: assembler.
19586 AS="$AS"
19587
19588 # The name of the directory that contains temporary libtool files.
19589 objdir=$objdir
19590
19591 # How to create reloadable object files.
19592 reload_flag=$lt_reload_flag
19593 reload_cmds=$lt_reload_cmds
19594
19595 # How to pass a linker flag through the compiler.
19596 wl=$lt_lt_prog_compiler_wl_RC
19597
19598 # Object file suffix (normally "o").
19599 objext="$ac_objext"
19600
19601 # Old archive suffix (normally "a").
19602 libext="$libext"
19603
19604 # Shared library suffix (normally ".so").
19605 shrext_cmds='$shrext_cmds'
19606
19607 # Executable file suffix (normally "").
19608 exeext="$exeext"
19609
19610 # Additional compiler flags for building library objects.
19611 pic_flag=$lt_lt_prog_compiler_pic_RC
19612 pic_mode=$pic_mode
19613
19614 # What is the maximum length of a command?
19615 max_cmd_len=$lt_cv_sys_max_cmd_len
19616
19617 # Does compiler simultaneously support -c and -o options?
19618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19619
19620 # Must we lock files when doing compilation?
19621 need_locks=$lt_need_locks
19622
19623 # Do we need the lib prefix for modules?
19624 need_lib_prefix=$need_lib_prefix
19625
19626 # Do we need a version for libraries?
19627 need_version=$need_version
19628
19629 # Whether dlopen is supported.
19630 dlopen_support=$enable_dlopen
19631
19632 # Whether dlopen of programs is supported.
19633 dlopen_self=$enable_dlopen_self
19634
19635 # Whether dlopen of statically linked programs is supported.
19636 dlopen_self_static=$enable_dlopen_self_static
19637
19638 # Compiler flag to prevent dynamic linking.
19639 link_static_flag=$lt_lt_prog_compiler_static_RC
19640
19641 # Compiler flag to turn off builtin functions.
19642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19643
19644 # Compiler flag to allow reflexive dlopens.
19645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19646
19647 # Compiler flag to generate shared objects directly from archives.
19648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19649
19650 # Compiler flag to generate thread-safe objects.
19651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19652
19653 # Library versioning type.
19654 version_type=$version_type
19655
19656 # Format of library name prefix.
19657 libname_spec=$lt_libname_spec
19658
19659 # List of archive names. First name is the real one, the rest are links.
19660 # The last name is the one that the linker finds with -lNAME.
19661 library_names_spec=$lt_library_names_spec
19662
19663 # The coded name of the library, if different from the real name.
19664 soname_spec=$lt_soname_spec
19665
19666 # Commands used to build and install an old-style archive.
19667 RANLIB=$lt_RANLIB
19668 old_archive_cmds=$lt_old_archive_cmds_RC
19669 old_postinstall_cmds=$lt_old_postinstall_cmds
19670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19671
19672 # Create an old-style archive from a shared archive.
19673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19674
19675 # Create a temporary old-style archive to link instead of a shared archive.
19676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19677
19678 # Commands used to build and install a shared archive.
19679 archive_cmds=$lt_archive_cmds_RC
19680 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19681 postinstall_cmds=$lt_postinstall_cmds
19682 postuninstall_cmds=$lt_postuninstall_cmds
19683
19684 # Commands used to build a loadable module (assumed same as above if empty)
19685 module_cmds=$lt_module_cmds_RC
19686 module_expsym_cmds=$lt_module_expsym_cmds_RC
19687
19688 # Commands to strip libraries.
19689 old_striplib=$lt_old_striplib
19690 striplib=$lt_striplib
19691
19692 # Dependencies to place before the objects being linked to create a
19693 # shared library.
19694 predep_objects=$lt_predep_objects_RC
19695
19696 # Dependencies to place after the objects being linked to create a
19697 # shared library.
19698 postdep_objects=$lt_postdep_objects_RC
19699
19700 # Dependencies to place before the objects being linked to create a
19701 # shared library.
19702 predeps=$lt_predeps_RC
19703
19704 # Dependencies to place after the objects being linked to create a
19705 # shared library.
19706 postdeps=$lt_postdeps_RC
19707
19708 # The library search path used internally by the compiler when linking
19709 # a shared library.
19710 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19711
19712 # Method to check whether dependent libraries are shared objects.
19713 deplibs_check_method=$lt_deplibs_check_method
19714
19715 # Command to use when deplibs_check_method == file_magic.
19716 file_magic_cmd=$lt_file_magic_cmd
19717
19718 # Flag that allows shared libraries with undefined symbols to be built.
19719 allow_undefined_flag=$lt_allow_undefined_flag_RC
19720
19721 # Flag that forces no undefined symbols.
19722 no_undefined_flag=$lt_no_undefined_flag_RC
19723
19724 # Commands used to finish a libtool library installation in a directory.
19725 finish_cmds=$lt_finish_cmds
19726
19727 # Same as above, but a single script fragment to be evaled but not shown.
19728 finish_eval=$lt_finish_eval
19729
19730 # Take the output of nm and produce a listing of raw symbols and C names.
19731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19732
19733 # Transform the output of nm in a proper C declaration
19734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19735
19736 # Transform the output of nm in a C name address pair
19737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19738
19739 # This is the shared library runtime path variable.
19740 runpath_var=$runpath_var
19741
19742 # This is the shared library path variable.
19743 shlibpath_var=$shlibpath_var
19744
19745 # Is shlibpath searched before the hard-coded library search path?
19746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19747
19748 # How to hardcode a shared library path into an executable.
19749 hardcode_action=$hardcode_action_RC
19750
19751 # Whether we should hardcode library paths into libraries.
19752 hardcode_into_libs=$hardcode_into_libs
19753
19754 # Flag to hardcode \$libdir into a binary during linking.
19755 # This must work even if \$libdir does not exist.
19756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19757
19758 # If ld is used when linking, flag to hardcode \$libdir into
19759 # a binary during linking. This must work even if \$libdir does
19760 # not exist.
19761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19762
19763 # Whether we need a single -rpath flag with a separated argument.
19764 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19765
19766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19767 # resulting binary.
19768 hardcode_direct=$hardcode_direct_RC
19769
19770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19771 # resulting binary.
19772 hardcode_minus_L=$hardcode_minus_L_RC
19773
19774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19775 # the resulting binary.
19776 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19777
19778 # Set to yes if building a shared library automatically hardcodes DIR into the library
19779 # and all subsequent libraries and executables linked against it.
19780 hardcode_automatic=$hardcode_automatic_RC
19781
19782 # Variables whose values should be saved in libtool wrapper scripts and
19783 # restored at relink time.
19784 variables_saved_for_relink="$variables_saved_for_relink"
19785
19786 # Whether libtool must link a program against all its dependency libraries.
19787 link_all_deplibs=$link_all_deplibs_RC
19788
19789 # Compile-time system search path for libraries
19790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19791
19792 # Run-time system search path for libraries
19793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19794
19795 # Fix the shell variable \$srcfile for the compiler.
19796 fix_srcfile_path=$lt_fix_srcfile_path
19797
19798 # Set to yes if exported symbols are required.
19799 always_export_symbols=$always_export_symbols_RC
19800
19801 # The commands to list exported symbols.
19802 export_symbols_cmds=$lt_export_symbols_cmds_RC
19803
19804 # The commands to extract the exported symbol list from a shared archive.
19805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19806
19807 # Symbols that should not be listed in the preloaded symbols.
19808 exclude_expsyms=$lt_exclude_expsyms_RC
19809
19810 # Symbols that must always be exported.
19811 include_expsyms=$lt_include_expsyms_RC
19812
19813 # ### END LIBTOOL TAG CONFIG: $tagname
19814
19815 __EOF__
19816
19817
19818 else
19819 # If there is no Makefile yet, we rely on a make rule to execute
19820 # `config.status --recheck' to rerun these tests and create the
19821 # libtool script then.
19822 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19823 if test -f "$ltmain_in"; then
19824 test -f Makefile && make "$ltmain"
19825 fi
19826 fi
19827
19828
19829 ac_ext=c
19830 ac_cpp='$CPP $CPPFLAGS'
19831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19834
19835 CC="$lt_save_CC"
19836
19837 ;;
19838
19839 *)
19840 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19841 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19842 { (exit 1); exit 1; }; }
19843 ;;
19844 esac
19845
19846 # Append the new tag name to the list of available tags.
19847 if test -n "$tagname" ; then
19848 available_tags="$available_tags $tagname"
19849 fi
19850 fi
19851 done
19852 IFS="$lt_save_ifs"
19853
19854 # Now substitute the updated list of available tags.
19855 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19856 mv "${ofile}T" "$ofile"
19857 chmod +x "$ofile"
19858 else
19859 rm -f "${ofile}T"
19860 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19861 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19862 { (exit 1); exit 1; }; }
19863 fi
19864 fi
19865
19866
19867
19868 # This can be used to rebuild libtool when needed
19869 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19870
19871 # Always use our own libtool.
19872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19873
19874 # Prevent multiple expansion
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902 ac_header_dirent=no
19903 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19904 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19905 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19906 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910 cat >conftest.$ac_ext <<_ACEOF
19911 /* confdefs.h. */
19912 _ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19916 #include <sys/types.h>
19917 #include <$ac_hdr>
19918
19919 int
19920 main ()
19921 {
19922 if ((DIR *) 0)
19923 return 0;
19924 ;
19925 return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 eval "$as_ac_Header=yes"
19946 else
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19949
19950 eval "$as_ac_Header=no"
19951 fi
19952
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 fi
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19961 _ACEOF
19962
19963 ac_header_dirent=$ac_hdr; break
19964 fi
19965
19966 done
19967 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19968 if test $ac_header_dirent = dirent.h; then
19969 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19971 if test "${ac_cv_search_opendir+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 else
19974 ac_func_search_save_LIBS=$LIBS
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h. */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981
19982 /* Override any GCC internal prototype to avoid an error.
19983 Use char because int might match the return type of a GCC
19984 builtin and then its argument prototype would still apply. */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 char opendir ();
19989 int
19990 main ()
19991 {
19992 return opendir ();
19993 ;
19994 return 0;
19995 }
19996 _ACEOF
19997 for ac_lib in '' dir; do
19998 if test -z "$ac_lib"; then
19999 ac_res="none required"
20000 else
20001 ac_res=-l$ac_lib
20002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20003 fi
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (ac_try="$ac_link"
20006 case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_link") 2>conftest.er1
20012 ac_status=$?
20013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } && {
20018 test -z "$ac_c_werror_flag" ||
20019 test ! -s conftest.err
20020 } && test -s conftest$ac_exeext &&
20021 $as_test_x conftest$ac_exeext; then
20022 ac_cv_search_opendir=$ac_res
20023 else
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027
20028 fi
20029
20030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20031 conftest$ac_exeext
20032 if test "${ac_cv_search_opendir+set}" = set; then
20033 break
20034 fi
20035 done
20036 if test "${ac_cv_search_opendir+set}" = set; then
20037 :
20038 else
20039 ac_cv_search_opendir=no
20040 fi
20041 rm conftest.$ac_ext
20042 LIBS=$ac_func_search_save_LIBS
20043 fi
20044 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20045 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20046 ac_res=$ac_cv_search_opendir
20047 if test "$ac_res" != no; then
20048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20049
20050 fi
20051
20052 else
20053 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20055 if test "${ac_cv_search_opendir+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 ac_func_search_save_LIBS=$LIBS
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065
20066 /* Override any GCC internal prototype to avoid an error.
20067 Use char because int might match the return type of a GCC
20068 builtin and then its argument prototype would still apply. */
20069 #ifdef __cplusplus
20070 extern "C"
20071 #endif
20072 char opendir ();
20073 int
20074 main ()
20075 {
20076 return opendir ();
20077 ;
20078 return 0;
20079 }
20080 _ACEOF
20081 for ac_lib in '' x; do
20082 if test -z "$ac_lib"; then
20083 ac_res="none required"
20084 else
20085 ac_res=-l$ac_lib
20086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20087 fi
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && {
20102 test -z "$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20104 } && test -s conftest$ac_exeext &&
20105 $as_test_x conftest$ac_exeext; then
20106 ac_cv_search_opendir=$ac_res
20107 else
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111
20112 fi
20113
20114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20115 conftest$ac_exeext
20116 if test "${ac_cv_search_opendir+set}" = set; then
20117 break
20118 fi
20119 done
20120 if test "${ac_cv_search_opendir+set}" = set; then
20121 :
20122 else
20123 ac_cv_search_opendir=no
20124 fi
20125 rm conftest.$ac_ext
20126 LIBS=$ac_func_search_save_LIBS
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20129 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20130 ac_res=$ac_cv_search_opendir
20131 if test "$ac_res" != no; then
20132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20133
20134 fi
20135
20136 fi
20137
20138 # Check whether --enable-ltdl-install was given.
20139 if test "${enable_ltdl_install+set}" = set; then
20140 enableval=$enable_ltdl_install;
20141 fi
20142
20143
20144 if test x"${enable_ltdl_install-no}" != xno; then
20145 INSTALL_LTDL_TRUE=
20146 INSTALL_LTDL_FALSE='#'
20147 else
20148 INSTALL_LTDL_TRUE='#'
20149 INSTALL_LTDL_FALSE=
20150 fi
20151
20152 if test x"${enable_ltdl_convenience-no}" != xno; then
20153 CONVENIENCE_LTDL_TRUE=
20154 CONVENIENCE_LTDL_FALSE='#'
20155 else
20156 CONVENIENCE_LTDL_TRUE='#'
20157 CONVENIENCE_LTDL_FALSE=
20158 fi
20159
20160
20161
20162 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20163 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20164 if test "${libltdl_cv_shlibext+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167
20168 module=yes
20169 eval libltdl_cv_shlibext=$shrext_cmds
20170
20171 fi
20172 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20173 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20174 if test -n "$libltdl_cv_shlibext"; then
20175
20176 cat >>confdefs.h <<_ACEOF
20177 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20178 _ACEOF
20179
20180 fi
20181
20182
20183 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20184 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20185 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188 libltdl_cv_shlibpath_var="$shlibpath_var"
20189 fi
20190 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20191 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20192 if test -n "$libltdl_cv_shlibpath_var"; then
20193
20194 cat >>confdefs.h <<_ACEOF
20195 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20196 _ACEOF
20197
20198 fi
20199
20200
20201 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20202 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20203 if test "${libltdl_cv_sys_search_path+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20207 fi
20208 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20209 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20210 if test -n "$libltdl_cv_sys_search_path"; then
20211 sys_search_path=
20212 for dir in $libltdl_cv_sys_search_path; do
20213 if test -z "$sys_search_path"; then
20214 sys_search_path="$dir"
20215 else
20216 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20217 fi
20218 done
20219
20220 cat >>confdefs.h <<_ACEOF
20221 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20222 _ACEOF
20223
20224 fi
20225
20226 { echo "$as_me:$LINENO: checking for objdir" >&5
20227 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20228 if test "${libltdl_cv_objdir+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231 libltdl_cv_objdir="$objdir"
20232 if test -n "$objdir"; then
20233 :
20234 else
20235 rm -f .libs 2>/dev/null
20236 mkdir .libs 2>/dev/null
20237 if test -d .libs; then
20238 libltdl_cv_objdir=.libs
20239 else
20240 # MS-DOS does not allow filenames that begin with a dot.
20241 libltdl_cv_objdir=_libs
20242 fi
20243 rmdir .libs 2>/dev/null
20244 fi
20245
20246 fi
20247 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20248 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20249
20250 cat >>confdefs.h <<_ACEOF
20251 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20252 _ACEOF
20253
20254
20255
20256 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20257 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20258 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20262 libltdl_cv_preloaded_symbols=yes
20263 else
20264 libltdl_cv_preloaded_symbols=no
20265 fi
20266
20267 fi
20268 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20269 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20270 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_PRELOADED_SYMBOLS 1
20274 _ACEOF
20275
20276 fi
20277
20278 LIBADD_DL=
20279
20280 ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286
20287 { echo "$as_me:$LINENO: checking for shl_load" >&5
20288 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20289 if test "${ac_cv_func_shl_load+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 else
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20300 #define shl_load innocuous_shl_load
20301
20302 /* System header to define __stub macros and hopefully few prototypes,
20303 which can conflict with char shl_load (); below.
20304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20305 <limits.h> exists even on freestanding compilers. */
20306
20307 #ifdef __STDC__
20308 # include <limits.h>
20309 #else
20310 # include <assert.h>
20311 #endif
20312
20313 #undef shl_load
20314
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char shl_load ();
20322 /* The GNU C library defines this for functions which it implements
20323 to always fail with ENOSYS. Some functions are actually named
20324 something starting with __ and the normal name is an alias. */
20325 #if defined __stub_shl_load || defined __stub___shl_load
20326 choke me
20327 #endif
20328
20329 int
20330 main ()
20331 {
20332 return shl_load ();
20333 ;
20334 return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_func_shl_load=yes
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 ac_cv_func_shl_load=no
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20365 fi
20366 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20367 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20368 if test $ac_cv_func_shl_load = yes; then
20369
20370 cat >>confdefs.h <<\_ACEOF
20371 #define HAVE_SHL_LOAD 1
20372 _ACEOF
20373
20374 else
20375 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20376 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20377 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380 ac_check_lib_save_LIBS=$LIBS
20381 LIBS="-ldld $LIBS"
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char shl_load ();
20396 int
20397 main ()
20398 {
20399 return shl_load ();
20400 ;
20401 return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest$ac_exeext &&
20421 $as_test_x conftest$ac_exeext; then
20422 ac_cv_lib_dld_shl_load=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_cv_lib_dld_shl_load=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20435 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20436 if test $ac_cv_lib_dld_shl_load = yes; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_SHL_LOAD 1
20440 _ACEOF
20441
20442 LIBADD_DL="$LIBADD_DL -ldld"
20443 else
20444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-ldl $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char dlopen ();
20465 int
20466 main ()
20467 {
20468 return dlopen ();
20469 ;
20470 return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } && {
20487 test -z "$ac_c_werror_flag" ||
20488 test ! -s conftest.err
20489 } && test -s conftest$ac_exeext &&
20490 $as_test_x conftest$ac_exeext; then
20491 ac_cv_lib_dl_dlopen=yes
20492 else
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ac_cv_lib_dl_dlopen=no
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20500 conftest$ac_exeext conftest.$ac_ext
20501 LIBS=$ac_check_lib_save_LIBS
20502 fi
20503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20505 if test $ac_cv_lib_dl_dlopen = yes; then
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_LIBDL 1
20509 _ACEOF
20510
20511 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20512 else
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #if HAVE_DLFCN_H
20520 # include <dlfcn.h>
20521 #endif
20522
20523 int
20524 main ()
20525 {
20526 dlopen(0, 0);
20527 ;
20528 return 0;
20529 }
20530 _ACEOF
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>conftest.er1
20539 ac_status=$?
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest$ac_exeext &&
20548 $as_test_x conftest$ac_exeext; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_LIBDL 1
20552 _ACEOF
20553 libltdl_cv_func_dlopen="yes"
20554 else
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20559 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20560 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 ac_check_lib_save_LIBS=$LIBS
20564 LIBS="-lsvld $LIBS"
20565 cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h. */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20575 #ifdef __cplusplus
20576 extern "C"
20577 #endif
20578 char dlopen ();
20579 int
20580 main ()
20581 {
20582 return dlopen ();
20583 ;
20584 return 0;
20585 }
20586 _ACEOF
20587 rm -f conftest.$ac_objext conftest$ac_exeext
20588 if { (ac_try="$ac_link"
20589 case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_link") 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest$ac_exeext &&
20604 $as_test_x conftest$ac_exeext; then
20605 ac_cv_lib_svld_dlopen=yes
20606 else
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 ac_cv_lib_svld_dlopen=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20614 conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20616 fi
20617 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20618 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20619 if test $ac_cv_lib_svld_dlopen = yes; then
20620
20621 cat >>confdefs.h <<\_ACEOF
20622 #define HAVE_LIBDL 1
20623 _ACEOF
20624
20625 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20626 else
20627 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20628 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-ldld $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char dld_link ();
20648 int
20649 main ()
20650 {
20651 return dld_link ();
20652 ;
20653 return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_dld_dld_link=yes
20675 else
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_cv_lib_dld_dld_link=no
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20688 if test $ac_cv_lib_dld_dld_link = yes; then
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_DLD 1
20692 _ACEOF
20693
20694 LIBADD_DL="$LIBADD_DL -ldld"
20695 else
20696 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20697 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20698 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20709 #define _dyld_func_lookup innocuous__dyld_func_lookup
20710
20711 /* System header to define __stub macros and hopefully few prototypes,
20712 which can conflict with char _dyld_func_lookup (); below.
20713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20714 <limits.h> exists even on freestanding compilers. */
20715
20716 #ifdef __STDC__
20717 # include <limits.h>
20718 #else
20719 # include <assert.h>
20720 #endif
20721
20722 #undef _dyld_func_lookup
20723
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 #endif
20730 char _dyld_func_lookup ();
20731 /* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20735 choke me
20736 #endif
20737
20738 int
20739 main ()
20740 {
20741 return _dyld_func_lookup ();
20742 ;
20743 return 0;
20744 }
20745 _ACEOF
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext &&
20763 $as_test_x conftest$ac_exeext; then
20764 ac_cv_func__dyld_func_lookup=yes
20765 else
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 ac_cv_func__dyld_func_lookup=no
20770 fi
20771
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20774 fi
20775 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20776 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20777 if test $ac_cv_func__dyld_func_lookup = yes; then
20778
20779 cat >>confdefs.h <<\_ACEOF
20780 #define HAVE_DYLD 1
20781 _ACEOF
20782
20783 fi
20784
20785
20786 fi
20787
20788
20789 fi
20790
20791
20792 fi
20793
20794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20795 conftest$ac_exeext conftest.$ac_ext
20796
20797 fi
20798
20799
20800 fi
20801
20802
20803 fi
20804
20805
20806 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20807 then
20808 lt_save_LIBS="$LIBS"
20809 LIBS="$LIBS $LIBADD_DL"
20810
20811 for ac_func in dlerror
20812 do
20813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20827 #define $ac_func innocuous_$ac_func
20828
20829 /* System header to define __stub macros and hopefully few prototypes,
20830 which can conflict with char $ac_func (); below.
20831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20832 <limits.h> exists even on freestanding compilers. */
20833
20834 #ifdef __STDC__
20835 # include <limits.h>
20836 #else
20837 # include <assert.h>
20838 #endif
20839
20840 #undef $ac_func
20841
20842 /* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20845 #ifdef __cplusplus
20846 extern "C"
20847 #endif
20848 char $ac_func ();
20849 /* The GNU C library defines this for functions which it implements
20850 to always fail with ENOSYS. Some functions are actually named
20851 something starting with __ and the normal name is an alias. */
20852 #if defined __stub_$ac_func || defined __stub___$ac_func
20853 choke me
20854 #endif
20855
20856 int
20857 main ()
20858 {
20859 return $ac_func ();
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_link") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest$ac_exeext &&
20881 $as_test_x conftest$ac_exeext; then
20882 eval "$as_ac_var=yes"
20883 else
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887 eval "$as_ac_var=no"
20888 fi
20889
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892 fi
20893 ac_res=`eval echo '${'$as_ac_var'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20896 if test `eval echo '${'$as_ac_var'}'` = yes; then
20897 cat >>confdefs.h <<_ACEOF
20898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20899 _ACEOF
20900
20901 fi
20902 done
20903
20904 LIBS="$lt_save_LIBS"
20905 fi
20906 ac_ext=c
20907 ac_cpp='$CPP $CPPFLAGS'
20908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911
20912
20913
20914 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20915 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20916 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 ac_cv_sys_symbol_underscore=no
20920 cat > conftest.$ac_ext <<EOF
20921 void nm_test_func(){}
20922 int main(){nm_test_func;return 0;}
20923 EOF
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; then
20929 # Now try to grab the symbols.
20930 ac_nlist=conftest.nm
20931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && test -s "$ac_nlist"; then
20936 # See whether the symbols have a leading underscore.
20937 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20938 ac_cv_sys_symbol_underscore=yes
20939 else
20940 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20941 :
20942 else
20943 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20944 fi
20945 fi
20946 else
20947 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20948 fi
20949 else
20950 echo "configure: failed program was:" >&5
20951 cat conftest.c >&5
20952 fi
20953 rm -rf conftest*
20954
20955 fi
20956 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20957 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20958
20959
20960 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20961 if test x"$libltdl_cv_func_dlopen" = xyes ||
20962 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20963 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20964 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20965 if test "${libltdl_cv_need_uscore+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968 libltdl_cv_need_uscore=unknown
20969 save_LIBS="$LIBS"
20970 LIBS="$LIBS $LIBADD_DL"
20971 if test "$cross_compiling" = yes; then :
20972 libltdl_cv_need_uscore=cross
20973 else
20974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20975 lt_status=$lt_dlunknown
20976 cat > conftest.$ac_ext <<EOF
20977 #line 20977 "configure"
20978 #include "confdefs.h"
20979
20980 #if HAVE_DLFCN_H
20981 #include <dlfcn.h>
20982 #endif
20983
20984 #include <stdio.h>
20985
20986 #ifdef RTLD_GLOBAL
20987 # define LT_DLGLOBAL RTLD_GLOBAL
20988 #else
20989 # ifdef DL_GLOBAL
20990 # define LT_DLGLOBAL DL_GLOBAL
20991 # else
20992 # define LT_DLGLOBAL 0
20993 # endif
20994 #endif
20995
20996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20997 find out it does not work in some platform. */
20998 #ifndef LT_DLLAZY_OR_NOW
20999 # ifdef RTLD_LAZY
21000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21001 # else
21002 # ifdef DL_LAZY
21003 # define LT_DLLAZY_OR_NOW DL_LAZY
21004 # else
21005 # ifdef RTLD_NOW
21006 # define LT_DLLAZY_OR_NOW RTLD_NOW
21007 # else
21008 # ifdef DL_NOW
21009 # define LT_DLLAZY_OR_NOW DL_NOW
21010 # else
21011 # define LT_DLLAZY_OR_NOW 0
21012 # endif
21013 # endif
21014 # endif
21015 # endif
21016 #endif
21017
21018 #ifdef __cplusplus
21019 extern "C" void exit (int);
21020 #endif
21021
21022 void fnord() { int i=42;}
21023 int main ()
21024 {
21025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21026 int status = $lt_dlunknown;
21027
21028 if (self)
21029 {
21030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21032 /* dlclose (self); */
21033 }
21034 else
21035 puts (dlerror ());
21036
21037 exit (status);
21038 }
21039 EOF
21040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21041 (eval $ac_link) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21045 (./conftest; exit; ) >&5 2>/dev/null
21046 lt_status=$?
21047 case x$lt_status in
21048 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21049 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21050 x$lt_dlunknown|x*) ;;
21051 esac
21052 else :
21053 # compilation failed
21054
21055 fi
21056 fi
21057 rm -fr conftest*
21058
21059 LIBS="$save_LIBS"
21060
21061 fi
21062 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21063 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21064 fi
21065 fi
21066
21067 if test x"$libltdl_cv_need_uscore" = xyes; then
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define NEED_USCORE 1
21071 _ACEOF
21072
21073 fi
21074
21075
21076 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21077 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21078 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081 # PORTME does your system automatically load deplibs for dlopen?
21082 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21083 # For now, we just catch OSes we know something about -- in the
21084 # future, we'll try test this programmatically.
21085 libltdl_cv_sys_dlopen_deplibs=unknown
21086 case "$host_os" in
21087 aix3*|aix4.1.*|aix4.2.*)
21088 # Unknown whether this is true for these versions of AIX, but
21089 # we want this `case' here to explicitly catch those versions.
21090 libltdl_cv_sys_dlopen_deplibs=unknown
21091 ;;
21092 aix[45]*)
21093 libltdl_cv_sys_dlopen_deplibs=yes
21094 ;;
21095 darwin*)
21096 # Assuming the user has installed a libdl from somewhere, this is true
21097 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21098 libltdl_cv_sys_dlopen_deplibs=yes
21099 ;;
21100 freebsd* | dragonfly*)
21101 libltdl_cv_sys_dlopen_deplibs=yes
21102 ;;
21103 gnu* | linux* | k*bsd*-gnu)
21104 # GNU and its variants, using gnu ld.so (Glibc)
21105 libltdl_cv_sys_dlopen_deplibs=yes
21106 ;;
21107 hpux10*|hpux11*)
21108 libltdl_cv_sys_dlopen_deplibs=yes
21109 ;;
21110 interix*)
21111 libltdl_cv_sys_dlopen_deplibs=yes
21112 ;;
21113 irix[12345]*|irix6.[01]*)
21114 # Catch all versions of IRIX before 6.2, and indicate that we don't
21115 # know how it worked for any of those versions.
21116 libltdl_cv_sys_dlopen_deplibs=unknown
21117 ;;
21118 irix*)
21119 # The case above catches anything before 6.2, and it's known that
21120 # at 6.2 and later dlopen does load deplibs.
21121 libltdl_cv_sys_dlopen_deplibs=yes
21122 ;;
21123 netbsd* | netbsdelf*-gnu)
21124 libltdl_cv_sys_dlopen_deplibs=yes
21125 ;;
21126 openbsd*)
21127 libltdl_cv_sys_dlopen_deplibs=yes
21128 ;;
21129 osf[1234]*)
21130 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21131 # it did *not* use an RPATH in a shared library to find objects the
21132 # library depends on, so we explictly say `no'.
21133 libltdl_cv_sys_dlopen_deplibs=no
21134 ;;
21135 osf5.0|osf5.0a|osf5.1)
21136 # dlopen *does* load deplibs and with the right loader patch applied
21137 # it even uses RPATH in a shared library to search for shared objects
21138 # that the library depends on, but there's no easy way to know if that
21139 # patch is installed. Since this is the case, all we can really
21140 # say is unknown -- it depends on the patch being installed. If
21141 # it is, this changes to `yes'. Without it, it would be `no'.
21142 libltdl_cv_sys_dlopen_deplibs=unknown
21143 ;;
21144 osf*)
21145 # the two cases above should catch all versions of osf <= 5.1. Read
21146 # the comments above for what we know about them.
21147 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21148 # is used to find them so we can finally say `yes'.
21149 libltdl_cv_sys_dlopen_deplibs=yes
21150 ;;
21151 solaris*)
21152 libltdl_cv_sys_dlopen_deplibs=yes
21153 ;;
21154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21155 libltdl_cv_sys_dlopen_deplibs=yes
21156 ;;
21157 esac
21158
21159 fi
21160 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21161 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21162 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21163
21164 cat >>confdefs.h <<\_ACEOF
21165 #define LTDL_DLOPEN_DEPLIBS 1
21166 _ACEOF
21167
21168 fi
21169
21170
21171 for ac_header in argz.h
21172 do
21173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 fi
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21183 else
21184 # Is the header compilable?
21185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21187 cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h. */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 $ac_includes_default
21194 #include <$ac_header>
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_header_compiler=yes
21214 else
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218 ac_header_compiler=no
21219 fi
21220
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21223 echo "${ECHO_T}$ac_header_compiler" >&6; }
21224
21225 # Is the header present?
21226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <$ac_header>
21235 _ACEOF
21236 if { (ac_try="$ac_cpp conftest.$ac_ext"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } >/dev/null && {
21249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 }; then
21252 ac_header_preproc=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ac_header_preproc=no
21258 fi
21259
21260 rm -f conftest.err conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21262 echo "${ECHO_T}$ac_header_preproc" >&6; }
21263
21264 # So? What about this header?
21265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21266 yes:no: )
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21271 ac_header_preproc=yes
21272 ;;
21273 no:yes:* )
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21286 ( cat <<\_ASBOX
21287 ## ---------------------------------- ##
21288 ## Report this to bug-libtool@gnu.org ##
21289 ## ---------------------------------- ##
21290 _ASBOX
21291 ) | sed "s/^/$as_me: WARNING: /" >&2
21292 ;;
21293 esac
21294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299 eval "$as_ac_Header=\$ac_header_preproc"
21300 fi
21301 ac_res=`eval echo '${'$as_ac_Header'}'`
21302 { echo "$as_me:$LINENO: result: $ac_res" >&5
21303 echo "${ECHO_T}$ac_res" >&6; }
21304
21305 fi
21306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21307 cat >>confdefs.h <<_ACEOF
21308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21309 _ACEOF
21310
21311 fi
21312
21313 done
21314
21315
21316 { echo "$as_me:$LINENO: checking for error_t" >&5
21317 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21318 if test "${ac_cv_type_error_t+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320 else
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #if HAVE_ARGZ_H
21328 # include <argz.h>
21329 #endif
21330
21331 typedef error_t ac__type_new_;
21332 int
21333 main ()
21334 {
21335 if ((ac__type_new_ *) 0)
21336 return 0;
21337 if (sizeof (ac__type_new_))
21338 return 0;
21339 ;
21340 return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
21360 ac_cv_type_error_t=yes
21361 else
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 ac_cv_type_error_t=no
21366 fi
21367
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 fi
21370 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21371 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21372 if test $ac_cv_type_error_t = yes; then
21373
21374 cat >>confdefs.h <<_ACEOF
21375 #define HAVE_ERROR_T 1
21376 _ACEOF
21377
21378
21379 else
21380
21381 cat >>confdefs.h <<\_ACEOF
21382 #define error_t int
21383 _ACEOF
21384
21385 fi
21386
21387
21388
21389
21390
21391
21392
21393 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21394 do
21395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21409 #define $ac_func innocuous_$ac_func
21410
21411 /* System header to define __stub macros and hopefully few prototypes,
21412 which can conflict with char $ac_func (); below.
21413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21414 <limits.h> exists even on freestanding compilers. */
21415
21416 #ifdef __STDC__
21417 # include <limits.h>
21418 #else
21419 # include <assert.h>
21420 #endif
21421
21422 #undef $ac_func
21423
21424 /* Override any GCC internal prototype to avoid an error.
21425 Use char because int might match the return type of a GCC
21426 builtin and then its argument prototype would still apply. */
21427 #ifdef __cplusplus
21428 extern "C"
21429 #endif
21430 char $ac_func ();
21431 /* The GNU C library defines this for functions which it implements
21432 to always fail with ENOSYS. Some functions are actually named
21433 something starting with __ and the normal name is an alias. */
21434 #if defined __stub_$ac_func || defined __stub___$ac_func
21435 choke me
21436 #endif
21437
21438 int
21439 main ()
21440 {
21441 return $ac_func ();
21442 ;
21443 return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_link") 2>conftest.er1
21454 ac_status=$?
21455 grep -v '^ *+' conftest.er1 >conftest.err
21456 rm -f conftest.er1
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest$ac_exeext &&
21463 $as_test_x conftest$ac_exeext; then
21464 eval "$as_ac_var=yes"
21465 else
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469 eval "$as_ac_var=no"
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473 conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 ac_res=`eval echo '${'$as_ac_var'}'`
21476 { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_var'}'` = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484 done
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21514 stdio.h unistd.h
21515 do
21516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 fi
21523 ac_res=`eval echo '${'$as_ac_Header'}'`
21524 { echo "$as_me:$LINENO: result: $ac_res" >&5
21525 echo "${ECHO_T}$ac_res" >&6; }
21526 else
21527 # Is the header compilable?
21528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h. */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 $ac_includes_default
21537 #include <$ac_header>
21538 _ACEOF
21539 rm -f conftest.$ac_objext
21540 if { (ac_try="$ac_compile"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_compile") 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest.$ac_objext; then
21556 ac_header_compiler=yes
21557 else
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 ac_header_compiler=no
21562 fi
21563
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21566 echo "${ECHO_T}$ac_header_compiler" >&6; }
21567
21568 # Is the header present?
21569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <$ac_header>
21578 _ACEOF
21579 if { (ac_try="$ac_cpp conftest.$ac_ext"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } >/dev/null && {
21592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 }; then
21595 ac_header_preproc=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ac_header_preproc=no
21601 fi
21602
21603 rm -f conftest.err conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21605 echo "${ECHO_T}$ac_header_preproc" >&6; }
21606
21607 # So? What about this header?
21608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21609 yes:no: )
21610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21614 ac_header_preproc=yes
21615 ;;
21616 no:yes:* )
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21629 ( cat <<\_ASBOX
21630 ## ---------------------------------- ##
21631 ## Report this to bug-libtool@gnu.org ##
21632 ## ---------------------------------- ##
21633 _ASBOX
21634 ) | sed "s/^/$as_me: WARNING: /" >&2
21635 ;;
21636 esac
21637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21641 else
21642 eval "$as_ac_Header=\$ac_header_preproc"
21643 fi
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21647
21648 fi
21649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21650 cat >>confdefs.h <<_ACEOF
21651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21652 _ACEOF
21653
21654 fi
21655
21656 done
21657
21658
21659
21660
21661
21662 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21663 do
21664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 fi
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21674 else
21675 # Is the header compilable?
21676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h. */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 #include <$ac_header>
21686 _ACEOF
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21695 ac_status=$?
21696 grep -v '^ *+' conftest.er1 >conftest.err
21697 rm -f conftest.er1
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.$ac_objext; then
21704 ac_header_compiler=yes
21705 else
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709 ac_header_compiler=no
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21714 echo "${ECHO_T}$ac_header_compiler" >&6; }
21715
21716 # Is the header present?
21717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21719 cat >conftest.$ac_ext <<_ACEOF
21720 /* confdefs.h. */
21721 _ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <$ac_header>
21726 _ACEOF
21727 if { (ac_try="$ac_cpp conftest.$ac_ext"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21734 ac_status=$?
21735 grep -v '^ *+' conftest.er1 >conftest.err
21736 rm -f conftest.er1
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } >/dev/null && {
21740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 }; then
21743 ac_header_preproc=yes
21744 else
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748 ac_header_preproc=no
21749 fi
21750
21751 rm -f conftest.err conftest.$ac_ext
21752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21753 echo "${ECHO_T}$ac_header_preproc" >&6; }
21754
21755 # So? What about this header?
21756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21757 yes:no: )
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21762 ac_header_preproc=yes
21763 ;;
21764 no:yes:* )
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21777 ( cat <<\_ASBOX
21778 ## ---------------------------------- ##
21779 ## Report this to bug-libtool@gnu.org ##
21780 ## ---------------------------------- ##
21781 _ASBOX
21782 ) | sed "s/^/$as_me: WARNING: /" >&2
21783 ;;
21784 esac
21785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790 eval "$as_ac_Header=\$ac_header_preproc"
21791 fi
21792 ac_res=`eval echo '${'$as_ac_Header'}'`
21793 { echo "$as_me:$LINENO: result: $ac_res" >&5
21794 echo "${ECHO_T}$ac_res" >&6; }
21795
21796 fi
21797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21798 cat >>confdefs.h <<_ACEOF
21799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21800 _ACEOF
21801
21802 fi
21803
21804 done
21805
21806
21807
21808 for ac_header in string.h strings.h
21809 do
21810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 fi
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21820 else
21821 # Is the header compilable?
21822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h. */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h. */
21830 $ac_includes_default
21831 #include <$ac_header>
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_compile") 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } && {
21847 test -z "$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 } && test -s conftest.$ac_objext; then
21850 ac_header_compiler=yes
21851 else
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ac_header_compiler=no
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861
21862 # Is the header present?
21863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <$ac_header>
21872 _ACEOF
21873 if { (ac_try="$ac_cpp conftest.$ac_ext"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } >/dev/null && {
21886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21888 }; then
21889 ac_header_preproc=yes
21890 else
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894 ac_header_preproc=no
21895 fi
21896
21897 rm -f conftest.err conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21899 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900
21901 # So? What about this header?
21902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903 yes:no: )
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21908 ac_header_preproc=yes
21909 ;;
21910 no:yes:* )
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21923 ( cat <<\_ASBOX
21924 ## ---------------------------------- ##
21925 ## Report this to bug-libtool@gnu.org ##
21926 ## ---------------------------------- ##
21927 _ASBOX
21928 ) | sed "s/^/$as_me: WARNING: /" >&2
21929 ;;
21930 esac
21931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936 eval "$as_ac_Header=\$ac_header_preproc"
21937 fi
21938 ac_res=`eval echo '${'$as_ac_Header'}'`
21939 { echo "$as_me:$LINENO: result: $ac_res" >&5
21940 echo "${ECHO_T}$ac_res" >&6; }
21941
21942 fi
21943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21944 cat >>confdefs.h <<_ACEOF
21945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21946 _ACEOF
21947 break
21948 fi
21949
21950 done
21951
21952
21953
21954
21955 for ac_func in strchr index
21956 do
21957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h. */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21971 #define $ac_func innocuous_$ac_func
21972
21973 /* System header to define __stub macros and hopefully few prototypes,
21974 which can conflict with char $ac_func (); below.
21975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21976 <limits.h> exists even on freestanding compilers. */
21977
21978 #ifdef __STDC__
21979 # include <limits.h>
21980 #else
21981 # include <assert.h>
21982 #endif
21983
21984 #undef $ac_func
21985
21986 /* Override any GCC internal prototype to avoid an error.
21987 Use char because int might match the return type of a GCC
21988 builtin and then its argument prototype would still apply. */
21989 #ifdef __cplusplus
21990 extern "C"
21991 #endif
21992 char $ac_func ();
21993 /* The GNU C library defines this for functions which it implements
21994 to always fail with ENOSYS. Some functions are actually named
21995 something starting with __ and the normal name is an alias. */
21996 #if defined __stub_$ac_func || defined __stub___$ac_func
21997 choke me
21998 #endif
21999
22000 int
22001 main ()
22002 {
22003 return $ac_func ();
22004 ;
22005 return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (ac_try="$ac_link"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext &&
22025 $as_test_x conftest$ac_exeext; then
22026 eval "$as_ac_var=yes"
22027 else
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 eval "$as_ac_var=no"
22032 fi
22033
22034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22035 conftest$ac_exeext conftest.$ac_ext
22036 fi
22037 ac_res=`eval echo '${'$as_ac_var'}'`
22038 { echo "$as_me:$LINENO: result: $ac_res" >&5
22039 echo "${ECHO_T}$ac_res" >&6; }
22040 if test `eval echo '${'$as_ac_var'}'` = yes; then
22041 cat >>confdefs.h <<_ACEOF
22042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22043 _ACEOF
22044 break
22045 fi
22046 done
22047
22048
22049
22050 for ac_func in strrchr rindex
22051 do
22052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22066 #define $ac_func innocuous_$ac_func
22067
22068 /* System header to define __stub macros and hopefully few prototypes,
22069 which can conflict with char $ac_func (); below.
22070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22071 <limits.h> exists even on freestanding compilers. */
22072
22073 #ifdef __STDC__
22074 # include <limits.h>
22075 #else
22076 # include <assert.h>
22077 #endif
22078
22079 #undef $ac_func
22080
22081 /* Override any GCC internal prototype to avoid an error.
22082 Use char because int might match the return type of a GCC
22083 builtin and then its argument prototype would still apply. */
22084 #ifdef __cplusplus
22085 extern "C"
22086 #endif
22087 char $ac_func ();
22088 /* The GNU C library defines this for functions which it implements
22089 to always fail with ENOSYS. Some functions are actually named
22090 something starting with __ and the normal name is an alias. */
22091 #if defined __stub_$ac_func || defined __stub___$ac_func
22092 choke me
22093 #endif
22094
22095 int
22096 main ()
22097 {
22098 return $ac_func ();
22099 ;
22100 return 0;
22101 }
22102 _ACEOF
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>conftest.er1
22111 ac_status=$?
22112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } && {
22117 test -z "$ac_c_werror_flag" ||
22118 test ! -s conftest.err
22119 } && test -s conftest$ac_exeext &&
22120 $as_test_x conftest$ac_exeext; then
22121 eval "$as_ac_var=yes"
22122 else
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 eval "$as_ac_var=no"
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130 conftest$ac_exeext conftest.$ac_ext
22131 fi
22132 ac_res=`eval echo '${'$as_ac_var'}'`
22133 { echo "$as_me:$LINENO: result: $ac_res" >&5
22134 echo "${ECHO_T}$ac_res" >&6; }
22135 if test `eval echo '${'$as_ac_var'}'` = yes; then
22136 cat >>confdefs.h <<_ACEOF
22137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22138 _ACEOF
22139 break
22140 fi
22141 done
22142
22143
22144
22145 for ac_func in memcpy bcopy
22146 do
22147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h. */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22161 #define $ac_func innocuous_$ac_func
22162
22163 /* System header to define __stub macros and hopefully few prototypes,
22164 which can conflict with char $ac_func (); below.
22165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22166 <limits.h> exists even on freestanding compilers. */
22167
22168 #ifdef __STDC__
22169 # include <limits.h>
22170 #else
22171 # include <assert.h>
22172 #endif
22173
22174 #undef $ac_func
22175
22176 /* Override any GCC internal prototype to avoid an error.
22177 Use char because int might match the return type of a GCC
22178 builtin and then its argument prototype would still apply. */
22179 #ifdef __cplusplus
22180 extern "C"
22181 #endif
22182 char $ac_func ();
22183 /* The GNU C library defines this for functions which it implements
22184 to always fail with ENOSYS. Some functions are actually named
22185 something starting with __ and the normal name is an alias. */
22186 #if defined __stub_$ac_func || defined __stub___$ac_func
22187 choke me
22188 #endif
22189
22190 int
22191 main ()
22192 {
22193 return $ac_func ();
22194 ;
22195 return 0;
22196 }
22197 _ACEOF
22198 rm -f conftest.$ac_objext conftest$ac_exeext
22199 if { (ac_try="$ac_link"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_link") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext &&
22215 $as_test_x conftest$ac_exeext; then
22216 eval "$as_ac_var=yes"
22217 else
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 eval "$as_ac_var=no"
22222 fi
22223
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225 conftest$ac_exeext conftest.$ac_ext
22226 fi
22227 ac_res=`eval echo '${'$as_ac_var'}'`
22228 { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_var'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22233 _ACEOF
22234 break
22235 fi
22236 done
22237
22238
22239
22240 for ac_func in memmove strcmp
22241 do
22242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h. */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22256 #define $ac_func innocuous_$ac_func
22257
22258 /* System header to define __stub macros and hopefully few prototypes,
22259 which can conflict with char $ac_func (); below.
22260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22261 <limits.h> exists even on freestanding compilers. */
22262
22263 #ifdef __STDC__
22264 # include <limits.h>
22265 #else
22266 # include <assert.h>
22267 #endif
22268
22269 #undef $ac_func
22270
22271 /* Override any GCC internal prototype to avoid an error.
22272 Use char because int might match the return type of a GCC
22273 builtin and then its argument prototype would still apply. */
22274 #ifdef __cplusplus
22275 extern "C"
22276 #endif
22277 char $ac_func ();
22278 /* The GNU C library defines this for functions which it implements
22279 to always fail with ENOSYS. Some functions are actually named
22280 something starting with __ and the normal name is an alias. */
22281 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 choke me
22283 #endif
22284
22285 int
22286 main ()
22287 {
22288 return $ac_func ();
22289 ;
22290 return 0;
22291 }
22292 _ACEOF
22293 rm -f conftest.$ac_objext conftest$ac_exeext
22294 if { (ac_try="$ac_link"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext &&
22310 $as_test_x conftest$ac_exeext; then
22311 eval "$as_ac_var=yes"
22312 else
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 eval "$as_ac_var=no"
22317 fi
22318
22319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22320 conftest$ac_exeext conftest.$ac_ext
22321 fi
22322 ac_res=`eval echo '${'$as_ac_var'}'`
22323 { echo "$as_me:$LINENO: result: $ac_res" >&5
22324 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_var'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 _ACEOF
22329
22330 fi
22331 done
22332
22333
22334
22335
22336 for ac_func in closedir opendir readdir
22337 do
22338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22352 #define $ac_func innocuous_$ac_func
22353
22354 /* System header to define __stub macros and hopefully few prototypes,
22355 which can conflict with char $ac_func (); below.
22356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357 <limits.h> exists even on freestanding compilers. */
22358
22359 #ifdef __STDC__
22360 # include <limits.h>
22361 #else
22362 # include <assert.h>
22363 #endif
22364
22365 #undef $ac_func
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char $ac_func ();
22374 /* The GNU C library defines this for functions which it implements
22375 to always fail with ENOSYS. Some functions are actually named
22376 something starting with __ and the normal name is an alias. */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22378 choke me
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 return $ac_func ();
22385 ;
22386 return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22394 esac
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396 (eval "$ac_link") 2>conftest.er1
22397 ac_status=$?
22398 grep -v '^ *+' conftest.er1 >conftest.err
22399 rm -f conftest.er1
22400 cat conftest.err >&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); } && {
22403 test -z "$ac_c_werror_flag" ||
22404 test ! -s conftest.err
22405 } && test -s conftest$ac_exeext &&
22406 $as_test_x conftest$ac_exeext; then
22407 eval "$as_ac_var=yes"
22408 else
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412 eval "$as_ac_var=no"
22413 fi
22414
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417 fi
22418 ac_res=`eval echo '${'$as_ac_var'}'`
22419 { echo "$as_me:$LINENO: result: $ac_res" >&5
22420 echo "${ECHO_T}$ac_res" >&6; }
22421 if test `eval echo '${'$as_ac_var'}'` = yes; then
22422 cat >>confdefs.h <<_ACEOF
22423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424 _ACEOF
22425
22426 fi
22427 done
22428
22429
22430
22431
22432 ## -------- ##
22433 ## Outputs. ##
22434 ## -------- ##
22435 ac_config_files="$ac_config_files Makefile"
22436
22437 cat >confcache <<\_ACEOF
22438 # This file is a shell script that caches the results of configure
22439 # tests run on this system so they can be shared between configure
22440 # scripts and configure runs, see configure's option --config-cache.
22441 # It is not useful on other systems. If it contains results you don't
22442 # want to keep, you may remove or edit it.
22443 #
22444 # config.status only pays attention to the cache file if you give it
22445 # the --recheck option to rerun configure.
22446 #
22447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22449 # following values.
22450
22451 _ACEOF
22452
22453 # The following way of writing the cache mishandles newlines in values,
22454 # but we know of no workaround that is simple, portable, and efficient.
22455 # So, we kill variables containing newlines.
22456 # Ultrix sh set writes to stderr and can't be redirected directly,
22457 # and sets the high bit in the cache file unless we assign to the vars.
22458 (
22459 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22460 eval ac_val=\$$ac_var
22461 case $ac_val in #(
22462 *${as_nl}*)
22463 case $ac_var in #(
22464 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22465 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22466 esac
22467 case $ac_var in #(
22468 _ | IFS | as_nl) ;; #(
22469 *) $as_unset $ac_var ;;
22470 esac ;;
22471 esac
22472 done
22473
22474 (set) 2>&1 |
22475 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22476 *${as_nl}ac_space=\ *)
22477 # `set' does not quote correctly, so add quotes (double-quote
22478 # substitution turns \\\\ into \\, and sed turns \\ into \).
22479 sed -n \
22480 "s/'/'\\\\''/g;
22481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22482 ;; #(
22483 *)
22484 # `set' quotes correctly as required by POSIX, so do not add quotes.
22485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22486 ;;
22487 esac |
22488 sort
22489 ) |
22490 sed '
22491 /^ac_cv_env_/b end
22492 t clear
22493 :clear
22494 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22495 t end
22496 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22497 :end' >>confcache
22498 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22499 if test -w "$cache_file"; then
22500 test "x$cache_file" != "x/dev/null" &&
22501 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22502 echo "$as_me: updating cache $cache_file" >&6;}
22503 cat confcache >$cache_file
22504 else
22505 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22506 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22507 fi
22508 fi
22509 rm -f confcache
22510
22511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22512 # Let make expand exec_prefix.
22513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22514
22515 DEFS=-DHAVE_CONFIG_H
22516
22517 ac_libobjs=
22518 ac_ltlibobjs=
22519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22520 # 1. Remove the extension, and $U if already installed.
22521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22522 ac_i=`echo "$ac_i" | sed "$ac_script"`
22523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22524 # will be set to the directory where LIBOBJS objects are built.
22525 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22526 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22527 done
22528 LIBOBJS=$ac_libobjs
22529
22530 LTLIBOBJS=$ac_ltlibobjs
22531
22532
22533 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22534 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22535 Usually this means the macro was only invoked conditionally." >&5
22536 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&2;}
22538 { (exit 1); exit 1; }; }
22539 fi
22540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22541 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22542 Usually this means the macro was only invoked conditionally." >&5
22543 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22544 Usually this means the macro was only invoked conditionally." >&2;}
22545 { (exit 1); exit 1; }; }
22546 fi
22547 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22548 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22549 Usually this means the macro was only invoked conditionally." >&5
22550 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22551 Usually this means the macro was only invoked conditionally." >&2;}
22552 { (exit 1); exit 1; }; }
22553 fi
22554 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22555 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22556 Usually this means the macro was only invoked conditionally." >&5
22557 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22558 Usually this means the macro was only invoked conditionally." >&2;}
22559 { (exit 1); exit 1; }; }
22560 fi
22561 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22562 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22563 Usually this means the macro was only invoked conditionally." >&5
22564 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22565 Usually this means the macro was only invoked conditionally." >&2;}
22566 { (exit 1); exit 1; }; }
22567 fi
22568
22569 : ${CONFIG_STATUS=./config.status}
22570 ac_clean_files_save=$ac_clean_files
22571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22572 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22573 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22574 cat >$CONFIG_STATUS <<_ACEOF
22575 #! $SHELL
22576 # Generated by $as_me.
22577 # Run this file to recreate the current configuration.
22578 # Compiler output produced by configure, useful for debugging
22579 # configure, is in config.log if it exists.
22580
22581 debug=false
22582 ac_cs_recheck=false
22583 ac_cs_silent=false
22584 SHELL=\${CONFIG_SHELL-$SHELL}
22585 _ACEOF
22586
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22588 ## --------------------- ##
22589 ## M4sh Initialization. ##
22590 ## --------------------- ##
22591
22592 # Be more Bourne compatible
22593 DUALCASE=1; export DUALCASE # for MKS sh
22594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22595 emulate sh
22596 NULLCMD=:
22597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22598 # is contrary to our usage. Disable this feature.
22599 alias -g '${1+"$@"}'='"$@"'
22600 setopt NO_GLOB_SUBST
22601 else
22602 case `(set -o) 2>/dev/null` in
22603 *posix*) set -o posix ;;
22604 esac
22605
22606 fi
22607
22608
22609
22610
22611 # PATH needs CR
22612 # Avoid depending upon Character Ranges.
22613 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22614 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22615 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22616 as_cr_digits='0123456789'
22617 as_cr_alnum=$as_cr_Letters$as_cr_digits
22618
22619 # The user is always right.
22620 if test "${PATH_SEPARATOR+set}" != set; then
22621 echo "#! /bin/sh" >conf$$.sh
22622 echo "exit 0" >>conf$$.sh
22623 chmod +x conf$$.sh
22624 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22625 PATH_SEPARATOR=';'
22626 else
22627 PATH_SEPARATOR=:
22628 fi
22629 rm -f conf$$.sh
22630 fi
22631
22632 # Support unset when possible.
22633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22634 as_unset=unset
22635 else
22636 as_unset=false
22637 fi
22638
22639
22640 # IFS
22641 # We need space, tab and new line, in precisely that order. Quoting is
22642 # there to prevent editors from complaining about space-tab.
22643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22644 # splitting by setting IFS to empty value.)
22645 as_nl='
22646 '
22647 IFS=" "" $as_nl"
22648
22649 # Find who we are. Look in the path if we contain no directory separator.
22650 case $0 in
22651 *[\\/]* ) as_myself=$0 ;;
22652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22653 for as_dir in $PATH
22654 do
22655 IFS=$as_save_IFS
22656 test -z "$as_dir" && as_dir=.
22657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22658 done
22659 IFS=$as_save_IFS
22660
22661 ;;
22662 esac
22663 # We did not find ourselves, most probably we were run as `sh COMMAND'
22664 # in which case we are not to be found in the path.
22665 if test "x$as_myself" = x; then
22666 as_myself=$0
22667 fi
22668 if test ! -f "$as_myself"; then
22669 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22670 { (exit 1); exit 1; }
22671 fi
22672
22673 # Work around bugs in pre-3.0 UWIN ksh.
22674 for as_var in ENV MAIL MAILPATH
22675 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22676 done
22677 PS1='$ '
22678 PS2='> '
22679 PS4='+ '
22680
22681 # NLS nuisances.
22682 for as_var in \
22683 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22684 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22685 LC_TELEPHONE LC_TIME
22686 do
22687 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22688 eval $as_var=C; export $as_var
22689 else
22690 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22691 fi
22692 done
22693
22694 # Required to use basename.
22695 if expr a : '\(a\)' >/dev/null 2>&1 &&
22696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22697 as_expr=expr
22698 else
22699 as_expr=false
22700 fi
22701
22702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22703 as_basename=basename
22704 else
22705 as_basename=false
22706 fi
22707
22708
22709 # Name of the executable.
22710 as_me=`$as_basename -- "$0" ||
22711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22712 X"$0" : 'X\(//\)$' \| \
22713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22714 echo X/"$0" |
22715 sed '/^.*\/\([^/][^/]*\)\/*$/{
22716 s//\1/
22717 q
22718 }
22719 /^X\/\(\/\/\)$/{
22720 s//\1/
22721 q
22722 }
22723 /^X\/\(\/\).*/{
22724 s//\1/
22725 q
22726 }
22727 s/.*/./; q'`
22728
22729 # CDPATH.
22730 $as_unset CDPATH
22731
22732
22733
22734 as_lineno_1=$LINENO
22735 as_lineno_2=$LINENO
22736 test "x$as_lineno_1" != "x$as_lineno_2" &&
22737 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22738
22739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22740 # uniformly replaced by the line number. The first 'sed' inserts a
22741 # line-number line after each line using $LINENO; the second 'sed'
22742 # does the real work. The second script uses 'N' to pair each
22743 # line-number line with the line containing $LINENO, and appends
22744 # trailing '-' during substitution so that $LINENO is not a special
22745 # case at line end.
22746 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22747 # scripts with optimization help from Paolo Bonzini. Blame Lee
22748 # E. McMahon (1931-1989) for sed's syntax. :-)
22749 sed -n '
22750 p
22751 /[$]LINENO/=
22752 ' <$as_myself |
22753 sed '
22754 s/[$]LINENO.*/&-/
22755 t lineno
22756 b
22757 :lineno
22758 N
22759 :loop
22760 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22761 t loop
22762 s/-\n.*//
22763 ' >$as_me.lineno &&
22764 chmod +x "$as_me.lineno" ||
22765 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22766 { (exit 1); exit 1; }; }
22767
22768 # Don't try to exec as it changes $[0], causing all sort of problems
22769 # (the dirname of $[0] is not the place where we might find the
22770 # original and so on. Autoconf is especially sensitive to this).
22771 . "./$as_me.lineno"
22772 # Exit status is that of the last command.
22773 exit
22774 }
22775
22776
22777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22778 as_dirname=dirname
22779 else
22780 as_dirname=false
22781 fi
22782
22783 ECHO_C= ECHO_N= ECHO_T=
22784 case `echo -n x` in
22785 -n*)
22786 case `echo 'x\c'` in
22787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22788 *) ECHO_C='\c';;
22789 esac;;
22790 *)
22791 ECHO_N='-n';;
22792 esac
22793
22794 if expr a : '\(a\)' >/dev/null 2>&1 &&
22795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22796 as_expr=expr
22797 else
22798 as_expr=false
22799 fi
22800
22801 rm -f conf$$ conf$$.exe conf$$.file
22802 if test -d conf$$.dir; then
22803 rm -f conf$$.dir/conf$$.file
22804 else
22805 rm -f conf$$.dir
22806 mkdir conf$$.dir
22807 fi
22808 echo >conf$$.file
22809 if ln -s conf$$.file conf$$ 2>/dev/null; then
22810 as_ln_s='ln -s'
22811 # ... but there are two gotchas:
22812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22814 # In both cases, we have to default to `cp -p'.
22815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22816 as_ln_s='cp -p'
22817 elif ln conf$$.file conf$$ 2>/dev/null; then
22818 as_ln_s=ln
22819 else
22820 as_ln_s='cp -p'
22821 fi
22822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22823 rmdir conf$$.dir 2>/dev/null
22824
22825 if mkdir -p . 2>/dev/null; then
22826 as_mkdir_p=:
22827 else
22828 test -d ./-p && rmdir ./-p
22829 as_mkdir_p=false
22830 fi
22831
22832 if test -x / >/dev/null 2>&1; then
22833 as_test_x='test -x'
22834 else
22835 if ls -dL / >/dev/null 2>&1; then
22836 as_ls_L_option=L
22837 else
22838 as_ls_L_option=
22839 fi
22840 as_test_x='
22841 eval sh -c '\''
22842 if test -d "$1"; then
22843 test -d "$1/.";
22844 else
22845 case $1 in
22846 -*)set "./$1";;
22847 esac;
22848 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22849 ???[sx]*):;;*)false;;esac;fi
22850 '\'' sh
22851 '
22852 fi
22853 as_executable_p=$as_test_x
22854
22855 # Sed expression to map a string onto a valid CPP name.
22856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22857
22858 # Sed expression to map a string onto a valid variable name.
22859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22860
22861
22862 exec 6>&1
22863
22864 # Save the log message, to keep $[0] and so on meaningful, and to
22865 # report actual input values of CONFIG_FILES etc. instead of their
22866 # values after options handling.
22867 ac_log="
22868 This file was extended by libltdl $as_me 1.2, which was
22869 generated by GNU Autoconf 2.61. Invocation command line was
22870
22871 CONFIG_FILES = $CONFIG_FILES
22872 CONFIG_HEADERS = $CONFIG_HEADERS
22873 CONFIG_LINKS = $CONFIG_LINKS
22874 CONFIG_COMMANDS = $CONFIG_COMMANDS
22875 $ $0 $@
22876
22877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22878 "
22879
22880 _ACEOF
22881
22882 cat >>$CONFIG_STATUS <<_ACEOF
22883 # Files that config.status was made for.
22884 config_files="$ac_config_files"
22885 config_headers="$ac_config_headers"
22886 config_commands="$ac_config_commands"
22887
22888 _ACEOF
22889
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 ac_cs_usage="\
22892 \`$as_me' instantiates files from templates according to the
22893 current configuration.
22894
22895 Usage: $0 [OPTIONS] [FILE]...
22896
22897 -h, --help print this help, then exit
22898 -V, --version print version number and configuration settings, then exit
22899 -q, --quiet do not print progress messages
22900 -d, --debug don't remove temporary files
22901 --recheck update $as_me by reconfiguring in the same conditions
22902 --file=FILE[:TEMPLATE]
22903 instantiate the configuration file FILE
22904 --header=FILE[:TEMPLATE]
22905 instantiate the configuration header FILE
22906
22907 Configuration files:
22908 $config_files
22909
22910 Configuration headers:
22911 $config_headers
22912
22913 Configuration commands:
22914 $config_commands
22915
22916 Report bugs to <bug-autoconf@gnu.org>."
22917
22918 _ACEOF
22919 cat >>$CONFIG_STATUS <<_ACEOF
22920 ac_cs_version="\\
22921 libltdl config.status 1.2
22922 configured by $0, generated by GNU Autoconf 2.61,
22923 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22924
22925 Copyright (C) 2006 Free Software Foundation, Inc.
22926 This config.status script is free software; the Free Software Foundation
22927 gives unlimited permission to copy, distribute and modify it."
22928
22929 ac_pwd='$ac_pwd'
22930 srcdir='$srcdir'
22931 INSTALL='$INSTALL'
22932 MKDIR_P='$MKDIR_P'
22933 _ACEOF
22934
22935 cat >>$CONFIG_STATUS <<\_ACEOF
22936 # If no file are specified by the user, then we need to provide default
22937 # value. By we need to know if files were specified by the user.
22938 ac_need_defaults=:
22939 while test $# != 0
22940 do
22941 case $1 in
22942 --*=*)
22943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22945 ac_shift=:
22946 ;;
22947 *)
22948 ac_option=$1
22949 ac_optarg=$2
22950 ac_shift=shift
22951 ;;
22952 esac
22953
22954 case $ac_option in
22955 # Handling of the options.
22956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22957 ac_cs_recheck=: ;;
22958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22959 echo "$ac_cs_version"; exit ;;
22960 --debug | --debu | --deb | --de | --d | -d )
22961 debug=: ;;
22962 --file | --fil | --fi | --f )
22963 $ac_shift
22964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22965 ac_need_defaults=false;;
22966 --header | --heade | --head | --hea )
22967 $ac_shift
22968 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22969 ac_need_defaults=false;;
22970 --he | --h)
22971 # Conflict between --help and --header
22972 { echo "$as_me: error: ambiguous option: $1
22973 Try \`$0 --help' for more information." >&2
22974 { (exit 1); exit 1; }; };;
22975 --help | --hel | -h )
22976 echo "$ac_cs_usage"; exit ;;
22977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22979 ac_cs_silent=: ;;
22980
22981 # This is an error.
22982 -*) { echo "$as_me: error: unrecognized option: $1
22983 Try \`$0 --help' for more information." >&2
22984 { (exit 1); exit 1; }; } ;;
22985
22986 *) ac_config_targets="$ac_config_targets $1"
22987 ac_need_defaults=false ;;
22988
22989 esac
22990 shift
22991 done
22992
22993 ac_configure_extra_args=
22994
22995 if $ac_cs_silent; then
22996 exec 6>/dev/null
22997 ac_configure_extra_args="$ac_configure_extra_args --silent"
22998 fi
22999
23000 _ACEOF
23001 cat >>$CONFIG_STATUS <<_ACEOF
23002 if \$ac_cs_recheck; then
23003 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23004 CONFIG_SHELL=$SHELL
23005 export CONFIG_SHELL
23006 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23007 fi
23008
23009 _ACEOF
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23011 exec 5>>config.log
23012 {
23013 echo
23014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23015 ## Running $as_me. ##
23016 _ASBOX
23017 echo "$ac_log"
23018 } >&5
23019
23020 _ACEOF
23021 cat >>$CONFIG_STATUS <<_ACEOF
23022 #
23023 # INIT-COMMANDS
23024 #
23025 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23026
23027 _ACEOF
23028
23029 cat >>$CONFIG_STATUS <<\_ACEOF
23030
23031 # Handling of arguments.
23032 for ac_config_target in $ac_config_targets
23033 do
23034 case $ac_config_target in
23035 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23036 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23037 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23038
23039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23041 { (exit 1); exit 1; }; };;
23042 esac
23043 done
23044
23045
23046 # If the user did not use the arguments to specify the items to instantiate,
23047 # then the envvar interface is used. Set only those that are not.
23048 # We use the long form for the default assignment because of an extremely
23049 # bizarre bug on SunOS 4.1.3.
23050 if $ac_need_defaults; then
23051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23054 fi
23055
23056 # Have a temporary directory for convenience. Make it in the build tree
23057 # simply because there is no reason against having it here, and in addition,
23058 # creating and moving files from /tmp can sometimes cause problems.
23059 # Hook for its removal unless debugging.
23060 # Note that there is a small window in which the directory will not be cleaned:
23061 # after its creation but before its name has been assigned to `$tmp'.
23062 $debug ||
23063 {
23064 tmp=
23065 trap 'exit_status=$?
23066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23067 ' 0
23068 trap '{ (exit 1); exit 1; }' 1 2 13 15
23069 }
23070 # Create a (secure) tmp directory for tmp files.
23071
23072 {
23073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23074 test -n "$tmp" && test -d "$tmp"
23075 } ||
23076 {
23077 tmp=./conf$$-$RANDOM
23078 (umask 077 && mkdir "$tmp")
23079 } ||
23080 {
23081 echo "$me: cannot create a temporary directory in ." >&2
23082 { (exit 1); exit 1; }
23083 }
23084
23085 #
23086 # Set up the sed scripts for CONFIG_FILES section.
23087 #
23088
23089 # No need to generate the scripts if there are no CONFIG_FILES.
23090 # This happens for instance when ./config.status config.h
23091 if test -n "$CONFIG_FILES"; then
23092
23093 _ACEOF
23094
23095
23096
23097 ac_delim='%!_!# '
23098 for ac_last_try in false false false false false :; do
23099 cat >conf$$subs.sed <<_ACEOF
23100 SHELL!$SHELL$ac_delim
23101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23107 exec_prefix!$exec_prefix$ac_delim
23108 prefix!$prefix$ac_delim
23109 program_transform_name!$program_transform_name$ac_delim
23110 bindir!$bindir$ac_delim
23111 sbindir!$sbindir$ac_delim
23112 libexecdir!$libexecdir$ac_delim
23113 datarootdir!$datarootdir$ac_delim
23114 datadir!$datadir$ac_delim
23115 sysconfdir!$sysconfdir$ac_delim
23116 sharedstatedir!$sharedstatedir$ac_delim
23117 localstatedir!$localstatedir$ac_delim
23118 includedir!$includedir$ac_delim
23119 oldincludedir!$oldincludedir$ac_delim
23120 docdir!$docdir$ac_delim
23121 infodir!$infodir$ac_delim
23122 htmldir!$htmldir$ac_delim
23123 dvidir!$dvidir$ac_delim
23124 pdfdir!$pdfdir$ac_delim
23125 psdir!$psdir$ac_delim
23126 libdir!$libdir$ac_delim
23127 localedir!$localedir$ac_delim
23128 mandir!$mandir$ac_delim
23129 DEFS!$DEFS$ac_delim
23130 ECHO_C!$ECHO_C$ac_delim
23131 ECHO_N!$ECHO_N$ac_delim
23132 ECHO_T!$ECHO_T$ac_delim
23133 LIBS!$LIBS$ac_delim
23134 build_alias!$build_alias$ac_delim
23135 host_alias!$host_alias$ac_delim
23136 target_alias!$target_alias$ac_delim
23137 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23138 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23139 INSTALL_DATA!$INSTALL_DATA$ac_delim
23140 am__isrc!$am__isrc$ac_delim
23141 CYGPATH_W!$CYGPATH_W$ac_delim
23142 PACKAGE!$PACKAGE$ac_delim
23143 VERSION!$VERSION$ac_delim
23144 ACLOCAL!$ACLOCAL$ac_delim
23145 AUTOCONF!$AUTOCONF$ac_delim
23146 AUTOMAKE!$AUTOMAKE$ac_delim
23147 AUTOHEADER!$AUTOHEADER$ac_delim
23148 MAKEINFO!$MAKEINFO$ac_delim
23149 install_sh!$install_sh$ac_delim
23150 STRIP!$STRIP$ac_delim
23151 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23152 mkdir_p!$mkdir_p$ac_delim
23153 AWK!$AWK$ac_delim
23154 SET_MAKE!$SET_MAKE$ac_delim
23155 am__leading_dot!$am__leading_dot$ac_delim
23156 AMTAR!$AMTAR$ac_delim
23157 am__tar!$am__tar$ac_delim
23158 am__untar!$am__untar$ac_delim
23159 CC!$CC$ac_delim
23160 CFLAGS!$CFLAGS$ac_delim
23161 LDFLAGS!$LDFLAGS$ac_delim
23162 CPPFLAGS!$CPPFLAGS$ac_delim
23163 ac_ct_CC!$ac_ct_CC$ac_delim
23164 EXEEXT!$EXEEXT$ac_delim
23165 OBJEXT!$OBJEXT$ac_delim
23166 DEPDIR!$DEPDIR$ac_delim
23167 am__include!$am__include$ac_delim
23168 am__quote!$am__quote$ac_delim
23169 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23170 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23171 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23172 CCDEPMODE!$CCDEPMODE$ac_delim
23173 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23174 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23175 build!$build$ac_delim
23176 build_cpu!$build_cpu$ac_delim
23177 build_vendor!$build_vendor$ac_delim
23178 build_os!$build_os$ac_delim
23179 host!$host$ac_delim
23180 host_cpu!$host_cpu$ac_delim
23181 host_vendor!$host_vendor$ac_delim
23182 host_os!$host_os$ac_delim
23183 SED!$SED$ac_delim
23184 GREP!$GREP$ac_delim
23185 EGREP!$EGREP$ac_delim
23186 LN_S!$LN_S$ac_delim
23187 ECHO!$ECHO$ac_delim
23188 AR!$AR$ac_delim
23189 RANLIB!$RANLIB$ac_delim
23190 DLLTOOL!$DLLTOOL$ac_delim
23191 AS!$AS$ac_delim
23192 OBJDUMP!$OBJDUMP$ac_delim
23193 CPP!$CPP$ac_delim
23194 CXX!$CXX$ac_delim
23195 CXXFLAGS!$CXXFLAGS$ac_delim
23196 ac_ct_CXX!$ac_ct_CXX$ac_delim
23197 _ACEOF
23198
23199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23200 break
23201 elif $ac_last_try; then
23202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23203 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23204 { (exit 1); exit 1; }; }
23205 else
23206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23207 fi
23208 done
23209
23210 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23211 if test -n "$ac_eof"; then
23212 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23213 ac_eof=`expr $ac_eof + 1`
23214 fi
23215
23216 cat >>$CONFIG_STATUS <<_ACEOF
23217 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23219 _ACEOF
23220 sed '
23221 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23222 s/^/s,@/; s/!/@,|#_!!_#|/
23223 :n
23224 t n
23225 s/'"$ac_delim"'$/,g/; t
23226 s/$/\\/; p
23227 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23228 ' >>$CONFIG_STATUS <conf$$subs.sed
23229 rm -f conf$$subs.sed
23230 cat >>$CONFIG_STATUS <<_ACEOF
23231 CEOF$ac_eof
23232 _ACEOF
23233
23234
23235 ac_delim='%!_!# '
23236 for ac_last_try in false false false false false :; do
23237 cat >conf$$subs.sed <<_ACEOF
23238 CXXDEPMODE!$CXXDEPMODE$ac_delim
23239 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23240 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23241 CXXCPP!$CXXCPP$ac_delim
23242 F77!$F77$ac_delim
23243 FFLAGS!$FFLAGS$ac_delim
23244 ac_ct_F77!$ac_ct_F77$ac_delim
23245 LIBTOOL!$LIBTOOL$ac_delim
23246 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23247 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23248 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23249 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23250 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23251 LIBADD_DL!$LIBADD_DL$ac_delim
23252 LIBOBJS!$LIBOBJS$ac_delim
23253 LTLIBOBJS!$LTLIBOBJS$ac_delim
23254 _ACEOF
23255
23256 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23257 break
23258 elif $ac_last_try; then
23259 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23261 { (exit 1); exit 1; }; }
23262 else
23263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23264 fi
23265 done
23266
23267 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23268 if test -n "$ac_eof"; then
23269 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23270 ac_eof=`expr $ac_eof + 1`
23271 fi
23272
23273 cat >>$CONFIG_STATUS <<_ACEOF
23274 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23276 _ACEOF
23277 sed '
23278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23279 s/^/s,@/; s/!/@,|#_!!_#|/
23280 :n
23281 t n
23282 s/'"$ac_delim"'$/,g/; t
23283 s/$/\\/; p
23284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23285 ' >>$CONFIG_STATUS <conf$$subs.sed
23286 rm -f conf$$subs.sed
23287 cat >>$CONFIG_STATUS <<_ACEOF
23288 :end
23289 s/|#_!!_#|//g
23290 CEOF$ac_eof
23291 _ACEOF
23292
23293
23294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23296 # trailing colons and then remove the whole line if VPATH becomes empty
23297 # (actually we leave an empty line to preserve line numbers).
23298 if test "x$srcdir" = x.; then
23299 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23300 s/:*\$(srcdir):*/:/
23301 s/:*\${srcdir}:*/:/
23302 s/:*@srcdir@:*/:/
23303 s/^\([^=]*=[ ]*\):*/\1/
23304 s/:*$//
23305 s/^[^=]*=[ ]*$//
23306 }'
23307 fi
23308
23309 cat >>$CONFIG_STATUS <<\_ACEOF
23310 fi # test -n "$CONFIG_FILES"
23311
23312
23313 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23314 do
23315 case $ac_tag in
23316 :[FHLC]) ac_mode=$ac_tag; continue;;
23317 esac
23318 case $ac_mode$ac_tag in
23319 :[FHL]*:*);;
23320 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23321 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23322 { (exit 1); exit 1; }; };;
23323 :[FH]-) ac_tag=-:-;;
23324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23325 esac
23326 ac_save_IFS=$IFS
23327 IFS=:
23328 set x $ac_tag
23329 IFS=$ac_save_IFS
23330 shift
23331 ac_file=$1
23332 shift
23333
23334 case $ac_mode in
23335 :L) ac_source=$1;;
23336 :[FH])
23337 ac_file_inputs=
23338 for ac_f
23339 do
23340 case $ac_f in
23341 -) ac_f="$tmp/stdin";;
23342 *) # Look for the file first in the build tree, then in the source tree
23343 # (if the path is not absolute). The absolute path cannot be DOS-style,
23344 # because $ac_f cannot contain `:'.
23345 test -f "$ac_f" ||
23346 case $ac_f in
23347 [\\/$]*) false;;
23348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23349 esac ||
23350 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23351 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23352 { (exit 1); exit 1; }; };;
23353 esac
23354 ac_file_inputs="$ac_file_inputs $ac_f"
23355 done
23356
23357 # Let's still pretend it is `configure' which instantiates (i.e., don't
23358 # use $as_me), people would be surprised to read:
23359 # /* config.h. Generated by config.status. */
23360 configure_input="Generated from "`IFS=:
23361 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23362 if test x"$ac_file" != x-; then
23363 configure_input="$ac_file. $configure_input"
23364 { echo "$as_me:$LINENO: creating $ac_file" >&5
23365 echo "$as_me: creating $ac_file" >&6;}
23366 fi
23367
23368 case $ac_tag in
23369 *:-:* | *:-) cat >"$tmp/stdin";;
23370 esac
23371 ;;
23372 esac
23373
23374 ac_dir=`$as_dirname -- "$ac_file" ||
23375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23376 X"$ac_file" : 'X\(//\)[^/]' \| \
23377 X"$ac_file" : 'X\(//\)$' \| \
23378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23379 echo X"$ac_file" |
23380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23381 s//\1/
23382 q
23383 }
23384 /^X\(\/\/\)[^/].*/{
23385 s//\1/
23386 q
23387 }
23388 /^X\(\/\/\)$/{
23389 s//\1/
23390 q
23391 }
23392 /^X\(\/\).*/{
23393 s//\1/
23394 q
23395 }
23396 s/.*/./; q'`
23397 { as_dir="$ac_dir"
23398 case $as_dir in #(
23399 -*) as_dir=./$as_dir;;
23400 esac
23401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23402 as_dirs=
23403 while :; do
23404 case $as_dir in #(
23405 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23406 *) as_qdir=$as_dir;;
23407 esac
23408 as_dirs="'$as_qdir' $as_dirs"
23409 as_dir=`$as_dirname -- "$as_dir" ||
23410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23411 X"$as_dir" : 'X\(//\)[^/]' \| \
23412 X"$as_dir" : 'X\(//\)$' \| \
23413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23414 echo X"$as_dir" |
23415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23416 s//\1/
23417 q
23418 }
23419 /^X\(\/\/\)[^/].*/{
23420 s//\1/
23421 q
23422 }
23423 /^X\(\/\/\)$/{
23424 s//\1/
23425 q
23426 }
23427 /^X\(\/\).*/{
23428 s//\1/
23429 q
23430 }
23431 s/.*/./; q'`
23432 test -d "$as_dir" && break
23433 done
23434 test -z "$as_dirs" || eval "mkdir $as_dirs"
23435 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23436 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23437 { (exit 1); exit 1; }; }; }
23438 ac_builddir=.
23439
23440 case "$ac_dir" in
23441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23442 *)
23443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23444 # A ".." for each directory in $ac_dir_suffix.
23445 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23446 case $ac_top_builddir_sub in
23447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23449 esac ;;
23450 esac
23451 ac_abs_top_builddir=$ac_pwd
23452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23453 # for backward compatibility:
23454 ac_top_builddir=$ac_top_build_prefix
23455
23456 case $srcdir in
23457 .) # We are building in place.
23458 ac_srcdir=.
23459 ac_top_srcdir=$ac_top_builddir_sub
23460 ac_abs_top_srcdir=$ac_pwd ;;
23461 [\\/]* | ?:[\\/]* ) # Absolute name.
23462 ac_srcdir=$srcdir$ac_dir_suffix;
23463 ac_top_srcdir=$srcdir
23464 ac_abs_top_srcdir=$srcdir ;;
23465 *) # Relative name.
23466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23467 ac_top_srcdir=$ac_top_build_prefix$srcdir
23468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23469 esac
23470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23471
23472
23473 case $ac_mode in
23474 :F)
23475 #
23476 # CONFIG_FILE
23477 #
23478
23479 case $INSTALL in
23480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23482 esac
23483 ac_MKDIR_P=$MKDIR_P
23484 case $MKDIR_P in
23485 [\\/$]* | ?:[\\/]* ) ;;
23486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23487 esac
23488 _ACEOF
23489
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23491 # If the template does not know about datarootdir, expand it.
23492 # FIXME: This hack should be removed a few years after 2.60.
23493 ac_datarootdir_hack=; ac_datarootdir_seen=
23494
23495 case `sed -n '/datarootdir/ {
23496 p
23497 q
23498 }
23499 /@datadir@/p
23500 /@docdir@/p
23501 /@infodir@/p
23502 /@localedir@/p
23503 /@mandir@/p
23504 ' $ac_file_inputs` in
23505 *datarootdir*) ac_datarootdir_seen=yes;;
23506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23509 _ACEOF
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 ac_datarootdir_hack='
23512 s&@datadir@&$datadir&g
23513 s&@docdir@&$docdir&g
23514 s&@infodir@&$infodir&g
23515 s&@localedir@&$localedir&g
23516 s&@mandir@&$mandir&g
23517 s&\\\${datarootdir}&$datarootdir&g' ;;
23518 esac
23519 _ACEOF
23520
23521 # Neutralize VPATH when `$srcdir' = `.'.
23522 # Shell code in configure.ac might set extrasub.
23523 # FIXME: do we really want to maintain this feature?
23524 cat >>$CONFIG_STATUS <<_ACEOF
23525 sed "$ac_vpsub
23526 $extrasub
23527 _ACEOF
23528 cat >>$CONFIG_STATUS <<\_ACEOF
23529 :t
23530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23531 s&@configure_input@&$configure_input&;t t
23532 s&@top_builddir@&$ac_top_builddir_sub&;t t
23533 s&@srcdir@&$ac_srcdir&;t t
23534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23535 s&@top_srcdir@&$ac_top_srcdir&;t t
23536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23537 s&@builddir@&$ac_builddir&;t t
23538 s&@abs_builddir@&$ac_abs_builddir&;t t
23539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23540 s&@INSTALL@&$ac_INSTALL&;t t
23541 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23542 $ac_datarootdir_hack
23543 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23544
23545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23546 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23548 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23549 which seems to be undefined. Please make sure it is defined." >&5
23550 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23551 which seems to be undefined. Please make sure it is defined." >&2;}
23552
23553 rm -f "$tmp/stdin"
23554 case $ac_file in
23555 -) cat "$tmp/out"; rm -f "$tmp/out";;
23556 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23557 esac
23558 ;;
23559 :H)
23560 #
23561 # CONFIG_HEADER
23562 #
23563 _ACEOF
23564
23565 # Transform confdefs.h into a sed script `conftest.defines', that
23566 # substitutes the proper values into config.h.in to produce config.h.
23567 rm -f conftest.defines conftest.tail
23568 # First, append a space to every undef/define line, to ease matching.
23569 echo 's/$/ /' >conftest.defines
23570 # Then, protect against being on the right side of a sed subst, or in
23571 # an unquoted here document, in config.status. If some macros were
23572 # called several times there might be several #defines for the same
23573 # symbol, which is useless. But do not sort them, since the last
23574 # AC_DEFINE must be honored.
23575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23576 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23577 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23578 # PARAMS is the parameter list in the macro definition--in most cases, it's
23579 # just an empty string.
23580 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23581 ac_dB='\\)[ (].*,\\1define\\2'
23582 ac_dC=' '
23583 ac_dD=' ,'
23584
23585 uniq confdefs.h |
23586 sed -n '
23587 t rset
23588 :rset
23589 s/^[ ]*#[ ]*define[ ][ ]*//
23590 t ok
23591 d
23592 :ok
23593 s/[\\&,]/\\&/g
23594 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23595 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23596 ' >>conftest.defines
23597
23598 # Remove the space that was appended to ease matching.
23599 # Then replace #undef with comments. This is necessary, for
23600 # example, in the case of _POSIX_SOURCE, which is predefined and required
23601 # on some systems where configure will not decide to define it.
23602 # (The regexp can be short, since the line contains either #define or #undef.)
23603 echo 's/ $//
23604 s,^[ #]*u.*,/* & */,' >>conftest.defines
23605
23606 # Break up conftest.defines:
23607 ac_max_sed_lines=50
23608
23609 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23610 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23611 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23612 # et cetera.
23613 ac_in='$ac_file_inputs'
23614 ac_out='"$tmp/out1"'
23615 ac_nxt='"$tmp/out2"'
23616
23617 while :
23618 do
23619 # Write a here document:
23620 cat >>$CONFIG_STATUS <<_ACEOF
23621 # First, check the format of the line:
23622 cat >"\$tmp/defines.sed" <<\\CEOF
23623 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23624 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23625 b
23626 :def
23627 _ACEOF
23628 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23629 echo 'CEOF
23630 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23631 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23632 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23633 grep . conftest.tail >/dev/null || break
23634 rm -f conftest.defines
23635 mv conftest.tail conftest.defines
23636 done
23637 rm -f conftest.defines conftest.tail
23638
23639 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 if test x"$ac_file" != x-; then
23642 echo "/* $configure_input */" >"$tmp/config.h"
23643 cat "$ac_result" >>"$tmp/config.h"
23644 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23645 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23646 echo "$as_me: $ac_file is unchanged" >&6;}
23647 else
23648 rm -f $ac_file
23649 mv "$tmp/config.h" $ac_file
23650 fi
23651 else
23652 echo "/* $configure_input */"
23653 cat "$ac_result"
23654 fi
23655 rm -f "$tmp/out12"
23656 # Compute $ac_file's index in $config_headers.
23657 _am_stamp_count=1
23658 for _am_header in $config_headers :; do
23659 case $_am_header in
23660 $ac_file | $ac_file:* )
23661 break ;;
23662 * )
23663 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23664 esac
23665 done
23666 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23667 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23668 X$ac_file : 'X\(//\)[^/]' \| \
23669 X$ac_file : 'X\(//\)$' \| \
23670 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23671 echo X$ac_file |
23672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23673 s//\1/
23674 q
23675 }
23676 /^X\(\/\/\)[^/].*/{
23677 s//\1/
23678 q
23679 }
23680 /^X\(\/\/\)$/{
23681 s//\1/
23682 q
23683 }
23684 /^X\(\/\).*/{
23685 s//\1/
23686 q
23687 }
23688 s/.*/./; q'`/stamp-h$_am_stamp_count
23689 ;;
23690
23691 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23692 echo "$as_me: executing $ac_file commands" >&6;}
23693 ;;
23694 esac
23695
23696
23697 case $ac_file$ac_mode in
23698 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23699 # Strip MF so we end up with the name of the file.
23700 mf=`echo "$mf" | sed -e 's/:.*$//'`
23701 # Check whether this is an Automake generated Makefile or not.
23702 # We used to match only the files named `Makefile.in', but
23703 # some people rename them; so instead we look at the file content.
23704 # Grep'ing the first line is not enough: some people post-process
23705 # each Makefile.in and add a new line on top of each file to say so.
23706 # Grep'ing the whole file is not good either: AIX grep has a line
23707 # limit of 2048, but all sed's we know have understand at least 4000.
23708 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23709 dirpart=`$as_dirname -- "$mf" ||
23710 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23711 X"$mf" : 'X\(//\)[^/]' \| \
23712 X"$mf" : 'X\(//\)$' \| \
23713 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23714 echo X"$mf" |
23715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23716 s//\1/
23717 q
23718 }
23719 /^X\(\/\/\)[^/].*/{
23720 s//\1/
23721 q
23722 }
23723 /^X\(\/\/\)$/{
23724 s//\1/
23725 q
23726 }
23727 /^X\(\/\).*/{
23728 s//\1/
23729 q
23730 }
23731 s/.*/./; q'`
23732 else
23733 continue
23734 fi
23735 # Extract the definition of DEPDIR, am__include, and am__quote
23736 # from the Makefile without running `make'.
23737 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23738 test -z "$DEPDIR" && continue
23739 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23740 test -z "am__include" && continue
23741 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23742 # When using ansi2knr, U may be empty or an underscore; expand it
23743 U=`sed -n 's/^U = //p' < "$mf"`
23744 # Find all dependency output files, they are included files with
23745 # $(DEPDIR) in their names. We invoke sed twice because it is the
23746 # simplest approach to changing $(DEPDIR) to its actual value in the
23747 # expansion.
23748 for file in `sed -n "
23749 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23750 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23751 # Make sure the directory exists.
23752 test -f "$dirpart/$file" && continue
23753 fdir=`$as_dirname -- "$file" ||
23754 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23755 X"$file" : 'X\(//\)[^/]' \| \
23756 X"$file" : 'X\(//\)$' \| \
23757 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23758 echo X"$file" |
23759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23760 s//\1/
23761 q
23762 }
23763 /^X\(\/\/\)[^/].*/{
23764 s//\1/
23765 q
23766 }
23767 /^X\(\/\/\)$/{
23768 s//\1/
23769 q
23770 }
23771 /^X\(\/\).*/{
23772 s//\1/
23773 q
23774 }
23775 s/.*/./; q'`
23776 { as_dir=$dirpart/$fdir
23777 case $as_dir in #(
23778 -*) as_dir=./$as_dir;;
23779 esac
23780 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23781 as_dirs=
23782 while :; do
23783 case $as_dir in #(
23784 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23785 *) as_qdir=$as_dir;;
23786 esac
23787 as_dirs="'$as_qdir' $as_dirs"
23788 as_dir=`$as_dirname -- "$as_dir" ||
23789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790 X"$as_dir" : 'X\(//\)[^/]' \| \
23791 X"$as_dir" : 'X\(//\)$' \| \
23792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23793 echo X"$as_dir" |
23794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23795 s//\1/
23796 q
23797 }
23798 /^X\(\/\/\)[^/].*/{
23799 s//\1/
23800 q
23801 }
23802 /^X\(\/\/\)$/{
23803 s//\1/
23804 q
23805 }
23806 /^X\(\/\).*/{
23807 s//\1/
23808 q
23809 }
23810 s/.*/./; q'`
23811 test -d "$as_dir" && break
23812 done
23813 test -z "$as_dirs" || eval "mkdir $as_dirs"
23814 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23815 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23816 { (exit 1); exit 1; }; }; }
23817 # echo "creating $dirpart/$file"
23818 echo '# dummy' > "$dirpart/$file"
23819 done
23820 done
23821 ;;
23822
23823 esac
23824 done # for ac_tag
23825
23826
23827 { (exit 0); exit 0; }
23828 _ACEOF
23829 chmod +x $CONFIG_STATUS
23830 ac_clean_files=$ac_clean_files_save
23831
23832
23833 # configure is writing to config.log, and then calls config.status.
23834 # config.status does its own redirection, appending to config.log.
23835 # Unfortunately, on DOS this fails, as config.log is still kept open
23836 # by configure, so config.status won't be able to write to it; its
23837 # output is simply discarded. So we exec the FD to /dev/null,
23838 # effectively closing config.log, so it can be properly (re)opened and
23839 # appended to by config.status. When coming back to configure, we
23840 # need to make the FD available again.
23841 if test "$no_create" != yes; then
23842 ac_cs_success=:
23843 ac_config_status_args=
23844 test "$silent" = yes &&
23845 ac_config_status_args="$ac_config_status_args --quiet"
23846 exec 5>/dev/null
23847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23848 exec 5>>config.log
23849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23850 # would make configure fail if this is the last instruction.
23851 $ac_cs_success || { (exit 1); exit 1; }
23852 fi
23853