Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="Makefile.am"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 LIB3DS_MAJOR_VERSION
808 LIB3DS_MINOR_VERSION
809 LIB3DS_MICRO_VERSION
810 LIB3DS_VERSION
811 INSTALL_PROGRAM
812 INSTALL_SCRIPT
813 INSTALL_DATA
814 am__isrc
815 CYGPATH_W
816 PACKAGE
817 VERSION
818 ACLOCAL
819 AUTOCONF
820 AUTOMAKE
821 AUTOHEADER
822 MAKEINFO
823 install_sh
824 STRIP
825 INSTALL_STRIP_PROGRAM
826 mkdir_p
827 AWK
828 SET_MAKE
829 am__leading_dot
830 AMTAR
831 am__tar
832 am__untar
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 SED
858 GREP
859 EGREP
860 LN_S
861 ECHO
862 AR
863 RANLIB
864 CPP
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CPP
888 CXX
889 CXXFLAGS
890 CCC
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284 do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --enable-debug-mode enable debugging mode
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-tags[=TAGS] include additional configurations [automatic]
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1499 CXXCPP C++ preprocessor
1500 F77 Fortran 77 compiler command
1501 FFLAGS Fortran 77 compiler flags
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 configure
1567 generated by GNU Autoconf 2.61
1568
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1579
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1582
1583 $ $0 $@
1584
1585 _ACEOF
1586 exec 5>>config.log
1587 {
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1592
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1609
1610 _ASUNAME
1611
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1620
1621 } >&5
1622
1623 cat >&5 <<_ACEOF
1624
1625
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1629
1630 _ACEOF
1631
1632
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1643 do
1644 for ac_arg
1645 do
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 2)
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1669 ;;
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1672 fi
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 ;;
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1688 {
1689 echo
1690
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1698 (
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1720 *)
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722 ;;
1723 esac |
1724 sort
1725 )
1726 echo
1727
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1735 do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1743
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1752 do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1760 fi
1761
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1771 fi
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1779 ' 0
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1784
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1787
1788 # Predefined preprocessor variables.
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1813
1814
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1824 fi
1825 shift
1826 for ac_site_file
1827 do
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1833 fi
1834 done
1835
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1846 fi
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1851 fi
1852
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1862 set,)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,set)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,);;
1871 *)
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1880 fi;;
1881 esac
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1884 case $ac_new_val in
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1887 esac
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 esac
1892 fi
1893 done
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926 LIB3DS_MAJOR_VERSION=1
1927 LIB3DS_MINOR_VERSION=3
1928 LIB3DS_MICRO_VERSION=0
1929 LIB3DS_VERSION=$LIB3DS_MAJOR_VERSION.$LIB3DS_MINOR_VERSION.$LIB3DS_MICRO_VERSION
1930
1931
1932
1933
1934
1935 ac_config_headers="$ac_config_headers config.h"
1936
1937 am__api_version='1.10'
1938
1939 ac_aux_dir=
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941 if test -f "$ac_dir/install-sh"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 break
1945 elif test -f "$ac_dir/install.sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 break
1949 elif test -f "$ac_dir/shtool"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 break
1953 fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958 { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968
1969
1970 # Find a good install program. We prefer a C program (faster),
1971 # so one script is as good as another. But avoid the broken or
1972 # incompatible versions:
1973 # SysV /etc/install, /usr/sbin/install
1974 # SunOS /usr/etc/install
1975 # IRIX /sbin/install
1976 # AIX /bin/install
1977 # AmigaOS /C/install, which installs bootblocks on floppy discs
1978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1981 # OS/2's system install, which has a completely different semantic
1982 # ./install, which can be erroneously created by make from ./install.sh.
1983 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1985 if test -z "$INSTALL"; then
1986 if test "${ac_cv_path_install+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 for as_dir in $PATH
1991 do
1992 IFS=$as_save_IFS
1993 test -z "$as_dir" && as_dir=.
1994 # Account for people who put trailing slashes in PATH elements.
1995 case $as_dir/ in
1996 ./ | .// | /cC/* | \
1997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1999 /usr/ucb/* ) ;;
2000 *)
2001 # OSF1 and SCO ODT 3.0 have their own names for install.
2002 # Don't use installbsd from OSF since it installs stuff as root
2003 # by default.
2004 for ac_prog in ginstall scoinst install; do
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2007 if test $ac_prog = install &&
2008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2009 # AIX install. It has an incompatible calling convention.
2010 :
2011 elif test $ac_prog = install &&
2012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # program-specific install script used by HP pwplus--don't use.
2014 :
2015 else
2016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2017 break 3
2018 fi
2019 fi
2020 done
2021 done
2022 ;;
2023 esac
2024 done
2025 IFS=$as_save_IFS
2026
2027
2028 fi
2029 if test "${ac_cv_path_install+set}" = set; then
2030 INSTALL=$ac_cv_path_install
2031 else
2032 # As a last resort, use the slow shell script. Don't cache a
2033 # value for INSTALL within a source directory, because that will
2034 # break other packages using the cache if that directory is
2035 # removed, or if the value is a relative name.
2036 INSTALL=$ac_install_sh
2037 fi
2038 fi
2039 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2040 echo "${ECHO_T}$INSTALL" >&6; }
2041
2042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2043 # It thinks the first close brace ends the variable substitution.
2044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045
2046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047
2048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049
2050 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2051 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2052 # Just in case
2053 sleep 1
2054 echo timestamp > conftest.file
2055 # Do `set' in a subshell so we don't clobber the current shell's
2056 # arguments. Must try -L first in case configure is actually a
2057 # symlink; some systems play weird games with the mod time of symlinks
2058 # (eg FreeBSD returns the mod time of the symlink's containing
2059 # directory).
2060 if (
2061 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2062 if test "$*" = "X"; then
2063 # -L didn't work.
2064 set X `ls -t $srcdir/configure conftest.file`
2065 fi
2066 rm -f conftest.file
2067 if test "$*" != "X $srcdir/configure conftest.file" \
2068 && test "$*" != "X conftest.file $srcdir/configure"; then
2069
2070 # If neither matched, then we have a broken ls. This can happen
2071 # if, for instance, CONFIG_SHELL is bash and it inherits a
2072 # broken ls alias from the environment. This has actually
2073 # happened. Such a system could not be considered "sane".
2074 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&5
2076 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2077 alias in your environment" >&2;}
2078 { (exit 1); exit 1; }; }
2079 fi
2080
2081 test "$2" = conftest.file
2082 )
2083 then
2084 # Ok.
2085 :
2086 else
2087 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2088 Check your system clock" >&5
2089 echo "$as_me: error: newly created file is older than distributed files!
2090 Check your system clock" >&2;}
2091 { (exit 1); exit 1; }; }
2092 fi
2093 { echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6; }
2095 test "$program_prefix" != NONE &&
2096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2097 # Use a double $ so make ignores it.
2098 test "$program_suffix" != NONE &&
2099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2100 # Double any \ or $. echo might interpret backslashes.
2101 # By default was `s,x,x', remove it if useless.
2102 cat <<\_ACEOF >conftest.sed
2103 s/[\\$]/&&/g;s/;s,x,x,$//
2104 _ACEOF
2105 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2106 rm -f conftest.sed
2107
2108 # expand $ac_aux_dir to an absolute path
2109 am_aux_dir=`cd $ac_aux_dir && pwd`
2110
2111 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2112 # Use eval to expand $SHELL
2113 if eval "$MISSING --run true"; then
2114 am_missing_run="$MISSING --run "
2115 else
2116 am_missing_run=
2117 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2118 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 fi
2120
2121 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2122 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2123 if test -z "$MKDIR_P"; then
2124 if test "${ac_cv_path_mkdir+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_prog in mkdir gmkdir; do
2133 for ac_exec_ext in '' $ac_executable_extensions; do
2134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2136 'mkdir (GNU coreutils) '* | \
2137 'mkdir (coreutils) '* | \
2138 'mkdir (fileutils) '4.1*)
2139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2140 break 3;;
2141 esac
2142 done
2143 done
2144 done
2145 IFS=$as_save_IFS
2146
2147 fi
2148
2149 if test "${ac_cv_path_mkdir+set}" = set; then
2150 MKDIR_P="$ac_cv_path_mkdir -p"
2151 else
2152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for MKDIR_P within a source directory, because that will
2154 # break other packages using the cache if that directory is
2155 # removed, or if the value is a relative name.
2156 test -d ./--version && rmdir ./--version
2157 MKDIR_P="$ac_install_sh -d"
2158 fi
2159 fi
2160 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2161 echo "${ECHO_T}$MKDIR_P" >&6; }
2162
2163 mkdir_p="$MKDIR_P"
2164 case $mkdir_p in
2165 [\\/$]* | ?:[\\/]*) ;;
2166 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2167 esac
2168
2169 for ac_prog in gawk mawk nawk awk
2170 do
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_AWK+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$AWK"; then
2179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_AWK="$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192 done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197 fi
2198 AWK=$ac_cv_prog_AWK
2199 if test -n "$AWK"; then
2200 { echo "$as_me:$LINENO: result: $AWK" >&5
2201 echo "${ECHO_T}$AWK" >&6; }
2202 else
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2205 fi
2206
2207
2208 test -n "$AWK" && break
2209 done
2210
2211 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2213 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2214 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 cat >conftest.make <<\_ACEOF
2218 SHELL = /bin/sh
2219 all:
2220 @echo '@@@%%%=$(MAKE)=@@@%%%'
2221 _ACEOF
2222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2224 *@@@%%%=?*=@@@%%%*)
2225 eval ac_cv_prog_make_${ac_make}_set=yes;;
2226 *)
2227 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 esac
2229 rm -f conftest.make
2230 fi
2231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2234 SET_MAKE=
2235 else
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238 SET_MAKE="MAKE=${MAKE-make}"
2239 fi
2240
2241 rm -rf .tst 2>/dev/null
2242 mkdir .tst 2>/dev/null
2243 if test -d .tst; then
2244 am__leading_dot=.
2245 else
2246 am__leading_dot=_
2247 fi
2248 rmdir .tst 2>/dev/null
2249
2250 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2251 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2252 # is not polluted with repeated "-I."
2253 am__isrc=' -I$(srcdir)'
2254 # test to see if srcdir already configured
2255 if test -f $srcdir/config.status; then
2256 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2257 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 fi
2261
2262 # test whether we have cygpath
2263 if test -z "$CYGPATH_W"; then
2264 if (cygpath --version) >/dev/null 2>/dev/null; then
2265 CYGPATH_W='cygpath -w'
2266 else
2267 CYGPATH_W=echo
2268 fi
2269 fi
2270
2271
2272 # Define the identity of the package.
2273 PACKAGE=lib3ds
2274 VERSION=$LIB3DS_VERSION
2275
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE "$PACKAGE"
2279 _ACEOF
2280
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define VERSION "$VERSION"
2284 _ACEOF
2285
2286 # Some tools Automake needs.
2287
2288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289
2290
2291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2292
2293
2294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295
2296
2297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2298
2299
2300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2301
2302 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2303
2304 # Installed binaries are usually stripped using `strip' when the user
2305 # run `make install-strip'. However `strip' might not be the right
2306 # tool to use in cross-compilation environments, therefore Automake
2307 # will honor the `STRIP' environment variable to overrule this program.
2308 if test "$cross_compiling" != no; then
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_STRIP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$STRIP"; then
2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 STRIP=$ac_cv_prog_STRIP
2338 if test -n "$STRIP"; then
2339 { echo "$as_me:$LINENO: result: $STRIP" >&5
2340 echo "${ECHO_T}$STRIP" >&6; }
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 fi
2345
2346
2347 fi
2348 if test -z "$ac_cv_prog_STRIP"; then
2349 ac_ct_STRIP=$STRIP
2350 # Extract the first word of "strip", so it can be a program name with args.
2351 set dummy strip; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 if test -n "$ac_ct_STRIP"; then
2358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_ac_ct_STRIP="strip"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2378 if test -n "$ac_ct_STRIP"; then
2379 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2380 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2381 else
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2384 fi
2385
2386 if test "x$ac_ct_STRIP" = x; then
2387 STRIP=":"
2388 else
2389 case $cross_compiling:$ac_tool_warned in
2390 yes:)
2391 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to [email protected]." >&5
2394 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2395 whose name does not start with the host triplet. If you think this
2396 configuration is useful to you, please write to [email protected]." >&2;}
2397 ac_tool_warned=yes ;;
2398 esac
2399 STRIP=$ac_ct_STRIP
2400 fi
2401 else
2402 STRIP="$ac_cv_prog_STRIP"
2403 fi
2404
2405 fi
2406 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2407
2408 # We need awk for the "check" target. The system "awk" is bad on
2409 # some platforms.
2410 # Always define AMTAR for backward compatibility.
2411
2412 AMTAR=${AMTAR-"${am_missing_run}tar"}
2413
2414 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2415
2416
2417
2418
2419
2420
2421 ac_ext=c
2422 ac_cpp='$CPP $CPPFLAGS'
2423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 CC=$ac_cv_prog_CC
2455 if test -n "$CC"; then
2456 { echo "$as_me:$LINENO: result: $CC" >&5
2457 echo "${ECHO_T}$CC" >&6; }
2458 else
2459 { echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6; }
2461 fi
2462
2463
2464 fi
2465 if test -z "$ac_cv_prog_CC"; then
2466 ac_ct_CC=$CC
2467 # Extract the first word of "gcc", so it can be a program name with args.
2468 set dummy gcc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 ac_cv_prog_ac_ct_CC="gcc"
2485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2487 fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2497 echo "${ECHO_T}$ac_ct_CC" >&6; }
2498 else
2499 { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2501 fi
2502
2503 if test "x$ac_ct_CC" = x; then
2504 CC=""
2505 else
2506 case $cross_compiling:$ac_tool_warned in
2507 yes:)
2508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet. If you think this
2510 configuration is useful to you, please write to [email protected]." >&5
2511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to [email protected]." >&2;}
2514 ac_tool_warned=yes ;;
2515 esac
2516 CC=$ac_ct_CC
2517 fi
2518 else
2519 CC="$ac_cv_prog_CC"
2520 fi
2521
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}cc; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="${ac_tool_prefix}cc"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6; }
2555 else
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2558 fi
2559
2560
2561 fi
2562 fi
2563 if test -z "$CC"; then
2564 # Extract the first word of "cc", so it can be a program name with args.
2565 set dummy cc; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 ac_prog_rejected=no
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2583 ac_prog_rejected=yes
2584 continue
2585 fi
2586 ac_cv_prog_CC="cc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 if test $ac_prog_rejected = yes; then
2595 # We found a bogon in the path, so make sure we never use it.
2596 set dummy $ac_cv_prog_CC
2597 shift
2598 if test $# != 0; then
2599 # We chose a different compiler from the bogus one.
2600 # However, it has the same basename, so the bogon will be chosen
2601 # first if we set CC to just the basename; use the full file name.
2602 shift
2603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2604 fi
2605 fi
2606 fi
2607 fi
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { echo "$as_me:$LINENO: result: $CC" >&5
2611 echo "${ECHO_T}$CC" >&6; }
2612 else
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2615 fi
2616
2617
2618 fi
2619 if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 for ac_prog in cl.exe
2622 do
2623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { echo "$as_me:$LINENO: result: $CC" >&5
2653 echo "${ECHO_T}$CC" >&6; }
2654 else
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659
2660 test -n "$CC" && break
2661 done
2662 fi
2663 if test -z "$CC"; then
2664 ac_ct_CC=$CC
2665 for ac_prog in cl.exe
2666 do
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_ac_ct_CC="$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688 done
2689 done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2697 echo "${ECHO_T}$ac_ct_CC" >&6; }
2698 else
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2701 fi
2702
2703
2704 test -n "$ac_ct_CC" && break
2705 done
2706
2707 if test "x$ac_ct_CC" = x; then
2708 CC=""
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711 yes:)
2712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2713 whose name does not start with the host triplet. If you think this
2714 configuration is useful to you, please write to [email protected]." >&5
2715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2716 whose name does not start with the host triplet. If you think this
2717 configuration is useful to you, please write to [email protected]." >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720 CC=$ac_ct_CC
2721 fi
2722 fi
2723
2724 fi
2725
2726
2727 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
2732
2733 # Provide some information about the compiler.
2734 echo "$as_me:$LINENO: checking for C compiler version" >&5
2735 ac_compiler=`set X $ac_compile; echo $2`
2736 { (ac_try="$ac_compiler --version >&5"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compiler --version >&5") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }
2746 { (ac_try="$ac_compiler -v >&5"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler -v >&5") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (ac_try="$ac_compiler -V >&5"
2757 case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compiler -V >&5") 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2766
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773
2774 int
2775 main ()
2776 {
2777
2778 ;
2779 return 0;
2780 }
2781 _ACEOF
2782 ac_clean_files_save=$ac_clean_files
2783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2784 # Try to create an executable without -o first, disregard a.out.
2785 # It will help us diagnose broken compilers, and finding out an intuition
2786 # of exeext.
2787 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2790 #
2791 # List of possible output files, starting from the most likely.
2792 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2793 # only as a last resort. b.out is created by i960 compilers.
2794 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2795 #
2796 # The IRIX 6 linker writes into existing files which may not be
2797 # executable, retaining their permissions. Remove them first so a
2798 # subsequent execution test works.
2799 ac_rmfiles=
2800 for ac_file in $ac_files
2801 do
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 esac
2806 done
2807 rm -f $ac_rmfiles
2808
2809 if { (ac_try="$ac_link_default"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link_default") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2820 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2821 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2822 # so that the user can short-circuit this test for compilers unknown to
2823 # Autoconf.
2824 for ac_file in $ac_files ''
2825 do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2829 ;;
2830 [ab].out )
2831 # We found the default executable, but exeext='' is most
2832 # certainly right.
2833 break;;
2834 *.* )
2835 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836 then :; else
2837 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838 fi
2839 # We set ac_cv_exeext here because the later test for it is not
2840 # safe: cross compilers may not add the suffix if given an `-o'
2841 # argument, so we may need to know it at that point already.
2842 # Even if this section looks crufty: it has the advantage of
2843 # actually working.
2844 break;;
2845 * )
2846 break;;
2847 esac
2848 done
2849 test "$ac_cv_exeext" = no && ac_cv_exeext=
2850
2851 else
2852 ac_file=''
2853 fi
2854
2855 { echo "$as_me:$LINENO: result: $ac_file" >&5
2856 echo "${ECHO_T}$ac_file" >&6; }
2857 if test -z "$ac_file"; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&2;}
2865 { (exit 77); exit 77; }; }
2866 fi
2867
2868 ac_exeext=$ac_cv_exeext
2869
2870 # Check that the compiler produces executables we can run. If not, either
2871 # the compiler is broken, or we cross compile.
2872 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875 # If not cross compiling, check that we can run a simple program.
2876 if test "$cross_compiling" != yes; then
2877 if { ac_try='./$ac_file'
2878 { (case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_try") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893 If you meant to cross compile, use \`--host'.
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot run C compiled programs.
2896 If you meant to cross compile, use \`--host'.
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900 fi
2901 fi
2902 { echo "$as_me:$LINENO: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6; }
2904
2905 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906 ac_clean_files=$ac_clean_files_save
2907 # Check that the compiler produces executables we can run. If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912 echo "${ECHO_T}$cross_compiling" >&6; }
2913
2914 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916 if { (ac_try="$ac_link"
2917 case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_link") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928 # work properly (i.e., refer to `conftest.exe'), while it won't with
2929 # `rm'.
2930 for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 break;;
2936 * ) break;;
2937 esac
2938 done
2939 else
2940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2945 fi
2946
2947 rm -f conftest$ac_cv_exeext
2948 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2950
2951 rm -f conftest.$ac_ext
2952 EXEEXT=$ac_cv_exeext
2953 ac_exeext=$EXEEXT
2954 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956 if test "${ac_cv_objext+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965
2966 int
2967 main ()
2968 {
2969
2970 ;
2971 return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.o conftest.obj
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
2985 for ac_file in conftest.o conftest.obj conftest.*; do
2986 test -f "$ac_file" || continue;
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 break;;
2991 esac
2992 done
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3002 fi
3003
3004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005 fi
3006 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007 echo "${ECHO_T}$ac_cv_objext" >&6; }
3008 OBJEXT=$ac_cv_objext
3009 ac_objext=$OBJEXT
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021
3022 int
3023 main ()
3024 {
3025 #ifndef __GNUC__
3026 choke me
3027 #endif
3028
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3050 ac_compiler_gnu=yes
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 ac_compiler_gnu=no
3056 fi
3057
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
3061 fi
3062 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3064 GCC=`test $ac_compiler_gnu = yes && echo yes`
3065 ac_test_CFLAGS=${CFLAGS+set}
3066 ac_save_CFLAGS=$CFLAGS
3067 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3068 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_cc_g+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 ac_save_c_werror_flag=$ac_c_werror_flag
3073 ac_c_werror_flag=yes
3074 ac_cv_prog_cc_g=no
3075 CFLAGS="-g"
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086
3087 ;
3088 return 0;
3089 }
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (ac_try="$ac_compile"
3093 case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_compile") 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } && {
3105 test -z "$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3107 } && test -s conftest.$ac_objext; then
3108 ac_cv_prog_cc_g=yes
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3146 :
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3185 ac_cv_prog_cc_g=yes
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3201 fi
3202 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3204 if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206 elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
3209 else
3210 CFLAGS="-g"
3211 fi
3212 else
3213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
3215 else
3216 CFLAGS=
3217 fi
3218 fi
3219 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_cc_c89+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 ac_cv_prog_cc_c89=no
3225 ac_save_CC=$CC
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <stdarg.h>
3233 #include <stdio.h>
3234 #include <sys/types.h>
3235 #include <sys/stat.h>
3236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237 struct buf { int x; };
3238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239 static char *e (p, i)
3240 char **p;
3241 int i;
3242 {
3243 return p[i];
3244 }
3245 static char *f (char * (*g) (char **, int), char **p, ...)
3246 {
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253 }
3254
3255 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
3258 as 'x'. The following induces an error, until -std is added to get
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
3261 that's true only with -std. */
3262 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266 #define FOO(x) 'x'
3267 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
3269 int test (int i, double x);
3270 struct s1 {int (*f) (int a);};
3271 struct s2 {int (*f) (double a);};
3272 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 int argc;
3274 char **argv;
3275 int
3276 main ()
3277 {
3278 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 do
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } && {
3301 test -z "$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3303 } && test -s conftest.$ac_objext; then
3304 ac_cv_prog_cc_c89=$ac_arg
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309
3310 fi
3311
3312 rm -f core conftest.err conftest.$ac_objext
3313 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 done
3315 rm -f conftest.$ac_ext
3316 CC=$ac_save_CC
3317
3318 fi
3319 # AC_CACHE_VAL
3320 case "x$ac_cv_prog_cc_c89" in
3321 x)
3322 { echo "$as_me:$LINENO: result: none needed" >&5
3323 echo "${ECHO_T}none needed" >&6; } ;;
3324 xno)
3325 { echo "$as_me:$LINENO: result: unsupported" >&5
3326 echo "${ECHO_T}unsupported" >&6; } ;;
3327 *)
3328 CC="$CC $ac_cv_prog_cc_c89"
3329 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3330 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3331 esac
3332
3333
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339 DEPDIR="${am__leading_dot}deps"
3340
3341 ac_config_commands="$ac_config_commands depfiles"
3342
3343
3344 am_make=${MAKE-make}
3345 cat > confinc << 'END'
3346 am__doit:
3347 @echo done
3348 .PHONY: am__doit
3349 END
3350 # If we don't find an include directive, just comment out the code.
3351 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3352 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3353 am__include="#"
3354 am__quote=
3355 _am_result=none
3356 # First try GNU make style include.
3357 echo "include confinc" > confmf
3358 # We grep out `Entering directory' and `Leaving directory'
3359 # messages which can occur if `w' ends up in MAKEFLAGS.
3360 # In particular we don't look at `^make:' because GNU make might
3361 # be invoked under some other name (usually "gmake"), in which
3362 # case it prints its new name instead of `make'.
3363 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3364 am__include=include
3365 am__quote=
3366 _am_result=GNU
3367 fi
3368 # Now try BSD make style include.
3369 if test "$am__include" = "#"; then
3370 echo '.include "confinc"' > confmf
3371 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3372 am__include=.include
3373 am__quote="\""
3374 _am_result=BSD
3375 fi
3376 fi
3377
3378
3379 { echo "$as_me:$LINENO: result: $_am_result" >&5
3380 echo "${ECHO_T}$_am_result" >&6; }
3381 rm -f confinc confmf
3382
3383 # Check whether --enable-dependency-tracking was given.
3384 if test "${enable_dependency_tracking+set}" = set; then
3385 enableval=$enable_dependency_tracking;
3386 fi
3387
3388 if test "x$enable_dependency_tracking" != xno; then
3389 am_depcomp="$ac_aux_dir/depcomp"
3390 AMDEPBACKSLASH='\'
3391 fi
3392 if test "x$enable_dependency_tracking" != xno; then
3393 AMDEP_TRUE=
3394 AMDEP_FALSE='#'
3395 else
3396 AMDEP_TRUE='#'
3397 AMDEP_FALSE=
3398 fi
3399
3400
3401
3402 depcc="$CC" am_compiler_list=
3403
3404 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3406 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410 # We make a subdir and do the tests there. Otherwise we can end up
3411 # making bogus files that we don't know about and never remove. For
3412 # instance it was reported that on HP-UX the gcc test will end up
3413 # making a dummy file named `D' -- because `-MD' means `put the output
3414 # in D'.
3415 mkdir conftest.dir
3416 # Copy depcomp to subdir because otherwise we won't find it if we're
3417 # using a relative directory.
3418 cp "$am_depcomp" conftest.dir
3419 cd conftest.dir
3420 # We will build objects and dependencies in a subdirectory because
3421 # it helps to detect inapplicable dependency modes. For instance
3422 # both Tru64's cc and ICC support -MD to output dependencies as a
3423 # side effect of compilation, but ICC will put the dependencies in
3424 # the current directory while Tru64 will put them in the object
3425 # directory.
3426 mkdir sub
3427
3428 am_cv_CC_dependencies_compiler_type=none
3429 if test "$am_compiler_list" = ""; then
3430 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431 fi
3432 for depmode in $am_compiler_list; do
3433 # Setup a source with many dependencies, because some compilers
3434 # like to wrap large dependency lists on column 80 (with \), and
3435 # we should not choose a depcomp mode which is confused by this.
3436 #
3437 # We need to recreate these files for each test, as the compiler may
3438 # overwrite some of them when testing with obscure command lines.
3439 # This happens at least with the AIX C compiler.
3440 : > sub/conftest.c
3441 for i in 1 2 3 4 5 6; do
3442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444 # Solaris 8's {/usr,}/bin/sh.
3445 touch sub/conftst$i.h
3446 done
3447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449 case $depmode in
3450 nosideeffect)
3451 # after this tag, mechanisms are not by side-effect, so they'll
3452 # only be used when explicitly requested
3453 if test "x$enable_dependency_tracking" = xyes; then
3454 continue
3455 else
3456 break
3457 fi
3458 ;;
3459 none) break ;;
3460 esac
3461 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462 # mode. It turns out that the SunPro C++ compiler does not properly
3463 # handle `-M -o', and we need to detect this.
3464 if depmode=$depmode \
3465 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468 >/dev/null 2>conftest.err &&
3469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3471 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3473 # icc doesn't choke on unknown options, it will just issue warnings
3474 # or remarks (even with -Werror). So we grep stderr for any message
3475 # that says an option was ignored or not supported.
3476 # When given -MP, icc 7.0 and 7.1 complain thusly:
3477 # icc: Command line warning: ignoring option '-M'; no argument required
3478 # The diagnosis changed in icc 8.0:
3479 # icc: Command line remark: option '-MP' not supported
3480 if (grep 'ignoring option' conftest.err ||
3481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3482 am_cv_CC_dependencies_compiler_type=$depmode
3483 break
3484 fi
3485 fi
3486 done
3487
3488 cd ..
3489 rm -rf conftest.dir
3490 else
3491 am_cv_CC_dependencies_compiler_type=none
3492 fi
3493
3494 fi
3495 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3496 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3498
3499 if
3500 test "x$enable_dependency_tracking" != xno \
3501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3502 am__fastdepCC_TRUE=
3503 am__fastdepCC_FALSE='#'
3504 else
3505 am__fastdepCC_TRUE='#'
3506 am__fastdepCC_FALSE=
3507 fi
3508
3509
3510 # Check whether --enable-shared was given.
3511 if test "${enable_shared+set}" = set; then
3512 enableval=$enable_shared; p=${PACKAGE-default}
3513 case $enableval in
3514 yes) enable_shared=yes ;;
3515 no) enable_shared=no ;;
3516 *)
3517 enable_shared=no
3518 # Look at the argument we got. We use all the common list separators.
3519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3520 for pkg in $enableval; do
3521 IFS="$lt_save_ifs"
3522 if test "X$pkg" = "X$p"; then
3523 enable_shared=yes
3524 fi
3525 done
3526 IFS="$lt_save_ifs"
3527 ;;
3528 esac
3529 else
3530 enable_shared=yes
3531 fi
3532
3533
3534 # Check whether --enable-static was given.
3535 if test "${enable_static+set}" = set; then
3536 enableval=$enable_static; p=${PACKAGE-default}
3537 case $enableval in
3538 yes) enable_static=yes ;;
3539 no) enable_static=no ;;
3540 *)
3541 enable_static=no
3542 # Look at the argument we got. We use all the common list separators.
3543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3544 for pkg in $enableval; do
3545 IFS="$lt_save_ifs"
3546 if test "X$pkg" = "X$p"; then
3547 enable_static=yes
3548 fi
3549 done
3550 IFS="$lt_save_ifs"
3551 ;;
3552 esac
3553 else
3554 enable_static=yes
3555 fi
3556
3557
3558 # Check whether --enable-fast-install was given.
3559 if test "${enable_fast_install+set}" = set; then
3560 enableval=$enable_fast_install; p=${PACKAGE-default}
3561 case $enableval in
3562 yes) enable_fast_install=yes ;;
3563 no) enable_fast_install=no ;;
3564 *)
3565 enable_fast_install=no
3566 # Look at the argument we got. We use all the common list separators.
3567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3568 for pkg in $enableval; do
3569 IFS="$lt_save_ifs"
3570 if test "X$pkg" = "X$p"; then
3571 enable_fast_install=yes
3572 fi
3573 done
3574 IFS="$lt_save_ifs"
3575 ;;
3576 esac
3577 else
3578 enable_fast_install=yes
3579 fi
3580
3581
3582 # Make sure we can run config.sub.
3583 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3584 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3585 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3586 { (exit 1); exit 1; }; }
3587
3588 { echo "$as_me:$LINENO: checking build system type" >&5
3589 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3590 if test "${ac_cv_build+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 ac_build_alias=$build_alias
3594 test "x$ac_build_alias" = x &&
3595 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3596 test "x$ac_build_alias" = x &&
3597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3598 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3599 { (exit 1); exit 1; }; }
3600 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3604
3605 fi
3606 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3607 echo "${ECHO_T}$ac_cv_build" >&6; }
3608 case $ac_cv_build in
3609 *-*-*) ;;
3610 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3611 echo "$as_me: error: invalid value of canonical build" >&2;}
3612 { (exit 1); exit 1; }; };;
3613 esac
3614 build=$ac_cv_build
3615 ac_save_IFS=$IFS; IFS='-'
3616 set x $ac_cv_build
3617 shift
3618 build_cpu=$1
3619 build_vendor=$2
3620 shift; shift
3621 # Remember, the first character of IFS is used to create $*,
3622 # except with old shells:
3623 build_os=$*
3624 IFS=$ac_save_IFS
3625 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3626
3627
3628 { echo "$as_me:$LINENO: checking host system type" >&5
3629 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3630 if test "${ac_cv_host+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 if test "x$host_alias" = x; then
3634 ac_cv_host=$ac_cv_build
3635 else
3636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3637 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3638 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3639 { (exit 1); exit 1; }; }
3640 fi
3641
3642 fi
3643 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3644 echo "${ECHO_T}$ac_cv_host" >&6; }
3645 case $ac_cv_host in
3646 *-*-*) ;;
3647 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3648 echo "$as_me: error: invalid value of canonical host" >&2;}
3649 { (exit 1); exit 1; }; };;
3650 esac
3651 host=$ac_cv_host
3652 ac_save_IFS=$IFS; IFS='-'
3653 set x $ac_cv_host
3654 shift
3655 host_cpu=$1
3656 host_vendor=$2
3657 shift; shift
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3660 host_os=$*
3661 IFS=$ac_save_IFS
3662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3663
3664
3665 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3666 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3667 if test "${lt_cv_path_SED+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 # Loop through the user's path and test for sed and gsed.
3671 # Then use that list of sed's as ones to test for truncation.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for lt_ac_prog in sed gsed; do
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3680 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3681 fi
3682 done
3683 done
3684 done
3685 IFS=$as_save_IFS
3686 lt_ac_max=0
3687 lt_ac_count=0
3688 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3689 # along with /bin/sed that truncates output.
3690 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3691 test ! -f $lt_ac_sed && continue
3692 cat /dev/null > conftest.in
3693 lt_ac_count=0
3694 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3695 # Check for GNU sed and select it if it is found.
3696 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3697 lt_cv_path_SED=$lt_ac_sed
3698 break
3699 fi
3700 while true; do
3701 cat conftest.in conftest.in >conftest.tmp
3702 mv conftest.tmp conftest.in
3703 cp conftest.in conftest.nl
3704 echo >>conftest.nl
3705 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3706 cmp -s conftest.out conftest.nl || break
3707 # 10000 chars as input seems more than enough
3708 test $lt_ac_count -gt 10 && break
3709 lt_ac_count=`expr $lt_ac_count + 1`
3710 if test $lt_ac_count -gt $lt_ac_max; then
3711 lt_ac_max=$lt_ac_count
3712 lt_cv_path_SED=$lt_ac_sed
3713 fi
3714 done
3715 done
3716
3717 fi
3718
3719 SED=$lt_cv_path_SED
3720
3721 { echo "$as_me:$LINENO: result: $SED" >&5
3722 echo "${ECHO_T}$SED" >&6; }
3723
3724 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3725 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_GREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 # Extract the first word of "grep ggrep" to use in msg output
3730 if test -z "$GREP"; then
3731 set dummy grep ggrep; ac_prog_name=$2
3732 if test "${ac_cv_path_GREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 ac_path_GREP_found=false
3736 # Loop through the user's path and test for each of PROGNAME-LIST
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_prog in grep ggrep; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3745 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3746 # Check for GNU ac_path_GREP and select it if it is found.
3747 # Check for GNU $ac_path_GREP
3748 case `"$ac_path_GREP" --version 2>&1` in
3749 *GNU*)
3750 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3751 *)
3752 ac_count=0
3753 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3754 while :
3755 do
3756 cat "conftest.in" "conftest.in" >"conftest.tmp"
3757 mv "conftest.tmp" "conftest.in"
3758 cp "conftest.in" "conftest.nl"
3759 echo 'GREP' >> "conftest.nl"
3760 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3762 ac_count=`expr $ac_count + 1`
3763 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3764 # Best one so far, save it but keep looking for a better one
3765 ac_cv_path_GREP="$ac_path_GREP"
3766 ac_path_GREP_max=$ac_count
3767 fi
3768 # 10*(2^10) chars as input seems more than enough
3769 test $ac_count -gt 10 && break
3770 done
3771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3772 esac
3773
3774
3775 $ac_path_GREP_found && break 3
3776 done
3777 done
3778
3779 done
3780 IFS=$as_save_IFS
3781
3782
3783 fi
3784
3785 GREP="$ac_cv_path_GREP"
3786 if test -z "$GREP"; then
3787 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3788 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3789 { (exit 1); exit 1; }; }
3790 fi
3791
3792 else
3793 ac_cv_path_GREP=$GREP
3794 fi
3795
3796
3797 fi
3798 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3799 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3800 GREP="$ac_cv_path_GREP"
3801
3802
3803 { echo "$as_me:$LINENO: checking for egrep" >&5
3804 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3805 if test "${ac_cv_path_EGREP+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3809 then ac_cv_path_EGREP="$GREP -E"
3810 else
3811 # Extract the first word of "egrep" to use in msg output
3812 if test -z "$EGREP"; then
3813 set dummy egrep; ac_prog_name=$2
3814 if test "${ac_cv_path_EGREP+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 ac_path_EGREP_found=false
3818 # Loop through the user's path and test for each of PROGNAME-LIST
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_prog in egrep; do
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3827 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3828 # Check for GNU ac_path_EGREP and select it if it is found.
3829 # Check for GNU $ac_path_EGREP
3830 case `"$ac_path_EGREP" --version 2>&1` in
3831 *GNU*)
3832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3833 *)
3834 ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3836 while :
3837 do
3838 cat "conftest.in" "conftest.in" >"conftest.tmp"
3839 mv "conftest.tmp" "conftest.in"
3840 cp "conftest.in" "conftest.nl"
3841 echo 'EGREP' >> "conftest.nl"
3842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3844 ac_count=`expr $ac_count + 1`
3845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3846 # Best one so far, save it but keep looking for a better one
3847 ac_cv_path_EGREP="$ac_path_EGREP"
3848 ac_path_EGREP_max=$ac_count
3849 fi
3850 # 10*(2^10) chars as input seems more than enough
3851 test $ac_count -gt 10 && break
3852 done
3853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 esac
3855
3856
3857 $ac_path_EGREP_found && break 3
3858 done
3859 done
3860
3861 done
3862 IFS=$as_save_IFS
3863
3864
3865 fi
3866
3867 EGREP="$ac_cv_path_EGREP"
3868 if test -z "$EGREP"; then
3869 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3870 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3871 { (exit 1); exit 1; }; }
3872 fi
3873
3874 else
3875 ac_cv_path_EGREP=$EGREP
3876 fi
3877
3878
3879 fi
3880 fi
3881 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3882 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3883 EGREP="$ac_cv_path_EGREP"
3884
3885
3886
3887 # Check whether --with-gnu-ld was given.
3888 if test "${with_gnu_ld+set}" = set; then
3889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3890 else
3891 with_gnu_ld=no
3892 fi
3893
3894 ac_prog=ld
3895 if test "$GCC" = yes; then
3896 # Check if gcc -print-prog-name=ld gives a path.
3897 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3898 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3899 case $host in
3900 *-*-mingw*)
3901 # gcc leaves a trailing carriage return which upsets mingw
3902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3903 *)
3904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3905 esac
3906 case $ac_prog in
3907 # Accept absolute paths.
3908 [\\/]* | ?:[\\/]*)
3909 re_direlt='/[^/][^/]*/\.\./'
3910 # Canonicalize the pathname of ld
3911 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3912 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3913 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3914 done
3915 test -z "$LD" && LD="$ac_prog"
3916 ;;
3917 "")
3918 # If it fails, then pretend we aren't using GCC.
3919 ac_prog=ld
3920 ;;
3921 *)
3922 # If it is relative, then search for the first ld in PATH.
3923 with_gnu_ld=unknown
3924 ;;
3925 esac
3926 elif test "$with_gnu_ld" = yes; then
3927 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3928 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3929 else
3930 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3931 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3932 fi
3933 if test "${lt_cv_path_LD+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 if test -z "$LD"; then
3937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3938 for ac_dir in $PATH; do
3939 IFS="$lt_save_ifs"
3940 test -z "$ac_dir" && ac_dir=.
3941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3942 lt_cv_path_LD="$ac_dir/$ac_prog"
3943 # Check to see if the program is GNU ld. I'd rather use --version,
3944 # but apparently some variants of GNU ld only accept -v.
3945 # Break only if it was the GNU/non-GNU ld that we prefer.
3946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3947 *GNU* | *'with BFD'*)
3948 test "$with_gnu_ld" != no && break
3949 ;;
3950 *)
3951 test "$with_gnu_ld" != yes && break
3952 ;;
3953 esac
3954 fi
3955 done
3956 IFS="$lt_save_ifs"
3957 else
3958 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3959 fi
3960 fi
3961
3962 LD="$lt_cv_path_LD"
3963 if test -n "$LD"; then
3964 { echo "$as_me:$LINENO: result: $LD" >&5
3965 echo "${ECHO_T}$LD" >&6; }
3966 else
3967 { echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6; }
3969 fi
3970 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3971 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3972 { (exit 1); exit 1; }; }
3973 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3974 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3975 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3979 case `$LD -v 2>&1 </dev/null` in
3980 *GNU* | *'with BFD'*)
3981 lt_cv_prog_gnu_ld=yes
3982 ;;
3983 *)
3984 lt_cv_prog_gnu_ld=no
3985 ;;
3986 esac
3987 fi
3988 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3989 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3990 with_gnu_ld=$lt_cv_prog_gnu_ld
3991
3992
3993 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3994 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3995 if test "${lt_cv_ld_reload_flag+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 lt_cv_ld_reload_flag='-r'
3999 fi
4000 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4001 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4002 reload_flag=$lt_cv_ld_reload_flag
4003 case $reload_flag in
4004 "" | " "*) ;;
4005 *) reload_flag=" $reload_flag" ;;
4006 esac
4007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4008 case $host_os in
4009 darwin*)
4010 if test "$GCC" = yes; then
4011 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4012 else
4013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4014 fi
4015 ;;
4016 esac
4017
4018 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4019 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4020 if test "${lt_cv_path_NM+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 if test -n "$NM"; then
4024 # Let the user override the test.
4025 lt_cv_path_NM="$NM"
4026 else
4027 lt_nm_to_check="${ac_tool_prefix}nm"
4028 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4029 lt_nm_to_check="$lt_nm_to_check nm"
4030 fi
4031 for lt_tmp_nm in $lt_nm_to_check; do
4032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4033 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4034 IFS="$lt_save_ifs"
4035 test -z "$ac_dir" && ac_dir=.
4036 tmp_nm="$ac_dir/$lt_tmp_nm"
4037 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4038 # Check to see if the nm accepts a BSD-compat flag.
4039 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4040 # nm: unknown option "B" ignored
4041 # Tru64's nm complains that /dev/null is an invalid object file
4042 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4043 */dev/null* | *'Invalid file or object type'*)
4044 lt_cv_path_NM="$tmp_nm -B"
4045 break
4046 ;;
4047 *)
4048 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4049 */dev/null*)
4050 lt_cv_path_NM="$tmp_nm -p"
4051 break
4052 ;;
4053 *)
4054 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4055 continue # so that we can try to find one that supports BSD flags
4056 ;;
4057 esac
4058 ;;
4059 esac
4060 fi
4061 done
4062 IFS="$lt_save_ifs"
4063 done
4064 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4065 fi
4066 fi
4067 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4068 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4069 NM="$lt_cv_path_NM"
4070
4071 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4072 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4073 LN_S=$as_ln_s
4074 if test "$LN_S" = "ln -s"; then
4075 { echo "$as_me:$LINENO: result: yes" >&5
4076 echo "${ECHO_T}yes" >&6; }
4077 else
4078 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4079 echo "${ECHO_T}no, using $LN_S" >&6; }
4080 fi
4081
4082 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4083 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4084 if test "${lt_cv_deplibs_check_method+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 lt_cv_file_magic_cmd='$MAGIC_CMD'
4088 lt_cv_file_magic_test_file=
4089 lt_cv_deplibs_check_method='unknown'
4090 # Need to set the preceding variable on all platforms that support
4091 # interlibrary dependencies.
4092 # 'none' -- dependencies not supported.
4093 # `unknown' -- same as none, but documents that we really don't know.
4094 # 'pass_all' -- all dependencies passed with no checks.
4095 # 'test_compile' -- check by making test program.
4096 # 'file_magic [[regex]]' -- check by looking for files in library path
4097 # which responds to the $file_magic_cmd with a given extended regex.
4098 # If you have `file' or equivalent on your system and you're not sure
4099 # whether `pass_all' will *always* work, you probably want this one.
4100
4101 case $host_os in
4102 aix4* | aix5*)
4103 lt_cv_deplibs_check_method=pass_all
4104 ;;
4105
4106 beos*)
4107 lt_cv_deplibs_check_method=pass_all
4108 ;;
4109
4110 bsdi[45]*)
4111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4112 lt_cv_file_magic_cmd='/usr/bin/file -L'
4113 lt_cv_file_magic_test_file=/shlib/libc.so
4114 ;;
4115
4116 cygwin*)
4117 # func_win32_libid is a shell function defined in ltmain.sh
4118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4119 lt_cv_file_magic_cmd='func_win32_libid'
4120 ;;
4121
4122 mingw* | pw32*)
4123 # Base MSYS/MinGW do not provide the 'file' command needed by
4124 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4125 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4126 lt_cv_file_magic_cmd='$OBJDUMP -f'
4127 ;;
4128
4129 darwin* | rhapsody*)
4130 lt_cv_deplibs_check_method=pass_all
4131 ;;
4132
4133 freebsd* | kfreebsd*-gnu | dragonfly*)
4134 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4135 case $host_cpu in
4136 i*86 )
4137 # Not sure whether the presence of OpenBSD here was a mistake.
4138 # Let's accept both of them until this is cleared up.
4139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4140 lt_cv_file_magic_cmd=/usr/bin/file
4141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4142 ;;
4143 esac
4144 else
4145 lt_cv_deplibs_check_method=pass_all
4146 fi
4147 ;;
4148
4149 gnu*)
4150 lt_cv_deplibs_check_method=pass_all
4151 ;;
4152
4153 hpux10.20* | hpux11*)
4154 lt_cv_file_magic_cmd=/usr/bin/file
4155 case $host_cpu in
4156 ia64*)
4157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4159 ;;
4160 hppa*64*)
4161 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]'
4162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4163 ;;
4164 *)
4165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4167 ;;
4168 esac
4169 ;;
4170
4171 interix3*)
4172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4174 ;;
4175
4176 irix5* | irix6* | nonstopux*)
4177 case $LD in
4178 *-32|*"-32 ") libmagic=32-bit;;
4179 *-n32|*"-n32 ") libmagic=N32;;
4180 *-64|*"-64 ") libmagic=64-bit;;
4181 *) libmagic=never-match;;
4182 esac
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
4185
4186 # This must be Linux ELF.
4187 linux*)
4188 lt_cv_deplibs_check_method=pass_all
4189 ;;
4190
4191 netbsd*)
4192 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 else
4195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4196 fi
4197 ;;
4198
4199 newos6*)
4200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4201 lt_cv_file_magic_cmd=/usr/bin/file
4202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4203 ;;
4204
4205 nto-qnx*)
4206 lt_cv_deplibs_check_method=unknown
4207 ;;
4208
4209 openbsd*)
4210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4212 else
4213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4214 fi
4215 ;;
4216
4217 osf3* | osf4* | osf5*)
4218 lt_cv_deplibs_check_method=pass_all
4219 ;;
4220
4221 solaris*)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224
4225 sysv4 | sysv4.3*)
4226 case $host_vendor in
4227 motorola)
4228 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]'
4229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4230 ;;
4231 ncr)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 sequent)
4235 lt_cv_file_magic_cmd='/bin/file'
4236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4237 ;;
4238 sni)
4239 lt_cv_file_magic_cmd='/bin/file'
4240 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4241 lt_cv_file_magic_test_file=/lib/libc.so
4242 ;;
4243 siemens)
4244 lt_cv_deplibs_check_method=pass_all
4245 ;;
4246 pc)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249 esac
4250 ;;
4251
4252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4253 lt_cv_deplibs_check_method=pass_all
4254 ;;
4255 esac
4256
4257 fi
4258 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4259 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4260 file_magic_cmd=$lt_cv_file_magic_cmd
4261 deplibs_check_method=$lt_cv_deplibs_check_method
4262 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4263
4264
4265
4266
4267 # If no C compiler was specified, use CC.
4268 LTCC=${LTCC-"$CC"}
4269
4270 # If no C compiler flags were specified, use CFLAGS.
4271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4272
4273 # Allow CC to be a program name with arguments.
4274 compiler=$CC
4275
4276
4277 # Check whether --enable-libtool-lock was given.
4278 if test "${enable_libtool_lock+set}" = set; then
4279 enableval=$enable_libtool_lock;
4280 fi
4281
4282 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4283
4284 # Some flags need to be propagated to the compiler or linker for good
4285 # libtool support.
4286 case $host in
4287 ia64-*-hpux*)
4288 # Find out which ABI we are using.
4289 echo 'int i;' > conftest.$ac_ext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; then
4295 case `/usr/bin/file conftest.$ac_objext` in
4296 *ELF-32*)
4297 HPUX_IA64_MODE="32"
4298 ;;
4299 *ELF-64*)
4300 HPUX_IA64_MODE="64"
4301 ;;
4302 esac
4303 fi
4304 rm -rf conftest*
4305 ;;
4306 *-*-irix6*)
4307 # Find out which ABI we are using.
4308 echo '#line 4308 "configure"' > conftest.$ac_ext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; then
4314 if test "$lt_cv_prog_gnu_ld" = yes; then
4315 case `/usr/bin/file conftest.$ac_objext` in
4316 *32-bit*)
4317 LD="${LD-ld} -melf32bsmip"
4318 ;;
4319 *N32*)
4320 LD="${LD-ld} -melf32bmipn32"
4321 ;;
4322 *64-bit*)
4323 LD="${LD-ld} -melf64bmip"
4324 ;;
4325 esac
4326 else
4327 case `/usr/bin/file conftest.$ac_objext` in
4328 *32-bit*)
4329 LD="${LD-ld} -32"
4330 ;;
4331 *N32*)
4332 LD="${LD-ld} -n32"
4333 ;;
4334 *64-bit*)
4335 LD="${LD-ld} -64"
4336 ;;
4337 esac
4338 fi
4339 fi
4340 rm -rf conftest*
4341 ;;
4342
4343 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4344 # Find out which ABI we are using.
4345 echo 'int i;' > conftest.$ac_ext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; then
4351 case `/usr/bin/file conftest.o` in
4352 *32-bit*)
4353 case $host in
4354 x86_64-*linux*)
4355 LD="${LD-ld} -m elf_i386"
4356 ;;
4357 ppc64-*linux*|powerpc64-*linux*)
4358 LD="${LD-ld} -m elf32ppclinux"
4359 ;;
4360 s390x-*linux*)
4361 LD="${LD-ld} -m elf_s390"
4362 ;;
4363 sparc64-*linux*)
4364 LD="${LD-ld} -m elf32_sparc"
4365 ;;
4366 esac
4367 ;;
4368 *64-bit*)
4369 case $host in
4370 x86_64-*linux*)
4371 LD="${LD-ld} -m elf_x86_64"
4372 ;;
4373 ppc*-*linux*|powerpc*-*linux*)
4374 LD="${LD-ld} -m elf64ppc"
4375 ;;
4376 s390*-*linux*)
4377 LD="${LD-ld} -m elf64_s390"
4378 ;;
4379 sparc*-*linux*)
4380 LD="${LD-ld} -m elf64_sparc"
4381 ;;
4382 esac
4383 ;;
4384 esac
4385 fi
4386 rm -rf conftest*
4387 ;;
4388
4389 *-*-sco3.2v5*)
4390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4391 SAVE_CFLAGS="$CFLAGS"
4392 CFLAGS="$CFLAGS -belf"
4393 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4394 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4395 if test "${lt_cv_cc_needs_belf+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410
4411 int
4412 main ()
4413 {
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 rm -f conftest.$ac_objext conftest$ac_exeext
4420 if { (ac_try="$ac_link"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_link") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest$ac_exeext &&
4436 $as_test_x conftest$ac_exeext; then
4437 lt_cv_cc_needs_belf=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 lt_cv_cc_needs_belf=no
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446 conftest$ac_exeext conftest.$ac_ext
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453 fi
4454 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4455 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4456 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4457 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4458 CFLAGS="$SAVE_CFLAGS"
4459 fi
4460 ;;
4461 sparc*-*solaris*)
4462 # Find out which ABI we are using.
4463 echo 'int i;' > conftest.$ac_ext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; then
4469 case `/usr/bin/file conftest.o` in
4470 *64-bit*)
4471 case $lt_cv_prog_gnu_ld in
4472 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4473 *) LD="${LD-ld} -64" ;;
4474 esac
4475 ;;
4476 esac
4477 fi
4478 rm -rf conftest*
4479 ;;
4480
4481
4482 esac
4483
4484 need_locks="$enable_libtool_lock"
4485
4486
4487 ac_ext=c
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4493 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4494 # On Suns, sometimes $CPP names a directory.
4495 if test -n "$CPP" && test -d "$CPP"; then
4496 CPP=
4497 fi
4498 if test -z "$CPP"; then
4499 if test "${ac_cv_prog_CPP+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 # Double quotes because CPP needs to be expanded
4503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4504 do
4505 ac_preproc_ok=false
4506 for ac_c_preproc_warn_flag in '' yes
4507 do
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #ifdef __STDC__
4521 # include <limits.h>
4522 #else
4523 # include <assert.h>
4524 #endif
4525 Syntax error
4526 _ACEOF
4527 if { (ac_try="$ac_cpp conftest.$ac_ext"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } >/dev/null && {
4540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4541 test ! -s conftest.err
4542 }; then
4543 :
4544 else
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 # Broken: fails on valid input.
4549 continue
4550 fi
4551
4552 rm -f conftest.err conftest.$ac_ext
4553
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <ac_nonexistent.h>
4563 _ACEOF
4564 if { (ac_try="$ac_cpp conftest.$ac_ext"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } >/dev/null && {
4577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 }; then
4580 # Broken: success on invalid input.
4581 continue
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 # Passes both tests.
4587 ac_preproc_ok=:
4588 break
4589 fi
4590
4591 rm -f conftest.err conftest.$ac_ext
4592
4593 done
4594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595 rm -f conftest.err conftest.$ac_ext
4596 if $ac_preproc_ok; then
4597 break
4598 fi
4599
4600 done
4601 ac_cv_prog_CPP=$CPP
4602
4603 fi
4604 CPP=$ac_cv_prog_CPP
4605 else
4606 ac_cv_prog_CPP=$CPP
4607 fi
4608 { echo "$as_me:$LINENO: result: $CPP" >&5
4609 echo "${ECHO_T}$CPP" >&6; }
4610 ac_preproc_ok=false
4611 for ac_c_preproc_warn_flag in '' yes
4612 do
4613 # Use a header file that comes with gcc, so configuring glibc
4614 # with a fresh cross-compiler works.
4615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616 # <limits.h> exists even on freestanding compilers.
4617 # On the NeXT, cc -E runs the code through the compiler's parser,
4618 # not just through cpp. "Syntax error" is here to catch this case.
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #ifdef __STDC__
4626 # include <limits.h>
4627 #else
4628 # include <assert.h>
4629 #endif
4630 Syntax error
4631 _ACEOF
4632 if { (ac_try="$ac_cpp conftest.$ac_ext"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } >/dev/null && {
4645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4646 test ! -s conftest.err
4647 }; then
4648 :
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 # Broken: fails on valid input.
4654 continue
4655 fi
4656
4657 rm -f conftest.err conftest.$ac_ext
4658
4659 # OK, works on sane cases. Now check whether nonexistent headers
4660 # can be detected and how.
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #include <ac_nonexistent.h>
4668 _ACEOF
4669 if { (ac_try="$ac_cpp conftest.$ac_ext"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } >/dev/null && {
4682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 }; then
4685 # Broken: success on invalid input.
4686 continue
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695
4696 rm -f conftest.err conftest.$ac_ext
4697
4698 done
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then
4702 :
4703 else
4704 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4707 See \`config.log' for more details." >&2;}
4708 { (exit 1); exit 1; }; }
4709 fi
4710
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4720 if test "${ac_cv_header_stdc+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 #include <stdlib.h>
4730 #include <stdarg.h>
4731 #include <string.h>
4732 #include <float.h>
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_c_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest.$ac_objext; then
4759 ac_cv_header_stdc=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 ac_cv_header_stdc=no
4765 fi
4766
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768
4769 if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <string.h>
4778
4779 _ACEOF
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev/null 2>&1; then
4782 :
4783 else
4784 ac_cv_header_stdc=no
4785 fi
4786 rm -f conftest*
4787
4788 fi
4789
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <stdlib.h>
4799
4800 _ACEOF
4801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802 $EGREP "free" >/dev/null 2>&1; then
4803 :
4804 else
4805 ac_cv_header_stdc=no
4806 fi
4807 rm -f conftest*
4808
4809 fi
4810
4811 if test $ac_cv_header_stdc = yes; then
4812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813 if test "$cross_compiling" = yes; then
4814 :
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <ctype.h>
4823 #include <stdlib.h>
4824 #if ((' ' & 0x0FF) == 0x020)
4825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4827 #else
4828 # define ISLOWER(c) \
4829 (('a' <= (c) && (c) <= 'i') \
4830 || ('j' <= (c) && (c) <= 'r') \
4831 || ('s' <= (c) && (c) <= 'z'))
4832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4833 #endif
4834
4835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4836 int
4837 main ()
4838 {
4839 int i;
4840 for (i = 0; i < 256; i++)
4841 if (XOR (islower (i), ISLOWER (i))
4842 || toupper (i) != TOUPPER (i))
4843 return 2;
4844 return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest$ac_exeext
4848 if { (ac_try="$ac_link"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_link") 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4858 { (case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_try") 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 :
4868 else
4869 echo "$as_me: program exited with status $ac_status" >&5
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ( exit $ac_status )
4874 ac_cv_header_stdc=no
4875 fi
4876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4877 fi
4878
4879
4880 fi
4881 fi
4882 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4883 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4884 if test $ac_cv_header_stdc = yes; then
4885
4886 cat >>confdefs.h <<\_ACEOF
4887 #define STDC_HEADERS 1
4888 _ACEOF
4889
4890 fi
4891
4892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4903 inttypes.h stdint.h unistd.h
4904 do
4905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4918
4919 #include <$ac_header>
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_compile") 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } && {
4935 test -z "$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4937 } && test -s conftest.$ac_objext; then
4938 eval "$as_ac_Header=yes"
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 eval "$as_ac_Header=no"
4944 fi
4945
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 ac_res=`eval echo '${'$as_ac_Header'}'`
4949 { echo "$as_me:$LINENO: result: $ac_res" >&5
4950 echo "${ECHO_T}$ac_res" >&6; }
4951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4952 cat >>confdefs.h <<_ACEOF
4953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4954 _ACEOF
4955
4956 fi
4957
4958 done
4959
4960
4961
4962 for ac_header in dlfcn.h
4963 do
4964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 fi
4971 ac_res=`eval echo '${'$as_ac_Header'}'`
4972 { echo "$as_me:$LINENO: result: $ac_res" >&5
4973 echo "${ECHO_T}$ac_res" >&6; }
4974 else
4975 # Is the header compilable?
4976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4985 #include <$ac_header>
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (ac_try="$ac_compile"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compile") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
5004 ac_header_compiler=yes
5005 else
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_header_compiler=no
5010 fi
5011
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5014 echo "${ECHO_T}$ac_header_compiler" >&6; }
5015
5016 # Is the header present?
5017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <$ac_header>
5026 _ACEOF
5027 if { (ac_try="$ac_cpp conftest.$ac_ext"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } >/dev/null && {
5040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 }; then
5043 ac_header_preproc=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ac_header_preproc=no
5049 fi
5050
5051 rm -f conftest.err conftest.$ac_ext
5052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053 echo "${ECHO_T}$ac_header_preproc" >&6; }
5054
5055 # So? What about this header?
5056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057 yes:no: )
5058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5063 ;;
5064 no:yes:* )
5065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5077
5078 ;;
5079 esac
5080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 eval "$as_ac_Header=\$ac_header_preproc"
5086 fi
5087 ac_res=`eval echo '${'$as_ac_Header'}'`
5088 { echo "$as_me:$LINENO: result: $ac_res" >&5
5089 echo "${ECHO_T}$ac_res" >&6; }
5090
5091 fi
5092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095 _ACEOF
5096
5097 fi
5098
5099 done
5100
5101 ac_ext=cpp
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 if test -z "$CXX"; then
5107 if test -n "$CCC"; then
5108 CXX=$CCC
5109 else
5110 if test -n "$ac_tool_prefix"; then
5111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112 do
5113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_CXX+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 if test -n "$CXX"; then
5121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 CXX=$ac_cv_prog_CXX
5141 if test -n "$CXX"; then
5142 { echo "$as_me:$LINENO: result: $CXX" >&5
5143 echo "${ECHO_T}$CXX" >&6; }
5144 else
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150 test -n "$CXX" && break
5151 done
5152 fi
5153 if test -z "$CXX"; then
5154 ac_ct_CXX=$CXX
5155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5156 do
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_CXX"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_ac_ct_CXX="$ac_prog"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5185 if test -n "$ac_ct_CXX"; then
5186 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5187 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5188 else
5189 { echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6; }
5191 fi
5192
5193
5194 test -n "$ac_ct_CXX" && break
5195 done
5196
5197 if test "x$ac_ct_CXX" = x; then
5198 CXX="g++"
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5203 whose name does not start with the host triplet. If you think this
5204 configuration is useful to you, please write to [email protected]." >&5
5205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5206 whose name does not start with the host triplet. If you think this
5207 configuration is useful to you, please write to [email protected]." >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 CXX=$ac_ct_CXX
5211 fi
5212 fi
5213
5214 fi
5215 fi
5216 # Provide some information about the compiler.
5217 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5218 ac_compiler=`set X $ac_compile; echo $2`
5219 { (ac_try="$ac_compiler --version >&5"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_compiler --version >&5") 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }
5229 { (ac_try="$ac_compiler -v >&5"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compiler -v >&5") 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }
5239 { (ac_try="$ac_compiler -V >&5"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compiler -V >&5") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }
5249
5250 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5251 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5252 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h. */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261
5262 int
5263 main ()
5264 {
5265 #ifndef __GNUC__
5266 choke me
5267 #endif
5268
5269 ;
5270 return 0;
5271 }
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_cxx_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_compiler_gnu=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_compiler_gnu=no
5296 fi
5297
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5300
5301 fi
5302 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5303 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5304 GXX=`test $ac_compiler_gnu = yes && echo yes`
5305 ac_test_CXXFLAGS=${CXXFLAGS+set}
5306 ac_save_CXXFLAGS=$CXXFLAGS
5307 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5308 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_cxx_g+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5313 ac_cxx_werror_flag=yes
5314 ac_cv_prog_cxx_g=no
5315 CXXFLAGS="-g"
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322
5323 int
5324 main ()
5325 {
5326
5327 ;
5328 return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_cxx_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 ac_cv_prog_cxx_g=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 CXXFLAGS=""
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360
5361 int
5362 main ()
5363 {
5364
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (ac_try="$ac_compile"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_cxx_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest.$ac_objext; then
5386 :
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5392 CXXFLAGS="-g"
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399
5400 int
5401 main ()
5402 {
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (ac_try="$ac_compile"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compile") 2>conftest.er1
5416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && {
5422 test -z "$ac_cxx_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
5425 ac_cv_prog_cxx_g=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430
5431 fi
5432
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 fi
5435
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5441 fi
5442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5443 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5444 if test "$ac_test_CXXFLAGS" = set; then
5445 CXXFLAGS=$ac_save_CXXFLAGS
5446 elif test $ac_cv_prog_cxx_g = yes; then
5447 if test "$GXX" = yes; then
5448 CXXFLAGS="-g -O2"
5449 else
5450 CXXFLAGS="-g"
5451 fi
5452 else
5453 if test "$GXX" = yes; then
5454 CXXFLAGS="-O2"
5455 else
5456 CXXFLAGS=
5457 fi
5458 fi
5459 ac_ext=cpp
5460 ac_cpp='$CXXCPP $CPPFLAGS'
5461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5464
5465 depcc="$CXX" am_compiler_list=
5466
5467 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5468 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5469 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5477 # in D'.
5478 mkdir conftest.dir
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5482 cd conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5488 # directory.
5489 mkdir sub
5490
5491 am_cv_CXX_dependencies_compiler_type=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494 fi
5495 for depmode in $am_compiler_list; do
5496 # Setup a source with many dependencies, because some compilers
5497 # like to wrap large dependency lists on column 80 (with \), and
5498 # we should not choose a depcomp mode which is confused by this.
5499 #
5500 # We need to recreate these files for each test, as the compiler may
5501 # overwrite some of them when testing with obscure command lines.
5502 # This happens at least with the AIX C compiler.
5503 : > sub/conftest.c
5504 for i in 1 2 3 4 5 6; do
5505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5506 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5507 # Solaris 8's {/usr,}/bin/sh.
5508 touch sub/conftst$i.h
5509 done
5510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511
5512 case $depmode in
5513 nosideeffect)
5514 # after this tag, mechanisms are not by side-effect, so they'll
5515 # only be used when explicitly requested
5516 if test "x$enable_dependency_tracking" = xyes; then
5517 continue
5518 else
5519 break
5520 fi
5521 ;;
5522 none) break ;;
5523 esac
5524 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5525 # mode. It turns out that the SunPro C++ compiler does not properly
5526 # handle `-M -o', and we need to detect this.
5527 if depmode=$depmode \
5528 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5530 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5531 >/dev/null 2>conftest.err &&
5532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5534 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5536 # icc doesn't choke on unknown options, it will just issue warnings
5537 # or remarks (even with -Werror). So we grep stderr for any message
5538 # that says an option was ignored or not supported.
5539 # When given -MP, icc 7.0 and 7.1 complain thusly:
5540 # icc: Command line warning: ignoring option '-M'; no argument required
5541 # The diagnosis changed in icc 8.0:
5542 # icc: Command line remark: option '-MP' not supported
5543 if (grep 'ignoring option' conftest.err ||
5544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5545 am_cv_CXX_dependencies_compiler_type=$depmode
5546 break
5547 fi
5548 fi
5549 done
5550
5551 cd ..
5552 rm -rf conftest.dir
5553 else
5554 am_cv_CXX_dependencies_compiler_type=none
5555 fi
5556
5557 fi
5558 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5559 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5560 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5561
5562 if
5563 test "x$enable_dependency_tracking" != xno \
5564 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5565 am__fastdepCXX_TRUE=
5566 am__fastdepCXX_FALSE='#'
5567 else
5568 am__fastdepCXX_TRUE='#'
5569 am__fastdepCXX_FALSE=
5570 fi
5571
5572
5573
5574
5575 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5576 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5577 (test "X$CXX" != "Xg++"))) ; then
5578 ac_ext=cpp
5579 ac_cpp='$CXXCPP $CPPFLAGS'
5580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5583 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5584 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5585 if test -z "$CXXCPP"; then
5586 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 # Double quotes because CXXCPP needs to be expanded
5590 for CXXCPP in "$CXX -E" "/lib/cpp"
5591 do
5592 ac_preproc_ok=false
5593 for ac_cxx_preproc_warn_flag in '' yes
5594 do
5595 # Use a header file that comes with gcc, so configuring glibc
5596 # with a fresh cross-compiler works.
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 # <limits.h> exists even on freestanding compilers.
5599 # On the NeXT, cc -E runs the code through the compiler's parser,
5600 # not just through cpp. "Syntax error" is here to catch this case.
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 #ifdef __STDC__
5608 # include <limits.h>
5609 #else
5610 # include <assert.h>
5611 #endif
5612 Syntax error
5613 _ACEOF
5614 if { (ac_try="$ac_cpp conftest.$ac_ext"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null && {
5627 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5628 test ! -s conftest.err
5629 }; then
5630 :
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 # Broken: fails on valid input.
5636 continue
5637 fi
5638
5639 rm -f conftest.err conftest.$ac_ext
5640
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <ac_nonexistent.h>
5650 _ACEOF
5651 if { (ac_try="$ac_cpp conftest.$ac_ext"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } >/dev/null && {
5664 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5665 test ! -s conftest.err
5666 }; then
5667 # Broken: success on invalid input.
5668 continue
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5676 fi
5677
5678 rm -f conftest.err conftest.$ac_ext
5679
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5684 break
5685 fi
5686
5687 done
5688 ac_cv_prog_CXXCPP=$CXXCPP
5689
5690 fi
5691 CXXCPP=$ac_cv_prog_CXXCPP
5692 else
5693 ac_cv_prog_CXXCPP=$CXXCPP
5694 fi
5695 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5696 echo "${ECHO_T}$CXXCPP" >&6; }
5697 ac_preproc_ok=false
5698 for ac_cxx_preproc_warn_flag in '' yes
5699 do
5700 # Use a header file that comes with gcc, so configuring glibc
5701 # with a fresh cross-compiler works.
5702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5703 # <limits.h> exists even on freestanding compilers.
5704 # On the NeXT, cc -E runs the code through the compiler's parser,
5705 # not just through cpp. "Syntax error" is here to catch this case.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h. */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5712 #ifdef __STDC__
5713 # include <limits.h>
5714 #else
5715 # include <assert.h>
5716 #endif
5717 Syntax error
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5733 test ! -s conftest.err
5734 }; then
5735 :
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 # Broken: fails on valid input.
5741 continue
5742 fi
5743
5744 rm -f conftest.err conftest.$ac_ext
5745
5746 # OK, works on sane cases. Now check whether nonexistent headers
5747 # can be detected and how.
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5755 _ACEOF
5756 if { (ac_try="$ac_cpp conftest.$ac_ext"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null && {
5769 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 }; then
5772 # Broken: success on invalid input.
5773 continue
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 # Passes both tests.
5779 ac_preproc_ok=:
5780 break
5781 fi
5782
5783 rm -f conftest.err conftest.$ac_ext
5784
5785 done
5786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787 rm -f conftest.err conftest.$ac_ext
5788 if $ac_preproc_ok; then
5789 :
5790 else
5791 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5796 fi
5797
5798 ac_ext=cpp
5799 ac_cpp='$CXXCPP $CPPFLAGS'
5800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5803
5804 fi
5805
5806
5807 ac_ext=f
5808 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5809 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5811 if test -n "$ac_tool_prefix"; then
5812 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
5813 do
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_F77+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$F77"; then
5822 ac_cv_prog_F77="$F77" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 F77=$ac_cv_prog_F77
5842 if test -n "$F77"; then
5843 { echo "$as_me:$LINENO: result: $F77" >&5
5844 echo "${ECHO_T}$F77" >&6; }
5845 else
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850
5851 test -n "$F77" && break
5852 done
5853 fi
5854 if test -z "$F77"; then
5855 ac_ct_F77=$F77
5856 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
5857 do
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 if test -n "$ac_ct_F77"; then
5866 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_F77="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5886 if test -n "$ac_ct_F77"; then
5887 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5888 echo "${ECHO_T}$ac_ct_F77" >&6; }
5889 else
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5892 fi
5893
5894
5895 test -n "$ac_ct_F77" && break
5896 done
5897
5898 if test "x$ac_ct_F77" = x; then
5899 F77=""
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to [email protected]." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to [email protected]." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 F77=$ac_ct_F77
5912 fi
5913 fi
5914
5915
5916 # Provide some information about the compiler.
5917 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5918 ac_compiler=`set X $ac_compile; echo $2`
5919 { (ac_try="$ac_compiler --version >&5"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compiler --version >&5") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929 { (ac_try="$ac_compiler -v >&5"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compiler -v >&5") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }
5939 { (ac_try="$ac_compiler -V >&5"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_compiler -V >&5") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }
5949 rm -f a.out
5950
5951 # If we don't use `.F' as extension, the preprocessor is not run on the
5952 # input file. (Note that this only needs to work for GNU compilers.)
5953 ac_save_ext=$ac_ext
5954 ac_ext=F
5955 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5956 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5957 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 cat >conftest.$ac_ext <<_ACEOF
5961 program main
5962 #ifndef __GNUC__
5963 choke me
5964 #endif
5965
5966 end
5967 _ACEOF
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_f77_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 ac_compiler_gnu=yes
5986 else
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5989
5990 ac_compiler_gnu=no
5991 fi
5992
5993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5995
5996 fi
5997 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5998 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5999 ac_ext=$ac_save_ext
6000 ac_test_FFLAGS=${FFLAGS+set}
6001 ac_save_FFLAGS=$FFLAGS
6002 FFLAGS=
6003 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6004 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6005 if test "${ac_cv_prog_f77_g+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 FFLAGS=-g
6009 cat >conftest.$ac_ext <<_ACEOF
6010 program main
6011
6012 end
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (ac_try="$ac_compile"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_f77_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_cv_prog_f77_g=yes
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6035
6036 ac_cv_prog_f77_g=no
6037 fi
6038
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040
6041 fi
6042 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6043 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6044 if test "$ac_test_FFLAGS" = set; then
6045 FFLAGS=$ac_save_FFLAGS
6046 elif test $ac_cv_prog_f77_g = yes; then
6047 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6048 FFLAGS="-g -O2"
6049 else
6050 FFLAGS="-g"
6051 fi
6052 else
6053 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6054 FFLAGS="-O2"
6055 else
6056 FFLAGS=
6057 fi
6058 fi
6059
6060 G77=`test $ac_compiler_gnu = yes && echo yes`
6061 ac_ext=c
6062 ac_cpp='$CPP $CPPFLAGS'
6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066
6067
6068
6069 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6070
6071 # find the maximum length of command line arguments
6072 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6073 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6074 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 i=0
6078 teststring="ABCD"
6079
6080 case $build_os in
6081 msdosdjgpp*)
6082 # On DJGPP, this test can blow up pretty badly due to problems in libc
6083 # (any single argument exceeding 2000 bytes causes a buffer overrun
6084 # during glob expansion). Even if it were fixed, the result of this
6085 # check would be larger than it should be.
6086 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6087 ;;
6088
6089 gnu*)
6090 # Under GNU Hurd, this test is not required because there is
6091 # no limit to the length of command line arguments.
6092 # Libtool will interpret -1 as no limit whatsoever
6093 lt_cv_sys_max_cmd_len=-1;
6094 ;;
6095
6096 cygwin* | mingw*)
6097 # On Win9x/ME, this test blows up -- it succeeds, but takes
6098 # about 5 minutes as the teststring grows exponentially.
6099 # Worse, since 9x/ME are not pre-emptively multitasking,
6100 # you end up with a "frozen" computer, even though with patience
6101 # the test eventually succeeds (with a max line length of 256k).
6102 # Instead, let's just punt: use the minimum linelength reported by
6103 # all of the supported platforms: 8192 (on NT/2K/XP).
6104 lt_cv_sys_max_cmd_len=8192;
6105 ;;
6106
6107 amigaos*)
6108 # On AmigaOS with pdksh, this test takes hours, literally.
6109 # So we just punt and use a minimum line length of 8192.
6110 lt_cv_sys_max_cmd_len=8192;
6111 ;;
6112
6113 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6114 # This has been around since 386BSD, at least. Likely further.
6115 if test -x /sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6117 elif test -x /usr/sbin/sysctl; then
6118 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6119 else
6120 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6121 fi
6122 # And add a safety zone
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 ;;
6126
6127 interix*)
6128 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6129 lt_cv_sys_max_cmd_len=196608
6130 ;;
6131
6132 osf*)
6133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6135 # nice to cause kernel panics so lets avoid the loop below.
6136 # First set a reasonable default.
6137 lt_cv_sys_max_cmd_len=16384
6138 #
6139 if test -x /sbin/sysconfig; then
6140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6142 esac
6143 fi
6144 ;;
6145 sco3.2v5*)
6146 lt_cv_sys_max_cmd_len=102400
6147 ;;
6148 sysv5* | sco5v6* | sysv4.2uw2*)
6149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6150 if test -n "$kargmax"; then
6151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6152 else
6153 lt_cv_sys_max_cmd_len=32768
6154 fi
6155 ;;
6156 *)
6157 # If test is not a shell built-in, we'll probably end up computing a
6158 # maximum length that is only half of the actual maximum length, but
6159 # we can't tell.
6160 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6161 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6162 = "XX$teststring") >/dev/null 2>&1 &&
6163 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6164 lt_cv_sys_max_cmd_len=$new_result &&
6165 test $i != 17 # 1/2 MB should be enough
6166 do
6167 i=`expr $i + 1`
6168 teststring=$teststring$teststring
6169 done
6170 teststring=
6171 # Add a significant safety factor because C++ compilers can tack on massive
6172 # amounts of additional arguments before passing them to the linker.
6173 # It appears as though 1/2 is a usable value.
6174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6175 ;;
6176 esac
6177
6178 fi
6179
6180 if test -n $lt_cv_sys_max_cmd_len ; then
6181 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6182 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6183 else
6184 { echo "$as_me:$LINENO: result: none" >&5
6185 echo "${ECHO_T}none" >&6; }
6186 fi
6187
6188
6189
6190
6191 # Check for command to grab the raw symbol name followed by C symbol from nm.
6192 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6193 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6194 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197
6198 # These are sane defaults that work on at least a few old systems.
6199 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6200
6201 # Character class describing NM global symbol codes.
6202 symcode='[BCDEGRST]'
6203
6204 # Regexp to match symbols that can be accessed directly from C.
6205 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6206
6207 # Transform an extracted symbol line into a proper C declaration
6208 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6209
6210 # Transform an extracted symbol line into symbol name and symbol address
6211 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'"
6212
6213 # Define system-specific variables.
6214 case $host_os in
6215 aix*)
6216 symcode='[BCDT]'
6217 ;;
6218 cygwin* | mingw* | pw32*)
6219 symcode='[ABCDGISTW]'
6220 ;;
6221 hpux*) # Its linker distinguishes data from code symbols
6222 if test "$host_cpu" = ia64; then
6223 symcode='[ABCDEGRST]'
6224 fi
6225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6226 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'"
6227 ;;
6228 linux*)
6229 if test "$host_cpu" = ia64; then
6230 symcode='[ABCDGIRSTW]'
6231 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6232 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'"
6233 fi
6234 ;;
6235 irix* | nonstopux*)
6236 symcode='[BCDEGRST]'
6237 ;;
6238 osf*)
6239 symcode='[BCDEGQRST]'
6240 ;;
6241 solaris*)
6242 symcode='[BDRT]'
6243 ;;
6244 sco3.2v5*)
6245 symcode='[DT]'
6246 ;;
6247 sysv4.2uw2*)
6248 symcode='[DT]'
6249 ;;
6250 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6251 symcode='[ABDT]'
6252 ;;
6253 sysv4)
6254 symcode='[DFNSTU]'
6255 ;;
6256 esac
6257
6258 # Handle CRLF in mingw tool chain
6259 opt_cr=
6260 case $build_os in
6261 mingw*)
6262 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6263 ;;
6264 esac
6265
6266 # If we're using GNU nm, then use its standard symbol codes.
6267 case `$NM -V 2>&1` in
6268 *GNU* | *'with BFD'*)
6269 symcode='[ABCDGIRSTW]' ;;
6270 esac
6271
6272 # Try without a prefix undercore, then with it.
6273 for ac_symprfx in "" "_"; do
6274
6275 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6276 symxfrm="\\1 $ac_symprfx\\2 \\2"
6277
6278 # Write the raw and C identifiers.
6279 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6280
6281 # Check to see that the pipe works correctly.
6282 pipe_works=no
6283
6284 rm -f conftest*
6285 cat > conftest.$ac_ext <<EOF
6286 #ifdef __cplusplus
6287 extern "C" {
6288 #endif
6289 char nm_test_var;
6290 void nm_test_func(){}
6291 #ifdef __cplusplus
6292 }
6293 #endif
6294 int main(){nm_test_var='a';nm_test_func();return(0);}
6295 EOF
6296
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; then
6302 # Now try to grab the symbols.
6303 nlist=conftest.nm
6304 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6305 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && test -s "$nlist"; then
6309 # Try sorting and uniquifying the output.
6310 if sort "$nlist" | uniq > "$nlist"T; then
6311 mv -f "$nlist"T "$nlist"
6312 else
6313 rm -f "$nlist"T
6314 fi
6315
6316 # Make sure that we snagged all the symbols we need.
6317 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6318 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6319 cat <<EOF > conftest.$ac_ext
6320 #ifdef __cplusplus
6321 extern "C" {
6322 #endif
6323
6324 EOF
6325 # Now generate the symbol file.
6326 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6327
6328 cat <<EOF >> conftest.$ac_ext
6329 #if defined (__STDC__) && __STDC__
6330 # define lt_ptr_t void *
6331 #else
6332 # define lt_ptr_t char *
6333 # define const
6334 #endif
6335
6336 /* The mapping between symbol names and symbols. */
6337 const struct {
6338 const char *name;
6339 lt_ptr_t address;
6340 }
6341 lt_preloaded_symbols[] =
6342 {
6343 EOF
6344 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6345 cat <<\EOF >> conftest.$ac_ext
6346 {0, (lt_ptr_t) 0}
6347 };
6348
6349 #ifdef __cplusplus
6350 }
6351 #endif
6352 EOF
6353 # Now try linking the two files.
6354 mv conftest.$ac_objext conftstm.$ac_objext
6355 lt_save_LIBS="$LIBS"
6356 lt_save_CFLAGS="$CFLAGS"
6357 LIBS="conftstm.$ac_objext"
6358 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6364 pipe_works=yes
6365 fi
6366 LIBS="$lt_save_LIBS"
6367 CFLAGS="$lt_save_CFLAGS"
6368 else
6369 echo "cannot find nm_test_func in $nlist" >&5
6370 fi
6371 else
6372 echo "cannot find nm_test_var in $nlist" >&5
6373 fi
6374 else
6375 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6376 fi
6377 else
6378 echo "$progname: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 fi
6381 rm -f conftest* conftst*
6382
6383 # Do not use the global_symbol_pipe unless it works.
6384 if test "$pipe_works" = yes; then
6385 break
6386 else
6387 lt_cv_sys_global_symbol_pipe=
6388 fi
6389 done
6390
6391 fi
6392
6393 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6394 lt_cv_sys_global_symbol_to_cdecl=
6395 fi
6396 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6397 { echo "$as_me:$LINENO: result: failed" >&5
6398 echo "${ECHO_T}failed" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: ok" >&5
6401 echo "${ECHO_T}ok" >&6; }
6402 fi
6403
6404 { echo "$as_me:$LINENO: checking for objdir" >&5
6405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6406 if test "${lt_cv_objdir+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 rm -f .libs 2>/dev/null
6410 mkdir .libs 2>/dev/null
6411 if test -d .libs; then
6412 lt_cv_objdir=.libs
6413 else
6414 # MS-DOS does not allow filenames that begin with a dot.
6415 lt_cv_objdir=_libs
6416 fi
6417 rmdir .libs 2>/dev/null
6418 fi
6419 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6420 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6421 objdir=$lt_cv_objdir
6422
6423
6424
6425
6426
6427 case $host_os in
6428 aix3*)
6429 # AIX sometimes has problems with the GCC collect2 program. For some
6430 # reason, if we set the COLLECT_NAMES environment variable, the problems
6431 # vanish in a puff of smoke.
6432 if test "X${COLLECT_NAMES+set}" != Xset; then
6433 COLLECT_NAMES=
6434 export COLLECT_NAMES
6435 fi
6436 ;;
6437 esac
6438
6439 # Sed substitution that helps us do robust quoting. It backslashifies
6440 # metacharacters that are still active within double-quoted strings.
6441 Xsed='sed -e 1s/^X//'
6442 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6443
6444 # Same as above, but do not quote variable references.
6445 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6446
6447 # Sed substitution to delay expansion of an escaped shell variable in a
6448 # double_quote_subst'ed string.
6449 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6450
6451 # Sed substitution to avoid accidental globbing in evaled expressions
6452 no_glob_subst='s/\*/\\\*/g'
6453
6454 # Constants:
6455 rm="rm -f"
6456
6457 # Global variables:
6458 default_ofile=libtool
6459 can_build_shared=yes
6460
6461 # All known linkers require a `.a' archive for static linking (except MSVC,
6462 # which needs '.lib').
6463 libext=a
6464 ltmain="$ac_aux_dir/ltmain.sh"
6465 ofile="$default_ofile"
6466 with_gnu_ld="$lt_cv_prog_gnu_ld"
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}ar; ac_word=$2
6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 if test "${ac_cv_prog_AR+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476 if test -n "$AR"; then
6477 ac_cv_prog_AR="$AR" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_AR="${ac_tool_prefix}ar"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 AR=$ac_cv_prog_AR
6497 if test -n "$AR"; then
6498 { echo "$as_me:$LINENO: result: $AR" >&5
6499 echo "${ECHO_T}$AR" >&6; }
6500 else
6501 { echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_AR"; then
6508 ac_ct_AR=$AR
6509 # Extract the first word of "ar", so it can be a program name with args.
6510 set dummy ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 if test -n "$ac_ct_AR"; then
6517 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_AR="ar"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6537 if test -n "$ac_ct_AR"; then
6538 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6539 echo "${ECHO_T}$ac_ct_AR" >&6; }
6540 else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_AR" = x; then
6546 AR="false"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6551 whose name does not start with the host triplet. If you think this
6552 configuration is useful to you, please write to [email protected]." >&5
6553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6554 whose name does not start with the host triplet. If you think this
6555 configuration is useful to you, please write to [email protected]." >&2;}
6556 ac_tool_warned=yes ;;
6557 esac
6558 AR=$ac_ct_AR
6559 fi
6560 else
6561 AR="$ac_cv_prog_AR"
6562 fi
6563
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_RANLIB+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 if test -n "$RANLIB"; then
6573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 RANLIB=$ac_cv_prog_RANLIB
6593 if test -n "$RANLIB"; then
6594 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6595 echo "${ECHO_T}$RANLIB" >&6; }
6596 else
6597 { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_RANLIB"; then
6604 ac_ct_RANLIB=$RANLIB
6605 # Extract the first word of "ranlib", so it can be a program name with args.
6606 set dummy ranlib; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 if test -n "$ac_ct_RANLIB"; then
6613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_prog_ac_ct_RANLIB="ranlib"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6633 if test -n "$ac_ct_RANLIB"; then
6634 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6635 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6636 else
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6640
6641 if test "x$ac_ct_RANLIB" = x; then
6642 RANLIB=":"
6643 else
6644 case $cross_compiling:$ac_tool_warned in
6645 yes:)
6646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to [email protected]." >&5
6649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet. If you think this
6651 configuration is useful to you, please write to [email protected]." >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654 RANLIB=$ac_ct_RANLIB
6655 fi
6656 else
6657 RANLIB="$ac_cv_prog_RANLIB"
6658 fi
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_STRIP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 if test -n "$STRIP"; then
6669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 STRIP=$ac_cv_prog_STRIP
6689 if test -n "$STRIP"; then
6690 { echo "$as_me:$LINENO: result: $STRIP" >&5
6691 echo "${ECHO_T}$STRIP" >&6; }
6692 else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_STRIP"; then
6700 ac_ct_STRIP=$STRIP
6701 # Extract the first word of "strip", so it can be a program name with args.
6702 set dummy strip; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 if test -n "$ac_ct_STRIP"; then
6709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_STRIP="strip"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729 if test -n "$ac_ct_STRIP"; then
6730 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6731 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6732 else
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_STRIP" = x; then
6738 STRIP=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet. If you think this
6744 configuration is useful to you, please write to [email protected]." >&5
6745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6746 whose name does not start with the host triplet. If you think this
6747 configuration is useful to you, please write to [email protected]." >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750 STRIP=$ac_ct_STRIP
6751 fi
6752 else
6753 STRIP="$ac_cv_prog_STRIP"
6754 fi
6755
6756
6757 old_CC="$CC"
6758 old_CFLAGS="$CFLAGS"
6759
6760 # Set sane defaults for various variables
6761 test -z "$AR" && AR=ar
6762 test -z "$AR_FLAGS" && AR_FLAGS=cru
6763 test -z "$AS" && AS=as
6764 test -z "$CC" && CC=cc
6765 test -z "$LTCC" && LTCC=$CC
6766 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6767 test -z "$DLLTOOL" && DLLTOOL=dlltool
6768 test -z "$LD" && LD=ld
6769 test -z "$LN_S" && LN_S="ln -s"
6770 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6771 test -z "$NM" && NM=nm
6772 test -z "$SED" && SED=sed
6773 test -z "$OBJDUMP" && OBJDUMP=objdump
6774 test -z "$RANLIB" && RANLIB=:
6775 test -z "$STRIP" && STRIP=:
6776 test -z "$ac_objext" && ac_objext=o
6777
6778 # Determine commands to create old-style static archives.
6779 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6780 old_postinstall_cmds='chmod 644 $oldlib'
6781 old_postuninstall_cmds=
6782
6783 if test -n "$RANLIB"; then
6784 case $host_os in
6785 openbsd*)
6786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6787 ;;
6788 *)
6789 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6790 ;;
6791 esac
6792 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6793 fi
6794
6795 for cc_temp in $compiler""; do
6796 case $cc_temp in
6797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6799 \-*) ;;
6800 *) break;;
6801 esac
6802 done
6803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6804
6805
6806 # Only perform the check for file, if the check method requires it
6807 case $deplibs_check_method in
6808 file_magic*)
6809 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6810 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6811 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6812 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 case $MAGIC_CMD in
6816 [\\/*] | ?:[\\/]*)
6817 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6818 ;;
6819 *)
6820 lt_save_MAGIC_CMD="$MAGIC_CMD"
6821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6822 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6823 for ac_dir in $ac_dummy; do
6824 IFS="$lt_save_ifs"
6825 test -z "$ac_dir" && ac_dir=.
6826 if test -f $ac_dir/${ac_tool_prefix}file; then
6827 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6828 if test -n "$file_magic_test_file"; then
6829 case $deplibs_check_method in
6830 "file_magic "*)
6831 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6832 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6833 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6834 $EGREP "$file_magic_regex" > /dev/null; then
6835 :
6836 else
6837 cat <<EOF 1>&2
6838
6839 *** Warning: the command libtool uses to detect shared libraries,
6840 *** $file_magic_cmd, produces output that libtool cannot recognize.
6841 *** The result is that libtool may fail to recognize shared libraries
6842 *** as such. This will affect the creation of libtool libraries that
6843 *** depend on shared libraries, but programs linked with such libtool
6844 *** libraries will work regardless of this problem. Nevertheless, you
6845 *** may want to report the problem to your system manager and/or to
6846 *** [email protected]
6847
6848 EOF
6849 fi ;;
6850 esac
6851 fi
6852 break
6853 fi
6854 done
6855 IFS="$lt_save_ifs"
6856 MAGIC_CMD="$lt_save_MAGIC_CMD"
6857 ;;
6858 esac
6859 fi
6860
6861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6862 if test -n "$MAGIC_CMD"; then
6863 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6864 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6865 else
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870 if test -z "$lt_cv_path_MAGIC_CMD"; then
6871 if test -n "$ac_tool_prefix"; then
6872 { echo "$as_me:$LINENO: checking for file" >&5
6873 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6874 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 case $MAGIC_CMD in
6878 [\\/*] | ?:[\\/]*)
6879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 lt_save_MAGIC_CMD="$MAGIC_CMD"
6883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6885 for ac_dir in $ac_dummy; do
6886 IFS="$lt_save_ifs"
6887 test -z "$ac_dir" && ac_dir=.
6888 if test -f $ac_dir/file; then
6889 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6890 if test -n "$file_magic_test_file"; then
6891 case $deplibs_check_method in
6892 "file_magic "*)
6893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6896 $EGREP "$file_magic_regex" > /dev/null; then
6897 :
6898 else
6899 cat <<EOF 1>&2
6900
6901 *** Warning: the command libtool uses to detect shared libraries,
6902 *** $file_magic_cmd, produces output that libtool cannot recognize.
6903 *** The result is that libtool may fail to recognize shared libraries
6904 *** as such. This will affect the creation of libtool libraries that
6905 *** depend on shared libraries, but programs linked with such libtool
6906 *** libraries will work regardless of this problem. Nevertheless, you
6907 *** may want to report the problem to your system manager and/or to
6908 *** [email protected]
6909
6910 EOF
6911 fi ;;
6912 esac
6913 fi
6914 break
6915 fi
6916 done
6917 IFS="$lt_save_ifs"
6918 MAGIC_CMD="$lt_save_MAGIC_CMD"
6919 ;;
6920 esac
6921 fi
6922
6923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924 if test -n "$MAGIC_CMD"; then
6925 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6926 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6927 else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932 else
6933 MAGIC_CMD=:
6934 fi
6935 fi
6936
6937 fi
6938 ;;
6939 esac
6940
6941 enable_dlopen=no
6942 enable_win32_dll=no
6943
6944 # Check whether --enable-libtool-lock was given.
6945 if test "${enable_libtool_lock+set}" = set; then
6946 enableval=$enable_libtool_lock;
6947 fi
6948
6949 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6950
6951
6952 # Check whether --with-pic was given.
6953 if test "${with_pic+set}" = set; then
6954 withval=$with_pic; pic_mode="$withval"
6955 else
6956 pic_mode=default
6957 fi
6958
6959 test -z "$pic_mode" && pic_mode=default
6960
6961 # Use C for the default configuration in the libtool script
6962 tagname=
6963 lt_save_CC="$CC"
6964 ac_ext=c
6965 ac_cpp='$CPP $CPPFLAGS'
6966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
6970
6971 # Source file extension for C test sources.
6972 ac_ext=c
6973
6974 # Object file extension for compiled C test sources.
6975 objext=o
6976 objext=$objext
6977
6978 # Code to be used in simple compile tests
6979 lt_simple_compile_test_code="int some_variable = 0;\n"
6980
6981 # Code to be used in simple link tests
6982 lt_simple_link_test_code='int main(){return(0);}\n'
6983
6984
6985 # If no C compiler was specified, use CC.
6986 LTCC=${LTCC-"$CC"}
6987
6988 # If no C compiler flags were specified, use CFLAGS.
6989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6990
6991 # Allow CC to be a program name with arguments.
6992 compiler=$CC
6993
6994
6995 # save warnings/boilerplate of simple test code
6996 ac_outfile=conftest.$ac_objext
6997 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6999 _lt_compiler_boilerplate=`cat conftest.err`
7000 $rm conftest*
7001
7002 ac_outfile=conftest.$ac_objext
7003 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7005 _lt_linker_boilerplate=`cat conftest.err`
7006 $rm conftest*
7007
7008
7009
7010 lt_prog_compiler_no_builtin_flag=
7011
7012 if test "$GCC" = yes; then
7013 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7014
7015
7016 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7017 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7018 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 lt_cv_prog_compiler_rtti_exceptions=no
7022 ac_outfile=conftest.$ac_objext
7023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7024 lt_compiler_flag="-fno-rtti -fno-exceptions"
7025 # Insert the option either (1) after the last *FLAGS variable, or
7026 # (2) before a word containing "conftest.", or (3) at the end.
7027 # Note that $ac_compile itself does not contain backslashes and begins
7028 # with a dollar sign (not a hyphen), so the echo should work correctly.
7029 # The option is referenced via a variable to avoid confusing sed.
7030 lt_compile=`echo "$ac_compile" | $SED \
7031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7033 -e 's:$: $lt_compiler_flag:'`
7034 (eval echo "\"\$as_me:7034: $lt_compile\"" >&5)
7035 (eval "$lt_compile" 2>conftest.err)
7036 ac_status=$?
7037 cat conftest.err >&5
7038 echo "$as_me:7038: \$? = $ac_status" >&5
7039 if (exit $ac_status) && test -s "$ac_outfile"; then
7040 # The compiler can only warn and ignore the option if not recognized
7041 # So say no if there are warnings other than the usual output.
7042 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7045 lt_cv_prog_compiler_rtti_exceptions=yes
7046 fi
7047 fi
7048 $rm conftest*
7049
7050 fi
7051 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7052 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7053
7054 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7056 else
7057 :
7058 fi
7059
7060 fi
7061
7062 lt_prog_compiler_wl=
7063 lt_prog_compiler_pic=
7064 lt_prog_compiler_static=
7065
7066 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7067 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7068
7069 if test "$GCC" = yes; then
7070 lt_prog_compiler_wl='-Wl,'
7071 lt_prog_compiler_static='-static'
7072
7073 case $host_os in
7074 aix*)
7075 # All AIX code is PIC.
7076 if test "$host_cpu" = ia64; then
7077 # AIX 5 now supports IA64 processor
7078 lt_prog_compiler_static='-Bstatic'
7079 fi
7080 ;;
7081
7082 amigaos*)
7083 # FIXME: we need at least 68020 code to build shared libraries, but
7084 # adding the `-m68020' flag to GCC prevents building anything better,
7085 # like `-m68040'.
7086 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7087 ;;
7088
7089 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7090 # PIC is the default for these OSes.
7091 ;;
7092
7093 mingw* | pw32* | os2*)
7094 # This hack is so that the source file can tell whether it is being
7095 # built for inclusion in a dll (and should export symbols for example).
7096 lt_prog_compiler_pic='-DDLL_EXPORT'
7097 ;;
7098
7099 darwin* | rhapsody*)
7100 # PIC is the default on this platform
7101 # Common symbols not allowed in MH_DYLIB files
7102 lt_prog_compiler_pic='-fno-common'
7103 ;;
7104
7105 interix3*)
7106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7107 # Instead, we relocate shared libraries at runtime.
7108 ;;
7109
7110 msdosdjgpp*)
7111 # Just because we use GCC doesn't mean we suddenly get shared libraries
7112 # on systems that don't support them.
7113 lt_prog_compiler_can_build_shared=no
7114 enable_shared=no
7115 ;;
7116
7117 sysv4*MP*)
7118 if test -d /usr/nec; then
7119 lt_prog_compiler_pic=-Kconform_pic
7120 fi
7121 ;;
7122
7123 hpux*)
7124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7125 # not for PA HP-UX.
7126 case $host_cpu in
7127 hppa*64*|ia64*)
7128 # +Z the default
7129 ;;
7130 *)
7131 lt_prog_compiler_pic='-fPIC'
7132 ;;
7133 esac
7134 ;;
7135
7136 *)
7137 lt_prog_compiler_pic='-fPIC'
7138 ;;
7139 esac
7140 else
7141 # PORTME Check for flag to pass linker flags through the system compiler.
7142 case $host_os in
7143 aix*)
7144 lt_prog_compiler_wl='-Wl,'
7145 if test "$host_cpu" = ia64; then
7146 # AIX 5 now supports IA64 processor
7147 lt_prog_compiler_static='-Bstatic'
7148 else
7149 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7150 fi
7151 ;;
7152 darwin*)
7153 # PIC is the default on this platform
7154 # Common symbols not allowed in MH_DYLIB files
7155 case $cc_basename in
7156 xlc*)
7157 lt_prog_compiler_pic='-qnocommon'
7158 lt_prog_compiler_wl='-Wl,'
7159 ;;
7160 esac
7161 ;;
7162
7163 mingw* | pw32* | os2*)
7164 # This hack is so that the source file can tell whether it is being
7165 # built for inclusion in a dll (and should export symbols for example).
7166 lt_prog_compiler_pic='-DDLL_EXPORT'
7167 ;;
7168
7169 hpux9* | hpux10* | hpux11*)
7170 lt_prog_compiler_wl='-Wl,'
7171 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7172 # not for PA HP-UX.
7173 case $host_cpu in
7174 hppa*64*|ia64*)
7175 # +Z the default
7176 ;;
7177 *)
7178 lt_prog_compiler_pic='+Z'
7179 ;;
7180 esac
7181 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7182 lt_prog_compiler_static='${wl}-a ${wl}archive'
7183 ;;
7184
7185 irix5* | irix6* | nonstopux*)
7186 lt_prog_compiler_wl='-Wl,'
7187 # PIC (with -KPIC) is the default.
7188 lt_prog_compiler_static='-non_shared'
7189 ;;
7190
7191 newsos6)
7192 lt_prog_compiler_pic='-KPIC'
7193 lt_prog_compiler_static='-Bstatic'
7194 ;;
7195
7196 linux*)
7197 case $cc_basename in
7198 icc* | ecc*)
7199 lt_prog_compiler_wl='-Wl,'
7200 lt_prog_compiler_pic='-KPIC'
7201 lt_prog_compiler_static='-static'
7202 ;;
7203 pgcc* | pgf77* | pgf90* | pgf95*)
7204 # Portland Group compilers (*not* the Pentium gcc compiler,
7205 # which looks to be a dead project)
7206 lt_prog_compiler_wl='-Wl,'
7207 lt_prog_compiler_pic='-fpic'
7208 lt_prog_compiler_static='-Bstatic'
7209 ;;
7210 ccc*)
7211 lt_prog_compiler_wl='-Wl,'
7212 # All Alpha code is PIC.
7213 lt_prog_compiler_static='-non_shared'
7214 ;;
7215 esac
7216 ;;
7217
7218 osf3* | osf4* | osf5*)
7219 lt_prog_compiler_wl='-Wl,'
7220 # All OSF/1 code is PIC.
7221 lt_prog_compiler_static='-non_shared'
7222 ;;
7223
7224 solaris*)
7225 lt_prog_compiler_pic='-KPIC'
7226 lt_prog_compiler_static='-Bstatic'
7227 case $cc_basename in
7228 f77* | f90* | f95*)
7229 lt_prog_compiler_wl='-Qoption ld ';;
7230 *)
7231 lt_prog_compiler_wl='-Wl,';;
7232 esac
7233 ;;
7234
7235 sunos4*)
7236 lt_prog_compiler_wl='-Qoption ld '
7237 lt_prog_compiler_pic='-PIC'
7238 lt_prog_compiler_static='-Bstatic'
7239 ;;
7240
7241 sysv4 | sysv4.2uw2* | sysv4.3*)
7242 lt_prog_compiler_wl='-Wl,'
7243 lt_prog_compiler_pic='-KPIC'
7244 lt_prog_compiler_static='-Bstatic'
7245 ;;
7246
7247 sysv4*MP*)
7248 if test -d /usr/nec ;then
7249 lt_prog_compiler_pic='-Kconform_pic'
7250 lt_prog_compiler_static='-Bstatic'
7251 fi
7252 ;;
7253
7254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-KPIC'
7257 lt_prog_compiler_static='-Bstatic'
7258 ;;
7259
7260 unicos*)
7261 lt_prog_compiler_wl='-Wl,'
7262 lt_prog_compiler_can_build_shared=no
7263 ;;
7264
7265 uts4*)
7266 lt_prog_compiler_pic='-pic'
7267 lt_prog_compiler_static='-Bstatic'
7268 ;;
7269
7270 *)
7271 lt_prog_compiler_can_build_shared=no
7272 ;;
7273 esac
7274 fi
7275
7276 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7277 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7278
7279 #
7280 # Check to make sure the PIC flag actually works.
7281 #
7282 if test -n "$lt_prog_compiler_pic"; then
7283
7284 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7285 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7286 if test "${lt_prog_compiler_pic_works+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 lt_prog_compiler_pic_works=no
7290 ac_outfile=conftest.$ac_objext
7291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7292 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7293 # Insert the option either (1) after the last *FLAGS variable, or
7294 # (2) before a word containing "conftest.", or (3) at the end.
7295 # Note that $ac_compile itself does not contain backslashes and begins
7296 # with a dollar sign (not a hyphen), so the echo should work correctly.
7297 # The option is referenced via a variable to avoid confusing sed.
7298 lt_compile=`echo "$ac_compile" | $SED \
7299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7301 -e 's:$: $lt_compiler_flag:'`
7302 (eval echo "\"\$as_me:7302: $lt_compile\"" >&5)
7303 (eval "$lt_compile" 2>conftest.err)
7304 ac_status=$?
7305 cat conftest.err >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 if (exit $ac_status) && test -s "$ac_outfile"; then
7308 # The compiler can only warn and ignore the option if not recognized
7309 # So say no if there are warnings other than the usual output.
7310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7313 lt_prog_compiler_pic_works=yes
7314 fi
7315 fi
7316 $rm conftest*
7317
7318 fi
7319 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7320 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7321
7322 if test x"$lt_prog_compiler_pic_works" = xyes; then
7323 case $lt_prog_compiler_pic in
7324 "" | " "*) ;;
7325 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7326 esac
7327 else
7328 lt_prog_compiler_pic=
7329 lt_prog_compiler_can_build_shared=no
7330 fi
7331
7332 fi
7333 case $host_os in
7334 # For platforms which do not support PIC, -DPIC is meaningless:
7335 *djgpp*)
7336 lt_prog_compiler_pic=
7337 ;;
7338 *)
7339 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7340 ;;
7341 esac
7342
7343 #
7344 # Check to make sure the static flag actually works.
7345 #
7346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7347 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7348 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7349 if test "${lt_prog_compiler_static_works+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 lt_prog_compiler_static_works=no
7353 save_LDFLAGS="$LDFLAGS"
7354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7355 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7357 # The linker can only warn and ignore the option if not recognized
7358 # So say no if there are warnings
7359 if test -s conftest.err; then
7360 # Append any errors to the config.log.
7361 cat conftest.err 1>&5
7362 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7364 if diff conftest.exp conftest.er2 >/dev/null; then
7365 lt_prog_compiler_static_works=yes
7366 fi
7367 else
7368 lt_prog_compiler_static_works=yes
7369 fi
7370 fi
7371 $rm conftest*
7372 LDFLAGS="$save_LDFLAGS"
7373
7374 fi
7375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7376 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7377
7378 if test x"$lt_prog_compiler_static_works" = xyes; then
7379 :
7380 else
7381 lt_prog_compiler_static=
7382 fi
7383
7384
7385 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7387 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 lt_cv_prog_compiler_c_o=no
7391 $rm -r conftest 2>/dev/null
7392 mkdir conftest
7393 cd conftest
7394 mkdir out
7395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7396
7397 lt_compiler_flag="-o out/conftest2.$ac_objext"
7398 # Insert the option either (1) after the last *FLAGS variable, or
7399 # (2) before a word containing "conftest.", or (3) at the end.
7400 # Note that $ac_compile itself does not contain backslashes and begins
7401 # with a dollar sign (not a hyphen), so the echo should work correctly.
7402 lt_compile=`echo "$ac_compile" | $SED \
7403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7405 -e 's:$: $lt_compiler_flag:'`
7406 (eval echo "\"\$as_me:7406: $lt_compile\"" >&5)
7407 (eval "$lt_compile" 2>out/conftest.err)
7408 ac_status=$?
7409 cat out/conftest.err >&5
7410 echo "$as_me:7410: \$? = $ac_status" >&5
7411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7412 then
7413 # The compiler can only warn and ignore the option if not recognized
7414 # So say no if there are warnings
7415 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7418 lt_cv_prog_compiler_c_o=yes
7419 fi
7420 fi
7421 chmod u+w . 2>&5
7422 $rm conftest*
7423 # SGI C++ compiler will create directory out/ii_files/ for
7424 # template instantiation
7425 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7426 $rm out/* && rmdir out
7427 cd ..
7428 rmdir conftest
7429 $rm conftest*
7430
7431 fi
7432 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7434
7435
7436 hard_links="nottested"
7437 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7438 # do not overwrite the value of need_locks provided by the user
7439 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7441 hard_links=yes
7442 $rm conftest*
7443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7444 touch conftest.a
7445 ln conftest.a conftest.b 2>&5 || hard_links=no
7446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7447 { echo "$as_me:$LINENO: result: $hard_links" >&5
7448 echo "${ECHO_T}$hard_links" >&6; }
7449 if test "$hard_links" = no; then
7450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7452 need_locks=warn
7453 fi
7454 else
7455 need_locks=no
7456 fi
7457
7458 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7460
7461 runpath_var=
7462 allow_undefined_flag=
7463 enable_shared_with_static_runtimes=no
7464 archive_cmds=
7465 archive_expsym_cmds=
7466 old_archive_From_new_cmds=
7467 old_archive_from_expsyms_cmds=
7468 export_dynamic_flag_spec=
7469 whole_archive_flag_spec=
7470 thread_safe_flag_spec=
7471 hardcode_libdir_flag_spec=
7472 hardcode_libdir_flag_spec_ld=
7473 hardcode_libdir_separator=
7474 hardcode_direct=no
7475 hardcode_minus_L=no
7476 hardcode_shlibpath_var=unsupported
7477 link_all_deplibs=unknown
7478 hardcode_automatic=no
7479 module_cmds=
7480 module_expsym_cmds=
7481 always_export_symbols=no
7482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7483 # include_expsyms should be a list of space-separated symbols to be *always*
7484 # included in the symbol list
7485 include_expsyms=
7486 # exclude_expsyms can be an extended regexp of symbols to exclude
7487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7489 # as well as any symbol that contains `d'.
7490 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7492 # platforms (ab)use it in PIC code, but their linkers get confused if
7493 # the symbol is explicitly referenced. Since portable code cannot
7494 # rely on this symbol name, it's probably fine to never include it in
7495 # preloaded symbol tables.
7496 extract_expsyms_cmds=
7497 # Just being paranoid about ensuring that cc_basename is set.
7498 for cc_temp in $compiler""; do
7499 case $cc_temp in
7500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7502 \-*) ;;
7503 *) break;;
7504 esac
7505 done
7506 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7507
7508 case $host_os in
7509 cygwin* | mingw* | pw32*)
7510 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7511 # When not using gcc, we currently assume that we are using
7512 # Microsoft Visual C++.
7513 if test "$GCC" != yes; then
7514 with_gnu_ld=no
7515 fi
7516 ;;
7517 interix*)
7518 # we just hope/assume this is gcc and not c89 (= MSVC++)
7519 with_gnu_ld=yes
7520 ;;
7521 openbsd*)
7522 with_gnu_ld=no
7523 ;;
7524 esac
7525
7526 ld_shlibs=yes
7527 if test "$with_gnu_ld" = yes; then
7528 # If archive_cmds runs LD, not CC, wlarc should be empty
7529 wlarc='${wl}'
7530
7531 # Set some defaults for GNU ld with shared library support. These
7532 # are reset later if shared libraries are not supported. Putting them
7533 # here allows them to be overridden if necessary.
7534 runpath_var=LD_RUN_PATH
7535 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7536 export_dynamic_flag_spec='${wl}--export-dynamic'
7537 # ancient GNU ld didn't support --whole-archive et. al.
7538 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7539 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7540 else
7541 whole_archive_flag_spec=
7542 fi
7543 supports_anon_versioning=no
7544 case `$LD -v 2>/dev/null` in
7545 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7546 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7547 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7548 *\ 2.11.*) ;; # other 2.11 versions
7549 *) supports_anon_versioning=yes ;;
7550 esac
7551
7552 # See if GNU ld supports shared libraries.
7553 case $host_os in
7554 aix3* | aix4* | aix5*)
7555 # On AIX/PPC, the GNU linker is very broken
7556 if test "$host_cpu" != ia64; then
7557 ld_shlibs=no
7558 cat <<EOF 1>&2
7559
7560 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7561 *** to be unable to reliably create shared libraries on AIX.
7562 *** Therefore, libtool is disabling shared libraries support. If you
7563 *** really care for shared libraries, you may want to modify your PATH
7564 *** so that a non-GNU linker is found, and then restart.
7565
7566 EOF
7567 fi
7568 ;;
7569
7570 amigaos*)
7571 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)'
7572 hardcode_libdir_flag_spec='-L$libdir'
7573 hardcode_minus_L=yes
7574
7575 # Samuel A. Falvo II <[email protected]> reports
7576 # that the semantics of dynamic libraries on AmigaOS, at least up
7577 # to version 4, is to share data among multiple programs linked
7578 # with the same dynamic library. Since this doesn't match the
7579 # behavior of shared libraries on other platforms, we can't use
7580 # them.
7581 ld_shlibs=no
7582 ;;
7583
7584 beos*)
7585 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7586 allow_undefined_flag=unsupported
7587 # Joseph Beckenbach <[email protected]> says some releases of gcc
7588 # support --undefined. This deserves some investigation. FIXME
7589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7590 else
7591 ld_shlibs=no
7592 fi
7593 ;;
7594
7595 cygwin* | mingw* | pw32*)
7596 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7597 # as there is no search path for DLLs.
7598 hardcode_libdir_flag_spec='-L$libdir'
7599 allow_undefined_flag=unsupported
7600 always_export_symbols=no
7601 enable_shared_with_static_runtimes=yes
7602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7603
7604 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7606 # If the export-symbols file already is a .def file (1st line
7607 # is EXPORTS), use it as is; otherwise, prepend...
7608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7609 cp $export_symbols $output_objdir/$soname.def;
7610 else
7611 echo EXPORTS > $output_objdir/$soname.def;
7612 cat $export_symbols >> $output_objdir/$soname.def;
7613 fi~
7614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7615 else
7616 ld_shlibs=no
7617 fi
7618 ;;
7619
7620 interix3*)
7621 hardcode_direct=no
7622 hardcode_shlibpath_var=no
7623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7624 export_dynamic_flag_spec='${wl}-E'
7625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7626 # Instead, shared libraries are loaded at an image base (0x10000000 by
7627 # default) and relocated if they conflict, which is a slow very memory
7628 # consuming and fragmenting process. To avoid this, we pick a random,
7629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7632 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'
7633 ;;
7634
7635 linux*)
7636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7637 tmp_addflag=
7638 case $cc_basename,$host_cpu in
7639 pgcc*) # Portland Group C compiler
7640 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'
7641 tmp_addflag=' $pic_flag'
7642 ;;
7643 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7644 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'
7645 tmp_addflag=' $pic_flag -Mnomain' ;;
7646 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7647 tmp_addflag=' -i_dynamic' ;;
7648 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7649 tmp_addflag=' -i_dynamic -nofor_main' ;;
7650 ifc* | ifort*) # Intel Fortran compiler
7651 tmp_addflag=' -nofor_main' ;;
7652 esac
7653 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654
7655 if test $supports_anon_versioning = yes; then
7656 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7658 $echo "local: *; };" >> $output_objdir/$libname.ver~
7659 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7660 fi
7661 else
7662 ld_shlibs=no
7663 fi
7664 ;;
7665
7666 netbsd*)
7667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7668 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7669 wlarc=
7670 else
7671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7672 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7673 fi
7674 ;;
7675
7676 solaris*)
7677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7678 ld_shlibs=no
7679 cat <<EOF 1>&2
7680
7681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7682 *** create shared libraries on Solaris systems. Therefore, libtool
7683 *** is disabling shared libraries support. We urge you to upgrade GNU
7684 *** binutils to release 2.9.1 or newer. Another option is to modify
7685 *** your PATH or compiler configuration so that the native linker is
7686 *** used, and then restart.
7687
7688 EOF
7689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7692 else
7693 ld_shlibs=no
7694 fi
7695 ;;
7696
7697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7698 case `$LD -v 2>&1` in
7699 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7700 ld_shlibs=no
7701 cat <<_LT_EOF 1>&2
7702
7703 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7704 *** reliably create shared libraries on SCO systems. Therefore, libtool
7705 *** is disabling shared libraries support. We urge you to upgrade GNU
7706 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7707 *** your PATH or compiler configuration so that the native linker is
7708 *** used, and then restart.
7709
7710 _LT_EOF
7711 ;;
7712 *)
7713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7714 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7717 else
7718 ld_shlibs=no
7719 fi
7720 ;;
7721 esac
7722 ;;
7723
7724 sunos4*)
7725 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7726 wlarc=
7727 hardcode_direct=yes
7728 hardcode_shlibpath_var=no
7729 ;;
7730
7731 *)
7732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7735 else
7736 ld_shlibs=no
7737 fi
7738 ;;
7739 esac
7740
7741 if test "$ld_shlibs" = no; then
7742 runpath_var=
7743 hardcode_libdir_flag_spec=
7744 export_dynamic_flag_spec=
7745 whole_archive_flag_spec=
7746 fi
7747 else
7748 # PORTME fill in a description of your system's linker (not GNU ld)
7749 case $host_os in
7750 aix3*)
7751 allow_undefined_flag=unsupported
7752 always_export_symbols=yes
7753 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'
7754 # Note: this linker hardcodes the directories in LIBPATH if there
7755 # are no directories specified by -L.
7756 hardcode_minus_L=yes
7757 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7758 # Neither direct hardcoding nor static linking is supported with a
7759 # broken collect2.
7760 hardcode_direct=unsupported
7761 fi
7762 ;;
7763
7764 aix4* | aix5*)
7765 if test "$host_cpu" = ia64; then
7766 # On IA64, the linker does run time linking by default, so we don't
7767 # have to do anything special.
7768 aix_use_runtimelinking=no
7769 exp_sym_flag='-Bexport'
7770 no_entry_flag=""
7771 else
7772 # If we're using GNU nm, then we don't want the "-C" option.
7773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7775 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'
7776 else
7777 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'
7778 fi
7779 aix_use_runtimelinking=no
7780
7781 # Test if we are trying to use run time linking or normal
7782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7783 # need to do runtime linking.
7784 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7785 for ld_flag in $LDFLAGS; do
7786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7787 aix_use_runtimelinking=yes
7788 break
7789 fi
7790 done
7791 ;;
7792 esac
7793
7794 exp_sym_flag='-bexport'
7795 no_entry_flag='-bnoentry'
7796 fi
7797
7798 # When large executables or shared objects are built, AIX ld can
7799 # have problems creating the table of contents. If linking a library
7800 # or program results in "error TOC overflow" add -mminimal-toc to
7801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7803
7804 archive_cmds=''
7805 hardcode_direct=yes
7806 hardcode_libdir_separator=':'
7807 link_all_deplibs=yes
7808
7809 if test "$GCC" = yes; then
7810 case $host_os in aix4.[012]|aix4.[012].*)
7811 # We only want to do this on AIX 4.2 and lower, the check
7812 # below for broken collect2 doesn't work under 4.3+
7813 collect2name=`${CC} -print-prog-name=collect2`
7814 if test -f "$collect2name" && \
7815 strings "$collect2name" | grep resolve_lib_name >/dev/null
7816 then
7817 # We have reworked collect2
7818 hardcode_direct=yes
7819 else
7820 # We have old collect2
7821 hardcode_direct=unsupported
7822 # It fails to find uninstalled libraries when the uninstalled
7823 # path is not listed in the libpath. Setting hardcode_minus_L
7824 # to unsupported forces relinking
7825 hardcode_minus_L=yes
7826 hardcode_libdir_flag_spec='-L$libdir'
7827 hardcode_libdir_separator=
7828 fi
7829 ;;
7830 esac
7831 shared_flag='-shared'
7832 if test "$aix_use_runtimelinking" = yes; then
7833 shared_flag="$shared_flag "'${wl}-G'
7834 fi
7835 else
7836 # not using gcc
7837 if test "$host_cpu" = ia64; then
7838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7839 # chokes on -Wl,-G. The following line is correct:
7840 shared_flag='-G'
7841 else
7842 if test "$aix_use_runtimelinking" = yes; then
7843 shared_flag='${wl}-G'
7844 else
7845 shared_flag='${wl}-bM:SRE'
7846 fi
7847 fi
7848 fi
7849
7850 # It seems that -bexpall does not export symbols beginning with
7851 # underscore (_), so it is better to generate a list of symbols to export.
7852 always_export_symbols=yes
7853 if test "$aix_use_runtimelinking" = yes; then
7854 # Warning - without using the other runtime loading flags (-brtl),
7855 # -berok will link without error, but may produce a broken library.
7856 allow_undefined_flag='-berok'
7857 # Determine the default libpath from the value encoded in an empty executable.
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864
7865 int
7866 main ()
7867 {
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (ac_try="$ac_link"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_link") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest$ac_exeext &&
7890 $as_test_x conftest$ac_exeext; then
7891
7892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7893 }'`
7894 # Check for a 64-bit object if we didn't find anything.
7895 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7896 }'`; fi
7897 else
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901
7902 fi
7903
7904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905 conftest$ac_exeext conftest.$ac_ext
7906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7907
7908 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7909 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"
7910 else
7911 if test "$host_cpu" = ia64; then
7912 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7913 allow_undefined_flag="-z nodefs"
7914 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"
7915 else
7916 # Determine the default libpath from the value encoded in an empty executable.
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923
7924 int
7925 main ()
7926 {
7927
7928 ;
7929 return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7934 case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937 esac
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext &&
7949 $as_test_x conftest$ac_exeext; then
7950
7951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7952 }'`
7953 # Check for a 64-bit object if we didn't find anything.
7954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7955 }'`; fi
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960
7961 fi
7962
7963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7964 conftest$ac_exeext conftest.$ac_ext
7965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7966
7967 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7968 # Warning - without using the other run time loading flags,
7969 # -berok will link without error, but may produce a broken library.
7970 no_undefined_flag=' ${wl}-bernotok'
7971 allow_undefined_flag=' ${wl}-berok'
7972 # Exported symbols can be pulled into shared objects from archives
7973 whole_archive_flag_spec='$convenience'
7974 archive_cmds_need_lc=yes
7975 # This is similar to how AIX traditionally builds its shared libraries.
7976 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'
7977 fi
7978 fi
7979 ;;
7980
7981 amigaos*)
7982 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)'
7983 hardcode_libdir_flag_spec='-L$libdir'
7984 hardcode_minus_L=yes
7985 # see comment about different semantics on the GNU ld section
7986 ld_shlibs=no
7987 ;;
7988
7989 bsdi[45]*)
7990 export_dynamic_flag_spec=-rdynamic
7991 ;;
7992
7993 cygwin* | mingw* | pw32*)
7994 # When not using gcc, we currently assume that we are using
7995 # Microsoft Visual C++.
7996 # hardcode_libdir_flag_spec is actually meaningless, as there is
7997 # no search path for DLLs.
7998 hardcode_libdir_flag_spec=' '
7999 allow_undefined_flag=unsupported
8000 # Tell ltmain to make .lib files, not .a files.
8001 libext=lib
8002 # Tell ltmain to make .dll files, not .so files.
8003 shrext_cmds=".dll"
8004 # FIXME: Setting linknames here is a bad hack.
8005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8006 # The linker will automatically build a .lib file if we build a DLL.
8007 old_archive_From_new_cmds='true'
8008 # FIXME: Should let the user specify the lib program.
8009 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8010 fix_srcfile_path='`cygpath -w "$srcfile"`'
8011 enable_shared_with_static_runtimes=yes
8012 ;;
8013
8014 darwin* | rhapsody*)
8015 case $host_os in
8016 rhapsody* | darwin1.[012])
8017 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8018 ;;
8019 *) # Darwin 1.3 on
8020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8021 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8022 else
8023 case ${MACOSX_DEPLOYMENT_TARGET} in
8024 10.[012])
8025 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8026 ;;
8027 10.*)
8028 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8029 ;;
8030 esac
8031 fi
8032 ;;
8033 esac
8034 archive_cmds_need_lc=no
8035 hardcode_direct=no
8036 hardcode_automatic=yes
8037 hardcode_shlibpath_var=unsupported
8038 whole_archive_flag_spec=''
8039 link_all_deplibs=yes
8040 if test "$GCC" = yes ; then
8041 output_verbose_link_cmd='echo'
8042 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8043 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8045 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}'
8046 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}'
8047 else
8048 case $cc_basename in
8049 xlc*)
8050 output_verbose_link_cmd='echo'
8051 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8052 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8054 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8055 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}'
8056 ;;
8057 *)
8058 ld_shlibs=no
8059 ;;
8060 esac
8061 fi
8062 ;;
8063
8064 dgux*)
8065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066 hardcode_libdir_flag_spec='-L$libdir'
8067 hardcode_shlibpath_var=no
8068 ;;
8069
8070 freebsd1*)
8071 ld_shlibs=no
8072 ;;
8073
8074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8075 # support. Future versions do this automatically, but an explicit c++rt0.o
8076 # does not break anything, and helps significantly (at the cost of a little
8077 # extra space).
8078 freebsd2.2*)
8079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8080 hardcode_libdir_flag_spec='-R$libdir'
8081 hardcode_direct=yes
8082 hardcode_shlibpath_var=no
8083 ;;
8084
8085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8086 freebsd2*)
8087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_direct=yes
8089 hardcode_minus_L=yes
8090 hardcode_shlibpath_var=no
8091 ;;
8092
8093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8094 freebsd* | kfreebsd*-gnu | dragonfly*)
8095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8096 hardcode_libdir_flag_spec='-R$libdir'
8097 hardcode_direct=yes
8098 hardcode_shlibpath_var=no
8099 ;;
8100
8101 hpux9*)
8102 if test "$GCC" = yes; then
8103 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'
8104 else
8105 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'
8106 fi
8107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8108 hardcode_libdir_separator=:
8109 hardcode_direct=yes
8110
8111 # hardcode_minus_L: Not really in the search PATH,
8112 # but as the default location of the library.
8113 hardcode_minus_L=yes
8114 export_dynamic_flag_spec='${wl}-E'
8115 ;;
8116
8117 hpux10*)
8118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8120 else
8121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8122 fi
8123 if test "$with_gnu_ld" = no; then
8124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8125 hardcode_libdir_separator=:
8126
8127 hardcode_direct=yes
8128 export_dynamic_flag_spec='${wl}-E'
8129
8130 # hardcode_minus_L: Not really in the search PATH,
8131 # but as the default location of the library.
8132 hardcode_minus_L=yes
8133 fi
8134 ;;
8135
8136 hpux11*)
8137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8138 case $host_cpu in
8139 hppa*64*)
8140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8141 ;;
8142 ia64*)
8143 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8144 ;;
8145 *)
8146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8147 ;;
8148 esac
8149 else
8150 case $host_cpu in
8151 hppa*64*)
8152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8153 ;;
8154 ia64*)
8155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8156 ;;
8157 *)
8158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8159 ;;
8160 esac
8161 fi
8162 if test "$with_gnu_ld" = no; then
8163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8164 hardcode_libdir_separator=:
8165
8166 case $host_cpu in
8167 hppa*64*|ia64*)
8168 hardcode_libdir_flag_spec_ld='+b $libdir'
8169 hardcode_direct=no
8170 hardcode_shlibpath_var=no
8171 ;;
8172 *)
8173 hardcode_direct=yes
8174 export_dynamic_flag_spec='${wl}-E'
8175
8176 # hardcode_minus_L: Not really in the search PATH,
8177 # but as the default location of the library.
8178 hardcode_minus_L=yes
8179 ;;
8180 esac
8181 fi
8182 ;;
8183
8184 irix5* | irix6* | nonstopux*)
8185 if test "$GCC" = yes; then
8186 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'
8187 else
8188 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'
8189 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8190 fi
8191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8192 hardcode_libdir_separator=:
8193 link_all_deplibs=yes
8194 ;;
8195
8196 netbsd*)
8197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8199 else
8200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8201 fi
8202 hardcode_libdir_flag_spec='-R$libdir'
8203 hardcode_direct=yes
8204 hardcode_shlibpath_var=no
8205 ;;
8206
8207 newsos6)
8208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8209 hardcode_direct=yes
8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211 hardcode_libdir_separator=:
8212 hardcode_shlibpath_var=no
8213 ;;
8214
8215 openbsd*)
8216 hardcode_direct=yes
8217 hardcode_shlibpath_var=no
8218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8220 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8222 export_dynamic_flag_spec='${wl}-E'
8223 else
8224 case $host_os in
8225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_libdir_flag_spec='-R$libdir'
8228 ;;
8229 *)
8230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 ;;
8233 esac
8234 fi
8235 ;;
8236
8237 os2*)
8238 hardcode_libdir_flag_spec='-L$libdir'
8239 hardcode_minus_L=yes
8240 allow_undefined_flag=unsupported
8241 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'
8242 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8243 ;;
8244
8245 osf3*)
8246 if test "$GCC" = yes; then
8247 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8248 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'
8249 else
8250 allow_undefined_flag=' -expect_unresolved \*'
8251 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'
8252 fi
8253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8254 hardcode_libdir_separator=:
8255 ;;
8256
8257 osf4* | osf5*) # as osf3* with the addition of -msym flag
8258 if test "$GCC" = yes; then
8259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8260 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'
8261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8262 else
8263 allow_undefined_flag=' -expect_unresolved \*'
8264 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'
8265 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8266 $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'
8267
8268 # Both c and cxx compiler support -rpath directly
8269 hardcode_libdir_flag_spec='-rpath $libdir'
8270 fi
8271 hardcode_libdir_separator=:
8272 ;;
8273
8274 solaris*)
8275 no_undefined_flag=' -z text'
8276 if test "$GCC" = yes; then
8277 wlarc='${wl}'
8278 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8281 else
8282 wlarc=''
8283 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8286 fi
8287 hardcode_libdir_flag_spec='-R$libdir'
8288 hardcode_shlibpath_var=no
8289 case $host_os in
8290 solaris2.[0-5] | solaris2.[0-5].*) ;;
8291 *)
8292 # The compiler driver will combine linker options so we
8293 # cannot just pass the convience library names through
8294 # without $wl, iff we do not link with $LD.
8295 # Luckily, gcc supports the same syntax we need for Sun Studio.
8296 # Supported since Solaris 2.6 (maybe 2.5.1?)
8297 case $wlarc in
8298 '')
8299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8300 *)
8301 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8302 esac ;;
8303 esac
8304 link_all_deplibs=yes
8305 ;;
8306
8307 sunos4*)
8308 if test "x$host_vendor" = xsequent; then
8309 # Use $CC to link under sequent, because it throws in some extra .o
8310 # files that make .init and .fini sections work.
8311 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8312 else
8313 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8314 fi
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_direct=yes
8317 hardcode_minus_L=yes
8318 hardcode_shlibpath_var=no
8319 ;;
8320
8321 sysv4)
8322 case $host_vendor in
8323 sni)
8324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8325 hardcode_direct=yes # is this really true???
8326 ;;
8327 siemens)
8328 ## LD is ld it makes a PLAMLIB
8329 ## CC just makes a GrossModule.
8330 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8331 reload_cmds='$CC -r -o $output$reload_objs'
8332 hardcode_direct=no
8333 ;;
8334 motorola)
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8337 ;;
8338 esac
8339 runpath_var='LD_RUN_PATH'
8340 hardcode_shlibpath_var=no
8341 ;;
8342
8343 sysv4.3*)
8344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345 hardcode_shlibpath_var=no
8346 export_dynamic_flag_spec='-Bexport'
8347 ;;
8348
8349 sysv4*MP*)
8350 if test -d /usr/nec; then
8351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352 hardcode_shlibpath_var=no
8353 runpath_var=LD_RUN_PATH
8354 hardcode_runpath_var=yes
8355 ld_shlibs=yes
8356 fi
8357 ;;
8358
8359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8360 no_undefined_flag='${wl}-z,text'
8361 archive_cmds_need_lc=no
8362 hardcode_shlibpath_var=no
8363 runpath_var='LD_RUN_PATH'
8364
8365 if test "$GCC" = yes; then
8366 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8367 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8368 else
8369 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8370 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8371 fi
8372 ;;
8373
8374 sysv5* | sco3.2v5* | sco5v6*)
8375 # Note: We can NOT use -z defs as we might desire, because we do not
8376 # link with -lc, and that would cause any symbols used from libc to
8377 # always be unresolved, which means just about no library would
8378 # ever link correctly. If we're not using GNU ld we use -z text
8379 # though, which does catch some bad symbols but isn't as heavy-handed
8380 # as -z defs.
8381 no_undefined_flag='${wl}-z,text'
8382 allow_undefined_flag='${wl}-z,nodefs'
8383 archive_cmds_need_lc=no
8384 hardcode_shlibpath_var=no
8385 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8386 hardcode_libdir_separator=':'
8387 link_all_deplibs=yes
8388 export_dynamic_flag_spec='${wl}-Bexport'
8389 runpath_var='LD_RUN_PATH'
8390
8391 if test "$GCC" = yes; then
8392 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8394 else
8395 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 fi
8398 ;;
8399
8400 uts4*)
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_shlibpath_var=no
8404 ;;
8405
8406 *)
8407 ld_shlibs=no
8408 ;;
8409 esac
8410 fi
8411
8412 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8413 echo "${ECHO_T}$ld_shlibs" >&6; }
8414 test "$ld_shlibs" = no && can_build_shared=no
8415
8416 #
8417 # Do we need to explicitly link libc?
8418 #
8419 case "x$archive_cmds_need_lc" in
8420 x|xyes)
8421 # Assume -lc should be added
8422 archive_cmds_need_lc=yes
8423
8424 if test "$enable_shared" = yes && test "$GCC" = yes; then
8425 case $archive_cmds in
8426 *'~'*)
8427 # FIXME: we may have to deal with multi-command sequences.
8428 ;;
8429 '$CC '*)
8430 # Test whether the compiler implicitly links with -lc since on some
8431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8432 # to ld, don't add -lc before -lgcc.
8433 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8435 $rm conftest*
8436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8437
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } 2>conftest.err; then
8443 soname=conftest
8444 lib=conftest
8445 libobjs=conftest.$ac_objext
8446 deplibs=
8447 wl=$lt_prog_compiler_wl
8448 pic_flag=$lt_prog_compiler_pic
8449 compiler_flags=-v
8450 linker_flags=-v
8451 verstring=
8452 output_objdir=.
8453 libname=conftest
8454 lt_save_allow_undefined_flag=$allow_undefined_flag
8455 allow_undefined_flag=
8456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8457 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }
8461 then
8462 archive_cmds_need_lc=no
8463 else
8464 archive_cmds_need_lc=yes
8465 fi
8466 allow_undefined_flag=$lt_save_allow_undefined_flag
8467 else
8468 cat conftest.err 1>&5
8469 fi
8470 $rm conftest*
8471 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8472 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8473 ;;
8474 esac
8475 fi
8476 ;;
8477 esac
8478
8479 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8481 library_names_spec=
8482 libname_spec='lib$name'
8483 soname_spec=
8484 shrext_cmds=".so"
8485 postinstall_cmds=
8486 postuninstall_cmds=
8487 finish_cmds=
8488 finish_eval=
8489 shlibpath_var=
8490 shlibpath_overrides_runpath=unknown
8491 version_type=none
8492 dynamic_linker="$host_os ld.so"
8493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8494 if test "$GCC" = yes; then
8495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8497 # if the path contains ";" then we assume it to be the separator
8498 # otherwise default to the standard path separator (i.e. ":") - it is
8499 # assumed that no part of a normal pathname contains ";" but that should
8500 # okay in the real world where ";" in dirpaths is itself problematic.
8501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8502 else
8503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8504 fi
8505 else
8506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8507 fi
8508 need_lib_prefix=unknown
8509 hardcode_into_libs=no
8510
8511 # when you set need_version to no, make sure it does not cause -set_version
8512 # flags to be left without arguments
8513 need_version=unknown
8514
8515 case $host_os in
8516 aix3*)
8517 version_type=linux
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8519 shlibpath_var=LIBPATH
8520
8521 # AIX 3 has no versioning support, so we append a major version to the name.
8522 soname_spec='${libname}${release}${shared_ext}$major'
8523 ;;
8524
8525 aix4* | aix5*)
8526 version_type=linux
8527 need_lib_prefix=no
8528 need_version=no
8529 hardcode_into_libs=yes
8530 if test "$host_cpu" = ia64; then
8531 # AIX 5 supports IA64
8532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 else
8535 # With GCC up to 2.95.x, collect2 would create an import file
8536 # for dependence libraries. The import file would start with
8537 # the line `#! .'. This would cause the generated library to
8538 # depend on `.', always an invalid library. This was fixed in
8539 # development snapshots of GCC prior to 3.0.
8540 case $host_os in
8541 aix4 | aix4.[01] | aix4.[01].*)
8542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8543 echo ' yes '
8544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8545 :
8546 else
8547 can_build_shared=no
8548 fi
8549 ;;
8550 esac
8551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8552 # soname into executable. Probably we can add versioning support to
8553 # collect2, so additional links can be useful in future.
8554 if test "$aix_use_runtimelinking" = yes; then
8555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8556 # instead of lib<name>.a to let people know that these are not
8557 # typical AIX shared libraries.
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8559 else
8560 # We preserve .a as extension for shared libraries through AIX4.2
8561 # and later when we are not doing run time linking.
8562 library_names_spec='${libname}${release}.a $libname.a'
8563 soname_spec='${libname}${release}${shared_ext}$major'
8564 fi
8565 shlibpath_var=LIBPATH
8566 fi
8567 ;;
8568
8569 amigaos*)
8570 library_names_spec='$libname.ixlibrary $libname.a'
8571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572 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'
8573 ;;
8574
8575 beos*)
8576 library_names_spec='${libname}${shared_ext}'
8577 dynamic_linker="$host_os ld.so"
8578 shlibpath_var=LIBRARY_PATH
8579 ;;
8580
8581 bsdi[45]*)
8582 version_type=linux
8583 need_version=no
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585 soname_spec='${libname}${release}${shared_ext}$major'
8586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8587 shlibpath_var=LD_LIBRARY_PATH
8588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8590 # the default ld.so.conf also contains /usr/contrib/lib and
8591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8592 # libtool to hard-code these into programs
8593 ;;
8594
8595 cygwin* | mingw* | pw32*)
8596 version_type=windows
8597 shrext_cmds=".dll"
8598 need_version=no
8599 need_lib_prefix=no
8600
8601 case $GCC,$host_os in
8602 yes,cygwin* | yes,mingw* | yes,pw32*)
8603 library_names_spec='$libname.dll.a'
8604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8605 postinstall_cmds='base_file=`basename \${file}`~
8606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8607 dldir=$destdir/`dirname \$dlpath`~
8608 test -d \$dldir || mkdir -p \$dldir~
8609 $install_prog $dir/$dlname \$dldir/$dlname~
8610 chmod a+x \$dldir/$dlname'
8611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8612 dlpath=$dir/\$dldll~
8613 $rm \$dlpath'
8614 shlibpath_overrides_runpath=yes
8615
8616 case $host_os in
8617 cygwin*)
8618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8621 ;;
8622 mingw*)
8623 # MinGW DLLs use traditional 'lib' prefix
8624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8627 # It is most probably a Windows format PATH printed by
8628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8629 # path with ; separators, and with drive letters. We can handle the
8630 # drive letters (cygwin fileutils understands them), so leave them,
8631 # especially as we might pass files found there to a mingw objdump,
8632 # which wouldn't understand a cygwinified path. Ahh.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 else
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8636 fi
8637 ;;
8638 pw32*)
8639 # pw32 DLLs use 'pw' prefix rather than 'lib'
8640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8641 ;;
8642 esac
8643 ;;
8644
8645 *)
8646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8647 ;;
8648 esac
8649 dynamic_linker='Win32 ld.exe'
8650 # FIXME: first we should search . and the directory the executable is in
8651 shlibpath_var=PATH
8652 ;;
8653
8654 darwin* | rhapsody*)
8655 dynamic_linker="$host_os dyld"
8656 version_type=darwin
8657 need_lib_prefix=no
8658 need_version=no
8659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8660 soname_spec='${libname}${release}${major}$shared_ext'
8661 shlibpath_overrides_runpath=yes
8662 shlibpath_var=DYLD_LIBRARY_PATH
8663 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8665 if test "$GCC" = yes; then
8666 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8667 else
8668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8669 fi
8670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8671 ;;
8672
8673 dgux*)
8674 version_type=linux
8675 need_lib_prefix=no
8676 need_version=no
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 shlibpath_var=LD_LIBRARY_PATH
8680 ;;
8681
8682 freebsd1*)
8683 dynamic_linker=no
8684 ;;
8685
8686 kfreebsd*-gnu)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 shlibpath_overrides_runpath=no
8694 hardcode_into_libs=yes
8695 dynamic_linker='GNU ld.so'
8696 ;;
8697
8698 freebsd* | dragonfly*)
8699 # DragonFly does not have aout. When/if they implement a new
8700 # versioning mechanism, adjust this.
8701 if test -x /usr/bin/objformat; then
8702 objformat=`/usr/bin/objformat`
8703 else
8704 case $host_os in
8705 freebsd[123]*) objformat=aout ;;
8706 *) objformat=elf ;;
8707 esac
8708 fi
8709 version_type=freebsd-$objformat
8710 case $version_type in
8711 freebsd-elf*)
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8713 need_version=no
8714 need_lib_prefix=no
8715 ;;
8716 freebsd-*)
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8718 need_version=yes
8719 ;;
8720 esac
8721 shlibpath_var=LD_LIBRARY_PATH
8722 case $host_os in
8723 freebsd2*)
8724 shlibpath_overrides_runpath=yes
8725 ;;
8726 freebsd3.[01]* | freebsdelf3.[01]*)
8727 shlibpath_overrides_runpath=yes
8728 hardcode_into_libs=yes
8729 ;;
8730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8732 shlibpath_overrides_runpath=no
8733 hardcode_into_libs=yes
8734 ;;
8735 freebsd*) # from 4.6 on
8736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8738 ;;
8739 esac
8740 ;;
8741
8742 gnu*)
8743 version_type=linux
8744 need_lib_prefix=no
8745 need_version=no
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 hardcode_into_libs=yes
8750 ;;
8751
8752 hpux9* | hpux10* | hpux11*)
8753 # Give a soname corresponding to the major version so that dld.sl refuses to
8754 # link against other versions.
8755 version_type=sunos
8756 need_lib_prefix=no
8757 need_version=no
8758 case $host_cpu in
8759 ia64*)
8760 shrext_cmds='.so'
8761 hardcode_into_libs=yes
8762 dynamic_linker="$host_os dld.so"
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 if test "X$HPUX_IA64_MODE" = X32; then
8768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8769 else
8770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8771 fi
8772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8773 ;;
8774 hppa*64*)
8775 shrext_cmds='.sl'
8776 hardcode_into_libs=yes
8777 dynamic_linker="$host_os dld.sl"
8778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784 ;;
8785 *)
8786 shrext_cmds='.sl'
8787 dynamic_linker="$host_os dld.sl"
8788 shlibpath_var=SHLIB_PATH
8789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 ;;
8793 esac
8794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8795 postinstall_cmds='chmod 555 $lib'
8796 ;;
8797
8798 interix3*)
8799 version_type=linux
8800 need_lib_prefix=no
8801 need_version=no
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=no
8807 hardcode_into_libs=yes
8808 ;;
8809
8810 irix5* | irix6* | nonstopux*)
8811 case $host_os in
8812 nonstopux*) version_type=nonstopux ;;
8813 *)
8814 if test "$lt_cv_prog_gnu_ld" = yes; then
8815 version_type=linux
8816 else
8817 version_type=irix
8818 fi ;;
8819 esac
8820 need_lib_prefix=no
8821 need_version=no
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8824 case $host_os in
8825 irix5* | nonstopux*)
8826 libsuff= shlibsuff=
8827 ;;
8828 *)
8829 case $LD in # libtool.m4 will add one of these switches to LD
8830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8831 libsuff= shlibsuff= libmagic=32-bit;;
8832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8833 libsuff=32 shlibsuff=N32 libmagic=N32;;
8834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8836 *) libsuff= shlibsuff= libmagic=never-match;;
8837 esac
8838 ;;
8839 esac
8840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8841 shlibpath_overrides_runpath=no
8842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8844 hardcode_into_libs=yes
8845 ;;
8846
8847 # No shared lib support for Linux oldld, aout, or coff.
8848 linux*oldld* | linux*aout* | linux*coff*)
8849 dynamic_linker=no
8850 ;;
8851
8852 # This must be Linux ELF.
8853 linux*)
8854 version_type=linux
8855 need_lib_prefix=no
8856 need_version=no
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 # This implies no fast_install, which is unacceptable.
8863 # Some rework will be needed to allow for fast_install
8864 # before this can be enabled.
8865 hardcode_into_libs=yes
8866
8867 # find out which ABI we are using
8868 libsuff=
8869 case "$host_cpu" in
8870 x86_64*|s390x*|powerpc64*)
8871 echo '#line 8871 "configure"' > conftest.$ac_ext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873 (eval $ac_compile) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; then
8877 case `/usr/bin/file conftest.$ac_objext` in
8878 *64-bit*)
8879 libsuff=64
8880 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8881 ;;
8882 esac
8883 fi
8884 rm -rf conftest*
8885 ;;
8886 esac
8887
8888 # Append ld.so.conf contents to the search path
8889 if test -f /etc/ld.so.conf; then
8890 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8891 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8892 fi
8893
8894 # We used to test for /lib/ld.so.1 and disable shared libraries on
8895 # powerpc, because MkLinux only supported shared libraries with the
8896 # GNU dynamic linker. Since this was broken with cross compilers,
8897 # most powerpc-linux boxes support dynamic linking these days and
8898 # people can always --disable-shared, the test was removed, and we
8899 # assume the GNU/Linux dynamic linker is in use.
8900 dynamic_linker='GNU/Linux ld.so'
8901 ;;
8902
8903 knetbsd*-gnu)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8912 dynamic_linker='GNU ld.so'
8913 ;;
8914
8915 netbsd*)
8916 version_type=sunos
8917 need_lib_prefix=no
8918 need_version=no
8919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922 dynamic_linker='NetBSD (a.out) ld.so'
8923 else
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='NetBSD ld.elf_so'
8927 fi
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8931 ;;
8932
8933 newsos6)
8934 version_type=linux
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=yes
8938 ;;
8939
8940 nto-qnx*)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes
8948 ;;
8949
8950 openbsd*)
8951 version_type=sunos
8952 sys_lib_dlsearch_path_spec="/usr/lib"
8953 need_lib_prefix=no
8954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8955 case $host_os in
8956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8957 *) need_version=no ;;
8958 esac
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8963 case $host_os in
8964 openbsd2.[89] | openbsd2.[89].*)
8965 shlibpath_overrides_runpath=no
8966 ;;
8967 *)
8968 shlibpath_overrides_runpath=yes
8969 ;;
8970 esac
8971 else
8972 shlibpath_overrides_runpath=yes
8973 fi
8974 ;;
8975
8976 os2*)
8977 libname_spec='$name'
8978 shrext_cmds=".dll"
8979 need_lib_prefix=no
8980 library_names_spec='$libname${shared_ext} $libname.a'
8981 dynamic_linker='OS/2 ld.exe'
8982 shlibpath_var=LIBPATH
8983 ;;
8984
8985 osf3* | osf4* | osf5*)
8986 version_type=osf
8987 need_lib_prefix=no
8988 need_version=no
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8994 ;;
8995
8996 solaris*)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9005 # ldd complains unless libraries are executable
9006 postinstall_cmds='chmod +x $lib'
9007 ;;
9008
9009 sunos4*)
9010 version_type=sunos
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 if test "$with_gnu_ld" = yes; then
9016 need_lib_prefix=no
9017 fi
9018 need_version=yes
9019 ;;
9020
9021 sysv4 | sysv4.3*)
9022 version_type=linux
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 case $host_vendor in
9027 sni)
9028 shlibpath_overrides_runpath=no
9029 need_lib_prefix=no
9030 export_dynamic_flag_spec='${wl}-Blargedynsym'
9031 runpath_var=LD_RUN_PATH
9032 ;;
9033 siemens)
9034 need_lib_prefix=no
9035 ;;
9036 motorola)
9037 need_lib_prefix=no
9038 need_version=no
9039 shlibpath_overrides_runpath=no
9040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9041 ;;
9042 esac
9043 ;;
9044
9045 sysv4*MP*)
9046 if test -d /usr/nec ;then
9047 version_type=linux
9048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049 soname_spec='$libname${shared_ext}.$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 fi
9052 ;;
9053
9054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055 version_type=freebsd-elf
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 hardcode_into_libs=yes
9062 if test "$with_gnu_ld" = yes; then
9063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9064 shlibpath_overrides_runpath=no
9065 else
9066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9067 shlibpath_overrides_runpath=yes
9068 case $host_os in
9069 sco3.2v5*)
9070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9071 ;;
9072 esac
9073 fi
9074 sys_lib_dlsearch_path_spec='/usr/lib'
9075 ;;
9076
9077 uts4*)
9078 version_type=linux
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 ;;
9083
9084 *)
9085 dynamic_linker=no
9086 ;;
9087 esac
9088 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9089 echo "${ECHO_T}$dynamic_linker" >&6; }
9090 test "$dynamic_linker" = no && can_build_shared=no
9091
9092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9093 if test "$GCC" = yes; then
9094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9095 fi
9096
9097 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9098 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9099 hardcode_action=
9100 if test -n "$hardcode_libdir_flag_spec" || \
9101 test -n "$runpath_var" || \
9102 test "X$hardcode_automatic" = "Xyes" ; then
9103
9104 # We can hardcode non-existant directories.
9105 if test "$hardcode_direct" != no &&
9106 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9107 # have to relink, otherwise we might link with an installed library
9108 # when we should be linking with a yet-to-be-installed one
9109 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9110 test "$hardcode_minus_L" != no; then
9111 # Linking always hardcodes the temporary library directory.
9112 hardcode_action=relink
9113 else
9114 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9115 hardcode_action=immediate
9116 fi
9117 else
9118 # We cannot hardcode anything, or else we can only hardcode existing
9119 # directories.
9120 hardcode_action=unsupported
9121 fi
9122 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9123 echo "${ECHO_T}$hardcode_action" >&6; }
9124
9125 if test "$hardcode_action" = relink; then
9126 # Fast installation is not supported
9127 enable_fast_install=no
9128 elif test "$shlibpath_overrides_runpath" = yes ||
9129 test "$enable_shared" = no; then
9130 # Fast installation is not necessary
9131 enable_fast_install=needless
9132 fi
9133
9134 striplib=
9135 old_striplib=
9136 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9137 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9138 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9141 { echo "$as_me:$LINENO: result: yes" >&5
9142 echo "${ECHO_T}yes" >&6; }
9143 else
9144 # FIXME - insert some real tests, host_os isn't really good enough
9145 case $host_os in
9146 darwin*)
9147 if test -n "$STRIP" ; then
9148 striplib="$STRIP -x"
9149 { echo "$as_me:$LINENO: result: yes" >&5
9150 echo "${ECHO_T}yes" >&6; }
9151 else
9152 { echo "$as_me:$LINENO: result: no" >&5
9153 echo "${ECHO_T}no" >&6; }
9154 fi
9155 ;;
9156 *)
9157 { echo "$as_me:$LINENO: result: no" >&5
9158 echo "${ECHO_T}no" >&6; }
9159 ;;
9160 esac
9161 fi
9162
9163 if test "x$enable_dlopen" != xyes; then
9164 enable_dlopen=unknown
9165 enable_dlopen_self=unknown
9166 enable_dlopen_self_static=unknown
9167 else
9168 lt_cv_dlopen=no
9169 lt_cv_dlopen_libs=
9170
9171 case $host_os in
9172 beos*)
9173 lt_cv_dlopen="load_add_on"
9174 lt_cv_dlopen_libs=
9175 lt_cv_dlopen_self=yes
9176 ;;
9177
9178 mingw* | pw32*)
9179 lt_cv_dlopen="LoadLibrary"
9180 lt_cv_dlopen_libs=
9181 ;;
9182
9183 cygwin*)
9184 lt_cv_dlopen="dlopen"
9185 lt_cv_dlopen_libs=
9186 ;;
9187
9188 darwin*)
9189 # if libdl is installed we need to link against it
9190 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 ac_check_lib_save_LIBS=$LIBS
9196 LIBS="-ldl $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 /* confdefs.h. */
9199 _ACEOF
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203
9204 /* Override any GCC internal prototype to avoid an error.
9205 Use char because int might match the return type of a GCC
9206 builtin and then its argument prototype would still apply. */
9207 #ifdef __cplusplus
9208 extern "C"
9209 #endif
9210 char dlopen ();
9211 int
9212 main ()
9213 {
9214 return dlopen ();
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9221 case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext &&
9236 $as_test_x conftest$ac_exeext; then
9237 ac_cv_lib_dl_dlopen=yes
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_cv_lib_dl_dlopen=no
9243 fi
9244
9245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9246 conftest$ac_exeext conftest.$ac_ext
9247 LIBS=$ac_check_lib_save_LIBS
9248 fi
9249 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9250 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9251 if test $ac_cv_lib_dl_dlopen = yes; then
9252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9253 else
9254
9255 lt_cv_dlopen="dyld"
9256 lt_cv_dlopen_libs=
9257 lt_cv_dlopen_self=yes
9258
9259 fi
9260
9261 ;;
9262
9263 *)
9264 { echo "$as_me:$LINENO: checking for shl_load" >&5
9265 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9266 if test "${ac_cv_func_shl_load+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269 cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h. */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9277 #define shl_load innocuous_shl_load
9278
9279 /* System header to define __stub macros and hopefully few prototypes,
9280 which can conflict with char shl_load (); below.
9281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9282 <limits.h> exists even on freestanding compilers. */
9283
9284 #ifdef __STDC__
9285 # include <limits.h>
9286 #else
9287 # include <assert.h>
9288 #endif
9289
9290 #undef shl_load
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char shl_load ();
9299 /* The GNU C library defines this for functions which it implements
9300 to always fail with ENOSYS. Some functions are actually named
9301 something starting with __ and the normal name is an alias. */
9302 #if defined __stub_shl_load || defined __stub___shl_load
9303 choke me
9304 #endif
9305
9306 int
9307 main ()
9308 {
9309 return shl_load ();
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9316 case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319 esac
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_link") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext &&
9331 $as_test_x conftest$ac_exeext; then
9332 ac_cv_func_shl_load=yes
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 ac_cv_func_shl_load=no
9338 fi
9339
9340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9341 conftest$ac_exeext conftest.$ac_ext
9342 fi
9343 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9344 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9345 if test $ac_cv_func_shl_load = yes; then
9346 lt_cv_dlopen="shl_load"
9347 else
9348 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9349 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9350 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-ldld $LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char shl_load ();
9369 int
9370 main ()
9371 {
9372 return shl_load ();
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest$ac_exeext &&
9394 $as_test_x conftest$ac_exeext; then
9395 ac_cv_lib_dld_shl_load=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_cv_lib_dld_shl_load=no
9401 fi
9402
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9408 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9409 if test $ac_cv_lib_dld_shl_load = yes; then
9410 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9411 else
9412 { echo "$as_me:$LINENO: checking for dlopen" >&5
9413 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9414 if test "${ac_cv_func_dlopen+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h. */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9425 #define dlopen innocuous_dlopen
9426
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char dlopen (); below.
9429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9430 <limits.h> exists even on freestanding compilers. */
9431
9432 #ifdef __STDC__
9433 # include <limits.h>
9434 #else
9435 # include <assert.h>
9436 #endif
9437
9438 #undef dlopen
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char dlopen ();
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined __stub_dlopen || defined __stub___dlopen
9451 choke me
9452 #endif
9453
9454 int
9455 main ()
9456 {
9457 return dlopen ();
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_link") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest$ac_exeext &&
9479 $as_test_x conftest$ac_exeext; then
9480 ac_cv_func_dlopen=yes
9481 else
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_func_dlopen=no
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9489 conftest$ac_exeext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9493 if test $ac_cv_func_dlopen = yes; then
9494 lt_cv_dlopen="dlopen"
9495 else
9496 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 ac_check_lib_save_LIBS=$LIBS
9502 LIBS="-ldl $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char dlopen ();
9517 int
9518 main ()
9519 {
9520 return dlopen ();
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_lib_dl_dlopen=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_lib_dl_dlopen=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9554 fi
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9556 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9557 if test $ac_cv_lib_dl_dlopen = yes; then
9558 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9559 else
9560 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9561 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9562 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 ac_check_lib_save_LIBS=$LIBS
9566 LIBS="-lsvld $LIBS"
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char dlopen ();
9581 int
9582 main ()
9583 {
9584 return dlopen ();
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9591 case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594 esac
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest$ac_exeext &&
9606 $as_test_x conftest$ac_exeext; then
9607 ac_cv_lib_svld_dlopen=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ac_cv_lib_svld_dlopen=no
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9620 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9621 if test $ac_cv_lib_svld_dlopen = yes; then
9622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9623 else
9624 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9625 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9626 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-ldld $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637
9638 /* Override any GCC internal prototype to avoid an error.
9639 Use char because int might match the return type of a GCC
9640 builtin and then its argument prototype would still apply. */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 char dld_link ();
9645 int
9646 main ()
9647 {
9648 return dld_link ();
9649 ;
9650 return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest$ac_exeext &&
9670 $as_test_x conftest$ac_exeext; then
9671 ac_cv_lib_dld_dld_link=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_cv_lib_dld_dld_link=no
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9682 fi
9683 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9684 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9685 if test $ac_cv_lib_dld_dld_link = yes; then
9686 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9687 fi
9688
9689
9690 fi
9691
9692
9693 fi
9694
9695
9696 fi
9697
9698
9699 fi
9700
9701
9702 fi
9703
9704 ;;
9705 esac
9706
9707 if test "x$lt_cv_dlopen" != xno; then
9708 enable_dlopen=yes
9709 else
9710 enable_dlopen=no
9711 fi
9712
9713 case $lt_cv_dlopen in
9714 dlopen)
9715 save_CPPFLAGS="$CPPFLAGS"
9716 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9717
9718 save_LDFLAGS="$LDFLAGS"
9719 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9720
9721 save_LIBS="$LIBS"
9722 LIBS="$lt_cv_dlopen_libs $LIBS"
9723
9724 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9725 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9726 if test "${lt_cv_dlopen_self+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 if test "$cross_compiling" = yes; then :
9730 lt_cv_dlopen_self=cross
9731 else
9732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9733 lt_status=$lt_dlunknown
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9735 "configure"
9736 #include "confdefs.h"
9737
9738 #if HAVE_DLFCN_H
9739 #include <dlfcn.h>
9740 #endif
9741
9742 #include <stdio.h>
9743
9744 #ifdef RTLD_GLOBAL
9745 # define LT_DLGLOBAL RTLD_GLOBAL
9746 #else
9747 # ifdef DL_GLOBAL
9748 # define LT_DLGLOBAL DL_GLOBAL
9749 # else
9750 # define LT_DLGLOBAL 0
9751 # endif
9752 #endif
9753
9754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9755 find out it does not work in some platform. */
9756 #ifndef LT_DLLAZY_OR_NOW
9757 # ifdef RTLD_LAZY
9758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9759 # else
9760 # ifdef DL_LAZY
9761 # define LT_DLLAZY_OR_NOW DL_LAZY
9762 # else
9763 # ifdef RTLD_NOW
9764 # define LT_DLLAZY_OR_NOW RTLD_NOW
9765 # else
9766 # ifdef DL_NOW
9767 # define LT_DLLAZY_OR_NOW DL_NOW
9768 # else
9769 # define LT_DLLAZY_OR_NOW 0
9770 # endif
9771 # endif
9772 # endif
9773 # endif
9774 #endif
9775
9776 #ifdef __cplusplus
9777 extern "C" void exit (int);
9778 #endif
9779
9780 void fnord() { int i=42;}
9781 int main ()
9782 {
9783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9784 int status = $lt_dlunknown;
9785
9786 if (self)
9787 {
9788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9790 /* dlclose (self); */
9791 }
9792 else
9793 puts (dlerror ());
9794
9795 exit (status);
9796 }
9797 EOF
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9803 (./conftest; exit; ) >&5 2>/dev/null
9804 lt_status=$?
9805 case x$lt_status in
9806 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9807 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9808 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9809 esac
9810 else :
9811 # compilation failed
9812 lt_cv_dlopen_self=no
9813 fi
9814 fi
9815 rm -fr conftest*
9816
9817
9818 fi
9819 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9820 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9821
9822 if test "x$lt_cv_dlopen_self" = xyes; then
9823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9824 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9825 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9826 if test "${lt_cv_dlopen_self_static+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829 if test "$cross_compiling" = yes; then :
9830 lt_cv_dlopen_self_static=cross
9831 else
9832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9833 lt_status=$lt_dlunknown
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9837
9838 #if HAVE_DLFCN_H
9839 #include <dlfcn.h>
9840 #endif
9841
9842 #include <stdio.h>
9843
9844 #ifdef RTLD_GLOBAL
9845 # define LT_DLGLOBAL RTLD_GLOBAL
9846 #else
9847 # ifdef DL_GLOBAL
9848 # define LT_DLGLOBAL DL_GLOBAL
9849 # else
9850 # define LT_DLGLOBAL 0
9851 # endif
9852 #endif
9853
9854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9855 find out it does not work in some platform. */
9856 #ifndef LT_DLLAZY_OR_NOW
9857 # ifdef RTLD_LAZY
9858 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9859 # else
9860 # ifdef DL_LAZY
9861 # define LT_DLLAZY_OR_NOW DL_LAZY
9862 # else
9863 # ifdef RTLD_NOW
9864 # define LT_DLLAZY_OR_NOW RTLD_NOW
9865 # else
9866 # ifdef DL_NOW
9867 # define LT_DLLAZY_OR_NOW DL_NOW
9868 # else
9869 # define LT_DLLAZY_OR_NOW 0
9870 # endif
9871 # endif
9872 # endif
9873 # endif
9874 #endif
9875
9876 #ifdef __cplusplus
9877 extern "C" void exit (int);
9878 #endif
9879
9880 void fnord() { int i=42;}
9881 int main ()
9882 {
9883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9884 int status = $lt_dlunknown;
9885
9886 if (self)
9887 {
9888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9889 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9890 /* dlclose (self); */
9891 }
9892 else
9893 puts (dlerror ());
9894
9895 exit (status);
9896 }
9897 EOF
9898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9899 (eval $ac_link) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9903 (./conftest; exit; ) >&5 2>/dev/null
9904 lt_status=$?
9905 case x$lt_status in
9906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9909 esac
9910 else :
9911 # compilation failed
9912 lt_cv_dlopen_self_static=no
9913 fi
9914 fi
9915 rm -fr conftest*
9916
9917
9918 fi
9919 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9920 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9921 fi
9922
9923 CPPFLAGS="$save_CPPFLAGS"
9924 LDFLAGS="$save_LDFLAGS"
9925 LIBS="$save_LIBS"
9926 ;;
9927 esac
9928
9929 case $lt_cv_dlopen_self in
9930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9931 *) enable_dlopen_self=unknown ;;
9932 esac
9933
9934 case $lt_cv_dlopen_self_static in
9935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9936 *) enable_dlopen_self_static=unknown ;;
9937 esac
9938 fi
9939
9940
9941 # Report which library types will actually be built
9942 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9943 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9944 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9945 echo "${ECHO_T}$can_build_shared" >&6; }
9946
9947 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9948 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9949 test "$can_build_shared" = "no" && enable_shared=no
9950
9951 # On AIX, shared libraries and static libraries use the same namespace, and
9952 # are all built from PIC.
9953 case $host_os in
9954 aix3*)
9955 test "$enable_shared" = yes && enable_static=no
9956 if test -n "$RANLIB"; then
9957 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9958 postinstall_cmds='$RANLIB $lib'
9959 fi
9960 ;;
9961
9962 aix4* | aix5*)
9963 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9964 test "$enable_shared" = yes && enable_static=no
9965 fi
9966 ;;
9967 esac
9968 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9969 echo "${ECHO_T}$enable_shared" >&6; }
9970
9971 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9972 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9973 # Make sure either enable_shared or enable_static is yes.
9974 test "$enable_shared" = yes || enable_static=yes
9975 { echo "$as_me:$LINENO: result: $enable_static" >&5
9976 echo "${ECHO_T}$enable_static" >&6; }
9977
9978 # The else clause should only fire when bootstrapping the
9979 # libtool distribution, otherwise you forgot to ship ltmain.sh
9980 # with your package, and you will get complaints that there are
9981 # no rules to generate ltmain.sh.
9982 if test -f "$ltmain"; then
9983 # See if we are running on zsh, and set the options which allow our commands through
9984 # without removal of \ escapes.
9985 if test -n "${ZSH_VERSION+set}" ; then
9986 setopt NO_GLOB_SUBST
9987 fi
9988 # Now quote all the things that may contain metacharacters while being
9989 # careful not to overquote the AC_SUBSTed values. We take copies of the
9990 # variables and quote the copies for generation of the libtool script.
9991 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9992 SED SHELL STRIP \
9993 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9994 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9995 deplibs_check_method reload_flag reload_cmds need_locks \
9996 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9997 lt_cv_sys_global_symbol_to_c_name_address \
9998 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9999 old_postinstall_cmds old_postuninstall_cmds \
10000 compiler \
10001 CC \
10002 LD \
10003 lt_prog_compiler_wl \
10004 lt_prog_compiler_pic \
10005 lt_prog_compiler_static \
10006 lt_prog_compiler_no_builtin_flag \
10007 export_dynamic_flag_spec \
10008 thread_safe_flag_spec \
10009 whole_archive_flag_spec \
10010 enable_shared_with_static_runtimes \
10011 old_archive_cmds \
10012 old_archive_from_new_cmds \
10013 predep_objects \
10014 postdep_objects \
10015 predeps \
10016 postdeps \
10017 compiler_lib_search_path \
10018 archive_cmds \
10019 archive_expsym_cmds \
10020 postinstall_cmds \
10021 postuninstall_cmds \
10022 old_archive_from_expsyms_cmds \
10023 allow_undefined_flag \
10024 no_undefined_flag \
10025 export_symbols_cmds \
10026 hardcode_libdir_flag_spec \
10027 hardcode_libdir_flag_spec_ld \
10028 hardcode_libdir_separator \
10029 hardcode_automatic \
10030 module_cmds \
10031 module_expsym_cmds \
10032 lt_cv_prog_compiler_c_o \
10033 exclude_expsyms \
10034 include_expsyms; do
10035
10036 case $var in
10037 old_archive_cmds | \
10038 old_archive_from_new_cmds | \
10039 archive_cmds | \
10040 archive_expsym_cmds | \
10041 module_cmds | \
10042 module_expsym_cmds | \
10043 old_archive_from_expsyms_cmds | \
10044 export_symbols_cmds | \
10045 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10046 postinstall_cmds | postuninstall_cmds | \
10047 old_postinstall_cmds | old_postuninstall_cmds | \
10048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10049 # Double-quote double-evaled strings.
10050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10051 ;;
10052 *)
10053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10054 ;;
10055 esac
10056 done
10057
10058 case $lt_echo in
10059 *'\$0 --fallback-echo"')
10060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10061 ;;
10062 esac
10063
10064 cfgfile="${ofile}T"
10065 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10066 $rm -f "$cfgfile"
10067 { echo "$as_me:$LINENO: creating $ofile" >&5
10068 echo "$as_me: creating $ofile" >&6;}
10069
10070 cat <<__EOF__ >> "$cfgfile"
10071 #! $SHELL
10072
10073 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10074 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10075 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10076 #
10077 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10078 # Free Software Foundation, Inc.
10079 #
10080 # This file is part of GNU Libtool:
10081 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10082 #
10083 # This program is free software; you can redistribute it and/or modify
10084 # it under the terms of the GNU General Public License as published by
10085 # the Free Software Foundation; either version 2 of the License, or
10086 # (at your option) any later version.
10087 #
10088 # This program is distributed in the hope that it will be useful, but
10089 # WITHOUT ANY WARRANTY; without even the implied warranty of
10090 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10091 # General Public License for more details.
10092 #
10093 # You should have received a copy of the GNU General Public License
10094 # along with this program; if not, write to the Free Software
10095 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10096 #
10097 # As a special exception to the GNU General Public License, if you
10098 # distribute this file as part of a program that contains a
10099 # configuration script generated by Autoconf, you may include it under
10100 # the same distribution terms that you use for the rest of that program.
10101
10102 # A sed program that does not truncate output.
10103 SED=$lt_SED
10104
10105 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10106 Xsed="$SED -e 1s/^X//"
10107
10108 # The HP-UX ksh and POSIX shell print the target directory to stdout
10109 # if CDPATH is set.
10110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10111
10112 # The names of the tagged configurations supported by this script.
10113 available_tags=
10114
10115 # ### BEGIN LIBTOOL CONFIG
10116
10117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10118
10119 # Shell to use when invoking shell scripts.
10120 SHELL=$lt_SHELL
10121
10122 # Whether or not to build shared libraries.
10123 build_libtool_libs=$enable_shared
10124
10125 # Whether or not to build static libraries.
10126 build_old_libs=$enable_static
10127
10128 # Whether or not to add -lc for building shared libraries.
10129 build_libtool_need_lc=$archive_cmds_need_lc
10130
10131 # Whether or not to disallow shared libs when runtime libs are static
10132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10133
10134 # Whether or not to optimize for fast installation.
10135 fast_install=$enable_fast_install
10136
10137 # The host system.
10138 host_alias=$host_alias
10139 host=$host
10140 host_os=$host_os
10141
10142 # The build system.
10143 build_alias=$build_alias
10144 build=$build
10145 build_os=$build_os
10146
10147 # An echo program that does not interpret backslashes.
10148 echo=$lt_echo
10149
10150 # The archiver.
10151 AR=$lt_AR
10152 AR_FLAGS=$lt_AR_FLAGS
10153
10154 # A C compiler.
10155 LTCC=$lt_LTCC
10156
10157 # LTCC compiler flags.
10158 LTCFLAGS=$lt_LTCFLAGS
10159
10160 # A language-specific compiler.
10161 CC=$lt_compiler
10162
10163 # Is the compiler the GNU C compiler?
10164 with_gcc=$GCC
10165
10166 # An ERE matcher.
10167 EGREP=$lt_EGREP
10168
10169 # The linker used to build libraries.
10170 LD=$lt_LD
10171
10172 # Whether we need hard or soft links.
10173 LN_S=$lt_LN_S
10174
10175 # A BSD-compatible nm program.
10176 NM=$lt_NM
10177
10178 # A symbol stripping program
10179 STRIP=$lt_STRIP
10180
10181 # Used to examine libraries when file_magic_cmd begins "file"
10182 MAGIC_CMD=$MAGIC_CMD
10183
10184 # Used on cygwin: DLL creation program.
10185 DLLTOOL="$DLLTOOL"
10186
10187 # Used on cygwin: object dumper.
10188 OBJDUMP="$OBJDUMP"
10189
10190 # Used on cygwin: assembler.
10191 AS="$AS"
10192
10193 # The name of the directory that contains temporary libtool files.
10194 objdir=$objdir
10195
10196 # How to create reloadable object files.
10197 reload_flag=$lt_reload_flag
10198 reload_cmds=$lt_reload_cmds
10199
10200 # How to pass a linker flag through the compiler.
10201 wl=$lt_lt_prog_compiler_wl
10202
10203 # Object file suffix (normally "o").
10204 objext="$ac_objext"
10205
10206 # Old archive suffix (normally "a").
10207 libext="$libext"
10208
10209 # Shared library suffix (normally ".so").
10210 shrext_cmds='$shrext_cmds'
10211
10212 # Executable file suffix (normally "").
10213 exeext="$exeext"
10214
10215 # Additional compiler flags for building library objects.
10216 pic_flag=$lt_lt_prog_compiler_pic
10217 pic_mode=$pic_mode
10218
10219 # What is the maximum length of a command?
10220 max_cmd_len=$lt_cv_sys_max_cmd_len
10221
10222 # Does compiler simultaneously support -c and -o options?
10223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10224
10225 # Must we lock files when doing compilation?
10226 need_locks=$lt_need_locks
10227
10228 # Do we need the lib prefix for modules?
10229 need_lib_prefix=$need_lib_prefix
10230
10231 # Do we need a version for libraries?
10232 need_version=$need_version
10233
10234 # Whether dlopen is supported.
10235 dlopen_support=$enable_dlopen
10236
10237 # Whether dlopen of programs is supported.
10238 dlopen_self=$enable_dlopen_self
10239
10240 # Whether dlopen of statically linked programs is supported.
10241 dlopen_self_static=$enable_dlopen_self_static
10242
10243 # Compiler flag to prevent dynamic linking.
10244 link_static_flag=$lt_lt_prog_compiler_static
10245
10246 # Compiler flag to turn off builtin functions.
10247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10248
10249 # Compiler flag to allow reflexive dlopens.
10250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10251
10252 # Compiler flag to generate shared objects directly from archives.
10253 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10254
10255 # Compiler flag to generate thread-safe objects.
10256 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10257
10258 # Library versioning type.
10259 version_type=$version_type
10260
10261 # Format of library name prefix.
10262 libname_spec=$lt_libname_spec
10263
10264 # List of archive names. First name is the real one, the rest are links.
10265 # The last name is the one that the linker finds with -lNAME.
10266 library_names_spec=$lt_library_names_spec
10267
10268 # The coded name of the library, if different from the real name.
10269 soname_spec=$lt_soname_spec
10270
10271 # Commands used to build and install an old-style archive.
10272 RANLIB=$lt_RANLIB
10273 old_archive_cmds=$lt_old_archive_cmds
10274 old_postinstall_cmds=$lt_old_postinstall_cmds
10275 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10276
10277 # Create an old-style archive from a shared archive.
10278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10279
10280 # Create a temporary old-style archive to link instead of a shared archive.
10281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10282
10283 # Commands used to build and install a shared archive.
10284 archive_cmds=$lt_archive_cmds
10285 archive_expsym_cmds=$lt_archive_expsym_cmds
10286 postinstall_cmds=$lt_postinstall_cmds
10287 postuninstall_cmds=$lt_postuninstall_cmds
10288
10289 # Commands used to build a loadable module (assumed same as above if empty)
10290 module_cmds=$lt_module_cmds
10291 module_expsym_cmds=$lt_module_expsym_cmds
10292
10293 # Commands to strip libraries.
10294 old_striplib=$lt_old_striplib
10295 striplib=$lt_striplib
10296
10297 # Dependencies to place before the objects being linked to create a
10298 # shared library.
10299 predep_objects=$lt_predep_objects
10300
10301 # Dependencies to place after the objects being linked to create a
10302 # shared library.
10303 postdep_objects=$lt_postdep_objects
10304
10305 # Dependencies to place before the objects being linked to create a
10306 # shared library.
10307 predeps=$lt_predeps
10308
10309 # Dependencies to place after the objects being linked to create a
10310 # shared library.
10311 postdeps=$lt_postdeps
10312
10313 # The library search path used internally by the compiler when linking
10314 # a shared library.
10315 compiler_lib_search_path=$lt_compiler_lib_search_path
10316
10317 # Method to check whether dependent libraries are shared objects.
10318 deplibs_check_method=$lt_deplibs_check_method
10319
10320 # Command to use when deplibs_check_method == file_magic.
10321 file_magic_cmd=$lt_file_magic_cmd
10322
10323 # Flag that allows shared libraries with undefined symbols to be built.
10324 allow_undefined_flag=$lt_allow_undefined_flag
10325
10326 # Flag that forces no undefined symbols.
10327 no_undefined_flag=$lt_no_undefined_flag
10328
10329 # Commands used to finish a libtool library installation in a directory.
10330 finish_cmds=$lt_finish_cmds
10331
10332 # Same as above, but a single script fragment to be evaled but not shown.
10333 finish_eval=$lt_finish_eval
10334
10335 # Take the output of nm and produce a listing of raw symbols and C names.
10336 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10337
10338 # Transform the output of nm in a proper C declaration
10339 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10340
10341 # Transform the output of nm in a C name address pair
10342 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10343
10344 # This is the shared library runtime path variable.
10345 runpath_var=$runpath_var
10346
10347 # This is the shared library path variable.
10348 shlibpath_var=$shlibpath_var
10349
10350 # Is shlibpath searched before the hard-coded library search path?
10351 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10352
10353 # How to hardcode a shared library path into an executable.
10354 hardcode_action=$hardcode_action
10355
10356 # Whether we should hardcode library paths into libraries.
10357 hardcode_into_libs=$hardcode_into_libs
10358
10359 # Flag to hardcode \$libdir into a binary during linking.
10360 # This must work even if \$libdir does not exist.
10361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10362
10363 # If ld is used when linking, flag to hardcode \$libdir into
10364 # a binary during linking. This must work even if \$libdir does
10365 # not exist.
10366 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10367
10368 # Whether we need a single -rpath flag with a separated argument.
10369 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10370
10371 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10372 # resulting binary.
10373 hardcode_direct=$hardcode_direct
10374
10375 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10376 # resulting binary.
10377 hardcode_minus_L=$hardcode_minus_L
10378
10379 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10380 # the resulting binary.
10381 hardcode_shlibpath_var=$hardcode_shlibpath_var
10382
10383 # Set to yes if building a shared library automatically hardcodes DIR into the library
10384 # and all subsequent libraries and executables linked against it.
10385 hardcode_automatic=$hardcode_automatic
10386
10387 # Variables whose values should be saved in libtool wrapper scripts and
10388 # restored at relink time.
10389 variables_saved_for_relink="$variables_saved_for_relink"
10390
10391 # Whether libtool must link a program against all its dependency libraries.
10392 link_all_deplibs=$link_all_deplibs
10393
10394 # Compile-time system search path for libraries
10395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10396
10397 # Run-time system search path for libraries
10398 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10399
10400 # Fix the shell variable \$srcfile for the compiler.
10401 fix_srcfile_path="$fix_srcfile_path"
10402
10403 # Set to yes if exported symbols are required.
10404 always_export_symbols=$always_export_symbols
10405
10406 # The commands to list exported symbols.
10407 export_symbols_cmds=$lt_export_symbols_cmds
10408
10409 # The commands to extract the exported symbol list from a shared archive.
10410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10411
10412 # Symbols that should not be listed in the preloaded symbols.
10413 exclude_expsyms=$lt_exclude_expsyms
10414
10415 # Symbols that must always be exported.
10416 include_expsyms=$lt_include_expsyms
10417
10418 # ### END LIBTOOL CONFIG
10419
10420 __EOF__
10421
10422
10423 case $host_os in
10424 aix3*)
10425 cat <<\EOF >> "$cfgfile"
10426
10427 # AIX sometimes has problems with the GCC collect2 program. For some
10428 # reason, if we set the COLLECT_NAMES environment variable, the problems
10429 # vanish in a puff of smoke.
10430 if test "X${COLLECT_NAMES+set}" != Xset; then
10431 COLLECT_NAMES=
10432 export COLLECT_NAMES
10433 fi
10434 EOF
10435 ;;
10436 esac
10437
10438 # We use sed instead of cat because bash on DJGPP gets confused if
10439 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10440 # text mode, it properly converts lines to CR/LF. This bash problem
10441 # is reportedly fixed, but why not run on old versions too?
10442 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10443
10444 mv -f "$cfgfile" "$ofile" || \
10445 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10446 chmod +x "$ofile"
10447
10448 else
10449 # If there is no Makefile yet, we rely on a make rule to execute
10450 # `config.status --recheck' to rerun these tests and create the
10451 # libtool script then.
10452 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10453 if test -f "$ltmain_in"; then
10454 test -f Makefile && make "$ltmain"
10455 fi
10456 fi
10457
10458
10459 ac_ext=c
10460 ac_cpp='$CPP $CPPFLAGS'
10461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10464
10465 CC="$lt_save_CC"
10466
10467
10468 # Check whether --with-tags was given.
10469 if test "${with_tags+set}" = set; then
10470 withval=$with_tags; tagnames="$withval"
10471 fi
10472
10473
10474 if test -f "$ltmain" && test -n "$tagnames"; then
10475 if test ! -f "${ofile}"; then
10476 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10477 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10478 fi
10479
10480 if test -z "$LTCC"; then
10481 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10482 if test -z "$LTCC"; then
10483 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10484 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10485 else
10486 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10487 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10488 fi
10489 fi
10490 if test -z "$LTCFLAGS"; then
10491 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10492 fi
10493
10494 # Extract list of available tagged configurations in $ofile.
10495 # Note that this assumes the entire list is on one line.
10496 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10497
10498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10499 for tagname in $tagnames; do
10500 IFS="$lt_save_ifs"
10501 # Check whether tagname contains only valid characters
10502 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10503 "") ;;
10504 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10505 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10506 { (exit 1); exit 1; }; }
10507 ;;
10508 esac
10509
10510 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10511 then
10512 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10513 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10514 { (exit 1); exit 1; }; }
10515 fi
10516
10517 # Update the list of available tags.
10518 if test -n "$tagname"; then
10519 echo appending configuration tag \"$tagname\" to $ofile
10520
10521 case $tagname in
10522 CXX)
10523 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10524 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10525 (test "X$CXX" != "Xg++"))) ; then
10526 ac_ext=cpp
10527 ac_cpp='$CXXCPP $CPPFLAGS'
10528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10531
10532
10533
10534
10535 archive_cmds_need_lc_CXX=no
10536 allow_undefined_flag_CXX=
10537 always_export_symbols_CXX=no
10538 archive_expsym_cmds_CXX=
10539 export_dynamic_flag_spec_CXX=
10540 hardcode_direct_CXX=no
10541 hardcode_libdir_flag_spec_CXX=
10542 hardcode_libdir_flag_spec_ld_CXX=
10543 hardcode_libdir_separator_CXX=
10544 hardcode_minus_L_CXX=no
10545 hardcode_shlibpath_var_CXX=unsupported
10546 hardcode_automatic_CXX=no
10547 module_cmds_CXX=
10548 module_expsym_cmds_CXX=
10549 link_all_deplibs_CXX=unknown
10550 old_archive_cmds_CXX=$old_archive_cmds
10551 no_undefined_flag_CXX=
10552 whole_archive_flag_spec_CXX=
10553 enable_shared_with_static_runtimes_CXX=no
10554
10555 # Dependencies to place before and after the object being linked:
10556 predep_objects_CXX=
10557 postdep_objects_CXX=
10558 predeps_CXX=
10559 postdeps_CXX=
10560 compiler_lib_search_path_CXX=
10561
10562 # Source file extension for C++ test sources.
10563 ac_ext=cpp
10564
10565 # Object file extension for compiled C++ test sources.
10566 objext=o
10567 objext_CXX=$objext
10568
10569 # Code to be used in simple compile tests
10570 lt_simple_compile_test_code="int some_variable = 0;\n"
10571
10572 # Code to be used in simple link tests
10573 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10574
10575 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10576
10577 # If no C compiler was specified, use CC.
10578 LTCC=${LTCC-"$CC"}
10579
10580 # If no C compiler flags were specified, use CFLAGS.
10581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10582
10583 # Allow CC to be a program name with arguments.
10584 compiler=$CC
10585
10586
10587 # save warnings/boilerplate of simple test code
10588 ac_outfile=conftest.$ac_objext
10589 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10591 _lt_compiler_boilerplate=`cat conftest.err`
10592 $rm conftest*
10593
10594 ac_outfile=conftest.$ac_objext
10595 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10597 _lt_linker_boilerplate=`cat conftest.err`
10598 $rm conftest*
10599
10600
10601 # Allow CC to be a program name with arguments.
10602 lt_save_CC=$CC
10603 lt_save_LD=$LD
10604 lt_save_GCC=$GCC
10605 GCC=$GXX
10606 lt_save_with_gnu_ld=$with_gnu_ld
10607 lt_save_path_LD=$lt_cv_path_LD
10608 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10609 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10610 else
10611 $as_unset lt_cv_prog_gnu_ld
10612 fi
10613 if test -n "${lt_cv_path_LDCXX+set}"; then
10614 lt_cv_path_LD=$lt_cv_path_LDCXX
10615 else
10616 $as_unset lt_cv_path_LD
10617 fi
10618 test -z "${LDCXX+set}" || LD=$LDCXX
10619 CC=${CXX-"c++"}
10620 compiler=$CC
10621 compiler_CXX=$CC
10622 for cc_temp in $compiler""; do
10623 case $cc_temp in
10624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10626 \-*) ;;
10627 *) break;;
10628 esac
10629 done
10630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10631
10632
10633 # We don't want -fno-exception wen compiling C++ code, so set the
10634 # no_builtin_flag separately
10635 if test "$GXX" = yes; then
10636 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10637 else
10638 lt_prog_compiler_no_builtin_flag_CXX=
10639 fi
10640
10641 if test "$GXX" = yes; then
10642 # Set up default GNU C++ configuration
10643
10644
10645 # Check whether --with-gnu-ld was given.
10646 if test "${with_gnu_ld+set}" = set; then
10647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10648 else
10649 with_gnu_ld=no
10650 fi
10651
10652 ac_prog=ld
10653 if test "$GCC" = yes; then
10654 # Check if gcc -print-prog-name=ld gives a path.
10655 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10656 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10657 case $host in
10658 *-*-mingw*)
10659 # gcc leaves a trailing carriage return which upsets mingw
10660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10661 *)
10662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10663 esac
10664 case $ac_prog in
10665 # Accept absolute paths.
10666 [\\/]* | ?:[\\/]*)
10667 re_direlt='/[^/][^/]*/\.\./'
10668 # Canonicalize the pathname of ld
10669 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10670 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10671 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10672 done
10673 test -z "$LD" && LD="$ac_prog"
10674 ;;
10675 "")
10676 # If it fails, then pretend we aren't using GCC.
10677 ac_prog=ld
10678 ;;
10679 *)
10680 # If it is relative, then search for the first ld in PATH.
10681 with_gnu_ld=unknown
10682 ;;
10683 esac
10684 elif test "$with_gnu_ld" = yes; then
10685 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10686 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10687 else
10688 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10689 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10690 fi
10691 if test "${lt_cv_path_LD+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 if test -z "$LD"; then
10695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10696 for ac_dir in $PATH; do
10697 IFS="$lt_save_ifs"
10698 test -z "$ac_dir" && ac_dir=.
10699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10700 lt_cv_path_LD="$ac_dir/$ac_prog"
10701 # Check to see if the program is GNU ld. I'd rather use --version,
10702 # but apparently some variants of GNU ld only accept -v.
10703 # Break only if it was the GNU/non-GNU ld that we prefer.
10704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10705 *GNU* | *'with BFD'*)
10706 test "$with_gnu_ld" != no && break
10707 ;;
10708 *)
10709 test "$with_gnu_ld" != yes && break
10710 ;;
10711 esac
10712 fi
10713 done
10714 IFS="$lt_save_ifs"
10715 else
10716 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10717 fi
10718 fi
10719
10720 LD="$lt_cv_path_LD"
10721 if test -n "$LD"; then
10722 { echo "$as_me:$LINENO: result: $LD" >&5
10723 echo "${ECHO_T}$LD" >&6; }
10724 else
10725 { echo "$as_me:$LINENO: result: no" >&5
10726 echo "${ECHO_T}no" >&6; }
10727 fi
10728 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10729 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10730 { (exit 1); exit 1; }; }
10731 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10732 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10733 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10737 case `$LD -v 2>&1 </dev/null` in
10738 *GNU* | *'with BFD'*)
10739 lt_cv_prog_gnu_ld=yes
10740 ;;
10741 *)
10742 lt_cv_prog_gnu_ld=no
10743 ;;
10744 esac
10745 fi
10746 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10747 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10748 with_gnu_ld=$lt_cv_prog_gnu_ld
10749
10750
10751
10752 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10753 # archiving commands below assume that GNU ld is being used.
10754 if test "$with_gnu_ld" = yes; then
10755 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10756 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'
10757
10758 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10760
10761 # If archive_cmds runs LD, not CC, wlarc should be empty
10762 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10763 # investigate it a little bit more. (MM)
10764 wlarc='${wl}'
10765
10766 # ancient GNU ld didn't support --whole-archive et. al.
10767 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10768 grep 'no-whole-archive' > /dev/null; then
10769 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10770 else
10771 whole_archive_flag_spec_CXX=
10772 fi
10773 else
10774 with_gnu_ld=no
10775 wlarc=
10776
10777 # A generic and very simple default shared library creation
10778 # command for GNU C++ for the case where it uses the native
10779 # linker, instead of GNU ld. If possible, this setting should
10780 # overridden to take advantage of the native linker features on
10781 # the platform it is being used on.
10782 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10783 fi
10784
10785 # Commands to make compiler produce verbose output that lists
10786 # what "hidden" libraries, object files and flags are used when
10787 # linking a shared library.
10788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10789
10790 else
10791 GXX=no
10792 with_gnu_ld=no
10793 wlarc=
10794 fi
10795
10796 # PORTME: fill in a description of your system's C++ link characteristics
10797 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10799 ld_shlibs_CXX=yes
10800 case $host_os in
10801 aix3*)
10802 # FIXME: insert proper C++ library support
10803 ld_shlibs_CXX=no
10804 ;;
10805 aix4* | aix5*)
10806 if test "$host_cpu" = ia64; then
10807 # On IA64, the linker does run time linking by default, so we don't
10808 # have to do anything special.
10809 aix_use_runtimelinking=no
10810 exp_sym_flag='-Bexport'
10811 no_entry_flag=""
10812 else
10813 aix_use_runtimelinking=no
10814
10815 # Test if we are trying to use run time linking or normal
10816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10817 # need to do runtime linking.
10818 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10819 for ld_flag in $LDFLAGS; do
10820 case $ld_flag in
10821 *-brtl*)
10822 aix_use_runtimelinking=yes
10823 break
10824 ;;
10825 esac
10826 done
10827 ;;
10828 esac
10829
10830 exp_sym_flag='-bexport'
10831 no_entry_flag='-bnoentry'
10832 fi
10833
10834 # When large executables or shared objects are built, AIX ld can
10835 # have problems creating the table of contents. If linking a library
10836 # or program results in "error TOC overflow" add -mminimal-toc to
10837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10839
10840 archive_cmds_CXX=''
10841 hardcode_direct_CXX=yes
10842 hardcode_libdir_separator_CXX=':'
10843 link_all_deplibs_CXX=yes
10844
10845 if test "$GXX" = yes; then
10846 case $host_os in aix4.[012]|aix4.[012].*)
10847 # We only want to do this on AIX 4.2 and lower, the check
10848 # below for broken collect2 doesn't work under 4.3+
10849 collect2name=`${CC} -print-prog-name=collect2`
10850 if test -f "$collect2name" && \
10851 strings "$collect2name" | grep resolve_lib_name >/dev/null
10852 then
10853 # We have reworked collect2
10854 hardcode_direct_CXX=yes
10855 else
10856 # We have old collect2
10857 hardcode_direct_CXX=unsupported
10858 # It fails to find uninstalled libraries when the uninstalled
10859 # path is not listed in the libpath. Setting hardcode_minus_L
10860 # to unsupported forces relinking
10861 hardcode_minus_L_CXX=yes
10862 hardcode_libdir_flag_spec_CXX='-L$libdir'
10863 hardcode_libdir_separator_CXX=
10864 fi
10865 ;;
10866 esac
10867 shared_flag='-shared'
10868 if test "$aix_use_runtimelinking" = yes; then
10869 shared_flag="$shared_flag "'${wl}-G'
10870 fi
10871 else
10872 # not using gcc
10873 if test "$host_cpu" = ia64; then
10874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10875 # chokes on -Wl,-G. The following line is correct:
10876 shared_flag='-G'
10877 else
10878 if test "$aix_use_runtimelinking" = yes; then
10879 shared_flag='${wl}-G'
10880 else
10881 shared_flag='${wl}-bM:SRE'
10882 fi
10883 fi
10884 fi
10885
10886 # It seems that -bexpall does not export symbols beginning with
10887 # underscore (_), so it is better to generate a list of symbols to export.
10888 always_export_symbols_CXX=yes
10889 if test "$aix_use_runtimelinking" = yes; then
10890 # Warning - without using the other runtime loading flags (-brtl),
10891 # -berok will link without error, but may produce a broken library.
10892 allow_undefined_flag_CXX='-berok'
10893 # Determine the default libpath from the value encoded in an empty executable.
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900
10901 int
10902 main ()
10903 {
10904
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_cxx_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext &&
10926 $as_test_x conftest$ac_exeext; then
10927
10928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10929 }'`
10930 # Check for a 64-bit object if we didn't find anything.
10931 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10932 }'`; fi
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937
10938 fi
10939
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10943
10944 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10945
10946 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"
10947 else
10948 if test "$host_cpu" = ia64; then
10949 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10950 allow_undefined_flag_CXX="-z nodefs"
10951 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"
10952 else
10953 # Determine the default libpath from the value encoded in an empty executable.
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960
10961 int
10962 main ()
10963 {
10964
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_cxx_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext &&
10986 $as_test_x conftest$ac_exeext; then
10987
10988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10989 }'`
10990 # Check for a 64-bit object if we didn't find anything.
10991 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10992 }'`; fi
10993 else
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997
10998 fi
10999
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001 conftest$ac_exeext conftest.$ac_ext
11002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11003
11004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11005 # Warning - without using the other run time loading flags,
11006 # -berok will link without error, but may produce a broken library.
11007 no_undefined_flag_CXX=' ${wl}-bernotok'
11008 allow_undefined_flag_CXX=' ${wl}-berok'
11009 # Exported symbols can be pulled into shared objects from archives
11010 whole_archive_flag_spec_CXX='$convenience'
11011 archive_cmds_need_lc_CXX=yes
11012 # This is similar to how AIX traditionally builds its shared libraries.
11013 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'
11014 fi
11015 fi
11016 ;;
11017
11018 beos*)
11019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11020 allow_undefined_flag_CXX=unsupported
11021 # Joseph Beckenbach <[email protected]> says some releases of gcc
11022 # support --undefined. This deserves some investigation. FIXME
11023 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11024 else
11025 ld_shlibs_CXX=no
11026 fi
11027 ;;
11028
11029 chorus*)
11030 case $cc_basename in
11031 *)
11032 # FIXME: insert proper C++ library support
11033 ld_shlibs_CXX=no
11034 ;;
11035 esac
11036 ;;
11037
11038 cygwin* | mingw* | pw32*)
11039 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11040 # as there is no search path for DLLs.
11041 hardcode_libdir_flag_spec_CXX='-L$libdir'
11042 allow_undefined_flag_CXX=unsupported
11043 always_export_symbols_CXX=no
11044 enable_shared_with_static_runtimes_CXX=yes
11045
11046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11047 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'
11048 # If the export-symbols file already is a .def file (1st line
11049 # is EXPORTS), use it as is; otherwise, prepend...
11050 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11051 cp $export_symbols $output_objdir/$soname.def;
11052 else
11053 echo EXPORTS > $output_objdir/$soname.def;
11054 cat $export_symbols >> $output_objdir/$soname.def;
11055 fi~
11056 $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'
11057 else
11058 ld_shlibs_CXX=no
11059 fi
11060 ;;
11061 darwin* | rhapsody*)
11062 case $host_os in
11063 rhapsody* | darwin1.[012])
11064 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11065 ;;
11066 *) # Darwin 1.3 on
11067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11068 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11069 else
11070 case ${MACOSX_DEPLOYMENT_TARGET} in
11071 10.[012])
11072 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11073 ;;
11074 10.*)
11075 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11076 ;;
11077 esac
11078 fi
11079 ;;
11080 esac
11081 archive_cmds_need_lc_CXX=no
11082 hardcode_direct_CXX=no
11083 hardcode_automatic_CXX=yes
11084 hardcode_shlibpath_var_CXX=unsupported
11085 whole_archive_flag_spec_CXX=''
11086 link_all_deplibs_CXX=yes
11087
11088 if test "$GXX" = yes ; then
11089 lt_int_apple_cc_single_mod=no
11090 output_verbose_link_cmd='echo'
11091 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11092 lt_int_apple_cc_single_mod=yes
11093 fi
11094 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11095 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11096 else
11097 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'
11098 fi
11099 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11102 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}'
11103 else
11104 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}'
11105 fi
11106 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}'
11107 else
11108 case $cc_basename in
11109 xlc*)
11110 output_verbose_link_cmd='echo'
11111 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11112 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11114 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11115 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}'
11116 ;;
11117 *)
11118 ld_shlibs_CXX=no
11119 ;;
11120 esac
11121 fi
11122 ;;
11123
11124 dgux*)
11125 case $cc_basename in
11126 ec++*)
11127 # FIXME: insert proper C++ library support
11128 ld_shlibs_CXX=no
11129 ;;
11130 ghcx*)
11131 # Green Hills C++ Compiler
11132 # FIXME: insert proper C++ library support
11133 ld_shlibs_CXX=no
11134 ;;
11135 *)
11136 # FIXME: insert proper C++ library support
11137 ld_shlibs_CXX=no
11138 ;;
11139 esac
11140 ;;
11141 freebsd[12]*)
11142 # C++ shared libraries reported to be fairly broken before switch to ELF
11143 ld_shlibs_CXX=no
11144 ;;
11145 freebsd-elf*)
11146 archive_cmds_need_lc_CXX=no
11147 ;;
11148 freebsd* | kfreebsd*-gnu | dragonfly*)
11149 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11150 # conventions
11151 ld_shlibs_CXX=yes
11152 ;;
11153 gnu*)
11154 ;;
11155 hpux9*)
11156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11157 hardcode_libdir_separator_CXX=:
11158 export_dynamic_flag_spec_CXX='${wl}-E'
11159 hardcode_direct_CXX=yes
11160 hardcode_minus_L_CXX=yes # Not in the search PATH,
11161 # but as the default
11162 # location of the library.
11163
11164 case $cc_basename in
11165 CC*)
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11168 ;;
11169 aCC*)
11170 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'
11171 # Commands to make compiler produce verbose output that lists
11172 # what "hidden" libraries, object files and flags are used when
11173 # linking a shared library.
11174 #
11175 # There doesn't appear to be a way to prevent this compiler from
11176 # explicitly linking system object files so we need to strip them
11177 # from the output so that they don't get included in the library
11178 # dependencies.
11179 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'
11180 ;;
11181 *)
11182 if test "$GXX" = yes; then
11183 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'
11184 else
11185 # FIXME: insert proper C++ library support
11186 ld_shlibs_CXX=no
11187 fi
11188 ;;
11189 esac
11190 ;;
11191 hpux10*|hpux11*)
11192 if test $with_gnu_ld = no; then
11193 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11194 hardcode_libdir_separator_CXX=:
11195
11196 case $host_cpu in
11197 hppa*64*|ia64*)
11198 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11199 ;;
11200 *)
11201 export_dynamic_flag_spec_CXX='${wl}-E'
11202 ;;
11203 esac
11204 fi
11205 case $host_cpu in
11206 hppa*64*|ia64*)
11207 hardcode_direct_CXX=no
11208 hardcode_shlibpath_var_CXX=no
11209 ;;
11210 *)
11211 hardcode_direct_CXX=yes
11212 hardcode_minus_L_CXX=yes # Not in the search PATH,
11213 # but as the default
11214 # location of the library.
11215 ;;
11216 esac
11217
11218 case $cc_basename in
11219 CC*)
11220 # FIXME: insert proper C++ library support
11221 ld_shlibs_CXX=no
11222 ;;
11223 aCC*)
11224 case $host_cpu in
11225 hppa*64*)
11226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11227 ;;
11228 ia64*)
11229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11230 ;;
11231 *)
11232 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11233 ;;
11234 esac
11235 # Commands to make compiler produce verbose output that lists
11236 # what "hidden" libraries, object files and flags are used when
11237 # linking a shared library.
11238 #
11239 # There doesn't appear to be a way to prevent this compiler from
11240 # explicitly linking system object files so we need to strip them
11241 # from the output so that they don't get included in the library
11242 # dependencies.
11243 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'
11244 ;;
11245 *)
11246 if test "$GXX" = yes; then
11247 if test $with_gnu_ld = no; then
11248 case $host_cpu in
11249 hppa*64*)
11250 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11251 ;;
11252 ia64*)
11253 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11254 ;;
11255 *)
11256 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'
11257 ;;
11258 esac
11259 fi
11260 else
11261 # FIXME: insert proper C++ library support
11262 ld_shlibs_CXX=no
11263 fi
11264 ;;
11265 esac
11266 ;;
11267 interix3*)
11268 hardcode_direct_CXX=no
11269 hardcode_shlibpath_var_CXX=no
11270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11271 export_dynamic_flag_spec_CXX='${wl}-E'
11272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11273 # Instead, shared libraries are loaded at an image base (0x10000000 by
11274 # default) and relocated if they conflict, which is a slow very memory
11275 # consuming and fragmenting process. To avoid this, we pick a random,
11276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11278 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'
11279 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'
11280 ;;
11281 irix5* | irix6*)
11282 case $cc_basename in
11283 CC*)
11284 # SGI C++
11285 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'
11286
11287 # Archives containing C++ object files must be created using
11288 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11289 # necessary to make sure instantiated templates are included
11290 # in the archive.
11291 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11292 ;;
11293 *)
11294 if test "$GXX" = yes; then
11295 if test "$with_gnu_ld" = no; then
11296 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'
11297 else
11298 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'
11299 fi
11300 fi
11301 link_all_deplibs_CXX=yes
11302 ;;
11303 esac
11304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11305 hardcode_libdir_separator_CXX=:
11306 ;;
11307 linux*)
11308 case $cc_basename in
11309 KCC*)
11310 # Kuck and Associates, Inc. (KAI) C++ Compiler
11311
11312 # KCC will only create a shared library if the output file
11313 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11314 # to its proper name (with version) after linking.
11315 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'
11316 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'
11317 # Commands to make compiler produce verbose output that lists
11318 # what "hidden" libraries, object files and flags are used when
11319 # linking a shared library.
11320 #
11321 # There doesn't appear to be a way to prevent this compiler from
11322 # explicitly linking system object files so we need to strip them
11323 # from the output so that they don't get included in the library
11324 # dependencies.
11325 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'
11326
11327 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11329
11330 # Archives containing C++ object files must be created using
11331 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11332 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11333 ;;
11334 icpc*)
11335 # Intel C++
11336 with_gnu_ld=yes
11337 # version 8.0 and above of icpc choke on multiply defined symbols
11338 # if we add $predep_objects and $postdep_objects, however 7.1 and
11339 # earlier do not add the objects themselves.
11340 case `$CC -V 2>&1` in
11341 *"Version 7."*)
11342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11343 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'
11344 ;;
11345 *) # Version 8.0 or newer
11346 tmp_idyn=
11347 case $host_cpu in
11348 ia64*) tmp_idyn=' -i_dynamic';;
11349 esac
11350 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11351 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'
11352 ;;
11353 esac
11354 archive_cmds_need_lc_CXX=no
11355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11358 ;;
11359 pgCC*)
11360 # Portland Group C++ compiler
11361 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11362 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'
11363
11364 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11366 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'
11367 ;;
11368 cxx*)
11369 # Compaq C++
11370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11371 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'
11372
11373 runpath_var=LD_RUN_PATH
11374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11375 hardcode_libdir_separator_CXX=:
11376
11377 # Commands to make compiler produce verbose output that lists
11378 # what "hidden" libraries, object files and flags are used when
11379 # linking a shared library.
11380 #
11381 # There doesn't appear to be a way to prevent this compiler from
11382 # explicitly linking system object files so we need to strip them
11383 # from the output so that they don't get included in the library
11384 # dependencies.
11385 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'
11386 ;;
11387 esac
11388 ;;
11389 lynxos*)
11390 # FIXME: insert proper C++ library support
11391 ld_shlibs_CXX=no
11392 ;;
11393 m88k*)
11394 # FIXME: insert proper C++ library support
11395 ld_shlibs_CXX=no
11396 ;;
11397 mvs*)
11398 case $cc_basename in
11399 cxx*)
11400 # FIXME: insert proper C++ library support
11401 ld_shlibs_CXX=no
11402 ;;
11403 *)
11404 # FIXME: insert proper C++ library support
11405 ld_shlibs_CXX=no
11406 ;;
11407 esac
11408 ;;
11409 netbsd*)
11410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11411 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11412 wlarc=
11413 hardcode_libdir_flag_spec_CXX='-R$libdir'
11414 hardcode_direct_CXX=yes
11415 hardcode_shlibpath_var_CXX=no
11416 fi
11417 # Workaround some broken pre-1.5 toolchains
11418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11419 ;;
11420 openbsd2*)
11421 # C++ shared libraries are fairly broken
11422 ld_shlibs_CXX=no
11423 ;;
11424 openbsd*)
11425 hardcode_direct_CXX=yes
11426 hardcode_shlibpath_var_CXX=no
11427 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11430 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11431 export_dynamic_flag_spec_CXX='${wl}-E'
11432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433 fi
11434 output_verbose_link_cmd='echo'
11435 ;;
11436 osf3*)
11437 case $cc_basename in
11438 KCC*)
11439 # Kuck and Associates, Inc. (KAI) C++ Compiler
11440
11441 # KCC will only create a shared library if the output file
11442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11443 # to its proper name (with version) after linking.
11444 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'
11445
11446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11447 hardcode_libdir_separator_CXX=:
11448
11449 # Archives containing C++ object files must be created using
11450 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11451 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11452
11453 ;;
11454 RCC*)
11455 # Rational C++ 2.4.1
11456 # FIXME: insert proper C++ library support
11457 ld_shlibs_CXX=no
11458 ;;
11459 cxx*)
11460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11461 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'
11462
11463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11464 hardcode_libdir_separator_CXX=:
11465
11466 # Commands to make compiler produce verbose output that lists
11467 # what "hidden" libraries, object files and flags are used when
11468 # linking a shared library.
11469 #
11470 # There doesn't appear to be a way to prevent this compiler from
11471 # explicitly linking system object files so we need to strip them
11472 # from the output so that they don't get included in the library
11473 # dependencies.
11474 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'
11475 ;;
11476 *)
11477 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11478 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11479 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'
11480
11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11482 hardcode_libdir_separator_CXX=:
11483
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11487 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11488
11489 else
11490 # FIXME: insert proper C++ library support
11491 ld_shlibs_CXX=no
11492 fi
11493 ;;
11494 esac
11495 ;;
11496 osf4* | osf5*)
11497 case $cc_basename in
11498 KCC*)
11499 # Kuck and Associates, Inc. (KAI) C++ Compiler
11500
11501 # KCC will only create a shared library if the output file
11502 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11503 # to its proper name (with version) after linking.
11504 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'
11505
11506 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11507 hardcode_libdir_separator_CXX=:
11508
11509 # Archives containing C++ object files must be created using
11510 # the KAI C++ compiler.
11511 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11512 ;;
11513 RCC*)
11514 # Rational C++ 2.4.1
11515 # FIXME: insert proper C++ library support
11516 ld_shlibs_CXX=no
11517 ;;
11518 cxx*)
11519 allow_undefined_flag_CXX=' -expect_unresolved \*'
11520 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'
11521 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11522 echo "-hidden">> $lib.exp~
11523 $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~
11524 $rm $lib.exp'
11525
11526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11527 hardcode_libdir_separator_CXX=:
11528
11529 # Commands to make compiler produce verbose output that lists
11530 # what "hidden" libraries, object files and flags are used when
11531 # linking a shared library.
11532 #
11533 # There doesn't appear to be a way to prevent this compiler from
11534 # explicitly linking system object files so we need to strip them
11535 # from the output so that they don't get included in the library
11536 # dependencies.
11537 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'
11538 ;;
11539 *)
11540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11541 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11542 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'
11543
11544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11545 hardcode_libdir_separator_CXX=:
11546
11547 # Commands to make compiler produce verbose output that lists
11548 # what "hidden" libraries, object files and flags are used when
11549 # linking a shared library.
11550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11551
11552 else
11553 # FIXME: insert proper C++ library support
11554 ld_shlibs_CXX=no
11555 fi
11556 ;;
11557 esac
11558 ;;
11559 psos*)
11560 # FIXME: insert proper C++ library support
11561 ld_shlibs_CXX=no
11562 ;;
11563 sunos4*)
11564 case $cc_basename in
11565 CC*)
11566 # Sun C++ 4.x
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11569 ;;
11570 lcc*)
11571 # Lucid
11572 # FIXME: insert proper C++ library support
11573 ld_shlibs_CXX=no
11574 ;;
11575 *)
11576 # FIXME: insert proper C++ library support
11577 ld_shlibs_CXX=no
11578 ;;
11579 esac
11580 ;;
11581 solaris*)
11582 case $cc_basename in
11583 CC*)
11584 # Sun C++ 4.2, 5.x and Centerline C++
11585 archive_cmds_need_lc_CXX=yes
11586 no_undefined_flag_CXX=' -zdefs'
11587 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11588 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11589 $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'
11590
11591 hardcode_libdir_flag_spec_CXX='-R$libdir'
11592 hardcode_shlibpath_var_CXX=no
11593 case $host_os in
11594 solaris2.[0-5] | solaris2.[0-5].*) ;;
11595 *)
11596 # The C++ compiler is used as linker so we must use $wl
11597 # flag to pass the commands to the underlying system
11598 # linker. We must also pass each convience library through
11599 # to the system linker between allextract/defaultextract.
11600 # The C++ compiler will combine linker options so we
11601 # cannot just pass the convience library names through
11602 # without $wl.
11603 # Supported since Solaris 2.6 (maybe 2.5.1?)
11604 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11605 ;;
11606 esac
11607 link_all_deplibs_CXX=yes
11608
11609 output_verbose_link_cmd='echo'
11610
11611 # Archives containing C++ object files must be created using
11612 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11613 # necessary to make sure instantiated templates are included
11614 # in the archive.
11615 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11616 ;;
11617 gcx*)
11618 # Green Hills C++ Compiler
11619 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11620
11621 # The C++ compiler must be used to create the archive.
11622 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11623 ;;
11624 *)
11625 # GNU C++ compiler with Solaris linker
11626 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11627 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11628 if $CC --version | grep -v '^2\.7' > /dev/null; then
11629 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11630 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11631 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11632
11633 # Commands to make compiler produce verbose output that lists
11634 # what "hidden" libraries, object files and flags are used when
11635 # linking a shared library.
11636 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11637 else
11638 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11639 # platform.
11640 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11641 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11642 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11643
11644 # Commands to make compiler produce verbose output that lists
11645 # what "hidden" libraries, object files and flags are used when
11646 # linking a shared library.
11647 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11648 fi
11649
11650 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11651 fi
11652 ;;
11653 esac
11654 ;;
11655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11656 no_undefined_flag_CXX='${wl}-z,text'
11657 archive_cmds_need_lc_CXX=no
11658 hardcode_shlibpath_var_CXX=no
11659 runpath_var='LD_RUN_PATH'
11660
11661 case $cc_basename in
11662 CC*)
11663 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11665 ;;
11666 *)
11667 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 ;;
11670 esac
11671 ;;
11672 sysv5* | sco3.2v5* | sco5v6*)
11673 # Note: We can NOT use -z defs as we might desire, because we do not
11674 # link with -lc, and that would cause any symbols used from libc to
11675 # always be unresolved, which means just about no library would
11676 # ever link correctly. If we're not using GNU ld we use -z text
11677 # though, which does catch some bad symbols but isn't as heavy-handed
11678 # as -z defs.
11679 # For security reasons, it is highly recommended that you always
11680 # use absolute paths for naming shared libraries, and exclude the
11681 # DT_RUNPATH tag from executables and libraries. But doing so
11682 # requires that you compile everything twice, which is a pain.
11683 # So that behaviour is only enabled if SCOABSPATH is set to a
11684 # non-empty value in the environment. Most likely only useful for
11685 # creating official distributions of packages.
11686 # This is a hack until libtool officially supports absolute path
11687 # names for shared libraries.
11688 no_undefined_flag_CXX='${wl}-z,text'
11689 allow_undefined_flag_CXX='${wl}-z,nodefs'
11690 archive_cmds_need_lc_CXX=no
11691 hardcode_shlibpath_var_CXX=no
11692 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11693 hardcode_libdir_separator_CXX=':'
11694 link_all_deplibs_CXX=yes
11695 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11696 runpath_var='LD_RUN_PATH'
11697
11698 case $cc_basename in
11699 CC*)
11700 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11702 ;;
11703 *)
11704 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 ;;
11707 esac
11708 ;;
11709 tandem*)
11710 case $cc_basename in
11711 NCC*)
11712 # NonStop-UX NCC 3.20
11713 # FIXME: insert proper C++ library support
11714 ld_shlibs_CXX=no
11715 ;;
11716 *)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11719 ;;
11720 esac
11721 ;;
11722 vxworks*)
11723 # FIXME: insert proper C++ library support
11724 ld_shlibs_CXX=no
11725 ;;
11726 *)
11727 # FIXME: insert proper C++ library support
11728 ld_shlibs_CXX=no
11729 ;;
11730 esac
11731 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11732 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11733 test "$ld_shlibs_CXX" = no && can_build_shared=no
11734
11735 GCC_CXX="$GXX"
11736 LD_CXX="$LD"
11737
11738
11739 cat > conftest.$ac_ext <<EOF
11740 class Foo
11741 {
11742 public:
11743 Foo (void) { a = 0; }
11744 private:
11745 int a;
11746 };
11747 EOF
11748
11749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; then
11754 # Parse the compiler output and extract the necessary
11755 # objects, libraries and library flags.
11756
11757 # Sentinel used to keep track of whether or not we are before
11758 # the conftest object file.
11759 pre_test_object_deps_done=no
11760
11761 # The `*' in the case matches for architectures that use `case' in
11762 # $output_verbose_cmd can trigger glob expansion during the loop
11763 # eval without this substitution.
11764 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11765
11766 for p in `eval $output_verbose_link_cmd`; do
11767 case $p in
11768
11769 -L* | -R* | -l*)
11770 # Some compilers place space between "-{L,R}" and the path.
11771 # Remove the space.
11772 if test $p = "-L" \
11773 || test $p = "-R"; then
11774 prev=$p
11775 continue
11776 else
11777 prev=
11778 fi
11779
11780 if test "$pre_test_object_deps_done" = no; then
11781 case $p in
11782 -L* | -R*)
11783 # Internal compiler library paths should come after those
11784 # provided the user. The postdeps already come after the
11785 # user supplied libs so there is no need to process them.
11786 if test -z "$compiler_lib_search_path_CXX"; then
11787 compiler_lib_search_path_CXX="${prev}${p}"
11788 else
11789 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11790 fi
11791 ;;
11792 # The "-l" case would never come before the object being
11793 # linked, so don't bother handling this case.
11794 esac
11795 else
11796 if test -z "$postdeps_CXX"; then
11797 postdeps_CXX="${prev}${p}"
11798 else
11799 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11800 fi
11801 fi
11802 ;;
11803
11804 *.$objext)
11805 # This assumes that the test object file only shows up
11806 # once in the compiler output.
11807 if test "$p" = "conftest.$objext"; then
11808 pre_test_object_deps_done=yes
11809 continue
11810 fi
11811
11812 if test "$pre_test_object_deps_done" = no; then
11813 if test -z "$predep_objects_CXX"; then
11814 predep_objects_CXX="$p"
11815 else
11816 predep_objects_CXX="$predep_objects_CXX $p"
11817 fi
11818 else
11819 if test -z "$postdep_objects_CXX"; then
11820 postdep_objects_CXX="$p"
11821 else
11822 postdep_objects_CXX="$postdep_objects_CXX $p"
11823 fi
11824 fi
11825 ;;
11826
11827 *) ;; # Ignore the rest.
11828
11829 esac
11830 done
11831
11832 # Clean up.
11833 rm -f a.out a.exe
11834 else
11835 echo "libtool.m4: error: problem compiling CXX test program"
11836 fi
11837
11838 $rm -f confest.$objext
11839
11840 # PORTME: override above test on systems where it is broken
11841 case $host_os in
11842 interix3*)
11843 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11844 # hack all around it, let's just trust "g++" to DTRT.
11845 predep_objects_CXX=
11846 postdep_objects_CXX=
11847 postdeps_CXX=
11848 ;;
11849
11850 solaris*)
11851 case $cc_basename in
11852 CC*)
11853 # Adding this requires a known-good setup of shared libraries for
11854 # Sun compiler versions before 5.6, else PIC objects from an old
11855 # archive will be linked into the output, leading to subtle bugs.
11856 postdeps_CXX='-lCstd -lCrun'
11857 ;;
11858 esac
11859 ;;
11860 esac
11861
11862
11863 case " $postdeps_CXX " in
11864 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11865 esac
11866
11867 lt_prog_compiler_wl_CXX=
11868 lt_prog_compiler_pic_CXX=
11869 lt_prog_compiler_static_CXX=
11870
11871 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11872 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11873
11874 # C++ specific cases for pic, static, wl, etc.
11875 if test "$GXX" = yes; then
11876 lt_prog_compiler_wl_CXX='-Wl,'
11877 lt_prog_compiler_static_CXX='-static'
11878
11879 case $host_os in
11880 aix*)
11881 # All AIX code is PIC.
11882 if test "$host_cpu" = ia64; then
11883 # AIX 5 now supports IA64 processor
11884 lt_prog_compiler_static_CXX='-Bstatic'
11885 fi
11886 ;;
11887 amigaos*)
11888 # FIXME: we need at least 68020 code to build shared libraries, but
11889 # adding the `-m68020' flag to GCC prevents building anything better,
11890 # like `-m68040'.
11891 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11892 ;;
11893 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11894 # PIC is the default for these OSes.
11895 ;;
11896 mingw* | os2* | pw32*)
11897 # This hack is so that the source file can tell whether it is being
11898 # built for inclusion in a dll (and should export symbols for example).
11899 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11900 ;;
11901 darwin* | rhapsody*)
11902 # PIC is the default on this platform
11903 # Common symbols not allowed in MH_DYLIB files
11904 lt_prog_compiler_pic_CXX='-fno-common'
11905 ;;
11906 *djgpp*)
11907 # DJGPP does not support shared libraries at all
11908 lt_prog_compiler_pic_CXX=
11909 ;;
11910 interix3*)
11911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11912 # Instead, we relocate shared libraries at runtime.
11913 ;;
11914 sysv4*MP*)
11915 if test -d /usr/nec; then
11916 lt_prog_compiler_pic_CXX=-Kconform_pic
11917 fi
11918 ;;
11919 hpux*)
11920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11921 # not for PA HP-UX.
11922 case $host_cpu in
11923 hppa*64*|ia64*)
11924 ;;
11925 *)
11926 lt_prog_compiler_pic_CXX='-fPIC'
11927 ;;
11928 esac
11929 ;;
11930 *)
11931 lt_prog_compiler_pic_CXX='-fPIC'
11932 ;;
11933 esac
11934 else
11935 case $host_os in
11936 aix4* | aix5*)
11937 # All AIX code is PIC.
11938 if test "$host_cpu" = ia64; then
11939 # AIX 5 now supports IA64 processor
11940 lt_prog_compiler_static_CXX='-Bstatic'
11941 else
11942 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11943 fi
11944 ;;
11945 chorus*)
11946 case $cc_basename in
11947 cxch68*)
11948 # Green Hills C++ Compiler
11949 # _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"
11950 ;;
11951 esac
11952 ;;
11953 darwin*)
11954 # PIC is the default on this platform
11955 # Common symbols not allowed in MH_DYLIB files
11956 case $cc_basename in
11957 xlc*)
11958 lt_prog_compiler_pic_CXX='-qnocommon'
11959 lt_prog_compiler_wl_CXX='-Wl,'
11960 ;;
11961 esac
11962 ;;
11963 dgux*)
11964 case $cc_basename in
11965 ec++*)
11966 lt_prog_compiler_pic_CXX='-KPIC'
11967 ;;
11968 ghcx*)
11969 # Green Hills C++ Compiler
11970 lt_prog_compiler_pic_CXX='-pic'
11971 ;;
11972 *)
11973 ;;
11974 esac
11975 ;;
11976 freebsd* | kfreebsd*-gnu | dragonfly*)
11977 # FreeBSD uses GNU C++
11978 ;;
11979 hpux9* | hpux10* | hpux11*)
11980 case $cc_basename in
11981 CC*)
11982 lt_prog_compiler_wl_CXX='-Wl,'
11983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11984 if test "$host_cpu" != ia64; then
11985 lt_prog_compiler_pic_CXX='+Z'
11986 fi
11987 ;;
11988 aCC*)
11989 lt_prog_compiler_wl_CXX='-Wl,'
11990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11991 case $host_cpu in
11992 hppa*64*|ia64*)
11993 # +Z the default
11994 ;;
11995 *)
11996 lt_prog_compiler_pic_CXX='+Z'
11997 ;;
11998 esac
11999 ;;
12000 *)
12001 ;;
12002 esac
12003 ;;
12004 interix*)
12005 # This is c89, which is MS Visual C++ (no shared libs)
12006 # Anyone wants to do a port?
12007 ;;
12008 irix5* | irix6* | nonstopux*)
12009 case $cc_basename in
12010 CC*)
12011 lt_prog_compiler_wl_CXX='-Wl,'
12012 lt_prog_compiler_static_CXX='-non_shared'
12013 # CC pic flag -KPIC is the default.
12014 ;;
12015 *)
12016 ;;
12017 esac
12018 ;;
12019 linux*)
12020 case $cc_basename in
12021 KCC*)
12022 # KAI C++ Compiler
12023 lt_prog_compiler_wl_CXX='--backend -Wl,'
12024 lt_prog_compiler_pic_CXX='-fPIC'
12025 ;;
12026 icpc* | ecpc*)
12027 # Intel C++
12028 lt_prog_compiler_wl_CXX='-Wl,'
12029 lt_prog_compiler_pic_CXX='-KPIC'
12030 lt_prog_compiler_static_CXX='-static'
12031 ;;
12032 pgCC*)
12033 # Portland Group C++ compiler.
12034 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_pic_CXX='-fpic'
12036 lt_prog_compiler_static_CXX='-Bstatic'
12037 ;;
12038 cxx*)
12039 # Compaq C++
12040 # Make sure the PIC flag is empty. It appears that all Alpha
12041 # Linux and Compaq Tru64 Unix objects are PIC.
12042 lt_prog_compiler_pic_CXX=
12043 lt_prog_compiler_static_CXX='-non_shared'
12044 ;;
12045 *)
12046 ;;
12047 esac
12048 ;;
12049 lynxos*)
12050 ;;
12051 m88k*)
12052 ;;
12053 mvs*)
12054 case $cc_basename in
12055 cxx*)
12056 lt_prog_compiler_pic_CXX='-W c,exportall'
12057 ;;
12058 *)
12059 ;;
12060 esac
12061 ;;
12062 netbsd*)
12063 ;;
12064 osf3* | osf4* | osf5*)
12065 case $cc_basename in
12066 KCC*)
12067 lt_prog_compiler_wl_CXX='--backend -Wl,'
12068 ;;
12069 RCC*)
12070 # Rational C++ 2.4.1
12071 lt_prog_compiler_pic_CXX='-pic'
12072 ;;
12073 cxx*)
12074 # Digital/Compaq C++
12075 lt_prog_compiler_wl_CXX='-Wl,'
12076 # Make sure the PIC flag is empty. It appears that all Alpha
12077 # Linux and Compaq Tru64 Unix objects are PIC.
12078 lt_prog_compiler_pic_CXX=
12079 lt_prog_compiler_static_CXX='-non_shared'
12080 ;;
12081 *)
12082 ;;
12083 esac
12084 ;;
12085 psos*)
12086 ;;
12087 solaris*)
12088 case $cc_basename in
12089 CC*)
12090 # Sun C++ 4.2, 5.x and Centerline C++
12091 lt_prog_compiler_pic_CXX='-KPIC'
12092 lt_prog_compiler_static_CXX='-Bstatic'
12093 lt_prog_compiler_wl_CXX='-Qoption ld '
12094 ;;
12095 gcx*)
12096 # Green Hills C++ Compiler
12097 lt_prog_compiler_pic_CXX='-PIC'
12098 ;;
12099 *)
12100 ;;
12101 esac
12102 ;;
12103 sunos4*)
12104 case $cc_basename in
12105 CC*)
12106 # Sun C++ 4.x
12107 lt_prog_compiler_pic_CXX='-pic'
12108 lt_prog_compiler_static_CXX='-Bstatic'
12109 ;;
12110 lcc*)
12111 # Lucid
12112 lt_prog_compiler_pic_CXX='-pic'
12113 ;;
12114 *)
12115 ;;
12116 esac
12117 ;;
12118 tandem*)
12119 case $cc_basename in
12120 NCC*)
12121 # NonStop-UX NCC 3.20
12122 lt_prog_compiler_pic_CXX='-KPIC'
12123 ;;
12124 *)
12125 ;;
12126 esac
12127 ;;
12128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12129 case $cc_basename in
12130 CC*)
12131 lt_prog_compiler_wl_CXX='-Wl,'
12132 lt_prog_compiler_pic_CXX='-KPIC'
12133 lt_prog_compiler_static_CXX='-Bstatic'
12134 ;;
12135 esac
12136 ;;
12137 vxworks*)
12138 ;;
12139 *)
12140 lt_prog_compiler_can_build_shared_CXX=no
12141 ;;
12142 esac
12143 fi
12144
12145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12146 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12147
12148 #
12149 # Check to make sure the PIC flag actually works.
12150 #
12151 if test -n "$lt_prog_compiler_pic_CXX"; then
12152
12153 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12154 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12155 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 lt_prog_compiler_pic_works_CXX=no
12159 ac_outfile=conftest.$ac_objext
12160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12161 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12162 # Insert the option either (1) after the last *FLAGS variable, or
12163 # (2) before a word containing "conftest.", or (3) at the end.
12164 # Note that $ac_compile itself does not contain backslashes and begins
12165 # with a dollar sign (not a hyphen), so the echo should work correctly.
12166 # The option is referenced via a variable to avoid confusing sed.
12167 lt_compile=`echo "$ac_compile" | $SED \
12168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12170 -e 's:$: $lt_compiler_flag:'`
12171 (eval echo "\"\$as_me:12171: $lt_compile\"" >&5)
12172 (eval "$lt_compile" 2>conftest.err)
12173 ac_status=$?
12174 cat conftest.err >&5
12175 echo "$as_me:12175: \$? = $ac_status" >&5
12176 if (exit $ac_status) && test -s "$ac_outfile"; then
12177 # The compiler can only warn and ignore the option if not recognized
12178 # So say no if there are warnings other than the usual output.
12179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12182 lt_prog_compiler_pic_works_CXX=yes
12183 fi
12184 fi
12185 $rm conftest*
12186
12187 fi
12188 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12189 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12190
12191 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12192 case $lt_prog_compiler_pic_CXX in
12193 "" | " "*) ;;
12194 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12195 esac
12196 else
12197 lt_prog_compiler_pic_CXX=
12198 lt_prog_compiler_can_build_shared_CXX=no
12199 fi
12200
12201 fi
12202 case $host_os in
12203 # For platforms which do not support PIC, -DPIC is meaningless:
12204 *djgpp*)
12205 lt_prog_compiler_pic_CXX=
12206 ;;
12207 *)
12208 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12209 ;;
12210 esac
12211
12212 #
12213 # Check to make sure the static flag actually works.
12214 #
12215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12216 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12217 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12218 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 lt_prog_compiler_static_works_CXX=no
12222 save_LDFLAGS="$LDFLAGS"
12223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12226 # The linker can only warn and ignore the option if not recognized
12227 # So say no if there are warnings
12228 if test -s conftest.err; then
12229 # Append any errors to the config.log.
12230 cat conftest.err 1>&5
12231 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12233 if diff conftest.exp conftest.er2 >/dev/null; then
12234 lt_prog_compiler_static_works_CXX=yes
12235 fi
12236 else
12237 lt_prog_compiler_static_works_CXX=yes
12238 fi
12239 fi
12240 $rm conftest*
12241 LDFLAGS="$save_LDFLAGS"
12242
12243 fi
12244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12245 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12246
12247 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12248 :
12249 else
12250 lt_prog_compiler_static_CXX=
12251 fi
12252
12253
12254 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12255 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12256 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 lt_cv_prog_compiler_c_o_CXX=no
12260 $rm -r conftest 2>/dev/null
12261 mkdir conftest
12262 cd conftest
12263 mkdir out
12264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12265
12266 lt_compiler_flag="-o out/conftest2.$ac_objext"
12267 # Insert the option either (1) after the last *FLAGS variable, or
12268 # (2) before a word containing "conftest.", or (3) at the end.
12269 # Note that $ac_compile itself does not contain backslashes and begins
12270 # with a dollar sign (not a hyphen), so the echo should work correctly.
12271 lt_compile=`echo "$ac_compile" | $SED \
12272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12274 -e 's:$: $lt_compiler_flag:'`
12275 (eval echo "\"\$as_me:12275: $lt_compile\"" >&5)
12276 (eval "$lt_compile" 2>out/conftest.err)
12277 ac_status=$?
12278 cat out/conftest.err >&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12281 then
12282 # The compiler can only warn and ignore the option if not recognized
12283 # So say no if there are warnings
12284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12287 lt_cv_prog_compiler_c_o_CXX=yes
12288 fi
12289 fi
12290 chmod u+w . 2>&5
12291 $rm conftest*
12292 # SGI C++ compiler will create directory out/ii_files/ for
12293 # template instantiation
12294 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12295 $rm out/* && rmdir out
12296 cd ..
12297 rmdir conftest
12298 $rm conftest*
12299
12300 fi
12301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12302 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12303
12304
12305 hard_links="nottested"
12306 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12307 # do not overwrite the value of need_locks provided by the user
12308 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12309 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12310 hard_links=yes
12311 $rm conftest*
12312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12313 touch conftest.a
12314 ln conftest.a conftest.b 2>&5 || hard_links=no
12315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12316 { echo "$as_me:$LINENO: result: $hard_links" >&5
12317 echo "${ECHO_T}$hard_links" >&6; }
12318 if test "$hard_links" = no; then
12319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12320 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12321 need_locks=warn
12322 fi
12323 else
12324 need_locks=no
12325 fi
12326
12327 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12328 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12329
12330 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12331 case $host_os in
12332 aix4* | aix5*)
12333 # If we're using GNU nm, then we don't want the "-C" option.
12334 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12335 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12336 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'
12337 else
12338 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'
12339 fi
12340 ;;
12341 pw32*)
12342 export_symbols_cmds_CXX="$ltdll_cmds"
12343 ;;
12344 cygwin* | mingw*)
12345 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'
12346 ;;
12347 *)
12348 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12349 ;;
12350 esac
12351
12352 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12353 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12354 test "$ld_shlibs_CXX" = no && can_build_shared=no
12355
12356 #
12357 # Do we need to explicitly link libc?
12358 #
12359 case "x$archive_cmds_need_lc_CXX" in
12360 x|xyes)
12361 # Assume -lc should be added
12362 archive_cmds_need_lc_CXX=yes
12363
12364 if test "$enable_shared" = yes && test "$GCC" = yes; then
12365 case $archive_cmds_CXX in
12366 *'~'*)
12367 # FIXME: we may have to deal with multi-command sequences.
12368 ;;
12369 '$CC '*)
12370 # Test whether the compiler implicitly links with -lc since on some
12371 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12372 # to ld, don't add -lc before -lgcc.
12373 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12374 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12375 $rm conftest*
12376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12377
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } 2>conftest.err; then
12383 soname=conftest
12384 lib=conftest
12385 libobjs=conftest.$ac_objext
12386 deplibs=
12387 wl=$lt_prog_compiler_wl_CXX
12388 pic_flag=$lt_prog_compiler_pic_CXX
12389 compiler_flags=-v
12390 linker_flags=-v
12391 verstring=
12392 output_objdir=.
12393 libname=conftest
12394 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12395 allow_undefined_flag_CXX=
12396 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12397 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }
12401 then
12402 archive_cmds_need_lc_CXX=no
12403 else
12404 archive_cmds_need_lc_CXX=yes
12405 fi
12406 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12407 else
12408 cat conftest.err 1>&5
12409 fi
12410 $rm conftest*
12411 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12412 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12413 ;;
12414 esac
12415 fi
12416 ;;
12417 esac
12418
12419 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12420 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12421 library_names_spec=
12422 libname_spec='lib$name'
12423 soname_spec=
12424 shrext_cmds=".so"
12425 postinstall_cmds=
12426 postuninstall_cmds=
12427 finish_cmds=
12428 finish_eval=
12429 shlibpath_var=
12430 shlibpath_overrides_runpath=unknown
12431 version_type=none
12432 dynamic_linker="$host_os ld.so"
12433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12434 if test "$GCC" = yes; then
12435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12436 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12437 # if the path contains ";" then we assume it to be the separator
12438 # otherwise default to the standard path separator (i.e. ":") - it is
12439 # assumed that no part of a normal pathname contains ";" but that should
12440 # okay in the real world where ";" in dirpaths is itself problematic.
12441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12442 else
12443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12444 fi
12445 else
12446 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12447 fi
12448 need_lib_prefix=unknown
12449 hardcode_into_libs=no
12450
12451 # when you set need_version to no, make sure it does not cause -set_version
12452 # flags to be left without arguments
12453 need_version=unknown
12454
12455 case $host_os in
12456 aix3*)
12457 version_type=linux
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12459 shlibpath_var=LIBPATH
12460
12461 # AIX 3 has no versioning support, so we append a major version to the name.
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 ;;
12464
12465 aix4* | aix5*)
12466 version_type=linux
12467 need_lib_prefix=no
12468 need_version=no
12469 hardcode_into_libs=yes
12470 if test "$host_cpu" = ia64; then
12471 # AIX 5 supports IA64
12472 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 else
12475 # With GCC up to 2.95.x, collect2 would create an import file
12476 # for dependence libraries. The import file would start with
12477 # the line `#! .'. This would cause the generated library to
12478 # depend on `.', always an invalid library. This was fixed in
12479 # development snapshots of GCC prior to 3.0.
12480 case $host_os in
12481 aix4 | aix4.[01] | aix4.[01].*)
12482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12483 echo ' yes '
12484 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12485 :
12486 else
12487 can_build_shared=no
12488 fi
12489 ;;
12490 esac
12491 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12492 # soname into executable. Probably we can add versioning support to
12493 # collect2, so additional links can be useful in future.
12494 if test "$aix_use_runtimelinking" = yes; then
12495 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12496 # instead of lib<name>.a to let people know that these are not
12497 # typical AIX shared libraries.
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499 else
12500 # We preserve .a as extension for shared libraries through AIX4.2
12501 # and later when we are not doing run time linking.
12502 library_names_spec='${libname}${release}.a $libname.a'
12503 soname_spec='${libname}${release}${shared_ext}$major'
12504 fi
12505 shlibpath_var=LIBPATH
12506 fi
12507 ;;
12508
12509 amigaos*)
12510 library_names_spec='$libname.ixlibrary $libname.a'
12511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12512 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'
12513 ;;
12514
12515 beos*)
12516 library_names_spec='${libname}${shared_ext}'
12517 dynamic_linker="$host_os ld.so"
12518 shlibpath_var=LIBRARY_PATH
12519 ;;
12520
12521 bsdi[45]*)
12522 version_type=linux
12523 need_version=no
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 soname_spec='${libname}${release}${shared_ext}$major'
12526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12527 shlibpath_var=LD_LIBRARY_PATH
12528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12530 # the default ld.so.conf also contains /usr/contrib/lib and
12531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12532 # libtool to hard-code these into programs
12533 ;;
12534
12535 cygwin* | mingw* | pw32*)
12536 version_type=windows
12537 shrext_cmds=".dll"
12538 need_version=no
12539 need_lib_prefix=no
12540
12541 case $GCC,$host_os in
12542 yes,cygwin* | yes,mingw* | yes,pw32*)
12543 library_names_spec='$libname.dll.a'
12544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12545 postinstall_cmds='base_file=`basename \${file}`~
12546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12547 dldir=$destdir/`dirname \$dlpath`~
12548 test -d \$dldir || mkdir -p \$dldir~
12549 $install_prog $dir/$dlname \$dldir/$dlname~
12550 chmod a+x \$dldir/$dlname'
12551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12552 dlpath=$dir/\$dldll~
12553 $rm \$dlpath'
12554 shlibpath_overrides_runpath=yes
12555
12556 case $host_os in
12557 cygwin*)
12558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12560 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12561 ;;
12562 mingw*)
12563 # MinGW DLLs use traditional 'lib' prefix
12564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12566 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12567 # It is most probably a Windows format PATH printed by
12568 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12569 # path with ; separators, and with drive letters. We can handle the
12570 # drive letters (cygwin fileutils understands them), so leave them,
12571 # especially as we might pass files found there to a mingw objdump,
12572 # which wouldn't understand a cygwinified path. Ahh.
12573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12574 else
12575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12576 fi
12577 ;;
12578 pw32*)
12579 # pw32 DLLs use 'pw' prefix rather than 'lib'
12580 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12581 ;;
12582 esac
12583 ;;
12584
12585 *)
12586 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12587 ;;
12588 esac
12589 dynamic_linker='Win32 ld.exe'
12590 # FIXME: first we should search . and the directory the executable is in
12591 shlibpath_var=PATH
12592 ;;
12593
12594 darwin* | rhapsody*)
12595 dynamic_linker="$host_os dyld"
12596 version_type=darwin
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12600 soname_spec='${libname}${release}${major}$shared_ext'
12601 shlibpath_overrides_runpath=yes
12602 shlibpath_var=DYLD_LIBRARY_PATH
12603 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12604 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12605 if test "$GCC" = yes; then
12606 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12607 else
12608 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12609 fi
12610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12611 ;;
12612
12613 dgux*)
12614 version_type=linux
12615 need_lib_prefix=no
12616 need_version=no
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12618 soname_spec='${libname}${release}${shared_ext}$major'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 ;;
12621
12622 freebsd1*)
12623 dynamic_linker=no
12624 ;;
12625
12626 kfreebsd*-gnu)
12627 version_type=linux
12628 need_lib_prefix=no
12629 need_version=no
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 shlibpath_overrides_runpath=no
12634 hardcode_into_libs=yes
12635 dynamic_linker='GNU ld.so'
12636 ;;
12637
12638 freebsd* | dragonfly*)
12639 # DragonFly does not have aout. When/if they implement a new
12640 # versioning mechanism, adjust this.
12641 if test -x /usr/bin/objformat; then
12642 objformat=`/usr/bin/objformat`
12643 else
12644 case $host_os in
12645 freebsd[123]*) objformat=aout ;;
12646 *) objformat=elf ;;
12647 esac
12648 fi
12649 version_type=freebsd-$objformat
12650 case $version_type in
12651 freebsd-elf*)
12652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12653 need_version=no
12654 need_lib_prefix=no
12655 ;;
12656 freebsd-*)
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12658 need_version=yes
12659 ;;
12660 esac
12661 shlibpath_var=LD_LIBRARY_PATH
12662 case $host_os in
12663 freebsd2*)
12664 shlibpath_overrides_runpath=yes
12665 ;;
12666 freebsd3.[01]* | freebsdelf3.[01]*)
12667 shlibpath_overrides_runpath=yes
12668 hardcode_into_libs=yes
12669 ;;
12670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12672 shlibpath_overrides_runpath=no
12673 hardcode_into_libs=yes
12674 ;;
12675 freebsd*) # from 4.6 on
12676 shlibpath_overrides_runpath=yes
12677 hardcode_into_libs=yes
12678 ;;
12679 esac
12680 ;;
12681
12682 gnu*)
12683 version_type=linux
12684 need_lib_prefix=no
12685 need_version=no
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 shlibpath_var=LD_LIBRARY_PATH
12689 hardcode_into_libs=yes
12690 ;;
12691
12692 hpux9* | hpux10* | hpux11*)
12693 # Give a soname corresponding to the major version so that dld.sl refuses to
12694 # link against other versions.
12695 version_type=sunos
12696 need_lib_prefix=no
12697 need_version=no
12698 case $host_cpu in
12699 ia64*)
12700 shrext_cmds='.so'
12701 hardcode_into_libs=yes
12702 dynamic_linker="$host_os dld.so"
12703 shlibpath_var=LD_LIBRARY_PATH
12704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706 soname_spec='${libname}${release}${shared_ext}$major'
12707 if test "X$HPUX_IA64_MODE" = X32; then
12708 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12709 else
12710 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12711 fi
12712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12713 ;;
12714 hppa*64*)
12715 shrext_cmds='.sl'
12716 hardcode_into_libs=yes
12717 dynamic_linker="$host_os dld.sl"
12718 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 soname_spec='${libname}${release}${shared_ext}$major'
12722 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12724 ;;
12725 *)
12726 shrext_cmds='.sl'
12727 dynamic_linker="$host_os dld.sl"
12728 shlibpath_var=SHLIB_PATH
12729 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 ;;
12733 esac
12734 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12735 postinstall_cmds='chmod 555 $lib'
12736 ;;
12737
12738 interix3*)
12739 version_type=linux
12740 need_lib_prefix=no
12741 need_version=no
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 shlibpath_overrides_runpath=no
12747 hardcode_into_libs=yes
12748 ;;
12749
12750 irix5* | irix6* | nonstopux*)
12751 case $host_os in
12752 nonstopux*) version_type=nonstopux ;;
12753 *)
12754 if test "$lt_cv_prog_gnu_ld" = yes; then
12755 version_type=linux
12756 else
12757 version_type=irix
12758 fi ;;
12759 esac
12760 need_lib_prefix=no
12761 need_version=no
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12764 case $host_os in
12765 irix5* | nonstopux*)
12766 libsuff= shlibsuff=
12767 ;;
12768 *)
12769 case $LD in # libtool.m4 will add one of these switches to LD
12770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12771 libsuff= shlibsuff= libmagic=32-bit;;
12772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12773 libsuff=32 shlibsuff=N32 libmagic=N32;;
12774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12776 *) libsuff= shlibsuff= libmagic=never-match;;
12777 esac
12778 ;;
12779 esac
12780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12781 shlibpath_overrides_runpath=no
12782 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12783 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12784 hardcode_into_libs=yes
12785 ;;
12786
12787 # No shared lib support for Linux oldld, aout, or coff.
12788 linux*oldld* | linux*aout* | linux*coff*)
12789 dynamic_linker=no
12790 ;;
12791
12792 # This must be Linux ELF.
12793 linux*)
12794 version_type=linux
12795 need_lib_prefix=no
12796 need_version=no
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 # This implies no fast_install, which is unacceptable.
12803 # Some rework will be needed to allow for fast_install
12804 # before this can be enabled.
12805 hardcode_into_libs=yes
12806
12807 # find out which ABI we are using
12808 libsuff=
12809 case "$host_cpu" in
12810 x86_64*|s390x*|powerpc64*)
12811 echo '#line 12811 "configure"' > conftest.$ac_ext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; then
12817 case `/usr/bin/file conftest.$ac_objext` in
12818 *64-bit*)
12819 libsuff=64
12820 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12821 ;;
12822 esac
12823 fi
12824 rm -rf conftest*
12825 ;;
12826 esac
12827
12828 # Append ld.so.conf contents to the search path
12829 if test -f /etc/ld.so.conf; then
12830 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12831 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12832 fi
12833
12834 # We used to test for /lib/ld.so.1 and disable shared libraries on
12835 # powerpc, because MkLinux only supported shared libraries with the
12836 # GNU dynamic linker. Since this was broken with cross compilers,
12837 # most powerpc-linux boxes support dynamic linking these days and
12838 # people can always --disable-shared, the test was removed, and we
12839 # assume the GNU/Linux dynamic linker is in use.
12840 dynamic_linker='GNU/Linux ld.so'
12841 ;;
12842
12843 knetbsd*-gnu)
12844 version_type=linux
12845 need_lib_prefix=no
12846 need_version=no
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12848 soname_spec='${libname}${release}${shared_ext}$major'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 shlibpath_overrides_runpath=no
12851 hardcode_into_libs=yes
12852 dynamic_linker='GNU ld.so'
12853 ;;
12854
12855 netbsd*)
12856 version_type=sunos
12857 need_lib_prefix=no
12858 need_version=no
12859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12862 dynamic_linker='NetBSD (a.out) ld.so'
12863 else
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12865 soname_spec='${libname}${release}${shared_ext}$major'
12866 dynamic_linker='NetBSD ld.elf_so'
12867 fi
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=yes
12870 hardcode_into_libs=yes
12871 ;;
12872
12873 newsos6)
12874 version_type=linux
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876 shlibpath_var=LD_LIBRARY_PATH
12877 shlibpath_overrides_runpath=yes
12878 ;;
12879
12880 nto-qnx*)
12881 version_type=linux
12882 need_lib_prefix=no
12883 need_version=no
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 shlibpath_overrides_runpath=yes
12888 ;;
12889
12890 openbsd*)
12891 version_type=sunos
12892 sys_lib_dlsearch_path_spec="/usr/lib"
12893 need_lib_prefix=no
12894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12895 case $host_os in
12896 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12897 *) need_version=no ;;
12898 esac
12899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12901 shlibpath_var=LD_LIBRARY_PATH
12902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12903 case $host_os in
12904 openbsd2.[89] | openbsd2.[89].*)
12905 shlibpath_overrides_runpath=no
12906 ;;
12907 *)
12908 shlibpath_overrides_runpath=yes
12909 ;;
12910 esac
12911 else
12912 shlibpath_overrides_runpath=yes
12913 fi
12914 ;;
12915
12916 os2*)
12917 libname_spec='$name'
12918 shrext_cmds=".dll"
12919 need_lib_prefix=no
12920 library_names_spec='$libname${shared_ext} $libname.a'
12921 dynamic_linker='OS/2 ld.exe'
12922 shlibpath_var=LIBPATH
12923 ;;
12924
12925 osf3* | osf4* | osf5*)
12926 version_type=osf
12927 need_lib_prefix=no
12928 need_version=no
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12934 ;;
12935
12936 solaris*)
12937 version_type=linux
12938 need_lib_prefix=no
12939 need_version=no
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12941 soname_spec='${libname}${release}${shared_ext}$major'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=yes
12944 hardcode_into_libs=yes
12945 # ldd complains unless libraries are executable
12946 postinstall_cmds='chmod +x $lib'
12947 ;;
12948
12949 sunos4*)
12950 version_type=sunos
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12953 shlibpath_var=LD_LIBRARY_PATH
12954 shlibpath_overrides_runpath=yes
12955 if test "$with_gnu_ld" = yes; then
12956 need_lib_prefix=no
12957 fi
12958 need_version=yes
12959 ;;
12960
12961 sysv4 | sysv4.3*)
12962 version_type=linux
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 case $host_vendor in
12967 sni)
12968 shlibpath_overrides_runpath=no
12969 need_lib_prefix=no
12970 export_dynamic_flag_spec='${wl}-Blargedynsym'
12971 runpath_var=LD_RUN_PATH
12972 ;;
12973 siemens)
12974 need_lib_prefix=no
12975 ;;
12976 motorola)
12977 need_lib_prefix=no
12978 need_version=no
12979 shlibpath_overrides_runpath=no
12980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12981 ;;
12982 esac
12983 ;;
12984
12985 sysv4*MP*)
12986 if test -d /usr/nec ;then
12987 version_type=linux
12988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12989 soname_spec='$libname${shared_ext}.$major'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 fi
12992 ;;
12993
12994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12995 version_type=freebsd-elf
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 hardcode_into_libs=yes
13002 if test "$with_gnu_ld" = yes; then
13003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13004 shlibpath_overrides_runpath=no
13005 else
13006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13007 shlibpath_overrides_runpath=yes
13008 case $host_os in
13009 sco3.2v5*)
13010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13011 ;;
13012 esac
13013 fi
13014 sys_lib_dlsearch_path_spec='/usr/lib'
13015 ;;
13016
13017 uts4*)
13018 version_type=linux
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 ;;
13023
13024 *)
13025 dynamic_linker=no
13026 ;;
13027 esac
13028 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13029 echo "${ECHO_T}$dynamic_linker" >&6; }
13030 test "$dynamic_linker" = no && can_build_shared=no
13031
13032 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13033 if test "$GCC" = yes; then
13034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13035 fi
13036
13037 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13039 hardcode_action_CXX=
13040 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13041 test -n "$runpath_var_CXX" || \
13042 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13043
13044 # We can hardcode non-existant directories.
13045 if test "$hardcode_direct_CXX" != no &&
13046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13047 # have to relink, otherwise we might link with an installed library
13048 # when we should be linking with a yet-to-be-installed one
13049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13050 test "$hardcode_minus_L_CXX" != no; then
13051 # Linking always hardcodes the temporary library directory.
13052 hardcode_action_CXX=relink
13053 else
13054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13055 hardcode_action_CXX=immediate
13056 fi
13057 else
13058 # We cannot hardcode anything, or else we can only hardcode existing
13059 # directories.
13060 hardcode_action_CXX=unsupported
13061 fi
13062 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13063 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13064
13065 if test "$hardcode_action_CXX" = relink; then
13066 # Fast installation is not supported
13067 enable_fast_install=no
13068 elif test "$shlibpath_overrides_runpath" = yes ||
13069 test "$enable_shared" = no; then
13070 # Fast installation is not necessary
13071 enable_fast_install=needless
13072 fi
13073
13074
13075 # The else clause should only fire when bootstrapping the
13076 # libtool distribution, otherwise you forgot to ship ltmain.sh
13077 # with your package, and you will get complaints that there are
13078 # no rules to generate ltmain.sh.
13079 if test -f "$ltmain"; then
13080 # See if we are running on zsh, and set the options which allow our commands through
13081 # without removal of \ escapes.
13082 if test -n "${ZSH_VERSION+set}" ; then
13083 setopt NO_GLOB_SUBST
13084 fi
13085 # Now quote all the things that may contain metacharacters while being
13086 # careful not to overquote the AC_SUBSTed values. We take copies of the
13087 # variables and quote the copies for generation of the libtool script.
13088 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13089 SED SHELL STRIP \
13090 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13091 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13092 deplibs_check_method reload_flag reload_cmds need_locks \
13093 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13094 lt_cv_sys_global_symbol_to_c_name_address \
13095 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13096 old_postinstall_cmds old_postuninstall_cmds \
13097 compiler_CXX \
13098 CC_CXX \
13099 LD_CXX \
13100 lt_prog_compiler_wl_CXX \
13101 lt_prog_compiler_pic_CXX \
13102 lt_prog_compiler_static_CXX \
13103 lt_prog_compiler_no_builtin_flag_CXX \
13104 export_dynamic_flag_spec_CXX \
13105 thread_safe_flag_spec_CXX \
13106 whole_archive_flag_spec_CXX \
13107 enable_shared_with_static_runtimes_CXX \
13108 old_archive_cmds_CXX \
13109 old_archive_from_new_cmds_CXX \
13110 predep_objects_CXX \
13111 postdep_objects_CXX \
13112 predeps_CXX \
13113 postdeps_CXX \
13114 compiler_lib_search_path_CXX \
13115 archive_cmds_CXX \
13116 archive_expsym_cmds_CXX \
13117 postinstall_cmds_CXX \
13118 postuninstall_cmds_CXX \
13119 old_archive_from_expsyms_cmds_CXX \
13120 allow_undefined_flag_CXX \
13121 no_undefined_flag_CXX \
13122 export_symbols_cmds_CXX \
13123 hardcode_libdir_flag_spec_CXX \
13124 hardcode_libdir_flag_spec_ld_CXX \
13125 hardcode_libdir_separator_CXX \
13126 hardcode_automatic_CXX \
13127 module_cmds_CXX \
13128 module_expsym_cmds_CXX \
13129 lt_cv_prog_compiler_c_o_CXX \
13130 exclude_expsyms_CXX \
13131 include_expsyms_CXX; do
13132
13133 case $var in
13134 old_archive_cmds_CXX | \
13135 old_archive_from_new_cmds_CXX | \
13136 archive_cmds_CXX | \
13137 archive_expsym_cmds_CXX | \
13138 module_cmds_CXX | \
13139 module_expsym_cmds_CXX | \
13140 old_archive_from_expsyms_cmds_CXX | \
13141 export_symbols_cmds_CXX | \
13142 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13143 postinstall_cmds | postuninstall_cmds | \
13144 old_postinstall_cmds | old_postuninstall_cmds | \
13145 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13146 # Double-quote double-evaled strings.
13147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13148 ;;
13149 *)
13150 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13151 ;;
13152 esac
13153 done
13154
13155 case $lt_echo in
13156 *'\$0 --fallback-echo"')
13157 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13158 ;;
13159 esac
13160
13161 cfgfile="$ofile"
13162
13163 cat <<__EOF__ >> "$cfgfile"
13164 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13165
13166 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13167
13168 # Shell to use when invoking shell scripts.
13169 SHELL=$lt_SHELL
13170
13171 # Whether or not to build shared libraries.
13172 build_libtool_libs=$enable_shared
13173
13174 # Whether or not to build static libraries.
13175 build_old_libs=$enable_static
13176
13177 # Whether or not to add -lc for building shared libraries.
13178 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13179
13180 # Whether or not to disallow shared libs when runtime libs are static
13181 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13182
13183 # Whether or not to optimize for fast installation.
13184 fast_install=$enable_fast_install
13185
13186 # The host system.
13187 host_alias=$host_alias
13188 host=$host
13189 host_os=$host_os
13190
13191 # The build system.
13192 build_alias=$build_alias
13193 build=$build
13194 build_os=$build_os
13195
13196 # An echo program that does not interpret backslashes.
13197 echo=$lt_echo
13198
13199 # The archiver.
13200 AR=$lt_AR
13201 AR_FLAGS=$lt_AR_FLAGS
13202
13203 # A C compiler.
13204 LTCC=$lt_LTCC
13205
13206 # LTCC compiler flags.
13207 LTCFLAGS=$lt_LTCFLAGS
13208
13209 # A language-specific compiler.
13210 CC=$lt_compiler_CXX
13211
13212 # Is the compiler the GNU C compiler?
13213 with_gcc=$GCC_CXX
13214
13215 # An ERE matcher.
13216 EGREP=$lt_EGREP
13217
13218 # The linker used to build libraries.
13219 LD=$lt_LD_CXX
13220
13221 # Whether we need hard or soft links.
13222 LN_S=$lt_LN_S
13223
13224 # A BSD-compatible nm program.
13225 NM=$lt_NM
13226
13227 # A symbol stripping program
13228 STRIP=$lt_STRIP
13229
13230 # Used to examine libraries when file_magic_cmd begins "file"
13231 MAGIC_CMD=$MAGIC_CMD
13232
13233 # Used on cygwin: DLL creation program.
13234 DLLTOOL="$DLLTOOL"
13235
13236 # Used on cygwin: object dumper.
13237 OBJDUMP="$OBJDUMP"
13238
13239 # Used on cygwin: assembler.
13240 AS="$AS"
13241
13242 # The name of the directory that contains temporary libtool files.
13243 objdir=$objdir
13244
13245 # How to create reloadable object files.
13246 reload_flag=$lt_reload_flag
13247 reload_cmds=$lt_reload_cmds
13248
13249 # How to pass a linker flag through the compiler.
13250 wl=$lt_lt_prog_compiler_wl_CXX
13251
13252 # Object file suffix (normally "o").
13253 objext="$ac_objext"
13254
13255 # Old archive suffix (normally "a").
13256 libext="$libext"
13257
13258 # Shared library suffix (normally ".so").
13259 shrext_cmds='$shrext_cmds'
13260
13261 # Executable file suffix (normally "").
13262 exeext="$exeext"
13263
13264 # Additional compiler flags for building library objects.
13265 pic_flag=$lt_lt_prog_compiler_pic_CXX
13266 pic_mode=$pic_mode
13267
13268 # What is the maximum length of a command?
13269 max_cmd_len=$lt_cv_sys_max_cmd_len
13270
13271 # Does compiler simultaneously support -c and -o options?
13272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13273
13274 # Must we lock files when doing compilation?
13275 need_locks=$lt_need_locks
13276
13277 # Do we need the lib prefix for modules?
13278 need_lib_prefix=$need_lib_prefix
13279
13280 # Do we need a version for libraries?
13281 need_version=$need_version
13282
13283 # Whether dlopen is supported.
13284 dlopen_support=$enable_dlopen
13285
13286 # Whether dlopen of programs is supported.
13287 dlopen_self=$enable_dlopen_self
13288
13289 # Whether dlopen of statically linked programs is supported.
13290 dlopen_self_static=$enable_dlopen_self_static
13291
13292 # Compiler flag to prevent dynamic linking.
13293 link_static_flag=$lt_lt_prog_compiler_static_CXX
13294
13295 # Compiler flag to turn off builtin functions.
13296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13297
13298 # Compiler flag to allow reflexive dlopens.
13299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13300
13301 # Compiler flag to generate shared objects directly from archives.
13302 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13303
13304 # Compiler flag to generate thread-safe objects.
13305 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13306
13307 # Library versioning type.
13308 version_type=$version_type
13309
13310 # Format of library name prefix.
13311 libname_spec=$lt_libname_spec
13312
13313 # List of archive names. First name is the real one, the rest are links.
13314 # The last name is the one that the linker finds with -lNAME.
13315 library_names_spec=$lt_library_names_spec
13316
13317 # The coded name of the library, if different from the real name.
13318 soname_spec=$lt_soname_spec
13319
13320 # Commands used to build and install an old-style archive.
13321 RANLIB=$lt_RANLIB
13322 old_archive_cmds=$lt_old_archive_cmds_CXX
13323 old_postinstall_cmds=$lt_old_postinstall_cmds
13324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13325
13326 # Create an old-style archive from a shared archive.
13327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13328
13329 # Create a temporary old-style archive to link instead of a shared archive.
13330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13331
13332 # Commands used to build and install a shared archive.
13333 archive_cmds=$lt_archive_cmds_CXX
13334 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13335 postinstall_cmds=$lt_postinstall_cmds
13336 postuninstall_cmds=$lt_postuninstall_cmds
13337
13338 # Commands used to build a loadable module (assumed same as above if empty)
13339 module_cmds=$lt_module_cmds_CXX
13340 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13341
13342 # Commands to strip libraries.
13343 old_striplib=$lt_old_striplib
13344 striplib=$lt_striplib
13345
13346 # Dependencies to place before the objects being linked to create a
13347 # shared library.
13348 predep_objects=$lt_predep_objects_CXX
13349
13350 # Dependencies to place after the objects being linked to create a
13351 # shared library.
13352 postdep_objects=$lt_postdep_objects_CXX
13353
13354 # Dependencies to place before the objects being linked to create a
13355 # shared library.
13356 predeps=$lt_predeps_CXX
13357
13358 # Dependencies to place after the objects being linked to create a
13359 # shared library.
13360 postdeps=$lt_postdeps_CXX
13361
13362 # The library search path used internally by the compiler when linking
13363 # a shared library.
13364 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13365
13366 # Method to check whether dependent libraries are shared objects.
13367 deplibs_check_method=$lt_deplibs_check_method
13368
13369 # Command to use when deplibs_check_method == file_magic.
13370 file_magic_cmd=$lt_file_magic_cmd
13371
13372 # Flag that allows shared libraries with undefined symbols to be built.
13373 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13374
13375 # Flag that forces no undefined symbols.
13376 no_undefined_flag=$lt_no_undefined_flag_CXX
13377
13378 # Commands used to finish a libtool library installation in a directory.
13379 finish_cmds=$lt_finish_cmds
13380
13381 # Same as above, but a single script fragment to be evaled but not shown.
13382 finish_eval=$lt_finish_eval
13383
13384 # Take the output of nm and produce a listing of raw symbols and C names.
13385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13386
13387 # Transform the output of nm in a proper C declaration
13388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13389
13390 # Transform the output of nm in a C name address pair
13391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13392
13393 # This is the shared library runtime path variable.
13394 runpath_var=$runpath_var
13395
13396 # This is the shared library path variable.
13397 shlibpath_var=$shlibpath_var
13398
13399 # Is shlibpath searched before the hard-coded library search path?
13400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13401
13402 # How to hardcode a shared library path into an executable.
13403 hardcode_action=$hardcode_action_CXX
13404
13405 # Whether we should hardcode library paths into libraries.
13406 hardcode_into_libs=$hardcode_into_libs
13407
13408 # Flag to hardcode \$libdir into a binary during linking.
13409 # This must work even if \$libdir does not exist.
13410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13411
13412 # If ld is used when linking, flag to hardcode \$libdir into
13413 # a binary during linking. This must work even if \$libdir does
13414 # not exist.
13415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13416
13417 # Whether we need a single -rpath flag with a separated argument.
13418 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13419
13420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13421 # resulting binary.
13422 hardcode_direct=$hardcode_direct_CXX
13423
13424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13425 # resulting binary.
13426 hardcode_minus_L=$hardcode_minus_L_CXX
13427
13428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13429 # the resulting binary.
13430 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13431
13432 # Set to yes if building a shared library automatically hardcodes DIR into the library
13433 # and all subsequent libraries and executables linked against it.
13434 hardcode_automatic=$hardcode_automatic_CXX
13435
13436 # Variables whose values should be saved in libtool wrapper scripts and
13437 # restored at relink time.
13438 variables_saved_for_relink="$variables_saved_for_relink"
13439
13440 # Whether libtool must link a program against all its dependency libraries.
13441 link_all_deplibs=$link_all_deplibs_CXX
13442
13443 # Compile-time system search path for libraries
13444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13445
13446 # Run-time system search path for libraries
13447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13448
13449 # Fix the shell variable \$srcfile for the compiler.
13450 fix_srcfile_path="$fix_srcfile_path_CXX"
13451
13452 # Set to yes if exported symbols are required.
13453 always_export_symbols=$always_export_symbols_CXX
13454
13455 # The commands to list exported symbols.
13456 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13457
13458 # The commands to extract the exported symbol list from a shared archive.
13459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13460
13461 # Symbols that should not be listed in the preloaded symbols.
13462 exclude_expsyms=$lt_exclude_expsyms_CXX
13463
13464 # Symbols that must always be exported.
13465 include_expsyms=$lt_include_expsyms_CXX
13466
13467 # ### END LIBTOOL TAG CONFIG: $tagname
13468
13469 __EOF__
13470
13471
13472 else
13473 # If there is no Makefile yet, we rely on a make rule to execute
13474 # `config.status --recheck' to rerun these tests and create the
13475 # libtool script then.
13476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13477 if test -f "$ltmain_in"; then
13478 test -f Makefile && make "$ltmain"
13479 fi
13480 fi
13481
13482
13483 ac_ext=c
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488
13489 CC=$lt_save_CC
13490 LDCXX=$LD
13491 LD=$lt_save_LD
13492 GCC=$lt_save_GCC
13493 with_gnu_ldcxx=$with_gnu_ld
13494 with_gnu_ld=$lt_save_with_gnu_ld
13495 lt_cv_path_LDCXX=$lt_cv_path_LD
13496 lt_cv_path_LD=$lt_save_path_LD
13497 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13498 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13499
13500 else
13501 tagname=""
13502 fi
13503 ;;
13504
13505 F77)
13506 if test -n "$F77" && test "X$F77" != "Xno"; then
13507
13508 ac_ext=f
13509 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13510 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13512
13513
13514 archive_cmds_need_lc_F77=no
13515 allow_undefined_flag_F77=
13516 always_export_symbols_F77=no
13517 archive_expsym_cmds_F77=
13518 export_dynamic_flag_spec_F77=
13519 hardcode_direct_F77=no
13520 hardcode_libdir_flag_spec_F77=
13521 hardcode_libdir_flag_spec_ld_F77=
13522 hardcode_libdir_separator_F77=
13523 hardcode_minus_L_F77=no
13524 hardcode_automatic_F77=no
13525 module_cmds_F77=
13526 module_expsym_cmds_F77=
13527 link_all_deplibs_F77=unknown
13528 old_archive_cmds_F77=$old_archive_cmds
13529 no_undefined_flag_F77=
13530 whole_archive_flag_spec_F77=
13531 enable_shared_with_static_runtimes_F77=no
13532
13533 # Source file extension for f77 test sources.
13534 ac_ext=f
13535
13536 # Object file extension for compiled f77 test sources.
13537 objext=o
13538 objext_F77=$objext
13539
13540 # Code to be used in simple compile tests
13541 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13542
13543 # Code to be used in simple link tests
13544 lt_simple_link_test_code=" program t\n end\n"
13545
13546 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13547
13548 # If no C compiler was specified, use CC.
13549 LTCC=${LTCC-"$CC"}
13550
13551 # If no C compiler flags were specified, use CFLAGS.
13552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13553
13554 # Allow CC to be a program name with arguments.
13555 compiler=$CC
13556
13557
13558 # save warnings/boilerplate of simple test code
13559 ac_outfile=conftest.$ac_objext
13560 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13561 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13562 _lt_compiler_boilerplate=`cat conftest.err`
13563 $rm conftest*
13564
13565 ac_outfile=conftest.$ac_objext
13566 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13567 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13568 _lt_linker_boilerplate=`cat conftest.err`
13569 $rm conftest*
13570
13571
13572 # Allow CC to be a program name with arguments.
13573 lt_save_CC="$CC"
13574 CC=${F77-"f77"}
13575 compiler=$CC
13576 compiler_F77=$CC
13577 for cc_temp in $compiler""; do
13578 case $cc_temp in
13579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13581 \-*) ;;
13582 *) break;;
13583 esac
13584 done
13585 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13586
13587
13588 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13589 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13590 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13591 echo "${ECHO_T}$can_build_shared" >&6; }
13592
13593 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13594 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13595 test "$can_build_shared" = "no" && enable_shared=no
13596
13597 # On AIX, shared libraries and static libraries use the same namespace, and
13598 # are all built from PIC.
13599 case $host_os in
13600 aix3*)
13601 test "$enable_shared" = yes && enable_static=no
13602 if test -n "$RANLIB"; then
13603 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13604 postinstall_cmds='$RANLIB $lib'
13605 fi
13606 ;;
13607 aix4* | aix5*)
13608 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13609 test "$enable_shared" = yes && enable_static=no
13610 fi
13611 ;;
13612 esac
13613 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13614 echo "${ECHO_T}$enable_shared" >&6; }
13615
13616 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13617 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13618 # Make sure either enable_shared or enable_static is yes.
13619 test "$enable_shared" = yes || enable_static=yes
13620 { echo "$as_me:$LINENO: result: $enable_static" >&5
13621 echo "${ECHO_T}$enable_static" >&6; }
13622
13623 GCC_F77="$G77"
13624 LD_F77="$LD"
13625
13626 lt_prog_compiler_wl_F77=
13627 lt_prog_compiler_pic_F77=
13628 lt_prog_compiler_static_F77=
13629
13630 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13631 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13632
13633 if test "$GCC" = yes; then
13634 lt_prog_compiler_wl_F77='-Wl,'
13635 lt_prog_compiler_static_F77='-static'
13636
13637 case $host_os in
13638 aix*)
13639 # All AIX code is PIC.
13640 if test "$host_cpu" = ia64; then
13641 # AIX 5 now supports IA64 processor
13642 lt_prog_compiler_static_F77='-Bstatic'
13643 fi
13644 ;;
13645
13646 amigaos*)
13647 # FIXME: we need at least 68020 code to build shared libraries, but
13648 # adding the `-m68020' flag to GCC prevents building anything better,
13649 # like `-m68040'.
13650 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13651 ;;
13652
13653 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13654 # PIC is the default for these OSes.
13655 ;;
13656
13657 mingw* | pw32* | os2*)
13658 # This hack is so that the source file can tell whether it is being
13659 # built for inclusion in a dll (and should export symbols for example).
13660 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13661 ;;
13662
13663 darwin* | rhapsody*)
13664 # PIC is the default on this platform
13665 # Common symbols not allowed in MH_DYLIB files
13666 lt_prog_compiler_pic_F77='-fno-common'
13667 ;;
13668
13669 interix3*)
13670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13671 # Instead, we relocate shared libraries at runtime.
13672 ;;
13673
13674 msdosdjgpp*)
13675 # Just because we use GCC doesn't mean we suddenly get shared libraries
13676 # on systems that don't support them.
13677 lt_prog_compiler_can_build_shared_F77=no
13678 enable_shared=no
13679 ;;
13680
13681 sysv4*MP*)
13682 if test -d /usr/nec; then
13683 lt_prog_compiler_pic_F77=-Kconform_pic
13684 fi
13685 ;;
13686
13687 hpux*)
13688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13689 # not for PA HP-UX.
13690 case $host_cpu in
13691 hppa*64*|ia64*)
13692 # +Z the default
13693 ;;
13694 *)
13695 lt_prog_compiler_pic_F77='-fPIC'
13696 ;;
13697 esac
13698 ;;
13699
13700 *)
13701 lt_prog_compiler_pic_F77='-fPIC'
13702 ;;
13703 esac
13704 else
13705 # PORTME Check for flag to pass linker flags through the system compiler.
13706 case $host_os in
13707 aix*)
13708 lt_prog_compiler_wl_F77='-Wl,'
13709 if test "$host_cpu" = ia64; then
13710 # AIX 5 now supports IA64 processor
13711 lt_prog_compiler_static_F77='-Bstatic'
13712 else
13713 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13714 fi
13715 ;;
13716 darwin*)
13717 # PIC is the default on this platform
13718 # Common symbols not allowed in MH_DYLIB files
13719 case $cc_basename in
13720 xlc*)
13721 lt_prog_compiler_pic_F77='-qnocommon'
13722 lt_prog_compiler_wl_F77='-Wl,'
13723 ;;
13724 esac
13725 ;;
13726
13727 mingw* | pw32* | os2*)
13728 # This hack is so that the source file can tell whether it is being
13729 # built for inclusion in a dll (and should export symbols for example).
13730 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13731 ;;
13732
13733 hpux9* | hpux10* | hpux11*)
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13736 # not for PA HP-UX.
13737 case $host_cpu in
13738 hppa*64*|ia64*)
13739 # +Z the default
13740 ;;
13741 *)
13742 lt_prog_compiler_pic_F77='+Z'
13743 ;;
13744 esac
13745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13746 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13747 ;;
13748
13749 irix5* | irix6* | nonstopux*)
13750 lt_prog_compiler_wl_F77='-Wl,'
13751 # PIC (with -KPIC) is the default.
13752 lt_prog_compiler_static_F77='-non_shared'
13753 ;;
13754
13755 newsos6)
13756 lt_prog_compiler_pic_F77='-KPIC'
13757 lt_prog_compiler_static_F77='-Bstatic'
13758 ;;
13759
13760 linux*)
13761 case $cc_basename in
13762 icc* | ecc*)
13763 lt_prog_compiler_wl_F77='-Wl,'
13764 lt_prog_compiler_pic_F77='-KPIC'
13765 lt_prog_compiler_static_F77='-static'
13766 ;;
13767 pgcc* | pgf77* | pgf90* | pgf95*)
13768 # Portland Group compilers (*not* the Pentium gcc compiler,
13769 # which looks to be a dead project)
13770 lt_prog_compiler_wl_F77='-Wl,'
13771 lt_prog_compiler_pic_F77='-fpic'
13772 lt_prog_compiler_static_F77='-Bstatic'
13773 ;;
13774 ccc*)
13775 lt_prog_compiler_wl_F77='-Wl,'
13776 # All Alpha code is PIC.
13777 lt_prog_compiler_static_F77='-non_shared'
13778 ;;
13779 esac
13780 ;;
13781
13782 osf3* | osf4* | osf5*)
13783 lt_prog_compiler_wl_F77='-Wl,'
13784 # All OSF/1 code is PIC.
13785 lt_prog_compiler_static_F77='-non_shared'
13786 ;;
13787
13788 solaris*)
13789 lt_prog_compiler_pic_F77='-KPIC'
13790 lt_prog_compiler_static_F77='-Bstatic'
13791 case $cc_basename in
13792 f77* | f90* | f95*)
13793 lt_prog_compiler_wl_F77='-Qoption ld ';;
13794 *)
13795 lt_prog_compiler_wl_F77='-Wl,';;
13796 esac
13797 ;;
13798
13799 sunos4*)
13800 lt_prog_compiler_wl_F77='-Qoption ld '
13801 lt_prog_compiler_pic_F77='-PIC'
13802 lt_prog_compiler_static_F77='-Bstatic'
13803 ;;
13804
13805 sysv4 | sysv4.2uw2* | sysv4.3*)
13806 lt_prog_compiler_wl_F77='-Wl,'
13807 lt_prog_compiler_pic_F77='-KPIC'
13808 lt_prog_compiler_static_F77='-Bstatic'
13809 ;;
13810
13811 sysv4*MP*)
13812 if test -d /usr/nec ;then
13813 lt_prog_compiler_pic_F77='-Kconform_pic'
13814 lt_prog_compiler_static_F77='-Bstatic'
13815 fi
13816 ;;
13817
13818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13819 lt_prog_compiler_wl_F77='-Wl,'
13820 lt_prog_compiler_pic_F77='-KPIC'
13821 lt_prog_compiler_static_F77='-Bstatic'
13822 ;;
13823
13824 unicos*)
13825 lt_prog_compiler_wl_F77='-Wl,'
13826 lt_prog_compiler_can_build_shared_F77=no
13827 ;;
13828
13829 uts4*)
13830 lt_prog_compiler_pic_F77='-pic'
13831 lt_prog_compiler_static_F77='-Bstatic'
13832 ;;
13833
13834 *)
13835 lt_prog_compiler_can_build_shared_F77=no
13836 ;;
13837 esac
13838 fi
13839
13840 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13841 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13842
13843 #
13844 # Check to make sure the PIC flag actually works.
13845 #
13846 if test -n "$lt_prog_compiler_pic_F77"; then
13847
13848 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13849 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13850 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 lt_prog_compiler_pic_works_F77=no
13854 ac_outfile=conftest.$ac_objext
13855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13856 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13857 # Insert the option either (1) after the last *FLAGS variable, or
13858 # (2) before a word containing "conftest.", or (3) at the end.
13859 # Note that $ac_compile itself does not contain backslashes and begins
13860 # with a dollar sign (not a hyphen), so the echo should work correctly.
13861 # The option is referenced via a variable to avoid confusing sed.
13862 lt_compile=`echo "$ac_compile" | $SED \
13863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13865 -e 's:$: $lt_compiler_flag:'`
13866 (eval echo "\"\$as_me:13866: $lt_compile\"" >&5)
13867 (eval "$lt_compile" 2>conftest.err)
13868 ac_status=$?
13869 cat conftest.err >&5
13870 echo "$as_me:13870: \$? = $ac_status" >&5
13871 if (exit $ac_status) && test -s "$ac_outfile"; then
13872 # The compiler can only warn and ignore the option if not recognized
13873 # So say no if there are warnings other than the usual output.
13874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13877 lt_prog_compiler_pic_works_F77=yes
13878 fi
13879 fi
13880 $rm conftest*
13881
13882 fi
13883 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13884 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13885
13886 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13887 case $lt_prog_compiler_pic_F77 in
13888 "" | " "*) ;;
13889 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13890 esac
13891 else
13892 lt_prog_compiler_pic_F77=
13893 lt_prog_compiler_can_build_shared_F77=no
13894 fi
13895
13896 fi
13897 case $host_os in
13898 # For platforms which do not support PIC, -DPIC is meaningless:
13899 *djgpp*)
13900 lt_prog_compiler_pic_F77=
13901 ;;
13902 *)
13903 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13904 ;;
13905 esac
13906
13907 #
13908 # Check to make sure the static flag actually works.
13909 #
13910 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13911 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13912 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13913 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 lt_prog_compiler_static_works_F77=no
13917 save_LDFLAGS="$LDFLAGS"
13918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13919 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13921 # The linker can only warn and ignore the option if not recognized
13922 # So say no if there are warnings
13923 if test -s conftest.err; then
13924 # Append any errors to the config.log.
13925 cat conftest.err 1>&5
13926 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13928 if diff conftest.exp conftest.er2 >/dev/null; then
13929 lt_prog_compiler_static_works_F77=yes
13930 fi
13931 else
13932 lt_prog_compiler_static_works_F77=yes
13933 fi
13934 fi
13935 $rm conftest*
13936 LDFLAGS="$save_LDFLAGS"
13937
13938 fi
13939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13940 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13941
13942 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13943 :
13944 else
13945 lt_prog_compiler_static_F77=
13946 fi
13947
13948
13949 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13950 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13951 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 lt_cv_prog_compiler_c_o_F77=no
13955 $rm -r conftest 2>/dev/null
13956 mkdir conftest
13957 cd conftest
13958 mkdir out
13959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13960
13961 lt_compiler_flag="-o out/conftest2.$ac_objext"
13962 # Insert the option either (1) after the last *FLAGS variable, or
13963 # (2) before a word containing "conftest.", or (3) at the end.
13964 # Note that $ac_compile itself does not contain backslashes and begins
13965 # with a dollar sign (not a hyphen), so the echo should work correctly.
13966 lt_compile=`echo "$ac_compile" | $SED \
13967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13969 -e 's:$: $lt_compiler_flag:'`
13970 (eval echo "\"\$as_me:13970: $lt_compile\"" >&5)
13971 (eval "$lt_compile" 2>out/conftest.err)
13972 ac_status=$?
13973 cat out/conftest.err >&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13976 then
13977 # The compiler can only warn and ignore the option if not recognized
13978 # So say no if there are warnings
13979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13982 lt_cv_prog_compiler_c_o_F77=yes
13983 fi
13984 fi
13985 chmod u+w . 2>&5
13986 $rm conftest*
13987 # SGI C++ compiler will create directory out/ii_files/ for
13988 # template instantiation
13989 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13990 $rm out/* && rmdir out
13991 cd ..
13992 rmdir conftest
13993 $rm conftest*
13994
13995 fi
13996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13997 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13998
13999
14000 hard_links="nottested"
14001 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14002 # do not overwrite the value of need_locks provided by the user
14003 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14004 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14005 hard_links=yes
14006 $rm conftest*
14007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14008 touch conftest.a
14009 ln conftest.a conftest.b 2>&5 || hard_links=no
14010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14011 { echo "$as_me:$LINENO: result: $hard_links" >&5
14012 echo "${ECHO_T}$hard_links" >&6; }
14013 if test "$hard_links" = no; then
14014 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14015 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14016 need_locks=warn
14017 fi
14018 else
14019 need_locks=no
14020 fi
14021
14022 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14023 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14024
14025 runpath_var=
14026 allow_undefined_flag_F77=
14027 enable_shared_with_static_runtimes_F77=no
14028 archive_cmds_F77=
14029 archive_expsym_cmds_F77=
14030 old_archive_From_new_cmds_F77=
14031 old_archive_from_expsyms_cmds_F77=
14032 export_dynamic_flag_spec_F77=
14033 whole_archive_flag_spec_F77=
14034 thread_safe_flag_spec_F77=
14035 hardcode_libdir_flag_spec_F77=
14036 hardcode_libdir_flag_spec_ld_F77=
14037 hardcode_libdir_separator_F77=
14038 hardcode_direct_F77=no
14039 hardcode_minus_L_F77=no
14040 hardcode_shlibpath_var_F77=unsupported
14041 link_all_deplibs_F77=unknown
14042 hardcode_automatic_F77=no
14043 module_cmds_F77=
14044 module_expsym_cmds_F77=
14045 always_export_symbols_F77=no
14046 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14047 # include_expsyms should be a list of space-separated symbols to be *always*
14048 # included in the symbol list
14049 include_expsyms_F77=
14050 # exclude_expsyms can be an extended regexp of symbols to exclude
14051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14053 # as well as any symbol that contains `d'.
14054 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14056 # platforms (ab)use it in PIC code, but their linkers get confused if
14057 # the symbol is explicitly referenced. Since portable code cannot
14058 # rely on this symbol name, it's probably fine to never include it in
14059 # preloaded symbol tables.
14060 extract_expsyms_cmds=
14061 # Just being paranoid about ensuring that cc_basename is set.
14062 for cc_temp in $compiler""; do
14063 case $cc_temp in
14064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14066 \-*) ;;
14067 *) break;;
14068 esac
14069 done
14070 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14071
14072 case $host_os in
14073 cygwin* | mingw* | pw32*)
14074 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14075 # When not using gcc, we currently assume that we are using
14076 # Microsoft Visual C++.
14077 if test "$GCC" != yes; then
14078 with_gnu_ld=no
14079 fi
14080 ;;
14081 interix*)
14082 # we just hope/assume this is gcc and not c89 (= MSVC++)
14083 with_gnu_ld=yes
14084 ;;
14085 openbsd*)
14086 with_gnu_ld=no
14087 ;;
14088 esac
14089
14090 ld_shlibs_F77=yes
14091 if test "$with_gnu_ld" = yes; then
14092 # If archive_cmds runs LD, not CC, wlarc should be empty
14093 wlarc='${wl}'
14094
14095 # Set some defaults for GNU ld with shared library support. These
14096 # are reset later if shared libraries are not supported. Putting them
14097 # here allows them to be overridden if necessary.
14098 runpath_var=LD_RUN_PATH
14099 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14100 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14101 # ancient GNU ld didn't support --whole-archive et. al.
14102 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14103 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14104 else
14105 whole_archive_flag_spec_F77=
14106 fi
14107 supports_anon_versioning=no
14108 case `$LD -v 2>/dev/null` in
14109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14112 *\ 2.11.*) ;; # other 2.11 versions
14113 *) supports_anon_versioning=yes ;;
14114 esac
14115
14116 # See if GNU ld supports shared libraries.
14117 case $host_os in
14118 aix3* | aix4* | aix5*)
14119 # On AIX/PPC, the GNU linker is very broken
14120 if test "$host_cpu" != ia64; then
14121 ld_shlibs_F77=no
14122 cat <<EOF 1>&2
14123
14124 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14125 *** to be unable to reliably create shared libraries on AIX.
14126 *** Therefore, libtool is disabling shared libraries support. If you
14127 *** really care for shared libraries, you may want to modify your PATH
14128 *** so that a non-GNU linker is found, and then restart.
14129
14130 EOF
14131 fi
14132 ;;
14133
14134 amigaos*)
14135 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)'
14136 hardcode_libdir_flag_spec_F77='-L$libdir'
14137 hardcode_minus_L_F77=yes
14138
14139 # Samuel A. Falvo II <[email protected]> reports
14140 # that the semantics of dynamic libraries on AmigaOS, at least up
14141 # to version 4, is to share data among multiple programs linked
14142 # with the same dynamic library. Since this doesn't match the
14143 # behavior of shared libraries on other platforms, we can't use
14144 # them.
14145 ld_shlibs_F77=no
14146 ;;
14147
14148 beos*)
14149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14150 allow_undefined_flag_F77=unsupported
14151 # Joseph Beckenbach <[email protected]> says some releases of gcc
14152 # support --undefined. This deserves some investigation. FIXME
14153 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 else
14155 ld_shlibs_F77=no
14156 fi
14157 ;;
14158
14159 cygwin* | mingw* | pw32*)
14160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14161 # as there is no search path for DLLs.
14162 hardcode_libdir_flag_spec_F77='-L$libdir'
14163 allow_undefined_flag_F77=unsupported
14164 always_export_symbols_F77=no
14165 enable_shared_with_static_runtimes_F77=yes
14166 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14167
14168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14170 # If the export-symbols file already is a .def file (1st line
14171 # is EXPORTS), use it as is; otherwise, prepend...
14172 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14173 cp $export_symbols $output_objdir/$soname.def;
14174 else
14175 echo EXPORTS > $output_objdir/$soname.def;
14176 cat $export_symbols >> $output_objdir/$soname.def;
14177 fi~
14178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14179 else
14180 ld_shlibs_F77=no
14181 fi
14182 ;;
14183
14184 interix3*)
14185 hardcode_direct_F77=no
14186 hardcode_shlibpath_var_F77=no
14187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 export_dynamic_flag_spec_F77='${wl}-E'
14189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14190 # Instead, shared libraries are loaded at an image base (0x10000000 by
14191 # default) and relocated if they conflict, which is a slow very memory
14192 # consuming and fragmenting process. To avoid this, we pick a random,
14193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14195 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'
14196 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'
14197 ;;
14198
14199 linux*)
14200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14201 tmp_addflag=
14202 case $cc_basename,$host_cpu in
14203 pgcc*) # Portland Group C compiler
14204 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'
14205 tmp_addflag=' $pic_flag'
14206 ;;
14207 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14208 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'
14209 tmp_addflag=' $pic_flag -Mnomain' ;;
14210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14211 tmp_addflag=' -i_dynamic' ;;
14212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14213 tmp_addflag=' -i_dynamic -nofor_main' ;;
14214 ifc* | ifort*) # Intel Fortran compiler
14215 tmp_addflag=' -nofor_main' ;;
14216 esac
14217 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14218
14219 if test $supports_anon_versioning = yes; then
14220 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14222 $echo "local: *; };" >> $output_objdir/$libname.ver~
14223 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14224 fi
14225 else
14226 ld_shlibs_F77=no
14227 fi
14228 ;;
14229
14230 netbsd*)
14231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14232 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14233 wlarc=
14234 else
14235 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14236 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14237 fi
14238 ;;
14239
14240 solaris*)
14241 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14242 ld_shlibs_F77=no
14243 cat <<EOF 1>&2
14244
14245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14246 *** create shared libraries on Solaris systems. Therefore, libtool
14247 *** is disabling shared libraries support. We urge you to upgrade GNU
14248 *** binutils to release 2.9.1 or newer. Another option is to modify
14249 *** your PATH or compiler configuration so that the native linker is
14250 *** used, and then restart.
14251
14252 EOF
14253 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14256 else
14257 ld_shlibs_F77=no
14258 fi
14259 ;;
14260
14261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14262 case `$LD -v 2>&1` in
14263 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14264 ld_shlibs_F77=no
14265 cat <<_LT_EOF 1>&2
14266
14267 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14268 *** reliably create shared libraries on SCO systems. Therefore, libtool
14269 *** is disabling shared libraries support. We urge you to upgrade GNU
14270 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14271 *** your PATH or compiler configuration so that the native linker is
14272 *** used, and then restart.
14273
14274 _LT_EOF
14275 ;;
14276 *)
14277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14278 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14279 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14280 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14281 else
14282 ld_shlibs_F77=no
14283 fi
14284 ;;
14285 esac
14286 ;;
14287
14288 sunos4*)
14289 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14290 wlarc=
14291 hardcode_direct_F77=yes
14292 hardcode_shlibpath_var_F77=no
14293 ;;
14294
14295 *)
14296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14299 else
14300 ld_shlibs_F77=no
14301 fi
14302 ;;
14303 esac
14304
14305 if test "$ld_shlibs_F77" = no; then
14306 runpath_var=
14307 hardcode_libdir_flag_spec_F77=
14308 export_dynamic_flag_spec_F77=
14309 whole_archive_flag_spec_F77=
14310 fi
14311 else
14312 # PORTME fill in a description of your system's linker (not GNU ld)
14313 case $host_os in
14314 aix3*)
14315 allow_undefined_flag_F77=unsupported
14316 always_export_symbols_F77=yes
14317 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'
14318 # Note: this linker hardcodes the directories in LIBPATH if there
14319 # are no directories specified by -L.
14320 hardcode_minus_L_F77=yes
14321 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14322 # Neither direct hardcoding nor static linking is supported with a
14323 # broken collect2.
14324 hardcode_direct_F77=unsupported
14325 fi
14326 ;;
14327
14328 aix4* | aix5*)
14329 if test "$host_cpu" = ia64; then
14330 # On IA64, the linker does run time linking by default, so we don't
14331 # have to do anything special.
14332 aix_use_runtimelinking=no
14333 exp_sym_flag='-Bexport'
14334 no_entry_flag=""
14335 else
14336 # If we're using GNU nm, then we don't want the "-C" option.
14337 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14338 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14339 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'
14340 else
14341 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'
14342 fi
14343 aix_use_runtimelinking=no
14344
14345 # Test if we are trying to use run time linking or normal
14346 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14347 # need to do runtime linking.
14348 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14349 for ld_flag in $LDFLAGS; do
14350 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14351 aix_use_runtimelinking=yes
14352 break
14353 fi
14354 done
14355 ;;
14356 esac
14357
14358 exp_sym_flag='-bexport'
14359 no_entry_flag='-bnoentry'
14360 fi
14361
14362 # When large executables or shared objects are built, AIX ld can
14363 # have problems creating the table of contents. If linking a library
14364 # or program results in "error TOC overflow" add -mminimal-toc to
14365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14367
14368 archive_cmds_F77=''
14369 hardcode_direct_F77=yes
14370 hardcode_libdir_separator_F77=':'
14371 link_all_deplibs_F77=yes
14372
14373 if test "$GCC" = yes; then
14374 case $host_os in aix4.[012]|aix4.[012].*)
14375 # We only want to do this on AIX 4.2 and lower, the check
14376 # below for broken collect2 doesn't work under 4.3+
14377 collect2name=`${CC} -print-prog-name=collect2`
14378 if test -f "$collect2name" && \
14379 strings "$collect2name" | grep resolve_lib_name >/dev/null
14380 then
14381 # We have reworked collect2
14382 hardcode_direct_F77=yes
14383 else
14384 # We have old collect2
14385 hardcode_direct_F77=unsupported
14386 # It fails to find uninstalled libraries when the uninstalled
14387 # path is not listed in the libpath. Setting hardcode_minus_L
14388 # to unsupported forces relinking
14389 hardcode_minus_L_F77=yes
14390 hardcode_libdir_flag_spec_F77='-L$libdir'
14391 hardcode_libdir_separator_F77=
14392 fi
14393 ;;
14394 esac
14395 shared_flag='-shared'
14396 if test "$aix_use_runtimelinking" = yes; then
14397 shared_flag="$shared_flag "'${wl}-G'
14398 fi
14399 else
14400 # not using gcc
14401 if test "$host_cpu" = ia64; then
14402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14403 # chokes on -Wl,-G. The following line is correct:
14404 shared_flag='-G'
14405 else
14406 if test "$aix_use_runtimelinking" = yes; then
14407 shared_flag='${wl}-G'
14408 else
14409 shared_flag='${wl}-bM:SRE'
14410 fi
14411 fi
14412 fi
14413
14414 # It seems that -bexpall does not export symbols beginning with
14415 # underscore (_), so it is better to generate a list of symbols to export.
14416 always_export_symbols_F77=yes
14417 if test "$aix_use_runtimelinking" = yes; then
14418 # Warning - without using the other runtime loading flags (-brtl),
14419 # -berok will link without error, but may produce a broken library.
14420 allow_undefined_flag_F77='-berok'
14421 # Determine the default libpath from the value encoded in an empty executable.
14422 cat >conftest.$ac_ext <<_ACEOF
14423 program main
14424
14425 end
14426 _ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (ac_try="$ac_link"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_link") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_f77_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest$ac_exeext &&
14444 $as_test_x conftest$ac_exeext; then
14445
14446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14447 }'`
14448 # Check for a 64-bit object if we didn't find anything.
14449 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14450 }'`; fi
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455
14456 fi
14457
14458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14459 conftest$ac_exeext conftest.$ac_ext
14460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14461
14462 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14463 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"
14464 else
14465 if test "$host_cpu" = ia64; then
14466 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14467 allow_undefined_flag_F77="-z nodefs"
14468 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"
14469 else
14470 # Determine the default libpath from the value encoded in an empty executable.
14471 cat >conftest.$ac_ext <<_ACEOF
14472 program main
14473
14474 end
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (ac_try="$ac_link"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_link") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && {
14490 test -z "$ac_f77_werror_flag" ||
14491 test ! -s conftest.err
14492 } && test -s conftest$ac_exeext &&
14493 $as_test_x conftest$ac_exeext; then
14494
14495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14496 }'`
14497 # Check for a 64-bit object if we didn't find anything.
14498 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14499 }'`; fi
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14508 conftest$ac_exeext conftest.$ac_ext
14509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14510
14511 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14512 # Warning - without using the other run time loading flags,
14513 # -berok will link without error, but may produce a broken library.
14514 no_undefined_flag_F77=' ${wl}-bernotok'
14515 allow_undefined_flag_F77=' ${wl}-berok'
14516 # Exported symbols can be pulled into shared objects from archives
14517 whole_archive_flag_spec_F77='$convenience'
14518 archive_cmds_need_lc_F77=yes
14519 # This is similar to how AIX traditionally builds its shared libraries.
14520 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'
14521 fi
14522 fi
14523 ;;
14524
14525 amigaos*)
14526 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)'
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_minus_L_F77=yes
14529 # see comment about different semantics on the GNU ld section
14530 ld_shlibs_F77=no
14531 ;;
14532
14533 bsdi[45]*)
14534 export_dynamic_flag_spec_F77=-rdynamic
14535 ;;
14536
14537 cygwin* | mingw* | pw32*)
14538 # When not using gcc, we currently assume that we are using
14539 # Microsoft Visual C++.
14540 # hardcode_libdir_flag_spec is actually meaningless, as there is
14541 # no search path for DLLs.
14542 hardcode_libdir_flag_spec_F77=' '
14543 allow_undefined_flag_F77=unsupported
14544 # Tell ltmain to make .lib files, not .a files.
14545 libext=lib
14546 # Tell ltmain to make .dll files, not .so files.
14547 shrext_cmds=".dll"
14548 # FIXME: Setting linknames here is a bad hack.
14549 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14550 # The linker will automatically build a .lib file if we build a DLL.
14551 old_archive_From_new_cmds_F77='true'
14552 # FIXME: Should let the user specify the lib program.
14553 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14554 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14555 enable_shared_with_static_runtimes_F77=yes
14556 ;;
14557
14558 darwin* | rhapsody*)
14559 case $host_os in
14560 rhapsody* | darwin1.[012])
14561 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14562 ;;
14563 *) # Darwin 1.3 on
14564 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14565 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14566 else
14567 case ${MACOSX_DEPLOYMENT_TARGET} in
14568 10.[012])
14569 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14570 ;;
14571 10.*)
14572 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14573 ;;
14574 esac
14575 fi
14576 ;;
14577 esac
14578 archive_cmds_need_lc_F77=no
14579 hardcode_direct_F77=no
14580 hardcode_automatic_F77=yes
14581 hardcode_shlibpath_var_F77=unsupported
14582 whole_archive_flag_spec_F77=''
14583 link_all_deplibs_F77=yes
14584 if test "$GCC" = yes ; then
14585 output_verbose_link_cmd='echo'
14586 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14589 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}'
14590 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}'
14591 else
14592 case $cc_basename in
14593 xlc*)
14594 output_verbose_link_cmd='echo'
14595 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14596 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14597 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14598 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14599 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}'
14600 ;;
14601 *)
14602 ld_shlibs_F77=no
14603 ;;
14604 esac
14605 fi
14606 ;;
14607
14608 dgux*)
14609 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14610 hardcode_libdir_flag_spec_F77='-L$libdir'
14611 hardcode_shlibpath_var_F77=no
14612 ;;
14613
14614 freebsd1*)
14615 ld_shlibs_F77=no
14616 ;;
14617
14618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14619 # support. Future versions do this automatically, but an explicit c++rt0.o
14620 # does not break anything, and helps significantly (at the cost of a little
14621 # extra space).
14622 freebsd2.2*)
14623 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14624 hardcode_libdir_flag_spec_F77='-R$libdir'
14625 hardcode_direct_F77=yes
14626 hardcode_shlibpath_var_F77=no
14627 ;;
14628
14629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14630 freebsd2*)
14631 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14632 hardcode_direct_F77=yes
14633 hardcode_minus_L_F77=yes
14634 hardcode_shlibpath_var_F77=no
14635 ;;
14636
14637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14638 freebsd* | kfreebsd*-gnu | dragonfly*)
14639 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14640 hardcode_libdir_flag_spec_F77='-R$libdir'
14641 hardcode_direct_F77=yes
14642 hardcode_shlibpath_var_F77=no
14643 ;;
14644
14645 hpux9*)
14646 if test "$GCC" = yes; then
14647 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'
14648 else
14649 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'
14650 fi
14651 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14652 hardcode_libdir_separator_F77=:
14653 hardcode_direct_F77=yes
14654
14655 # hardcode_minus_L: Not really in the search PATH,
14656 # but as the default location of the library.
14657 hardcode_minus_L_F77=yes
14658 export_dynamic_flag_spec_F77='${wl}-E'
14659 ;;
14660
14661 hpux10*)
14662 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14663 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14664 else
14665 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14666 fi
14667 if test "$with_gnu_ld" = no; then
14668 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14669 hardcode_libdir_separator_F77=:
14670
14671 hardcode_direct_F77=yes
14672 export_dynamic_flag_spec_F77='${wl}-E'
14673
14674 # hardcode_minus_L: Not really in the search PATH,
14675 # but as the default location of the library.
14676 hardcode_minus_L_F77=yes
14677 fi
14678 ;;
14679
14680 hpux11*)
14681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14682 case $host_cpu in
14683 hppa*64*)
14684 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 ;;
14686 ia64*)
14687 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14688 ;;
14689 *)
14690 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14691 ;;
14692 esac
14693 else
14694 case $host_cpu in
14695 hppa*64*)
14696 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14697 ;;
14698 ia64*)
14699 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14700 ;;
14701 *)
14702 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14703 ;;
14704 esac
14705 fi
14706 if test "$with_gnu_ld" = no; then
14707 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14708 hardcode_libdir_separator_F77=:
14709
14710 case $host_cpu in
14711 hppa*64*|ia64*)
14712 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14713 hardcode_direct_F77=no
14714 hardcode_shlibpath_var_F77=no
14715 ;;
14716 *)
14717 hardcode_direct_F77=yes
14718 export_dynamic_flag_spec_F77='${wl}-E'
14719
14720 # hardcode_minus_L: Not really in the search PATH,
14721 # but as the default location of the library.
14722 hardcode_minus_L_F77=yes
14723 ;;
14724 esac
14725 fi
14726 ;;
14727
14728 irix5* | irix6* | nonstopux*)
14729 if test "$GCC" = yes; then
14730 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'
14731 else
14732 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'
14733 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14734 fi
14735 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14736 hardcode_libdir_separator_F77=:
14737 link_all_deplibs_F77=yes
14738 ;;
14739
14740 netbsd*)
14741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14743 else
14744 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14745 fi
14746 hardcode_libdir_flag_spec_F77='-R$libdir'
14747 hardcode_direct_F77=yes
14748 hardcode_shlibpath_var_F77=no
14749 ;;
14750
14751 newsos6)
14752 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_direct_F77=yes
14754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14755 hardcode_libdir_separator_F77=:
14756 hardcode_shlibpath_var_F77=no
14757 ;;
14758
14759 openbsd*)
14760 hardcode_direct_F77=yes
14761 hardcode_shlibpath_var_F77=no
14762 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14763 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14765 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14766 export_dynamic_flag_spec_F77='${wl}-E'
14767 else
14768 case $host_os in
14769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14770 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14771 hardcode_libdir_flag_spec_F77='-R$libdir'
14772 ;;
14773 *)
14774 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14776 ;;
14777 esac
14778 fi
14779 ;;
14780
14781 os2*)
14782 hardcode_libdir_flag_spec_F77='-L$libdir'
14783 hardcode_minus_L_F77=yes
14784 allow_undefined_flag_F77=unsupported
14785 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'
14786 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14787 ;;
14788
14789 osf3*)
14790 if test "$GCC" = yes; then
14791 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14792 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'
14793 else
14794 allow_undefined_flag_F77=' -expect_unresolved \*'
14795 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'
14796 fi
14797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14798 hardcode_libdir_separator_F77=:
14799 ;;
14800
14801 osf4* | osf5*) # as osf3* with the addition of -msym flag
14802 if test "$GCC" = yes; then
14803 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14804 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'
14805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14806 else
14807 allow_undefined_flag_F77=' -expect_unresolved \*'
14808 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'
14809 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~
14810 $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'
14811
14812 # Both c and cxx compiler support -rpath directly
14813 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14814 fi
14815 hardcode_libdir_separator_F77=:
14816 ;;
14817
14818 solaris*)
14819 no_undefined_flag_F77=' -z text'
14820 if test "$GCC" = yes; then
14821 wlarc='${wl}'
14822 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14825 else
14826 wlarc=''
14827 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14830 fi
14831 hardcode_libdir_flag_spec_F77='-R$libdir'
14832 hardcode_shlibpath_var_F77=no
14833 case $host_os in
14834 solaris2.[0-5] | solaris2.[0-5].*) ;;
14835 *)
14836 # The compiler driver will combine linker options so we
14837 # cannot just pass the convience library names through
14838 # without $wl, iff we do not link with $LD.
14839 # Luckily, gcc supports the same syntax we need for Sun Studio.
14840 # Supported since Solaris 2.6 (maybe 2.5.1?)
14841 case $wlarc in
14842 '')
14843 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14844 *)
14845 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14846 esac ;;
14847 esac
14848 link_all_deplibs_F77=yes
14849 ;;
14850
14851 sunos4*)
14852 if test "x$host_vendor" = xsequent; then
14853 # Use $CC to link under sequent, because it throws in some extra .o
14854 # files that make .init and .fini sections work.
14855 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14856 else
14857 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14858 fi
14859 hardcode_libdir_flag_spec_F77='-L$libdir'
14860 hardcode_direct_F77=yes
14861 hardcode_minus_L_F77=yes
14862 hardcode_shlibpath_var_F77=no
14863 ;;
14864
14865 sysv4)
14866 case $host_vendor in
14867 sni)
14868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14869 hardcode_direct_F77=yes # is this really true???
14870 ;;
14871 siemens)
14872 ## LD is ld it makes a PLAMLIB
14873 ## CC just makes a GrossModule.
14874 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14875 reload_cmds_F77='$CC -r -o $output$reload_objs'
14876 hardcode_direct_F77=no
14877 ;;
14878 motorola)
14879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14880 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14881 ;;
14882 esac
14883 runpath_var='LD_RUN_PATH'
14884 hardcode_shlibpath_var_F77=no
14885 ;;
14886
14887 sysv4.3*)
14888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_shlibpath_var_F77=no
14890 export_dynamic_flag_spec_F77='-Bexport'
14891 ;;
14892
14893 sysv4*MP*)
14894 if test -d /usr/nec; then
14895 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14896 hardcode_shlibpath_var_F77=no
14897 runpath_var=LD_RUN_PATH
14898 hardcode_runpath_var=yes
14899 ld_shlibs_F77=yes
14900 fi
14901 ;;
14902
14903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14904 no_undefined_flag_F77='${wl}-z,text'
14905 archive_cmds_need_lc_F77=no
14906 hardcode_shlibpath_var_F77=no
14907 runpath_var='LD_RUN_PATH'
14908
14909 if test "$GCC" = yes; then
14910 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14912 else
14913 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915 fi
14916 ;;
14917
14918 sysv5* | sco3.2v5* | sco5v6*)
14919 # Note: We can NOT use -z defs as we might desire, because we do not
14920 # link with -lc, and that would cause any symbols used from libc to
14921 # always be unresolved, which means just about no library would
14922 # ever link correctly. If we're not using GNU ld we use -z text
14923 # though, which does catch some bad symbols but isn't as heavy-handed
14924 # as -z defs.
14925 no_undefined_flag_F77='${wl}-z,text'
14926 allow_undefined_flag_F77='${wl}-z,nodefs'
14927 archive_cmds_need_lc_F77=no
14928 hardcode_shlibpath_var_F77=no
14929 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14930 hardcode_libdir_separator_F77=':'
14931 link_all_deplibs_F77=yes
14932 export_dynamic_flag_spec_F77='${wl}-Bexport'
14933 runpath_var='LD_RUN_PATH'
14934
14935 if test "$GCC" = yes; then
14936 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 else
14939 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941 fi
14942 ;;
14943
14944 uts4*)
14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14946 hardcode_libdir_flag_spec_F77='-L$libdir'
14947 hardcode_shlibpath_var_F77=no
14948 ;;
14949
14950 *)
14951 ld_shlibs_F77=no
14952 ;;
14953 esac
14954 fi
14955
14956 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14957 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14958 test "$ld_shlibs_F77" = no && can_build_shared=no
14959
14960 #
14961 # Do we need to explicitly link libc?
14962 #
14963 case "x$archive_cmds_need_lc_F77" in
14964 x|xyes)
14965 # Assume -lc should be added
14966 archive_cmds_need_lc_F77=yes
14967
14968 if test "$enable_shared" = yes && test "$GCC" = yes; then
14969 case $archive_cmds_F77 in
14970 *'~'*)
14971 # FIXME: we may have to deal with multi-command sequences.
14972 ;;
14973 '$CC '*)
14974 # Test whether the compiler implicitly links with -lc since on some
14975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14976 # to ld, don't add -lc before -lgcc.
14977 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14979 $rm conftest*
14980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14981
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } 2>conftest.err; then
14987 soname=conftest
14988 lib=conftest
14989 libobjs=conftest.$ac_objext
14990 deplibs=
14991 wl=$lt_prog_compiler_wl_F77
14992 pic_flag=$lt_prog_compiler_pic_F77
14993 compiler_flags=-v
14994 linker_flags=-v
14995 verstring=
14996 output_objdir=.
14997 libname=conftest
14998 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14999 allow_undefined_flag_F77=
15000 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15001 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }
15005 then
15006 archive_cmds_need_lc_F77=no
15007 else
15008 archive_cmds_need_lc_F77=yes
15009 fi
15010 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15011 else
15012 cat conftest.err 1>&5
15013 fi
15014 $rm conftest*
15015 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15016 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15017 ;;
15018 esac
15019 fi
15020 ;;
15021 esac
15022
15023 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15024 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15025 library_names_spec=
15026 libname_spec='lib$name'
15027 soname_spec=
15028 shrext_cmds=".so"
15029 postinstall_cmds=
15030 postuninstall_cmds=
15031 finish_cmds=
15032 finish_eval=
15033 shlibpath_var=
15034 shlibpath_overrides_runpath=unknown
15035 version_type=none
15036 dynamic_linker="$host_os ld.so"
15037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15038 if test "$GCC" = yes; then
15039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15040 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15041 # if the path contains ";" then we assume it to be the separator
15042 # otherwise default to the standard path separator (i.e. ":") - it is
15043 # assumed that no part of a normal pathname contains ";" but that should
15044 # okay in the real world where ";" in dirpaths is itself problematic.
15045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15046 else
15047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15048 fi
15049 else
15050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15051 fi
15052 need_lib_prefix=unknown
15053 hardcode_into_libs=no
15054
15055 # when you set need_version to no, make sure it does not cause -set_version
15056 # flags to be left without arguments
15057 need_version=unknown
15058
15059 case $host_os in
15060 aix3*)
15061 version_type=linux
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15063 shlibpath_var=LIBPATH
15064
15065 # AIX 3 has no versioning support, so we append a major version to the name.
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 ;;
15068
15069 aix4* | aix5*)
15070 version_type=linux
15071 need_lib_prefix=no
15072 need_version=no
15073 hardcode_into_libs=yes
15074 if test "$host_cpu" = ia64; then
15075 # AIX 5 supports IA64
15076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 else
15079 # With GCC up to 2.95.x, collect2 would create an import file
15080 # for dependence libraries. The import file would start with
15081 # the line `#! .'. This would cause the generated library to
15082 # depend on `.', always an invalid library. This was fixed in
15083 # development snapshots of GCC prior to 3.0.
15084 case $host_os in
15085 aix4 | aix4.[01] | aix4.[01].*)
15086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15087 echo ' yes '
15088 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15089 :
15090 else
15091 can_build_shared=no
15092 fi
15093 ;;
15094 esac
15095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15096 # soname into executable. Probably we can add versioning support to
15097 # collect2, so additional links can be useful in future.
15098 if test "$aix_use_runtimelinking" = yes; then
15099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15100 # instead of lib<name>.a to let people know that these are not
15101 # typical AIX shared libraries.
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 else
15104 # We preserve .a as extension for shared libraries through AIX4.2
15105 # and later when we are not doing run time linking.
15106 library_names_spec='${libname}${release}.a $libname.a'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 fi
15109 shlibpath_var=LIBPATH
15110 fi
15111 ;;
15112
15113 amigaos*)
15114 library_names_spec='$libname.ixlibrary $libname.a'
15115 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15116 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'
15117 ;;
15118
15119 beos*)
15120 library_names_spec='${libname}${shared_ext}'
15121 dynamic_linker="$host_os ld.so"
15122 shlibpath_var=LIBRARY_PATH
15123 ;;
15124
15125 bsdi[45]*)
15126 version_type=linux
15127 need_version=no
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15133 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15134 # the default ld.so.conf also contains /usr/contrib/lib and
15135 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15136 # libtool to hard-code these into programs
15137 ;;
15138
15139 cygwin* | mingw* | pw32*)
15140 version_type=windows
15141 shrext_cmds=".dll"
15142 need_version=no
15143 need_lib_prefix=no
15144
15145 case $GCC,$host_os in
15146 yes,cygwin* | yes,mingw* | yes,pw32*)
15147 library_names_spec='$libname.dll.a'
15148 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15149 postinstall_cmds='base_file=`basename \${file}`~
15150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15151 dldir=$destdir/`dirname \$dlpath`~
15152 test -d \$dldir || mkdir -p \$dldir~
15153 $install_prog $dir/$dlname \$dldir/$dlname~
15154 chmod a+x \$dldir/$dlname'
15155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15156 dlpath=$dir/\$dldll~
15157 $rm \$dlpath'
15158 shlibpath_overrides_runpath=yes
15159
15160 case $host_os in
15161 cygwin*)
15162 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15163 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15164 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15165 ;;
15166 mingw*)
15167 # MinGW DLLs use traditional 'lib' prefix
15168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15170 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15171 # It is most probably a Windows format PATH printed by
15172 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15173 # path with ; separators, and with drive letters. We can handle the
15174 # drive letters (cygwin fileutils understands them), so leave them,
15175 # especially as we might pass files found there to a mingw objdump,
15176 # which wouldn't understand a cygwinified path. Ahh.
15177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15178 else
15179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15180 fi
15181 ;;
15182 pw32*)
15183 # pw32 DLLs use 'pw' prefix rather than 'lib'
15184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15185 ;;
15186 esac
15187 ;;
15188
15189 *)
15190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15191 ;;
15192 esac
15193 dynamic_linker='Win32 ld.exe'
15194 # FIXME: first we should search . and the directory the executable is in
15195 shlibpath_var=PATH
15196 ;;
15197
15198 darwin* | rhapsody*)
15199 dynamic_linker="$host_os dyld"
15200 version_type=darwin
15201 need_lib_prefix=no
15202 need_version=no
15203 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15204 soname_spec='${libname}${release}${major}$shared_ext'
15205 shlibpath_overrides_runpath=yes
15206 shlibpath_var=DYLD_LIBRARY_PATH
15207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15208 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15209 if test "$GCC" = yes; then
15210 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15211 else
15212 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15213 fi
15214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15215 ;;
15216
15217 dgux*)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 ;;
15225
15226 freebsd1*)
15227 dynamic_linker=no
15228 ;;
15229
15230 kfreebsd*-gnu)
15231 version_type=linux
15232 need_lib_prefix=no
15233 need_version=no
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LD_LIBRARY_PATH
15237 shlibpath_overrides_runpath=no
15238 hardcode_into_libs=yes
15239 dynamic_linker='GNU ld.so'
15240 ;;
15241
15242 freebsd* | dragonfly*)
15243 # DragonFly does not have aout. When/if they implement a new
15244 # versioning mechanism, adjust this.
15245 if test -x /usr/bin/objformat; then
15246 objformat=`/usr/bin/objformat`
15247 else
15248 case $host_os in
15249 freebsd[123]*) objformat=aout ;;
15250 *) objformat=elf ;;
15251 esac
15252 fi
15253 version_type=freebsd-$objformat
15254 case $version_type in
15255 freebsd-elf*)
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15257 need_version=no
15258 need_lib_prefix=no
15259 ;;
15260 freebsd-*)
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15262 need_version=yes
15263 ;;
15264 esac
15265 shlibpath_var=LD_LIBRARY_PATH
15266 case $host_os in
15267 freebsd2*)
15268 shlibpath_overrides_runpath=yes
15269 ;;
15270 freebsd3.[01]* | freebsdelf3.[01]*)
15271 shlibpath_overrides_runpath=yes
15272 hardcode_into_libs=yes
15273 ;;
15274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15276 shlibpath_overrides_runpath=no
15277 hardcode_into_libs=yes
15278 ;;
15279 freebsd*) # from 4.6 on
15280 shlibpath_overrides_runpath=yes
15281 hardcode_into_libs=yes
15282 ;;
15283 esac
15284 ;;
15285
15286 gnu*)
15287 version_type=linux
15288 need_lib_prefix=no
15289 need_version=no
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15291 soname_spec='${libname}${release}${shared_ext}$major'
15292 shlibpath_var=LD_LIBRARY_PATH
15293 hardcode_into_libs=yes
15294 ;;
15295
15296 hpux9* | hpux10* | hpux11*)
15297 # Give a soname corresponding to the major version so that dld.sl refuses to
15298 # link against other versions.
15299 version_type=sunos
15300 need_lib_prefix=no
15301 need_version=no
15302 case $host_cpu in
15303 ia64*)
15304 shrext_cmds='.so'
15305 hardcode_into_libs=yes
15306 dynamic_linker="$host_os dld.so"
15307 shlibpath_var=LD_LIBRARY_PATH
15308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 if test "X$HPUX_IA64_MODE" = X32; then
15312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15313 else
15314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15315 fi
15316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15317 ;;
15318 hppa*64*)
15319 shrext_cmds='.sl'
15320 hardcode_into_libs=yes
15321 dynamic_linker="$host_os dld.sl"
15322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15328 ;;
15329 *)
15330 shrext_cmds='.sl'
15331 dynamic_linker="$host_os dld.sl"
15332 shlibpath_var=SHLIB_PATH
15333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 ;;
15337 esac
15338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15339 postinstall_cmds='chmod 555 $lib'
15340 ;;
15341
15342 interix3*)
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=no
15351 hardcode_into_libs=yes
15352 ;;
15353
15354 irix5* | irix6* | nonstopux*)
15355 case $host_os in
15356 nonstopux*) version_type=nonstopux ;;
15357 *)
15358 if test "$lt_cv_prog_gnu_ld" = yes; then
15359 version_type=linux
15360 else
15361 version_type=irix
15362 fi ;;
15363 esac
15364 need_lib_prefix=no
15365 need_version=no
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15368 case $host_os in
15369 irix5* | nonstopux*)
15370 libsuff= shlibsuff=
15371 ;;
15372 *)
15373 case $LD in # libtool.m4 will add one of these switches to LD
15374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15375 libsuff= shlibsuff= libmagic=32-bit;;
15376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15377 libsuff=32 shlibsuff=N32 libmagic=N32;;
15378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15380 *) libsuff= shlibsuff= libmagic=never-match;;
15381 esac
15382 ;;
15383 esac
15384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15385 shlibpath_overrides_runpath=no
15386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15388 hardcode_into_libs=yes
15389 ;;
15390
15391 # No shared lib support for Linux oldld, aout, or coff.
15392 linux*oldld* | linux*aout* | linux*coff*)
15393 dynamic_linker=no
15394 ;;
15395
15396 # This must be Linux ELF.
15397 linux*)
15398 version_type=linux
15399 need_lib_prefix=no
15400 need_version=no
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15406 # This implies no fast_install, which is unacceptable.
15407 # Some rework will be needed to allow for fast_install
15408 # before this can be enabled.
15409 hardcode_into_libs=yes
15410
15411 # find out which ABI we are using
15412 libsuff=
15413 case "$host_cpu" in
15414 x86_64*|s390x*|powerpc64*)
15415 echo '#line 15415 "configure"' > conftest.$ac_ext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; then
15421 case `/usr/bin/file conftest.$ac_objext` in
15422 *64-bit*)
15423 libsuff=64
15424 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15425 ;;
15426 esac
15427 fi
15428 rm -rf conftest*
15429 ;;
15430 esac
15431
15432 # Append ld.so.conf contents to the search path
15433 if test -f /etc/ld.so.conf; then
15434 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15435 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15436 fi
15437
15438 # We used to test for /lib/ld.so.1 and disable shared libraries on
15439 # powerpc, because MkLinux only supported shared libraries with the
15440 # GNU dynamic linker. Since this was broken with cross compilers,
15441 # most powerpc-linux boxes support dynamic linking these days and
15442 # people can always --disable-shared, the test was removed, and we
15443 # assume the GNU/Linux dynamic linker is in use.
15444 dynamic_linker='GNU/Linux ld.so'
15445 ;;
15446
15447 knetbsd*-gnu)
15448 version_type=linux
15449 need_lib_prefix=no
15450 need_version=no
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=no
15455 hardcode_into_libs=yes
15456 dynamic_linker='GNU ld.so'
15457 ;;
15458
15459 netbsd*)
15460 version_type=sunos
15461 need_lib_prefix=no
15462 need_version=no
15463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15466 dynamic_linker='NetBSD (a.out) ld.so'
15467 else
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 dynamic_linker='NetBSD ld.elf_so'
15471 fi
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=yes
15474 hardcode_into_libs=yes
15475 ;;
15476
15477 newsos6)
15478 version_type=linux
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=yes
15482 ;;
15483
15484 nto-qnx*)
15485 version_type=linux
15486 need_lib_prefix=no
15487 need_version=no
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes
15492 ;;
15493
15494 openbsd*)
15495 version_type=sunos
15496 sys_lib_dlsearch_path_spec="/usr/lib"
15497 need_lib_prefix=no
15498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15499 case $host_os in
15500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15501 *) need_version=no ;;
15502 esac
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15507 case $host_os in
15508 openbsd2.[89] | openbsd2.[89].*)
15509 shlibpath_overrides_runpath=no
15510 ;;
15511 *)
15512 shlibpath_overrides_runpath=yes
15513 ;;
15514 esac
15515 else
15516 shlibpath_overrides_runpath=yes
15517 fi
15518 ;;
15519
15520 os2*)
15521 libname_spec='$name'
15522 shrext_cmds=".dll"
15523 need_lib_prefix=no
15524 library_names_spec='$libname${shared_ext} $libname.a'
15525 dynamic_linker='OS/2 ld.exe'
15526 shlibpath_var=LIBPATH
15527 ;;
15528
15529 osf3* | osf4* | osf5*)
15530 version_type=osf
15531 need_lib_prefix=no
15532 need_version=no
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15538 ;;
15539
15540 solaris*)
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=yes
15548 hardcode_into_libs=yes
15549 # ldd complains unless libraries are executable
15550 postinstall_cmds='chmod +x $lib'
15551 ;;
15552
15553 sunos4*)
15554 version_type=sunos
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 if test "$with_gnu_ld" = yes; then
15560 need_lib_prefix=no
15561 fi
15562 need_version=yes
15563 ;;
15564
15565 sysv4 | sysv4.3*)
15566 version_type=linux
15567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 case $host_vendor in
15571 sni)
15572 shlibpath_overrides_runpath=no
15573 need_lib_prefix=no
15574 export_dynamic_flag_spec='${wl}-Blargedynsym'
15575 runpath_var=LD_RUN_PATH
15576 ;;
15577 siemens)
15578 need_lib_prefix=no
15579 ;;
15580 motorola)
15581 need_lib_prefix=no
15582 need_version=no
15583 shlibpath_overrides_runpath=no
15584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15585 ;;
15586 esac
15587 ;;
15588
15589 sysv4*MP*)
15590 if test -d /usr/nec ;then
15591 version_type=linux
15592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15593 soname_spec='$libname${shared_ext}.$major'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 fi
15596 ;;
15597
15598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15599 version_type=freebsd-elf
15600 need_lib_prefix=no
15601 need_version=no
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 hardcode_into_libs=yes
15606 if test "$with_gnu_ld" = yes; then
15607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15608 shlibpath_overrides_runpath=no
15609 else
15610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15611 shlibpath_overrides_runpath=yes
15612 case $host_os in
15613 sco3.2v5*)
15614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15615 ;;
15616 esac
15617 fi
15618 sys_lib_dlsearch_path_spec='/usr/lib'
15619 ;;
15620
15621 uts4*)
15622 version_type=linux
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 ;;
15627
15628 *)
15629 dynamic_linker=no
15630 ;;
15631 esac
15632 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15633 echo "${ECHO_T}$dynamic_linker" >&6; }
15634 test "$dynamic_linker" = no && can_build_shared=no
15635
15636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15637 if test "$GCC" = yes; then
15638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15639 fi
15640
15641 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15642 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15643 hardcode_action_F77=
15644 if test -n "$hardcode_libdir_flag_spec_F77" || \
15645 test -n "$runpath_var_F77" || \
15646 test "X$hardcode_automatic_F77" = "Xyes" ; then
15647
15648 # We can hardcode non-existant directories.
15649 if test "$hardcode_direct_F77" != no &&
15650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15651 # have to relink, otherwise we might link with an installed library
15652 # when we should be linking with a yet-to-be-installed one
15653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15654 test "$hardcode_minus_L_F77" != no; then
15655 # Linking always hardcodes the temporary library directory.
15656 hardcode_action_F77=relink
15657 else
15658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15659 hardcode_action_F77=immediate
15660 fi
15661 else
15662 # We cannot hardcode anything, or else we can only hardcode existing
15663 # directories.
15664 hardcode_action_F77=unsupported
15665 fi
15666 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15667 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15668
15669 if test "$hardcode_action_F77" = relink; then
15670 # Fast installation is not supported
15671 enable_fast_install=no
15672 elif test "$shlibpath_overrides_runpath" = yes ||
15673 test "$enable_shared" = no; then
15674 # Fast installation is not necessary
15675 enable_fast_install=needless
15676 fi
15677
15678
15679 # The else clause should only fire when bootstrapping the
15680 # libtool distribution, otherwise you forgot to ship ltmain.sh
15681 # with your package, and you will get complaints that there are
15682 # no rules to generate ltmain.sh.
15683 if test -f "$ltmain"; then
15684 # See if we are running on zsh, and set the options which allow our commands through
15685 # without removal of \ escapes.
15686 if test -n "${ZSH_VERSION+set}" ; then
15687 setopt NO_GLOB_SUBST
15688 fi
15689 # Now quote all the things that may contain metacharacters while being
15690 # careful not to overquote the AC_SUBSTed values. We take copies of the
15691 # variables and quote the copies for generation of the libtool script.
15692 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15693 SED SHELL STRIP \
15694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15696 deplibs_check_method reload_flag reload_cmds need_locks \
15697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15698 lt_cv_sys_global_symbol_to_c_name_address \
15699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15700 old_postinstall_cmds old_postuninstall_cmds \
15701 compiler_F77 \
15702 CC_F77 \
15703 LD_F77 \
15704 lt_prog_compiler_wl_F77 \
15705 lt_prog_compiler_pic_F77 \
15706 lt_prog_compiler_static_F77 \
15707 lt_prog_compiler_no_builtin_flag_F77 \
15708 export_dynamic_flag_spec_F77 \
15709 thread_safe_flag_spec_F77 \
15710 whole_archive_flag_spec_F77 \
15711 enable_shared_with_static_runtimes_F77 \
15712 old_archive_cmds_F77 \
15713 old_archive_from_new_cmds_F77 \
15714 predep_objects_F77 \
15715 postdep_objects_F77 \
15716 predeps_F77 \
15717 postdeps_F77 \
15718 compiler_lib_search_path_F77 \
15719 archive_cmds_F77 \
15720 archive_expsym_cmds_F77 \
15721 postinstall_cmds_F77 \
15722 postuninstall_cmds_F77 \
15723 old_archive_from_expsyms_cmds_F77 \
15724 allow_undefined_flag_F77 \
15725 no_undefined_flag_F77 \
15726 export_symbols_cmds_F77 \
15727 hardcode_libdir_flag_spec_F77 \
15728 hardcode_libdir_flag_spec_ld_F77 \
15729 hardcode_libdir_separator_F77 \
15730 hardcode_automatic_F77 \
15731 module_cmds_F77 \
15732 module_expsym_cmds_F77 \
15733 lt_cv_prog_compiler_c_o_F77 \
15734 exclude_expsyms_F77 \
15735 include_expsyms_F77; do
15736
15737 case $var in
15738 old_archive_cmds_F77 | \
15739 old_archive_from_new_cmds_F77 | \
15740 archive_cmds_F77 | \
15741 archive_expsym_cmds_F77 | \
15742 module_cmds_F77 | \
15743 module_expsym_cmds_F77 | \
15744 old_archive_from_expsyms_cmds_F77 | \
15745 export_symbols_cmds_F77 | \
15746 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15747 postinstall_cmds | postuninstall_cmds | \
15748 old_postinstall_cmds | old_postuninstall_cmds | \
15749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15750 # Double-quote double-evaled strings.
15751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15752 ;;
15753 *)
15754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15755 ;;
15756 esac
15757 done
15758
15759 case $lt_echo in
15760 *'\$0 --fallback-echo"')
15761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15762 ;;
15763 esac
15764
15765 cfgfile="$ofile"
15766
15767 cat <<__EOF__ >> "$cfgfile"
15768 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15769
15770 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15771
15772 # Shell to use when invoking shell scripts.
15773 SHELL=$lt_SHELL
15774
15775 # Whether or not to build shared libraries.
15776 build_libtool_libs=$enable_shared
15777
15778 # Whether or not to build static libraries.
15779 build_old_libs=$enable_static
15780
15781 # Whether or not to add -lc for building shared libraries.
15782 build_libtool_need_lc=$archive_cmds_need_lc_F77
15783
15784 # Whether or not to disallow shared libs when runtime libs are static
15785 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15786
15787 # Whether or not to optimize for fast installation.
15788 fast_install=$enable_fast_install
15789
15790 # The host system.
15791 host_alias=$host_alias
15792 host=$host
15793 host_os=$host_os
15794
15795 # The build system.
15796 build_alias=$build_alias
15797 build=$build
15798 build_os=$build_os
15799
15800 # An echo program that does not interpret backslashes.
15801 echo=$lt_echo
15802
15803 # The archiver.
15804 AR=$lt_AR
15805 AR_FLAGS=$lt_AR_FLAGS
15806
15807 # A C compiler.
15808 LTCC=$lt_LTCC
15809
15810 # LTCC compiler flags.
15811 LTCFLAGS=$lt_LTCFLAGS
15812
15813 # A language-specific compiler.
15814 CC=$lt_compiler_F77
15815
15816 # Is the compiler the GNU C compiler?
15817 with_gcc=$GCC_F77
15818
15819 # An ERE matcher.
15820 EGREP=$lt_EGREP
15821
15822 # The linker used to build libraries.
15823 LD=$lt_LD_F77
15824
15825 # Whether we need hard or soft links.
15826 LN_S=$lt_LN_S
15827
15828 # A BSD-compatible nm program.
15829 NM=$lt_NM
15830
15831 # A symbol stripping program
15832 STRIP=$lt_STRIP
15833
15834 # Used to examine libraries when file_magic_cmd begins "file"
15835 MAGIC_CMD=$MAGIC_CMD
15836
15837 # Used on cygwin: DLL creation program.
15838 DLLTOOL="$DLLTOOL"
15839
15840 # Used on cygwin: object dumper.
15841 OBJDUMP="$OBJDUMP"
15842
15843 # Used on cygwin: assembler.
15844 AS="$AS"
15845
15846 # The name of the directory that contains temporary libtool files.
15847 objdir=$objdir
15848
15849 # How to create reloadable object files.
15850 reload_flag=$lt_reload_flag
15851 reload_cmds=$lt_reload_cmds
15852
15853 # How to pass a linker flag through the compiler.
15854 wl=$lt_lt_prog_compiler_wl_F77
15855
15856 # Object file suffix (normally "o").
15857 objext="$ac_objext"
15858
15859 # Old archive suffix (normally "a").
15860 libext="$libext"
15861
15862 # Shared library suffix (normally ".so").
15863 shrext_cmds='$shrext_cmds'
15864
15865 # Executable file suffix (normally "").
15866 exeext="$exeext"
15867
15868 # Additional compiler flags for building library objects.
15869 pic_flag=$lt_lt_prog_compiler_pic_F77
15870 pic_mode=$pic_mode
15871
15872 # What is the maximum length of a command?
15873 max_cmd_len=$lt_cv_sys_max_cmd_len
15874
15875 # Does compiler simultaneously support -c and -o options?
15876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15877
15878 # Must we lock files when doing compilation?
15879 need_locks=$lt_need_locks
15880
15881 # Do we need the lib prefix for modules?
15882 need_lib_prefix=$need_lib_prefix
15883
15884 # Do we need a version for libraries?
15885 need_version=$need_version
15886
15887 # Whether dlopen is supported.
15888 dlopen_support=$enable_dlopen
15889
15890 # Whether dlopen of programs is supported.
15891 dlopen_self=$enable_dlopen_self
15892
15893 # Whether dlopen of statically linked programs is supported.
15894 dlopen_self_static=$enable_dlopen_self_static
15895
15896 # Compiler flag to prevent dynamic linking.
15897 link_static_flag=$lt_lt_prog_compiler_static_F77
15898
15899 # Compiler flag to turn off builtin functions.
15900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15901
15902 # Compiler flag to allow reflexive dlopens.
15903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15904
15905 # Compiler flag to generate shared objects directly from archives.
15906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15907
15908 # Compiler flag to generate thread-safe objects.
15909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15910
15911 # Library versioning type.
15912 version_type=$version_type
15913
15914 # Format of library name prefix.
15915 libname_spec=$lt_libname_spec
15916
15917 # List of archive names. First name is the real one, the rest are links.
15918 # The last name is the one that the linker finds with -lNAME.
15919 library_names_spec=$lt_library_names_spec
15920
15921 # The coded name of the library, if different from the real name.
15922 soname_spec=$lt_soname_spec
15923
15924 # Commands used to build and install an old-style archive.
15925 RANLIB=$lt_RANLIB
15926 old_archive_cmds=$lt_old_archive_cmds_F77
15927 old_postinstall_cmds=$lt_old_postinstall_cmds
15928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15929
15930 # Create an old-style archive from a shared archive.
15931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15932
15933 # Create a temporary old-style archive to link instead of a shared archive.
15934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15935
15936 # Commands used to build and install a shared archive.
15937 archive_cmds=$lt_archive_cmds_F77
15938 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15939 postinstall_cmds=$lt_postinstall_cmds
15940 postuninstall_cmds=$lt_postuninstall_cmds
15941
15942 # Commands used to build a loadable module (assumed same as above if empty)
15943 module_cmds=$lt_module_cmds_F77
15944 module_expsym_cmds=$lt_module_expsym_cmds_F77
15945
15946 # Commands to strip libraries.
15947 old_striplib=$lt_old_striplib
15948 striplib=$lt_striplib
15949
15950 # Dependencies to place before the objects being linked to create a
15951 # shared library.
15952 predep_objects=$lt_predep_objects_F77
15953
15954 # Dependencies to place after the objects being linked to create a
15955 # shared library.
15956 postdep_objects=$lt_postdep_objects_F77
15957
15958 # Dependencies to place before the objects being linked to create a
15959 # shared library.
15960 predeps=$lt_predeps_F77
15961
15962 # Dependencies to place after the objects being linked to create a
15963 # shared library.
15964 postdeps=$lt_postdeps_F77
15965
15966 # The library search path used internally by the compiler when linking
15967 # a shared library.
15968 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15969
15970 # Method to check whether dependent libraries are shared objects.
15971 deplibs_check_method=$lt_deplibs_check_method
15972
15973 # Command to use when deplibs_check_method == file_magic.
15974 file_magic_cmd=$lt_file_magic_cmd
15975
15976 # Flag that allows shared libraries with undefined symbols to be built.
15977 allow_undefined_flag=$lt_allow_undefined_flag_F77
15978
15979 # Flag that forces no undefined symbols.
15980 no_undefined_flag=$lt_no_undefined_flag_F77
15981
15982 # Commands used to finish a libtool library installation in a directory.
15983 finish_cmds=$lt_finish_cmds
15984
15985 # Same as above, but a single script fragment to be evaled but not shown.
15986 finish_eval=$lt_finish_eval
15987
15988 # Take the output of nm and produce a listing of raw symbols and C names.
15989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15990
15991 # Transform the output of nm in a proper C declaration
15992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15993
15994 # Transform the output of nm in a C name address pair
15995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15996
15997 # This is the shared library runtime path variable.
15998 runpath_var=$runpath_var
15999
16000 # This is the shared library path variable.
16001 shlibpath_var=$shlibpath_var
16002
16003 # Is shlibpath searched before the hard-coded library search path?
16004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16005
16006 # How to hardcode a shared library path into an executable.
16007 hardcode_action=$hardcode_action_F77
16008
16009 # Whether we should hardcode library paths into libraries.
16010 hardcode_into_libs=$hardcode_into_libs
16011
16012 # Flag to hardcode \$libdir into a binary during linking.
16013 # This must work even if \$libdir does not exist.
16014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16015
16016 # If ld is used when linking, flag to hardcode \$libdir into
16017 # a binary during linking. This must work even if \$libdir does
16018 # not exist.
16019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16020
16021 # Whether we need a single -rpath flag with a separated argument.
16022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16023
16024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16025 # resulting binary.
16026 hardcode_direct=$hardcode_direct_F77
16027
16028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16029 # resulting binary.
16030 hardcode_minus_L=$hardcode_minus_L_F77
16031
16032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16033 # the resulting binary.
16034 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16035
16036 # Set to yes if building a shared library automatically hardcodes DIR into the library
16037 # and all subsequent libraries and executables linked against it.
16038 hardcode_automatic=$hardcode_automatic_F77
16039
16040 # Variables whose values should be saved in libtool wrapper scripts and
16041 # restored at relink time.
16042 variables_saved_for_relink="$variables_saved_for_relink"
16043
16044 # Whether libtool must link a program against all its dependency libraries.
16045 link_all_deplibs=$link_all_deplibs_F77
16046
16047 # Compile-time system search path for libraries
16048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16049
16050 # Run-time system search path for libraries
16051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16052
16053 # Fix the shell variable \$srcfile for the compiler.
16054 fix_srcfile_path="$fix_srcfile_path_F77"
16055
16056 # Set to yes if exported symbols are required.
16057 always_export_symbols=$always_export_symbols_F77
16058
16059 # The commands to list exported symbols.
16060 export_symbols_cmds=$lt_export_symbols_cmds_F77
16061
16062 # The commands to extract the exported symbol list from a shared archive.
16063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16064
16065 # Symbols that should not be listed in the preloaded symbols.
16066 exclude_expsyms=$lt_exclude_expsyms_F77
16067
16068 # Symbols that must always be exported.
16069 include_expsyms=$lt_include_expsyms_F77
16070
16071 # ### END LIBTOOL TAG CONFIG: $tagname
16072
16073 __EOF__
16074
16075
16076 else
16077 # If there is no Makefile yet, we rely on a make rule to execute
16078 # `config.status --recheck' to rerun these tests and create the
16079 # libtool script then.
16080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16081 if test -f "$ltmain_in"; then
16082 test -f Makefile && make "$ltmain"
16083 fi
16084 fi
16085
16086
16087 ac_ext=c
16088 ac_cpp='$CPP $CPPFLAGS'
16089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16092
16093 CC="$lt_save_CC"
16094
16095 else
16096 tagname=""
16097 fi
16098 ;;
16099
16100 GCJ)
16101 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16102
16103
16104 # Source file extension for Java test sources.
16105 ac_ext=java
16106
16107 # Object file extension for compiled Java test sources.
16108 objext=o
16109 objext_GCJ=$objext
16110
16111 # Code to be used in simple compile tests
16112 lt_simple_compile_test_code="class foo {}\n"
16113
16114 # Code to be used in simple link tests
16115 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16116
16117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16118
16119 # If no C compiler was specified, use CC.
16120 LTCC=${LTCC-"$CC"}
16121
16122 # If no C compiler flags were specified, use CFLAGS.
16123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16124
16125 # Allow CC to be a program name with arguments.
16126 compiler=$CC
16127
16128
16129 # save warnings/boilerplate of simple test code
16130 ac_outfile=conftest.$ac_objext
16131 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16133 _lt_compiler_boilerplate=`cat conftest.err`
16134 $rm conftest*
16135
16136 ac_outfile=conftest.$ac_objext
16137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16139 _lt_linker_boilerplate=`cat conftest.err`
16140 $rm conftest*
16141
16142
16143 # Allow CC to be a program name with arguments.
16144 lt_save_CC="$CC"
16145 CC=${GCJ-"gcj"}
16146 compiler=$CC
16147 compiler_GCJ=$CC
16148 for cc_temp in $compiler""; do
16149 case $cc_temp in
16150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16152 \-*) ;;
16153 *) break;;
16154 esac
16155 done
16156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16157
16158
16159 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16160 archive_cmds_need_lc_GCJ=no
16161
16162 old_archive_cmds_GCJ=$old_archive_cmds
16163
16164
16165 lt_prog_compiler_no_builtin_flag_GCJ=
16166
16167 if test "$GCC" = yes; then
16168 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16169
16170
16171 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16172 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16173 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176 lt_cv_prog_compiler_rtti_exceptions=no
16177 ac_outfile=conftest.$ac_objext
16178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16179 lt_compiler_flag="-fno-rtti -fno-exceptions"
16180 # Insert the option either (1) after the last *FLAGS variable, or
16181 # (2) before a word containing "conftest.", or (3) at the end.
16182 # Note that $ac_compile itself does not contain backslashes and begins
16183 # with a dollar sign (not a hyphen), so the echo should work correctly.
16184 # The option is referenced via a variable to avoid confusing sed.
16185 lt_compile=`echo "$ac_compile" | $SED \
16186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16188 -e 's:$: $lt_compiler_flag:'`
16189 (eval echo "\"\$as_me:16189: $lt_compile\"" >&5)
16190 (eval "$lt_compile" 2>conftest.err)
16191 ac_status=$?
16192 cat conftest.err >&5
16193 echo "$as_me:16193: \$? = $ac_status" >&5
16194 if (exit $ac_status) && test -s "$ac_outfile"; then
16195 # The compiler can only warn and ignore the option if not recognized
16196 # So say no if there are warnings other than the usual output.
16197 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16200 lt_cv_prog_compiler_rtti_exceptions=yes
16201 fi
16202 fi
16203 $rm conftest*
16204
16205 fi
16206 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16207 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16208
16209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16210 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16211 else
16212 :
16213 fi
16214
16215 fi
16216
16217 lt_prog_compiler_wl_GCJ=
16218 lt_prog_compiler_pic_GCJ=
16219 lt_prog_compiler_static_GCJ=
16220
16221 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16222 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16223
16224 if test "$GCC" = yes; then
16225 lt_prog_compiler_wl_GCJ='-Wl,'
16226 lt_prog_compiler_static_GCJ='-static'
16227
16228 case $host_os in
16229 aix*)
16230 # All AIX code is PIC.
16231 if test "$host_cpu" = ia64; then
16232 # AIX 5 now supports IA64 processor
16233 lt_prog_compiler_static_GCJ='-Bstatic'
16234 fi
16235 ;;
16236
16237 amigaos*)
16238 # FIXME: we need at least 68020 code to build shared libraries, but
16239 # adding the `-m68020' flag to GCC prevents building anything better,
16240 # like `-m68040'.
16241 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16242 ;;
16243
16244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16245 # PIC is the default for these OSes.
16246 ;;
16247
16248 mingw* | pw32* | os2*)
16249 # This hack is so that the source file can tell whether it is being
16250 # built for inclusion in a dll (and should export symbols for example).
16251 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16252 ;;
16253
16254 darwin* | rhapsody*)
16255 # PIC is the default on this platform
16256 # Common symbols not allowed in MH_DYLIB files
16257 lt_prog_compiler_pic_GCJ='-fno-common'
16258 ;;
16259
16260 interix3*)
16261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16262 # Instead, we relocate shared libraries at runtime.
16263 ;;
16264
16265 msdosdjgpp*)
16266 # Just because we use GCC doesn't mean we suddenly get shared libraries
16267 # on systems that don't support them.
16268 lt_prog_compiler_can_build_shared_GCJ=no
16269 enable_shared=no
16270 ;;
16271
16272 sysv4*MP*)
16273 if test -d /usr/nec; then
16274 lt_prog_compiler_pic_GCJ=-Kconform_pic
16275 fi
16276 ;;
16277
16278 hpux*)
16279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16280 # not for PA HP-UX.
16281 case $host_cpu in
16282 hppa*64*|ia64*)
16283 # +Z the default
16284 ;;
16285 *)
16286 lt_prog_compiler_pic_GCJ='-fPIC'
16287 ;;
16288 esac
16289 ;;
16290
16291 *)
16292 lt_prog_compiler_pic_GCJ='-fPIC'
16293 ;;
16294 esac
16295 else
16296 # PORTME Check for flag to pass linker flags through the system compiler.
16297 case $host_os in
16298 aix*)
16299 lt_prog_compiler_wl_GCJ='-Wl,'
16300 if test "$host_cpu" = ia64; then
16301 # AIX 5 now supports IA64 processor
16302 lt_prog_compiler_static_GCJ='-Bstatic'
16303 else
16304 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16305 fi
16306 ;;
16307 darwin*)
16308 # PIC is the default on this platform
16309 # Common symbols not allowed in MH_DYLIB files
16310 case $cc_basename in
16311 xlc*)
16312 lt_prog_compiler_pic_GCJ='-qnocommon'
16313 lt_prog_compiler_wl_GCJ='-Wl,'
16314 ;;
16315 esac
16316 ;;
16317
16318 mingw* | pw32* | os2*)
16319 # This hack is so that the source file can tell whether it is being
16320 # built for inclusion in a dll (and should export symbols for example).
16321 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16322 ;;
16323
16324 hpux9* | hpux10* | hpux11*)
16325 lt_prog_compiler_wl_GCJ='-Wl,'
16326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16327 # not for PA HP-UX.
16328 case $host_cpu in
16329 hppa*64*|ia64*)
16330 # +Z the default
16331 ;;
16332 *)
16333 lt_prog_compiler_pic_GCJ='+Z'
16334 ;;
16335 esac
16336 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16337 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16338 ;;
16339
16340 irix5* | irix6* | nonstopux*)
16341 lt_prog_compiler_wl_GCJ='-Wl,'
16342 # PIC (with -KPIC) is the default.
16343 lt_prog_compiler_static_GCJ='-non_shared'
16344 ;;
16345
16346 newsos6)
16347 lt_prog_compiler_pic_GCJ='-KPIC'
16348 lt_prog_compiler_static_GCJ='-Bstatic'
16349 ;;
16350
16351 linux*)
16352 case $cc_basename in
16353 icc* | ecc*)
16354 lt_prog_compiler_wl_GCJ='-Wl,'
16355 lt_prog_compiler_pic_GCJ='-KPIC'
16356 lt_prog_compiler_static_GCJ='-static'
16357 ;;
16358 pgcc* | pgf77* | pgf90* | pgf95*)
16359 # Portland Group compilers (*not* the Pentium gcc compiler,
16360 # which looks to be a dead project)
16361 lt_prog_compiler_wl_GCJ='-Wl,'
16362 lt_prog_compiler_pic_GCJ='-fpic'
16363 lt_prog_compiler_static_GCJ='-Bstatic'
16364 ;;
16365 ccc*)
16366 lt_prog_compiler_wl_GCJ='-Wl,'
16367 # All Alpha code is PIC.
16368 lt_prog_compiler_static_GCJ='-non_shared'
16369 ;;
16370 esac
16371 ;;
16372
16373 osf3* | osf4* | osf5*)
16374 lt_prog_compiler_wl_GCJ='-Wl,'
16375 # All OSF/1 code is PIC.
16376 lt_prog_compiler_static_GCJ='-non_shared'
16377 ;;
16378
16379 solaris*)
16380 lt_prog_compiler_pic_GCJ='-KPIC'
16381 lt_prog_compiler_static_GCJ='-Bstatic'
16382 case $cc_basename in
16383 f77* | f90* | f95*)
16384 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16385 *)
16386 lt_prog_compiler_wl_GCJ='-Wl,';;
16387 esac
16388 ;;
16389
16390 sunos4*)
16391 lt_prog_compiler_wl_GCJ='-Qoption ld '
16392 lt_prog_compiler_pic_GCJ='-PIC'
16393 lt_prog_compiler_static_GCJ='-Bstatic'
16394 ;;
16395
16396 sysv4 | sysv4.2uw2* | sysv4.3*)
16397 lt_prog_compiler_wl_GCJ='-Wl,'
16398 lt_prog_compiler_pic_GCJ='-KPIC'
16399 lt_prog_compiler_static_GCJ='-Bstatic'
16400 ;;
16401
16402 sysv4*MP*)
16403 if test -d /usr/nec ;then
16404 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16405 lt_prog_compiler_static_GCJ='-Bstatic'
16406 fi
16407 ;;
16408
16409 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16410 lt_prog_compiler_wl_GCJ='-Wl,'
16411 lt_prog_compiler_pic_GCJ='-KPIC'
16412 lt_prog_compiler_static_GCJ='-Bstatic'
16413 ;;
16414
16415 unicos*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 lt_prog_compiler_can_build_shared_GCJ=no
16418 ;;
16419
16420 uts4*)
16421 lt_prog_compiler_pic_GCJ='-pic'
16422 lt_prog_compiler_static_GCJ='-Bstatic'
16423 ;;
16424
16425 *)
16426 lt_prog_compiler_can_build_shared_GCJ=no
16427 ;;
16428 esac
16429 fi
16430
16431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16432 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16433
16434 #
16435 # Check to make sure the PIC flag actually works.
16436 #
16437 if test -n "$lt_prog_compiler_pic_GCJ"; then
16438
16439 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16440 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16441 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16442 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444 lt_prog_compiler_pic_works_GCJ=no
16445 ac_outfile=conftest.$ac_objext
16446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16447 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16448 # Insert the option either (1) after the last *FLAGS variable, or
16449 # (2) before a word containing "conftest.", or (3) at the end.
16450 # Note that $ac_compile itself does not contain backslashes and begins
16451 # with a dollar sign (not a hyphen), so the echo should work correctly.
16452 # The option is referenced via a variable to avoid confusing sed.
16453 lt_compile=`echo "$ac_compile" | $SED \
16454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16456 -e 's:$: $lt_compiler_flag:'`
16457 (eval echo "\"\$as_me:16457: $lt_compile\"" >&5)
16458 (eval "$lt_compile" 2>conftest.err)
16459 ac_status=$?
16460 cat conftest.err >&5
16461 echo "$as_me:16461: \$? = $ac_status" >&5
16462 if (exit $ac_status) && test -s "$ac_outfile"; then
16463 # The compiler can only warn and ignore the option if not recognized
16464 # So say no if there are warnings other than the usual output.
16465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16468 lt_prog_compiler_pic_works_GCJ=yes
16469 fi
16470 fi
16471 $rm conftest*
16472
16473 fi
16474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16475 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16476
16477 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16478 case $lt_prog_compiler_pic_GCJ in
16479 "" | " "*) ;;
16480 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16481 esac
16482 else
16483 lt_prog_compiler_pic_GCJ=
16484 lt_prog_compiler_can_build_shared_GCJ=no
16485 fi
16486
16487 fi
16488 case $host_os in
16489 # For platforms which do not support PIC, -DPIC is meaningless:
16490 *djgpp*)
16491 lt_prog_compiler_pic_GCJ=
16492 ;;
16493 *)
16494 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16495 ;;
16496 esac
16497
16498 #
16499 # Check to make sure the static flag actually works.
16500 #
16501 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16502 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16503 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16504 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 lt_prog_compiler_static_works_GCJ=no
16508 save_LDFLAGS="$LDFLAGS"
16509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16510 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16512 # The linker can only warn and ignore the option if not recognized
16513 # So say no if there are warnings
16514 if test -s conftest.err; then
16515 # Append any errors to the config.log.
16516 cat conftest.err 1>&5
16517 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16519 if diff conftest.exp conftest.er2 >/dev/null; then
16520 lt_prog_compiler_static_works_GCJ=yes
16521 fi
16522 else
16523 lt_prog_compiler_static_works_GCJ=yes
16524 fi
16525 fi
16526 $rm conftest*
16527 LDFLAGS="$save_LDFLAGS"
16528
16529 fi
16530 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16531 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16532
16533 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16534 :
16535 else
16536 lt_prog_compiler_static_GCJ=
16537 fi
16538
16539
16540 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16542 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545 lt_cv_prog_compiler_c_o_GCJ=no
16546 $rm -r conftest 2>/dev/null
16547 mkdir conftest
16548 cd conftest
16549 mkdir out
16550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16551
16552 lt_compiler_flag="-o out/conftest2.$ac_objext"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 lt_compile=`echo "$ac_compile" | $SED \
16558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16560 -e 's:$: $lt_compiler_flag:'`
16561 (eval echo "\"\$as_me:16561: $lt_compile\"" >&5)
16562 (eval "$lt_compile" 2>out/conftest.err)
16563 ac_status=$?
16564 cat out/conftest.err >&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16567 then
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings
16570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16573 lt_cv_prog_compiler_c_o_GCJ=yes
16574 fi
16575 fi
16576 chmod u+w . 2>&5
16577 $rm conftest*
16578 # SGI C++ compiler will create directory out/ii_files/ for
16579 # template instantiation
16580 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16581 $rm out/* && rmdir out
16582 cd ..
16583 rmdir conftest
16584 $rm conftest*
16585
16586 fi
16587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16589
16590
16591 hard_links="nottested"
16592 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16593 # do not overwrite the value of need_locks provided by the user
16594 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16596 hard_links=yes
16597 $rm conftest*
16598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16599 touch conftest.a
16600 ln conftest.a conftest.b 2>&5 || hard_links=no
16601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16602 { echo "$as_me:$LINENO: result: $hard_links" >&5
16603 echo "${ECHO_T}$hard_links" >&6; }
16604 if test "$hard_links" = no; then
16605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16607 need_locks=warn
16608 fi
16609 else
16610 need_locks=no
16611 fi
16612
16613 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16615
16616 runpath_var=
16617 allow_undefined_flag_GCJ=
16618 enable_shared_with_static_runtimes_GCJ=no
16619 archive_cmds_GCJ=
16620 archive_expsym_cmds_GCJ=
16621 old_archive_From_new_cmds_GCJ=
16622 old_archive_from_expsyms_cmds_GCJ=
16623 export_dynamic_flag_spec_GCJ=
16624 whole_archive_flag_spec_GCJ=
16625 thread_safe_flag_spec_GCJ=
16626 hardcode_libdir_flag_spec_GCJ=
16627 hardcode_libdir_flag_spec_ld_GCJ=
16628 hardcode_libdir_separator_GCJ=
16629 hardcode_direct_GCJ=no
16630 hardcode_minus_L_GCJ=no
16631 hardcode_shlibpath_var_GCJ=unsupported
16632 link_all_deplibs_GCJ=unknown
16633 hardcode_automatic_GCJ=no
16634 module_cmds_GCJ=
16635 module_expsym_cmds_GCJ=
16636 always_export_symbols_GCJ=no
16637 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16638 # include_expsyms should be a list of space-separated symbols to be *always*
16639 # included in the symbol list
16640 include_expsyms_GCJ=
16641 # exclude_expsyms can be an extended regexp of symbols to exclude
16642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16644 # as well as any symbol that contains `d'.
16645 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16646 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16647 # platforms (ab)use it in PIC code, but their linkers get confused if
16648 # the symbol is explicitly referenced. Since portable code cannot
16649 # rely on this symbol name, it's probably fine to never include it in
16650 # preloaded symbol tables.
16651 extract_expsyms_cmds=
16652 # Just being paranoid about ensuring that cc_basename is set.
16653 for cc_temp in $compiler""; do
16654 case $cc_temp in
16655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16657 \-*) ;;
16658 *) break;;
16659 esac
16660 done
16661 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16662
16663 case $host_os in
16664 cygwin* | mingw* | pw32*)
16665 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16666 # When not using gcc, we currently assume that we are using
16667 # Microsoft Visual C++.
16668 if test "$GCC" != yes; then
16669 with_gnu_ld=no
16670 fi
16671 ;;
16672 interix*)
16673 # we just hope/assume this is gcc and not c89 (= MSVC++)
16674 with_gnu_ld=yes
16675 ;;
16676 openbsd*)
16677 with_gnu_ld=no
16678 ;;
16679 esac
16680
16681 ld_shlibs_GCJ=yes
16682 if test "$with_gnu_ld" = yes; then
16683 # If archive_cmds runs LD, not CC, wlarc should be empty
16684 wlarc='${wl}'
16685
16686 # Set some defaults for GNU ld with shared library support. These
16687 # are reset later if shared libraries are not supported. Putting them
16688 # here allows them to be overridden if necessary.
16689 runpath_var=LD_RUN_PATH
16690 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16691 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16692 # ancient GNU ld didn't support --whole-archive et. al.
16693 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16694 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16695 else
16696 whole_archive_flag_spec_GCJ=
16697 fi
16698 supports_anon_versioning=no
16699 case `$LD -v 2>/dev/null` in
16700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16703 *\ 2.11.*) ;; # other 2.11 versions
16704 *) supports_anon_versioning=yes ;;
16705 esac
16706
16707 # See if GNU ld supports shared libraries.
16708 case $host_os in
16709 aix3* | aix4* | aix5*)
16710 # On AIX/PPC, the GNU linker is very broken
16711 if test "$host_cpu" != ia64; then
16712 ld_shlibs_GCJ=no
16713 cat <<EOF 1>&2
16714
16715 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16716 *** to be unable to reliably create shared libraries on AIX.
16717 *** Therefore, libtool is disabling shared libraries support. If you
16718 *** really care for shared libraries, you may want to modify your PATH
16719 *** so that a non-GNU linker is found, and then restart.
16720
16721 EOF
16722 fi
16723 ;;
16724
16725 amigaos*)
16726 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)'
16727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728 hardcode_minus_L_GCJ=yes
16729
16730 # Samuel A. Falvo II <[email protected]> reports
16731 # that the semantics of dynamic libraries on AmigaOS, at least up
16732 # to version 4, is to share data among multiple programs linked
16733 # with the same dynamic library. Since this doesn't match the
16734 # behavior of shared libraries on other platforms, we can't use
16735 # them.
16736 ld_shlibs_GCJ=no
16737 ;;
16738
16739 beos*)
16740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16741 allow_undefined_flag_GCJ=unsupported
16742 # Joseph Beckenbach <[email protected]> says some releases of gcc
16743 # support --undefined. This deserves some investigation. FIXME
16744 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16745 else
16746 ld_shlibs_GCJ=no
16747 fi
16748 ;;
16749
16750 cygwin* | mingw* | pw32*)
16751 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16752 # as there is no search path for DLLs.
16753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754 allow_undefined_flag_GCJ=unsupported
16755 always_export_symbols_GCJ=no
16756 enable_shared_with_static_runtimes_GCJ=yes
16757 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16758
16759 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16760 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16761 # If the export-symbols file already is a .def file (1st line
16762 # is EXPORTS), use it as is; otherwise, prepend...
16763 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16764 cp $export_symbols $output_objdir/$soname.def;
16765 else
16766 echo EXPORTS > $output_objdir/$soname.def;
16767 cat $export_symbols >> $output_objdir/$soname.def;
16768 fi~
16769 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16770 else
16771 ld_shlibs_GCJ=no
16772 fi
16773 ;;
16774
16775 interix3*)
16776 hardcode_direct_GCJ=no
16777 hardcode_shlibpath_var_GCJ=no
16778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16779 export_dynamic_flag_spec_GCJ='${wl}-E'
16780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16781 # Instead, shared libraries are loaded at an image base (0x10000000 by
16782 # default) and relocated if they conflict, which is a slow very memory
16783 # consuming and fragmenting process. To avoid this, we pick a random,
16784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16785 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16786 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'
16787 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'
16788 ;;
16789
16790 linux*)
16791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16792 tmp_addflag=
16793 case $cc_basename,$host_cpu in
16794 pgcc*) # Portland Group C compiler
16795 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'
16796 tmp_addflag=' $pic_flag'
16797 ;;
16798 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16799 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'
16800 tmp_addflag=' $pic_flag -Mnomain' ;;
16801 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16802 tmp_addflag=' -i_dynamic' ;;
16803 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16804 tmp_addflag=' -i_dynamic -nofor_main' ;;
16805 ifc* | ifort*) # Intel Fortran compiler
16806 tmp_addflag=' -nofor_main' ;;
16807 esac
16808 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809
16810 if test $supports_anon_versioning = yes; then
16811 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16813 $echo "local: *; };" >> $output_objdir/$libname.ver~
16814 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16815 fi
16816 else
16817 ld_shlibs_GCJ=no
16818 fi
16819 ;;
16820
16821 netbsd*)
16822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16823 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16824 wlarc=
16825 else
16826 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16827 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16828 fi
16829 ;;
16830
16831 solaris*)
16832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16833 ld_shlibs_GCJ=no
16834 cat <<EOF 1>&2
16835
16836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16837 *** create shared libraries on Solaris systems. Therefore, libtool
16838 *** is disabling shared libraries support. We urge you to upgrade GNU
16839 *** binutils to release 2.9.1 or newer. Another option is to modify
16840 *** your PATH or compiler configuration so that the native linker is
16841 *** used, and then restart.
16842
16843 EOF
16844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16847 else
16848 ld_shlibs_GCJ=no
16849 fi
16850 ;;
16851
16852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16853 case `$LD -v 2>&1` in
16854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16855 ld_shlibs_GCJ=no
16856 cat <<_LT_EOF 1>&2
16857
16858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16859 *** reliably create shared libraries on SCO systems. Therefore, libtool
16860 *** is disabling shared libraries support. We urge you to upgrade GNU
16861 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16862 *** your PATH or compiler configuration so that the native linker is
16863 *** used, and then restart.
16864
16865 _LT_EOF
16866 ;;
16867 *)
16868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16872 else
16873 ld_shlibs_GCJ=no
16874 fi
16875 ;;
16876 esac
16877 ;;
16878
16879 sunos4*)
16880 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16881 wlarc=
16882 hardcode_direct_GCJ=yes
16883 hardcode_shlibpath_var_GCJ=no
16884 ;;
16885
16886 *)
16887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16888 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16889 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16890 else
16891 ld_shlibs_GCJ=no
16892 fi
16893 ;;
16894 esac
16895
16896 if test "$ld_shlibs_GCJ" = no; then
16897 runpath_var=
16898 hardcode_libdir_flag_spec_GCJ=
16899 export_dynamic_flag_spec_GCJ=
16900 whole_archive_flag_spec_GCJ=
16901 fi
16902 else
16903 # PORTME fill in a description of your system's linker (not GNU ld)
16904 case $host_os in
16905 aix3*)
16906 allow_undefined_flag_GCJ=unsupported
16907 always_export_symbols_GCJ=yes
16908 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'
16909 # Note: this linker hardcodes the directories in LIBPATH if there
16910 # are no directories specified by -L.
16911 hardcode_minus_L_GCJ=yes
16912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16913 # Neither direct hardcoding nor static linking is supported with a
16914 # broken collect2.
16915 hardcode_direct_GCJ=unsupported
16916 fi
16917 ;;
16918
16919 aix4* | aix5*)
16920 if test "$host_cpu" = ia64; then
16921 # On IA64, the linker does run time linking by default, so we don't
16922 # have to do anything special.
16923 aix_use_runtimelinking=no
16924 exp_sym_flag='-Bexport'
16925 no_entry_flag=""
16926 else
16927 # If we're using GNU nm, then we don't want the "-C" option.
16928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16929 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16930 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'
16931 else
16932 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'
16933 fi
16934 aix_use_runtimelinking=no
16935
16936 # Test if we are trying to use run time linking or normal
16937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16938 # need to do runtime linking.
16939 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16940 for ld_flag in $LDFLAGS; do
16941 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16942 aix_use_runtimelinking=yes
16943 break
16944 fi
16945 done
16946 ;;
16947 esac
16948
16949 exp_sym_flag='-bexport'
16950 no_entry_flag='-bnoentry'
16951 fi
16952
16953 # When large executables or shared objects are built, AIX ld can
16954 # have problems creating the table of contents. If linking a library
16955 # or program results in "error TOC overflow" add -mminimal-toc to
16956 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16957 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16958
16959 archive_cmds_GCJ=''
16960 hardcode_direct_GCJ=yes
16961 hardcode_libdir_separator_GCJ=':'
16962 link_all_deplibs_GCJ=yes
16963
16964 if test "$GCC" = yes; then
16965 case $host_os in aix4.[012]|aix4.[012].*)
16966 # We only want to do this on AIX 4.2 and lower, the check
16967 # below for broken collect2 doesn't work under 4.3+
16968 collect2name=`${CC} -print-prog-name=collect2`
16969 if test -f "$collect2name" && \
16970 strings "$collect2name" | grep resolve_lib_name >/dev/null
16971 then
16972 # We have reworked collect2
16973 hardcode_direct_GCJ=yes
16974 else
16975 # We have old collect2
16976 hardcode_direct_GCJ=unsupported
16977 # It fails to find uninstalled libraries when the uninstalled
16978 # path is not listed in the libpath. Setting hardcode_minus_L
16979 # to unsupported forces relinking
16980 hardcode_minus_L_GCJ=yes
16981 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16982 hardcode_libdir_separator_GCJ=
16983 fi
16984 ;;
16985 esac
16986 shared_flag='-shared'
16987 if test "$aix_use_runtimelinking" = yes; then
16988 shared_flag="$shared_flag "'${wl}-G'
16989 fi
16990 else
16991 # not using gcc
16992 if test "$host_cpu" = ia64; then
16993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16994 # chokes on -Wl,-G. The following line is correct:
16995 shared_flag='-G'
16996 else
16997 if test "$aix_use_runtimelinking" = yes; then
16998 shared_flag='${wl}-G'
16999 else
17000 shared_flag='${wl}-bM:SRE'
17001 fi
17002 fi
17003 fi
17004
17005 # It seems that -bexpall does not export symbols beginning with
17006 # underscore (_), so it is better to generate a list of symbols to export.
17007 always_export_symbols_GCJ=yes
17008 if test "$aix_use_runtimelinking" = yes; then
17009 # Warning - without using the other runtime loading flags (-brtl),
17010 # -berok will link without error, but may produce a broken library.
17011 allow_undefined_flag_GCJ='-berok'
17012 # Determine the default libpath from the value encoded in an empty executable.
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019
17020 int
17021 main ()
17022 {
17023
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } && {
17042 test -z "$ac_c_werror_flag" ||
17043 test ! -s conftest.err
17044 } && test -s conftest$ac_exeext &&
17045 $as_test_x conftest$ac_exeext; then
17046
17047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17048 }'`
17049 # Check for a 64-bit object if we didn't find anything.
17050 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17051 }'`; fi
17052 else
17053 echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.$ac_ext >&5
17055
17056
17057 fi
17058
17059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17060 conftest$ac_exeext conftest.$ac_ext
17061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17062
17063 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17064 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"
17065 else
17066 if test "$host_cpu" = ia64; then
17067 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17068 allow_undefined_flag_GCJ="-z nodefs"
17069 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"
17070 else
17071 # Determine the default libpath from the value encoded in an empty executable.
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h. */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078
17079 int
17080 main ()
17081 {
17082
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (ac_try="$ac_link"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_link") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest$ac_exeext &&
17104 $as_test_x conftest$ac_exeext; then
17105
17106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17107 }'`
17108 # Check for a 64-bit object if we didn't find anything.
17109 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17110 }'`; fi
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17121
17122 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17123 # Warning - without using the other run time loading flags,
17124 # -berok will link without error, but may produce a broken library.
17125 no_undefined_flag_GCJ=' ${wl}-bernotok'
17126 allow_undefined_flag_GCJ=' ${wl}-berok'
17127 # Exported symbols can be pulled into shared objects from archives
17128 whole_archive_flag_spec_GCJ='$convenience'
17129 archive_cmds_need_lc_GCJ=yes
17130 # This is similar to how AIX traditionally builds its shared libraries.
17131 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'
17132 fi
17133 fi
17134 ;;
17135
17136 amigaos*)
17137 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)'
17138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17139 hardcode_minus_L_GCJ=yes
17140 # see comment about different semantics on the GNU ld section
17141 ld_shlibs_GCJ=no
17142 ;;
17143
17144 bsdi[45]*)
17145 export_dynamic_flag_spec_GCJ=-rdynamic
17146 ;;
17147
17148 cygwin* | mingw* | pw32*)
17149 # When not using gcc, we currently assume that we are using
17150 # Microsoft Visual C++.
17151 # hardcode_libdir_flag_spec is actually meaningless, as there is
17152 # no search path for DLLs.
17153 hardcode_libdir_flag_spec_GCJ=' '
17154 allow_undefined_flag_GCJ=unsupported
17155 # Tell ltmain to make .lib files, not .a files.
17156 libext=lib
17157 # Tell ltmain to make .dll files, not .so files.
17158 shrext_cmds=".dll"
17159 # FIXME: Setting linknames here is a bad hack.
17160 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17161 # The linker will automatically build a .lib file if we build a DLL.
17162 old_archive_From_new_cmds_GCJ='true'
17163 # FIXME: Should let the user specify the lib program.
17164 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17165 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17166 enable_shared_with_static_runtimes_GCJ=yes
17167 ;;
17168
17169 darwin* | rhapsody*)
17170 case $host_os in
17171 rhapsody* | darwin1.[012])
17172 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17173 ;;
17174 *) # Darwin 1.3 on
17175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17176 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17177 else
17178 case ${MACOSX_DEPLOYMENT_TARGET} in
17179 10.[012])
17180 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17181 ;;
17182 10.*)
17183 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17184 ;;
17185 esac
17186 fi
17187 ;;
17188 esac
17189 archive_cmds_need_lc_GCJ=no
17190 hardcode_direct_GCJ=no
17191 hardcode_automatic_GCJ=yes
17192 hardcode_shlibpath_var_GCJ=unsupported
17193 whole_archive_flag_spec_GCJ=''
17194 link_all_deplibs_GCJ=yes
17195 if test "$GCC" = yes ; then
17196 output_verbose_link_cmd='echo'
17197 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17198 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17200 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}'
17201 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}'
17202 else
17203 case $cc_basename in
17204 xlc*)
17205 output_verbose_link_cmd='echo'
17206 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17207 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17209 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17210 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}'
17211 ;;
17212 *)
17213 ld_shlibs_GCJ=no
17214 ;;
17215 esac
17216 fi
17217 ;;
17218
17219 dgux*)
17220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17222 hardcode_shlibpath_var_GCJ=no
17223 ;;
17224
17225 freebsd1*)
17226 ld_shlibs_GCJ=no
17227 ;;
17228
17229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17230 # support. Future versions do this automatically, but an explicit c++rt0.o
17231 # does not break anything, and helps significantly (at the cost of a little
17232 # extra space).
17233 freebsd2.2*)
17234 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17235 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17236 hardcode_direct_GCJ=yes
17237 hardcode_shlibpath_var_GCJ=no
17238 ;;
17239
17240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17241 freebsd2*)
17242 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17243 hardcode_direct_GCJ=yes
17244 hardcode_minus_L_GCJ=yes
17245 hardcode_shlibpath_var_GCJ=no
17246 ;;
17247
17248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17249 freebsd* | kfreebsd*-gnu | dragonfly*)
17250 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17251 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17252 hardcode_direct_GCJ=yes
17253 hardcode_shlibpath_var_GCJ=no
17254 ;;
17255
17256 hpux9*)
17257 if test "$GCC" = yes; then
17258 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'
17259 else
17260 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'
17261 fi
17262 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17263 hardcode_libdir_separator_GCJ=:
17264 hardcode_direct_GCJ=yes
17265
17266 # hardcode_minus_L: Not really in the search PATH,
17267 # but as the default location of the library.
17268 hardcode_minus_L_GCJ=yes
17269 export_dynamic_flag_spec_GCJ='${wl}-E'
17270 ;;
17271
17272 hpux10*)
17273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17274 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17275 else
17276 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17277 fi
17278 if test "$with_gnu_ld" = no; then
17279 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17280 hardcode_libdir_separator_GCJ=:
17281
17282 hardcode_direct_GCJ=yes
17283 export_dynamic_flag_spec_GCJ='${wl}-E'
17284
17285 # hardcode_minus_L: Not really in the search PATH,
17286 # but as the default location of the library.
17287 hardcode_minus_L_GCJ=yes
17288 fi
17289 ;;
17290
17291 hpux11*)
17292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17293 case $host_cpu in
17294 hppa*64*)
17295 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17296 ;;
17297 ia64*)
17298 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17299 ;;
17300 *)
17301 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17302 ;;
17303 esac
17304 else
17305 case $host_cpu in
17306 hppa*64*)
17307 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17308 ;;
17309 ia64*)
17310 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17311 ;;
17312 *)
17313 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17314 ;;
17315 esac
17316 fi
17317 if test "$with_gnu_ld" = no; then
17318 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17319 hardcode_libdir_separator_GCJ=:
17320
17321 case $host_cpu in
17322 hppa*64*|ia64*)
17323 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17324 hardcode_direct_GCJ=no
17325 hardcode_shlibpath_var_GCJ=no
17326 ;;
17327 *)
17328 hardcode_direct_GCJ=yes
17329 export_dynamic_flag_spec_GCJ='${wl}-E'
17330
17331 # hardcode_minus_L: Not really in the search PATH,
17332 # but as the default location of the library.
17333 hardcode_minus_L_GCJ=yes
17334 ;;
17335 esac
17336 fi
17337 ;;
17338
17339 irix5* | irix6* | nonstopux*)
17340 if test "$GCC" = yes; then
17341 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'
17342 else
17343 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'
17344 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17345 fi
17346 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17347 hardcode_libdir_separator_GCJ=:
17348 link_all_deplibs_GCJ=yes
17349 ;;
17350
17351 netbsd*)
17352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17353 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17354 else
17355 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17356 fi
17357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358 hardcode_direct_GCJ=yes
17359 hardcode_shlibpath_var_GCJ=no
17360 ;;
17361
17362 newsos6)
17363 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 hardcode_direct_GCJ=yes
17365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17366 hardcode_libdir_separator_GCJ=:
17367 hardcode_shlibpath_var_GCJ=no
17368 ;;
17369
17370 openbsd*)
17371 hardcode_direct_GCJ=yes
17372 hardcode_shlibpath_var_GCJ=no
17373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17374 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17375 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17377 export_dynamic_flag_spec_GCJ='${wl}-E'
17378 else
17379 case $host_os in
17380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17381 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17382 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17383 ;;
17384 *)
17385 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17387 ;;
17388 esac
17389 fi
17390 ;;
17391
17392 os2*)
17393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17394 hardcode_minus_L_GCJ=yes
17395 allow_undefined_flag_GCJ=unsupported
17396 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'
17397 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17398 ;;
17399
17400 osf3*)
17401 if test "$GCC" = yes; then
17402 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17403 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'
17404 else
17405 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17406 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'
17407 fi
17408 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17409 hardcode_libdir_separator_GCJ=:
17410 ;;
17411
17412 osf4* | osf5*) # as osf3* with the addition of -msym flag
17413 if test "$GCC" = yes; then
17414 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17415 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'
17416 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17417 else
17418 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17419 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'
17420 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~
17421 $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'
17422
17423 # Both c and cxx compiler support -rpath directly
17424 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17425 fi
17426 hardcode_libdir_separator_GCJ=:
17427 ;;
17428
17429 solaris*)
17430 no_undefined_flag_GCJ=' -z text'
17431 if test "$GCC" = yes; then
17432 wlarc='${wl}'
17433 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17435 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17436 else
17437 wlarc=''
17438 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17441 fi
17442 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443 hardcode_shlibpath_var_GCJ=no
17444 case $host_os in
17445 solaris2.[0-5] | solaris2.[0-5].*) ;;
17446 *)
17447 # The compiler driver will combine linker options so we
17448 # cannot just pass the convience library names through
17449 # without $wl, iff we do not link with $LD.
17450 # Luckily, gcc supports the same syntax we need for Sun Studio.
17451 # Supported since Solaris 2.6 (maybe 2.5.1?)
17452 case $wlarc in
17453 '')
17454 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17455 *)
17456 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17457 esac ;;
17458 esac
17459 link_all_deplibs_GCJ=yes
17460 ;;
17461
17462 sunos4*)
17463 if test "x$host_vendor" = xsequent; then
17464 # Use $CC to link under sequent, because it throws in some extra .o
17465 # files that make .init and .fini sections work.
17466 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17467 else
17468 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17469 fi
17470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17471 hardcode_direct_GCJ=yes
17472 hardcode_minus_L_GCJ=yes
17473 hardcode_shlibpath_var_GCJ=no
17474 ;;
17475
17476 sysv4)
17477 case $host_vendor in
17478 sni)
17479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17480 hardcode_direct_GCJ=yes # is this really true???
17481 ;;
17482 siemens)
17483 ## LD is ld it makes a PLAMLIB
17484 ## CC just makes a GrossModule.
17485 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17486 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17487 hardcode_direct_GCJ=no
17488 ;;
17489 motorola)
17490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17491 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17492 ;;
17493 esac
17494 runpath_var='LD_RUN_PATH'
17495 hardcode_shlibpath_var_GCJ=no
17496 ;;
17497
17498 sysv4.3*)
17499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_shlibpath_var_GCJ=no
17501 export_dynamic_flag_spec_GCJ='-Bexport'
17502 ;;
17503
17504 sysv4*MP*)
17505 if test -d /usr/nec; then
17506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507 hardcode_shlibpath_var_GCJ=no
17508 runpath_var=LD_RUN_PATH
17509 hardcode_runpath_var=yes
17510 ld_shlibs_GCJ=yes
17511 fi
17512 ;;
17513
17514 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17515 no_undefined_flag_GCJ='${wl}-z,text'
17516 archive_cmds_need_lc_GCJ=no
17517 hardcode_shlibpath_var_GCJ=no
17518 runpath_var='LD_RUN_PATH'
17519
17520 if test "$GCC" = yes; then
17521 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17522 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 else
17524 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 fi
17527 ;;
17528
17529 sysv5* | sco3.2v5* | sco5v6*)
17530 # Note: We can NOT use -z defs as we might desire, because we do not
17531 # link with -lc, and that would cause any symbols used from libc to
17532 # always be unresolved, which means just about no library would
17533 # ever link correctly. If we're not using GNU ld we use -z text
17534 # though, which does catch some bad symbols but isn't as heavy-handed
17535 # as -z defs.
17536 no_undefined_flag_GCJ='${wl}-z,text'
17537 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17538 archive_cmds_need_lc_GCJ=no
17539 hardcode_shlibpath_var_GCJ=no
17540 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17541 hardcode_libdir_separator_GCJ=':'
17542 link_all_deplibs_GCJ=yes
17543 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17544 runpath_var='LD_RUN_PATH'
17545
17546 if test "$GCC" = yes; then
17547 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17549 else
17550 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17551 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17552 fi
17553 ;;
17554
17555 uts4*)
17556 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558 hardcode_shlibpath_var_GCJ=no
17559 ;;
17560
17561 *)
17562 ld_shlibs_GCJ=no
17563 ;;
17564 esac
17565 fi
17566
17567 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17568 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17569 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17570
17571 #
17572 # Do we need to explicitly link libc?
17573 #
17574 case "x$archive_cmds_need_lc_GCJ" in
17575 x|xyes)
17576 # Assume -lc should be added
17577 archive_cmds_need_lc_GCJ=yes
17578
17579 if test "$enable_shared" = yes && test "$GCC" = yes; then
17580 case $archive_cmds_GCJ in
17581 *'~'*)
17582 # FIXME: we may have to deal with multi-command sequences.
17583 ;;
17584 '$CC '*)
17585 # Test whether the compiler implicitly links with -lc since on some
17586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17587 # to ld, don't add -lc before -lgcc.
17588 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17590 $rm conftest*
17591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17592
17593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17594 (eval $ac_compile) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } 2>conftest.err; then
17598 soname=conftest
17599 lib=conftest
17600 libobjs=conftest.$ac_objext
17601 deplibs=
17602 wl=$lt_prog_compiler_wl_GCJ
17603 pic_flag=$lt_prog_compiler_pic_GCJ
17604 compiler_flags=-v
17605 linker_flags=-v
17606 verstring=
17607 output_objdir=.
17608 libname=conftest
17609 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17610 allow_undefined_flag_GCJ=
17611 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17612 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }
17616 then
17617 archive_cmds_need_lc_GCJ=no
17618 else
17619 archive_cmds_need_lc_GCJ=yes
17620 fi
17621 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17622 else
17623 cat conftest.err 1>&5
17624 fi
17625 $rm conftest*
17626 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17627 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17628 ;;
17629 esac
17630 fi
17631 ;;
17632 esac
17633
17634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17636 library_names_spec=
17637 libname_spec='lib$name'
17638 soname_spec=
17639 shrext_cmds=".so"
17640 postinstall_cmds=
17641 postuninstall_cmds=
17642 finish_cmds=
17643 finish_eval=
17644 shlibpath_var=
17645 shlibpath_overrides_runpath=unknown
17646 version_type=none
17647 dynamic_linker="$host_os ld.so"
17648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17649 if test "$GCC" = yes; then
17650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17652 # if the path contains ";" then we assume it to be the separator
17653 # otherwise default to the standard path separator (i.e. ":") - it is
17654 # assumed that no part of a normal pathname contains ";" but that should
17655 # okay in the real world where ";" in dirpaths is itself problematic.
17656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17657 else
17658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17659 fi
17660 else
17661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17662 fi
17663 need_lib_prefix=unknown
17664 hardcode_into_libs=no
17665
17666 # when you set need_version to no, make sure it does not cause -set_version
17667 # flags to be left without arguments
17668 need_version=unknown
17669
17670 case $host_os in
17671 aix3*)
17672 version_type=linux
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17674 shlibpath_var=LIBPATH
17675
17676 # AIX 3 has no versioning support, so we append a major version to the name.
17677 soname_spec='${libname}${release}${shared_ext}$major'
17678 ;;
17679
17680 aix4* | aix5*)
17681 version_type=linux
17682 need_lib_prefix=no
17683 need_version=no
17684 hardcode_into_libs=yes
17685 if test "$host_cpu" = ia64; then
17686 # AIX 5 supports IA64
17687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17688 shlibpath_var=LD_LIBRARY_PATH
17689 else
17690 # With GCC up to 2.95.x, collect2 would create an import file
17691 # for dependence libraries. The import file would start with
17692 # the line `#! .'. This would cause the generated library to
17693 # depend on `.', always an invalid library. This was fixed in
17694 # development snapshots of GCC prior to 3.0.
17695 case $host_os in
17696 aix4 | aix4.[01] | aix4.[01].*)
17697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17698 echo ' yes '
17699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17700 :
17701 else
17702 can_build_shared=no
17703 fi
17704 ;;
17705 esac
17706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17707 # soname into executable. Probably we can add versioning support to
17708 # collect2, so additional links can be useful in future.
17709 if test "$aix_use_runtimelinking" = yes; then
17710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17711 # instead of lib<name>.a to let people know that these are not
17712 # typical AIX shared libraries.
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 else
17715 # We preserve .a as extension for shared libraries through AIX4.2
17716 # and later when we are not doing run time linking.
17717 library_names_spec='${libname}${release}.a $libname.a'
17718 soname_spec='${libname}${release}${shared_ext}$major'
17719 fi
17720 shlibpath_var=LIBPATH
17721 fi
17722 ;;
17723
17724 amigaos*)
17725 library_names_spec='$libname.ixlibrary $libname.a'
17726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17727 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'
17728 ;;
17729
17730 beos*)
17731 library_names_spec='${libname}${shared_ext}'
17732 dynamic_linker="$host_os ld.so"
17733 shlibpath_var=LIBRARY_PATH
17734 ;;
17735
17736 bsdi[45]*)
17737 version_type=linux
17738 need_version=no
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17745 # the default ld.so.conf also contains /usr/contrib/lib and
17746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17747 # libtool to hard-code these into programs
17748 ;;
17749
17750 cygwin* | mingw* | pw32*)
17751 version_type=windows
17752 shrext_cmds=".dll"
17753 need_version=no
17754 need_lib_prefix=no
17755
17756 case $GCC,$host_os in
17757 yes,cygwin* | yes,mingw* | yes,pw32*)
17758 library_names_spec='$libname.dll.a'
17759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17760 postinstall_cmds='base_file=`basename \${file}`~
17761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17762 dldir=$destdir/`dirname \$dlpath`~
17763 test -d \$dldir || mkdir -p \$dldir~
17764 $install_prog $dir/$dlname \$dldir/$dlname~
17765 chmod a+x \$dldir/$dlname'
17766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17767 dlpath=$dir/\$dldll~
17768 $rm \$dlpath'
17769 shlibpath_overrides_runpath=yes
17770
17771 case $host_os in
17772 cygwin*)
17773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17776 ;;
17777 mingw*)
17778 # MinGW DLLs use traditional 'lib' prefix
17779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17782 # It is most probably a Windows format PATH printed by
17783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17784 # path with ; separators, and with drive letters. We can handle the
17785 # drive letters (cygwin fileutils understands them), so leave them,
17786 # especially as we might pass files found there to a mingw objdump,
17787 # which wouldn't understand a cygwinified path. Ahh.
17788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17789 else
17790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17791 fi
17792 ;;
17793 pw32*)
17794 # pw32 DLLs use 'pw' prefix rather than 'lib'
17795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17796 ;;
17797 esac
17798 ;;
17799
17800 *)
17801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17802 ;;
17803 esac
17804 dynamic_linker='Win32 ld.exe'
17805 # FIXME: first we should search . and the directory the executable is in
17806 shlibpath_var=PATH
17807 ;;
17808
17809 darwin* | rhapsody*)
17810 dynamic_linker="$host_os dyld"
17811 version_type=darwin
17812 need_lib_prefix=no
17813 need_version=no
17814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17815 soname_spec='${libname}${release}${major}$shared_ext'
17816 shlibpath_overrides_runpath=yes
17817 shlibpath_var=DYLD_LIBRARY_PATH
17818 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17820 if test "$GCC" = yes; then
17821 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17822 else
17823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17824 fi
17825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17826 ;;
17827
17828 dgux*)
17829 version_type=linux
17830 need_lib_prefix=no
17831 need_version=no
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 shlibpath_var=LD_LIBRARY_PATH
17835 ;;
17836
17837 freebsd1*)
17838 dynamic_linker=no
17839 ;;
17840
17841 kfreebsd*-gnu)
17842 version_type=linux
17843 need_lib_prefix=no
17844 need_version=no
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 shlibpath_var=LD_LIBRARY_PATH
17848 shlibpath_overrides_runpath=no
17849 hardcode_into_libs=yes
17850 dynamic_linker='GNU ld.so'
17851 ;;
17852
17853 freebsd* | dragonfly*)
17854 # DragonFly does not have aout. When/if they implement a new
17855 # versioning mechanism, adjust this.
17856 if test -x /usr/bin/objformat; then
17857 objformat=`/usr/bin/objformat`
17858 else
17859 case $host_os in
17860 freebsd[123]*) objformat=aout ;;
17861 *) objformat=elf ;;
17862 esac
17863 fi
17864 version_type=freebsd-$objformat
17865 case $version_type in
17866 freebsd-elf*)
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17868 need_version=no
17869 need_lib_prefix=no
17870 ;;
17871 freebsd-*)
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17873 need_version=yes
17874 ;;
17875 esac
17876 shlibpath_var=LD_LIBRARY_PATH
17877 case $host_os in
17878 freebsd2*)
17879 shlibpath_overrides_runpath=yes
17880 ;;
17881 freebsd3.[01]* | freebsdelf3.[01]*)
17882 shlibpath_overrides_runpath=yes
17883 hardcode_into_libs=yes
17884 ;;
17885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17887 shlibpath_overrides_runpath=no
17888 hardcode_into_libs=yes
17889 ;;
17890 freebsd*) # from 4.6 on
17891 shlibpath_overrides_runpath=yes
17892 hardcode_into_libs=yes
17893 ;;
17894 esac
17895 ;;
17896
17897 gnu*)
17898 version_type=linux
17899 need_lib_prefix=no
17900 need_version=no
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17902 soname_spec='${libname}${release}${shared_ext}$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 hardcode_into_libs=yes
17905 ;;
17906
17907 hpux9* | hpux10* | hpux11*)
17908 # Give a soname corresponding to the major version so that dld.sl refuses to
17909 # link against other versions.
17910 version_type=sunos
17911 need_lib_prefix=no
17912 need_version=no
17913 case $host_cpu in
17914 ia64*)
17915 shrext_cmds='.so'
17916 hardcode_into_libs=yes
17917 dynamic_linker="$host_os dld.so"
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921 soname_spec='${libname}${release}${shared_ext}$major'
17922 if test "X$HPUX_IA64_MODE" = X32; then
17923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17924 else
17925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17926 fi
17927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17928 ;;
17929 hppa*64*)
17930 shrext_cmds='.sl'
17931 hardcode_into_libs=yes
17932 dynamic_linker="$host_os dld.sl"
17933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17939 ;;
17940 *)
17941 shrext_cmds='.sl'
17942 dynamic_linker="$host_os dld.sl"
17943 shlibpath_var=SHLIB_PATH
17944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17947 ;;
17948 esac
17949 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17950 postinstall_cmds='chmod 555 $lib'
17951 ;;
17952
17953 interix3*)
17954 version_type=linux
17955 need_lib_prefix=no
17956 need_version=no
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17960 shlibpath_var=LD_LIBRARY_PATH
17961 shlibpath_overrides_runpath=no
17962 hardcode_into_libs=yes
17963 ;;
17964
17965 irix5* | irix6* | nonstopux*)
17966 case $host_os in
17967 nonstopux*) version_type=nonstopux ;;
17968 *)
17969 if test "$lt_cv_prog_gnu_ld" = yes; then
17970 version_type=linux
17971 else
17972 version_type=irix
17973 fi ;;
17974 esac
17975 need_lib_prefix=no
17976 need_version=no
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17979 case $host_os in
17980 irix5* | nonstopux*)
17981 libsuff= shlibsuff=
17982 ;;
17983 *)
17984 case $LD in # libtool.m4 will add one of these switches to LD
17985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17986 libsuff= shlibsuff= libmagic=32-bit;;
17987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17988 libsuff=32 shlibsuff=N32 libmagic=N32;;
17989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17991 *) libsuff= shlibsuff= libmagic=never-match;;
17992 esac
17993 ;;
17994 esac
17995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17996 shlibpath_overrides_runpath=no
17997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17999 hardcode_into_libs=yes
18000 ;;
18001
18002 # No shared lib support for Linux oldld, aout, or coff.
18003 linux*oldld* | linux*aout* | linux*coff*)
18004 dynamic_linker=no
18005 ;;
18006
18007 # This must be Linux ELF.
18008 linux*)
18009 version_type=linux
18010 need_lib_prefix=no
18011 need_version=no
18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013 soname_spec='${libname}${release}${shared_ext}$major'
18014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18015 shlibpath_var=LD_LIBRARY_PATH
18016 shlibpath_overrides_runpath=no
18017 # This implies no fast_install, which is unacceptable.
18018 # Some rework will be needed to allow for fast_install
18019 # before this can be enabled.
18020 hardcode_into_libs=yes
18021
18022 # find out which ABI we are using
18023 libsuff=
18024 case "$host_cpu" in
18025 x86_64*|s390x*|powerpc64*)
18026 echo '#line 18026 "configure"' > conftest.$ac_ext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028 (eval $ac_compile) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; then
18032 case `/usr/bin/file conftest.$ac_objext` in
18033 *64-bit*)
18034 libsuff=64
18035 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18036 ;;
18037 esac
18038 fi
18039 rm -rf conftest*
18040 ;;
18041 esac
18042
18043 # Append ld.so.conf contents to the search path
18044 if test -f /etc/ld.so.conf; then
18045 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18046 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18047 fi
18048
18049 # We used to test for /lib/ld.so.1 and disable shared libraries on
18050 # powerpc, because MkLinux only supported shared libraries with the
18051 # GNU dynamic linker. Since this was broken with cross compilers,
18052 # most powerpc-linux boxes support dynamic linking these days and
18053 # people can always --disable-shared, the test was removed, and we
18054 # assume the GNU/Linux dynamic linker is in use.
18055 dynamic_linker='GNU/Linux ld.so'
18056 ;;
18057
18058 knetbsd*-gnu)
18059 version_type=linux
18060 need_lib_prefix=no
18061 need_version=no
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 dynamic_linker='GNU ld.so'
18068 ;;
18069
18070 netbsd*)
18071 version_type=sunos
18072 need_lib_prefix=no
18073 need_version=no
18074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18077 dynamic_linker='NetBSD (a.out) ld.so'
18078 else
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 dynamic_linker='NetBSD ld.elf_so'
18082 fi
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18086 ;;
18087
18088 newsos6)
18089 version_type=linux
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18093 ;;
18094
18095 nto-qnx*)
18096 version_type=linux
18097 need_lib_prefix=no
18098 need_version=no
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 ;;
18104
18105 openbsd*)
18106 version_type=sunos
18107 sys_lib_dlsearch_path_spec="/usr/lib"
18108 need_lib_prefix=no
18109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18110 case $host_os in
18111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112 *) need_version=no ;;
18113 esac
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118 case $host_os in
18119 openbsd2.[89] | openbsd2.[89].*)
18120 shlibpath_overrides_runpath=no
18121 ;;
18122 *)
18123 shlibpath_overrides_runpath=yes
18124 ;;
18125 esac
18126 else
18127 shlibpath_overrides_runpath=yes
18128 fi
18129 ;;
18130
18131 os2*)
18132 libname_spec='$name'
18133 shrext_cmds=".dll"
18134 need_lib_prefix=no
18135 library_names_spec='$libname${shared_ext} $libname.a'
18136 dynamic_linker='OS/2 ld.exe'
18137 shlibpath_var=LIBPATH
18138 ;;
18139
18140 osf3* | osf4* | osf5*)
18141 version_type=osf
18142 need_lib_prefix=no
18143 need_version=no
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149 ;;
18150
18151 solaris*)
18152 version_type=linux
18153 need_lib_prefix=no
18154 need_version=no
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes
18159 hardcode_into_libs=yes
18160 # ldd complains unless libraries are executable
18161 postinstall_cmds='chmod +x $lib'
18162 ;;
18163
18164 sunos4*)
18165 version_type=sunos
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18170 if test "$with_gnu_ld" = yes; then
18171 need_lib_prefix=no
18172 fi
18173 need_version=yes
18174 ;;
18175
18176 sysv4 | sysv4.3*)
18177 version_type=linux
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 case $host_vendor in
18182 sni)
18183 shlibpath_overrides_runpath=no
18184 need_lib_prefix=no
18185 export_dynamic_flag_spec='${wl}-Blargedynsym'
18186 runpath_var=LD_RUN_PATH
18187 ;;
18188 siemens)
18189 need_lib_prefix=no
18190 ;;
18191 motorola)
18192 need_lib_prefix=no
18193 need_version=no
18194 shlibpath_overrides_runpath=no
18195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18196 ;;
18197 esac
18198 ;;
18199
18200 sysv4*MP*)
18201 if test -d /usr/nec ;then
18202 version_type=linux
18203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18204 soname_spec='$libname${shared_ext}.$major'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 fi
18207 ;;
18208
18209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18210 version_type=freebsd-elf
18211 need_lib_prefix=no
18212 need_version=no
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 hardcode_into_libs=yes
18217 if test "$with_gnu_ld" = yes; then
18218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18219 shlibpath_overrides_runpath=no
18220 else
18221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18222 shlibpath_overrides_runpath=yes
18223 case $host_os in
18224 sco3.2v5*)
18225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18226 ;;
18227 esac
18228 fi
18229 sys_lib_dlsearch_path_spec='/usr/lib'
18230 ;;
18231
18232 uts4*)
18233 version_type=linux
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 shlibpath_var=LD_LIBRARY_PATH
18237 ;;
18238
18239 *)
18240 dynamic_linker=no
18241 ;;
18242 esac
18243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18244 echo "${ECHO_T}$dynamic_linker" >&6; }
18245 test "$dynamic_linker" = no && can_build_shared=no
18246
18247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18248 if test "$GCC" = yes; then
18249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18250 fi
18251
18252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18254 hardcode_action_GCJ=
18255 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18256 test -n "$runpath_var_GCJ" || \
18257 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18258
18259 # We can hardcode non-existant directories.
18260 if test "$hardcode_direct_GCJ" != no &&
18261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18262 # have to relink, otherwise we might link with an installed library
18263 # when we should be linking with a yet-to-be-installed one
18264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18265 test "$hardcode_minus_L_GCJ" != no; then
18266 # Linking always hardcodes the temporary library directory.
18267 hardcode_action_GCJ=relink
18268 else
18269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18270 hardcode_action_GCJ=immediate
18271 fi
18272 else
18273 # We cannot hardcode anything, or else we can only hardcode existing
18274 # directories.
18275 hardcode_action_GCJ=unsupported
18276 fi
18277 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18278 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18279
18280 if test "$hardcode_action_GCJ" = relink; then
18281 # Fast installation is not supported
18282 enable_fast_install=no
18283 elif test "$shlibpath_overrides_runpath" = yes ||
18284 test "$enable_shared" = no; then
18285 # Fast installation is not necessary
18286 enable_fast_install=needless
18287 fi
18288
18289
18290 # The else clause should only fire when bootstrapping the
18291 # libtool distribution, otherwise you forgot to ship ltmain.sh
18292 # with your package, and you will get complaints that there are
18293 # no rules to generate ltmain.sh.
18294 if test -f "$ltmain"; then
18295 # See if we are running on zsh, and set the options which allow our commands through
18296 # without removal of \ escapes.
18297 if test -n "${ZSH_VERSION+set}" ; then
18298 setopt NO_GLOB_SUBST
18299 fi
18300 # Now quote all the things that may contain metacharacters while being
18301 # careful not to overquote the AC_SUBSTed values. We take copies of the
18302 # variables and quote the copies for generation of the libtool script.
18303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18304 SED SHELL STRIP \
18305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18307 deplibs_check_method reload_flag reload_cmds need_locks \
18308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18309 lt_cv_sys_global_symbol_to_c_name_address \
18310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18311 old_postinstall_cmds old_postuninstall_cmds \
18312 compiler_GCJ \
18313 CC_GCJ \
18314 LD_GCJ \
18315 lt_prog_compiler_wl_GCJ \
18316 lt_prog_compiler_pic_GCJ \
18317 lt_prog_compiler_static_GCJ \
18318 lt_prog_compiler_no_builtin_flag_GCJ \
18319 export_dynamic_flag_spec_GCJ \
18320 thread_safe_flag_spec_GCJ \
18321 whole_archive_flag_spec_GCJ \
18322 enable_shared_with_static_runtimes_GCJ \
18323 old_archive_cmds_GCJ \
18324 old_archive_from_new_cmds_GCJ \
18325 predep_objects_GCJ \
18326 postdep_objects_GCJ \
18327 predeps_GCJ \
18328 postdeps_GCJ \
18329 compiler_lib_search_path_GCJ \
18330 archive_cmds_GCJ \
18331 archive_expsym_cmds_GCJ \
18332 postinstall_cmds_GCJ \
18333 postuninstall_cmds_GCJ \
18334 old_archive_from_expsyms_cmds_GCJ \
18335 allow_undefined_flag_GCJ \
18336 no_undefined_flag_GCJ \
18337 export_symbols_cmds_GCJ \
18338 hardcode_libdir_flag_spec_GCJ \
18339 hardcode_libdir_flag_spec_ld_GCJ \
18340 hardcode_libdir_separator_GCJ \
18341 hardcode_automatic_GCJ \
18342 module_cmds_GCJ \
18343 module_expsym_cmds_GCJ \
18344 lt_cv_prog_compiler_c_o_GCJ \
18345 exclude_expsyms_GCJ \
18346 include_expsyms_GCJ; do
18347
18348 case $var in
18349 old_archive_cmds_GCJ | \
18350 old_archive_from_new_cmds_GCJ | \
18351 archive_cmds_GCJ | \
18352 archive_expsym_cmds_GCJ | \
18353 module_cmds_GCJ | \
18354 module_expsym_cmds_GCJ | \
18355 old_archive_from_expsyms_cmds_GCJ | \
18356 export_symbols_cmds_GCJ | \
18357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18358 postinstall_cmds | postuninstall_cmds | \
18359 old_postinstall_cmds | old_postuninstall_cmds | \
18360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18361 # Double-quote double-evaled strings.
18362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18363 ;;
18364 *)
18365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18366 ;;
18367 esac
18368 done
18369
18370 case $lt_echo in
18371 *'\$0 --fallback-echo"')
18372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18373 ;;
18374 esac
18375
18376 cfgfile="$ofile"
18377
18378 cat <<__EOF__ >> "$cfgfile"
18379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18380
18381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18382
18383 # Shell to use when invoking shell scripts.
18384 SHELL=$lt_SHELL
18385
18386 # Whether or not to build shared libraries.
18387 build_libtool_libs=$enable_shared
18388
18389 # Whether or not to build static libraries.
18390 build_old_libs=$enable_static
18391
18392 # Whether or not to add -lc for building shared libraries.
18393 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18394
18395 # Whether or not to disallow shared libs when runtime libs are static
18396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18397
18398 # Whether or not to optimize for fast installation.
18399 fast_install=$enable_fast_install
18400
18401 # The host system.
18402 host_alias=$host_alias
18403 host=$host
18404 host_os=$host_os
18405
18406 # The build system.
18407 build_alias=$build_alias
18408 build=$build
18409 build_os=$build_os
18410
18411 # An echo program that does not interpret backslashes.
18412 echo=$lt_echo
18413
18414 # The archiver.
18415 AR=$lt_AR
18416 AR_FLAGS=$lt_AR_FLAGS
18417
18418 # A C compiler.
18419 LTCC=$lt_LTCC
18420
18421 # LTCC compiler flags.
18422 LTCFLAGS=$lt_LTCFLAGS
18423
18424 # A language-specific compiler.
18425 CC=$lt_compiler_GCJ
18426
18427 # Is the compiler the GNU C compiler?
18428 with_gcc=$GCC_GCJ
18429
18430 # An ERE matcher.
18431 EGREP=$lt_EGREP
18432
18433 # The linker used to build libraries.
18434 LD=$lt_LD_GCJ
18435
18436 # Whether we need hard or soft links.
18437 LN_S=$lt_LN_S
18438
18439 # A BSD-compatible nm program.
18440 NM=$lt_NM
18441
18442 # A symbol stripping program
18443 STRIP=$lt_STRIP
18444
18445 # Used to examine libraries when file_magic_cmd begins "file"
18446 MAGIC_CMD=$MAGIC_CMD
18447
18448 # Used on cygwin: DLL creation program.
18449 DLLTOOL="$DLLTOOL"
18450
18451 # Used on cygwin: object dumper.
18452 OBJDUMP="$OBJDUMP"
18453
18454 # Used on cygwin: assembler.
18455 AS="$AS"
18456
18457 # The name of the directory that contains temporary libtool files.
18458 objdir=$objdir
18459
18460 # How to create reloadable object files.
18461 reload_flag=$lt_reload_flag
18462 reload_cmds=$lt_reload_cmds
18463
18464 # How to pass a linker flag through the compiler.
18465 wl=$lt_lt_prog_compiler_wl_GCJ
18466
18467 # Object file suffix (normally "o").
18468 objext="$ac_objext"
18469
18470 # Old archive suffix (normally "a").
18471 libext="$libext"
18472
18473 # Shared library suffix (normally ".so").
18474 shrext_cmds='$shrext_cmds'
18475
18476 # Executable file suffix (normally "").
18477 exeext="$exeext"
18478
18479 # Additional compiler flags for building library objects.
18480 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18481 pic_mode=$pic_mode
18482
18483 # What is the maximum length of a command?
18484 max_cmd_len=$lt_cv_sys_max_cmd_len
18485
18486 # Does compiler simultaneously support -c and -o options?
18487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18488
18489 # Must we lock files when doing compilation?
18490 need_locks=$lt_need_locks
18491
18492 # Do we need the lib prefix for modules?
18493 need_lib_prefix=$need_lib_prefix
18494
18495 # Do we need a version for libraries?
18496 need_version=$need_version
18497
18498 # Whether dlopen is supported.
18499 dlopen_support=$enable_dlopen
18500
18501 # Whether dlopen of programs is supported.
18502 dlopen_self=$enable_dlopen_self
18503
18504 # Whether dlopen of statically linked programs is supported.
18505 dlopen_self_static=$enable_dlopen_self_static
18506
18507 # Compiler flag to prevent dynamic linking.
18508 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18509
18510 # Compiler flag to turn off builtin functions.
18511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18512
18513 # Compiler flag to allow reflexive dlopens.
18514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18515
18516 # Compiler flag to generate shared objects directly from archives.
18517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18518
18519 # Compiler flag to generate thread-safe objects.
18520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18521
18522 # Library versioning type.
18523 version_type=$version_type
18524
18525 # Format of library name prefix.
18526 libname_spec=$lt_libname_spec
18527
18528 # List of archive names. First name is the real one, the rest are links.
18529 # The last name is the one that the linker finds with -lNAME.
18530 library_names_spec=$lt_library_names_spec
18531
18532 # The coded name of the library, if different from the real name.
18533 soname_spec=$lt_soname_spec
18534
18535 # Commands used to build and install an old-style archive.
18536 RANLIB=$lt_RANLIB
18537 old_archive_cmds=$lt_old_archive_cmds_GCJ
18538 old_postinstall_cmds=$lt_old_postinstall_cmds
18539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18540
18541 # Create an old-style archive from a shared archive.
18542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18543
18544 # Create a temporary old-style archive to link instead of a shared archive.
18545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18546
18547 # Commands used to build and install a shared archive.
18548 archive_cmds=$lt_archive_cmds_GCJ
18549 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18550 postinstall_cmds=$lt_postinstall_cmds
18551 postuninstall_cmds=$lt_postuninstall_cmds
18552
18553 # Commands used to build a loadable module (assumed same as above if empty)
18554 module_cmds=$lt_module_cmds_GCJ
18555 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18556
18557 # Commands to strip libraries.
18558 old_striplib=$lt_old_striplib
18559 striplib=$lt_striplib
18560
18561 # Dependencies to place before the objects being linked to create a
18562 # shared library.
18563 predep_objects=$lt_predep_objects_GCJ
18564
18565 # Dependencies to place after the objects being linked to create a
18566 # shared library.
18567 postdep_objects=$lt_postdep_objects_GCJ
18568
18569 # Dependencies to place before the objects being linked to create a
18570 # shared library.
18571 predeps=$lt_predeps_GCJ
18572
18573 # Dependencies to place after the objects being linked to create a
18574 # shared library.
18575 postdeps=$lt_postdeps_GCJ
18576
18577 # The library search path used internally by the compiler when linking
18578 # a shared library.
18579 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18580
18581 # Method to check whether dependent libraries are shared objects.
18582 deplibs_check_method=$lt_deplibs_check_method
18583
18584 # Command to use when deplibs_check_method == file_magic.
18585 file_magic_cmd=$lt_file_magic_cmd
18586
18587 # Flag that allows shared libraries with undefined symbols to be built.
18588 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18589
18590 # Flag that forces no undefined symbols.
18591 no_undefined_flag=$lt_no_undefined_flag_GCJ
18592
18593 # Commands used to finish a libtool library installation in a directory.
18594 finish_cmds=$lt_finish_cmds
18595
18596 # Same as above, but a single script fragment to be evaled but not shown.
18597 finish_eval=$lt_finish_eval
18598
18599 # Take the output of nm and produce a listing of raw symbols and C names.
18600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18601
18602 # Transform the output of nm in a proper C declaration
18603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18604
18605 # Transform the output of nm in a C name address pair
18606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18607
18608 # This is the shared library runtime path variable.
18609 runpath_var=$runpath_var
18610
18611 # This is the shared library path variable.
18612 shlibpath_var=$shlibpath_var
18613
18614 # Is shlibpath searched before the hard-coded library search path?
18615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18616
18617 # How to hardcode a shared library path into an executable.
18618 hardcode_action=$hardcode_action_GCJ
18619
18620 # Whether we should hardcode library paths into libraries.
18621 hardcode_into_libs=$hardcode_into_libs
18622
18623 # Flag to hardcode \$libdir into a binary during linking.
18624 # This must work even if \$libdir does not exist.
18625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18626
18627 # If ld is used when linking, flag to hardcode \$libdir into
18628 # a binary during linking. This must work even if \$libdir does
18629 # not exist.
18630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18631
18632 # Whether we need a single -rpath flag with a separated argument.
18633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18634
18635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18636 # resulting binary.
18637 hardcode_direct=$hardcode_direct_GCJ
18638
18639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18640 # resulting binary.
18641 hardcode_minus_L=$hardcode_minus_L_GCJ
18642
18643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18644 # the resulting binary.
18645 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18646
18647 # Set to yes if building a shared library automatically hardcodes DIR into the library
18648 # and all subsequent libraries and executables linked against it.
18649 hardcode_automatic=$hardcode_automatic_GCJ
18650
18651 # Variables whose values should be saved in libtool wrapper scripts and
18652 # restored at relink time.
18653 variables_saved_for_relink="$variables_saved_for_relink"
18654
18655 # Whether libtool must link a program against all its dependency libraries.
18656 link_all_deplibs=$link_all_deplibs_GCJ
18657
18658 # Compile-time system search path for libraries
18659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18660
18661 # Run-time system search path for libraries
18662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18663
18664 # Fix the shell variable \$srcfile for the compiler.
18665 fix_srcfile_path="$fix_srcfile_path_GCJ"
18666
18667 # Set to yes if exported symbols are required.
18668 always_export_symbols=$always_export_symbols_GCJ
18669
18670 # The commands to list exported symbols.
18671 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18672
18673 # The commands to extract the exported symbol list from a shared archive.
18674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18675
18676 # Symbols that should not be listed in the preloaded symbols.
18677 exclude_expsyms=$lt_exclude_expsyms_GCJ
18678
18679 # Symbols that must always be exported.
18680 include_expsyms=$lt_include_expsyms_GCJ
18681
18682 # ### END LIBTOOL TAG CONFIG: $tagname
18683
18684 __EOF__
18685
18686
18687 else
18688 # If there is no Makefile yet, we rely on a make rule to execute
18689 # `config.status --recheck' to rerun these tests and create the
18690 # libtool script then.
18691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18692 if test -f "$ltmain_in"; then
18693 test -f Makefile && make "$ltmain"
18694 fi
18695 fi
18696
18697
18698 ac_ext=c
18699 ac_cpp='$CPP $CPPFLAGS'
18700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703
18704 CC="$lt_save_CC"
18705
18706 else
18707 tagname=""
18708 fi
18709 ;;
18710
18711 RC)
18712
18713
18714 # Source file extension for RC test sources.
18715 ac_ext=rc
18716
18717 # Object file extension for compiled RC test sources.
18718 objext=o
18719 objext_RC=$objext
18720
18721 # Code to be used in simple compile tests
18722 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18723
18724 # Code to be used in simple link tests
18725 lt_simple_link_test_code="$lt_simple_compile_test_code"
18726
18727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728
18729 # If no C compiler was specified, use CC.
18730 LTCC=${LTCC-"$CC"}
18731
18732 # If no C compiler flags were specified, use CFLAGS.
18733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18734
18735 # Allow CC to be a program name with arguments.
18736 compiler=$CC
18737
18738
18739 # save warnings/boilerplate of simple test code
18740 ac_outfile=conftest.$ac_objext
18741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18743 _lt_compiler_boilerplate=`cat conftest.err`
18744 $rm conftest*
18745
18746 ac_outfile=conftest.$ac_objext
18747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18749 _lt_linker_boilerplate=`cat conftest.err`
18750 $rm conftest*
18751
18752
18753 # Allow CC to be a program name with arguments.
18754 lt_save_CC="$CC"
18755 CC=${RC-"windres"}
18756 compiler=$CC
18757 compiler_RC=$CC
18758 for cc_temp in $compiler""; do
18759 case $cc_temp in
18760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18762 \-*) ;;
18763 *) break;;
18764 esac
18765 done
18766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18767
18768 lt_cv_prog_compiler_c_o_RC=yes
18769
18770 # The else clause should only fire when bootstrapping the
18771 # libtool distribution, otherwise you forgot to ship ltmain.sh
18772 # with your package, and you will get complaints that there are
18773 # no rules to generate ltmain.sh.
18774 if test -f "$ltmain"; then
18775 # See if we are running on zsh, and set the options which allow our commands through
18776 # without removal of \ escapes.
18777 if test -n "${ZSH_VERSION+set}" ; then
18778 setopt NO_GLOB_SUBST
18779 fi
18780 # Now quote all the things that may contain metacharacters while being
18781 # careful not to overquote the AC_SUBSTed values. We take copies of the
18782 # variables and quote the copies for generation of the libtool script.
18783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18784 SED SHELL STRIP \
18785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18787 deplibs_check_method reload_flag reload_cmds need_locks \
18788 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18789 lt_cv_sys_global_symbol_to_c_name_address \
18790 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18791 old_postinstall_cmds old_postuninstall_cmds \
18792 compiler_RC \
18793 CC_RC \
18794 LD_RC \
18795 lt_prog_compiler_wl_RC \
18796 lt_prog_compiler_pic_RC \
18797 lt_prog_compiler_static_RC \
18798 lt_prog_compiler_no_builtin_flag_RC \
18799 export_dynamic_flag_spec_RC \
18800 thread_safe_flag_spec_RC \
18801 whole_archive_flag_spec_RC \
18802 enable_shared_with_static_runtimes_RC \
18803 old_archive_cmds_RC \
18804 old_archive_from_new_cmds_RC \
18805 predep_objects_RC \
18806 postdep_objects_RC \
18807 predeps_RC \
18808 postdeps_RC \
18809 compiler_lib_search_path_RC \
18810 archive_cmds_RC \
18811 archive_expsym_cmds_RC \
18812 postinstall_cmds_RC \
18813 postuninstall_cmds_RC \
18814 old_archive_from_expsyms_cmds_RC \
18815 allow_undefined_flag_RC \
18816 no_undefined_flag_RC \
18817 export_symbols_cmds_RC \
18818 hardcode_libdir_flag_spec_RC \
18819 hardcode_libdir_flag_spec_ld_RC \
18820 hardcode_libdir_separator_RC \
18821 hardcode_automatic_RC \
18822 module_cmds_RC \
18823 module_expsym_cmds_RC \
18824 lt_cv_prog_compiler_c_o_RC \
18825 exclude_expsyms_RC \
18826 include_expsyms_RC; do
18827
18828 case $var in
18829 old_archive_cmds_RC | \
18830 old_archive_from_new_cmds_RC | \
18831 archive_cmds_RC | \
18832 archive_expsym_cmds_RC | \
18833 module_cmds_RC | \
18834 module_expsym_cmds_RC | \
18835 old_archive_from_expsyms_cmds_RC | \
18836 export_symbols_cmds_RC | \
18837 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18838 postinstall_cmds | postuninstall_cmds | \
18839 old_postinstall_cmds | old_postuninstall_cmds | \
18840 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18841 # Double-quote double-evaled strings.
18842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18843 ;;
18844 *)
18845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18846 ;;
18847 esac
18848 done
18849
18850 case $lt_echo in
18851 *'\$0 --fallback-echo"')
18852 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18853 ;;
18854 esac
18855
18856 cfgfile="$ofile"
18857
18858 cat <<__EOF__ >> "$cfgfile"
18859 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18860
18861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18862
18863 # Shell to use when invoking shell scripts.
18864 SHELL=$lt_SHELL
18865
18866 # Whether or not to build shared libraries.
18867 build_libtool_libs=$enable_shared
18868
18869 # Whether or not to build static libraries.
18870 build_old_libs=$enable_static
18871
18872 # Whether or not to add -lc for building shared libraries.
18873 build_libtool_need_lc=$archive_cmds_need_lc_RC
18874
18875 # Whether or not to disallow shared libs when runtime libs are static
18876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18877
18878 # Whether or not to optimize for fast installation.
18879 fast_install=$enable_fast_install
18880
18881 # The host system.
18882 host_alias=$host_alias
18883 host=$host
18884 host_os=$host_os
18885
18886 # The build system.
18887 build_alias=$build_alias
18888 build=$build
18889 build_os=$build_os
18890
18891 # An echo program that does not interpret backslashes.
18892 echo=$lt_echo
18893
18894 # The archiver.
18895 AR=$lt_AR
18896 AR_FLAGS=$lt_AR_FLAGS
18897
18898 # A C compiler.
18899 LTCC=$lt_LTCC
18900
18901 # LTCC compiler flags.
18902 LTCFLAGS=$lt_LTCFLAGS
18903
18904 # A language-specific compiler.
18905 CC=$lt_compiler_RC
18906
18907 # Is the compiler the GNU C compiler?
18908 with_gcc=$GCC_RC
18909
18910 # An ERE matcher.
18911 EGREP=$lt_EGREP
18912
18913 # The linker used to build libraries.
18914 LD=$lt_LD_RC
18915
18916 # Whether we need hard or soft links.
18917 LN_S=$lt_LN_S
18918
18919 # A BSD-compatible nm program.
18920 NM=$lt_NM
18921
18922 # A symbol stripping program
18923 STRIP=$lt_STRIP
18924
18925 # Used to examine libraries when file_magic_cmd begins "file"
18926 MAGIC_CMD=$MAGIC_CMD
18927
18928 # Used on cygwin: DLL creation program.
18929 DLLTOOL="$DLLTOOL"
18930
18931 # Used on cygwin: object dumper.
18932 OBJDUMP="$OBJDUMP"
18933
18934 # Used on cygwin: assembler.
18935 AS="$AS"
18936
18937 # The name of the directory that contains temporary libtool files.
18938 objdir=$objdir
18939
18940 # How to create reloadable object files.
18941 reload_flag=$lt_reload_flag
18942 reload_cmds=$lt_reload_cmds
18943
18944 # How to pass a linker flag through the compiler.
18945 wl=$lt_lt_prog_compiler_wl_RC
18946
18947 # Object file suffix (normally "o").
18948 objext="$ac_objext"
18949
18950 # Old archive suffix (normally "a").
18951 libext="$libext"
18952
18953 # Shared library suffix (normally ".so").
18954 shrext_cmds='$shrext_cmds'
18955
18956 # Executable file suffix (normally "").
18957 exeext="$exeext"
18958
18959 # Additional compiler flags for building library objects.
18960 pic_flag=$lt_lt_prog_compiler_pic_RC
18961 pic_mode=$pic_mode
18962
18963 # What is the maximum length of a command?
18964 max_cmd_len=$lt_cv_sys_max_cmd_len
18965
18966 # Does compiler simultaneously support -c and -o options?
18967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18968
18969 # Must we lock files when doing compilation?
18970 need_locks=$lt_need_locks
18971
18972 # Do we need the lib prefix for modules?
18973 need_lib_prefix=$need_lib_prefix
18974
18975 # Do we need a version for libraries?
18976 need_version=$need_version
18977
18978 # Whether dlopen is supported.
18979 dlopen_support=$enable_dlopen
18980
18981 # Whether dlopen of programs is supported.
18982 dlopen_self=$enable_dlopen_self
18983
18984 # Whether dlopen of statically linked programs is supported.
18985 dlopen_self_static=$enable_dlopen_self_static
18986
18987 # Compiler flag to prevent dynamic linking.
18988 link_static_flag=$lt_lt_prog_compiler_static_RC
18989
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18992
18993 # Compiler flag to allow reflexive dlopens.
18994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18995
18996 # Compiler flag to generate shared objects directly from archives.
18997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18998
18999 # Compiler flag to generate thread-safe objects.
19000 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19001
19002 # Library versioning type.
19003 version_type=$version_type
19004
19005 # Format of library name prefix.
19006 libname_spec=$lt_libname_spec
19007
19008 # List of archive names. First name is the real one, the rest are links.
19009 # The last name is the one that the linker finds with -lNAME.
19010 library_names_spec=$lt_library_names_spec
19011
19012 # The coded name of the library, if different from the real name.
19013 soname_spec=$lt_soname_spec
19014
19015 # Commands used to build and install an old-style archive.
19016 RANLIB=$lt_RANLIB
19017 old_archive_cmds=$lt_old_archive_cmds_RC
19018 old_postinstall_cmds=$lt_old_postinstall_cmds
19019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19020
19021 # Create an old-style archive from a shared archive.
19022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19023
19024 # Create a temporary old-style archive to link instead of a shared archive.
19025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19026
19027 # Commands used to build and install a shared archive.
19028 archive_cmds=$lt_archive_cmds_RC
19029 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19030 postinstall_cmds=$lt_postinstall_cmds
19031 postuninstall_cmds=$lt_postuninstall_cmds
19032
19033 # Commands used to build a loadable module (assumed same as above if empty)
19034 module_cmds=$lt_module_cmds_RC
19035 module_expsym_cmds=$lt_module_expsym_cmds_RC
19036
19037 # Commands to strip libraries.
19038 old_striplib=$lt_old_striplib
19039 striplib=$lt_striplib
19040
19041 # Dependencies to place before the objects being linked to create a
19042 # shared library.
19043 predep_objects=$lt_predep_objects_RC
19044
19045 # Dependencies to place after the objects being linked to create a
19046 # shared library.
19047 postdep_objects=$lt_postdep_objects_RC
19048
19049 # Dependencies to place before the objects being linked to create a
19050 # shared library.
19051 predeps=$lt_predeps_RC
19052
19053 # Dependencies to place after the objects being linked to create a
19054 # shared library.
19055 postdeps=$lt_postdeps_RC
19056
19057 # The library search path used internally by the compiler when linking
19058 # a shared library.
19059 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19060
19061 # Method to check whether dependent libraries are shared objects.
19062 deplibs_check_method=$lt_deplibs_check_method
19063
19064 # Command to use when deplibs_check_method == file_magic.
19065 file_magic_cmd=$lt_file_magic_cmd
19066
19067 # Flag that allows shared libraries with undefined symbols to be built.
19068 allow_undefined_flag=$lt_allow_undefined_flag_RC
19069
19070 # Flag that forces no undefined symbols.
19071 no_undefined_flag=$lt_no_undefined_flag_RC
19072
19073 # Commands used to finish a libtool library installation in a directory.
19074 finish_cmds=$lt_finish_cmds
19075
19076 # Same as above, but a single script fragment to be evaled but not shown.
19077 finish_eval=$lt_finish_eval
19078
19079 # Take the output of nm and produce a listing of raw symbols and C names.
19080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19081
19082 # Transform the output of nm in a proper C declaration
19083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19084
19085 # Transform the output of nm in a C name address pair
19086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19087
19088 # This is the shared library runtime path variable.
19089 runpath_var=$runpath_var
19090
19091 # This is the shared library path variable.
19092 shlibpath_var=$shlibpath_var
19093
19094 # Is shlibpath searched before the hard-coded library search path?
19095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19096
19097 # How to hardcode a shared library path into an executable.
19098 hardcode_action=$hardcode_action_RC
19099
19100 # Whether we should hardcode library paths into libraries.
19101 hardcode_into_libs=$hardcode_into_libs
19102
19103 # Flag to hardcode \$libdir into a binary during linking.
19104 # This must work even if \$libdir does not exist.
19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19106
19107 # If ld is used when linking, flag to hardcode \$libdir into
19108 # a binary during linking. This must work even if \$libdir does
19109 # not exist.
19110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19111
19112 # Whether we need a single -rpath flag with a separated argument.
19113 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19114
19115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19116 # resulting binary.
19117 hardcode_direct=$hardcode_direct_RC
19118
19119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19120 # resulting binary.
19121 hardcode_minus_L=$hardcode_minus_L_RC
19122
19123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19124 # the resulting binary.
19125 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19126
19127 # Set to yes if building a shared library automatically hardcodes DIR into the library
19128 # and all subsequent libraries and executables linked against it.
19129 hardcode_automatic=$hardcode_automatic_RC
19130
19131 # Variables whose values should be saved in libtool wrapper scripts and
19132 # restored at relink time.
19133 variables_saved_for_relink="$variables_saved_for_relink"
19134
19135 # Whether libtool must link a program against all its dependency libraries.
19136 link_all_deplibs=$link_all_deplibs_RC
19137
19138 # Compile-time system search path for libraries
19139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19140
19141 # Run-time system search path for libraries
19142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19143
19144 # Fix the shell variable \$srcfile for the compiler.
19145 fix_srcfile_path="$fix_srcfile_path_RC"
19146
19147 # Set to yes if exported symbols are required.
19148 always_export_symbols=$always_export_symbols_RC
19149
19150 # The commands to list exported symbols.
19151 export_symbols_cmds=$lt_export_symbols_cmds_RC
19152
19153 # The commands to extract the exported symbol list from a shared archive.
19154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19155
19156 # Symbols that should not be listed in the preloaded symbols.
19157 exclude_expsyms=$lt_exclude_expsyms_RC
19158
19159 # Symbols that must always be exported.
19160 include_expsyms=$lt_include_expsyms_RC
19161
19162 # ### END LIBTOOL TAG CONFIG: $tagname
19163
19164 __EOF__
19165
19166
19167 else
19168 # If there is no Makefile yet, we rely on a make rule to execute
19169 # `config.status --recheck' to rerun these tests and create the
19170 # libtool script then.
19171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19172 if test -f "$ltmain_in"; then
19173 test -f Makefile && make "$ltmain"
19174 fi
19175 fi
19176
19177
19178 ac_ext=c
19179 ac_cpp='$CPP $CPPFLAGS'
19180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183
19184 CC="$lt_save_CC"
19185
19186 ;;
19187
19188 *)
19189 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19190 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19191 { (exit 1); exit 1; }; }
19192 ;;
19193 esac
19194
19195 # Append the new tag name to the list of available tags.
19196 if test -n "$tagname" ; then
19197 available_tags="$available_tags $tagname"
19198 fi
19199 fi
19200 done
19201 IFS="$lt_save_ifs"
19202
19203 # Now substitute the updated list of available tags.
19204 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19205 mv "${ofile}T" "$ofile"
19206 chmod +x "$ofile"
19207 else
19208 rm -f "${ofile}T"
19209 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19210 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19211 { (exit 1); exit 1; }; }
19212 fi
19213 fi
19214
19215
19216
19217 # This can be used to rebuild libtool when needed
19218 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19219
19220 # Always use our own libtool.
19221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19222
19223 # Prevent multiple expansion
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245 { echo "$as_me:$LINENO: checking for debugging mode" >&5
19246 echo $ECHO_N "checking for debugging mode... $ECHO_C" >&6; }
19247 # Check whether --enable-debug-mode was given.
19248 if test "${enable_debug_mode+set}" = set; then
19249 enableval=$enable_debug_mode;
19250 LIB3DS_DEBUG_MODE=yes
19251
19252
19253 fi
19254
19255 if test "$LIB3DS_DEBUG_MODE" = yes; then
19256 { echo "$as_me:$LINENO: result: yes" >&5
19257 echo "${ECHO_T}yes" >&6; }
19258 CFLAGS="$CFLAGS -D_DEBUG"
19259 else
19260 { echo "$as_me:$LINENO: result: no" >&5
19261 echo "${ECHO_T}no" >&6; }
19262 fi
19263
19264 ac_config_files="$ac_config_files lib3ds-config lib3ds-config.1 Makefile lib3ds/Makefile tools/Makefile tools/3dsdump.1 lib3ds.spec 3ds-utils.spec"
19265
19266 ac_config_commands="$ac_config_commands default"
19267
19268 cat >confcache <<\_ACEOF
19269 # This file is a shell script that caches the results of configure
19270 # tests run on this system so they can be shared between configure
19271 # scripts and configure runs, see configure's option --config-cache.
19272 # It is not useful on other systems. If it contains results you don't
19273 # want to keep, you may remove or edit it.
19274 #
19275 # config.status only pays attention to the cache file if you give it
19276 # the --recheck option to rerun configure.
19277 #
19278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19280 # following values.
19281
19282 _ACEOF
19283
19284 # The following way of writing the cache mishandles newlines in values,
19285 # but we know of no workaround that is simple, portable, and efficient.
19286 # So, we kill variables containing newlines.
19287 # Ultrix sh set writes to stderr and can't be redirected directly,
19288 # and sets the high bit in the cache file unless we assign to the vars.
19289 (
19290 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19291 eval ac_val=\$$ac_var
19292 case $ac_val in #(
19293 *${as_nl}*)
19294 case $ac_var in #(
19295 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19296 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19297 esac
19298 case $ac_var in #(
19299 _ | IFS | as_nl) ;; #(
19300 *) $as_unset $ac_var ;;
19301 esac ;;
19302 esac
19303 done
19304
19305 (set) 2>&1 |
19306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19307 *${as_nl}ac_space=\ *)
19308 # `set' does not quote correctly, so add quotes (double-quote
19309 # substitution turns \\\\ into \\, and sed turns \\ into \).
19310 sed -n \
19311 "s/'/'\\\\''/g;
19312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19313 ;; #(
19314 *)
19315 # `set' quotes correctly as required by POSIX, so do not add quotes.
19316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19317 ;;
19318 esac |
19319 sort
19320 ) |
19321 sed '
19322 /^ac_cv_env_/b end
19323 t clear
19324 :clear
19325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19326 t end
19327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19328 :end' >>confcache
19329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19330 if test -w "$cache_file"; then
19331 test "x$cache_file" != "x/dev/null" &&
19332 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19333 echo "$as_me: updating cache $cache_file" >&6;}
19334 cat confcache >$cache_file
19335 else
19336 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19337 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19338 fi
19339 fi
19340 rm -f confcache
19341
19342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19343 # Let make expand exec_prefix.
19344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19345
19346 DEFS=-DHAVE_CONFIG_H
19347
19348 ac_libobjs=
19349 ac_ltlibobjs=
19350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19351 # 1. Remove the extension, and $U if already installed.
19352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19353 ac_i=`echo "$ac_i" | sed "$ac_script"`
19354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19355 # will be set to the directory where LIBOBJS objects are built.
19356 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19357 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19358 done
19359 LIBOBJS=$ac_libobjs
19360
19361 LTLIBOBJS=$ac_ltlibobjs
19362
19363
19364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19365 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19366 Usually this means the macro was only invoked conditionally." >&5
19367 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19368 Usually this means the macro was only invoked conditionally." >&2;}
19369 { (exit 1); exit 1; }; }
19370 fi
19371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19372 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19373 Usually this means the macro was only invoked conditionally." >&5
19374 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&2;}
19376 { (exit 1); exit 1; }; }
19377 fi
19378 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19379 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19380 Usually this means the macro was only invoked conditionally." >&5
19381 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&2;}
19383 { (exit 1); exit 1; }; }
19384 fi
19385
19386 : ${CONFIG_STATUS=./config.status}
19387 ac_clean_files_save=$ac_clean_files
19388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19391 cat >$CONFIG_STATUS <<_ACEOF
19392 #! $SHELL
19393 # Generated by $as_me.
19394 # Run this file to recreate the current configuration.
19395 # Compiler output produced by configure, useful for debugging
19396 # configure, is in config.log if it exists.
19397
19398 debug=false
19399 ac_cs_recheck=false
19400 ac_cs_silent=false
19401 SHELL=\${CONFIG_SHELL-$SHELL}
19402 _ACEOF
19403
19404 cat >>$CONFIG_STATUS <<\_ACEOF
19405 ## --------------------- ##
19406 ## M4sh Initialization. ##
19407 ## --------------------- ##
19408
19409 # Be more Bourne compatible
19410 DUALCASE=1; export DUALCASE # for MKS sh
19411 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19412 emulate sh
19413 NULLCMD=:
19414 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19415 # is contrary to our usage. Disable this feature.
19416 alias -g '${1+"$@"}'='"$@"'
19417 setopt NO_GLOB_SUBST
19418 else
19419 case `(set -o) 2>/dev/null` in
19420 *posix*) set -o posix ;;
19421 esac
19422
19423 fi
19424
19425
19426
19427
19428 # PATH needs CR
19429 # Avoid depending upon Character Ranges.
19430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19433 as_cr_digits='0123456789'
19434 as_cr_alnum=$as_cr_Letters$as_cr_digits
19435
19436 # The user is always right.
19437 if test "${PATH_SEPARATOR+set}" != set; then
19438 echo "#! /bin/sh" >conf$$.sh
19439 echo "exit 0" >>conf$$.sh
19440 chmod +x conf$$.sh
19441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19442 PATH_SEPARATOR=';'
19443 else
19444 PATH_SEPARATOR=:
19445 fi
19446 rm -f conf$$.sh
19447 fi
19448
19449 # Support unset when possible.
19450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19451 as_unset=unset
19452 else
19453 as_unset=false
19454 fi
19455
19456
19457 # IFS
19458 # We need space, tab and new line, in precisely that order. Quoting is
19459 # there to prevent editors from complaining about space-tab.
19460 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19461 # splitting by setting IFS to empty value.)
19462 as_nl='
19463 '
19464 IFS=" "" $as_nl"
19465
19466 # Find who we are. Look in the path if we contain no directory separator.
19467 case $0 in
19468 *[\\/]* ) as_myself=$0 ;;
19469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19471 do
19472 IFS=$as_save_IFS
19473 test -z "$as_dir" && as_dir=.
19474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19475 done
19476 IFS=$as_save_IFS
19477
19478 ;;
19479 esac
19480 # We did not find ourselves, most probably we were run as `sh COMMAND'
19481 # in which case we are not to be found in the path.
19482 if test "x$as_myself" = x; then
19483 as_myself=$0
19484 fi
19485 if test ! -f "$as_myself"; then
19486 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19487 { (exit 1); exit 1; }
19488 fi
19489
19490 # Work around bugs in pre-3.0 UWIN ksh.
19491 for as_var in ENV MAIL MAILPATH
19492 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19493 done
19494 PS1='$ '
19495 PS2='> '
19496 PS4='+ '
19497
19498 # NLS nuisances.
19499 for as_var in \
19500 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19501 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19502 LC_TELEPHONE LC_TIME
19503 do
19504 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19505 eval $as_var=C; export $as_var
19506 else
19507 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19508 fi
19509 done
19510
19511 # Required to use basename.
19512 if expr a : '\(a\)' >/dev/null 2>&1 &&
19513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19514 as_expr=expr
19515 else
19516 as_expr=false
19517 fi
19518
19519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19520 as_basename=basename
19521 else
19522 as_basename=false
19523 fi
19524
19525
19526 # Name of the executable.
19527 as_me=`$as_basename -- "$0" ||
19528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19529 X"$0" : 'X\(//\)$' \| \
19530 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19531 echo X/"$0" |
19532 sed '/^.*\/\([^/][^/]*\)\/*$/{
19533 s//\1/
19534 q
19535 }
19536 /^X\/\(\/\/\)$/{
19537 s//\1/
19538 q
19539 }
19540 /^X\/\(\/\).*/{
19541 s//\1/
19542 q
19543 }
19544 s/.*/./; q'`
19545
19546 # CDPATH.
19547 $as_unset CDPATH
19548
19549
19550
19551 as_lineno_1=$LINENO
19552 as_lineno_2=$LINENO
19553 test "x$as_lineno_1" != "x$as_lineno_2" &&
19554 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19555
19556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19557 # uniformly replaced by the line number. The first 'sed' inserts a
19558 # line-number line after each line using $LINENO; the second 'sed'
19559 # does the real work. The second script uses 'N' to pair each
19560 # line-number line with the line containing $LINENO, and appends
19561 # trailing '-' during substitution so that $LINENO is not a special
19562 # case at line end.
19563 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19564 # scripts with optimization help from Paolo Bonzini. Blame Lee
19565 # E. McMahon (1931-1989) for sed's syntax. :-)
19566 sed -n '
19567 p
19568 /[$]LINENO/=
19569 ' <$as_myself |
19570 sed '
19571 s/[$]LINENO.*/&-/
19572 t lineno
19573 b
19574 :lineno
19575 N
19576 :loop
19577 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19578 t loop
19579 s/-\n.*//
19580 ' >$as_me.lineno &&
19581 chmod +x "$as_me.lineno" ||
19582 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19583 { (exit 1); exit 1; }; }
19584
19585 # Don't try to exec as it changes $[0], causing all sort of problems
19586 # (the dirname of $[0] is not the place where we might find the
19587 # original and so on. Autoconf is especially sensitive to this).
19588 . "./$as_me.lineno"
19589 # Exit status is that of the last command.
19590 exit
19591 }
19592
19593
19594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19595 as_dirname=dirname
19596 else
19597 as_dirname=false
19598 fi
19599
19600 ECHO_C= ECHO_N= ECHO_T=
19601 case `echo -n x` in
19602 -n*)
19603 case `echo 'x\c'` in
19604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19605 *) ECHO_C='\c';;
19606 esac;;
19607 *)
19608 ECHO_N='-n';;
19609 esac
19610
19611 if expr a : '\(a\)' >/dev/null 2>&1 &&
19612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19613 as_expr=expr
19614 else
19615 as_expr=false
19616 fi
19617
19618 rm -f conf$$ conf$$.exe conf$$.file
19619 if test -d conf$$.dir; then
19620 rm -f conf$$.dir/conf$$.file
19621 else
19622 rm -f conf$$.dir
19623 mkdir conf$$.dir
19624 fi
19625 echo >conf$$.file
19626 if ln -s conf$$.file conf$$ 2>/dev/null; then
19627 as_ln_s='ln -s'
19628 # ... but there are two gotchas:
19629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19631 # In both cases, we have to default to `cp -p'.
19632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19633 as_ln_s='cp -p'
19634 elif ln conf$$.file conf$$ 2>/dev/null; then
19635 as_ln_s=ln
19636 else
19637 as_ln_s='cp -p'
19638 fi
19639 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19640 rmdir conf$$.dir 2>/dev/null
19641
19642 if mkdir -p . 2>/dev/null; then
19643 as_mkdir_p=:
19644 else
19645 test -d ./-p && rmdir ./-p
19646 as_mkdir_p=false
19647 fi
19648
19649 if test -x / >/dev/null 2>&1; then
19650 as_test_x='test -x'
19651 else
19652 if ls -dL / >/dev/null 2>&1; then
19653 as_ls_L_option=L
19654 else
19655 as_ls_L_option=
19656 fi
19657 as_test_x='
19658 eval sh -c '\''
19659 if test -d "$1"; then
19660 test -d "$1/.";
19661 else
19662 case $1 in
19663 -*)set "./$1";;
19664 esac;
19665 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19666 ???[sx]*):;;*)false;;esac;fi
19667 '\'' sh
19668 '
19669 fi
19670 as_executable_p=$as_test_x
19671
19672 # Sed expression to map a string onto a valid CPP name.
19673 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19674
19675 # Sed expression to map a string onto a valid variable name.
19676 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19677
19678
19679 exec 6>&1
19680
19681 # Save the log message, to keep $[0] and so on meaningful, and to
19682 # report actual input values of CONFIG_FILES etc. instead of their
19683 # values after options handling.
19684 ac_log="
19685 This file was extended by $as_me, which was
19686 generated by GNU Autoconf 2.61. Invocation command line was
19687
19688 CONFIG_FILES = $CONFIG_FILES
19689 CONFIG_HEADERS = $CONFIG_HEADERS
19690 CONFIG_LINKS = $CONFIG_LINKS
19691 CONFIG_COMMANDS = $CONFIG_COMMANDS
19692 $ $0 $@
19693
19694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19695 "
19696
19697 _ACEOF
19698
19699 cat >>$CONFIG_STATUS <<_ACEOF
19700 # Files that config.status was made for.
19701 config_files="$ac_config_files"
19702 config_headers="$ac_config_headers"
19703 config_commands="$ac_config_commands"
19704
19705 _ACEOF
19706
19707 cat >>$CONFIG_STATUS <<\_ACEOF
19708 ac_cs_usage="\
19709 \`$as_me' instantiates files from templates according to the
19710 current configuration.
19711
19712 Usage: $0 [OPTIONS] [FILE]...
19713
19714 -h, --help print this help, then exit
19715 -V, --version print version number and configuration settings, then exit
19716 -q, --quiet do not print progress messages
19717 -d, --debug don't remove temporary files
19718 --recheck update $as_me by reconfiguring in the same conditions
19719 --file=FILE[:TEMPLATE]
19720 instantiate the configuration file FILE
19721 --header=FILE[:TEMPLATE]
19722 instantiate the configuration header FILE
19723
19724 Configuration files:
19725 $config_files
19726
19727 Configuration headers:
19728 $config_headers
19729
19730 Configuration commands:
19731 $config_commands
19732
19733 Report bugs to <[email protected]>."
19734
19735 _ACEOF
19736 cat >>$CONFIG_STATUS <<_ACEOF
19737 ac_cs_version="\\
19738 config.status
19739 configured by $0, generated by GNU Autoconf 2.61,
19740 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19741
19742 Copyright (C) 2006 Free Software Foundation, Inc.
19743 This config.status script is free software; the Free Software Foundation
19744 gives unlimited permission to copy, distribute and modify it."
19745
19746 ac_pwd='$ac_pwd'
19747 srcdir='$srcdir'
19748 INSTALL='$INSTALL'
19749 MKDIR_P='$MKDIR_P'
19750 _ACEOF
19751
19752 cat >>$CONFIG_STATUS <<\_ACEOF
19753 # If no file are specified by the user, then we need to provide default
19754 # value. By we need to know if files were specified by the user.
19755 ac_need_defaults=:
19756 while test $# != 0
19757 do
19758 case $1 in
19759 --*=*)
19760 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19761 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19762 ac_shift=:
19763 ;;
19764 *)
19765 ac_option=$1
19766 ac_optarg=$2
19767 ac_shift=shift
19768 ;;
19769 esac
19770
19771 case $ac_option in
19772 # Handling of the options.
19773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19774 ac_cs_recheck=: ;;
19775 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19776 echo "$ac_cs_version"; exit ;;
19777 --debug | --debu | --deb | --de | --d | -d )
19778 debug=: ;;
19779 --file | --fil | --fi | --f )
19780 $ac_shift
19781 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19782 ac_need_defaults=false;;
19783 --header | --heade | --head | --hea )
19784 $ac_shift
19785 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19786 ac_need_defaults=false;;
19787 --he | --h)
19788 # Conflict between --help and --header
19789 { echo "$as_me: error: ambiguous option: $1
19790 Try \`$0 --help' for more information." >&2
19791 { (exit 1); exit 1; }; };;
19792 --help | --hel | -h )
19793 echo "$ac_cs_usage"; exit ;;
19794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19796 ac_cs_silent=: ;;
19797
19798 # This is an error.
19799 -*) { echo "$as_me: error: unrecognized option: $1
19800 Try \`$0 --help' for more information." >&2
19801 { (exit 1); exit 1; }; } ;;
19802
19803 *) ac_config_targets="$ac_config_targets $1"
19804 ac_need_defaults=false ;;
19805
19806 esac
19807 shift
19808 done
19809
19810 ac_configure_extra_args=
19811
19812 if $ac_cs_silent; then
19813 exec 6>/dev/null
19814 ac_configure_extra_args="$ac_configure_extra_args --silent"
19815 fi
19816
19817 _ACEOF
19818 cat >>$CONFIG_STATUS <<_ACEOF
19819 if \$ac_cs_recheck; then
19820 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19821 CONFIG_SHELL=$SHELL
19822 export CONFIG_SHELL
19823 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19824 fi
19825
19826 _ACEOF
19827 cat >>$CONFIG_STATUS <<\_ACEOF
19828 exec 5>>config.log
19829 {
19830 echo
19831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19832 ## Running $as_me. ##
19833 _ASBOX
19834 echo "$ac_log"
19835 } >&5
19836
19837 _ACEOF
19838 cat >>$CONFIG_STATUS <<_ACEOF
19839 #
19840 # INIT-COMMANDS
19841 #
19842 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19843
19844 _ACEOF
19845
19846 cat >>$CONFIG_STATUS <<\_ACEOF
19847
19848 # Handling of arguments.
19849 for ac_config_target in $ac_config_targets
19850 do
19851 case $ac_config_target in
19852 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19854 "lib3ds-config") CONFIG_FILES="$CONFIG_FILES lib3ds-config" ;;
19855 "lib3ds-config.1") CONFIG_FILES="$CONFIG_FILES lib3ds-config.1" ;;
19856 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19857 "lib3ds/Makefile") CONFIG_FILES="$CONFIG_FILES lib3ds/Makefile" ;;
19858 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19859 "tools/3dsdump.1") CONFIG_FILES="$CONFIG_FILES tools/3dsdump.1" ;;
19860 "lib3ds.spec") CONFIG_FILES="$CONFIG_FILES lib3ds.spec" ;;
19861 "3ds-utils.spec") CONFIG_FILES="$CONFIG_FILES 3ds-utils.spec" ;;
19862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19863
19864 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19865 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19866 { (exit 1); exit 1; }; };;
19867 esac
19868 done
19869
19870
19871 # If the user did not use the arguments to specify the items to instantiate,
19872 # then the envvar interface is used. Set only those that are not.
19873 # We use the long form for the default assignment because of an extremely
19874 # bizarre bug on SunOS 4.1.3.
19875 if $ac_need_defaults; then
19876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19879 fi
19880
19881 # Have a temporary directory for convenience. Make it in the build tree
19882 # simply because there is no reason against having it here, and in addition,
19883 # creating and moving files from /tmp can sometimes cause problems.
19884 # Hook for its removal unless debugging.
19885 # Note that there is a small window in which the directory will not be cleaned:
19886 # after its creation but before its name has been assigned to `$tmp'.
19887 $debug ||
19888 {
19889 tmp=
19890 trap 'exit_status=$?
19891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19892 ' 0
19893 trap '{ (exit 1); exit 1; }' 1 2 13 15
19894 }
19895 # Create a (secure) tmp directory for tmp files.
19896
19897 {
19898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19899 test -n "$tmp" && test -d "$tmp"
19900 } ||
19901 {
19902 tmp=./conf$$-$RANDOM
19903 (umask 077 && mkdir "$tmp")
19904 } ||
19905 {
19906 echo "$me: cannot create a temporary directory in ." >&2
19907 { (exit 1); exit 1; }
19908 }
19909
19910 #
19911 # Set up the sed scripts for CONFIG_FILES section.
19912 #
19913
19914 # No need to generate the scripts if there are no CONFIG_FILES.
19915 # This happens for instance when ./config.status config.h
19916 if test -n "$CONFIG_FILES"; then
19917
19918 _ACEOF
19919
19920
19921
19922 ac_delim='%!_!# '
19923 for ac_last_try in false false false false false :; do
19924 cat >conf$$subs.sed <<_ACEOF
19925 SHELL!$SHELL$ac_delim
19926 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19927 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19928 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19929 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19930 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19931 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19932 exec_prefix!$exec_prefix$ac_delim
19933 prefix!$prefix$ac_delim
19934 program_transform_name!$program_transform_name$ac_delim
19935 bindir!$bindir$ac_delim
19936 sbindir!$sbindir$ac_delim
19937 libexecdir!$libexecdir$ac_delim
19938 datarootdir!$datarootdir$ac_delim
19939 datadir!$datadir$ac_delim
19940 sysconfdir!$sysconfdir$ac_delim
19941 sharedstatedir!$sharedstatedir$ac_delim
19942 localstatedir!$localstatedir$ac_delim
19943 includedir!$includedir$ac_delim
19944 oldincludedir!$oldincludedir$ac_delim
19945 docdir!$docdir$ac_delim
19946 infodir!$infodir$ac_delim
19947 htmldir!$htmldir$ac_delim
19948 dvidir!$dvidir$ac_delim
19949 pdfdir!$pdfdir$ac_delim
19950 psdir!$psdir$ac_delim
19951 libdir!$libdir$ac_delim
19952 localedir!$localedir$ac_delim
19953 mandir!$mandir$ac_delim
19954 DEFS!$DEFS$ac_delim
19955 ECHO_C!$ECHO_C$ac_delim
19956 ECHO_N!$ECHO_N$ac_delim
19957 ECHO_T!$ECHO_T$ac_delim
19958 LIBS!$LIBS$ac_delim
19959 build_alias!$build_alias$ac_delim
19960 host_alias!$host_alias$ac_delim
19961 target_alias!$target_alias$ac_delim
19962 LIB3DS_MAJOR_VERSION!$LIB3DS_MAJOR_VERSION$ac_delim
19963 LIB3DS_MINOR_VERSION!$LIB3DS_MINOR_VERSION$ac_delim
19964 LIB3DS_MICRO_VERSION!$LIB3DS_MICRO_VERSION$ac_delim
19965 LIB3DS_VERSION!$LIB3DS_VERSION$ac_delim
19966 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19967 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19968 INSTALL_DATA!$INSTALL_DATA$ac_delim
19969 am__isrc!$am__isrc$ac_delim
19970 CYGPATH_W!$CYGPATH_W$ac_delim
19971 PACKAGE!$PACKAGE$ac_delim
19972 VERSION!$VERSION$ac_delim
19973 ACLOCAL!$ACLOCAL$ac_delim
19974 AUTOCONF!$AUTOCONF$ac_delim
19975 AUTOMAKE!$AUTOMAKE$ac_delim
19976 AUTOHEADER!$AUTOHEADER$ac_delim
19977 MAKEINFO!$MAKEINFO$ac_delim
19978 install_sh!$install_sh$ac_delim
19979 STRIP!$STRIP$ac_delim
19980 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19981 mkdir_p!$mkdir_p$ac_delim
19982 AWK!$AWK$ac_delim
19983 SET_MAKE!$SET_MAKE$ac_delim
19984 am__leading_dot!$am__leading_dot$ac_delim
19985 AMTAR!$AMTAR$ac_delim
19986 am__tar!$am__tar$ac_delim
19987 am__untar!$am__untar$ac_delim
19988 CC!$CC$ac_delim
19989 CFLAGS!$CFLAGS$ac_delim
19990 LDFLAGS!$LDFLAGS$ac_delim
19991 CPPFLAGS!$CPPFLAGS$ac_delim
19992 ac_ct_CC!$ac_ct_CC$ac_delim
19993 EXEEXT!$EXEEXT$ac_delim
19994 OBJEXT!$OBJEXT$ac_delim
19995 DEPDIR!$DEPDIR$ac_delim
19996 am__include!$am__include$ac_delim
19997 am__quote!$am__quote$ac_delim
19998 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19999 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20000 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20001 CCDEPMODE!$CCDEPMODE$ac_delim
20002 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20003 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20004 build!$build$ac_delim
20005 build_cpu!$build_cpu$ac_delim
20006 build_vendor!$build_vendor$ac_delim
20007 build_os!$build_os$ac_delim
20008 host!$host$ac_delim
20009 host_cpu!$host_cpu$ac_delim
20010 host_vendor!$host_vendor$ac_delim
20011 host_os!$host_os$ac_delim
20012 SED!$SED$ac_delim
20013 GREP!$GREP$ac_delim
20014 EGREP!$EGREP$ac_delim
20015 LN_S!$LN_S$ac_delim
20016 ECHO!$ECHO$ac_delim
20017 AR!$AR$ac_delim
20018 RANLIB!$RANLIB$ac_delim
20019 CPP!$CPP$ac_delim
20020 CXX!$CXX$ac_delim
20021 CXXFLAGS!$CXXFLAGS$ac_delim
20022 _ACEOF
20023
20024 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20025 break
20026 elif $ac_last_try; then
20027 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20028 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20029 { (exit 1); exit 1; }; }
20030 else
20031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20032 fi
20033 done
20034
20035 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20036 if test -n "$ac_eof"; then
20037 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20038 ac_eof=`expr $ac_eof + 1`
20039 fi
20040
20041 cat >>$CONFIG_STATUS <<_ACEOF
20042 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20044 _ACEOF
20045 sed '
20046 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20047 s/^/s,@/; s/!/@,|#_!!_#|/
20048 :n
20049 t n
20050 s/'"$ac_delim"'$/,g/; t
20051 s/$/\\/; p
20052 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20053 ' >>$CONFIG_STATUS <conf$$subs.sed
20054 rm -f conf$$subs.sed
20055 cat >>$CONFIG_STATUS <<_ACEOF
20056 CEOF$ac_eof
20057 _ACEOF
20058
20059
20060 ac_delim='%!_!# '
20061 for ac_last_try in false false false false false :; do
20062 cat >conf$$subs.sed <<_ACEOF
20063 ac_ct_CXX!$ac_ct_CXX$ac_delim
20064 CXXDEPMODE!$CXXDEPMODE$ac_delim
20065 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20066 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20067 CXXCPP!$CXXCPP$ac_delim
20068 F77!$F77$ac_delim
20069 FFLAGS!$FFLAGS$ac_delim
20070 ac_ct_F77!$ac_ct_F77$ac_delim
20071 LIBTOOL!$LIBTOOL$ac_delim
20072 LIBOBJS!$LIBOBJS$ac_delim
20073 LTLIBOBJS!$LTLIBOBJS$ac_delim
20074 _ACEOF
20075
20076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
20077 break
20078 elif $ac_last_try; then
20079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20081 { (exit 1); exit 1; }; }
20082 else
20083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20084 fi
20085 done
20086
20087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20088 if test -n "$ac_eof"; then
20089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20090 ac_eof=`expr $ac_eof + 1`
20091 fi
20092
20093 cat >>$CONFIG_STATUS <<_ACEOF
20094 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20096 _ACEOF
20097 sed '
20098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20099 s/^/s,@/; s/!/@,|#_!!_#|/
20100 :n
20101 t n
20102 s/'"$ac_delim"'$/,g/; t
20103 s/$/\\/; p
20104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20105 ' >>$CONFIG_STATUS <conf$$subs.sed
20106 rm -f conf$$subs.sed
20107 cat >>$CONFIG_STATUS <<_ACEOF
20108 :end
20109 s/|#_!!_#|//g
20110 CEOF$ac_eof
20111 _ACEOF
20112
20113
20114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20116 # trailing colons and then remove the whole line if VPATH becomes empty
20117 # (actually we leave an empty line to preserve line numbers).
20118 if test "x$srcdir" = x.; then
20119 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20120 s/:*\$(srcdir):*/:/
20121 s/:*\${srcdir}:*/:/
20122 s/:*@srcdir@:*/:/
20123 s/^\([^=]*=[ ]*\):*/\1/
20124 s/:*$//
20125 s/^[^=]*=[ ]*$//
20126 }'
20127 fi
20128
20129 cat >>$CONFIG_STATUS <<\_ACEOF
20130 fi # test -n "$CONFIG_FILES"
20131
20132
20133 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20134 do
20135 case $ac_tag in
20136 :[FHLC]) ac_mode=$ac_tag; continue;;
20137 esac
20138 case $ac_mode$ac_tag in
20139 :[FHL]*:*);;
20140 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20141 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20142 { (exit 1); exit 1; }; };;
20143 :[FH]-) ac_tag=-:-;;
20144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20145 esac
20146 ac_save_IFS=$IFS
20147 IFS=:
20148 set x $ac_tag
20149 IFS=$ac_save_IFS
20150 shift
20151 ac_file=$1
20152 shift
20153
20154 case $ac_mode in
20155 :L) ac_source=$1;;
20156 :[FH])
20157 ac_file_inputs=
20158 for ac_f
20159 do
20160 case $ac_f in
20161 -) ac_f="$tmp/stdin";;
20162 *) # Look for the file first in the build tree, then in the source tree
20163 # (if the path is not absolute). The absolute path cannot be DOS-style,
20164 # because $ac_f cannot contain `:'.
20165 test -f "$ac_f" ||
20166 case $ac_f in
20167 [\\/$]*) false;;
20168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20169 esac ||
20170 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20171 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20172 { (exit 1); exit 1; }; };;
20173 esac
20174 ac_file_inputs="$ac_file_inputs $ac_f"
20175 done
20176
20177 # Let's still pretend it is `configure' which instantiates (i.e., don't
20178 # use $as_me), people would be surprised to read:
20179 # /* config.h. Generated by config.status. */
20180 configure_input="Generated from "`IFS=:
20181 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20182 if test x"$ac_file" != x-; then
20183 configure_input="$ac_file. $configure_input"
20184 { echo "$as_me:$LINENO: creating $ac_file" >&5
20185 echo "$as_me: creating $ac_file" >&6;}
20186 fi
20187
20188 case $ac_tag in
20189 *:-:* | *:-) cat >"$tmp/stdin";;
20190 esac
20191 ;;
20192 esac
20193
20194 ac_dir=`$as_dirname -- "$ac_file" ||
20195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20196 X"$ac_file" : 'X\(//\)[^/]' \| \
20197 X"$ac_file" : 'X\(//\)$' \| \
20198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20199 echo X"$ac_file" |
20200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20201 s//\1/
20202 q
20203 }
20204 /^X\(\/\/\)[^/].*/{
20205 s//\1/
20206 q
20207 }
20208 /^X\(\/\/\)$/{
20209 s//\1/
20210 q
20211 }
20212 /^X\(\/\).*/{
20213 s//\1/
20214 q
20215 }
20216 s/.*/./; q'`
20217 { as_dir="$ac_dir"
20218 case $as_dir in #(
20219 -*) as_dir=./$as_dir;;
20220 esac
20221 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20222 as_dirs=
20223 while :; do
20224 case $as_dir in #(
20225 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20226 *) as_qdir=$as_dir;;
20227 esac
20228 as_dirs="'$as_qdir' $as_dirs"
20229 as_dir=`$as_dirname -- "$as_dir" ||
20230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20231 X"$as_dir" : 'X\(//\)[^/]' \| \
20232 X"$as_dir" : 'X\(//\)$' \| \
20233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20234 echo X"$as_dir" |
20235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20236 s//\1/
20237 q
20238 }
20239 /^X\(\/\/\)[^/].*/{
20240 s//\1/
20241 q
20242 }
20243 /^X\(\/\/\)$/{
20244 s//\1/
20245 q
20246 }
20247 /^X\(\/\).*/{
20248 s//\1/
20249 q
20250 }
20251 s/.*/./; q'`
20252 test -d "$as_dir" && break
20253 done
20254 test -z "$as_dirs" || eval "mkdir $as_dirs"
20255 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20256 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20257 { (exit 1); exit 1; }; }; }
20258 ac_builddir=.
20259
20260 case "$ac_dir" in
20261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20262 *)
20263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20264 # A ".." for each directory in $ac_dir_suffix.
20265 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20266 case $ac_top_builddir_sub in
20267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20269 esac ;;
20270 esac
20271 ac_abs_top_builddir=$ac_pwd
20272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20273 # for backward compatibility:
20274 ac_top_builddir=$ac_top_build_prefix
20275
20276 case $srcdir in
20277 .) # We are building in place.
20278 ac_srcdir=.
20279 ac_top_srcdir=$ac_top_builddir_sub
20280 ac_abs_top_srcdir=$ac_pwd ;;
20281 [\\/]* | ?:[\\/]* ) # Absolute name.
20282 ac_srcdir=$srcdir$ac_dir_suffix;
20283 ac_top_srcdir=$srcdir
20284 ac_abs_top_srcdir=$srcdir ;;
20285 *) # Relative name.
20286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20287 ac_top_srcdir=$ac_top_build_prefix$srcdir
20288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20289 esac
20290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20291
20292
20293 case $ac_mode in
20294 :F)
20295 #
20296 # CONFIG_FILE
20297 #
20298
20299 case $INSTALL in
20300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20302 esac
20303 ac_MKDIR_P=$MKDIR_P
20304 case $MKDIR_P in
20305 [\\/$]* | ?:[\\/]* ) ;;
20306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20307 esac
20308 _ACEOF
20309
20310 cat >>$CONFIG_STATUS <<\_ACEOF
20311 # If the template does not know about datarootdir, expand it.
20312 # FIXME: This hack should be removed a few years after 2.60.
20313 ac_datarootdir_hack=; ac_datarootdir_seen=
20314
20315 case `sed -n '/datarootdir/ {
20316 p
20317 q
20318 }
20319 /@datadir@/p
20320 /@docdir@/p
20321 /@infodir@/p
20322 /@localedir@/p
20323 /@mandir@/p
20324 ' $ac_file_inputs` in
20325 *datarootdir*) ac_datarootdir_seen=yes;;
20326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20327 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20328 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20329 _ACEOF
20330 cat >>$CONFIG_STATUS <<_ACEOF
20331 ac_datarootdir_hack='
20332 s&@datadir@&$datadir&g
20333 s&@docdir@&$docdir&g
20334 s&@infodir@&$infodir&g
20335 s&@localedir@&$localedir&g
20336 s&@mandir@&$mandir&g
20337 s&\\\${datarootdir}&$datarootdir&g' ;;
20338 esac
20339 _ACEOF
20340
20341 # Neutralize VPATH when `$srcdir' = `.'.
20342 # Shell code in configure.ac might set extrasub.
20343 # FIXME: do we really want to maintain this feature?
20344 cat >>$CONFIG_STATUS <<_ACEOF
20345 sed "$ac_vpsub
20346 $extrasub
20347 _ACEOF
20348 cat >>$CONFIG_STATUS <<\_ACEOF
20349 :t
20350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20351 s&@configure_input@&$configure_input&;t t
20352 s&@top_builddir@&$ac_top_builddir_sub&;t t
20353 s&@srcdir@&$ac_srcdir&;t t
20354 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20355 s&@top_srcdir@&$ac_top_srcdir&;t t
20356 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20357 s&@builddir@&$ac_builddir&;t t
20358 s&@abs_builddir@&$ac_abs_builddir&;t t
20359 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20360 s&@INSTALL@&$ac_INSTALL&;t t
20361 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20362 $ac_datarootdir_hack
20363 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20364
20365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20368 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20369 which seems to be undefined. Please make sure it is defined." >&5
20370 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20371 which seems to be undefined. Please make sure it is defined." >&2;}
20372
20373 rm -f "$tmp/stdin"
20374 case $ac_file in
20375 -) cat "$tmp/out"; rm -f "$tmp/out";;
20376 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20377 esac
20378 ;;
20379 :H)
20380 #
20381 # CONFIG_HEADER
20382 #
20383 _ACEOF
20384
20385 # Transform confdefs.h into a sed script `conftest.defines', that
20386 # substitutes the proper values into config.h.in to produce config.h.
20387 rm -f conftest.defines conftest.tail
20388 # First, append a space to every undef/define line, to ease matching.
20389 echo 's/$/ /' >conftest.defines
20390 # Then, protect against being on the right side of a sed subst, or in
20391 # an unquoted here document, in config.status. If some macros were
20392 # called several times there might be several #defines for the same
20393 # symbol, which is useless. But do not sort them, since the last
20394 # AC_DEFINE must be honored.
20395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20396 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20397 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20398 # PARAMS is the parameter list in the macro definition--in most cases, it's
20399 # just an empty string.
20400 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20401 ac_dB='\\)[ (].*,\\1define\\2'
20402 ac_dC=' '
20403 ac_dD=' ,'
20404
20405 uniq confdefs.h |
20406 sed -n '
20407 t rset
20408 :rset
20409 s/^[ ]*#[ ]*define[ ][ ]*//
20410 t ok
20411 d
20412 :ok
20413 s/[\\&,]/\\&/g
20414 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20415 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20416 ' >>conftest.defines
20417
20418 # Remove the space that was appended to ease matching.
20419 # Then replace #undef with comments. This is necessary, for
20420 # example, in the case of _POSIX_SOURCE, which is predefined and required
20421 # on some systems where configure will not decide to define it.
20422 # (The regexp can be short, since the line contains either #define or #undef.)
20423 echo 's/ $//
20424 s,^[ #]*u.*,/* & */,' >>conftest.defines
20425
20426 # Break up conftest.defines:
20427 ac_max_sed_lines=50
20428
20429 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20430 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20431 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20432 # et cetera.
20433 ac_in='$ac_file_inputs'
20434 ac_out='"$tmp/out1"'
20435 ac_nxt='"$tmp/out2"'
20436
20437 while :
20438 do
20439 # Write a here document:
20440 cat >>$CONFIG_STATUS <<_ACEOF
20441 # First, check the format of the line:
20442 cat >"\$tmp/defines.sed" <<\\CEOF
20443 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20444 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20445 b
20446 :def
20447 _ACEOF
20448 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20449 echo 'CEOF
20450 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20451 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20452 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20453 grep . conftest.tail >/dev/null || break
20454 rm -f conftest.defines
20455 mv conftest.tail conftest.defines
20456 done
20457 rm -f conftest.defines conftest.tail
20458
20459 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20460 cat >>$CONFIG_STATUS <<\_ACEOF
20461 if test x"$ac_file" != x-; then
20462 echo "/* $configure_input */" >"$tmp/config.h"
20463 cat "$ac_result" >>"$tmp/config.h"
20464 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20465 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20466 echo "$as_me: $ac_file is unchanged" >&6;}
20467 else
20468 rm -f $ac_file
20469 mv "$tmp/config.h" $ac_file
20470 fi
20471 else
20472 echo "/* $configure_input */"
20473 cat "$ac_result"
20474 fi
20475 rm -f "$tmp/out12"
20476 # Compute $ac_file's index in $config_headers.
20477 _am_stamp_count=1
20478 for _am_header in $config_headers :; do
20479 case $_am_header in
20480 $ac_file | $ac_file:* )
20481 break ;;
20482 * )
20483 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20484 esac
20485 done
20486 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20487 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20488 X$ac_file : 'X\(//\)[^/]' \| \
20489 X$ac_file : 'X\(//\)$' \| \
20490 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20491 echo X$ac_file |
20492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20493 s//\1/
20494 q
20495 }
20496 /^X\(\/\/\)[^/].*/{
20497 s//\1/
20498 q
20499 }
20500 /^X\(\/\/\)$/{
20501 s//\1/
20502 q
20503 }
20504 /^X\(\/\).*/{
20505 s//\1/
20506 q
20507 }
20508 s/.*/./; q'`/stamp-h$_am_stamp_count
20509 ;;
20510
20511 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20512 echo "$as_me: executing $ac_file commands" >&6;}
20513 ;;
20514 esac
20515
20516
20517 case $ac_file$ac_mode in
20518 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20519 # Strip MF so we end up with the name of the file.
20520 mf=`echo "$mf" | sed -e 's/:.*$//'`
20521 # Check whether this is an Automake generated Makefile or not.
20522 # We used to match only the files named `Makefile.in', but
20523 # some people rename them; so instead we look at the file content.
20524 # Grep'ing the first line is not enough: some people post-process
20525 # each Makefile.in and add a new line on top of each file to say so.
20526 # Grep'ing the whole file is not good either: AIX grep has a line
20527 # limit of 2048, but all sed's we know have understand at least 4000.
20528 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20529 dirpart=`$as_dirname -- "$mf" ||
20530 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20531 X"$mf" : 'X\(//\)[^/]' \| \
20532 X"$mf" : 'X\(//\)$' \| \
20533 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20534 echo X"$mf" |
20535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20536 s//\1/
20537 q
20538 }
20539 /^X\(\/\/\)[^/].*/{
20540 s//\1/
20541 q
20542 }
20543 /^X\(\/\/\)$/{
20544 s//\1/
20545 q
20546 }
20547 /^X\(\/\).*/{
20548 s//\1/
20549 q
20550 }
20551 s/.*/./; q'`
20552 else
20553 continue
20554 fi
20555 # Extract the definition of DEPDIR, am__include, and am__quote
20556 # from the Makefile without running `make'.
20557 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20558 test -z "$DEPDIR" && continue
20559 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20560 test -z "am__include" && continue
20561 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20562 # When using ansi2knr, U may be empty or an underscore; expand it
20563 U=`sed -n 's/^U = //p' < "$mf"`
20564 # Find all dependency output files, they are included files with
20565 # $(DEPDIR) in their names. We invoke sed twice because it is the
20566 # simplest approach to changing $(DEPDIR) to its actual value in the
20567 # expansion.
20568 for file in `sed -n "
20569 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20570 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20571 # Make sure the directory exists.
20572 test -f "$dirpart/$file" && continue
20573 fdir=`$as_dirname -- "$file" ||
20574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20575 X"$file" : 'X\(//\)[^/]' \| \
20576 X"$file" : 'X\(//\)$' \| \
20577 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20578 echo X"$file" |
20579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20580 s//\1/
20581 q
20582 }
20583 /^X\(\/\/\)[^/].*/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)$/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\).*/{
20592 s//\1/
20593 q
20594 }
20595 s/.*/./; q'`
20596 { as_dir=$dirpart/$fdir
20597 case $as_dir in #(
20598 -*) as_dir=./$as_dir;;
20599 esac
20600 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20601 as_dirs=
20602 while :; do
20603 case $as_dir in #(
20604 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20605 *) as_qdir=$as_dir;;
20606 esac
20607 as_dirs="'$as_qdir' $as_dirs"
20608 as_dir=`$as_dirname -- "$as_dir" ||
20609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20610 X"$as_dir" : 'X\(//\)[^/]' \| \
20611 X"$as_dir" : 'X\(//\)$' \| \
20612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20613 echo X"$as_dir" |
20614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20615 s//\1/
20616 q
20617 }
20618 /^X\(\/\/\)[^/].*/{
20619 s//\1/
20620 q
20621 }
20622 /^X\(\/\/\)$/{
20623 s//\1/
20624 q
20625 }
20626 /^X\(\/\).*/{
20627 s//\1/
20628 q
20629 }
20630 s/.*/./; q'`
20631 test -d "$as_dir" && break
20632 done
20633 test -z "$as_dirs" || eval "mkdir $as_dirs"
20634 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20635 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20636 { (exit 1); exit 1; }; }; }
20637 # echo "creating $dirpart/$file"
20638 echo '# dummy' > "$dirpart/$file"
20639 done
20640 done
20641 ;;
20642 "default":C) chmod a+x lib3ds-config ;;
20643
20644 esac
20645 done # for ac_tag
20646
20647
20648 { (exit 0); exit 0; }
20649 _ACEOF
20650 chmod +x $CONFIG_STATUS
20651 ac_clean_files=$ac_clean_files_save
20652
20653
20654 # configure is writing to config.log, and then calls config.status.
20655 # config.status does its own redirection, appending to config.log.
20656 # Unfortunately, on DOS this fails, as config.log is still kept open
20657 # by configure, so config.status won't be able to write to it; its
20658 # output is simply discarded. So we exec the FD to /dev/null,
20659 # effectively closing config.log, so it can be properly (re)opened and
20660 # appended to by config.status. When coming back to configure, we
20661 # need to make the FD available again.
20662 if test "$no_create" != yes; then
20663 ac_cs_success=:
20664 ac_config_status_args=
20665 test "$silent" = yes &&
20666 ac_config_status_args="$ac_config_status_args --quiet"
20667 exec 5>/dev/null
20668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20669 exec 5>>config.log
20670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20671 # would make configure fail if this is the last instruction.
20672 $ac_cs_success || { (exit 1); exit 1; }
20673 fi
20674