Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for lv2dynparam1 2.
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='lv2dynparam1'
728 PACKAGE_TARNAME='lv2dynparam1'
729 PACKAGE_VERSION='2'
730 PACKAGE_STRING='lv2dynparam1 2'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="lv2dynparam.h"
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 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 DEV_VERSION_TRUE
830 DEV_VERSION_FALSE
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
855 SED
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 PKG_CONFIG
875 LV2_CFLAGS
876 LV2_LIBS
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP
893 F77
894 FFLAGS
895 PKG_CONFIG
896 LV2_CFLAGS
897 LV2_LIBS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950 # If the previous option needs an argument, assign it.
951 if test -n "$ac_prev"; then
952 eval $ac_prev=\$ac_option
953 ac_prev=
954 continue
955 fi
956
957 case $ac_option in
958 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 *) ac_optarg=yes ;;
960 esac
961
962 # Accept the important Cygnus configure options, so we can diagnose typos.
963
964 case $ac_dashdash$ac_option in
965 --)
966 ac_dashdash=yes ;;
967
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 ac_prev=bindir ;;
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 bindir=$ac_optarg ;;
972
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
977
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
984
985 --config-cache | -C)
986 cache_file=config.cache ;;
987
988 -datadir | --datadir | --datadi | --datad)
989 ac_prev=datadir ;;
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
992
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
999
1000 -disable-* | --disable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007 eval enable_$ac_feature=no ;;
1008
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1013
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1018
1019 -enable-* | --enable-*)
1020 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024 { (exit 1); exit 1; }; }
1025 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026 eval enable_$ac_feature=\$ac_optarg ;;
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1047
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1052
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1082
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1156
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1215
1216 -with-* | --with-*)
1217 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232 eval with_$ac_package=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) { echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1281 fi
1282
1283 # Be sure to have absolute directory names.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1288 do
1289 eval ac_val=\$$ac_var
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 { echo "$as_me: error: Working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$0" ||
1337 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$0" : 'X\(//\)[^/]' \| \
1339 X"$0" : 'X\(//\)$' \| \
1340 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 echo X"$0" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369 { (exit 1); exit 1; }; }
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1374 { (exit 1); exit 1; }; }
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures lv2dynparam1 2 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/lv2dynparam1]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of lv2dynparam1 2:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-tags[=TAGS] include additional configurations [automatic]
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1505 F77 Fortran 77 compiler command
1506 FFLAGS Fortran 77 compiler flags
1507 PKG_CONFIG path to pkg-config utility
1508 LV2_CFLAGS C compiler flags for LV2, overriding pkg-config
1509 LV2_LIBS linker flags for LV2, overriding pkg-config
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" || continue
1522 ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1564 else
1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1568 done
1569 fi
1570
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573 cat <<\_ACEOF
1574 lv2dynparam1 configure 2
1575 generated by GNU Autoconf 2.61
1576
1577 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1578 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582 exit
1583 fi
1584 cat >config.log <<_ACEOF
1585 This file contains any messages produced by compilers while
1586 running configure, to aid debugging if configure makes a mistake.
1587
1588 It was created by lv2dynparam1 $as_me 2, which was
1589 generated by GNU Autoconf 2.61. Invocation command line was
1590
1591 $ $0 $@
1592
1593 _ACEOF
1594 exec 5>>config.log
1595 {
1596 cat <<_ASUNAME
1597 ## --------- ##
1598 ## Platform. ##
1599 ## --------- ##
1600
1601 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606
1607 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609
1610 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1611 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1612 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1613 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1614 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1615 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1616 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617
1618 _ASUNAME
1619
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 for as_dir in $PATH
1622 do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 echo "PATH: $as_dir"
1626 done
1627 IFS=$as_save_IFS
1628
1629 } >&5
1630
1631 cat >&5 <<_ACEOF
1632
1633
1634 ## ----------- ##
1635 ## Core tests. ##
1636 ## ----------- ##
1637
1638 _ACEOF
1639
1640
1641 # Keep a trace of the command line.
1642 # Strip out --no-create and --no-recursion so they do not pile up.
1643 # Strip out --silent because we don't want to record it for future runs.
1644 # Also quote any args containing shell meta-characters.
1645 # Make two passes to allow for proper duplicate-argument suppression.
1646 ac_configure_args=
1647 ac_configure_args0=
1648 ac_configure_args1=
1649 ac_must_keep_next=false
1650 for ac_pass in 1 2
1651 do
1652 for ac_arg
1653 do
1654 case $ac_arg in
1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1658 continue ;;
1659 *\'*)
1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661 esac
1662 case $ac_pass in
1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1664 2)
1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666 if test $ac_must_keep_next = true; then
1667 ac_must_keep_next=false # Got value, back to normal.
1668 else
1669 case $ac_arg in
1670 *=* | --config-cache | -C | -disable-* | --disable-* \
1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673 | -with-* | --with-* | -without-* | --without-* | --x)
1674 case "$ac_configure_args0 " in
1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 esac
1677 ;;
1678 -* ) ac_must_keep_next=true ;;
1679 esac
1680 fi
1681 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 ;;
1683 esac
1684 done
1685 done
1686 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688
1689 # When interrupted or exit'd, cleanup temporary files, and complete
1690 # config.log. We remove comments because anyway the quotes in there
1691 # would cause problems or look ugly.
1692 # WARNING: Use '\'' to represent an apostrophe within the trap.
1693 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1694 trap 'exit_status=$?
1695 # Save into config.log some information that might help in debugging.
1696 {
1697 echo
1698
1699 cat <<\_ASBOX
1700 ## ---------------- ##
1701 ## Cache variables. ##
1702 ## ---------------- ##
1703 _ASBOX
1704 echo
1705 # The following way of writing the cache mishandles newlines in values,
1706 (
1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708 eval ac_val=\$$ac_var
1709 case $ac_val in #(
1710 *${as_nl}*)
1711 case $ac_var in #(
1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 esac
1715 case $ac_var in #(
1716 _ | IFS | as_nl) ;; #(
1717 *) $as_unset $ac_var ;;
1718 esac ;;
1719 esac
1720 done
1721 (set) 2>&1 |
1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
1724 sed -n \
1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 ;; #(
1728 *)
1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1730 ;;
1731 esac |
1732 sort
1733 )
1734 echo
1735
1736 cat <<\_ASBOX
1737 ## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##
1740 _ASBOX
1741 echo
1742 for ac_var in $ac_subst_vars
1743 do
1744 eval ac_val=\$$ac_var
1745 case $ac_val in
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 esac
1748 echo "$ac_var='\''$ac_val'\''"
1749 done | sort
1750 echo
1751
1752 if test -n "$ac_subst_files"; then
1753 cat <<\_ASBOX
1754 ## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##
1757 _ASBOX
1758 echo
1759 for ac_var in $ac_subst_files
1760 do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 esac
1765 echo "$ac_var='\''$ac_val'\''"
1766 done | sort
1767 echo
1768 fi
1769
1770 if test -s confdefs.h; then
1771 cat <<\_ASBOX
1772 ## ----------- ##
1773 ## confdefs.h. ##
1774 ## ----------- ##
1775 _ASBOX
1776 echo
1777 cat confdefs.h
1778 echo
1779 fi
1780 test "$ac_signal" != 0 &&
1781 echo "$as_me: caught signal $ac_signal"
1782 echo "$as_me: exit $exit_status"
1783 } >&5
1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 exit $exit_status
1787 ' 0
1788 for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790 done
1791 ac_signal=0
1792
1793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1794 rm -f -r conftest* confdefs.h
1795
1796 # Predefined preprocessor variables.
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_NAME "$PACKAGE_NAME"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820 _ACEOF
1821
1822
1823 # Let the site file select an alternate cache file if it wants to.
1824 # Prefer explicitly selected file to automatically selected ones.
1825 if test -n "$CONFIG_SITE"; then
1826 set x "$CONFIG_SITE"
1827 elif test "x$prefix" != xNONE; then
1828 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1829 else
1830 set x "$ac_default_prefix/share/config.site" \
1831 "$ac_default_prefix/etc/config.site"
1832 fi
1833 shift
1834 for ac_site_file
1835 do
1836 if test -r "$ac_site_file"; then
1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838 echo "$as_me: loading site script $ac_site_file" >&6;}
1839 sed 's/^/| /' "$ac_site_file" >&5
1840 . "$ac_site_file"
1841 fi
1842 done
1843
1844 if test -r "$cache_file"; then
1845 # Some versions of bash will fail to source /dev/null (special
1846 # files actually), so we avoid doing that.
1847 if test -f "$cache_file"; then
1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849 echo "$as_me: loading cache $cache_file" >&6;}
1850 case $cache_file in
1851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852 *) . "./$cache_file";;
1853 esac
1854 fi
1855 else
1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857 echo "$as_me: creating cache $cache_file" >&6;}
1858 >$cache_file
1859 fi
1860
1861 # Check that the precious variables saved in the cache have kept the same
1862 # value.
1863 ac_cache_corrupted=false
1864 for ac_var in $ac_precious_vars; do
1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866 eval ac_new_set=\$ac_env_${ac_var}_set
1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868 eval ac_new_val=\$ac_env_${ac_var}_value
1869 case $ac_old_set,$ac_new_set in
1870 set,)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,set)
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1878 ,);;
1879 *)
1880 if test "x$ac_old_val" != "x$ac_new_val"; then
1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1882 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1884 echo "$as_me: former value: $ac_old_val" >&2;}
1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1886 echo "$as_me: current value: $ac_new_val" >&2;}
1887 ac_cache_corrupted=:
1888 fi;;
1889 esac
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1892 case $ac_new_val in
1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 *) ac_arg=$ac_var=$ac_new_val ;;
1895 esac
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1899 esac
1900 fi
1901 done
1902 if $ac_cache_corrupted; then
1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1904 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1906 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939
1940
1941 ac_aux_dir=
1942 for ac_dir in config "$srcdir"/config; do
1943 if test -f "$ac_dir/install-sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
1947 elif test -f "$ac_dir/install.sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
1951 elif test -f "$ac_dir/shtool"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1960 { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
1971
1972 am__api_version='1.10'
1973
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1980 # AIX /bin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
1999 case $as_dir/ in
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2003 /usr/ucb/* ) ;;
2004 *)
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2007 # by default.
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2014 :
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2018 :
2019 else
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2021 break 3
2022 fi
2023 fi
2024 done
2025 done
2026 ;;
2027 esac
2028 done
2029 IFS=$as_save_IFS
2030
2031
2032 fi
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2035 else
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2041 fi
2042 fi
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2045
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2056 # Just in case
2057 sleep 1
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2063 # directory).
2064 if (
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2067 # -L didn't work.
2068 set X `ls -t $srcdir/configure conftest.file`
2069 fi
2070 rm -f conftest.file
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2073
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 test "$2" = conftest.file
2086 )
2087 then
2088 # Ok.
2089 :
2090 else
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2108 _ACEOF
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2110 rm -f conftest.sed
2111
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2114
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2119 else
2120 am_missing_run=
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 fi
2124
2125 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2126 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2127 if test -z "$MKDIR_P"; then
2128 if test "${ac_cv_path_mkdir+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_prog in mkdir gmkdir; do
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2140 'mkdir (GNU coreutils) '* | \
2141 'mkdir (coreutils) '* | \
2142 'mkdir (fileutils) '4.1*)
2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2144 break 3;;
2145 esac
2146 done
2147 done
2148 done
2149 IFS=$as_save_IFS
2150
2151 fi
2152
2153 if test "${ac_cv_path_mkdir+set}" = set; then
2154 MKDIR_P="$ac_cv_path_mkdir -p"
2155 else
2156 # As a last resort, use the slow shell script. Don't cache a
2157 # value for MKDIR_P within a source directory, because that will
2158 # break other packages using the cache if that directory is
2159 # removed, or if the value is a relative name.
2160 test -d ./--version && rmdir ./--version
2161 MKDIR_P="$ac_install_sh -d"
2162 fi
2163 fi
2164 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2165 echo "${ECHO_T}$MKDIR_P" >&6; }
2166
2167 mkdir_p="$MKDIR_P"
2168 case $mkdir_p in
2169 [\\/$]* | ?:[\\/]*) ;;
2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2171 esac
2172
2173 for ac_prog in gawk mawk nawk awk
2174 do
2175 # Extract the first word of "$ac_prog", so it can be a program name with args.
2176 set dummy $ac_prog; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_AWK+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test -n "$AWK"; then
2183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_AWK="$ac_prog"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 AWK=$ac_cv_prog_AWK
2203 if test -n "$AWK"; then
2204 { echo "$as_me:$LINENO: result: $AWK" >&5
2205 echo "${ECHO_T}$AWK" >&6; }
2206 else
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211
2212 test -n "$AWK" && break
2213 done
2214
2215 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2216 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2217 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.make <<\_ACEOF
2222 SHELL = /bin/sh
2223 all:
2224 @echo '@@@%%%=$(MAKE)=@@@%%%'
2225 _ACEOF
2226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2228 *@@@%%%=?*=@@@%%%*)
2229 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 *)
2231 eval ac_cv_prog_make_${ac_make}_set=no;;
2232 esac
2233 rm -f conftest.make
2234 fi
2235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2236 { echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6; }
2238 SET_MAKE=
2239 else
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 SET_MAKE="MAKE=${MAKE-make}"
2243 fi
2244
2245 rm -rf .tst 2>/dev/null
2246 mkdir .tst 2>/dev/null
2247 if test -d .tst; then
2248 am__leading_dot=.
2249 else
2250 am__leading_dot=_
2251 fi
2252 rmdir .tst 2>/dev/null
2253
2254 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2256 # is not polluted with repeated "-I."
2257 am__isrc=' -I$(srcdir)'
2258 # test to see if srcdir already configured
2259 if test -f $srcdir/config.status; then
2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2262 { (exit 1); exit 1; }; }
2263 fi
2264 fi
2265
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2272 fi
2273 fi
2274
2275
2276 # Define the identity of the package.
2277 PACKAGE='lv2dynparam1'
2278 VERSION='2'
2279
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE "$PACKAGE"
2283 _ACEOF
2284
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define VERSION "$VERSION"
2288 _ACEOF
2289
2290 # Some tools Automake needs.
2291
2292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293
2294
2295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296
2297
2298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299
2300
2301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302
2303
2304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2305
2306 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2307
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'. However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$STRIP"; then
2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343 { echo "$as_me:$LINENO: result: $STRIP" >&5
2344 echo "${ECHO_T}$STRIP" >&6; }
2345 else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2348 fi
2349
2350
2351 fi
2352 if test -z "$ac_cv_prog_STRIP"; then
2353 ac_ct_STRIP=$STRIP
2354 # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$ac_ct_STRIP"; then
2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_STRIP="strip"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390 if test "x$ac_ct_STRIP" = x; then
2391 STRIP=":"
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to [email protected]." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to [email protected]." >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403 STRIP=$ac_ct_STRIP
2404 fi
2405 else
2406 STRIP="$ac_cv_prog_STRIP"
2407 fi
2408
2409 fi
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411
2412 # We need awk for the "check" target. The system "awk" is bad on
2413 # some platforms.
2414 # Always define AMTAR for backward compatibility.
2415
2416 AMTAR=${AMTAR-"${am_missing_run}tar"}
2417
2418 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419
2420
2421
2422
2423
2424
2425 ac_config_headers="$ac_config_headers config.h"
2426
2427
2428 if test -d $srcdir/.git ; then dev_version="yes" ; else dev_version="no"; fi
2429 if test "$dev_version" = "yes"; then
2430 DEV_VERSION_TRUE=
2431 DEV_VERSION_FALSE='#'
2432 else
2433 DEV_VERSION_TRUE='#'
2434 DEV_VERSION_FALSE=
2435 fi
2436
2437
2438 # Checks for programs.
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 CC=$ac_cv_prog_CC
2473 if test -n "$CC"; then
2474 { echo "$as_me:$LINENO: result: $CC" >&5
2475 echo "${ECHO_T}$CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_CC"; then
2484 ac_ct_CC=$CC
2485 # Extract the first word of "gcc", so it can be a program name with args.
2486 set dummy gcc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_CC="gcc"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2515 echo "${ECHO_T}$ac_ct_CC" >&6; }
2516 else
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521 if test "x$ac_ct_CC" = x; then
2522 CC=""
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to [email protected]." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to [email protected]." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534 CC=$ac_ct_CC
2535 fi
2536 else
2537 CC="$ac_cv_prog_CC"
2538 fi
2539
2540 if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}cc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}cc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2576 fi
2577
2578
2579 fi
2580 fi
2581 if test -z "$CC"; then
2582 # Extract the first word of "cc", so it can be a program name with args.
2583 set dummy cc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 ac_prog_rejected=no
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2601 ac_prog_rejected=yes
2602 continue
2603 fi
2604 ac_cv_prog_CC="cc"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 if test $ac_prog_rejected = yes; then
2613 # We found a bogon in the path, so make sure we never use it.
2614 set dummy $ac_cv_prog_CC
2615 shift
2616 if test $# != 0; then
2617 # We chose a different compiler from the bogus one.
2618 # However, it has the same basename, so the bogon will be chosen
2619 # first if we set CC to just the basename; use the full file name.
2620 shift
2621 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2622 fi
2623 fi
2624 fi
2625 fi
2626 CC=$ac_cv_prog_CC
2627 if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629 echo "${ECHO_T}$CC" >&6; }
2630 else
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2633 fi
2634
2635
2636 fi
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 for ac_prog in cl.exe
2640 do
2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 CC=$ac_cv_prog_CC
2669 if test -n "$CC"; then
2670 { echo "$as_me:$LINENO: result: $CC" >&5
2671 echo "${ECHO_T}$CC" >&6; }
2672 else
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675 fi
2676
2677
2678 test -n "$CC" && break
2679 done
2680 fi
2681 if test -z "$CC"; then
2682 ac_ct_CC=$CC
2683 for ac_prog in cl.exe
2684 do
2685 # Extract the first word of "$ac_prog", so it can be a program name with args.
2686 set dummy $ac_prog; ac_word=$2
2687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2689 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_ac_ct_CC="$ac_prog"
2703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2715 echo "${ECHO_T}$ac_ct_CC" >&6; }
2716 else
2717 { echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6; }
2719 fi
2720
2721
2722 test -n "$ac_ct_CC" && break
2723 done
2724
2725 if test "x$ac_ct_CC" = x; then
2726 CC=""
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to [email protected]." >&5
2733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to [email protected]." >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 CC=$ac_ct_CC
2739 fi
2740 fi
2741
2742 fi
2743
2744
2745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: no acceptable C compiler found in \$PATH
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2750
2751 # Provide some information about the compiler.
2752 echo "$as_me:$LINENO: checking for C compiler version" >&5
2753 ac_compiler=`set X $ac_compile; echo $2`
2754 { (ac_try="$ac_compiler --version >&5"
2755 case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compiler --version >&5") 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }
2764 { (ac_try="$ac_compiler -v >&5"
2765 case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_compiler -v >&5") 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774 { (ac_try="$ac_compiler -V >&5"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compiler -V >&5") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }
2784
2785 cat >conftest.$ac_ext <<_ACEOF
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791
2792 int
2793 main ()
2794 {
2795
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 ac_clean_files_save=$ac_clean_files
2801 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2802 # Try to create an executable without -o first, disregard a.out.
2803 # It will help us diagnose broken compilers, and finding out an intuition
2804 # of exeext.
2805 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2806 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2807 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2808 #
2809 # List of possible output files, starting from the most likely.
2810 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2811 # only as a last resort. b.out is created by i960 compilers.
2812 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2813 #
2814 # The IRIX 6 linker writes into existing files which may not be
2815 # executable, retaining their permissions. Remove them first so a
2816 # subsequent execution test works.
2817 ac_rmfiles=
2818 for ac_file in $ac_files
2819 do
2820 case $ac_file in
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2822 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2823 esac
2824 done
2825 rm -f $ac_rmfiles
2826
2827 if { (ac_try="$ac_link_default"
2828 case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_link_default") 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; then
2837 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2838 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2839 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2840 # so that the user can short-circuit this test for compilers unknown to
2841 # Autoconf.
2842 for ac_file in $ac_files ''
2843 do
2844 test -f "$ac_file" || continue
2845 case $ac_file in
2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2847 ;;
2848 [ab].out )
2849 # We found the default executable, but exeext='' is most
2850 # certainly right.
2851 break;;
2852 *.* )
2853 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2854 then :; else
2855 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 fi
2857 # We set ac_cv_exeext here because the later test for it is not
2858 # safe: cross compilers may not add the suffix if given an `-o'
2859 # argument, so we may need to know it at that point already.
2860 # Even if this section looks crufty: it has the advantage of
2861 # actually working.
2862 break;;
2863 * )
2864 break;;
2865 esac
2866 done
2867 test "$ac_cv_exeext" = no && ac_cv_exeext=
2868
2869 else
2870 ac_file=''
2871 fi
2872
2873 { echo "$as_me:$LINENO: result: $ac_file" >&5
2874 echo "${ECHO_T}$ac_file" >&6; }
2875 if test -z "$ac_file"; then
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: C compiler cannot create executables
2882 See \`config.log' for more details." >&2;}
2883 { (exit 77); exit 77; }; }
2884 fi
2885
2886 ac_exeext=$ac_cv_exeext
2887
2888 # Check that the compiler produces executables we can run. If not, either
2889 # the compiler is broken, or we cross compile.
2890 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2891 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2892 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2893 # If not cross compiling, check that we can run a simple program.
2894 if test "$cross_compiling" != yes; then
2895 if { ac_try='./$ac_file'
2896 { (case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_try") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; }; then
2905 cross_compiling=no
2906 else
2907 if test "$cross_compiling" = maybe; then
2908 cross_compiling=yes
2909 else
2910 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2911 If you meant to cross compile, use \`--host'.
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot run C compiled programs.
2914 If you meant to cross compile, use \`--host'.
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918 fi
2919 fi
2920 { echo "$as_me:$LINENO: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6; }
2922
2923 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2924 ac_clean_files=$ac_clean_files_save
2925 # Check that the compiler produces executables we can run. If not, either
2926 # the compiler is broken, or we cross compile.
2927 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2928 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2929 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2930 echo "${ECHO_T}$cross_compiling" >&6; }
2931
2932 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2933 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2934 if { (ac_try="$ac_link"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_link") 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
2944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2946 # work properly (i.e., refer to `conftest.exe'), while it won't with
2947 # `rm'.
2948 for ac_file in conftest.exe conftest conftest.*; do
2949 test -f "$ac_file" || continue
2950 case $ac_file in
2951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 break;;
2954 * ) break;;
2955 esac
2956 done
2957 else
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest$ac_cv_exeext
2966 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2967 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2968
2969 rm -f conftest.$ac_ext
2970 EXEEXT=$ac_cv_exeext
2971 ac_exeext=$EXEEXT
2972 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2974 if test "${ac_cv_objext+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983
2984 int
2985 main ()
2986 {
2987
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.o conftest.obj
2993 if { (ac_try="$ac_compile"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; then
3003 for ac_file in conftest.o conftest.obj conftest.*; do
3004 test -f "$ac_file" || continue;
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008 break;;
3009 esac
3010 done
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3016 See \`config.log' for more details." >&5
3017 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details." >&2;}
3019 { (exit 1); exit 1; }; }
3020 fi
3021
3022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023 fi
3024 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3025 echo "${ECHO_T}$ac_cv_objext" >&6; }
3026 OBJEXT=$ac_cv_objext
3027 ac_objext=$OBJEXT
3028 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3030 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043 #ifndef __GNUC__
3044 choke me
3045 #endif
3046
3047 ;
3048 return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } && {
3065 test -z "$ac_c_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
3068 ac_compiler_gnu=yes
3069 else
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073 ac_compiler_gnu=no
3074 fi
3075
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3082 GCC=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CFLAGS=${CFLAGS+set}
3084 ac_save_CFLAGS=$CFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3086 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cc_g+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 ac_save_c_werror_flag=$ac_c_werror_flag
3091 ac_c_werror_flag=yes
3092 ac_cv_prog_cc_g=no
3093 CFLAGS="-g"
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100
3101 int
3102 main ()
3103 {
3104
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cc_g=yes
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 CFLAGS=""
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138
3139 int
3140 main ()
3141 {
3142
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_c_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3164 :
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3177
3178 int
3179 main ()
3180 {
3181
3182 ;
3183 return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_c_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cc_g=yes
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208
3209 fi
3210
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 fi
3213
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3216
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_c_werror_flag=$ac_save_c_werror_flag
3219 fi
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3222 if test "$ac_test_CFLAGS" = set; then
3223 CFLAGS=$ac_save_CFLAGS
3224 elif test $ac_cv_prog_cc_g = yes; then
3225 if test "$GCC" = yes; then
3226 CFLAGS="-g -O2"
3227 else
3228 CFLAGS="-g"
3229 fi
3230 else
3231 if test "$GCC" = yes; then
3232 CFLAGS="-O2"
3233 else
3234 CFLAGS=
3235 fi
3236 fi
3237 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3238 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3239 if test "${ac_cv_prog_cc_c89+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 ac_cv_prog_cc_c89=no
3243 ac_save_CC=$CC
3244 cat >conftest.$ac_ext <<_ACEOF
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <stdarg.h>
3251 #include <stdio.h>
3252 #include <sys/types.h>
3253 #include <sys/stat.h>
3254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3255 struct buf { int x; };
3256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3257 static char *e (p, i)
3258 char **p;
3259 int i;
3260 {
3261 return p[i];
3262 }
3263 static char *f (char * (*g) (char **, int), char **p, ...)
3264 {
3265 char *s;
3266 va_list v;
3267 va_start (v,p);
3268 s = g (p, va_arg (v,int));
3269 va_end (v);
3270 return s;
3271 }
3272
3273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3274 function prototypes and stuff, but not '\xHH' hex character constants.
3275 These don't provoke an error unfortunately, instead are silently treated
3276 as 'x'. The following induces an error, until -std is added to get
3277 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3278 array size at least. It's necessary to write '\x00'==0 to get something
3279 that's true only with -std. */
3280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281
3282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3283 inside strings and character constants. */
3284 #define FOO(x) 'x'
3285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286
3287 int test (int i, double x);
3288 struct s1 {int (*f) (int a);};
3289 struct s2 {int (*f) (double a);};
3290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3291 int argc;
3292 char **argv;
3293 int
3294 main ()
3295 {
3296 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3297 ;
3298 return 0;
3299 }
3300 _ACEOF
3301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3302 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 do
3304 CC="$ac_save_CC $ac_arg"
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_c89=$ac_arg
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext
3331 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 done
3333 rm -f conftest.$ac_ext
3334 CC=$ac_save_CC
3335
3336 fi
3337 # AC_CACHE_VAL
3338 case "x$ac_cv_prog_cc_c89" in
3339 x)
3340 { echo "$as_me:$LINENO: result: none needed" >&5
3341 echo "${ECHO_T}none needed" >&6; } ;;
3342 xno)
3343 { echo "$as_me:$LINENO: result: unsupported" >&5
3344 echo "${ECHO_T}unsupported" >&6; } ;;
3345 *)
3346 CC="$CC $ac_cv_prog_cc_c89"
3347 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3348 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3349 esac
3350
3351
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 DEPDIR="${am__leading_dot}deps"
3358
3359 ac_config_commands="$ac_config_commands depfiles"
3360
3361
3362 am_make=${MAKE-make}
3363 cat > confinc << 'END'
3364 am__doit:
3365 @echo done
3366 .PHONY: am__doit
3367 END
3368 # If we don't find an include directive, just comment out the code.
3369 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3370 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3371 am__include="#"
3372 am__quote=
3373 _am_result=none
3374 # First try GNU make style include.
3375 echo "include confinc" > confmf
3376 # We grep out `Entering directory' and `Leaving directory'
3377 # messages which can occur if `w' ends up in MAKEFLAGS.
3378 # In particular we don't look at `^make:' because GNU make might
3379 # be invoked under some other name (usually "gmake"), in which
3380 # case it prints its new name instead of `make'.
3381 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3382 am__include=include
3383 am__quote=
3384 _am_result=GNU
3385 fi
3386 # Now try BSD make style include.
3387 if test "$am__include" = "#"; then
3388 echo '.include "confinc"' > confmf
3389 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3390 am__include=.include
3391 am__quote="\""
3392 _am_result=BSD
3393 fi
3394 fi
3395
3396
3397 { echo "$as_me:$LINENO: result: $_am_result" >&5
3398 echo "${ECHO_T}$_am_result" >&6; }
3399 rm -f confinc confmf
3400
3401 # Check whether --enable-dependency-tracking was given.
3402 if test "${enable_dependency_tracking+set}" = set; then
3403 enableval=$enable_dependency_tracking;
3404 fi
3405
3406 if test "x$enable_dependency_tracking" != xno; then
3407 am_depcomp="$ac_aux_dir/depcomp"
3408 AMDEPBACKSLASH='\'
3409 fi
3410 if test "x$enable_dependency_tracking" != xno; then
3411 AMDEP_TRUE=
3412 AMDEP_FALSE='#'
3413 else
3414 AMDEP_TRUE='#'
3415 AMDEP_FALSE=
3416 fi
3417
3418
3419
3420 depcc="$CC" am_compiler_list=
3421
3422 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3423 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3424 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3428 # We make a subdir and do the tests there. Otherwise we can end up
3429 # making bogus files that we don't know about and never remove. For
3430 # instance it was reported that on HP-UX the gcc test will end up
3431 # making a dummy file named `D' -- because `-MD' means `put the output
3432 # in D'.
3433 mkdir conftest.dir
3434 # Copy depcomp to subdir because otherwise we won't find it if we're
3435 # using a relative directory.
3436 cp "$am_depcomp" conftest.dir
3437 cd conftest.dir
3438 # We will build objects and dependencies in a subdirectory because
3439 # it helps to detect inapplicable dependency modes. For instance
3440 # both Tru64's cc and ICC support -MD to output dependencies as a
3441 # side effect of compilation, but ICC will put the dependencies in
3442 # the current directory while Tru64 will put them in the object
3443 # directory.
3444 mkdir sub
3445
3446 am_cv_CC_dependencies_compiler_type=none
3447 if test "$am_compiler_list" = ""; then
3448 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3449 fi
3450 for depmode in $am_compiler_list; do
3451 # Setup a source with many dependencies, because some compilers
3452 # like to wrap large dependency lists on column 80 (with \), and
3453 # we should not choose a depcomp mode which is confused by this.
3454 #
3455 # We need to recreate these files for each test, as the compiler may
3456 # overwrite some of them when testing with obscure command lines.
3457 # This happens at least with the AIX C compiler.
3458 : > sub/conftest.c
3459 for i in 1 2 3 4 5 6; do
3460 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3461 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3462 # Solaris 8's {/usr,}/bin/sh.
3463 touch sub/conftst$i.h
3464 done
3465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3466
3467 case $depmode in
3468 nosideeffect)
3469 # after this tag, mechanisms are not by side-effect, so they'll
3470 # only be used when explicitly requested
3471 if test "x$enable_dependency_tracking" = xyes; then
3472 continue
3473 else
3474 break
3475 fi
3476 ;;
3477 none) break ;;
3478 esac
3479 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3480 # mode. It turns out that the SunPro C++ compiler does not properly
3481 # handle `-M -o', and we need to detect this.
3482 if depmode=$depmode \
3483 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3485 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3486 >/dev/null 2>conftest.err &&
3487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3489 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3491 # icc doesn't choke on unknown options, it will just issue warnings
3492 # or remarks (even with -Werror). So we grep stderr for any message
3493 # that says an option was ignored or not supported.
3494 # When given -MP, icc 7.0 and 7.1 complain thusly:
3495 # icc: Command line warning: ignoring option '-M'; no argument required
3496 # The diagnosis changed in icc 8.0:
3497 # icc: Command line remark: option '-MP' not supported
3498 if (grep 'ignoring option' conftest.err ||
3499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3500 am_cv_CC_dependencies_compiler_type=$depmode
3501 break
3502 fi
3503 fi
3504 done
3505
3506 cd ..
3507 rm -rf conftest.dir
3508 else
3509 am_cv_CC_dependencies_compiler_type=none
3510 fi
3511
3512 fi
3513 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3514 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3516
3517 if
3518 test "x$enable_dependency_tracking" != xno \
3519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3520 am__fastdepCC_TRUE=
3521 am__fastdepCC_FALSE='#'
3522 else
3523 am__fastdepCC_TRUE='#'
3524 am__fastdepCC_FALSE=
3525 fi
3526
3527
3528 # Check whether --enable-shared was given.
3529 if test "${enable_shared+set}" = set; then
3530 enableval=$enable_shared; p=${PACKAGE-default}
3531 case $enableval in
3532 yes) enable_shared=yes ;;
3533 no) enable_shared=no ;;
3534 *)
3535 enable_shared=no
3536 # Look at the argument we got. We use all the common list separators.
3537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3538 for pkg in $enableval; do
3539 IFS="$lt_save_ifs"
3540 if test "X$pkg" = "X$p"; then
3541 enable_shared=yes
3542 fi
3543 done
3544 IFS="$lt_save_ifs"
3545 ;;
3546 esac
3547 else
3548 enable_shared=yes
3549 fi
3550
3551
3552 # Check whether --enable-static was given.
3553 if test "${enable_static+set}" = set; then
3554 enableval=$enable_static; p=${PACKAGE-default}
3555 case $enableval in
3556 yes) enable_static=yes ;;
3557 no) enable_static=no ;;
3558 *)
3559 enable_static=no
3560 # Look at the argument we got. We use all the common list separators.
3561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3562 for pkg in $enableval; do
3563 IFS="$lt_save_ifs"
3564 if test "X$pkg" = "X$p"; then
3565 enable_static=yes
3566 fi
3567 done
3568 IFS="$lt_save_ifs"
3569 ;;
3570 esac
3571 else
3572 enable_static=yes
3573 fi
3574
3575
3576 # Check whether --enable-fast-install was given.
3577 if test "${enable_fast_install+set}" = set; then
3578 enableval=$enable_fast_install; p=${PACKAGE-default}
3579 case $enableval in
3580 yes) enable_fast_install=yes ;;
3581 no) enable_fast_install=no ;;
3582 *)
3583 enable_fast_install=no
3584 # Look at the argument we got. We use all the common list separators.
3585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3586 for pkg in $enableval; do
3587 IFS="$lt_save_ifs"
3588 if test "X$pkg" = "X$p"; then
3589 enable_fast_install=yes
3590 fi
3591 done
3592 IFS="$lt_save_ifs"
3593 ;;
3594 esac
3595 else
3596 enable_fast_install=yes
3597 fi
3598
3599
3600 # Make sure we can run config.sub.
3601 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3602 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3603 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3604 { (exit 1); exit 1; }; }
3605
3606 { echo "$as_me:$LINENO: checking build system type" >&5
3607 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3608 if test "${ac_cv_build+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 ac_build_alias=$build_alias
3612 test "x$ac_build_alias" = x &&
3613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3614 test "x$ac_build_alias" = x &&
3615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3616 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3617 { (exit 1); exit 1; }; }
3618 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3619 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3620 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3621 { (exit 1); exit 1; }; }
3622
3623 fi
3624 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3625 echo "${ECHO_T}$ac_cv_build" >&6; }
3626 case $ac_cv_build in
3627 *-*-*) ;;
3628 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3629 echo "$as_me: error: invalid value of canonical build" >&2;}
3630 { (exit 1); exit 1; }; };;
3631 esac
3632 build=$ac_cv_build
3633 ac_save_IFS=$IFS; IFS='-'
3634 set x $ac_cv_build
3635 shift
3636 build_cpu=$1
3637 build_vendor=$2
3638 shift; shift
3639 # Remember, the first character of IFS is used to create $*,
3640 # except with old shells:
3641 build_os=$*
3642 IFS=$ac_save_IFS
3643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3644
3645
3646 { echo "$as_me:$LINENO: checking host system type" >&5
3647 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3648 if test "${ac_cv_host+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 if test "x$host_alias" = x; then
3652 ac_cv_host=$ac_cv_build
3653 else
3654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3655 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3656 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3657 { (exit 1); exit 1; }; }
3658 fi
3659
3660 fi
3661 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3662 echo "${ECHO_T}$ac_cv_host" >&6; }
3663 case $ac_cv_host in
3664 *-*-*) ;;
3665 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3666 echo "$as_me: error: invalid value of canonical host" >&2;}
3667 { (exit 1); exit 1; }; };;
3668 esac
3669 host=$ac_cv_host
3670 ac_save_IFS=$IFS; IFS='-'
3671 set x $ac_cv_host
3672 shift
3673 host_cpu=$1
3674 host_vendor=$2
3675 shift; shift
3676 # Remember, the first character of IFS is used to create $*,
3677 # except with old shells:
3678 host_os=$*
3679 IFS=$ac_save_IFS
3680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3681
3682
3683 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3684 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3685 if test "${lt_cv_path_SED+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 # Loop through the user's path and test for sed and gsed.
3689 # Then use that list of sed's as ones to test for truncation.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for lt_ac_prog in sed gsed; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3698 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3699 fi
3700 done
3701 done
3702 done
3703 IFS=$as_save_IFS
3704 lt_ac_max=0
3705 lt_ac_count=0
3706 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3707 # along with /bin/sed that truncates output.
3708 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3709 test ! -f $lt_ac_sed && continue
3710 cat /dev/null > conftest.in
3711 lt_ac_count=0
3712 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3713 # Check for GNU sed and select it if it is found.
3714 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3715 lt_cv_path_SED=$lt_ac_sed
3716 break
3717 fi
3718 while true; do
3719 cat conftest.in conftest.in >conftest.tmp
3720 mv conftest.tmp conftest.in
3721 cp conftest.in conftest.nl
3722 echo >>conftest.nl
3723 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3724 cmp -s conftest.out conftest.nl || break
3725 # 10000 chars as input seems more than enough
3726 test $lt_ac_count -gt 10 && break
3727 lt_ac_count=`expr $lt_ac_count + 1`
3728 if test $lt_ac_count -gt $lt_ac_max; then
3729 lt_ac_max=$lt_ac_count
3730 lt_cv_path_SED=$lt_ac_sed
3731 fi
3732 done
3733 done
3734
3735 fi
3736
3737 SED=$lt_cv_path_SED
3738
3739 { echo "$as_me:$LINENO: result: $SED" >&5
3740 echo "${ECHO_T}$SED" >&6; }
3741
3742 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3743 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3744 if test "${ac_cv_path_GREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 # Extract the first word of "grep ggrep" to use in msg output
3748 if test -z "$GREP"; then
3749 set dummy grep ggrep; ac_prog_name=$2
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 ac_path_GREP_found=false
3754 # Loop through the user's path and test for each of PROGNAME-LIST
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3757 do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_prog in grep ggrep; do
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3763 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3764 # Check for GNU ac_path_GREP and select it if it is found.
3765 # Check for GNU $ac_path_GREP
3766 case `"$ac_path_GREP" --version 2>&1` in
3767 *GNU*)
3768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3769 *)
3770 ac_count=0
3771 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 while :
3773 do
3774 cat "conftest.in" "conftest.in" >"conftest.tmp"
3775 mv "conftest.tmp" "conftest.in"
3776 cp "conftest.in" "conftest.nl"
3777 echo 'GREP' >> "conftest.nl"
3778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3780 ac_count=`expr $ac_count + 1`
3781 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3782 # Best one so far, save it but keep looking for a better one
3783 ac_cv_path_GREP="$ac_path_GREP"
3784 ac_path_GREP_max=$ac_count
3785 fi
3786 # 10*(2^10) chars as input seems more than enough
3787 test $ac_count -gt 10 && break
3788 done
3789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3790 esac
3791
3792
3793 $ac_path_GREP_found && break 3
3794 done
3795 done
3796
3797 done
3798 IFS=$as_save_IFS
3799
3800
3801 fi
3802
3803 GREP="$ac_cv_path_GREP"
3804 if test -z "$GREP"; then
3805 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3806 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3807 { (exit 1); exit 1; }; }
3808 fi
3809
3810 else
3811 ac_cv_path_GREP=$GREP
3812 fi
3813
3814
3815 fi
3816 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3817 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3818 GREP="$ac_cv_path_GREP"
3819
3820
3821 { echo "$as_me:$LINENO: checking for egrep" >&5
3822 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3823 if test "${ac_cv_path_EGREP+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3827 then ac_cv_path_EGREP="$GREP -E"
3828 else
3829 # Extract the first word of "egrep" to use in msg output
3830 if test -z "$EGREP"; then
3831 set dummy egrep; ac_prog_name=$2
3832 if test "${ac_cv_path_EGREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3839 do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3846 # Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848 case `"$ac_path_EGREP" --version 2>&1` in
3849 *GNU*)
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851 *)
3852 ac_count=0
3853 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 ac_count=`expr $ac_count + 1`
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872 esac
3873
3874
3875 $ac_path_EGREP_found && break 3
3876 done
3877 done
3878
3879 done
3880 IFS=$as_save_IFS
3881
3882
3883 fi
3884
3885 EGREP="$ac_cv_path_EGREP"
3886 if test -z "$EGREP"; then
3887 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3888 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3889 { (exit 1); exit 1; }; }
3890 fi
3891
3892 else
3893 ac_cv_path_EGREP=$EGREP
3894 fi
3895
3896
3897 fi
3898 fi
3899 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3900 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3901 EGREP="$ac_cv_path_EGREP"
3902
3903
3904
3905 # Check whether --with-gnu-ld was given.
3906 if test "${with_gnu_ld+set}" = set; then
3907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3908 else
3909 with_gnu_ld=no
3910 fi
3911
3912 ac_prog=ld
3913 if test "$GCC" = yes; then
3914 # Check if gcc -print-prog-name=ld gives a path.
3915 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3916 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3917 case $host in
3918 *-*-mingw*)
3919 # gcc leaves a trailing carriage return which upsets mingw
3920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3921 *)
3922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3923 esac
3924 case $ac_prog in
3925 # Accept absolute paths.
3926 [\\/]* | ?:[\\/]*)
3927 re_direlt='/[^/][^/]*/\.\./'
3928 # Canonicalize the pathname of ld
3929 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3930 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3931 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3932 done
3933 test -z "$LD" && LD="$ac_prog"
3934 ;;
3935 "")
3936 # If it fails, then pretend we aren't using GCC.
3937 ac_prog=ld
3938 ;;
3939 *)
3940 # If it is relative, then search for the first ld in PATH.
3941 with_gnu_ld=unknown
3942 ;;
3943 esac
3944 elif test "$with_gnu_ld" = yes; then
3945 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3946 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3947 else
3948 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3949 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3950 fi
3951 if test "${lt_cv_path_LD+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 if test -z "$LD"; then
3955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3956 for ac_dir in $PATH; do
3957 IFS="$lt_save_ifs"
3958 test -z "$ac_dir" && ac_dir=.
3959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3960 lt_cv_path_LD="$ac_dir/$ac_prog"
3961 # Check to see if the program is GNU ld. I'd rather use --version,
3962 # but apparently some variants of GNU ld only accept -v.
3963 # Break only if it was the GNU/non-GNU ld that we prefer.
3964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3965 *GNU* | *'with BFD'*)
3966 test "$with_gnu_ld" != no && break
3967 ;;
3968 *)
3969 test "$with_gnu_ld" != yes && break
3970 ;;
3971 esac
3972 fi
3973 done
3974 IFS="$lt_save_ifs"
3975 else
3976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3977 fi
3978 fi
3979
3980 LD="$lt_cv_path_LD"
3981 if test -n "$LD"; then
3982 { echo "$as_me:$LINENO: result: $LD" >&5
3983 echo "${ECHO_T}$LD" >&6; }
3984 else
3985 { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3987 fi
3988 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3989 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3990 { (exit 1); exit 1; }; }
3991 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3992 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3993 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3997 case `$LD -v 2>&1 </dev/null` in
3998 *GNU* | *'with BFD'*)
3999 lt_cv_prog_gnu_ld=yes
4000 ;;
4001 *)
4002 lt_cv_prog_gnu_ld=no
4003 ;;
4004 esac
4005 fi
4006 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4007 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4008 with_gnu_ld=$lt_cv_prog_gnu_ld
4009
4010
4011 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4012 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4013 if test "${lt_cv_ld_reload_flag+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 lt_cv_ld_reload_flag='-r'
4017 fi
4018 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4019 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4020 reload_flag=$lt_cv_ld_reload_flag
4021 case $reload_flag in
4022 "" | " "*) ;;
4023 *) reload_flag=" $reload_flag" ;;
4024 esac
4025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4026 case $host_os in
4027 darwin*)
4028 if test "$GCC" = yes; then
4029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4030 else
4031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4032 fi
4033 ;;
4034 esac
4035
4036 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4037 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4038 if test "${lt_cv_path_NM+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 if test -n "$NM"; then
4042 # Let the user override the test.
4043 lt_cv_path_NM="$NM"
4044 else
4045 lt_nm_to_check="${ac_tool_prefix}nm"
4046 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4047 lt_nm_to_check="$lt_nm_to_check nm"
4048 fi
4049 for lt_tmp_nm in $lt_nm_to_check; do
4050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4051 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4052 IFS="$lt_save_ifs"
4053 test -z "$ac_dir" && ac_dir=.
4054 tmp_nm="$ac_dir/$lt_tmp_nm"
4055 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4056 # Check to see if the nm accepts a BSD-compat flag.
4057 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4058 # nm: unknown option "B" ignored
4059 # Tru64's nm complains that /dev/null is an invalid object file
4060 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4061 */dev/null* | *'Invalid file or object type'*)
4062 lt_cv_path_NM="$tmp_nm -B"
4063 break
4064 ;;
4065 *)
4066 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4067 */dev/null*)
4068 lt_cv_path_NM="$tmp_nm -p"
4069 break
4070 ;;
4071 *)
4072 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4073 continue # so that we can try to find one that supports BSD flags
4074 ;;
4075 esac
4076 ;;
4077 esac
4078 fi
4079 done
4080 IFS="$lt_save_ifs"
4081 done
4082 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4083 fi
4084 fi
4085 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4086 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4087 NM="$lt_cv_path_NM"
4088
4089 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4090 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4091 LN_S=$as_ln_s
4092 if test "$LN_S" = "ln -s"; then
4093 { echo "$as_me:$LINENO: result: yes" >&5
4094 echo "${ECHO_T}yes" >&6; }
4095 else
4096 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4097 echo "${ECHO_T}no, using $LN_S" >&6; }
4098 fi
4099
4100 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4101 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4102 if test "${lt_cv_deplibs_check_method+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 lt_cv_file_magic_cmd='$MAGIC_CMD'
4106 lt_cv_file_magic_test_file=
4107 lt_cv_deplibs_check_method='unknown'
4108 # Need to set the preceding variable on all platforms that support
4109 # interlibrary dependencies.
4110 # 'none' -- dependencies not supported.
4111 # `unknown' -- same as none, but documents that we really don't know.
4112 # 'pass_all' -- all dependencies passed with no checks.
4113 # 'test_compile' -- check by making test program.
4114 # 'file_magic [[regex]]' -- check by looking for files in library path
4115 # which responds to the $file_magic_cmd with a given extended regex.
4116 # If you have `file' or equivalent on your system and you're not sure
4117 # whether `pass_all' will *always* work, you probably want this one.
4118
4119 case $host_os in
4120 aix4* | aix5*)
4121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123
4124 beos*)
4125 lt_cv_deplibs_check_method=pass_all
4126 ;;
4127
4128 bsdi[45]*)
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4130 lt_cv_file_magic_cmd='/usr/bin/file -L'
4131 lt_cv_file_magic_test_file=/shlib/libc.so
4132 ;;
4133
4134 cygwin*)
4135 # func_win32_libid is a shell function defined in ltmain.sh
4136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4137 lt_cv_file_magic_cmd='func_win32_libid'
4138 ;;
4139
4140 mingw* | pw32*)
4141 # Base MSYS/MinGW do not provide the 'file' command needed by
4142 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4143 # unless we find 'file', for example because we are cross-compiling.
4144 if ( file / ) >/dev/null 2>&1; then
4145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4146 lt_cv_file_magic_cmd='func_win32_libid'
4147 else
4148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4149 lt_cv_file_magic_cmd='$OBJDUMP -f'
4150 fi
4151 ;;
4152
4153 darwin* | rhapsody*)
4154 lt_cv_deplibs_check_method=pass_all
4155 ;;
4156
4157 freebsd* | dragonfly*)
4158 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4159 case $host_cpu in
4160 i*86 )
4161 # Not sure whether the presence of OpenBSD here was a mistake.
4162 # Let's accept both of them until this is cleared up.
4163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4164 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4166 ;;
4167 esac
4168 else
4169 lt_cv_deplibs_check_method=pass_all
4170 fi
4171 ;;
4172
4173 gnu*)
4174 lt_cv_deplibs_check_method=pass_all
4175 ;;
4176
4177 hpux10.20* | hpux11*)
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 case $host_cpu in
4180 ia64*)
4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4183 ;;
4184 hppa*64*)
4185 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]'
4186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4187 ;;
4188 *)
4189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4191 ;;
4192 esac
4193 ;;
4194
4195 interix[3-9]*)
4196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4198 ;;
4199
4200 irix5* | irix6* | nonstopux*)
4201 case $LD in
4202 *-32|*"-32 ") libmagic=32-bit;;
4203 *-n32|*"-n32 ") libmagic=N32;;
4204 *-64|*"-64 ") libmagic=64-bit;;
4205 *) libmagic=never-match;;
4206 esac
4207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210 # This must be Linux ELF.
4211 linux* | k*bsd*-gnu)
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
4215 netbsd*)
4216 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4218 else
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4220 fi
4221 ;;
4222
4223 newos6*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4225 lt_cv_file_magic_cmd=/usr/bin/file
4226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4227 ;;
4228
4229 nto-qnx*)
4230 lt_cv_deplibs_check_method=unknown
4231 ;;
4232
4233 openbsd*)
4234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4236 else
4237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4238 fi
4239 ;;
4240
4241 osf3* | osf4* | osf5*)
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244
4245 rdos*)
4246 lt_cv_deplibs_check_method=pass_all
4247 ;;
4248
4249 solaris*)
4250 lt_cv_deplibs_check_method=pass_all
4251 ;;
4252
4253 sysv4 | sysv4.3*)
4254 case $host_vendor in
4255 motorola)
4256 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]'
4257 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4258 ;;
4259 ncr)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262 sequent)
4263 lt_cv_file_magic_cmd='/bin/file'
4264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4265 ;;
4266 sni)
4267 lt_cv_file_magic_cmd='/bin/file'
4268 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4269 lt_cv_file_magic_test_file=/lib/libc.so
4270 ;;
4271 siemens)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274 pc)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277 esac
4278 ;;
4279
4280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283 esac
4284
4285 fi
4286 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4287 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4288 file_magic_cmd=$lt_cv_file_magic_cmd
4289 deplibs_check_method=$lt_cv_deplibs_check_method
4290 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4291
4292
4293
4294
4295 # If no C compiler was specified, use CC.
4296 LTCC=${LTCC-"$CC"}
4297
4298 # If no C compiler flags were specified, use CFLAGS.
4299 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4300
4301 # Allow CC to be a program name with arguments.
4302 compiler=$CC
4303
4304
4305 # Check whether --enable-libtool-lock was given.
4306 if test "${enable_libtool_lock+set}" = set; then
4307 enableval=$enable_libtool_lock;
4308 fi
4309
4310 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4311
4312 # Some flags need to be propagated to the compiler or linker for good
4313 # libtool support.
4314 case $host in
4315 ia64-*-hpux*)
4316 # Find out which ABI we are using.
4317 echo 'int i;' > conftest.$ac_ext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; then
4323 case `/usr/bin/file conftest.$ac_objext` in
4324 *ELF-32*)
4325 HPUX_IA64_MODE="32"
4326 ;;
4327 *ELF-64*)
4328 HPUX_IA64_MODE="64"
4329 ;;
4330 esac
4331 fi
4332 rm -rf conftest*
4333 ;;
4334 *-*-irix6*)
4335 # Find out which ABI we are using.
4336 echo '#line 4336 "configure"' > conftest.$ac_ext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; then
4342 if test "$lt_cv_prog_gnu_ld" = yes; then
4343 case `/usr/bin/file conftest.$ac_objext` in
4344 *32-bit*)
4345 LD="${LD-ld} -melf32bsmip"
4346 ;;
4347 *N32*)
4348 LD="${LD-ld} -melf32bmipn32"
4349 ;;
4350 *64-bit*)
4351 LD="${LD-ld} -melf64bmip"
4352 ;;
4353 esac
4354 else
4355 case `/usr/bin/file conftest.$ac_objext` in
4356 *32-bit*)
4357 LD="${LD-ld} -32"
4358 ;;
4359 *N32*)
4360 LD="${LD-ld} -n32"
4361 ;;
4362 *64-bit*)
4363 LD="${LD-ld} -64"
4364 ;;
4365 esac
4366 fi
4367 fi
4368 rm -rf conftest*
4369 ;;
4370
4371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4372 s390*-*linux*|sparc*-*linux*)
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.$ac_ext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
4380 case `/usr/bin/file conftest.o` in
4381 *32-bit*)
4382 case $host in
4383 x86_64-*kfreebsd*-gnu)
4384 LD="${LD-ld} -m elf_i386_fbsd"
4385 ;;
4386 x86_64-*linux*)
4387 LD="${LD-ld} -m elf_i386"
4388 ;;
4389 ppc64-*linux*|powerpc64-*linux*)
4390 LD="${LD-ld} -m elf32ppclinux"
4391 ;;
4392 s390x-*linux*)
4393 LD="${LD-ld} -m elf_s390"
4394 ;;
4395 sparc64-*linux*)
4396 LD="${LD-ld} -m elf32_sparc"
4397 ;;
4398 esac
4399 ;;
4400 *64-bit*)
4401 case $host in
4402 x86_64-*kfreebsd*-gnu)
4403 LD="${LD-ld} -m elf_x86_64_fbsd"
4404 ;;
4405 x86_64-*linux*)
4406 LD="${LD-ld} -m elf_x86_64"
4407 ;;
4408 ppc*-*linux*|powerpc*-*linux*)
4409 LD="${LD-ld} -m elf64ppc"
4410 ;;
4411 s390*-*linux*)
4412 LD="${LD-ld} -m elf64_s390"
4413 ;;
4414 sparc*-*linux*)
4415 LD="${LD-ld} -m elf64_sparc"
4416 ;;
4417 esac
4418 ;;
4419 esac
4420 fi
4421 rm -rf conftest*
4422 ;;
4423
4424 *-*-sco3.2v5*)
4425 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4426 SAVE_CFLAGS="$CFLAGS"
4427 CFLAGS="$CFLAGS -belf"
4428 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4429 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4430 if test "${lt_cv_cc_needs_belf+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 ac_ext=c
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445
4446 int
4447 main ()
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.$ac_objext conftest$ac_exeext
4455 if { (ac_try="$ac_link"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_link") 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && {
4468 test -z "$ac_c_werror_flag" ||
4469 test ! -s conftest.err
4470 } && test -s conftest$ac_exeext &&
4471 $as_test_x conftest$ac_exeext; then
4472 lt_cv_cc_needs_belf=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 lt_cv_cc_needs_belf=no
4478 fi
4479
4480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4481 conftest$ac_exeext conftest.$ac_ext
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488 fi
4489 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4490 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4493 CFLAGS="$SAVE_CFLAGS"
4494 fi
4495 ;;
4496 sparc*-*solaris*)
4497 # Find out which ABI we are using.
4498 echo 'int i;' > conftest.$ac_ext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 case `/usr/bin/file conftest.o` in
4505 *64-bit*)
4506 case $lt_cv_prog_gnu_ld in
4507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4508 *) LD="${LD-ld} -64" ;;
4509 esac
4510 ;;
4511 esac
4512 fi
4513 rm -rf conftest*
4514 ;;
4515
4516
4517 esac
4518
4519 need_locks="$enable_libtool_lock"
4520
4521
4522 ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4528 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4529 # On Suns, sometimes $CPP names a directory.
4530 if test -n "$CPP" && test -d "$CPP"; then
4531 CPP=
4532 fi
4533 if test -z "$CPP"; then
4534 if test "${ac_cv_prog_CPP+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 # Double quotes because CPP needs to be expanded
4538 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4539 do
4540 ac_preproc_ok=false
4541 for ac_c_preproc_warn_flag in '' yes
4542 do
4543 # Use a header file that comes with gcc, so configuring glibc
4544 # with a fresh cross-compiler works.
4545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4546 # <limits.h> exists even on freestanding compilers.
4547 # On the NeXT, cc -E runs the code through the compiler's parser,
4548 # not just through cpp. "Syntax error" is here to catch this case.
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #ifdef __STDC__
4556 # include <limits.h>
4557 #else
4558 # include <assert.h>
4559 #endif
4560 Syntax error
4561 _ACEOF
4562 if { (ac_try="$ac_cpp conftest.$ac_ext"
4563 case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev/null && {
4575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 }; then
4578 :
4579 else
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 # Broken: fails on valid input.
4584 continue
4585 fi
4586
4587 rm -f conftest.err conftest.$ac_ext
4588
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 #include <ac_nonexistent.h>
4598 _ACEOF
4599 if { (ac_try="$ac_cpp conftest.$ac_ext"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null && {
4612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 }; then
4615 # Broken: success on invalid input.
4616 continue
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 # Passes both tests.
4622 ac_preproc_ok=:
4623 break
4624 fi
4625
4626 rm -f conftest.err conftest.$ac_ext
4627
4628 done
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.err conftest.$ac_ext
4631 if $ac_preproc_ok; then
4632 break
4633 fi
4634
4635 done
4636 ac_cv_prog_CPP=$CPP
4637
4638 fi
4639 CPP=$ac_cv_prog_CPP
4640 else
4641 ac_cv_prog_CPP=$CPP
4642 fi
4643 { echo "$as_me:$LINENO: result: $CPP" >&5
4644 echo "${ECHO_T}$CPP" >&6; }
4645 ac_preproc_ok=false
4646 for ac_c_preproc_warn_flag in '' yes
4647 do
4648 # Use a header file that comes with gcc, so configuring glibc
4649 # with a fresh cross-compiler works.
4650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651 # <limits.h> exists even on freestanding compilers.
4652 # On the NeXT, cc -E runs the code through the compiler's parser,
4653 # not just through cpp. "Syntax error" is here to catch this case.
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 #ifdef __STDC__
4661 # include <limits.h>
4662 #else
4663 # include <assert.h>
4664 #endif
4665 Syntax error
4666 _ACEOF
4667 if { (ac_try="$ac_cpp conftest.$ac_ext"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } >/dev/null && {
4680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 }; then
4683 :
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 # Broken: fails on valid input.
4689 continue
4690 fi
4691
4692 rm -f conftest.err conftest.$ac_ext
4693
4694 # OK, works on sane cases. Now check whether nonexistent headers
4695 # can be detected and how.
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 #include <ac_nonexistent.h>
4703 _ACEOF
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } >/dev/null && {
4717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 }; then
4720 # Broken: success on invalid input.
4721 continue
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 # Passes both tests.
4727 ac_preproc_ok=:
4728 break
4729 fi
4730
4731 rm -f conftest.err conftest.$ac_ext
4732
4733 done
4734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4735 rm -f conftest.err conftest.$ac_ext
4736 if $ac_preproc_ok; then
4737 :
4738 else
4739 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4740 See \`config.log' for more details." >&5
4741 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4742 See \`config.log' for more details." >&2;}
4743 { (exit 1); exit 1; }; }
4744 fi
4745
4746 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4754 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4755 if test "${ac_cv_header_stdc+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <stdlib.h>
4765 #include <stdarg.h>
4766 #include <string.h>
4767 #include <float.h>
4768
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (ac_try="$ac_compile"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_header_stdc=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_cv_header_stdc=no
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803
4804 if test $ac_cv_header_stdc = yes; then
4805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #include <string.h>
4813
4814 _ACEOF
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "memchr" >/dev/null 2>&1; then
4817 :
4818 else
4819 ac_cv_header_stdc=no
4820 fi
4821 rm -f conftest*
4822
4823 fi
4824
4825 if test $ac_cv_header_stdc = yes; then
4826 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <stdlib.h>
4834
4835 _ACEOF
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 $EGREP "free" >/dev/null 2>&1; then
4838 :
4839 else
4840 ac_cv_header_stdc=no
4841 fi
4842 rm -f conftest*
4843
4844 fi
4845
4846 if test $ac_cv_header_stdc = yes; then
4847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848 if test "$cross_compiling" = yes; then
4849 :
4850 else
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <ctype.h>
4858 #include <stdlib.h>
4859 #if ((' ' & 0x0FF) == 0x020)
4860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 #else
4863 # define ISLOWER(c) \
4864 (('a' <= (c) && (c) <= 'i') \
4865 || ('j' <= (c) && (c) <= 'r') \
4866 || ('s' <= (c) && (c) <= 'z'))
4867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868 #endif
4869
4870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871 int
4872 main ()
4873 {
4874 int i;
4875 for (i = 0; i < 256; i++)
4876 if (XOR (islower (i), ISLOWER (i))
4877 || toupper (i) != TOUPPER (i))
4878 return 2;
4879 return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889 (eval "$ac_link") 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893 { (case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_try") 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 :
4903 else
4904 echo "$as_me: program exited with status $ac_status" >&5
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ( exit $ac_status )
4909 ac_cv_header_stdc=no
4910 fi
4911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4912 fi
4913
4914
4915 fi
4916 fi
4917 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4918 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4920
4921 cat >>confdefs.h <<\_ACEOF
4922 #define STDC_HEADERS 1
4923 _ACEOF
4924
4925 fi
4926
4927 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4938 inttypes.h stdint.h unistd.h
4939 do
4940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 $ac_includes_default
4953
4954 #include <$ac_header>
4955 _ACEOF
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compile") 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest.$ac_objext; then
4973 eval "$as_ac_Header=yes"
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 eval "$as_ac_Header=no"
4979 fi
4980
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 fi
4983 ac_res=`eval echo '${'$as_ac_Header'}'`
4984 { echo "$as_me:$LINENO: result: $ac_res" >&5
4985 echo "${ECHO_T}$ac_res" >&6; }
4986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4987 cat >>confdefs.h <<_ACEOF
4988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4989 _ACEOF
4990
4991 fi
4992
4993 done
4994
4995
4996
4997 for ac_header in dlfcn.h
4998 do
4999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 fi
5006 ac_res=`eval echo '${'$as_ac_Header'}'`
5007 { echo "$as_me:$LINENO: result: $ac_res" >&5
5008 echo "${ECHO_T}$ac_res" >&6; }
5009 else
5010 # Is the header compilable?
5011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (ac_try="$ac_compile"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_compile") 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest.$ac_objext; then
5039 ac_header_compiler=yes
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 ac_header_compiler=no
5045 fi
5046
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5049 echo "${ECHO_T}$ac_header_compiler" >&6; }
5050
5051 # Is the header present?
5052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <$ac_header>
5061 _ACEOF
5062 if { (ac_try="$ac_cpp conftest.$ac_ext"
5063 case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null && {
5075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 }; then
5078 ac_header_preproc=yes
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 ac_header_preproc=no
5084 fi
5085
5086 rm -f conftest.err conftest.$ac_ext
5087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5088 echo "${ECHO_T}$ac_header_preproc" >&6; }
5089
5090 # So? What about this header?
5091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5092 yes:no: )
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5097 ac_header_preproc=yes
5098 ;;
5099 no:yes:* )
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5112
5113 ;;
5114 esac
5115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 eval "$as_ac_Header=\$ac_header_preproc"
5121 fi
5122 ac_res=`eval echo '${'$as_ac_Header'}'`
5123 { echo "$as_me:$LINENO: result: $ac_res" >&5
5124 echo "${ECHO_T}$ac_res" >&6; }
5125
5126 fi
5127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5128 cat >>confdefs.h <<_ACEOF
5129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5130 _ACEOF
5131
5132 fi
5133
5134 done
5135
5136 ac_ext=cpp
5137 ac_cpp='$CXXCPP $CPPFLAGS'
5138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5141 if test -z "$CXX"; then
5142 if test -n "$CCC"; then
5143 CXX=$CCC
5144 else
5145 if test -n "$ac_tool_prefix"; then
5146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5147 do
5148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_prog_CXX+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 if test -n "$CXX"; then
5156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 CXX=$ac_cv_prog_CXX
5176 if test -n "$CXX"; then
5177 { echo "$as_me:$LINENO: result: $CXX" >&5
5178 echo "${ECHO_T}$CXX" >&6; }
5179 else
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5182 fi
5183
5184
5185 test -n "$CXX" && break
5186 done
5187 fi
5188 if test -z "$CXX"; then
5189 ac_ct_CXX=$CXX
5190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5191 do
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199 if test -n "$ac_ct_CXX"; then
5200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_ac_ct_CXX="$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5220 if test -n "$ac_ct_CXX"; then
5221 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5222 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5223 else
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5226 fi
5227
5228
5229 test -n "$ac_ct_CXX" && break
5230 done
5231
5232 if test "x$ac_ct_CXX" = x; then
5233 CXX="g++"
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet. If you think this
5239 configuration is useful to you, please write to [email protected]." >&5
5240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5241 whose name does not start with the host triplet. If you think this
5242 configuration is useful to you, please write to [email protected]." >&2;}
5243 ac_tool_warned=yes ;;
5244 esac
5245 CXX=$ac_ct_CXX
5246 fi
5247 fi
5248
5249 fi
5250 fi
5251 # Provide some information about the compiler.
5252 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5253 ac_compiler=`set X $ac_compile; echo $2`
5254 { (ac_try="$ac_compiler --version >&5"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler --version >&5") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264 { (ac_try="$ac_compiler -v >&5"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compiler -v >&5") 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5274 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284
5285 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5286 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5287 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296
5297 int
5298 main ()
5299 {
5300 #ifndef __GNUC__
5301 choke me
5302 #endif
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (ac_try="$ac_compile"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_compile") 2>conftest.er1
5316 ac_status=$?
5317 grep -v '^ *+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_cxx_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest.$ac_objext; then
5325 ac_compiler_gnu=yes
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_compiler_gnu=no
5331 fi
5332
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5335
5336 fi
5337 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5338 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5339 GXX=`test $ac_compiler_gnu = yes && echo yes`
5340 ac_test_CXXFLAGS=${CXXFLAGS+set}
5341 ac_save_CXXFLAGS=$CXXFLAGS
5342 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5343 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5344 if test "${ac_cv_prog_cxx_g+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5348 ac_cxx_werror_flag=yes
5349 ac_cv_prog_cxx_g=no
5350 CXXFLAGS="-g"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357
5358 int
5359 main ()
5360 {
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 rm -f conftest.$ac_objext
5367 if { (ac_try="$ac_compile"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_compile") 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } && {
5380 test -z "$ac_cxx_werror_flag" ||
5381 test ! -s conftest.err
5382 } && test -s conftest.$ac_objext; then
5383 ac_cv_prog_cxx_g=yes
5384 else
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 CXXFLAGS=""
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (ac_try="$ac_compile"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_cxx_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 :
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5427 CXXFLAGS="-g"
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434
5435 int
5436 main ()
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext
5444 if { (ac_try="$ac_compile"
5445 case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_compile") 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && {
5457 test -z "$ac_cxx_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest.$ac_objext; then
5460 ac_cv_prog_cxx_g=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465
5466 fi
5467
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5476 fi
5477 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5478 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5479 if test "$ac_test_CXXFLAGS" = set; then
5480 CXXFLAGS=$ac_save_CXXFLAGS
5481 elif test $ac_cv_prog_cxx_g = yes; then
5482 if test "$GXX" = yes; then
5483 CXXFLAGS="-g -O2"
5484 else
5485 CXXFLAGS="-g"
5486 fi
5487 else
5488 if test "$GXX" = yes; then
5489 CXXFLAGS="-O2"
5490 else
5491 CXXFLAGS=
5492 fi
5493 fi
5494 ac_ext=cpp
5495 ac_cpp='$CXXCPP $CPPFLAGS'
5496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5499
5500 depcc="$CXX" am_compiler_list=
5501
5502 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5503 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5504 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5508 # We make a subdir and do the tests there. Otherwise we can end up
5509 # making bogus files that we don't know about and never remove. For
5510 # instance it was reported that on HP-UX the gcc test will end up
5511 # making a dummy file named `D' -- because `-MD' means `put the output
5512 # in D'.
5513 mkdir conftest.dir
5514 # Copy depcomp to subdir because otherwise we won't find it if we're
5515 # using a relative directory.
5516 cp "$am_depcomp" conftest.dir
5517 cd conftest.dir
5518 # We will build objects and dependencies in a subdirectory because
5519 # it helps to detect inapplicable dependency modes. For instance
5520 # both Tru64's cc and ICC support -MD to output dependencies as a
5521 # side effect of compilation, but ICC will put the dependencies in
5522 # the current directory while Tru64 will put them in the object
5523 # directory.
5524 mkdir sub
5525
5526 am_cv_CXX_dependencies_compiler_type=none
5527 if test "$am_compiler_list" = ""; then
5528 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5529 fi
5530 for depmode in $am_compiler_list; do
5531 # Setup a source with many dependencies, because some compilers
5532 # like to wrap large dependency lists on column 80 (with \), and
5533 # we should not choose a depcomp mode which is confused by this.
5534 #
5535 # We need to recreate these files for each test, as the compiler may
5536 # overwrite some of them when testing with obscure command lines.
5537 # This happens at least with the AIX C compiler.
5538 : > sub/conftest.c
5539 for i in 1 2 3 4 5 6; do
5540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5542 # Solaris 8's {/usr,}/bin/sh.
5543 touch sub/conftst$i.h
5544 done
5545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5546
5547 case $depmode in
5548 nosideeffect)
5549 # after this tag, mechanisms are not by side-effect, so they'll
5550 # only be used when explicitly requested
5551 if test "x$enable_dependency_tracking" = xyes; then
5552 continue
5553 else
5554 break
5555 fi
5556 ;;
5557 none) break ;;
5558 esac
5559 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5560 # mode. It turns out that the SunPro C++ compiler does not properly
5561 # handle `-M -o', and we need to detect this.
5562 if depmode=$depmode \
5563 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5565 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5566 >/dev/null 2>conftest.err &&
5567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5569 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5571 # icc doesn't choke on unknown options, it will just issue warnings
5572 # or remarks (even with -Werror). So we grep stderr for any message
5573 # that says an option was ignored or not supported.
5574 # When given -MP, icc 7.0 and 7.1 complain thusly:
5575 # icc: Command line warning: ignoring option '-M'; no argument required
5576 # The diagnosis changed in icc 8.0:
5577 # icc: Command line remark: option '-MP' not supported
5578 if (grep 'ignoring option' conftest.err ||
5579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5580 am_cv_CXX_dependencies_compiler_type=$depmode
5581 break
5582 fi
5583 fi
5584 done
5585
5586 cd ..
5587 rm -rf conftest.dir
5588 else
5589 am_cv_CXX_dependencies_compiler_type=none
5590 fi
5591
5592 fi
5593 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5594 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5595 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5596
5597 if
5598 test "x$enable_dependency_tracking" != xno \
5599 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5600 am__fastdepCXX_TRUE=
5601 am__fastdepCXX_FALSE='#'
5602 else
5603 am__fastdepCXX_TRUE='#'
5604 am__fastdepCXX_FALSE=
5605 fi
5606
5607
5608
5609
5610 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5611 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5612 (test "X$CXX" != "Xg++"))) ; then
5613 ac_ext=cpp
5614 ac_cpp='$CXXCPP $CPPFLAGS'
5615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5618 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5619 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5620 if test -z "$CXXCPP"; then
5621 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 # Double quotes because CXXCPP needs to be expanded
5625 for CXXCPP in "$CXX -E" "/lib/cpp"
5626 do
5627 ac_preproc_ok=false
5628 for ac_cxx_preproc_warn_flag in '' yes
5629 do
5630 # Use a header file that comes with gcc, so configuring glibc
5631 # with a fresh cross-compiler works.
5632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5633 # <limits.h> exists even on freestanding compilers.
5634 # On the NeXT, cc -E runs the code through the compiler's parser,
5635 # not just through cpp. "Syntax error" is here to catch this case.
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #ifdef __STDC__
5643 # include <limits.h>
5644 #else
5645 # include <assert.h>
5646 #endif
5647 Syntax error
5648 _ACEOF
5649 if { (ac_try="$ac_cpp conftest.$ac_ext"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null && {
5662 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5663 test ! -s conftest.err
5664 }; then
5665 :
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 # Broken: fails on valid input.
5671 continue
5672 fi
5673
5674 rm -f conftest.err conftest.$ac_ext
5675
5676 # OK, works on sane cases. Now check whether nonexistent headers
5677 # can be detected and how.
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #include <ac_nonexistent.h>
5685 _ACEOF
5686 if { (ac_try="$ac_cpp conftest.$ac_ext"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } >/dev/null && {
5699 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5700 test ! -s conftest.err
5701 }; then
5702 # Broken: success on invalid input.
5703 continue
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708 # Passes both tests.
5709 ac_preproc_ok=:
5710 break
5711 fi
5712
5713 rm -f conftest.err conftest.$ac_ext
5714
5715 done
5716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5717 rm -f conftest.err conftest.$ac_ext
5718 if $ac_preproc_ok; then
5719 break
5720 fi
5721
5722 done
5723 ac_cv_prog_CXXCPP=$CXXCPP
5724
5725 fi
5726 CXXCPP=$ac_cv_prog_CXXCPP
5727 else
5728 ac_cv_prog_CXXCPP=$CXXCPP
5729 fi
5730 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5731 echo "${ECHO_T}$CXXCPP" >&6; }
5732 ac_preproc_ok=false
5733 for ac_cxx_preproc_warn_flag in '' yes
5734 do
5735 # Use a header file that comes with gcc, so configuring glibc
5736 # with a fresh cross-compiler works.
5737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738 # <limits.h> exists even on freestanding compilers.
5739 # On the NeXT, cc -E runs the code through the compiler's parser,
5740 # not just through cpp. "Syntax error" is here to catch this case.
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #ifdef __STDC__
5748 # include <limits.h>
5749 #else
5750 # include <assert.h>
5751 #endif
5752 Syntax error
5753 _ACEOF
5754 if { (ac_try="$ac_cpp conftest.$ac_ext"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } >/dev/null && {
5767 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5768 test ! -s conftest.err
5769 }; then
5770 :
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 # Broken: fails on valid input.
5776 continue
5777 fi
5778
5779 rm -f conftest.err conftest.$ac_ext
5780
5781 # OK, works on sane cases. Now check whether nonexistent headers
5782 # can be detected and how.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <ac_nonexistent.h>
5790 _ACEOF
5791 if { (ac_try="$ac_cpp conftest.$ac_ext"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null && {
5804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5805 test ! -s conftest.err
5806 }; then
5807 # Broken: success on invalid input.
5808 continue
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 # Passes both tests.
5814 ac_preproc_ok=:
5815 break
5816 fi
5817
5818 rm -f conftest.err conftest.$ac_ext
5819
5820 done
5821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5822 rm -f conftest.err conftest.$ac_ext
5823 if $ac_preproc_ok; then
5824 :
5825 else
5826 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&5
5828 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5829 See \`config.log' for more details." >&2;}
5830 { (exit 1); exit 1; }; }
5831 fi
5832
5833 ac_ext=cpp
5834 ac_cpp='$CXXCPP $CPPFLAGS'
5835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5838
5839 fi
5840
5841
5842 ac_ext=f
5843 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5844 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5846 if test -n "$ac_tool_prefix"; then
5847 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
5848 do
5849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_prog_F77+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 if test -n "$F77"; then
5857 ac_cv_prog_F77="$F77" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 F77=$ac_cv_prog_F77
5877 if test -n "$F77"; then
5878 { echo "$as_me:$LINENO: result: $F77" >&5
5879 echo "${ECHO_T}$F77" >&6; }
5880 else
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5883 fi
5884
5885
5886 test -n "$F77" && break
5887 done
5888 fi
5889 if test -z "$F77"; then
5890 ac_ct_F77=$F77
5891 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
5892 do
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5897 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 if test -n "$ac_ct_F77"; then
5901 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_F77="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5921 if test -n "$ac_ct_F77"; then
5922 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5923 echo "${ECHO_T}$ac_ct_F77" >&6; }
5924 else
5925 { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5927 fi
5928
5929
5930 test -n "$ac_ct_F77" && break
5931 done
5932
5933 if test "x$ac_ct_F77" = x; then
5934 F77=""
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5939 whose name does not start with the host triplet. If you think this
5940 configuration is useful to you, please write to [email protected]." >&5
5941 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5942 whose name does not start with the host triplet. If you think this
5943 configuration is useful to you, please write to [email protected]." >&2;}
5944 ac_tool_warned=yes ;;
5945 esac
5946 F77=$ac_ct_F77
5947 fi
5948 fi
5949
5950
5951 # Provide some information about the compiler.
5952 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5953 ac_compiler=`set X $ac_compile; echo $2`
5954 { (ac_try="$ac_compiler --version >&5"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compiler --version >&5") 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }
5964 { (ac_try="$ac_compiler -v >&5"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compiler -v >&5") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }
5974 { (ac_try="$ac_compiler -V >&5"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compiler -V >&5") 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }
5984 rm -f a.out
5985
5986 # If we don't use `.F' as extension, the preprocessor is not run on the
5987 # input file. (Note that this only needs to work for GNU compilers.)
5988 ac_save_ext=$ac_ext
5989 ac_ext=F
5990 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5991 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5992 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 program main
5997 #ifndef __GNUC__
5998 choke me
5999 #endif
6000
6001 end
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_f77_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6020 ac_compiler_gnu=yes
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_compiler_gnu=no
6026 fi
6027
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6030
6031 fi
6032 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6033 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6034 ac_ext=$ac_save_ext
6035 ac_test_FFLAGS=${FFLAGS+set}
6036 ac_save_FFLAGS=$FFLAGS
6037 FFLAGS=
6038 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6039 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_f77_g+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 FFLAGS=-g
6044 cat >conftest.$ac_ext <<_ACEOF
6045 program main
6046
6047 end
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_f77_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 ac_cv_prog_f77_g=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_cv_prog_f77_g=no
6072 fi
6073
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075
6076 fi
6077 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6078 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6079 if test "$ac_test_FFLAGS" = set; then
6080 FFLAGS=$ac_save_FFLAGS
6081 elif test $ac_cv_prog_f77_g = yes; then
6082 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6083 FFLAGS="-g -O2"
6084 else
6085 FFLAGS="-g"
6086 fi
6087 else
6088 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6089 FFLAGS="-O2"
6090 else
6091 FFLAGS=
6092 fi
6093 fi
6094
6095 G77=`test $ac_compiler_gnu = yes && echo yes`
6096 ac_ext=c
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101
6102
6103
6104 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6105
6106 # find the maximum length of command line arguments
6107 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6108 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6109 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 i=0
6113 teststring="ABCD"
6114
6115 case $build_os in
6116 msdosdjgpp*)
6117 # On DJGPP, this test can blow up pretty badly due to problems in libc
6118 # (any single argument exceeding 2000 bytes causes a buffer overrun
6119 # during glob expansion). Even if it were fixed, the result of this
6120 # check would be larger than it should be.
6121 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6122 ;;
6123
6124 gnu*)
6125 # Under GNU Hurd, this test is not required because there is
6126 # no limit to the length of command line arguments.
6127 # Libtool will interpret -1 as no limit whatsoever
6128 lt_cv_sys_max_cmd_len=-1;
6129 ;;
6130
6131 cygwin* | mingw*)
6132 # On Win9x/ME, this test blows up -- it succeeds, but takes
6133 # about 5 minutes as the teststring grows exponentially.
6134 # Worse, since 9x/ME are not pre-emptively multitasking,
6135 # you end up with a "frozen" computer, even though with patience
6136 # the test eventually succeeds (with a max line length of 256k).
6137 # Instead, let's just punt: use the minimum linelength reported by
6138 # all of the supported platforms: 8192 (on NT/2K/XP).
6139 lt_cv_sys_max_cmd_len=8192;
6140 ;;
6141
6142 amigaos*)
6143 # On AmigaOS with pdksh, this test takes hours, literally.
6144 # So we just punt and use a minimum line length of 8192.
6145 lt_cv_sys_max_cmd_len=8192;
6146 ;;
6147
6148 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6149 # This has been around since 386BSD, at least. Likely further.
6150 if test -x /sbin/sysctl; then
6151 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6152 elif test -x /usr/sbin/sysctl; then
6153 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6154 else
6155 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6156 fi
6157 # And add a safety zone
6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6160 ;;
6161
6162 interix*)
6163 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6164 lt_cv_sys_max_cmd_len=196608
6165 ;;
6166
6167 osf*)
6168 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6169 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6170 # nice to cause kernel panics so lets avoid the loop below.
6171 # First set a reasonable default.
6172 lt_cv_sys_max_cmd_len=16384
6173 #
6174 if test -x /sbin/sysconfig; then
6175 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6176 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6177 esac
6178 fi
6179 ;;
6180 sco3.2v5*)
6181 lt_cv_sys_max_cmd_len=102400
6182 ;;
6183 sysv5* | sco5v6* | sysv4.2uw2*)
6184 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6185 if test -n "$kargmax"; then
6186 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6187 else
6188 lt_cv_sys_max_cmd_len=32768
6189 fi
6190 ;;
6191 *)
6192 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6193 if test -n "$lt_cv_sys_max_cmd_len"; then
6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6196 else
6197 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6198 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6199 = "XX$teststring") >/dev/null 2>&1 &&
6200 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6201 lt_cv_sys_max_cmd_len=$new_result &&
6202 test $i != 17 # 1/2 MB should be enough
6203 do
6204 i=`expr $i + 1`
6205 teststring=$teststring$teststring
6206 done
6207 teststring=
6208 # Add a significant safety factor because C++ compilers can tack on massive
6209 # amounts of additional arguments before passing them to the linker.
6210 # It appears as though 1/2 is a usable value.
6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6212 fi
6213 ;;
6214 esac
6215
6216 fi
6217
6218 if test -n $lt_cv_sys_max_cmd_len ; then
6219 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6220 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6221 else
6222 { echo "$as_me:$LINENO: result: none" >&5
6223 echo "${ECHO_T}none" >&6; }
6224 fi
6225
6226
6227
6228
6229
6230 # Check for command to grab the raw symbol name followed by C symbol from nm.
6231 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6232 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6233 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236
6237 # These are sane defaults that work on at least a few old systems.
6238 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6239
6240 # Character class describing NM global symbol codes.
6241 symcode='[BCDEGRST]'
6242
6243 # Regexp to match symbols that can be accessed directly from C.
6244 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6245
6246 # Transform an extracted symbol line into a proper C declaration
6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6248
6249 # Transform an extracted symbol line into symbol name and symbol address
6250 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'"
6251
6252 # Define system-specific variables.
6253 case $host_os in
6254 aix*)
6255 symcode='[BCDT]'
6256 ;;
6257 cygwin* | mingw* | pw32*)
6258 symcode='[ABCDGISTW]'
6259 ;;
6260 hpux*) # Its linker distinguishes data from code symbols
6261 if test "$host_cpu" = ia64; then
6262 symcode='[ABCDEGRST]'
6263 fi
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265 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'"
6266 ;;
6267 linux* | k*bsd*-gnu)
6268 if test "$host_cpu" = ia64; then
6269 symcode='[ABCDGIRSTW]'
6270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6271 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'"
6272 fi
6273 ;;
6274 irix* | nonstopux*)
6275 symcode='[BCDEGRST]'
6276 ;;
6277 osf*)
6278 symcode='[BCDEGQRST]'
6279 ;;
6280 solaris*)
6281 symcode='[BDRT]'
6282 ;;
6283 sco3.2v5*)
6284 symcode='[DT]'
6285 ;;
6286 sysv4.2uw2*)
6287 symcode='[DT]'
6288 ;;
6289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6290 symcode='[ABDT]'
6291 ;;
6292 sysv4)
6293 symcode='[DFNSTU]'
6294 ;;
6295 esac
6296
6297 # Handle CRLF in mingw tool chain
6298 opt_cr=
6299 case $build_os in
6300 mingw*)
6301 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6302 ;;
6303 esac
6304
6305 # If we're using GNU nm, then use its standard symbol codes.
6306 case `$NM -V 2>&1` in
6307 *GNU* | *'with BFD'*)
6308 symcode='[ABCDGIRSTW]' ;;
6309 esac
6310
6311 # Try without a prefix undercore, then with it.
6312 for ac_symprfx in "" "_"; do
6313
6314 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6315 symxfrm="\\1 $ac_symprfx\\2 \\2"
6316
6317 # Write the raw and C identifiers.
6318 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6319
6320 # Check to see that the pipe works correctly.
6321 pipe_works=no
6322
6323 rm -f conftest*
6324 cat > conftest.$ac_ext <<EOF
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6328 char nm_test_var;
6329 void nm_test_func(){}
6330 #ifdef __cplusplus
6331 }
6332 #endif
6333 int main(){nm_test_var='a';nm_test_func();return(0);}
6334 EOF
6335
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; then
6341 # Now try to grab the symbols.
6342 nlist=conftest.nm
6343 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6344 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && test -s "$nlist"; then
6348 # Try sorting and uniquifying the output.
6349 if sort "$nlist" | uniq > "$nlist"T; then
6350 mv -f "$nlist"T "$nlist"
6351 else
6352 rm -f "$nlist"T
6353 fi
6354
6355 # Make sure that we snagged all the symbols we need.
6356 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6357 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6358 cat <<EOF > conftest.$ac_ext
6359 #ifdef __cplusplus
6360 extern "C" {
6361 #endif
6362
6363 EOF
6364 # Now generate the symbol file.
6365 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6366
6367 cat <<EOF >> conftest.$ac_ext
6368 #if defined (__STDC__) && __STDC__
6369 # define lt_ptr_t void *
6370 #else
6371 # define lt_ptr_t char *
6372 # define const
6373 #endif
6374
6375 /* The mapping between symbol names and symbols. */
6376 const struct {
6377 const char *name;
6378 lt_ptr_t address;
6379 }
6380 lt_preloaded_symbols[] =
6381 {
6382 EOF
6383 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6384 cat <<\EOF >> conftest.$ac_ext
6385 {0, (lt_ptr_t) 0}
6386 };
6387
6388 #ifdef __cplusplus
6389 }
6390 #endif
6391 EOF
6392 # Now try linking the two files.
6393 mv conftest.$ac_objext conftstm.$ac_objext
6394 lt_save_LIBS="$LIBS"
6395 lt_save_CFLAGS="$CFLAGS"
6396 LIBS="conftstm.$ac_objext"
6397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6403 pipe_works=yes
6404 fi
6405 LIBS="$lt_save_LIBS"
6406 CFLAGS="$lt_save_CFLAGS"
6407 else
6408 echo "cannot find nm_test_func in $nlist" >&5
6409 fi
6410 else
6411 echo "cannot find nm_test_var in $nlist" >&5
6412 fi
6413 else
6414 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6415 fi
6416 else
6417 echo "$progname: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 fi
6420 rm -f conftest* conftst*
6421
6422 # Do not use the global_symbol_pipe unless it works.
6423 if test "$pipe_works" = yes; then
6424 break
6425 else
6426 lt_cv_sys_global_symbol_pipe=
6427 fi
6428 done
6429
6430 fi
6431
6432 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6433 lt_cv_sys_global_symbol_to_cdecl=
6434 fi
6435 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6436 { echo "$as_me:$LINENO: result: failed" >&5
6437 echo "${ECHO_T}failed" >&6; }
6438 else
6439 { echo "$as_me:$LINENO: result: ok" >&5
6440 echo "${ECHO_T}ok" >&6; }
6441 fi
6442
6443 { echo "$as_me:$LINENO: checking for objdir" >&5
6444 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6445 if test "${lt_cv_objdir+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 rm -f .libs 2>/dev/null
6449 mkdir .libs 2>/dev/null
6450 if test -d .libs; then
6451 lt_cv_objdir=.libs
6452 else
6453 # MS-DOS does not allow filenames that begin with a dot.
6454 lt_cv_objdir=_libs
6455 fi
6456 rmdir .libs 2>/dev/null
6457 fi
6458 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6459 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6460 objdir=$lt_cv_objdir
6461
6462
6463
6464
6465
6466 case $host_os in
6467 aix3*)
6468 # AIX sometimes has problems with the GCC collect2 program. For some
6469 # reason, if we set the COLLECT_NAMES environment variable, the problems
6470 # vanish in a puff of smoke.
6471 if test "X${COLLECT_NAMES+set}" != Xset; then
6472 COLLECT_NAMES=
6473 export COLLECT_NAMES
6474 fi
6475 ;;
6476 esac
6477
6478 # Sed substitution that helps us do robust quoting. It backslashifies
6479 # metacharacters that are still active within double-quoted strings.
6480 Xsed='sed -e 1s/^X//'
6481 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6482
6483 # Same as above, but do not quote variable references.
6484 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6485
6486 # Sed substitution to delay expansion of an escaped shell variable in a
6487 # double_quote_subst'ed string.
6488 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6489
6490 # Sed substitution to avoid accidental globbing in evaled expressions
6491 no_glob_subst='s/\*/\\\*/g'
6492
6493 # Constants:
6494 rm="rm -f"
6495
6496 # Global variables:
6497 default_ofile=libtool
6498 can_build_shared=yes
6499
6500 # All known linkers require a `.a' archive for static linking (except MSVC,
6501 # which needs '.lib').
6502 libext=a
6503 ltmain="$ac_aux_dir/ltmain.sh"
6504 ofile="$default_ofile"
6505 with_gnu_ld="$lt_cv_prog_gnu_ld"
6506
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}ar; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_AR+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 if test -n "$AR"; then
6516 ac_cv_prog_AR="$AR" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_AR="${ac_tool_prefix}ar"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 AR=$ac_cv_prog_AR
6536 if test -n "$AR"; then
6537 { echo "$as_me:$LINENO: result: $AR" >&5
6538 echo "${ECHO_T}$AR" >&6; }
6539 else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6542 fi
6543
6544
6545 fi
6546 if test -z "$ac_cv_prog_AR"; then
6547 ac_ct_AR=$AR
6548 # Extract the first word of "ar", so it can be a program name with args.
6549 set dummy ar; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 if test -n "$ac_ct_AR"; then
6556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_AR="ar"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6576 if test -n "$ac_ct_AR"; then
6577 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6578 echo "${ECHO_T}$ac_ct_AR" >&6; }
6579 else
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6582 fi
6583
6584 if test "x$ac_ct_AR" = x; then
6585 AR="false"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6590 whose name does not start with the host triplet. If you think this
6591 configuration is useful to you, please write to [email protected]." >&5
6592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to [email protected]." >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 AR=$ac_ct_AR
6598 fi
6599 else
6600 AR="$ac_cv_prog_AR"
6601 fi
6602
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_RANLIB+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 if test -n "$RANLIB"; then
6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 RANLIB=$ac_cv_prog_RANLIB
6632 if test -n "$RANLIB"; then
6633 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6634 echo "${ECHO_T}$RANLIB" >&6; }
6635 else
6636 { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640
6641 fi
6642 if test -z "$ac_cv_prog_RANLIB"; then
6643 ac_ct_RANLIB=$RANLIB
6644 # Extract the first word of "ranlib", so it can be a program name with args.
6645 set dummy ranlib; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 if test -n "$ac_ct_RANLIB"; then
6652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_RANLIB="ranlib"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6672 if test -n "$ac_ct_RANLIB"; then
6673 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6674 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6675 else
6676 { echo "$as_me:$LINENO: result: no" >&5
6677 echo "${ECHO_T}no" >&6; }
6678 fi
6679
6680 if test "x$ac_ct_RANLIB" = x; then
6681 RANLIB=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684 yes:)
6685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to [email protected]." >&5
6688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to [email protected]." >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 RANLIB=$ac_ct_RANLIB
6694 fi
6695 else
6696 RANLIB="$ac_cv_prog_RANLIB"
6697 fi
6698
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}strip; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_prog_STRIP+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 if test -n "$STRIP"; then
6708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 STRIP=$ac_cv_prog_STRIP
6728 if test -n "$STRIP"; then
6729 { echo "$as_me:$LINENO: result: $STRIP" >&5
6730 echo "${ECHO_T}$STRIP" >&6; }
6731 else
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 fi
6738 if test -z "$ac_cv_prog_STRIP"; then
6739 ac_ct_STRIP=$STRIP
6740 # Extract the first word of "strip", so it can be a program name with args.
6741 set dummy strip; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 if test -n "$ac_ct_STRIP"; then
6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_STRIP="strip"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6768 if test -n "$ac_ct_STRIP"; then
6769 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6770 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6771 else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6774 fi
6775
6776 if test "x$ac_ct_STRIP" = x; then
6777 STRIP=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to [email protected]." >&5
6784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785 whose name does not start with the host triplet. If you think this
6786 configuration is useful to you, please write to [email protected]." >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 STRIP=$ac_ct_STRIP
6790 fi
6791 else
6792 STRIP="$ac_cv_prog_STRIP"
6793 fi
6794
6795
6796 old_CC="$CC"
6797 old_CFLAGS="$CFLAGS"
6798
6799 # Set sane defaults for various variables
6800 test -z "$AR" && AR=ar
6801 test -z "$AR_FLAGS" && AR_FLAGS=cru
6802 test -z "$AS" && AS=as
6803 test -z "$CC" && CC=cc
6804 test -z "$LTCC" && LTCC=$CC
6805 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6806 test -z "$DLLTOOL" && DLLTOOL=dlltool
6807 test -z "$LD" && LD=ld
6808 test -z "$LN_S" && LN_S="ln -s"
6809 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6810 test -z "$NM" && NM=nm
6811 test -z "$SED" && SED=sed
6812 test -z "$OBJDUMP" && OBJDUMP=objdump
6813 test -z "$RANLIB" && RANLIB=:
6814 test -z "$STRIP" && STRIP=:
6815 test -z "$ac_objext" && ac_objext=o
6816
6817 # Determine commands to create old-style static archives.
6818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6819 old_postinstall_cmds='chmod 644 $oldlib'
6820 old_postuninstall_cmds=
6821
6822 if test -n "$RANLIB"; then
6823 case $host_os in
6824 openbsd*)
6825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6826 ;;
6827 *)
6828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6829 ;;
6830 esac
6831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6832 fi
6833
6834 for cc_temp in $compiler""; do
6835 case $cc_temp in
6836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6838 \-*) ;;
6839 *) break;;
6840 esac
6841 done
6842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6843
6844
6845 # Only perform the check for file, if the check method requires it
6846 case $deplibs_check_method in
6847 file_magic*)
6848 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6849 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6850 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6851 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 case $MAGIC_CMD in
6855 [\\/*] | ?:[\\/]*)
6856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 lt_save_MAGIC_CMD="$MAGIC_CMD"
6860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6862 for ac_dir in $ac_dummy; do
6863 IFS="$lt_save_ifs"
6864 test -z "$ac_dir" && ac_dir=.
6865 if test -f $ac_dir/${ac_tool_prefix}file; then
6866 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6867 if test -n "$file_magic_test_file"; then
6868 case $deplibs_check_method in
6869 "file_magic "*)
6870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6873 $EGREP "$file_magic_regex" > /dev/null; then
6874 :
6875 else
6876 cat <<EOF 1>&2
6877
6878 *** Warning: the command libtool uses to detect shared libraries,
6879 *** $file_magic_cmd, produces output that libtool cannot recognize.
6880 *** The result is that libtool may fail to recognize shared libraries
6881 *** as such. This will affect the creation of libtool libraries that
6882 *** depend on shared libraries, but programs linked with such libtool
6883 *** libraries will work regardless of this problem. Nevertheless, you
6884 *** may want to report the problem to your system manager and/or to
6885 *** [email protected]
6886
6887 EOF
6888 fi ;;
6889 esac
6890 fi
6891 break
6892 fi
6893 done
6894 IFS="$lt_save_ifs"
6895 MAGIC_CMD="$lt_save_MAGIC_CMD"
6896 ;;
6897 esac
6898 fi
6899
6900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6901 if test -n "$MAGIC_CMD"; then
6902 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6903 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6904 else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6908
6909 if test -z "$lt_cv_path_MAGIC_CMD"; then
6910 if test -n "$ac_tool_prefix"; then
6911 { echo "$as_me:$LINENO: checking for file" >&5
6912 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 case $MAGIC_CMD in
6917 [\\/*] | ?:[\\/]*)
6918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 lt_save_MAGIC_CMD="$MAGIC_CMD"
6922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6924 for ac_dir in $ac_dummy; do
6925 IFS="$lt_save_ifs"
6926 test -z "$ac_dir" && ac_dir=.
6927 if test -f $ac_dir/file; then
6928 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6929 if test -n "$file_magic_test_file"; then
6930 case $deplibs_check_method in
6931 "file_magic "*)
6932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6935 $EGREP "$file_magic_regex" > /dev/null; then
6936 :
6937 else
6938 cat <<EOF 1>&2
6939
6940 *** Warning: the command libtool uses to detect shared libraries,
6941 *** $file_magic_cmd, produces output that libtool cannot recognize.
6942 *** The result is that libtool may fail to recognize shared libraries
6943 *** as such. This will affect the creation of libtool libraries that
6944 *** depend on shared libraries, but programs linked with such libtool
6945 *** libraries will work regardless of this problem. Nevertheless, you
6946 *** may want to report the problem to your system manager and/or to
6947 *** [email protected]
6948
6949 EOF
6950 fi ;;
6951 esac
6952 fi
6953 break
6954 fi
6955 done
6956 IFS="$lt_save_ifs"
6957 MAGIC_CMD="$lt_save_MAGIC_CMD"
6958 ;;
6959 esac
6960 fi
6961
6962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6963 if test -n "$MAGIC_CMD"; then
6964 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6965 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6966 else
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 fi
6970
6971 else
6972 MAGIC_CMD=:
6973 fi
6974 fi
6975
6976 fi
6977 ;;
6978 esac
6979
6980 enable_dlopen=no
6981 enable_win32_dll=no
6982
6983 # Check whether --enable-libtool-lock was given.
6984 if test "${enable_libtool_lock+set}" = set; then
6985 enableval=$enable_libtool_lock;
6986 fi
6987
6988 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6989
6990
6991 # Check whether --with-pic was given.
6992 if test "${with_pic+set}" = set; then
6993 withval=$with_pic; pic_mode="$withval"
6994 else
6995 pic_mode=default
6996 fi
6997
6998 test -z "$pic_mode" && pic_mode=default
6999
7000 # Use C for the default configuration in the libtool script
7001 tagname=
7002 lt_save_CC="$CC"
7003 ac_ext=c
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009
7010 # Source file extension for C test sources.
7011 ac_ext=c
7012
7013 # Object file extension for compiled C test sources.
7014 objext=o
7015 objext=$objext
7016
7017 # Code to be used in simple compile tests
7018 lt_simple_compile_test_code="int some_variable = 0;"
7019
7020 # Code to be used in simple link tests
7021 lt_simple_link_test_code='int main(){return(0);}'
7022
7023
7024 # If no C compiler was specified, use CC.
7025 LTCC=${LTCC-"$CC"}
7026
7027 # If no C compiler flags were specified, use CFLAGS.
7028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7029
7030 # Allow CC to be a program name with arguments.
7031 compiler=$CC
7032
7033
7034 # save warnings/boilerplate of simple test code
7035 ac_outfile=conftest.$ac_objext
7036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7038 _lt_compiler_boilerplate=`cat conftest.err`
7039 $rm conftest*
7040
7041 ac_outfile=conftest.$ac_objext
7042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7044 _lt_linker_boilerplate=`cat conftest.err`
7045 $rm conftest*
7046
7047
7048
7049 lt_prog_compiler_no_builtin_flag=
7050
7051 if test "$GCC" = yes; then
7052 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7053
7054
7055 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7056 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7057 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 lt_cv_prog_compiler_rtti_exceptions=no
7061 ac_outfile=conftest.$ac_objext
7062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7063 lt_compiler_flag="-fno-rtti -fno-exceptions"
7064 # Insert the option either (1) after the last *FLAGS variable, or
7065 # (2) before a word containing "conftest.", or (3) at the end.
7066 # Note that $ac_compile itself does not contain backslashes and begins
7067 # with a dollar sign (not a hyphen), so the echo should work correctly.
7068 # The option is referenced via a variable to avoid confusing sed.
7069 lt_compile=`echo "$ac_compile" | $SED \
7070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7072 -e 's:$: $lt_compiler_flag:'`
7073 (eval echo "\"\$as_me:7073: $lt_compile\"" >&5)
7074 (eval "$lt_compile" 2>conftest.err)
7075 ac_status=$?
7076 cat conftest.err >&5
7077 echo "$as_me:7077: \$? = $ac_status" >&5
7078 if (exit $ac_status) && test -s "$ac_outfile"; then
7079 # The compiler can only warn and ignore the option if not recognized
7080 # So say no if there are warnings other than the usual output.
7081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7084 lt_cv_prog_compiler_rtti_exceptions=yes
7085 fi
7086 fi
7087 $rm conftest*
7088
7089 fi
7090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7091 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7092
7093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7095 else
7096 :
7097 fi
7098
7099 fi
7100
7101 lt_prog_compiler_wl=
7102 lt_prog_compiler_pic=
7103 lt_prog_compiler_static=
7104
7105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7107
7108 if test "$GCC" = yes; then
7109 lt_prog_compiler_wl='-Wl,'
7110 lt_prog_compiler_static='-static'
7111
7112 case $host_os in
7113 aix*)
7114 # All AIX code is PIC.
7115 if test "$host_cpu" = ia64; then
7116 # AIX 5 now supports IA64 processor
7117 lt_prog_compiler_static='-Bstatic'
7118 fi
7119 ;;
7120
7121 amigaos*)
7122 # FIXME: we need at least 68020 code to build shared libraries, but
7123 # adding the `-m68020' flag to GCC prevents building anything better,
7124 # like `-m68040'.
7125 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7126 ;;
7127
7128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7129 # PIC is the default for these OSes.
7130 ;;
7131
7132 mingw* | cygwin* | pw32* | os2*)
7133 # This hack is so that the source file can tell whether it is being
7134 # built for inclusion in a dll (and should export symbols for example).
7135 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7136 # (--disable-auto-import) libraries
7137 lt_prog_compiler_pic='-DDLL_EXPORT'
7138 ;;
7139
7140 darwin* | rhapsody*)
7141 # PIC is the default on this platform
7142 # Common symbols not allowed in MH_DYLIB files
7143 lt_prog_compiler_pic='-fno-common'
7144 ;;
7145
7146 interix[3-9]*)
7147 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7148 # Instead, we relocate shared libraries at runtime.
7149 ;;
7150
7151 msdosdjgpp*)
7152 # Just because we use GCC doesn't mean we suddenly get shared libraries
7153 # on systems that don't support them.
7154 lt_prog_compiler_can_build_shared=no
7155 enable_shared=no
7156 ;;
7157
7158 sysv4*MP*)
7159 if test -d /usr/nec; then
7160 lt_prog_compiler_pic=-Kconform_pic
7161 fi
7162 ;;
7163
7164 hpux*)
7165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7166 # not for PA HP-UX.
7167 case $host_cpu in
7168 hppa*64*|ia64*)
7169 # +Z the default
7170 ;;
7171 *)
7172 lt_prog_compiler_pic='-fPIC'
7173 ;;
7174 esac
7175 ;;
7176
7177 *)
7178 lt_prog_compiler_pic='-fPIC'
7179 ;;
7180 esac
7181 else
7182 # PORTME Check for flag to pass linker flags through the system compiler.
7183 case $host_os in
7184 aix*)
7185 lt_prog_compiler_wl='-Wl,'
7186 if test "$host_cpu" = ia64; then
7187 # AIX 5 now supports IA64 processor
7188 lt_prog_compiler_static='-Bstatic'
7189 else
7190 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7191 fi
7192 ;;
7193 darwin*)
7194 # PIC is the default on this platform
7195 # Common symbols not allowed in MH_DYLIB files
7196 case $cc_basename in
7197 xlc*)
7198 lt_prog_compiler_pic='-qnocommon'
7199 lt_prog_compiler_wl='-Wl,'
7200 ;;
7201 esac
7202 ;;
7203
7204 mingw* | cygwin* | pw32* | os2*)
7205 # This hack is so that the source file can tell whether it is being
7206 # built for inclusion in a dll (and should export symbols for example).
7207 lt_prog_compiler_pic='-DDLL_EXPORT'
7208 ;;
7209
7210 hpux9* | hpux10* | hpux11*)
7211 lt_prog_compiler_wl='-Wl,'
7212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7213 # not for PA HP-UX.
7214 case $host_cpu in
7215 hppa*64*|ia64*)
7216 # +Z the default
7217 ;;
7218 *)
7219 lt_prog_compiler_pic='+Z'
7220 ;;
7221 esac
7222 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7223 lt_prog_compiler_static='${wl}-a ${wl}archive'
7224 ;;
7225
7226 irix5* | irix6* | nonstopux*)
7227 lt_prog_compiler_wl='-Wl,'
7228 # PIC (with -KPIC) is the default.
7229 lt_prog_compiler_static='-non_shared'
7230 ;;
7231
7232 newsos6)
7233 lt_prog_compiler_pic='-KPIC'
7234 lt_prog_compiler_static='-Bstatic'
7235 ;;
7236
7237 linux* | k*bsd*-gnu)
7238 case $cc_basename in
7239 icc* | ecc*)
7240 lt_prog_compiler_wl='-Wl,'
7241 lt_prog_compiler_pic='-KPIC'
7242 lt_prog_compiler_static='-static'
7243 ;;
7244 pgcc* | pgf77* | pgf90* | pgf95*)
7245 # Portland Group compilers (*not* the Pentium gcc compiler,
7246 # which looks to be a dead project)
7247 lt_prog_compiler_wl='-Wl,'
7248 lt_prog_compiler_pic='-fpic'
7249 lt_prog_compiler_static='-Bstatic'
7250 ;;
7251 ccc*)
7252 lt_prog_compiler_wl='-Wl,'
7253 # All Alpha code is PIC.
7254 lt_prog_compiler_static='-non_shared'
7255 ;;
7256 *)
7257 case `$CC -V 2>&1 | sed 5q` in
7258 *Sun\ C*)
7259 # Sun C 5.9
7260 lt_prog_compiler_pic='-KPIC'
7261 lt_prog_compiler_static='-Bstatic'
7262 lt_prog_compiler_wl='-Wl,'
7263 ;;
7264 *Sun\ F*)
7265 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7266 lt_prog_compiler_pic='-KPIC'
7267 lt_prog_compiler_static='-Bstatic'
7268 lt_prog_compiler_wl=''
7269 ;;
7270 esac
7271 ;;
7272 esac
7273 ;;
7274
7275 osf3* | osf4* | osf5*)
7276 lt_prog_compiler_wl='-Wl,'
7277 # All OSF/1 code is PIC.
7278 lt_prog_compiler_static='-non_shared'
7279 ;;
7280
7281 rdos*)
7282 lt_prog_compiler_static='-non_shared'
7283 ;;
7284
7285 solaris*)
7286 lt_prog_compiler_pic='-KPIC'
7287 lt_prog_compiler_static='-Bstatic'
7288 case $cc_basename in
7289 f77* | f90* | f95*)
7290 lt_prog_compiler_wl='-Qoption ld ';;
7291 *)
7292 lt_prog_compiler_wl='-Wl,';;
7293 esac
7294 ;;
7295
7296 sunos4*)
7297 lt_prog_compiler_wl='-Qoption ld '
7298 lt_prog_compiler_pic='-PIC'
7299 lt_prog_compiler_static='-Bstatic'
7300 ;;
7301
7302 sysv4 | sysv4.2uw2* | sysv4.3*)
7303 lt_prog_compiler_wl='-Wl,'
7304 lt_prog_compiler_pic='-KPIC'
7305 lt_prog_compiler_static='-Bstatic'
7306 ;;
7307
7308 sysv4*MP*)
7309 if test -d /usr/nec ;then
7310 lt_prog_compiler_pic='-Kconform_pic'
7311 lt_prog_compiler_static='-Bstatic'
7312 fi
7313 ;;
7314
7315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7316 lt_prog_compiler_wl='-Wl,'
7317 lt_prog_compiler_pic='-KPIC'
7318 lt_prog_compiler_static='-Bstatic'
7319 ;;
7320
7321 unicos*)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_can_build_shared=no
7324 ;;
7325
7326 uts4*)
7327 lt_prog_compiler_pic='-pic'
7328 lt_prog_compiler_static='-Bstatic'
7329 ;;
7330
7331 *)
7332 lt_prog_compiler_can_build_shared=no
7333 ;;
7334 esac
7335 fi
7336
7337 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7338 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7339
7340 #
7341 # Check to make sure the PIC flag actually works.
7342 #
7343 if test -n "$lt_prog_compiler_pic"; then
7344
7345 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7346 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7347 if test "${lt_prog_compiler_pic_works+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 lt_prog_compiler_pic_works=no
7351 ac_outfile=conftest.$ac_objext
7352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7353 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7354 # Insert the option either (1) after the last *FLAGS variable, or
7355 # (2) before a word containing "conftest.", or (3) at the end.
7356 # Note that $ac_compile itself does not contain backslashes and begins
7357 # with a dollar sign (not a hyphen), so the echo should work correctly.
7358 # The option is referenced via a variable to avoid confusing sed.
7359 lt_compile=`echo "$ac_compile" | $SED \
7360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7362 -e 's:$: $lt_compiler_flag:'`
7363 (eval echo "\"\$as_me:7363: $lt_compile\"" >&5)
7364 (eval "$lt_compile" 2>conftest.err)
7365 ac_status=$?
7366 cat conftest.err >&5
7367 echo "$as_me:7367: \$? = $ac_status" >&5
7368 if (exit $ac_status) && test -s "$ac_outfile"; then
7369 # The compiler can only warn and ignore the option if not recognized
7370 # So say no if there are warnings other than the usual output.
7371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7374 lt_prog_compiler_pic_works=yes
7375 fi
7376 fi
7377 $rm conftest*
7378
7379 fi
7380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7381 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7382
7383 if test x"$lt_prog_compiler_pic_works" = xyes; then
7384 case $lt_prog_compiler_pic in
7385 "" | " "*) ;;
7386 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7387 esac
7388 else
7389 lt_prog_compiler_pic=
7390 lt_prog_compiler_can_build_shared=no
7391 fi
7392
7393 fi
7394 case $host_os in
7395 # For platforms which do not support PIC, -DPIC is meaningless:
7396 *djgpp*)
7397 lt_prog_compiler_pic=
7398 ;;
7399 *)
7400 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7401 ;;
7402 esac
7403
7404 #
7405 # Check to make sure the static flag actually works.
7406 #
7407 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7408 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7409 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7410 if test "${lt_prog_compiler_static_works+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 lt_prog_compiler_static_works=no
7414 save_LDFLAGS="$LDFLAGS"
7415 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7418 # The linker can only warn and ignore the option if not recognized
7419 # So say no if there are warnings
7420 if test -s conftest.err; then
7421 # Append any errors to the config.log.
7422 cat conftest.err 1>&5
7423 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7425 if diff conftest.exp conftest.er2 >/dev/null; then
7426 lt_prog_compiler_static_works=yes
7427 fi
7428 else
7429 lt_prog_compiler_static_works=yes
7430 fi
7431 fi
7432 $rm conftest*
7433 LDFLAGS="$save_LDFLAGS"
7434
7435 fi
7436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7437 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7438
7439 if test x"$lt_prog_compiler_static_works" = xyes; then
7440 :
7441 else
7442 lt_prog_compiler_static=
7443 fi
7444
7445
7446 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7447 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7448 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 lt_cv_prog_compiler_c_o=no
7452 $rm -r conftest 2>/dev/null
7453 mkdir conftest
7454 cd conftest
7455 mkdir out
7456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7457
7458 lt_compiler_flag="-o out/conftest2.$ac_objext"
7459 # Insert the option either (1) after the last *FLAGS variable, or
7460 # (2) before a word containing "conftest.", or (3) at the end.
7461 # Note that $ac_compile itself does not contain backslashes and begins
7462 # with a dollar sign (not a hyphen), so the echo should work correctly.
7463 lt_compile=`echo "$ac_compile" | $SED \
7464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7466 -e 's:$: $lt_compiler_flag:'`
7467 (eval echo "\"\$as_me:7467: $lt_compile\"" >&5)
7468 (eval "$lt_compile" 2>out/conftest.err)
7469 ac_status=$?
7470 cat out/conftest.err >&5
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7473 then
7474 # The compiler can only warn and ignore the option if not recognized
7475 # So say no if there are warnings
7476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7479 lt_cv_prog_compiler_c_o=yes
7480 fi
7481 fi
7482 chmod u+w . 2>&5
7483 $rm conftest*
7484 # SGI C++ compiler will create directory out/ii_files/ for
7485 # template instantiation
7486 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7487 $rm out/* && rmdir out
7488 cd ..
7489 rmdir conftest
7490 $rm conftest*
7491
7492 fi
7493 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7494 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7495
7496
7497 hard_links="nottested"
7498 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7499 # do not overwrite the value of need_locks provided by the user
7500 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7501 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7502 hard_links=yes
7503 $rm conftest*
7504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7505 touch conftest.a
7506 ln conftest.a conftest.b 2>&5 || hard_links=no
7507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7508 { echo "$as_me:$LINENO: result: $hard_links" >&5
7509 echo "${ECHO_T}$hard_links" >&6; }
7510 if test "$hard_links" = no; then
7511 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7512 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7513 need_locks=warn
7514 fi
7515 else
7516 need_locks=no
7517 fi
7518
7519 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7520 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7521
7522 runpath_var=
7523 allow_undefined_flag=
7524 enable_shared_with_static_runtimes=no
7525 archive_cmds=
7526 archive_expsym_cmds=
7527 old_archive_From_new_cmds=
7528 old_archive_from_expsyms_cmds=
7529 export_dynamic_flag_spec=
7530 whole_archive_flag_spec=
7531 thread_safe_flag_spec=
7532 hardcode_libdir_flag_spec=
7533 hardcode_libdir_flag_spec_ld=
7534 hardcode_libdir_separator=
7535 hardcode_direct=no
7536 hardcode_minus_L=no
7537 hardcode_shlibpath_var=unsupported
7538 link_all_deplibs=unknown
7539 hardcode_automatic=no
7540 module_cmds=
7541 module_expsym_cmds=
7542 always_export_symbols=no
7543 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7544 # include_expsyms should be a list of space-separated symbols to be *always*
7545 # included in the symbol list
7546 include_expsyms=
7547 # exclude_expsyms can be an extended regexp of symbols to exclude
7548 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7549 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7550 # as well as any symbol that contains `d'.
7551 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7552 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7553 # platforms (ab)use it in PIC code, but their linkers get confused if
7554 # the symbol is explicitly referenced. Since portable code cannot
7555 # rely on this symbol name, it's probably fine to never include it in
7556 # preloaded symbol tables.
7557 extract_expsyms_cmds=
7558 # Just being paranoid about ensuring that cc_basename is set.
7559 for cc_temp in $compiler""; do
7560 case $cc_temp in
7561 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7562 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7563 \-*) ;;
7564 *) break;;
7565 esac
7566 done
7567 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7568
7569 case $host_os in
7570 cygwin* | mingw* | pw32*)
7571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7572 # When not using gcc, we currently assume that we are using
7573 # Microsoft Visual C++.
7574 if test "$GCC" != yes; then
7575 with_gnu_ld=no
7576 fi
7577 ;;
7578 interix*)
7579 # we just hope/assume this is gcc and not c89 (= MSVC++)
7580 with_gnu_ld=yes
7581 ;;
7582 openbsd*)
7583 with_gnu_ld=no
7584 ;;
7585 esac
7586
7587 ld_shlibs=yes
7588 if test "$with_gnu_ld" = yes; then
7589 # If archive_cmds runs LD, not CC, wlarc should be empty
7590 wlarc='${wl}'
7591
7592 # Set some defaults for GNU ld with shared library support. These
7593 # are reset later if shared libraries are not supported. Putting them
7594 # here allows them to be overridden if necessary.
7595 runpath_var=LD_RUN_PATH
7596 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7597 export_dynamic_flag_spec='${wl}--export-dynamic'
7598 # ancient GNU ld didn't support --whole-archive et. al.
7599 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7600 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7601 else
7602 whole_archive_flag_spec=
7603 fi
7604 supports_anon_versioning=no
7605 case `$LD -v 2>/dev/null` in
7606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7609 *\ 2.11.*) ;; # other 2.11 versions
7610 *) supports_anon_versioning=yes ;;
7611 esac
7612
7613 # See if GNU ld supports shared libraries.
7614 case $host_os in
7615 aix3* | aix4* | aix5*)
7616 # On AIX/PPC, the GNU linker is very broken
7617 if test "$host_cpu" != ia64; then
7618 ld_shlibs=no
7619 cat <<EOF 1>&2
7620
7621 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7622 *** to be unable to reliably create shared libraries on AIX.
7623 *** Therefore, libtool is disabling shared libraries support. If you
7624 *** really care for shared libraries, you may want to modify your PATH
7625 *** so that a non-GNU linker is found, and then restart.
7626
7627 EOF
7628 fi
7629 ;;
7630
7631 amigaos*)
7632 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)'
7633 hardcode_libdir_flag_spec='-L$libdir'
7634 hardcode_minus_L=yes
7635
7636 # Samuel A. Falvo II <[email protected]> reports
7637 # that the semantics of dynamic libraries on AmigaOS, at least up
7638 # to version 4, is to share data among multiple programs linked
7639 # with the same dynamic library. Since this doesn't match the
7640 # behavior of shared libraries on other platforms, we can't use
7641 # them.
7642 ld_shlibs=no
7643 ;;
7644
7645 beos*)
7646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7647 allow_undefined_flag=unsupported
7648 # Joseph Beckenbach <[email protected]> says some releases of gcc
7649 # support --undefined. This deserves some investigation. FIXME
7650 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7651 else
7652 ld_shlibs=no
7653 fi
7654 ;;
7655
7656 cygwin* | mingw* | pw32*)
7657 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7658 # as there is no search path for DLLs.
7659 hardcode_libdir_flag_spec='-L$libdir'
7660 allow_undefined_flag=unsupported
7661 always_export_symbols=no
7662 enable_shared_with_static_runtimes=yes
7663 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7664
7665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7667 # If the export-symbols file already is a .def file (1st line
7668 # is EXPORTS), use it as is; otherwise, prepend...
7669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7670 cp $export_symbols $output_objdir/$soname.def;
7671 else
7672 echo EXPORTS > $output_objdir/$soname.def;
7673 cat $export_symbols >> $output_objdir/$soname.def;
7674 fi~
7675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7676 else
7677 ld_shlibs=no
7678 fi
7679 ;;
7680
7681 interix[3-9]*)
7682 hardcode_direct=no
7683 hardcode_shlibpath_var=no
7684 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7685 export_dynamic_flag_spec='${wl}-E'
7686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7687 # Instead, shared libraries are loaded at an image base (0x10000000 by
7688 # default) and relocated if they conflict, which is a slow very memory
7689 # consuming and fragmenting process. To avoid this, we pick a random,
7690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7693 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'
7694 ;;
7695
7696 gnu* | linux* | k*bsd*-gnu)
7697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7698 tmp_addflag=
7699 case $cc_basename,$host_cpu in
7700 pgcc*) # Portland Group C compiler
7701 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'
7702 tmp_addflag=' $pic_flag'
7703 ;;
7704 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7705 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'
7706 tmp_addflag=' $pic_flag -Mnomain' ;;
7707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7708 tmp_addflag=' -i_dynamic' ;;
7709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7710 tmp_addflag=' -i_dynamic -nofor_main' ;;
7711 ifc* | ifort*) # Intel Fortran compiler
7712 tmp_addflag=' -nofor_main' ;;
7713 esac
7714 case `$CC -V 2>&1 | sed 5q` in
7715 *Sun\ C*) # Sun C 5.9
7716 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7717 tmp_sharedflag='-G' ;;
7718 *Sun\ F*) # Sun Fortran 8.3
7719 tmp_sharedflag='-G' ;;
7720 *)
7721 tmp_sharedflag='-shared' ;;
7722 esac
7723 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7724
7725 if test $supports_anon_versioning = yes; then
7726 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7728 $echo "local: *; };" >> $output_objdir/$libname.ver~
7729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7730 fi
7731 else
7732 ld_shlibs=no
7733 fi
7734 ;;
7735
7736 netbsd*)
7737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7738 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7739 wlarc=
7740 else
7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7743 fi
7744 ;;
7745
7746 solaris*)
7747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7748 ld_shlibs=no
7749 cat <<EOF 1>&2
7750
7751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7752 *** create shared libraries on Solaris systems. Therefore, libtool
7753 *** is disabling shared libraries support. We urge you to upgrade GNU
7754 *** binutils to release 2.9.1 or newer. Another option is to modify
7755 *** your PATH or compiler configuration so that the native linker is
7756 *** used, and then restart.
7757
7758 EOF
7759 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7762 else
7763 ld_shlibs=no
7764 fi
7765 ;;
7766
7767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7768 case `$LD -v 2>&1` in
7769 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7770 ld_shlibs=no
7771 cat <<_LT_EOF 1>&2
7772
7773 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7774 *** reliably create shared libraries on SCO systems. Therefore, libtool
7775 *** is disabling shared libraries support. We urge you to upgrade GNU
7776 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7777 *** your PATH or compiler configuration so that the native linker is
7778 *** used, and then restart.
7779
7780 _LT_EOF
7781 ;;
7782 *)
7783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7784 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7787 else
7788 ld_shlibs=no
7789 fi
7790 ;;
7791 esac
7792 ;;
7793
7794 sunos4*)
7795 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7796 wlarc=
7797 hardcode_direct=yes
7798 hardcode_shlibpath_var=no
7799 ;;
7800
7801 *)
7802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7805 else
7806 ld_shlibs=no
7807 fi
7808 ;;
7809 esac
7810
7811 if test "$ld_shlibs" = no; then
7812 runpath_var=
7813 hardcode_libdir_flag_spec=
7814 export_dynamic_flag_spec=
7815 whole_archive_flag_spec=
7816 fi
7817 else
7818 # PORTME fill in a description of your system's linker (not GNU ld)
7819 case $host_os in
7820 aix3*)
7821 allow_undefined_flag=unsupported
7822 always_export_symbols=yes
7823 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'
7824 # Note: this linker hardcodes the directories in LIBPATH if there
7825 # are no directories specified by -L.
7826 hardcode_minus_L=yes
7827 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7828 # Neither direct hardcoding nor static linking is supported with a
7829 # broken collect2.
7830 hardcode_direct=unsupported
7831 fi
7832 ;;
7833
7834 aix4* | aix5*)
7835 if test "$host_cpu" = ia64; then
7836 # On IA64, the linker does run time linking by default, so we don't
7837 # have to do anything special.
7838 aix_use_runtimelinking=no
7839 exp_sym_flag='-Bexport'
7840 no_entry_flag=""
7841 else
7842 # If we're using GNU nm, then we don't want the "-C" option.
7843 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7844 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7845 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'
7846 else
7847 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'
7848 fi
7849 aix_use_runtimelinking=no
7850
7851 # Test if we are trying to use run time linking or normal
7852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7853 # need to do runtime linking.
7854 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7855 for ld_flag in $LDFLAGS; do
7856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7857 aix_use_runtimelinking=yes
7858 break
7859 fi
7860 done
7861 ;;
7862 esac
7863
7864 exp_sym_flag='-bexport'
7865 no_entry_flag='-bnoentry'
7866 fi
7867
7868 # When large executables or shared objects are built, AIX ld can
7869 # have problems creating the table of contents. If linking a library
7870 # or program results in "error TOC overflow" add -mminimal-toc to
7871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7873
7874 archive_cmds=''
7875 hardcode_direct=yes
7876 hardcode_libdir_separator=':'
7877 link_all_deplibs=yes
7878
7879 if test "$GCC" = yes; then
7880 case $host_os in aix4.[012]|aix4.[012].*)
7881 # We only want to do this on AIX 4.2 and lower, the check
7882 # below for broken collect2 doesn't work under 4.3+
7883 collect2name=`${CC} -print-prog-name=collect2`
7884 if test -f "$collect2name" && \
7885 strings "$collect2name" | grep resolve_lib_name >/dev/null
7886 then
7887 # We have reworked collect2
7888 :
7889 else
7890 # We have old collect2
7891 hardcode_direct=unsupported
7892 # It fails to find uninstalled libraries when the uninstalled
7893 # path is not listed in the libpath. Setting hardcode_minus_L
7894 # to unsupported forces relinking
7895 hardcode_minus_L=yes
7896 hardcode_libdir_flag_spec='-L$libdir'
7897 hardcode_libdir_separator=
7898 fi
7899 ;;
7900 esac
7901 shared_flag='-shared'
7902 if test "$aix_use_runtimelinking" = yes; then
7903 shared_flag="$shared_flag "'${wl}-G'
7904 fi
7905 else
7906 # not using gcc
7907 if test "$host_cpu" = ia64; then
7908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7909 # chokes on -Wl,-G. The following line is correct:
7910 shared_flag='-G'
7911 else
7912 if test "$aix_use_runtimelinking" = yes; then
7913 shared_flag='${wl}-G'
7914 else
7915 shared_flag='${wl}-bM:SRE'
7916 fi
7917 fi
7918 fi
7919
7920 # It seems that -bexpall does not export symbols beginning with
7921 # underscore (_), so it is better to generate a list of symbols to export.
7922 always_export_symbols=yes
7923 if test "$aix_use_runtimelinking" = yes; then
7924 # Warning - without using the other runtime loading flags (-brtl),
7925 # -berok will link without error, but may produce a broken library.
7926 allow_undefined_flag='-berok'
7927 # Determine the default libpath from the value encoded in an empty executable.
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934
7935 int
7936 main ()
7937 {
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (ac_try="$ac_link"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_link") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest$ac_exeext &&
7960 $as_test_x conftest$ac_exeext; then
7961
7962 lt_aix_libpath_sed='
7963 /Import File Strings/,/^$/ {
7964 /^0/ {
7965 s/^0 *\(.*\)$/\1/
7966 p
7967 }
7968 }'
7969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7970 # Check for a 64-bit object if we didn't find anything.
7971 if test -z "$aix_libpath"; then
7972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7973 fi
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978
7979 fi
7980
7981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7982 conftest$ac_exeext conftest.$ac_ext
7983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7984
7985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7986 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"
7987 else
7988 if test "$host_cpu" = ia64; then
7989 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7990 allow_undefined_flag="-z nodefs"
7991 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"
7992 else
7993 # Determine the default libpath from the value encoded in an empty executable.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000
8001 int
8002 main ()
8003 {
8004
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8027
8028 lt_aix_libpath_sed='
8029 /Import File Strings/,/^$/ {
8030 /^0/ {
8031 s/^0 *\(.*\)$/\1/
8032 p
8033 }
8034 }'
8035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8036 # Check for a 64-bit object if we didn't find anything.
8037 if test -z "$aix_libpath"; then
8038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8039 fi
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044
8045 fi
8046
8047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8048 conftest$ac_exeext conftest.$ac_ext
8049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8050
8051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8052 # Warning - without using the other run time loading flags,
8053 # -berok will link without error, but may produce a broken library.
8054 no_undefined_flag=' ${wl}-bernotok'
8055 allow_undefined_flag=' ${wl}-berok'
8056 # Exported symbols can be pulled into shared objects from archives
8057 whole_archive_flag_spec='$convenience'
8058 archive_cmds_need_lc=yes
8059 # This is similar to how AIX traditionally builds its shared libraries.
8060 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'
8061 fi
8062 fi
8063 ;;
8064
8065 amigaos*)
8066 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)'
8067 hardcode_libdir_flag_spec='-L$libdir'
8068 hardcode_minus_L=yes
8069 # see comment about different semantics on the GNU ld section
8070 ld_shlibs=no
8071 ;;
8072
8073 bsdi[45]*)
8074 export_dynamic_flag_spec=-rdynamic
8075 ;;
8076
8077 cygwin* | mingw* | pw32*)
8078 # When not using gcc, we currently assume that we are using
8079 # Microsoft Visual C++.
8080 # hardcode_libdir_flag_spec is actually meaningless, as there is
8081 # no search path for DLLs.
8082 hardcode_libdir_flag_spec=' '
8083 allow_undefined_flag=unsupported
8084 # Tell ltmain to make .lib files, not .a files.
8085 libext=lib
8086 # Tell ltmain to make .dll files, not .so files.
8087 shrext_cmds=".dll"
8088 # FIXME: Setting linknames here is a bad hack.
8089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8090 # The linker will automatically build a .lib file if we build a DLL.
8091 old_archive_From_new_cmds='true'
8092 # FIXME: Should let the user specify the lib program.
8093 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8094 fix_srcfile_path='`cygpath -w "$srcfile"`'
8095 enable_shared_with_static_runtimes=yes
8096 ;;
8097
8098 darwin* | rhapsody*)
8099 case $host_os in
8100 rhapsody* | darwin1.[012])
8101 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8102 ;;
8103 *) # Darwin 1.3 on
8104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8105 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8106 else
8107 case ${MACOSX_DEPLOYMENT_TARGET} in
8108 10.[012])
8109 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8110 ;;
8111 10.*)
8112 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8113 ;;
8114 esac
8115 fi
8116 ;;
8117 esac
8118 archive_cmds_need_lc=no
8119 hardcode_direct=no
8120 hardcode_automatic=yes
8121 hardcode_shlibpath_var=unsupported
8122 whole_archive_flag_spec=''
8123 link_all_deplibs=yes
8124 if test "$GCC" = yes ; then
8125 output_verbose_link_cmd='echo'
8126 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8127 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8129 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}'
8130 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}'
8131 else
8132 case $cc_basename in
8133 xlc*)
8134 output_verbose_link_cmd='echo'
8135 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8136 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8138 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8139 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}'
8140 ;;
8141 *)
8142 ld_shlibs=no
8143 ;;
8144 esac
8145 fi
8146 ;;
8147
8148 dgux*)
8149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8150 hardcode_libdir_flag_spec='-L$libdir'
8151 hardcode_shlibpath_var=no
8152 ;;
8153
8154 freebsd1*)
8155 ld_shlibs=no
8156 ;;
8157
8158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8159 # support. Future versions do this automatically, but an explicit c++rt0.o
8160 # does not break anything, and helps significantly (at the cost of a little
8161 # extra space).
8162 freebsd2.2*)
8163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8164 hardcode_libdir_flag_spec='-R$libdir'
8165 hardcode_direct=yes
8166 hardcode_shlibpath_var=no
8167 ;;
8168
8169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8170 freebsd2*)
8171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8172 hardcode_direct=yes
8173 hardcode_minus_L=yes
8174 hardcode_shlibpath_var=no
8175 ;;
8176
8177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8178 freebsd* | dragonfly*)
8179 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8180 hardcode_libdir_flag_spec='-R$libdir'
8181 hardcode_direct=yes
8182 hardcode_shlibpath_var=no
8183 ;;
8184
8185 hpux9*)
8186 if test "$GCC" = yes; then
8187 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'
8188 else
8189 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'
8190 fi
8191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8192 hardcode_libdir_separator=:
8193 hardcode_direct=yes
8194
8195 # hardcode_minus_L: Not really in the search PATH,
8196 # but as the default location of the library.
8197 hardcode_minus_L=yes
8198 export_dynamic_flag_spec='${wl}-E'
8199 ;;
8200
8201 hpux10*)
8202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8204 else
8205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8206 fi
8207 if test "$with_gnu_ld" = no; then
8208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8209 hardcode_libdir_separator=:
8210
8211 hardcode_direct=yes
8212 export_dynamic_flag_spec='${wl}-E'
8213
8214 # hardcode_minus_L: Not really in the search PATH,
8215 # but as the default location of the library.
8216 hardcode_minus_L=yes
8217 fi
8218 ;;
8219
8220 hpux11*)
8221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8222 case $host_cpu in
8223 hppa*64*)
8224 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8225 ;;
8226 ia64*)
8227 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8228 ;;
8229 *)
8230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8231 ;;
8232 esac
8233 else
8234 case $host_cpu in
8235 hppa*64*)
8236 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237 ;;
8238 ia64*)
8239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8240 ;;
8241 *)
8242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8243 ;;
8244 esac
8245 fi
8246 if test "$with_gnu_ld" = no; then
8247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8248 hardcode_libdir_separator=:
8249
8250 case $host_cpu in
8251 hppa*64*|ia64*)
8252 hardcode_libdir_flag_spec_ld='+b $libdir'
8253 hardcode_direct=no
8254 hardcode_shlibpath_var=no
8255 ;;
8256 *)
8257 hardcode_direct=yes
8258 export_dynamic_flag_spec='${wl}-E'
8259
8260 # hardcode_minus_L: Not really in the search PATH,
8261 # but as the default location of the library.
8262 hardcode_minus_L=yes
8263 ;;
8264 esac
8265 fi
8266 ;;
8267
8268 irix5* | irix6* | nonstopux*)
8269 if test "$GCC" = yes; then
8270 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'
8271 else
8272 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'
8273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8274 fi
8275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276 hardcode_libdir_separator=:
8277 link_all_deplibs=yes
8278 ;;
8279
8280 netbsd*)
8281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8283 else
8284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8285 fi
8286 hardcode_libdir_flag_spec='-R$libdir'
8287 hardcode_direct=yes
8288 hardcode_shlibpath_var=no
8289 ;;
8290
8291 newsos6)
8292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8293 hardcode_direct=yes
8294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8295 hardcode_libdir_separator=:
8296 hardcode_shlibpath_var=no
8297 ;;
8298
8299 openbsd*)
8300 if test -f /usr/libexec/ld.so; then
8301 hardcode_direct=yes
8302 hardcode_shlibpath_var=no
8303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8307 export_dynamic_flag_spec='${wl}-E'
8308 else
8309 case $host_os in
8310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_libdir_flag_spec='-R$libdir'
8313 ;;
8314 *)
8315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317 ;;
8318 esac
8319 fi
8320 else
8321 ld_shlibs=no
8322 fi
8323 ;;
8324
8325 os2*)
8326 hardcode_libdir_flag_spec='-L$libdir'
8327 hardcode_minus_L=yes
8328 allow_undefined_flag=unsupported
8329 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'
8330 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8331 ;;
8332
8333 osf3*)
8334 if test "$GCC" = yes; then
8335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8336 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'
8337 else
8338 allow_undefined_flag=' -expect_unresolved \*'
8339 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'
8340 fi
8341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8342 hardcode_libdir_separator=:
8343 ;;
8344
8345 osf4* | osf5*) # as osf3* with the addition of -msym flag
8346 if test "$GCC" = yes; then
8347 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8348 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'
8349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8350 else
8351 allow_undefined_flag=' -expect_unresolved \*'
8352 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'
8353 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8354 $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'
8355
8356 # Both c and cxx compiler support -rpath directly
8357 hardcode_libdir_flag_spec='-rpath $libdir'
8358 fi
8359 hardcode_libdir_separator=:
8360 ;;
8361
8362 solaris*)
8363 no_undefined_flag=' -z text'
8364 if test "$GCC" = yes; then
8365 wlarc='${wl}'
8366 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8367 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8368 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8369 else
8370 wlarc=''
8371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8374 fi
8375 hardcode_libdir_flag_spec='-R$libdir'
8376 hardcode_shlibpath_var=no
8377 case $host_os in
8378 solaris2.[0-5] | solaris2.[0-5].*) ;;
8379 *)
8380 # The compiler driver will combine and reorder linker options,
8381 # but understands `-z linker_flag'. GCC discards it without `$wl',
8382 # but is careful enough not to reorder.
8383 # Supported since Solaris 2.6 (maybe 2.5.1?)
8384 if test "$GCC" = yes; then
8385 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8386 else
8387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8388 fi
8389 ;;
8390 esac
8391 link_all_deplibs=yes
8392 ;;
8393
8394 sunos4*)
8395 if test "x$host_vendor" = xsequent; then
8396 # Use $CC to link under sequent, because it throws in some extra .o
8397 # files that make .init and .fini sections work.
8398 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399 else
8400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8401 fi
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_direct=yes
8404 hardcode_minus_L=yes
8405 hardcode_shlibpath_var=no
8406 ;;
8407
8408 sysv4)
8409 case $host_vendor in
8410 sni)
8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_direct=yes # is this really true???
8413 ;;
8414 siemens)
8415 ## LD is ld it makes a PLAMLIB
8416 ## CC just makes a GrossModule.
8417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8418 reload_cmds='$CC -r -o $output$reload_objs'
8419 hardcode_direct=no
8420 ;;
8421 motorola)
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8424 ;;
8425 esac
8426 runpath_var='LD_RUN_PATH'
8427 hardcode_shlibpath_var=no
8428 ;;
8429
8430 sysv4.3*)
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_shlibpath_var=no
8433 export_dynamic_flag_spec='-Bexport'
8434 ;;
8435
8436 sysv4*MP*)
8437 if test -d /usr/nec; then
8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_shlibpath_var=no
8440 runpath_var=LD_RUN_PATH
8441 hardcode_runpath_var=yes
8442 ld_shlibs=yes
8443 fi
8444 ;;
8445
8446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8447 no_undefined_flag='${wl}-z,text'
8448 archive_cmds_need_lc=no
8449 hardcode_shlibpath_var=no
8450 runpath_var='LD_RUN_PATH'
8451
8452 if test "$GCC" = yes; then
8453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8455 else
8456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 fi
8459 ;;
8460
8461 sysv5* | sco3.2v5* | sco5v6*)
8462 # Note: We can NOT use -z defs as we might desire, because we do not
8463 # link with -lc, and that would cause any symbols used from libc to
8464 # always be unresolved, which means just about no library would
8465 # ever link correctly. If we're not using GNU ld we use -z text
8466 # though, which does catch some bad symbols but isn't as heavy-handed
8467 # as -z defs.
8468 no_undefined_flag='${wl}-z,text'
8469 allow_undefined_flag='${wl}-z,nodefs'
8470 archive_cmds_need_lc=no
8471 hardcode_shlibpath_var=no
8472 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8473 hardcode_libdir_separator=':'
8474 link_all_deplibs=yes
8475 export_dynamic_flag_spec='${wl}-Bexport'
8476 runpath_var='LD_RUN_PATH'
8477
8478 if test "$GCC" = yes; then
8479 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8481 else
8482 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8484 fi
8485 ;;
8486
8487 uts4*)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_shlibpath_var=no
8491 ;;
8492
8493 *)
8494 ld_shlibs=no
8495 ;;
8496 esac
8497 fi
8498
8499 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8500 echo "${ECHO_T}$ld_shlibs" >&6; }
8501 test "$ld_shlibs" = no && can_build_shared=no
8502
8503 #
8504 # Do we need to explicitly link libc?
8505 #
8506 case "x$archive_cmds_need_lc" in
8507 x|xyes)
8508 # Assume -lc should be added
8509 archive_cmds_need_lc=yes
8510
8511 if test "$enable_shared" = yes && test "$GCC" = yes; then
8512 case $archive_cmds in
8513 *'~'*)
8514 # FIXME: we may have to deal with multi-command sequences.
8515 ;;
8516 '$CC '*)
8517 # Test whether the compiler implicitly links with -lc since on some
8518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8519 # to ld, don't add -lc before -lgcc.
8520 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8521 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8522 $rm conftest*
8523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8524
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } 2>conftest.err; then
8530 soname=conftest
8531 lib=conftest
8532 libobjs=conftest.$ac_objext
8533 deplibs=
8534 wl=$lt_prog_compiler_wl
8535 pic_flag=$lt_prog_compiler_pic
8536 compiler_flags=-v
8537 linker_flags=-v
8538 verstring=
8539 output_objdir=.
8540 libname=conftest
8541 lt_save_allow_undefined_flag=$allow_undefined_flag
8542 allow_undefined_flag=
8543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8544 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }
8548 then
8549 archive_cmds_need_lc=no
8550 else
8551 archive_cmds_need_lc=yes
8552 fi
8553 allow_undefined_flag=$lt_save_allow_undefined_flag
8554 else
8555 cat conftest.err 1>&5
8556 fi
8557 $rm conftest*
8558 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8559 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8560 ;;
8561 esac
8562 fi
8563 ;;
8564 esac
8565
8566 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8567 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8568 library_names_spec=
8569 libname_spec='lib$name'
8570 soname_spec=
8571 shrext_cmds=".so"
8572 postinstall_cmds=
8573 postuninstall_cmds=
8574 finish_cmds=
8575 finish_eval=
8576 shlibpath_var=
8577 shlibpath_overrides_runpath=unknown
8578 version_type=none
8579 dynamic_linker="$host_os ld.so"
8580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8581
8582 if test "$GCC" = yes; then
8583 case $host_os in
8584 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8585 *) lt_awk_arg="/^libraries:/" ;;
8586 esac
8587 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8588 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8589 # if the path contains ";" then we assume it to be the separator
8590 # otherwise default to the standard path separator (i.e. ":") - it is
8591 # assumed that no part of a normal pathname contains ";" but that should
8592 # okay in the real world where ";" in dirpaths is itself problematic.
8593 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8594 else
8595 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8596 fi
8597 # Ok, now we have the path, separated by spaces, we can step through it
8598 # and add multilib dir if necessary.
8599 lt_tmp_lt_search_path_spec=
8600 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8601 for lt_sys_path in $lt_search_path_spec; do
8602 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8604 else
8605 test -d "$lt_sys_path" && \
8606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8607 fi
8608 done
8609 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8610 BEGIN {RS=" "; FS="/|\n";} {
8611 lt_foo="";
8612 lt_count=0;
8613 for (lt_i = NF; lt_i > 0; lt_i--) {
8614 if ($lt_i != "" && $lt_i != ".") {
8615 if ($lt_i == "..") {
8616 lt_count++;
8617 } else {
8618 if (lt_count == 0) {
8619 lt_foo="/" $lt_i lt_foo;
8620 } else {
8621 lt_count--;
8622 }
8623 }
8624 }
8625 }
8626 if (lt_foo != "") { lt_freq[lt_foo]++; }
8627 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8628 }'`
8629 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8630 else
8631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8632 fi
8633 need_lib_prefix=unknown
8634 hardcode_into_libs=no
8635
8636 # when you set need_version to no, make sure it does not cause -set_version
8637 # flags to be left without arguments
8638 need_version=unknown
8639
8640 case $host_os in
8641 aix3*)
8642 version_type=linux
8643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8644 shlibpath_var=LIBPATH
8645
8646 # AIX 3 has no versioning support, so we append a major version to the name.
8647 soname_spec='${libname}${release}${shared_ext}$major'
8648 ;;
8649
8650 aix4* | aix5*)
8651 version_type=linux
8652 need_lib_prefix=no
8653 need_version=no
8654 hardcode_into_libs=yes
8655 if test "$host_cpu" = ia64; then
8656 # AIX 5 supports IA64
8657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8658 shlibpath_var=LD_LIBRARY_PATH
8659 else
8660 # With GCC up to 2.95.x, collect2 would create an import file
8661 # for dependence libraries. The import file would start with
8662 # the line `#! .'. This would cause the generated library to
8663 # depend on `.', always an invalid library. This was fixed in
8664 # development snapshots of GCC prior to 3.0.
8665 case $host_os in
8666 aix4 | aix4.[01] | aix4.[01].*)
8667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8668 echo ' yes '
8669 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8670 :
8671 else
8672 can_build_shared=no
8673 fi
8674 ;;
8675 esac
8676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8677 # soname into executable. Probably we can add versioning support to
8678 # collect2, so additional links can be useful in future.
8679 if test "$aix_use_runtimelinking" = yes; then
8680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8681 # instead of lib<name>.a to let people know that these are not
8682 # typical AIX shared libraries.
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684 else
8685 # We preserve .a as extension for shared libraries through AIX4.2
8686 # and later when we are not doing run time linking.
8687 library_names_spec='${libname}${release}.a $libname.a'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 fi
8690 shlibpath_var=LIBPATH
8691 fi
8692 ;;
8693
8694 amigaos*)
8695 library_names_spec='$libname.ixlibrary $libname.a'
8696 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8697 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'
8698 ;;
8699
8700 beos*)
8701 library_names_spec='${libname}${shared_ext}'
8702 dynamic_linker="$host_os ld.so"
8703 shlibpath_var=LIBRARY_PATH
8704 ;;
8705
8706 bsdi[45]*)
8707 version_type=linux
8708 need_version=no
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8712 shlibpath_var=LD_LIBRARY_PATH
8713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8715 # the default ld.so.conf also contains /usr/contrib/lib and
8716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8717 # libtool to hard-code these into programs
8718 ;;
8719
8720 cygwin* | mingw* | pw32*)
8721 version_type=windows
8722 shrext_cmds=".dll"
8723 need_version=no
8724 need_lib_prefix=no
8725
8726 case $GCC,$host_os in
8727 yes,cygwin* | yes,mingw* | yes,pw32*)
8728 library_names_spec='$libname.dll.a'
8729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8730 postinstall_cmds='base_file=`basename \${file}`~
8731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8732 dldir=$destdir/`dirname \$dlpath`~
8733 test -d \$dldir || mkdir -p \$dldir~
8734 $install_prog $dir/$dlname \$dldir/$dlname~
8735 chmod a+x \$dldir/$dlname'
8736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8737 dlpath=$dir/\$dldll~
8738 $rm \$dlpath'
8739 shlibpath_overrides_runpath=yes
8740
8741 case $host_os in
8742 cygwin*)
8743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8746 ;;
8747 mingw*)
8748 # MinGW DLLs use traditional 'lib' prefix
8749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8751 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8752 # It is most probably a Windows format PATH printed by
8753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8754 # path with ; separators, and with drive letters. We can handle the
8755 # drive letters (cygwin fileutils understands them), so leave them,
8756 # especially as we might pass files found there to a mingw objdump,
8757 # which wouldn't understand a cygwinified path. Ahh.
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759 else
8760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 fi
8762 ;;
8763 pw32*)
8764 # pw32 DLLs use 'pw' prefix rather than 'lib'
8765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8766 ;;
8767 esac
8768 ;;
8769
8770 *)
8771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8772 ;;
8773 esac
8774 dynamic_linker='Win32 ld.exe'
8775 # FIXME: first we should search . and the directory the executable is in
8776 shlibpath_var=PATH
8777 ;;
8778
8779 darwin* | rhapsody*)
8780 dynamic_linker="$host_os dyld"
8781 version_type=darwin
8782 need_lib_prefix=no
8783 need_version=no
8784 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8785 soname_spec='${libname}${release}${major}$shared_ext'
8786 shlibpath_overrides_runpath=yes
8787 shlibpath_var=DYLD_LIBRARY_PATH
8788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8789
8790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8792 ;;
8793
8794 dgux*)
8795 version_type=linux
8796 need_lib_prefix=no
8797 need_version=no
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 ;;
8802
8803 freebsd1*)
8804 dynamic_linker=no
8805 ;;
8806
8807 freebsd* | dragonfly*)
8808 # DragonFly does not have aout. When/if they implement a new
8809 # versioning mechanism, adjust this.
8810 if test -x /usr/bin/objformat; then
8811 objformat=`/usr/bin/objformat`
8812 else
8813 case $host_os in
8814 freebsd[123]*) objformat=aout ;;
8815 *) objformat=elf ;;
8816 esac
8817 fi
8818 version_type=freebsd-$objformat
8819 case $version_type in
8820 freebsd-elf*)
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822 need_version=no
8823 need_lib_prefix=no
8824 ;;
8825 freebsd-*)
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 need_version=yes
8828 ;;
8829 esac
8830 shlibpath_var=LD_LIBRARY_PATH
8831 case $host_os in
8832 freebsd2*)
8833 shlibpath_overrides_runpath=yes
8834 ;;
8835 freebsd3.[01]* | freebsdelf3.[01]*)
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8838 ;;
8839 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8840 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
8844 *) # from 4.6 on, and DragonFly
8845 shlibpath_overrides_runpath=yes
8846 hardcode_into_libs=yes
8847 ;;
8848 esac
8849 ;;
8850
8851 gnu*)
8852 version_type=linux
8853 need_lib_prefix=no
8854 need_version=no
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 hardcode_into_libs=yes
8859 ;;
8860
8861 hpux9* | hpux10* | hpux11*)
8862 # Give a soname corresponding to the major version so that dld.sl refuses to
8863 # link against other versions.
8864 version_type=sunos
8865 need_lib_prefix=no
8866 need_version=no
8867 case $host_cpu in
8868 ia64*)
8869 shrext_cmds='.so'
8870 hardcode_into_libs=yes
8871 dynamic_linker="$host_os dld.so"
8872 shlibpath_var=LD_LIBRARY_PATH
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 if test "X$HPUX_IA64_MODE" = X32; then
8877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8878 else
8879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8880 fi
8881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8882 ;;
8883 hppa*64*)
8884 shrext_cmds='.sl'
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.sl"
8887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893 ;;
8894 *)
8895 shrext_cmds='.sl'
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=SHLIB_PATH
8898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 ;;
8902 esac
8903 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8904 postinstall_cmds='chmod 555 $lib'
8905 ;;
8906
8907 interix[3-9]*)
8908 version_type=linux
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 ;;
8918
8919 irix5* | irix6* | nonstopux*)
8920 case $host_os in
8921 nonstopux*) version_type=nonstopux ;;
8922 *)
8923 if test "$lt_cv_prog_gnu_ld" = yes; then
8924 version_type=linux
8925 else
8926 version_type=irix
8927 fi ;;
8928 esac
8929 need_lib_prefix=no
8930 need_version=no
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8933 case $host_os in
8934 irix5* | nonstopux*)
8935 libsuff= shlibsuff=
8936 ;;
8937 *)
8938 case $LD in # libtool.m4 will add one of these switches to LD
8939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8940 libsuff= shlibsuff= libmagic=32-bit;;
8941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8942 libsuff=32 shlibsuff=N32 libmagic=N32;;
8943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8945 *) libsuff= shlibsuff= libmagic=never-match;;
8946 esac
8947 ;;
8948 esac
8949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8950 shlibpath_overrides_runpath=no
8951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8953 hardcode_into_libs=yes
8954 ;;
8955
8956 # No shared lib support for Linux oldld, aout, or coff.
8957 linux*oldld* | linux*aout* | linux*coff*)
8958 dynamic_linker=no
8959 ;;
8960
8961 # This must be Linux ELF.
8962 linux* | k*bsd*-gnu)
8963 version_type=linux
8964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=no
8971 # This implies no fast_install, which is unacceptable.
8972 # Some rework will be needed to allow for fast_install
8973 # before this can be enabled.
8974 hardcode_into_libs=yes
8975
8976 # Append ld.so.conf contents to the search path
8977 if test -f /etc/ld.so.conf; then
8978 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8980 fi
8981
8982 # We used to test for /lib/ld.so.1 and disable shared libraries on
8983 # powerpc, because MkLinux only supported shared libraries with the
8984 # GNU dynamic linker. Since this was broken with cross compilers,
8985 # most powerpc-linux boxes support dynamic linking these days and
8986 # people can always --disable-shared, the test was removed, and we
8987 # assume the GNU/Linux dynamic linker is in use.
8988 dynamic_linker='GNU/Linux ld.so'
8989 ;;
8990
8991 netbsd*)
8992 version_type=sunos
8993 need_lib_prefix=no
8994 need_version=no
8995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8998 dynamic_linker='NetBSD (a.out) ld.so'
8999 else
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 dynamic_linker='NetBSD ld.elf_so'
9003 fi
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9006 hardcode_into_libs=yes
9007 ;;
9008
9009 newsos6)
9010 version_type=linux
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 ;;
9015
9016 nto-qnx*)
9017 version_type=linux
9018 need_lib_prefix=no
9019 need_version=no
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 ;;
9025
9026 openbsd*)
9027 version_type=sunos
9028 sys_lib_dlsearch_path_spec="/usr/lib"
9029 need_lib_prefix=no
9030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9031 case $host_os in
9032 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9033 *) need_version=no ;;
9034 esac
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9039 case $host_os in
9040 openbsd2.[89] | openbsd2.[89].*)
9041 shlibpath_overrides_runpath=no
9042 ;;
9043 *)
9044 shlibpath_overrides_runpath=yes
9045 ;;
9046 esac
9047 else
9048 shlibpath_overrides_runpath=yes
9049 fi
9050 ;;
9051
9052 os2*)
9053 libname_spec='$name'
9054 shrext_cmds=".dll"
9055 need_lib_prefix=no
9056 library_names_spec='$libname${shared_ext} $libname.a'
9057 dynamic_linker='OS/2 ld.exe'
9058 shlibpath_var=LIBPATH
9059 ;;
9060
9061 osf3* | osf4* | osf5*)
9062 version_type=osf
9063 need_lib_prefix=no
9064 need_version=no
9065 soname_spec='${libname}${release}${shared_ext}$major'
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9070 ;;
9071
9072 rdos*)
9073 dynamic_linker=no
9074 ;;
9075
9076 solaris*)
9077 version_type=linux
9078 need_lib_prefix=no
9079 need_version=no
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9084 hardcode_into_libs=yes
9085 # ldd complains unless libraries are executable
9086 postinstall_cmds='chmod +x $lib'
9087 ;;
9088
9089 sunos4*)
9090 version_type=sunos
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9095 if test "$with_gnu_ld" = yes; then
9096 need_lib_prefix=no
9097 fi
9098 need_version=yes
9099 ;;
9100
9101 sysv4 | sysv4.3*)
9102 version_type=linux
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 case $host_vendor in
9107 sni)
9108 shlibpath_overrides_runpath=no
9109 need_lib_prefix=no
9110 export_dynamic_flag_spec='${wl}-Blargedynsym'
9111 runpath_var=LD_RUN_PATH
9112 ;;
9113 siemens)
9114 need_lib_prefix=no
9115 ;;
9116 motorola)
9117 need_lib_prefix=no
9118 need_version=no
9119 shlibpath_overrides_runpath=no
9120 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9121 ;;
9122 esac
9123 ;;
9124
9125 sysv4*MP*)
9126 if test -d /usr/nec ;then
9127 version_type=linux
9128 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9129 soname_spec='$libname${shared_ext}.$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 fi
9132 ;;
9133
9134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9135 version_type=freebsd-elf
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 hardcode_into_libs=yes
9142 if test "$with_gnu_ld" = yes; then
9143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9144 shlibpath_overrides_runpath=no
9145 else
9146 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9147 shlibpath_overrides_runpath=yes
9148 case $host_os in
9149 sco3.2v5*)
9150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9151 ;;
9152 esac
9153 fi
9154 sys_lib_dlsearch_path_spec='/usr/lib'
9155 ;;
9156
9157 uts4*)
9158 version_type=linux
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 ;;
9163
9164 *)
9165 dynamic_linker=no
9166 ;;
9167 esac
9168 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9169 echo "${ECHO_T}$dynamic_linker" >&6; }
9170 test "$dynamic_linker" = no && can_build_shared=no
9171
9172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9173 if test "$GCC" = yes; then
9174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9175 fi
9176
9177 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9179 hardcode_action=
9180 if test -n "$hardcode_libdir_flag_spec" || \
9181 test -n "$runpath_var" || \
9182 test "X$hardcode_automatic" = "Xyes" ; then
9183
9184 # We can hardcode non-existant directories.
9185 if test "$hardcode_direct" != no &&
9186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9187 # have to relink, otherwise we might link with an installed library
9188 # when we should be linking with a yet-to-be-installed one
9189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9190 test "$hardcode_minus_L" != no; then
9191 # Linking always hardcodes the temporary library directory.
9192 hardcode_action=relink
9193 else
9194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9195 hardcode_action=immediate
9196 fi
9197 else
9198 # We cannot hardcode anything, or else we can only hardcode existing
9199 # directories.
9200 hardcode_action=unsupported
9201 fi
9202 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9203 echo "${ECHO_T}$hardcode_action" >&6; }
9204
9205 if test "$hardcode_action" = relink; then
9206 # Fast installation is not supported
9207 enable_fast_install=no
9208 elif test "$shlibpath_overrides_runpath" = yes ||
9209 test "$enable_shared" = no; then
9210 # Fast installation is not necessary
9211 enable_fast_install=needless
9212 fi
9213
9214 striplib=
9215 old_striplib=
9216 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9221 { echo "$as_me:$LINENO: result: yes" >&5
9222 echo "${ECHO_T}yes" >&6; }
9223 else
9224 # FIXME - insert some real tests, host_os isn't really good enough
9225 case $host_os in
9226 darwin*)
9227 if test -n "$STRIP" ; then
9228 striplib="$STRIP -x"
9229 old_striplib="$STRIP -S"
9230 { echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6; }
9232 else
9233 { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9235 fi
9236 ;;
9237 *)
9238 { echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6; }
9240 ;;
9241 esac
9242 fi
9243
9244 if test "x$enable_dlopen" != xyes; then
9245 enable_dlopen=unknown
9246 enable_dlopen_self=unknown
9247 enable_dlopen_self_static=unknown
9248 else
9249 lt_cv_dlopen=no
9250 lt_cv_dlopen_libs=
9251
9252 case $host_os in
9253 beos*)
9254 lt_cv_dlopen="load_add_on"
9255 lt_cv_dlopen_libs=
9256 lt_cv_dlopen_self=yes
9257 ;;
9258
9259 mingw* | pw32*)
9260 lt_cv_dlopen="LoadLibrary"
9261 lt_cv_dlopen_libs=
9262 ;;
9263
9264 cygwin*)
9265 lt_cv_dlopen="dlopen"
9266 lt_cv_dlopen_libs=
9267 ;;
9268
9269 darwin*)
9270 # if libdl is installed we need to link against it
9271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-ldl $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char dlopen ();
9292 int
9293 main ()
9294 {
9295 return dlopen ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_link") 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest$ac_exeext &&
9317 $as_test_x conftest$ac_exeext; then
9318 ac_cv_lib_dl_dlopen=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_cv_lib_dl_dlopen=no
9324 fi
9325
9326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9329 fi
9330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9334 else
9335
9336 lt_cv_dlopen="dyld"
9337 lt_cv_dlopen_libs=
9338 lt_cv_dlopen_self=yes
9339
9340 fi
9341
9342 ;;
9343
9344 *)
9345 { echo "$as_me:$LINENO: checking for shl_load" >&5
9346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9347 if test "${ac_cv_func_shl_load+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9358 #define shl_load innocuous_shl_load
9359
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char shl_load (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9364
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370
9371 #undef shl_load
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char shl_load ();
9380 /* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383 #if defined __stub_shl_load || defined __stub___shl_load
9384 choke me
9385 #endif
9386
9387 int
9388 main ()
9389 {
9390 return shl_load ();
9391 ;
9392 return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 ac_cv_func_shl_load=yes
9414 else
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_func_shl_load=no
9419 fi
9420
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9423 fi
9424 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9426 if test $ac_cv_func_shl_load = yes; then
9427 lt_cv_dlopen="shl_load"
9428 else
9429 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 ac_check_lib_save_LIBS=$LIBS
9435 LIBS="-ldld $LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442
9443 /* Override any GCC internal prototype to avoid an error.
9444 Use char because int might match the return type of a GCC
9445 builtin and then its argument prototype would still apply. */
9446 #ifdef __cplusplus
9447 extern "C"
9448 #endif
9449 char shl_load ();
9450 int
9451 main ()
9452 {
9453 return shl_load ();
9454 ;
9455 return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9466 ac_status=$?
9467 grep -v '^ *+' conftest.er1 >conftest.err
9468 rm -f conftest.er1
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext &&
9475 $as_test_x conftest$ac_exeext; then
9476 ac_cv_lib_dld_shl_load=yes
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481 ac_cv_lib_dld_shl_load=no
9482 fi
9483
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9487 fi
9488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9490 if test $ac_cv_lib_dld_shl_load = yes; then
9491 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9492 else
9493 { echo "$as_me:$LINENO: checking for dlopen" >&5
9494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_dlopen+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define dlopen innocuous_dlopen
9507
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char dlopen (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9512
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9518
9519 #undef dlopen
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char dlopen ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_dlopen || defined __stub___dlopen
9532 choke me
9533 #endif
9534
9535 int
9536 main ()
9537 {
9538 return dlopen ();
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_dlopen=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_func_dlopen=no
9567 fi
9568
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9573 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9574 if test $ac_cv_func_dlopen = yes; then
9575 lt_cv_dlopen="dlopen"
9576 else
9577 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldl $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dlopen ();
9598 int
9599 main ()
9600 {
9601 return dlopen ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_lib_dl_dlopen=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_dl_dlopen=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9638 if test $ac_cv_lib_dl_dlopen = yes; then
9639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640 else
9641 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9642 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lsvld $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char dlopen ();
9662 int
9663 main ()
9664 {
9665 return dlopen ();
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest$ac_exeext &&
9687 $as_test_x conftest$ac_exeext; then
9688 ac_cv_lib_svld_dlopen=yes
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 ac_cv_lib_svld_dlopen=no
9694 fi
9695
9696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9699 fi
9700 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9702 if test $ac_cv_lib_svld_dlopen = yes; then
9703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9704 else
9705 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-ldld $LIBS"
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char dld_link ();
9726 int
9727 main ()
9728 {
9729 return dld_link ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_lib_dld_dld_link=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757 ac_cv_lib_dld_dld_link=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9766 if test $ac_cv_lib_dld_dld_link = yes; then
9767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9768 fi
9769
9770
9771 fi
9772
9773
9774 fi
9775
9776
9777 fi
9778
9779
9780 fi
9781
9782
9783 fi
9784
9785 ;;
9786 esac
9787
9788 if test "x$lt_cv_dlopen" != xno; then
9789 enable_dlopen=yes
9790 else
9791 enable_dlopen=no
9792 fi
9793
9794 case $lt_cv_dlopen in
9795 dlopen)
9796 save_CPPFLAGS="$CPPFLAGS"
9797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9798
9799 save_LDFLAGS="$LDFLAGS"
9800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9801
9802 save_LIBS="$LIBS"
9803 LIBS="$lt_cv_dlopen_libs $LIBS"
9804
9805 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9807 if test "${lt_cv_dlopen_self+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 if test "$cross_compiling" = yes; then :
9811 lt_cv_dlopen_self=cross
9812 else
9813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9814 lt_status=$lt_dlunknown
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9818
9819 #if HAVE_DLFCN_H
9820 #include <dlfcn.h>
9821 #endif
9822
9823 #include <stdio.h>
9824
9825 #ifdef RTLD_GLOBAL
9826 # define LT_DLGLOBAL RTLD_GLOBAL
9827 #else
9828 # ifdef DL_GLOBAL
9829 # define LT_DLGLOBAL DL_GLOBAL
9830 # else
9831 # define LT_DLGLOBAL 0
9832 # endif
9833 #endif
9834
9835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9836 find out it does not work in some platform. */
9837 #ifndef LT_DLLAZY_OR_NOW
9838 # ifdef RTLD_LAZY
9839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9840 # else
9841 # ifdef DL_LAZY
9842 # define LT_DLLAZY_OR_NOW DL_LAZY
9843 # else
9844 # ifdef RTLD_NOW
9845 # define LT_DLLAZY_OR_NOW RTLD_NOW
9846 # else
9847 # ifdef DL_NOW
9848 # define LT_DLLAZY_OR_NOW DL_NOW
9849 # else
9850 # define LT_DLLAZY_OR_NOW 0
9851 # endif
9852 # endif
9853 # endif
9854 # endif
9855 #endif
9856
9857 #ifdef __cplusplus
9858 extern "C" void exit (int);
9859 #endif
9860
9861 void fnord() { int i=42;}
9862 int main ()
9863 {
9864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9865 int status = $lt_dlunknown;
9866
9867 if (self)
9868 {
9869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9870 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9871 /* dlclose (self); */
9872 }
9873 else
9874 puts (dlerror ());
9875
9876 exit (status);
9877 }
9878 EOF
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9884 (./conftest; exit; ) >&5 2>/dev/null
9885 lt_status=$?
9886 case x$lt_status in
9887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9890 esac
9891 else :
9892 # compilation failed
9893 lt_cv_dlopen_self=no
9894 fi
9895 fi
9896 rm -fr conftest*
9897
9898
9899 fi
9900 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9901 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9902
9903 if test "x$lt_cv_dlopen_self" = xyes; then
9904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9905 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9906 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9907 if test "${lt_cv_dlopen_self_static+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 if test "$cross_compiling" = yes; then :
9911 lt_cv_dlopen_self_static=cross
9912 else
9913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914 lt_status=$lt_dlunknown
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9916 "configure"
9917 #include "confdefs.h"
9918
9919 #if HAVE_DLFCN_H
9920 #include <dlfcn.h>
9921 #endif
9922
9923 #include <stdio.h>
9924
9925 #ifdef RTLD_GLOBAL
9926 # define LT_DLGLOBAL RTLD_GLOBAL
9927 #else
9928 # ifdef DL_GLOBAL
9929 # define LT_DLGLOBAL DL_GLOBAL
9930 # else
9931 # define LT_DLGLOBAL 0
9932 # endif
9933 #endif
9934
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936 find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9938 # ifdef RTLD_LAZY
9939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9940 # else
9941 # ifdef DL_LAZY
9942 # define LT_DLLAZY_OR_NOW DL_LAZY
9943 # else
9944 # ifdef RTLD_NOW
9945 # define LT_DLLAZY_OR_NOW RTLD_NOW
9946 # else
9947 # ifdef DL_NOW
9948 # define LT_DLLAZY_OR_NOW DL_NOW
9949 # else
9950 # define LT_DLLAZY_OR_NOW 0
9951 # endif
9952 # endif
9953 # endif
9954 # endif
9955 #endif
9956
9957 #ifdef __cplusplus
9958 extern "C" void exit (int);
9959 #endif
9960
9961 void fnord() { int i=42;}
9962 int main ()
9963 {
9964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965 int status = $lt_dlunknown;
9966
9967 if (self)
9968 {
9969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971 /* dlclose (self); */
9972 }
9973 else
9974 puts (dlerror ());
9975
9976 exit (status);
9977 }
9978 EOF
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9984 (./conftest; exit; ) >&5 2>/dev/null
9985 lt_status=$?
9986 case x$lt_status in
9987 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9988 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9989 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9990 esac
9991 else :
9992 # compilation failed
9993 lt_cv_dlopen_self_static=no
9994 fi
9995 fi
9996 rm -fr conftest*
9997
9998
9999 fi
10000 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10001 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10002 fi
10003
10004 CPPFLAGS="$save_CPPFLAGS"
10005 LDFLAGS="$save_LDFLAGS"
10006 LIBS="$save_LIBS"
10007 ;;
10008 esac
10009
10010 case $lt_cv_dlopen_self in
10011 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10012 *) enable_dlopen_self=unknown ;;
10013 esac
10014
10015 case $lt_cv_dlopen_self_static in
10016 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10017 *) enable_dlopen_self_static=unknown ;;
10018 esac
10019 fi
10020
10021
10022 # Report which library types will actually be built
10023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10026 echo "${ECHO_T}$can_build_shared" >&6; }
10027
10028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10030 test "$can_build_shared" = "no" && enable_shared=no
10031
10032 # On AIX, shared libraries and static libraries use the same namespace, and
10033 # are all built from PIC.
10034 case $host_os in
10035 aix3*)
10036 test "$enable_shared" = yes && enable_static=no
10037 if test -n "$RANLIB"; then
10038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10039 postinstall_cmds='$RANLIB $lib'
10040 fi
10041 ;;
10042
10043 aix4* | aix5*)
10044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10045 test "$enable_shared" = yes && enable_static=no
10046 fi
10047 ;;
10048 esac
10049 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10050 echo "${ECHO_T}$enable_shared" >&6; }
10051
10052 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10054 # Make sure either enable_shared or enable_static is yes.
10055 test "$enable_shared" = yes || enable_static=yes
10056 { echo "$as_me:$LINENO: result: $enable_static" >&5
10057 echo "${ECHO_T}$enable_static" >&6; }
10058
10059 # The else clause should only fire when bootstrapping the
10060 # libtool distribution, otherwise you forgot to ship ltmain.sh
10061 # with your package, and you will get complaints that there are
10062 # no rules to generate ltmain.sh.
10063 if test -f "$ltmain"; then
10064 # See if we are running on zsh, and set the options which allow our commands through
10065 # without removal of \ escapes.
10066 if test -n "${ZSH_VERSION+set}" ; then
10067 setopt NO_GLOB_SUBST
10068 fi
10069 # Now quote all the things that may contain metacharacters while being
10070 # careful not to overquote the AC_SUBSTed values. We take copies of the
10071 # variables and quote the copies for generation of the libtool script.
10072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10073 SED SHELL STRIP \
10074 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10075 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10076 deplibs_check_method reload_flag reload_cmds need_locks \
10077 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10078 lt_cv_sys_global_symbol_to_c_name_address \
10079 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10080 old_postinstall_cmds old_postuninstall_cmds \
10081 compiler \
10082 CC \
10083 LD \
10084 lt_prog_compiler_wl \
10085 lt_prog_compiler_pic \
10086 lt_prog_compiler_static \
10087 lt_prog_compiler_no_builtin_flag \
10088 export_dynamic_flag_spec \
10089 thread_safe_flag_spec \
10090 whole_archive_flag_spec \
10091 enable_shared_with_static_runtimes \
10092 old_archive_cmds \
10093 old_archive_from_new_cmds \
10094 predep_objects \
10095 postdep_objects \
10096 predeps \
10097 postdeps \
10098 compiler_lib_search_path \
10099 archive_cmds \
10100 archive_expsym_cmds \
10101 postinstall_cmds \
10102 postuninstall_cmds \
10103 old_archive_from_expsyms_cmds \
10104 allow_undefined_flag \
10105 no_undefined_flag \
10106 export_symbols_cmds \
10107 hardcode_libdir_flag_spec \
10108 hardcode_libdir_flag_spec_ld \
10109 hardcode_libdir_separator \
10110 hardcode_automatic \
10111 module_cmds \
10112 module_expsym_cmds \
10113 lt_cv_prog_compiler_c_o \
10114 fix_srcfile_path \
10115 exclude_expsyms \
10116 include_expsyms; do
10117
10118 case $var in
10119 old_archive_cmds | \
10120 old_archive_from_new_cmds | \
10121 archive_cmds | \
10122 archive_expsym_cmds | \
10123 module_cmds | \
10124 module_expsym_cmds | \
10125 old_archive_from_expsyms_cmds | \
10126 export_symbols_cmds | \
10127 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10128 postinstall_cmds | postuninstall_cmds | \
10129 old_postinstall_cmds | old_postuninstall_cmds | \
10130 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10131 # Double-quote double-evaled strings.
10132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10133 ;;
10134 *)
10135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10136 ;;
10137 esac
10138 done
10139
10140 case $lt_echo in
10141 *'\$0 --fallback-echo"')
10142 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10143 ;;
10144 esac
10145
10146 cfgfile="${ofile}T"
10147 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10148 $rm -f "$cfgfile"
10149 { echo "$as_me:$LINENO: creating $ofile" >&5
10150 echo "$as_me: creating $ofile" >&6;}
10151
10152 cat <<__EOF__ >> "$cfgfile"
10153 #! $SHELL
10154
10155 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10156 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10157 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10158 #
10159 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10160 # Free Software Foundation, Inc.
10161 #
10162 # This file is part of GNU Libtool:
10163 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10164 #
10165 # This program is free software; you can redistribute it and/or modify
10166 # it under the terms of the GNU General Public License as published by
10167 # the Free Software Foundation; either version 2 of the License, or
10168 # (at your option) any later version.
10169 #
10170 # This program is distributed in the hope that it will be useful, but
10171 # WITHOUT ANY WARRANTY; without even the implied warranty of
10172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10173 # General Public License for more details.
10174 #
10175 # You should have received a copy of the GNU General Public License
10176 # along with this program; if not, write to the Free Software
10177 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10178 #
10179 # As a special exception to the GNU General Public License, if you
10180 # distribute this file as part of a program that contains a
10181 # configuration script generated by Autoconf, you may include it under
10182 # the same distribution terms that you use for the rest of that program.
10183
10184 # A sed program that does not truncate output.
10185 SED=$lt_SED
10186
10187 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10188 Xsed="$SED -e 1s/^X//"
10189
10190 # The HP-UX ksh and POSIX shell print the target directory to stdout
10191 # if CDPATH is set.
10192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10193
10194 # The names of the tagged configurations supported by this script.
10195 available_tags=
10196
10197 # ### BEGIN LIBTOOL CONFIG
10198
10199 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10200
10201 # Shell to use when invoking shell scripts.
10202 SHELL=$lt_SHELL
10203
10204 # Whether or not to build shared libraries.
10205 build_libtool_libs=$enable_shared
10206
10207 # Whether or not to build static libraries.
10208 build_old_libs=$enable_static
10209
10210 # Whether or not to add -lc for building shared libraries.
10211 build_libtool_need_lc=$archive_cmds_need_lc
10212
10213 # Whether or not to disallow shared libs when runtime libs are static
10214 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10215
10216 # Whether or not to optimize for fast installation.
10217 fast_install=$enable_fast_install
10218
10219 # The host system.
10220 host_alias=$host_alias
10221 host=$host
10222 host_os=$host_os
10223
10224 # The build system.
10225 build_alias=$build_alias
10226 build=$build
10227 build_os=$build_os
10228
10229 # An echo program that does not interpret backslashes.
10230 echo=$lt_echo
10231
10232 # The archiver.
10233 AR=$lt_AR
10234 AR_FLAGS=$lt_AR_FLAGS
10235
10236 # A C compiler.
10237 LTCC=$lt_LTCC
10238
10239 # LTCC compiler flags.
10240 LTCFLAGS=$lt_LTCFLAGS
10241
10242 # A language-specific compiler.
10243 CC=$lt_compiler
10244
10245 # Is the compiler the GNU C compiler?
10246 with_gcc=$GCC
10247
10248 # An ERE matcher.
10249 EGREP=$lt_EGREP
10250
10251 # The linker used to build libraries.
10252 LD=$lt_LD
10253
10254 # Whether we need hard or soft links.
10255 LN_S=$lt_LN_S
10256
10257 # A BSD-compatible nm program.
10258 NM=$lt_NM
10259
10260 # A symbol stripping program
10261 STRIP=$lt_STRIP
10262
10263 # Used to examine libraries when file_magic_cmd begins "file"
10264 MAGIC_CMD=$MAGIC_CMD
10265
10266 # Used on cygwin: DLL creation program.
10267 DLLTOOL="$DLLTOOL"
10268
10269 # Used on cygwin: object dumper.
10270 OBJDUMP="$OBJDUMP"
10271
10272 # Used on cygwin: assembler.
10273 AS="$AS"
10274
10275 # The name of the directory that contains temporary libtool files.
10276 objdir=$objdir
10277
10278 # How to create reloadable object files.
10279 reload_flag=$lt_reload_flag
10280 reload_cmds=$lt_reload_cmds
10281
10282 # How to pass a linker flag through the compiler.
10283 wl=$lt_lt_prog_compiler_wl
10284
10285 # Object file suffix (normally "o").
10286 objext="$ac_objext"
10287
10288 # Old archive suffix (normally "a").
10289 libext="$libext"
10290
10291 # Shared library suffix (normally ".so").
10292 shrext_cmds='$shrext_cmds'
10293
10294 # Executable file suffix (normally "").
10295 exeext="$exeext"
10296
10297 # Additional compiler flags for building library objects.
10298 pic_flag=$lt_lt_prog_compiler_pic
10299 pic_mode=$pic_mode
10300
10301 # What is the maximum length of a command?
10302 max_cmd_len=$lt_cv_sys_max_cmd_len
10303
10304 # Does compiler simultaneously support -c and -o options?
10305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10306
10307 # Must we lock files when doing compilation?
10308 need_locks=$lt_need_locks
10309
10310 # Do we need the lib prefix for modules?
10311 need_lib_prefix=$need_lib_prefix
10312
10313 # Do we need a version for libraries?
10314 need_version=$need_version
10315
10316 # Whether dlopen is supported.
10317 dlopen_support=$enable_dlopen
10318
10319 # Whether dlopen of programs is supported.
10320 dlopen_self=$enable_dlopen_self
10321
10322 # Whether dlopen of statically linked programs is supported.
10323 dlopen_self_static=$enable_dlopen_self_static
10324
10325 # Compiler flag to prevent dynamic linking.
10326 link_static_flag=$lt_lt_prog_compiler_static
10327
10328 # Compiler flag to turn off builtin functions.
10329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10330
10331 # Compiler flag to allow reflexive dlopens.
10332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10333
10334 # Compiler flag to generate shared objects directly from archives.
10335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10336
10337 # Compiler flag to generate thread-safe objects.
10338 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10339
10340 # Library versioning type.
10341 version_type=$version_type
10342
10343 # Format of library name prefix.
10344 libname_spec=$lt_libname_spec
10345
10346 # List of archive names. First name is the real one, the rest are links.
10347 # The last name is the one that the linker finds with -lNAME.
10348 library_names_spec=$lt_library_names_spec
10349
10350 # The coded name of the library, if different from the real name.
10351 soname_spec=$lt_soname_spec
10352
10353 # Commands used to build and install an old-style archive.
10354 RANLIB=$lt_RANLIB
10355 old_archive_cmds=$lt_old_archive_cmds
10356 old_postinstall_cmds=$lt_old_postinstall_cmds
10357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10358
10359 # Create an old-style archive from a shared archive.
10360 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10361
10362 # Create a temporary old-style archive to link instead of a shared archive.
10363 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10364
10365 # Commands used to build and install a shared archive.
10366 archive_cmds=$lt_archive_cmds
10367 archive_expsym_cmds=$lt_archive_expsym_cmds
10368 postinstall_cmds=$lt_postinstall_cmds
10369 postuninstall_cmds=$lt_postuninstall_cmds
10370
10371 # Commands used to build a loadable module (assumed same as above if empty)
10372 module_cmds=$lt_module_cmds
10373 module_expsym_cmds=$lt_module_expsym_cmds
10374
10375 # Commands to strip libraries.
10376 old_striplib=$lt_old_striplib
10377 striplib=$lt_striplib
10378
10379 # Dependencies to place before the objects being linked to create a
10380 # shared library.
10381 predep_objects=$lt_predep_objects
10382
10383 # Dependencies to place after the objects being linked to create a
10384 # shared library.
10385 postdep_objects=$lt_postdep_objects
10386
10387 # Dependencies to place before the objects being linked to create a
10388 # shared library.
10389 predeps=$lt_predeps
10390
10391 # Dependencies to place after the objects being linked to create a
10392 # shared library.
10393 postdeps=$lt_postdeps
10394
10395 # The library search path used internally by the compiler when linking
10396 # a shared library.
10397 compiler_lib_search_path=$lt_compiler_lib_search_path
10398
10399 # Method to check whether dependent libraries are shared objects.
10400 deplibs_check_method=$lt_deplibs_check_method
10401
10402 # Command to use when deplibs_check_method == file_magic.
10403 file_magic_cmd=$lt_file_magic_cmd
10404
10405 # Flag that allows shared libraries with undefined symbols to be built.
10406 allow_undefined_flag=$lt_allow_undefined_flag
10407
10408 # Flag that forces no undefined symbols.
10409 no_undefined_flag=$lt_no_undefined_flag
10410
10411 # Commands used to finish a libtool library installation in a directory.
10412 finish_cmds=$lt_finish_cmds
10413
10414 # Same as above, but a single script fragment to be evaled but not shown.
10415 finish_eval=$lt_finish_eval
10416
10417 # Take the output of nm and produce a listing of raw symbols and C names.
10418 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10419
10420 # Transform the output of nm in a proper C declaration
10421 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10422
10423 # Transform the output of nm in a C name address pair
10424 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10425
10426 # This is the shared library runtime path variable.
10427 runpath_var=$runpath_var
10428
10429 # This is the shared library path variable.
10430 shlibpath_var=$shlibpath_var
10431
10432 # Is shlibpath searched before the hard-coded library search path?
10433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10434
10435 # How to hardcode a shared library path into an executable.
10436 hardcode_action=$hardcode_action
10437
10438 # Whether we should hardcode library paths into libraries.
10439 hardcode_into_libs=$hardcode_into_libs
10440
10441 # Flag to hardcode \$libdir into a binary during linking.
10442 # This must work even if \$libdir does not exist.
10443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10444
10445 # If ld is used when linking, flag to hardcode \$libdir into
10446 # a binary during linking. This must work even if \$libdir does
10447 # not exist.
10448 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10449
10450 # Whether we need a single -rpath flag with a separated argument.
10451 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10452
10453 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10454 # resulting binary.
10455 hardcode_direct=$hardcode_direct
10456
10457 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10458 # resulting binary.
10459 hardcode_minus_L=$hardcode_minus_L
10460
10461 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10462 # the resulting binary.
10463 hardcode_shlibpath_var=$hardcode_shlibpath_var
10464
10465 # Set to yes if building a shared library automatically hardcodes DIR into the library
10466 # and all subsequent libraries and executables linked against it.
10467 hardcode_automatic=$hardcode_automatic
10468
10469 # Variables whose values should be saved in libtool wrapper scripts and
10470 # restored at relink time.
10471 variables_saved_for_relink="$variables_saved_for_relink"
10472
10473 # Whether libtool must link a program against all its dependency libraries.
10474 link_all_deplibs=$link_all_deplibs
10475
10476 # Compile-time system search path for libraries
10477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10478
10479 # Run-time system search path for libraries
10480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10481
10482 # Fix the shell variable \$srcfile for the compiler.
10483 fix_srcfile_path=$lt_fix_srcfile_path
10484
10485 # Set to yes if exported symbols are required.
10486 always_export_symbols=$always_export_symbols
10487
10488 # The commands to list exported symbols.
10489 export_symbols_cmds=$lt_export_symbols_cmds
10490
10491 # The commands to extract the exported symbol list from a shared archive.
10492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10493
10494 # Symbols that should not be listed in the preloaded symbols.
10495 exclude_expsyms=$lt_exclude_expsyms
10496
10497 # Symbols that must always be exported.
10498 include_expsyms=$lt_include_expsyms
10499
10500 # ### END LIBTOOL CONFIG
10501
10502 __EOF__
10503
10504
10505 case $host_os in
10506 aix3*)
10507 cat <<\EOF >> "$cfgfile"
10508
10509 # AIX sometimes has problems with the GCC collect2 program. For some
10510 # reason, if we set the COLLECT_NAMES environment variable, the problems
10511 # vanish in a puff of smoke.
10512 if test "X${COLLECT_NAMES+set}" != Xset; then
10513 COLLECT_NAMES=
10514 export COLLECT_NAMES
10515 fi
10516 EOF
10517 ;;
10518 esac
10519
10520 # We use sed instead of cat because bash on DJGPP gets confused if
10521 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10522 # text mode, it properly converts lines to CR/LF. This bash problem
10523 # is reportedly fixed, but why not run on old versions too?
10524 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10525
10526 mv -f "$cfgfile" "$ofile" || \
10527 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10528 chmod +x "$ofile"
10529
10530 else
10531 # If there is no Makefile yet, we rely on a make rule to execute
10532 # `config.status --recheck' to rerun these tests and create the
10533 # libtool script then.
10534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10535 if test -f "$ltmain_in"; then
10536 test -f Makefile && make "$ltmain"
10537 fi
10538 fi
10539
10540
10541 ac_ext=c
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
10547 CC="$lt_save_CC"
10548
10549
10550 # Check whether --with-tags was given.
10551 if test "${with_tags+set}" = set; then
10552 withval=$with_tags; tagnames="$withval"
10553 fi
10554
10555
10556 if test -f "$ltmain" && test -n "$tagnames"; then
10557 if test ! -f "${ofile}"; then
10558 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10559 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10560 fi
10561
10562 if test -z "$LTCC"; then
10563 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10564 if test -z "$LTCC"; then
10565 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10566 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10567 else
10568 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10569 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10570 fi
10571 fi
10572 if test -z "$LTCFLAGS"; then
10573 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10574 fi
10575
10576 # Extract list of available tagged configurations in $ofile.
10577 # Note that this assumes the entire list is on one line.
10578 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10579
10580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10581 for tagname in $tagnames; do
10582 IFS="$lt_save_ifs"
10583 # Check whether tagname contains only valid characters
10584 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10585 "") ;;
10586 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10587 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10588 { (exit 1); exit 1; }; }
10589 ;;
10590 esac
10591
10592 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10593 then
10594 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10595 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10596 { (exit 1); exit 1; }; }
10597 fi
10598
10599 # Update the list of available tags.
10600 if test -n "$tagname"; then
10601 echo appending configuration tag \"$tagname\" to $ofile
10602
10603 case $tagname in
10604 CXX)
10605 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10606 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10607 (test "X$CXX" != "Xg++"))) ; then
10608 ac_ext=cpp
10609 ac_cpp='$CXXCPP $CPPFLAGS'
10610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10613
10614
10615
10616
10617 archive_cmds_need_lc_CXX=no
10618 allow_undefined_flag_CXX=
10619 always_export_symbols_CXX=no
10620 archive_expsym_cmds_CXX=
10621 export_dynamic_flag_spec_CXX=
10622 hardcode_direct_CXX=no
10623 hardcode_libdir_flag_spec_CXX=
10624 hardcode_libdir_flag_spec_ld_CXX=
10625 hardcode_libdir_separator_CXX=
10626 hardcode_minus_L_CXX=no
10627 hardcode_shlibpath_var_CXX=unsupported
10628 hardcode_automatic_CXX=no
10629 module_cmds_CXX=
10630 module_expsym_cmds_CXX=
10631 link_all_deplibs_CXX=unknown
10632 old_archive_cmds_CXX=$old_archive_cmds
10633 no_undefined_flag_CXX=
10634 whole_archive_flag_spec_CXX=
10635 enable_shared_with_static_runtimes_CXX=no
10636
10637 # Dependencies to place before and after the object being linked:
10638 predep_objects_CXX=
10639 postdep_objects_CXX=
10640 predeps_CXX=
10641 postdeps_CXX=
10642 compiler_lib_search_path_CXX=
10643
10644 # Source file extension for C++ test sources.
10645 ac_ext=cpp
10646
10647 # Object file extension for compiled C++ test sources.
10648 objext=o
10649 objext_CXX=$objext
10650
10651 # Code to be used in simple compile tests
10652 lt_simple_compile_test_code="int some_variable = 0;"
10653
10654 # Code to be used in simple link tests
10655 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10656
10657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10658
10659 # If no C compiler was specified, use CC.
10660 LTCC=${LTCC-"$CC"}
10661
10662 # If no C compiler flags were specified, use CFLAGS.
10663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10664
10665 # Allow CC to be a program name with arguments.
10666 compiler=$CC
10667
10668
10669 # save warnings/boilerplate of simple test code
10670 ac_outfile=conftest.$ac_objext
10671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10673 _lt_compiler_boilerplate=`cat conftest.err`
10674 $rm conftest*
10675
10676 ac_outfile=conftest.$ac_objext
10677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10679 _lt_linker_boilerplate=`cat conftest.err`
10680 $rm conftest*
10681
10682
10683 # Allow CC to be a program name with arguments.
10684 lt_save_CC=$CC
10685 lt_save_LD=$LD
10686 lt_save_GCC=$GCC
10687 GCC=$GXX
10688 lt_save_with_gnu_ld=$with_gnu_ld
10689 lt_save_path_LD=$lt_cv_path_LD
10690 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10691 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10692 else
10693 $as_unset lt_cv_prog_gnu_ld
10694 fi
10695 if test -n "${lt_cv_path_LDCXX+set}"; then
10696 lt_cv_path_LD=$lt_cv_path_LDCXX
10697 else
10698 $as_unset lt_cv_path_LD
10699 fi
10700 test -z "${LDCXX+set}" || LD=$LDCXX
10701 CC=${CXX-"c++"}
10702 compiler=$CC
10703 compiler_CXX=$CC
10704 for cc_temp in $compiler""; do
10705 case $cc_temp in
10706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10708 \-*) ;;
10709 *) break;;
10710 esac
10711 done
10712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10713
10714
10715 # We don't want -fno-exception wen compiling C++ code, so set the
10716 # no_builtin_flag separately
10717 if test "$GXX" = yes; then
10718 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10719 else
10720 lt_prog_compiler_no_builtin_flag_CXX=
10721 fi
10722
10723 if test "$GXX" = yes; then
10724 # Set up default GNU C++ configuration
10725
10726
10727 # Check whether --with-gnu-ld was given.
10728 if test "${with_gnu_ld+set}" = set; then
10729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10730 else
10731 with_gnu_ld=no
10732 fi
10733
10734 ac_prog=ld
10735 if test "$GCC" = yes; then
10736 # Check if gcc -print-prog-name=ld gives a path.
10737 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10738 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10739 case $host in
10740 *-*-mingw*)
10741 # gcc leaves a trailing carriage return which upsets mingw
10742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10743 *)
10744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10745 esac
10746 case $ac_prog in
10747 # Accept absolute paths.
10748 [\\/]* | ?:[\\/]*)
10749 re_direlt='/[^/][^/]*/\.\./'
10750 # Canonicalize the pathname of ld
10751 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10752 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10753 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10754 done
10755 test -z "$LD" && LD="$ac_prog"
10756 ;;
10757 "")
10758 # If it fails, then pretend we aren't using GCC.
10759 ac_prog=ld
10760 ;;
10761 *)
10762 # If it is relative, then search for the first ld in PATH.
10763 with_gnu_ld=unknown
10764 ;;
10765 esac
10766 elif test "$with_gnu_ld" = yes; then
10767 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10768 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10769 else
10770 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10771 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10772 fi
10773 if test "${lt_cv_path_LD+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 if test -z "$LD"; then
10777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10778 for ac_dir in $PATH; do
10779 IFS="$lt_save_ifs"
10780 test -z "$ac_dir" && ac_dir=.
10781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10782 lt_cv_path_LD="$ac_dir/$ac_prog"
10783 # Check to see if the program is GNU ld. I'd rather use --version,
10784 # but apparently some variants of GNU ld only accept -v.
10785 # Break only if it was the GNU/non-GNU ld that we prefer.
10786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10787 *GNU* | *'with BFD'*)
10788 test "$with_gnu_ld" != no && break
10789 ;;
10790 *)
10791 test "$with_gnu_ld" != yes && break
10792 ;;
10793 esac
10794 fi
10795 done
10796 IFS="$lt_save_ifs"
10797 else
10798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10799 fi
10800 fi
10801
10802 LD="$lt_cv_path_LD"
10803 if test -n "$LD"; then
10804 { echo "$as_me:$LINENO: result: $LD" >&5
10805 echo "${ECHO_T}$LD" >&6; }
10806 else
10807 { echo "$as_me:$LINENO: result: no" >&5
10808 echo "${ECHO_T}no" >&6; }
10809 fi
10810 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10811 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10812 { (exit 1); exit 1; }; }
10813 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10814 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10815 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10819 case `$LD -v 2>&1 </dev/null` in
10820 *GNU* | *'with BFD'*)
10821 lt_cv_prog_gnu_ld=yes
10822 ;;
10823 *)
10824 lt_cv_prog_gnu_ld=no
10825 ;;
10826 esac
10827 fi
10828 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10829 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10830 with_gnu_ld=$lt_cv_prog_gnu_ld
10831
10832
10833
10834 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10835 # archiving commands below assume that GNU ld is being used.
10836 if test "$with_gnu_ld" = yes; then
10837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838 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'
10839
10840 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10842
10843 # If archive_cmds runs LD, not CC, wlarc should be empty
10844 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10845 # investigate it a little bit more. (MM)
10846 wlarc='${wl}'
10847
10848 # ancient GNU ld didn't support --whole-archive et. al.
10849 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10850 grep 'no-whole-archive' > /dev/null; then
10851 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10852 else
10853 whole_archive_flag_spec_CXX=
10854 fi
10855 else
10856 with_gnu_ld=no
10857 wlarc=
10858
10859 # A generic and very simple default shared library creation
10860 # command for GNU C++ for the case where it uses the native
10861 # linker, instead of GNU ld. If possible, this setting should
10862 # overridden to take advantage of the native linker features on
10863 # the platform it is being used on.
10864 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10865 fi
10866
10867 # Commands to make compiler produce verbose output that lists
10868 # what "hidden" libraries, object files and flags are used when
10869 # linking a shared library.
10870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10871
10872 else
10873 GXX=no
10874 with_gnu_ld=no
10875 wlarc=
10876 fi
10877
10878 # PORTME: fill in a description of your system's C++ link characteristics
10879 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10880 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10881 ld_shlibs_CXX=yes
10882 case $host_os in
10883 aix3*)
10884 # FIXME: insert proper C++ library support
10885 ld_shlibs_CXX=no
10886 ;;
10887 aix4* | aix5*)
10888 if test "$host_cpu" = ia64; then
10889 # On IA64, the linker does run time linking by default, so we don't
10890 # have to do anything special.
10891 aix_use_runtimelinking=no
10892 exp_sym_flag='-Bexport'
10893 no_entry_flag=""
10894 else
10895 aix_use_runtimelinking=no
10896
10897 # Test if we are trying to use run time linking or normal
10898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10899 # need to do runtime linking.
10900 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10901 for ld_flag in $LDFLAGS; do
10902 case $ld_flag in
10903 *-brtl*)
10904 aix_use_runtimelinking=yes
10905 break
10906 ;;
10907 esac
10908 done
10909 ;;
10910 esac
10911
10912 exp_sym_flag='-bexport'
10913 no_entry_flag='-bnoentry'
10914 fi
10915
10916 # When large executables or shared objects are built, AIX ld can
10917 # have problems creating the table of contents. If linking a library
10918 # or program results in "error TOC overflow" add -mminimal-toc to
10919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10921
10922 archive_cmds_CXX=''
10923 hardcode_direct_CXX=yes
10924 hardcode_libdir_separator_CXX=':'
10925 link_all_deplibs_CXX=yes
10926
10927 if test "$GXX" = yes; then
10928 case $host_os in aix4.[012]|aix4.[012].*)
10929 # We only want to do this on AIX 4.2 and lower, the check
10930 # below for broken collect2 doesn't work under 4.3+
10931 collect2name=`${CC} -print-prog-name=collect2`
10932 if test -f "$collect2name" && \
10933 strings "$collect2name" | grep resolve_lib_name >/dev/null
10934 then
10935 # We have reworked collect2
10936 :
10937 else
10938 # We have old collect2
10939 hardcode_direct_CXX=unsupported
10940 # It fails to find uninstalled libraries when the uninstalled
10941 # path is not listed in the libpath. Setting hardcode_minus_L
10942 # to unsupported forces relinking
10943 hardcode_minus_L_CXX=yes
10944 hardcode_libdir_flag_spec_CXX='-L$libdir'
10945 hardcode_libdir_separator_CXX=
10946 fi
10947 ;;
10948 esac
10949 shared_flag='-shared'
10950 if test "$aix_use_runtimelinking" = yes; then
10951 shared_flag="$shared_flag "'${wl}-G'
10952 fi
10953 else
10954 # not using gcc
10955 if test "$host_cpu" = ia64; then
10956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10957 # chokes on -Wl,-G. The following line is correct:
10958 shared_flag='-G'
10959 else
10960 if test "$aix_use_runtimelinking" = yes; then
10961 shared_flag='${wl}-G'
10962 else
10963 shared_flag='${wl}-bM:SRE'
10964 fi
10965 fi
10966 fi
10967
10968 # It seems that -bexpall does not export symbols beginning with
10969 # underscore (_), so it is better to generate a list of symbols to export.
10970 always_export_symbols_CXX=yes
10971 if test "$aix_use_runtimelinking" = yes; then
10972 # Warning - without using the other runtime loading flags (-brtl),
10973 # -berok will link without error, but may produce a broken library.
10974 allow_undefined_flag_CXX='-berok'
10975 # Determine the default libpath from the value encoded in an empty executable.
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982
10983 int
10984 main ()
10985 {
10986
10987 ;
10988 return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_cxx_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext &&
11008 $as_test_x conftest$ac_exeext; then
11009
11010 lt_aix_libpath_sed='
11011 /Import File Strings/,/^$/ {
11012 /^0/ {
11013 s/^0 *\(.*\)$/\1/
11014 p
11015 }
11016 }'
11017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11018 # Check for a 64-bit object if we didn't find anything.
11019 if test -z "$aix_libpath"; then
11020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11021 fi
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026
11027 fi
11028
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11032
11033 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11034
11035 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"
11036 else
11037 if test "$host_cpu" = ia64; then
11038 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11039 allow_undefined_flag_CXX="-z nodefs"
11040 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"
11041 else
11042 # Determine the default libpath from the value encoded in an empty executable.
11043 cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h. */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049
11050 int
11051 main ()
11052 {
11053
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && {
11072 test -z "$ac_cxx_werror_flag" ||
11073 test ! -s conftest.err
11074 } && test -s conftest$ac_exeext &&
11075 $as_test_x conftest$ac_exeext; then
11076
11077 lt_aix_libpath_sed='
11078 /Import File Strings/,/^$/ {
11079 /^0/ {
11080 s/^0 *\(.*\)$/\1/
11081 p
11082 }
11083 }'
11084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11085 # Check for a 64-bit object if we didn't find anything.
11086 if test -z "$aix_libpath"; then
11087 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11088 fi
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097 conftest$ac_exeext conftest.$ac_ext
11098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11099
11100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11101 # Warning - without using the other run time loading flags,
11102 # -berok will link without error, but may produce a broken library.
11103 no_undefined_flag_CXX=' ${wl}-bernotok'
11104 allow_undefined_flag_CXX=' ${wl}-berok'
11105 # Exported symbols can be pulled into shared objects from archives
11106 whole_archive_flag_spec_CXX='$convenience'
11107 archive_cmds_need_lc_CXX=yes
11108 # This is similar to how AIX traditionally builds its shared libraries.
11109 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'
11110 fi
11111 fi
11112 ;;
11113
11114 beos*)
11115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11116 allow_undefined_flag_CXX=unsupported
11117 # Joseph Beckenbach <[email protected]> says some releases of gcc
11118 # support --undefined. This deserves some investigation. FIXME
11119 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11120 else
11121 ld_shlibs_CXX=no
11122 fi
11123 ;;
11124
11125 chorus*)
11126 case $cc_basename in
11127 *)
11128 # FIXME: insert proper C++ library support
11129 ld_shlibs_CXX=no
11130 ;;
11131 esac
11132 ;;
11133
11134 cygwin* | mingw* | pw32*)
11135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11136 # as there is no search path for DLLs.
11137 hardcode_libdir_flag_spec_CXX='-L$libdir'
11138 allow_undefined_flag_CXX=unsupported
11139 always_export_symbols_CXX=no
11140 enable_shared_with_static_runtimes_CXX=yes
11141
11142 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11143 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'
11144 # If the export-symbols file already is a .def file (1st line
11145 # is EXPORTS), use it as is; otherwise, prepend...
11146 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11147 cp $export_symbols $output_objdir/$soname.def;
11148 else
11149 echo EXPORTS > $output_objdir/$soname.def;
11150 cat $export_symbols >> $output_objdir/$soname.def;
11151 fi~
11152 $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'
11153 else
11154 ld_shlibs_CXX=no
11155 fi
11156 ;;
11157 darwin* | rhapsody*)
11158 case $host_os in
11159 rhapsody* | darwin1.[012])
11160 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11161 ;;
11162 *) # Darwin 1.3 on
11163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11164 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11165 else
11166 case ${MACOSX_DEPLOYMENT_TARGET} in
11167 10.[012])
11168 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11169 ;;
11170 10.*)
11171 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11172 ;;
11173 esac
11174 fi
11175 ;;
11176 esac
11177 archive_cmds_need_lc_CXX=no
11178 hardcode_direct_CXX=no
11179 hardcode_automatic_CXX=yes
11180 hardcode_shlibpath_var_CXX=unsupported
11181 whole_archive_flag_spec_CXX=''
11182 link_all_deplibs_CXX=yes
11183
11184 if test "$GXX" = yes ; then
11185 lt_int_apple_cc_single_mod=no
11186 output_verbose_link_cmd='echo'
11187 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11188 lt_int_apple_cc_single_mod=yes
11189 fi
11190 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11191 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11192 else
11193 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'
11194 fi
11195 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11197 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11198 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}'
11199 else
11200 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}'
11201 fi
11202 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}'
11203 else
11204 case $cc_basename in
11205 xlc*)
11206 output_verbose_link_cmd='echo'
11207 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11208 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11210 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11211 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}'
11212 ;;
11213 *)
11214 ld_shlibs_CXX=no
11215 ;;
11216 esac
11217 fi
11218 ;;
11219
11220 dgux*)
11221 case $cc_basename in
11222 ec++*)
11223 # FIXME: insert proper C++ library support
11224 ld_shlibs_CXX=no
11225 ;;
11226 ghcx*)
11227 # Green Hills C++ Compiler
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11230 ;;
11231 *)
11232 # FIXME: insert proper C++ library support
11233 ld_shlibs_CXX=no
11234 ;;
11235 esac
11236 ;;
11237 freebsd[12]*)
11238 # C++ shared libraries reported to be fairly broken before switch to ELF
11239 ld_shlibs_CXX=no
11240 ;;
11241 freebsd-elf*)
11242 archive_cmds_need_lc_CXX=no
11243 ;;
11244 freebsd* | dragonfly*)
11245 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11246 # conventions
11247 ld_shlibs_CXX=yes
11248 ;;
11249 gnu*)
11250 ;;
11251 hpux9*)
11252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11253 hardcode_libdir_separator_CXX=:
11254 export_dynamic_flag_spec_CXX='${wl}-E'
11255 hardcode_direct_CXX=yes
11256 hardcode_minus_L_CXX=yes # Not in the search PATH,
11257 # but as the default
11258 # location of the library.
11259
11260 case $cc_basename in
11261 CC*)
11262 # FIXME: insert proper C++ library support
11263 ld_shlibs_CXX=no
11264 ;;
11265 aCC*)
11266 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'
11267 # Commands to make compiler produce verbose output that lists
11268 # what "hidden" libraries, object files and flags are used when
11269 # linking a shared library.
11270 #
11271 # There doesn't appear to be a way to prevent this compiler from
11272 # explicitly linking system object files so we need to strip them
11273 # from the output so that they don't get included in the library
11274 # dependencies.
11275 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'
11276 ;;
11277 *)
11278 if test "$GXX" = yes; then
11279 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'
11280 else
11281 # FIXME: insert proper C++ library support
11282 ld_shlibs_CXX=no
11283 fi
11284 ;;
11285 esac
11286 ;;
11287 hpux10*|hpux11*)
11288 if test $with_gnu_ld = no; then
11289 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11290 hardcode_libdir_separator_CXX=:
11291
11292 case $host_cpu in
11293 hppa*64*|ia64*) ;;
11294 *)
11295 export_dynamic_flag_spec_CXX='${wl}-E'
11296 ;;
11297 esac
11298 fi
11299 case $host_cpu in
11300 hppa*64*|ia64*)
11301 hardcode_direct_CXX=no
11302 hardcode_shlibpath_var_CXX=no
11303 ;;
11304 *)
11305 hardcode_direct_CXX=yes
11306 hardcode_minus_L_CXX=yes # Not in the search PATH,
11307 # but as the default
11308 # location of the library.
11309 ;;
11310 esac
11311
11312 case $cc_basename in
11313 CC*)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 aCC*)
11318 case $host_cpu in
11319 hppa*64*)
11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11321 ;;
11322 ia64*)
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324 ;;
11325 *)
11326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327 ;;
11328 esac
11329 # Commands to make compiler produce verbose output that lists
11330 # what "hidden" libraries, object files and flags are used when
11331 # linking a shared library.
11332 #
11333 # There doesn't appear to be a way to prevent this compiler from
11334 # explicitly linking system object files so we need to strip them
11335 # from the output so that they don't get included in the library
11336 # dependencies.
11337 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'
11338 ;;
11339 *)
11340 if test "$GXX" = yes; then
11341 if test $with_gnu_ld = no; then
11342 case $host_cpu in
11343 hppa*64*)
11344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11345 ;;
11346 ia64*)
11347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348 ;;
11349 *)
11350 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'
11351 ;;
11352 esac
11353 fi
11354 else
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11357 fi
11358 ;;
11359 esac
11360 ;;
11361 interix[3-9]*)
11362 hardcode_direct_CXX=no
11363 hardcode_shlibpath_var_CXX=no
11364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11365 export_dynamic_flag_spec_CXX='${wl}-E'
11366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11367 # Instead, shared libraries are loaded at an image base (0x10000000 by
11368 # default) and relocated if they conflict, which is a slow very memory
11369 # consuming and fragmenting process. To avoid this, we pick a random,
11370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11372 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'
11373 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'
11374 ;;
11375 irix5* | irix6*)
11376 case $cc_basename in
11377 CC*)
11378 # SGI C++
11379 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'
11380
11381 # Archives containing C++ object files must be created using
11382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11383 # necessary to make sure instantiated templates are included
11384 # in the archive.
11385 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11386 ;;
11387 *)
11388 if test "$GXX" = yes; then
11389 if test "$with_gnu_ld" = no; then
11390 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'
11391 else
11392 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'
11393 fi
11394 fi
11395 link_all_deplibs_CXX=yes
11396 ;;
11397 esac
11398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11399 hardcode_libdir_separator_CXX=:
11400 ;;
11401 linux* | k*bsd*-gnu)
11402 case $cc_basename in
11403 KCC*)
11404 # Kuck and Associates, Inc. (KAI) C++ Compiler
11405
11406 # KCC will only create a shared library if the output file
11407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11408 # to its proper name (with version) after linking.
11409 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'
11410 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'
11411 # Commands to make compiler produce verbose output that lists
11412 # what "hidden" libraries, object files and flags are used when
11413 # linking a shared library.
11414 #
11415 # There doesn't appear to be a way to prevent this compiler from
11416 # explicitly linking system object files so we need to strip them
11417 # from the output so that they don't get included in the library
11418 # dependencies.
11419 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'
11420
11421 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
11424 # Archives containing C++ object files must be created using
11425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11427 ;;
11428 icpc*)
11429 # Intel C++
11430 with_gnu_ld=yes
11431 # version 8.0 and above of icpc choke on multiply defined symbols
11432 # if we add $predep_objects and $postdep_objects, however 7.1 and
11433 # earlier do not add the objects themselves.
11434 case `$CC -V 2>&1` in
11435 *"Version 7."*)
11436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 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'
11438 ;;
11439 *) # Version 8.0 or newer
11440 tmp_idyn=
11441 case $host_cpu in
11442 ia64*) tmp_idyn=' -i_dynamic';;
11443 esac
11444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445 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'
11446 ;;
11447 esac
11448 archive_cmds_need_lc_CXX=no
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11452 ;;
11453 pgCC*)
11454 # Portland Group C++ compiler
11455 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11456 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'
11457
11458 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460 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'
11461 ;;
11462 cxx*)
11463 # Compaq C++
11464 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 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'
11466
11467 runpath_var=LD_RUN_PATH
11468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11469 hardcode_libdir_separator_CXX=:
11470
11471 # Commands to make compiler produce verbose output that lists
11472 # what "hidden" libraries, object files and flags are used when
11473 # linking a shared library.
11474 #
11475 # There doesn't appear to be a way to prevent this compiler from
11476 # explicitly linking system object files so we need to strip them
11477 # from the output so that they don't get included in the library
11478 # dependencies.
11479 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'
11480 ;;
11481 *)
11482 case `$CC -V 2>&1 | sed 5q` in
11483 *Sun\ C*)
11484 # Sun C++ 5.9
11485 no_undefined_flag_CXX=' -zdefs'
11486 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11487 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11488 hardcode_libdir_flag_spec_CXX='-R$libdir'
11489 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11490
11491 # Not sure whether something based on
11492 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11493 # would be better.
11494 output_verbose_link_cmd='echo'
11495
11496 # Archives containing C++ object files must be created using
11497 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11498 # necessary to make sure instantiated templates are included
11499 # in the archive.
11500 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11501 ;;
11502 esac
11503 ;;
11504 esac
11505 ;;
11506 lynxos*)
11507 # FIXME: insert proper C++ library support
11508 ld_shlibs_CXX=no
11509 ;;
11510 m88k*)
11511 # FIXME: insert proper C++ library support
11512 ld_shlibs_CXX=no
11513 ;;
11514 mvs*)
11515 case $cc_basename in
11516 cxx*)
11517 # FIXME: insert proper C++ library support
11518 ld_shlibs_CXX=no
11519 ;;
11520 *)
11521 # FIXME: insert proper C++ library support
11522 ld_shlibs_CXX=no
11523 ;;
11524 esac
11525 ;;
11526 netbsd*)
11527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11528 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11529 wlarc=
11530 hardcode_libdir_flag_spec_CXX='-R$libdir'
11531 hardcode_direct_CXX=yes
11532 hardcode_shlibpath_var_CXX=no
11533 fi
11534 # Workaround some broken pre-1.5 toolchains
11535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11536 ;;
11537 openbsd2*)
11538 # C++ shared libraries are fairly broken
11539 ld_shlibs_CXX=no
11540 ;;
11541 openbsd*)
11542 if test -f /usr/libexec/ld.so; then
11543 hardcode_direct_CXX=yes
11544 hardcode_shlibpath_var_CXX=no
11545 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11548 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11549 export_dynamic_flag_spec_CXX='${wl}-E'
11550 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11551 fi
11552 output_verbose_link_cmd='echo'
11553 else
11554 ld_shlibs_CXX=no
11555 fi
11556 ;;
11557 osf3*)
11558 case $cc_basename in
11559 KCC*)
11560 # Kuck and Associates, Inc. (KAI) C++ Compiler
11561
11562 # KCC will only create a shared library if the output file
11563 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11564 # to its proper name (with version) after linking.
11565 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'
11566
11567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11568 hardcode_libdir_separator_CXX=:
11569
11570 # Archives containing C++ object files must be created using
11571 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11572 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11573
11574 ;;
11575 RCC*)
11576 # Rational C++ 2.4.1
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11579 ;;
11580 cxx*)
11581 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11582 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'
11583
11584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11586
11587 # Commands to make compiler produce verbose output that lists
11588 # what "hidden" libraries, object files and flags are used when
11589 # linking a shared library.
11590 #
11591 # There doesn't appear to be a way to prevent this compiler from
11592 # explicitly linking system object files so we need to strip them
11593 # from the output so that they don't get included in the library
11594 # dependencies.
11595 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'
11596 ;;
11597 *)
11598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11599 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11600 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'
11601
11602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603 hardcode_libdir_separator_CXX=:
11604
11605 # Commands to make compiler produce verbose output that lists
11606 # what "hidden" libraries, object files and flags are used when
11607 # linking a shared library.
11608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11609
11610 else
11611 # FIXME: insert proper C++ library support
11612 ld_shlibs_CXX=no
11613 fi
11614 ;;
11615 esac
11616 ;;
11617 osf4* | osf5*)
11618 case $cc_basename in
11619 KCC*)
11620 # Kuck and Associates, Inc. (KAI) C++ Compiler
11621
11622 # KCC will only create a shared library if the output file
11623 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11624 # to its proper name (with version) after linking.
11625 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'
11626
11627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11628 hardcode_libdir_separator_CXX=:
11629
11630 # Archives containing C++ object files must be created using
11631 # the KAI C++ compiler.
11632 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11633 ;;
11634 RCC*)
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11637 ld_shlibs_CXX=no
11638 ;;
11639 cxx*)
11640 allow_undefined_flag_CXX=' -expect_unresolved \*'
11641 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'
11642 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11643 echo "-hidden">> $lib.exp~
11644 $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~
11645 $rm $lib.exp'
11646
11647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648 hardcode_libdir_separator_CXX=:
11649
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11653 #
11654 # There doesn't appear to be a way to prevent this compiler from
11655 # explicitly linking system object files so we need to strip them
11656 # from the output so that they don't get included in the library
11657 # dependencies.
11658 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'
11659 ;;
11660 *)
11661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11663 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'
11664
11665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666 hardcode_libdir_separator_CXX=:
11667
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11672
11673 else
11674 # FIXME: insert proper C++ library support
11675 ld_shlibs_CXX=no
11676 fi
11677 ;;
11678 esac
11679 ;;
11680 psos*)
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 ;;
11684 sunos4*)
11685 case $cc_basename in
11686 CC*)
11687 # Sun C++ 4.x
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 ;;
11691 lcc*)
11692 # Lucid
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696 *)
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 ;;
11700 esac
11701 ;;
11702 solaris*)
11703 case $cc_basename in
11704 CC*)
11705 # Sun C++ 4.2, 5.x and Centerline C++
11706 archive_cmds_need_lc_CXX=yes
11707 no_undefined_flag_CXX=' -zdefs'
11708 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11710 $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'
11711
11712 hardcode_libdir_flag_spec_CXX='-R$libdir'
11713 hardcode_shlibpath_var_CXX=no
11714 case $host_os in
11715 solaris2.[0-5] | solaris2.[0-5].*) ;;
11716 *)
11717 # The compiler driver will combine and reorder linker options,
11718 # but understands `-z linker_flag'.
11719 # Supported since Solaris 2.6 (maybe 2.5.1?)
11720 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11721 ;;
11722 esac
11723 link_all_deplibs_CXX=yes
11724
11725 output_verbose_link_cmd='echo'
11726
11727 # Archives containing C++ object files must be created using
11728 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11729 # necessary to make sure instantiated templates are included
11730 # in the archive.
11731 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11732 ;;
11733 gcx*)
11734 # Green Hills C++ Compiler
11735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736
11737 # The C++ compiler must be used to create the archive.
11738 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11739 ;;
11740 *)
11741 # GNU C++ compiler with Solaris linker
11742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11743 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11744 if $CC --version | grep -v '^2\.7' > /dev/null; then
11745 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11746 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11747 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11748
11749 # Commands to make compiler produce verbose output that lists
11750 # what "hidden" libraries, object files and flags are used when
11751 # linking a shared library.
11752 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11753 else
11754 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11755 # platform.
11756 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11757 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11758 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11759
11760 # Commands to make compiler produce verbose output that lists
11761 # what "hidden" libraries, object files and flags are used when
11762 # linking a shared library.
11763 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11764 fi
11765
11766 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11767 case $host_os in
11768 solaris2.[0-5] | solaris2.[0-5].*) ;;
11769 *)
11770 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11771 ;;
11772 esac
11773 fi
11774 ;;
11775 esac
11776 ;;
11777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11778 no_undefined_flag_CXX='${wl}-z,text'
11779 archive_cmds_need_lc_CXX=no
11780 hardcode_shlibpath_var_CXX=no
11781 runpath_var='LD_RUN_PATH'
11782
11783 case $cc_basename in
11784 CC*)
11785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787 ;;
11788 *)
11789 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 ;;
11792 esac
11793 ;;
11794 sysv5* | sco3.2v5* | sco5v6*)
11795 # Note: We can NOT use -z defs as we might desire, because we do not
11796 # link with -lc, and that would cause any symbols used from libc to
11797 # always be unresolved, which means just about no library would
11798 # ever link correctly. If we're not using GNU ld we use -z text
11799 # though, which does catch some bad symbols but isn't as heavy-handed
11800 # as -z defs.
11801 # For security reasons, it is highly recommended that you always
11802 # use absolute paths for naming shared libraries, and exclude the
11803 # DT_RUNPATH tag from executables and libraries. But doing so
11804 # requires that you compile everything twice, which is a pain.
11805 # So that behaviour is only enabled if SCOABSPATH is set to a
11806 # non-empty value in the environment. Most likely only useful for
11807 # creating official distributions of packages.
11808 # This is a hack until libtool officially supports absolute path
11809 # names for shared libraries.
11810 no_undefined_flag_CXX='${wl}-z,text'
11811 allow_undefined_flag_CXX='${wl}-z,nodefs'
11812 archive_cmds_need_lc_CXX=no
11813 hardcode_shlibpath_var_CXX=no
11814 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11815 hardcode_libdir_separator_CXX=':'
11816 link_all_deplibs_CXX=yes
11817 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11818 runpath_var='LD_RUN_PATH'
11819
11820 case $cc_basename in
11821 CC*)
11822 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 ;;
11825 *)
11826 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11828 ;;
11829 esac
11830 ;;
11831 tandem*)
11832 case $cc_basename in
11833 NCC*)
11834 # NonStop-UX NCC 3.20
11835 # FIXME: insert proper C++ library support
11836 ld_shlibs_CXX=no
11837 ;;
11838 *)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 ;;
11842 esac
11843 ;;
11844 vxworks*)
11845 # FIXME: insert proper C++ library support
11846 ld_shlibs_CXX=no
11847 ;;
11848 *)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 esac
11853 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11854 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11855 test "$ld_shlibs_CXX" = no && can_build_shared=no
11856
11857 GCC_CXX="$GXX"
11858 LD_CXX="$LD"
11859
11860
11861 cat > conftest.$ac_ext <<EOF
11862 class Foo
11863 {
11864 public:
11865 Foo (void) { a = 0; }
11866 private:
11867 int a;
11868 };
11869 EOF
11870
11871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872 (eval $ac_compile) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; then
11876 # Parse the compiler output and extract the necessary
11877 # objects, libraries and library flags.
11878
11879 # Sentinel used to keep track of whether or not we are before
11880 # the conftest object file.
11881 pre_test_object_deps_done=no
11882
11883 # The `*' in the case matches for architectures that use `case' in
11884 # $output_verbose_cmd can trigger glob expansion during the loop
11885 # eval without this substitution.
11886 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11887
11888 for p in `eval $output_verbose_link_cmd`; do
11889 case $p in
11890
11891 -L* | -R* | -l*)
11892 # Some compilers place space between "-{L,R}" and the path.
11893 # Remove the space.
11894 if test $p = "-L" \
11895 || test $p = "-R"; then
11896 prev=$p
11897 continue
11898 else
11899 prev=
11900 fi
11901
11902 if test "$pre_test_object_deps_done" = no; then
11903 case $p in
11904 -L* | -R*)
11905 # Internal compiler library paths should come after those
11906 # provided the user. The postdeps already come after the
11907 # user supplied libs so there is no need to process them.
11908 if test -z "$compiler_lib_search_path_CXX"; then
11909 compiler_lib_search_path_CXX="${prev}${p}"
11910 else
11911 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11912 fi
11913 ;;
11914 # The "-l" case would never come before the object being
11915 # linked, so don't bother handling this case.
11916 esac
11917 else
11918 if test -z "$postdeps_CXX"; then
11919 postdeps_CXX="${prev}${p}"
11920 else
11921 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11922 fi
11923 fi
11924 ;;
11925
11926 *.$objext)
11927 # This assumes that the test object file only shows up
11928 # once in the compiler output.
11929 if test "$p" = "conftest.$objext"; then
11930 pre_test_object_deps_done=yes
11931 continue
11932 fi
11933
11934 if test "$pre_test_object_deps_done" = no; then
11935 if test -z "$predep_objects_CXX"; then
11936 predep_objects_CXX="$p"
11937 else
11938 predep_objects_CXX="$predep_objects_CXX $p"
11939 fi
11940 else
11941 if test -z "$postdep_objects_CXX"; then
11942 postdep_objects_CXX="$p"
11943 else
11944 postdep_objects_CXX="$postdep_objects_CXX $p"
11945 fi
11946 fi
11947 ;;
11948
11949 *) ;; # Ignore the rest.
11950
11951 esac
11952 done
11953
11954 # Clean up.
11955 rm -f a.out a.exe
11956 else
11957 echo "libtool.m4: error: problem compiling CXX test program"
11958 fi
11959
11960 $rm -f confest.$objext
11961
11962 # PORTME: override above test on systems where it is broken
11963 case $host_os in
11964 interix[3-9]*)
11965 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11966 # hack all around it, let's just trust "g++" to DTRT.
11967 predep_objects_CXX=
11968 postdep_objects_CXX=
11969 postdeps_CXX=
11970 ;;
11971
11972 linux*)
11973 case `$CC -V 2>&1 | sed 5q` in
11974 *Sun\ C*)
11975 # Sun C++ 5.9
11976 #
11977 # The more standards-conforming stlport4 library is
11978 # incompatible with the Cstd library. Avoid specifying
11979 # it if it's in CXXFLAGS. Ignore libCrun as
11980 # -library=stlport4 depends on it.
11981 case " $CXX $CXXFLAGS " in
11982 *" -library=stlport4 "*)
11983 solaris_use_stlport4=yes
11984 ;;
11985 esac
11986 if test "$solaris_use_stlport4" != yes; then
11987 postdeps_CXX='-library=Cstd -library=Crun'
11988 fi
11989 ;;
11990 esac
11991 ;;
11992
11993 solaris*)
11994 case $cc_basename in
11995 CC*)
11996 # The more standards-conforming stlport4 library is
11997 # incompatible with the Cstd library. Avoid specifying
11998 # it if it's in CXXFLAGS. Ignore libCrun as
11999 # -library=stlport4 depends on it.
12000 case " $CXX $CXXFLAGS " in
12001 *" -library=stlport4 "*)
12002 solaris_use_stlport4=yes
12003 ;;
12004 esac
12005
12006 # Adding this requires a known-good setup of shared libraries for
12007 # Sun compiler versions before 5.6, else PIC objects from an old
12008 # archive will be linked into the output, leading to subtle bugs.
12009 if test "$solaris_use_stlport4" != yes; then
12010 postdeps_CXX='-library=Cstd -library=Crun'
12011 fi
12012 ;;
12013 esac
12014 ;;
12015 esac
12016
12017
12018 case " $postdeps_CXX " in
12019 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12020 esac
12021
12022 lt_prog_compiler_wl_CXX=
12023 lt_prog_compiler_pic_CXX=
12024 lt_prog_compiler_static_CXX=
12025
12026 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12027 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12028
12029 # C++ specific cases for pic, static, wl, etc.
12030 if test "$GXX" = yes; then
12031 lt_prog_compiler_wl_CXX='-Wl,'
12032 lt_prog_compiler_static_CXX='-static'
12033
12034 case $host_os in
12035 aix*)
12036 # All AIX code is PIC.
12037 if test "$host_cpu" = ia64; then
12038 # AIX 5 now supports IA64 processor
12039 lt_prog_compiler_static_CXX='-Bstatic'
12040 fi
12041 ;;
12042 amigaos*)
12043 # FIXME: we need at least 68020 code to build shared libraries, but
12044 # adding the `-m68020' flag to GCC prevents building anything better,
12045 # like `-m68040'.
12046 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12047 ;;
12048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12049 # PIC is the default for these OSes.
12050 ;;
12051 mingw* | cygwin* | os2* | pw32*)
12052 # This hack is so that the source file can tell whether it is being
12053 # built for inclusion in a dll (and should export symbols for example).
12054 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12055 # (--disable-auto-import) libraries
12056 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12057 ;;
12058 darwin* | rhapsody*)
12059 # PIC is the default on this platform
12060 # Common symbols not allowed in MH_DYLIB files
12061 lt_prog_compiler_pic_CXX='-fno-common'
12062 ;;
12063 *djgpp*)
12064 # DJGPP does not support shared libraries at all
12065 lt_prog_compiler_pic_CXX=
12066 ;;
12067 interix[3-9]*)
12068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12069 # Instead, we relocate shared libraries at runtime.
12070 ;;
12071 sysv4*MP*)
12072 if test -d /usr/nec; then
12073 lt_prog_compiler_pic_CXX=-Kconform_pic
12074 fi
12075 ;;
12076 hpux*)
12077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12078 # not for PA HP-UX.
12079 case $host_cpu in
12080 hppa*64*|ia64*)
12081 ;;
12082 *)
12083 lt_prog_compiler_pic_CXX='-fPIC'
12084 ;;
12085 esac
12086 ;;
12087 *)
12088 lt_prog_compiler_pic_CXX='-fPIC'
12089 ;;
12090 esac
12091 else
12092 case $host_os in
12093 aix4* | aix5*)
12094 # All AIX code is PIC.
12095 if test "$host_cpu" = ia64; then
12096 # AIX 5 now supports IA64 processor
12097 lt_prog_compiler_static_CXX='-Bstatic'
12098 else
12099 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12100 fi
12101 ;;
12102 chorus*)
12103 case $cc_basename in
12104 cxch68*)
12105 # Green Hills C++ Compiler
12106 # _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"
12107 ;;
12108 esac
12109 ;;
12110 darwin*)
12111 # PIC is the default on this platform
12112 # Common symbols not allowed in MH_DYLIB files
12113 case $cc_basename in
12114 xlc*)
12115 lt_prog_compiler_pic_CXX='-qnocommon'
12116 lt_prog_compiler_wl_CXX='-Wl,'
12117 ;;
12118 esac
12119 ;;
12120 dgux*)
12121 case $cc_basename in
12122 ec++*)
12123 lt_prog_compiler_pic_CXX='-KPIC'
12124 ;;
12125 ghcx*)
12126 # Green Hills C++ Compiler
12127 lt_prog_compiler_pic_CXX='-pic'
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 freebsd* | dragonfly*)
12134 # FreeBSD uses GNU C++
12135 ;;
12136 hpux9* | hpux10* | hpux11*)
12137 case $cc_basename in
12138 CC*)
12139 lt_prog_compiler_wl_CXX='-Wl,'
12140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12141 if test "$host_cpu" != ia64; then
12142 lt_prog_compiler_pic_CXX='+Z'
12143 fi
12144 ;;
12145 aCC*)
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12148 case $host_cpu in
12149 hppa*64*|ia64*)
12150 # +Z the default
12151 ;;
12152 *)
12153 lt_prog_compiler_pic_CXX='+Z'
12154 ;;
12155 esac
12156 ;;
12157 *)
12158 ;;
12159 esac
12160 ;;
12161 interix*)
12162 # This is c89, which is MS Visual C++ (no shared libs)
12163 # Anyone wants to do a port?
12164 ;;
12165 irix5* | irix6* | nonstopux*)
12166 case $cc_basename in
12167 CC*)
12168 lt_prog_compiler_wl_CXX='-Wl,'
12169 lt_prog_compiler_static_CXX='-non_shared'
12170 # CC pic flag -KPIC is the default.
12171 ;;
12172 *)
12173 ;;
12174 esac
12175 ;;
12176 linux* | k*bsd*-gnu)
12177 case $cc_basename in
12178 KCC*)
12179 # KAI C++ Compiler
12180 lt_prog_compiler_wl_CXX='--backend -Wl,'
12181 lt_prog_compiler_pic_CXX='-fPIC'
12182 ;;
12183 icpc* | ecpc*)
12184 # Intel C++
12185 lt_prog_compiler_wl_CXX='-Wl,'
12186 lt_prog_compiler_pic_CXX='-KPIC'
12187 lt_prog_compiler_static_CXX='-static'
12188 ;;
12189 pgCC*)
12190 # Portland Group C++ compiler.
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_pic_CXX='-fpic'
12193 lt_prog_compiler_static_CXX='-Bstatic'
12194 ;;
12195 cxx*)
12196 # Compaq C++
12197 # Make sure the PIC flag is empty. It appears that all Alpha
12198 # Linux and Compaq Tru64 Unix objects are PIC.
12199 lt_prog_compiler_pic_CXX=
12200 lt_prog_compiler_static_CXX='-non_shared'
12201 ;;
12202 *)
12203 case `$CC -V 2>&1 | sed 5q` in
12204 *Sun\ C*)
12205 # Sun C++ 5.9
12206 lt_prog_compiler_pic_CXX='-KPIC'
12207 lt_prog_compiler_static_CXX='-Bstatic'
12208 lt_prog_compiler_wl_CXX='-Qoption ld '
12209 ;;
12210 esac
12211 ;;
12212 esac
12213 ;;
12214 lynxos*)
12215 ;;
12216 m88k*)
12217 ;;
12218 mvs*)
12219 case $cc_basename in
12220 cxx*)
12221 lt_prog_compiler_pic_CXX='-W c,exportall'
12222 ;;
12223 *)
12224 ;;
12225 esac
12226 ;;
12227 netbsd*)
12228 ;;
12229 osf3* | osf4* | osf5*)
12230 case $cc_basename in
12231 KCC*)
12232 lt_prog_compiler_wl_CXX='--backend -Wl,'
12233 ;;
12234 RCC*)
12235 # Rational C++ 2.4.1
12236 lt_prog_compiler_pic_CXX='-pic'
12237 ;;
12238 cxx*)
12239 # Digital/Compaq C++
12240 lt_prog_compiler_wl_CXX='-Wl,'
12241 # Make sure the PIC flag is empty. It appears that all Alpha
12242 # Linux and Compaq Tru64 Unix objects are PIC.
12243 lt_prog_compiler_pic_CXX=
12244 lt_prog_compiler_static_CXX='-non_shared'
12245 ;;
12246 *)
12247 ;;
12248 esac
12249 ;;
12250 psos*)
12251 ;;
12252 solaris*)
12253 case $cc_basename in
12254 CC*)
12255 # Sun C++ 4.2, 5.x and Centerline C++
12256 lt_prog_compiler_pic_CXX='-KPIC'
12257 lt_prog_compiler_static_CXX='-Bstatic'
12258 lt_prog_compiler_wl_CXX='-Qoption ld '
12259 ;;
12260 gcx*)
12261 # Green Hills C++ Compiler
12262 lt_prog_compiler_pic_CXX='-PIC'
12263 ;;
12264 *)
12265 ;;
12266 esac
12267 ;;
12268 sunos4*)
12269 case $cc_basename in
12270 CC*)
12271 # Sun C++ 4.x
12272 lt_prog_compiler_pic_CXX='-pic'
12273 lt_prog_compiler_static_CXX='-Bstatic'
12274 ;;
12275 lcc*)
12276 # Lucid
12277 lt_prog_compiler_pic_CXX='-pic'
12278 ;;
12279 *)
12280 ;;
12281 esac
12282 ;;
12283 tandem*)
12284 case $cc_basename in
12285 NCC*)
12286 # NonStop-UX NCC 3.20
12287 lt_prog_compiler_pic_CXX='-KPIC'
12288 ;;
12289 *)
12290 ;;
12291 esac
12292 ;;
12293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12294 case $cc_basename in
12295 CC*)
12296 lt_prog_compiler_wl_CXX='-Wl,'
12297 lt_prog_compiler_pic_CXX='-KPIC'
12298 lt_prog_compiler_static_CXX='-Bstatic'
12299 ;;
12300 esac
12301 ;;
12302 vxworks*)
12303 ;;
12304 *)
12305 lt_prog_compiler_can_build_shared_CXX=no
12306 ;;
12307 esac
12308 fi
12309
12310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12311 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12312
12313 #
12314 # Check to make sure the PIC flag actually works.
12315 #
12316 if test -n "$lt_prog_compiler_pic_CXX"; then
12317
12318 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12320 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 lt_prog_compiler_pic_works_CXX=no
12324 ac_outfile=conftest.$ac_objext
12325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12326 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12327 # Insert the option either (1) after the last *FLAGS variable, or
12328 # (2) before a word containing "conftest.", or (3) at the end.
12329 # Note that $ac_compile itself does not contain backslashes and begins
12330 # with a dollar sign (not a hyphen), so the echo should work correctly.
12331 # The option is referenced via a variable to avoid confusing sed.
12332 lt_compile=`echo "$ac_compile" | $SED \
12333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12335 -e 's:$: $lt_compiler_flag:'`
12336 (eval echo "\"\$as_me:12336: $lt_compile\"" >&5)
12337 (eval "$lt_compile" 2>conftest.err)
12338 ac_status=$?
12339 cat conftest.err >&5
12340 echo "$as_me:12340: \$? = $ac_status" >&5
12341 if (exit $ac_status) && test -s "$ac_outfile"; then
12342 # The compiler can only warn and ignore the option if not recognized
12343 # So say no if there are warnings other than the usual output.
12344 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12347 lt_prog_compiler_pic_works_CXX=yes
12348 fi
12349 fi
12350 $rm conftest*
12351
12352 fi
12353 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12354 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12355
12356 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12357 case $lt_prog_compiler_pic_CXX in
12358 "" | " "*) ;;
12359 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12360 esac
12361 else
12362 lt_prog_compiler_pic_CXX=
12363 lt_prog_compiler_can_build_shared_CXX=no
12364 fi
12365
12366 fi
12367 case $host_os in
12368 # For platforms which do not support PIC, -DPIC is meaningless:
12369 *djgpp*)
12370 lt_prog_compiler_pic_CXX=
12371 ;;
12372 *)
12373 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12374 ;;
12375 esac
12376
12377 #
12378 # Check to make sure the static flag actually works.
12379 #
12380 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12381 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12382 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12383 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386 lt_prog_compiler_static_works_CXX=no
12387 save_LDFLAGS="$LDFLAGS"
12388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12391 # The linker can only warn and ignore the option if not recognized
12392 # So say no if there are warnings
12393 if test -s conftest.err; then
12394 # Append any errors to the config.log.
12395 cat conftest.err 1>&5
12396 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12398 if diff conftest.exp conftest.er2 >/dev/null; then
12399 lt_prog_compiler_static_works_CXX=yes
12400 fi
12401 else
12402 lt_prog_compiler_static_works_CXX=yes
12403 fi
12404 fi
12405 $rm conftest*
12406 LDFLAGS="$save_LDFLAGS"
12407
12408 fi
12409 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12410 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12411
12412 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12413 :
12414 else
12415 lt_prog_compiler_static_CXX=
12416 fi
12417
12418
12419 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12420 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12421 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 lt_cv_prog_compiler_c_o_CXX=no
12425 $rm -r conftest 2>/dev/null
12426 mkdir conftest
12427 cd conftest
12428 mkdir out
12429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12430
12431 lt_compiler_flag="-o out/conftest2.$ac_objext"
12432 # Insert the option either (1) after the last *FLAGS variable, or
12433 # (2) before a word containing "conftest.", or (3) at the end.
12434 # Note that $ac_compile itself does not contain backslashes and begins
12435 # with a dollar sign (not a hyphen), so the echo should work correctly.
12436 lt_compile=`echo "$ac_compile" | $SED \
12437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12439 -e 's:$: $lt_compiler_flag:'`
12440 (eval echo "\"\$as_me:12440: $lt_compile\"" >&5)
12441 (eval "$lt_compile" 2>out/conftest.err)
12442 ac_status=$?
12443 cat out/conftest.err >&5
12444 echo "$as_me:12444: \$? = $ac_status" >&5
12445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12446 then
12447 # The compiler can only warn and ignore the option if not recognized
12448 # So say no if there are warnings
12449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12452 lt_cv_prog_compiler_c_o_CXX=yes
12453 fi
12454 fi
12455 chmod u+w . 2>&5
12456 $rm conftest*
12457 # SGI C++ compiler will create directory out/ii_files/ for
12458 # template instantiation
12459 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12460 $rm out/* && rmdir out
12461 cd ..
12462 rmdir conftest
12463 $rm conftest*
12464
12465 fi
12466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12468
12469
12470 hard_links="nottested"
12471 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12472 # do not overwrite the value of need_locks provided by the user
12473 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12474 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12475 hard_links=yes
12476 $rm conftest*
12477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12478 touch conftest.a
12479 ln conftest.a conftest.b 2>&5 || hard_links=no
12480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481 { echo "$as_me:$LINENO: result: $hard_links" >&5
12482 echo "${ECHO_T}$hard_links" >&6; }
12483 if test "$hard_links" = no; then
12484 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12485 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12486 need_locks=warn
12487 fi
12488 else
12489 need_locks=no
12490 fi
12491
12492 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12494
12495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12496 case $host_os in
12497 aix4* | aix5*)
12498 # If we're using GNU nm, then we don't want the "-C" option.
12499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12500 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12501 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'
12502 else
12503 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'
12504 fi
12505 ;;
12506 pw32*)
12507 export_symbols_cmds_CXX="$ltdll_cmds"
12508 ;;
12509 cygwin* | mingw*)
12510 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'
12511 ;;
12512 *)
12513 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12514 ;;
12515 esac
12516
12517 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12518 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12519 test "$ld_shlibs_CXX" = no && can_build_shared=no
12520
12521 #
12522 # Do we need to explicitly link libc?
12523 #
12524 case "x$archive_cmds_need_lc_CXX" in
12525 x|xyes)
12526 # Assume -lc should be added
12527 archive_cmds_need_lc_CXX=yes
12528
12529 if test "$enable_shared" = yes && test "$GCC" = yes; then
12530 case $archive_cmds_CXX in
12531 *'~'*)
12532 # FIXME: we may have to deal with multi-command sequences.
12533 ;;
12534 '$CC '*)
12535 # Test whether the compiler implicitly links with -lc since on some
12536 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12537 # to ld, don't add -lc before -lgcc.
12538 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12539 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12540 $rm conftest*
12541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12542
12543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } 2>conftest.err; then
12548 soname=conftest
12549 lib=conftest
12550 libobjs=conftest.$ac_objext
12551 deplibs=
12552 wl=$lt_prog_compiler_wl_CXX
12553 pic_flag=$lt_prog_compiler_pic_CXX
12554 compiler_flags=-v
12555 linker_flags=-v
12556 verstring=
12557 output_objdir=.
12558 libname=conftest
12559 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12560 allow_undefined_flag_CXX=
12561 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12562 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }
12566 then
12567 archive_cmds_need_lc_CXX=no
12568 else
12569 archive_cmds_need_lc_CXX=yes
12570 fi
12571 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12572 else
12573 cat conftest.err 1>&5
12574 fi
12575 $rm conftest*
12576 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12577 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12578 ;;
12579 esac
12580 fi
12581 ;;
12582 esac
12583
12584 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12585 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12586 library_names_spec=
12587 libname_spec='lib$name'
12588 soname_spec=
12589 shrext_cmds=".so"
12590 postinstall_cmds=
12591 postuninstall_cmds=
12592 finish_cmds=
12593 finish_eval=
12594 shlibpath_var=
12595 shlibpath_overrides_runpath=unknown
12596 version_type=none
12597 dynamic_linker="$host_os ld.so"
12598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12599
12600 need_lib_prefix=unknown
12601 hardcode_into_libs=no
12602
12603 # when you set need_version to no, make sure it does not cause -set_version
12604 # flags to be left without arguments
12605 need_version=unknown
12606
12607 case $host_os in
12608 aix3*)
12609 version_type=linux
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12611 shlibpath_var=LIBPATH
12612
12613 # AIX 3 has no versioning support, so we append a major version to the name.
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 ;;
12616
12617 aix4* | aix5*)
12618 version_type=linux
12619 need_lib_prefix=no
12620 need_version=no
12621 hardcode_into_libs=yes
12622 if test "$host_cpu" = ia64; then
12623 # AIX 5 supports IA64
12624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 else
12627 # With GCC up to 2.95.x, collect2 would create an import file
12628 # for dependence libraries. The import file would start with
12629 # the line `#! .'. This would cause the generated library to
12630 # depend on `.', always an invalid library. This was fixed in
12631 # development snapshots of GCC prior to 3.0.
12632 case $host_os in
12633 aix4 | aix4.[01] | aix4.[01].*)
12634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12635 echo ' yes '
12636 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12637 :
12638 else
12639 can_build_shared=no
12640 fi
12641 ;;
12642 esac
12643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12644 # soname into executable. Probably we can add versioning support to
12645 # collect2, so additional links can be useful in future.
12646 if test "$aix_use_runtimelinking" = yes; then
12647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12648 # instead of lib<name>.a to let people know that these are not
12649 # typical AIX shared libraries.
12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651 else
12652 # We preserve .a as extension for shared libraries through AIX4.2
12653 # and later when we are not doing run time linking.
12654 library_names_spec='${libname}${release}.a $libname.a'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 fi
12657 shlibpath_var=LIBPATH
12658 fi
12659 ;;
12660
12661 amigaos*)
12662 library_names_spec='$libname.ixlibrary $libname.a'
12663 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12664 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'
12665 ;;
12666
12667 beos*)
12668 library_names_spec='${libname}${shared_ext}'
12669 dynamic_linker="$host_os ld.so"
12670 shlibpath_var=LIBRARY_PATH
12671 ;;
12672
12673 bsdi[45]*)
12674 version_type=linux
12675 need_version=no
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12677 soname_spec='${libname}${release}${shared_ext}$major'
12678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12682 # the default ld.so.conf also contains /usr/contrib/lib and
12683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12684 # libtool to hard-code these into programs
12685 ;;
12686
12687 cygwin* | mingw* | pw32*)
12688 version_type=windows
12689 shrext_cmds=".dll"
12690 need_version=no
12691 need_lib_prefix=no
12692
12693 case $GCC,$host_os in
12694 yes,cygwin* | yes,mingw* | yes,pw32*)
12695 library_names_spec='$libname.dll.a'
12696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12697 postinstall_cmds='base_file=`basename \${file}`~
12698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12699 dldir=$destdir/`dirname \$dlpath`~
12700 test -d \$dldir || mkdir -p \$dldir~
12701 $install_prog $dir/$dlname \$dldir/$dlname~
12702 chmod a+x \$dldir/$dlname'
12703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12704 dlpath=$dir/\$dldll~
12705 $rm \$dlpath'
12706 shlibpath_overrides_runpath=yes
12707
12708 case $host_os in
12709 cygwin*)
12710 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12713 ;;
12714 mingw*)
12715 # MinGW DLLs use traditional 'lib' prefix
12716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12718 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12719 # It is most probably a Windows format PATH printed by
12720 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12721 # path with ; separators, and with drive letters. We can handle the
12722 # drive letters (cygwin fileutils understands them), so leave them,
12723 # especially as we might pass files found there to a mingw objdump,
12724 # which wouldn't understand a cygwinified path. Ahh.
12725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12726 else
12727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12728 fi
12729 ;;
12730 pw32*)
12731 # pw32 DLLs use 'pw' prefix rather than 'lib'
12732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12733 ;;
12734 esac
12735 ;;
12736
12737 *)
12738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12739 ;;
12740 esac
12741 dynamic_linker='Win32 ld.exe'
12742 # FIXME: first we should search . and the directory the executable is in
12743 shlibpath_var=PATH
12744 ;;
12745
12746 darwin* | rhapsody*)
12747 dynamic_linker="$host_os dyld"
12748 version_type=darwin
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12752 soname_spec='${libname}${release}${major}$shared_ext'
12753 shlibpath_overrides_runpath=yes
12754 shlibpath_var=DYLD_LIBRARY_PATH
12755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12756
12757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12758 ;;
12759
12760 dgux*)
12761 version_type=linux
12762 need_lib_prefix=no
12763 need_version=no
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12765 soname_spec='${libname}${release}${shared_ext}$major'
12766 shlibpath_var=LD_LIBRARY_PATH
12767 ;;
12768
12769 freebsd1*)
12770 dynamic_linker=no
12771 ;;
12772
12773 freebsd* | dragonfly*)
12774 # DragonFly does not have aout. When/if they implement a new
12775 # versioning mechanism, adjust this.
12776 if test -x /usr/bin/objformat; then
12777 objformat=`/usr/bin/objformat`
12778 else
12779 case $host_os in
12780 freebsd[123]*) objformat=aout ;;
12781 *) objformat=elf ;;
12782 esac
12783 fi
12784 version_type=freebsd-$objformat
12785 case $version_type in
12786 freebsd-elf*)
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12788 need_version=no
12789 need_lib_prefix=no
12790 ;;
12791 freebsd-*)
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12793 need_version=yes
12794 ;;
12795 esac
12796 shlibpath_var=LD_LIBRARY_PATH
12797 case $host_os in
12798 freebsd2*)
12799 shlibpath_overrides_runpath=yes
12800 ;;
12801 freebsd3.[01]* | freebsdelf3.[01]*)
12802 shlibpath_overrides_runpath=yes
12803 hardcode_into_libs=yes
12804 ;;
12805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12807 shlibpath_overrides_runpath=no
12808 hardcode_into_libs=yes
12809 ;;
12810 *) # from 4.6 on, and DragonFly
12811 shlibpath_overrides_runpath=yes
12812 hardcode_into_libs=yes
12813 ;;
12814 esac
12815 ;;
12816
12817 gnu*)
12818 version_type=linux
12819 need_lib_prefix=no
12820 need_version=no
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 hardcode_into_libs=yes
12825 ;;
12826
12827 hpux9* | hpux10* | hpux11*)
12828 # Give a soname corresponding to the major version so that dld.sl refuses to
12829 # link against other versions.
12830 version_type=sunos
12831 need_lib_prefix=no
12832 need_version=no
12833 case $host_cpu in
12834 ia64*)
12835 shrext_cmds='.so'
12836 hardcode_into_libs=yes
12837 dynamic_linker="$host_os dld.so"
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 if test "X$HPUX_IA64_MODE" = X32; then
12843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12844 else
12845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12846 fi
12847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 ;;
12849 hppa*64*)
12850 shrext_cmds='.sl'
12851 hardcode_into_libs=yes
12852 dynamic_linker="$host_os dld.sl"
12853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12859 ;;
12860 *)
12861 shrext_cmds='.sl'
12862 dynamic_linker="$host_os dld.sl"
12863 shlibpath_var=SHLIB_PATH
12864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 ;;
12868 esac
12869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12870 postinstall_cmds='chmod 555 $lib'
12871 ;;
12872
12873 interix[3-9]*)
12874 version_type=linux
12875 need_lib_prefix=no
12876 need_version=no
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=no
12882 hardcode_into_libs=yes
12883 ;;
12884
12885 irix5* | irix6* | nonstopux*)
12886 case $host_os in
12887 nonstopux*) version_type=nonstopux ;;
12888 *)
12889 if test "$lt_cv_prog_gnu_ld" = yes; then
12890 version_type=linux
12891 else
12892 version_type=irix
12893 fi ;;
12894 esac
12895 need_lib_prefix=no
12896 need_version=no
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12899 case $host_os in
12900 irix5* | nonstopux*)
12901 libsuff= shlibsuff=
12902 ;;
12903 *)
12904 case $LD in # libtool.m4 will add one of these switches to LD
12905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12906 libsuff= shlibsuff= libmagic=32-bit;;
12907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12908 libsuff=32 shlibsuff=N32 libmagic=N32;;
12909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12911 *) libsuff= shlibsuff= libmagic=never-match;;
12912 esac
12913 ;;
12914 esac
12915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12916 shlibpath_overrides_runpath=no
12917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12919 hardcode_into_libs=yes
12920 ;;
12921
12922 # No shared lib support for Linux oldld, aout, or coff.
12923 linux*oldld* | linux*aout* | linux*coff*)
12924 dynamic_linker=no
12925 ;;
12926
12927 # This must be Linux ELF.
12928 linux* | k*bsd*-gnu)
12929 version_type=linux
12930 need_lib_prefix=no
12931 need_version=no
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12935 shlibpath_var=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath=no
12937 # This implies no fast_install, which is unacceptable.
12938 # Some rework will be needed to allow for fast_install
12939 # before this can be enabled.
12940 hardcode_into_libs=yes
12941
12942 # Append ld.so.conf contents to the search path
12943 if test -f /etc/ld.so.conf; then
12944 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12946 fi
12947
12948 # We used to test for /lib/ld.so.1 and disable shared libraries on
12949 # powerpc, because MkLinux only supported shared libraries with the
12950 # GNU dynamic linker. Since this was broken with cross compilers,
12951 # most powerpc-linux boxes support dynamic linking these days and
12952 # people can always --disable-shared, the test was removed, and we
12953 # assume the GNU/Linux dynamic linker is in use.
12954 dynamic_linker='GNU/Linux ld.so'
12955 ;;
12956
12957 netbsd*)
12958 version_type=sunos
12959 need_lib_prefix=no
12960 need_version=no
12961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12964 dynamic_linker='NetBSD (a.out) ld.so'
12965 else
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 dynamic_linker='NetBSD ld.elf_so'
12969 fi
12970 shlibpath_var=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath=yes
12972 hardcode_into_libs=yes
12973 ;;
12974
12975 newsos6)
12976 version_type=linux
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=yes
12980 ;;
12981
12982 nto-qnx*)
12983 version_type=linux
12984 need_lib_prefix=no
12985 need_version=no
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=yes
12990 ;;
12991
12992 openbsd*)
12993 version_type=sunos
12994 sys_lib_dlsearch_path_spec="/usr/lib"
12995 need_lib_prefix=no
12996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12997 case $host_os in
12998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12999 *) need_version=no ;;
13000 esac
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13005 case $host_os in
13006 openbsd2.[89] | openbsd2.[89].*)
13007 shlibpath_overrides_runpath=no
13008 ;;
13009 *)
13010 shlibpath_overrides_runpath=yes
13011 ;;
13012 esac
13013 else
13014 shlibpath_overrides_runpath=yes
13015 fi
13016 ;;
13017
13018 os2*)
13019 libname_spec='$name'
13020 shrext_cmds=".dll"
13021 need_lib_prefix=no
13022 library_names_spec='$libname${shared_ext} $libname.a'
13023 dynamic_linker='OS/2 ld.exe'
13024 shlibpath_var=LIBPATH
13025 ;;
13026
13027 osf3* | osf4* | osf5*)
13028 version_type=osf
13029 need_lib_prefix=no
13030 need_version=no
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13036 ;;
13037
13038 rdos*)
13039 dynamic_linker=no
13040 ;;
13041
13042 solaris*)
13043 version_type=linux
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 hardcode_into_libs=yes
13051 # ldd complains unless libraries are executable
13052 postinstall_cmds='chmod +x $lib'
13053 ;;
13054
13055 sunos4*)
13056 version_type=sunos
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13058 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13061 if test "$with_gnu_ld" = yes; then
13062 need_lib_prefix=no
13063 fi
13064 need_version=yes
13065 ;;
13066
13067 sysv4 | sysv4.3*)
13068 version_type=linux
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13071 shlibpath_var=LD_LIBRARY_PATH
13072 case $host_vendor in
13073 sni)
13074 shlibpath_overrides_runpath=no
13075 need_lib_prefix=no
13076 export_dynamic_flag_spec='${wl}-Blargedynsym'
13077 runpath_var=LD_RUN_PATH
13078 ;;
13079 siemens)
13080 need_lib_prefix=no
13081 ;;
13082 motorola)
13083 need_lib_prefix=no
13084 need_version=no
13085 shlibpath_overrides_runpath=no
13086 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13087 ;;
13088 esac
13089 ;;
13090
13091 sysv4*MP*)
13092 if test -d /usr/nec ;then
13093 version_type=linux
13094 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13095 soname_spec='$libname${shared_ext}.$major'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 fi
13098 ;;
13099
13100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13101 version_type=freebsd-elf
13102 need_lib_prefix=no
13103 need_version=no
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 hardcode_into_libs=yes
13108 if test "$with_gnu_ld" = yes; then
13109 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13110 shlibpath_overrides_runpath=no
13111 else
13112 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13113 shlibpath_overrides_runpath=yes
13114 case $host_os in
13115 sco3.2v5*)
13116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13117 ;;
13118 esac
13119 fi
13120 sys_lib_dlsearch_path_spec='/usr/lib'
13121 ;;
13122
13123 uts4*)
13124 version_type=linux
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 ;;
13129
13130 *)
13131 dynamic_linker=no
13132 ;;
13133 esac
13134 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13135 echo "${ECHO_T}$dynamic_linker" >&6; }
13136 test "$dynamic_linker" = no && can_build_shared=no
13137
13138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13139 if test "$GCC" = yes; then
13140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13141 fi
13142
13143 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13145 hardcode_action_CXX=
13146 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13147 test -n "$runpath_var_CXX" || \
13148 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13149
13150 # We can hardcode non-existant directories.
13151 if test "$hardcode_direct_CXX" != no &&
13152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13153 # have to relink, otherwise we might link with an installed library
13154 # when we should be linking with a yet-to-be-installed one
13155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13156 test "$hardcode_minus_L_CXX" != no; then
13157 # Linking always hardcodes the temporary library directory.
13158 hardcode_action_CXX=relink
13159 else
13160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13161 hardcode_action_CXX=immediate
13162 fi
13163 else
13164 # We cannot hardcode anything, or else we can only hardcode existing
13165 # directories.
13166 hardcode_action_CXX=unsupported
13167 fi
13168 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13169 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13170
13171 if test "$hardcode_action_CXX" = relink; then
13172 # Fast installation is not supported
13173 enable_fast_install=no
13174 elif test "$shlibpath_overrides_runpath" = yes ||
13175 test "$enable_shared" = no; then
13176 # Fast installation is not necessary
13177 enable_fast_install=needless
13178 fi
13179
13180
13181 # The else clause should only fire when bootstrapping the
13182 # libtool distribution, otherwise you forgot to ship ltmain.sh
13183 # with your package, and you will get complaints that there are
13184 # no rules to generate ltmain.sh.
13185 if test -f "$ltmain"; then
13186 # See if we are running on zsh, and set the options which allow our commands through
13187 # without removal of \ escapes.
13188 if test -n "${ZSH_VERSION+set}" ; then
13189 setopt NO_GLOB_SUBST
13190 fi
13191 # Now quote all the things that may contain metacharacters while being
13192 # careful not to overquote the AC_SUBSTed values. We take copies of the
13193 # variables and quote the copies for generation of the libtool script.
13194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13195 SED SHELL STRIP \
13196 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13197 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13198 deplibs_check_method reload_flag reload_cmds need_locks \
13199 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13200 lt_cv_sys_global_symbol_to_c_name_address \
13201 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13202 old_postinstall_cmds old_postuninstall_cmds \
13203 compiler_CXX \
13204 CC_CXX \
13205 LD_CXX \
13206 lt_prog_compiler_wl_CXX \
13207 lt_prog_compiler_pic_CXX \
13208 lt_prog_compiler_static_CXX \
13209 lt_prog_compiler_no_builtin_flag_CXX \
13210 export_dynamic_flag_spec_CXX \
13211 thread_safe_flag_spec_CXX \
13212 whole_archive_flag_spec_CXX \
13213 enable_shared_with_static_runtimes_CXX \
13214 old_archive_cmds_CXX \
13215 old_archive_from_new_cmds_CXX \
13216 predep_objects_CXX \
13217 postdep_objects_CXX \
13218 predeps_CXX \
13219 postdeps_CXX \
13220 compiler_lib_search_path_CXX \
13221 archive_cmds_CXX \
13222 archive_expsym_cmds_CXX \
13223 postinstall_cmds_CXX \
13224 postuninstall_cmds_CXX \
13225 old_archive_from_expsyms_cmds_CXX \
13226 allow_undefined_flag_CXX \
13227 no_undefined_flag_CXX \
13228 export_symbols_cmds_CXX \
13229 hardcode_libdir_flag_spec_CXX \
13230 hardcode_libdir_flag_spec_ld_CXX \
13231 hardcode_libdir_separator_CXX \
13232 hardcode_automatic_CXX \
13233 module_cmds_CXX \
13234 module_expsym_cmds_CXX \
13235 lt_cv_prog_compiler_c_o_CXX \
13236 fix_srcfile_path_CXX \
13237 exclude_expsyms_CXX \
13238 include_expsyms_CXX; do
13239
13240 case $var in
13241 old_archive_cmds_CXX | \
13242 old_archive_from_new_cmds_CXX | \
13243 archive_cmds_CXX | \
13244 archive_expsym_cmds_CXX | \
13245 module_cmds_CXX | \
13246 module_expsym_cmds_CXX | \
13247 old_archive_from_expsyms_cmds_CXX | \
13248 export_symbols_cmds_CXX | \
13249 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13250 postinstall_cmds | postuninstall_cmds | \
13251 old_postinstall_cmds | old_postuninstall_cmds | \
13252 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13253 # Double-quote double-evaled strings.
13254 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13255 ;;
13256 *)
13257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13258 ;;
13259 esac
13260 done
13261
13262 case $lt_echo in
13263 *'\$0 --fallback-echo"')
13264 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13265 ;;
13266 esac
13267
13268 cfgfile="$ofile"
13269
13270 cat <<__EOF__ >> "$cfgfile"
13271 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13272
13273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13274
13275 # Shell to use when invoking shell scripts.
13276 SHELL=$lt_SHELL
13277
13278 # Whether or not to build shared libraries.
13279 build_libtool_libs=$enable_shared
13280
13281 # Whether or not to build static libraries.
13282 build_old_libs=$enable_static
13283
13284 # Whether or not to add -lc for building shared libraries.
13285 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13286
13287 # Whether or not to disallow shared libs when runtime libs are static
13288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13289
13290 # Whether or not to optimize for fast installation.
13291 fast_install=$enable_fast_install
13292
13293 # The host system.
13294 host_alias=$host_alias
13295 host=$host
13296 host_os=$host_os
13297
13298 # The build system.
13299 build_alias=$build_alias
13300 build=$build
13301 build_os=$build_os
13302
13303 # An echo program that does not interpret backslashes.
13304 echo=$lt_echo
13305
13306 # The archiver.
13307 AR=$lt_AR
13308 AR_FLAGS=$lt_AR_FLAGS
13309
13310 # A C compiler.
13311 LTCC=$lt_LTCC
13312
13313 # LTCC compiler flags.
13314 LTCFLAGS=$lt_LTCFLAGS
13315
13316 # A language-specific compiler.
13317 CC=$lt_compiler_CXX
13318
13319 # Is the compiler the GNU C compiler?
13320 with_gcc=$GCC_CXX
13321
13322 # An ERE matcher.
13323 EGREP=$lt_EGREP
13324
13325 # The linker used to build libraries.
13326 LD=$lt_LD_CXX
13327
13328 # Whether we need hard or soft links.
13329 LN_S=$lt_LN_S
13330
13331 # A BSD-compatible nm program.
13332 NM=$lt_NM
13333
13334 # A symbol stripping program
13335 STRIP=$lt_STRIP
13336
13337 # Used to examine libraries when file_magic_cmd begins "file"
13338 MAGIC_CMD=$MAGIC_CMD
13339
13340 # Used on cygwin: DLL creation program.
13341 DLLTOOL="$DLLTOOL"
13342
13343 # Used on cygwin: object dumper.
13344 OBJDUMP="$OBJDUMP"
13345
13346 # Used on cygwin: assembler.
13347 AS="$AS"
13348
13349 # The name of the directory that contains temporary libtool files.
13350 objdir=$objdir
13351
13352 # How to create reloadable object files.
13353 reload_flag=$lt_reload_flag
13354 reload_cmds=$lt_reload_cmds
13355
13356 # How to pass a linker flag through the compiler.
13357 wl=$lt_lt_prog_compiler_wl_CXX
13358
13359 # Object file suffix (normally "o").
13360 objext="$ac_objext"
13361
13362 # Old archive suffix (normally "a").
13363 libext="$libext"
13364
13365 # Shared library suffix (normally ".so").
13366 shrext_cmds='$shrext_cmds'
13367
13368 # Executable file suffix (normally "").
13369 exeext="$exeext"
13370
13371 # Additional compiler flags for building library objects.
13372 pic_flag=$lt_lt_prog_compiler_pic_CXX
13373 pic_mode=$pic_mode
13374
13375 # What is the maximum length of a command?
13376 max_cmd_len=$lt_cv_sys_max_cmd_len
13377
13378 # Does compiler simultaneously support -c and -o options?
13379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13380
13381 # Must we lock files when doing compilation?
13382 need_locks=$lt_need_locks
13383
13384 # Do we need the lib prefix for modules?
13385 need_lib_prefix=$need_lib_prefix
13386
13387 # Do we need a version for libraries?
13388 need_version=$need_version
13389
13390 # Whether dlopen is supported.
13391 dlopen_support=$enable_dlopen
13392
13393 # Whether dlopen of programs is supported.
13394 dlopen_self=$enable_dlopen_self
13395
13396 # Whether dlopen of statically linked programs is supported.
13397 dlopen_self_static=$enable_dlopen_self_static
13398
13399 # Compiler flag to prevent dynamic linking.
13400 link_static_flag=$lt_lt_prog_compiler_static_CXX
13401
13402 # Compiler flag to turn off builtin functions.
13403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13404
13405 # Compiler flag to allow reflexive dlopens.
13406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13407
13408 # Compiler flag to generate shared objects directly from archives.
13409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13410
13411 # Compiler flag to generate thread-safe objects.
13412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13413
13414 # Library versioning type.
13415 version_type=$version_type
13416
13417 # Format of library name prefix.
13418 libname_spec=$lt_libname_spec
13419
13420 # List of archive names. First name is the real one, the rest are links.
13421 # The last name is the one that the linker finds with -lNAME.
13422 library_names_spec=$lt_library_names_spec
13423
13424 # The coded name of the library, if different from the real name.
13425 soname_spec=$lt_soname_spec
13426
13427 # Commands used to build and install an old-style archive.
13428 RANLIB=$lt_RANLIB
13429 old_archive_cmds=$lt_old_archive_cmds_CXX
13430 old_postinstall_cmds=$lt_old_postinstall_cmds
13431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13432
13433 # Create an old-style archive from a shared archive.
13434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13435
13436 # Create a temporary old-style archive to link instead of a shared archive.
13437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13438
13439 # Commands used to build and install a shared archive.
13440 archive_cmds=$lt_archive_cmds_CXX
13441 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13442 postinstall_cmds=$lt_postinstall_cmds
13443 postuninstall_cmds=$lt_postuninstall_cmds
13444
13445 # Commands used to build a loadable module (assumed same as above if empty)
13446 module_cmds=$lt_module_cmds_CXX
13447 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13448
13449 # Commands to strip libraries.
13450 old_striplib=$lt_old_striplib
13451 striplib=$lt_striplib
13452
13453 # Dependencies to place before the objects being linked to create a
13454 # shared library.
13455 predep_objects=$lt_predep_objects_CXX
13456
13457 # Dependencies to place after the objects being linked to create a
13458 # shared library.
13459 postdep_objects=$lt_postdep_objects_CXX
13460
13461 # Dependencies to place before the objects being linked to create a
13462 # shared library.
13463 predeps=$lt_predeps_CXX
13464
13465 # Dependencies to place after the objects being linked to create a
13466 # shared library.
13467 postdeps=$lt_postdeps_CXX
13468
13469 # The library search path used internally by the compiler when linking
13470 # a shared library.
13471 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13472
13473 # Method to check whether dependent libraries are shared objects.
13474 deplibs_check_method=$lt_deplibs_check_method
13475
13476 # Command to use when deplibs_check_method == file_magic.
13477 file_magic_cmd=$lt_file_magic_cmd
13478
13479 # Flag that allows shared libraries with undefined symbols to be built.
13480 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13481
13482 # Flag that forces no undefined symbols.
13483 no_undefined_flag=$lt_no_undefined_flag_CXX
13484
13485 # Commands used to finish a libtool library installation in a directory.
13486 finish_cmds=$lt_finish_cmds
13487
13488 # Same as above, but a single script fragment to be evaled but not shown.
13489 finish_eval=$lt_finish_eval
13490
13491 # Take the output of nm and produce a listing of raw symbols and C names.
13492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13493
13494 # Transform the output of nm in a proper C declaration
13495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13496
13497 # Transform the output of nm in a C name address pair
13498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13499
13500 # This is the shared library runtime path variable.
13501 runpath_var=$runpath_var
13502
13503 # This is the shared library path variable.
13504 shlibpath_var=$shlibpath_var
13505
13506 # Is shlibpath searched before the hard-coded library search path?
13507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13508
13509 # How to hardcode a shared library path into an executable.
13510 hardcode_action=$hardcode_action_CXX
13511
13512 # Whether we should hardcode library paths into libraries.
13513 hardcode_into_libs=$hardcode_into_libs
13514
13515 # Flag to hardcode \$libdir into a binary during linking.
13516 # This must work even if \$libdir does not exist.
13517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13518
13519 # If ld is used when linking, flag to hardcode \$libdir into
13520 # a binary during linking. This must work even if \$libdir does
13521 # not exist.
13522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13523
13524 # Whether we need a single -rpath flag with a separated argument.
13525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13526
13527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13528 # resulting binary.
13529 hardcode_direct=$hardcode_direct_CXX
13530
13531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13532 # resulting binary.
13533 hardcode_minus_L=$hardcode_minus_L_CXX
13534
13535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13536 # the resulting binary.
13537 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13538
13539 # Set to yes if building a shared library automatically hardcodes DIR into the library
13540 # and all subsequent libraries and executables linked against it.
13541 hardcode_automatic=$hardcode_automatic_CXX
13542
13543 # Variables whose values should be saved in libtool wrapper scripts and
13544 # restored at relink time.
13545 variables_saved_for_relink="$variables_saved_for_relink"
13546
13547 # Whether libtool must link a program against all its dependency libraries.
13548 link_all_deplibs=$link_all_deplibs_CXX
13549
13550 # Compile-time system search path for libraries
13551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13552
13553 # Run-time system search path for libraries
13554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13555
13556 # Fix the shell variable \$srcfile for the compiler.
13557 fix_srcfile_path=$lt_fix_srcfile_path
13558
13559 # Set to yes if exported symbols are required.
13560 always_export_symbols=$always_export_symbols_CXX
13561
13562 # The commands to list exported symbols.
13563 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13564
13565 # The commands to extract the exported symbol list from a shared archive.
13566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13567
13568 # Symbols that should not be listed in the preloaded symbols.
13569 exclude_expsyms=$lt_exclude_expsyms_CXX
13570
13571 # Symbols that must always be exported.
13572 include_expsyms=$lt_include_expsyms_CXX
13573
13574 # ### END LIBTOOL TAG CONFIG: $tagname
13575
13576 __EOF__
13577
13578
13579 else
13580 # If there is no Makefile yet, we rely on a make rule to execute
13581 # `config.status --recheck' to rerun these tests and create the
13582 # libtool script then.
13583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13584 if test -f "$ltmain_in"; then
13585 test -f Makefile && make "$ltmain"
13586 fi
13587 fi
13588
13589
13590 ac_ext=c
13591 ac_cpp='$CPP $CPPFLAGS'
13592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13595
13596 CC=$lt_save_CC
13597 LDCXX=$LD
13598 LD=$lt_save_LD
13599 GCC=$lt_save_GCC
13600 with_gnu_ldcxx=$with_gnu_ld
13601 with_gnu_ld=$lt_save_with_gnu_ld
13602 lt_cv_path_LDCXX=$lt_cv_path_LD
13603 lt_cv_path_LD=$lt_save_path_LD
13604 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13605 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13606
13607 else
13608 tagname=""
13609 fi
13610 ;;
13611
13612 F77)
13613 if test -n "$F77" && test "X$F77" != "Xno"; then
13614
13615 ac_ext=f
13616 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13617 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13618 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13619
13620
13621 archive_cmds_need_lc_F77=no
13622 allow_undefined_flag_F77=
13623 always_export_symbols_F77=no
13624 archive_expsym_cmds_F77=
13625 export_dynamic_flag_spec_F77=
13626 hardcode_direct_F77=no
13627 hardcode_libdir_flag_spec_F77=
13628 hardcode_libdir_flag_spec_ld_F77=
13629 hardcode_libdir_separator_F77=
13630 hardcode_minus_L_F77=no
13631 hardcode_automatic_F77=no
13632 module_cmds_F77=
13633 module_expsym_cmds_F77=
13634 link_all_deplibs_F77=unknown
13635 old_archive_cmds_F77=$old_archive_cmds
13636 no_undefined_flag_F77=
13637 whole_archive_flag_spec_F77=
13638 enable_shared_with_static_runtimes_F77=no
13639
13640 # Source file extension for f77 test sources.
13641 ac_ext=f
13642
13643 # Object file extension for compiled f77 test sources.
13644 objext=o
13645 objext_F77=$objext
13646
13647 # Code to be used in simple compile tests
13648 lt_simple_compile_test_code="\
13649 subroutine t
13650 return
13651 end
13652 "
13653
13654 # Code to be used in simple link tests
13655 lt_simple_link_test_code="\
13656 program t
13657 end
13658 "
13659
13660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13661
13662 # If no C compiler was specified, use CC.
13663 LTCC=${LTCC-"$CC"}
13664
13665 # If no C compiler flags were specified, use CFLAGS.
13666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13667
13668 # Allow CC to be a program name with arguments.
13669 compiler=$CC
13670
13671
13672 # save warnings/boilerplate of simple test code
13673 ac_outfile=conftest.$ac_objext
13674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13676 _lt_compiler_boilerplate=`cat conftest.err`
13677 $rm conftest*
13678
13679 ac_outfile=conftest.$ac_objext
13680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13682 _lt_linker_boilerplate=`cat conftest.err`
13683 $rm conftest*
13684
13685
13686 # Allow CC to be a program name with arguments.
13687 lt_save_CC="$CC"
13688 CC=${F77-"f77"}
13689 compiler=$CC
13690 compiler_F77=$CC
13691 for cc_temp in $compiler""; do
13692 case $cc_temp in
13693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13695 \-*) ;;
13696 *) break;;
13697 esac
13698 done
13699 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13700
13701
13702 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13703 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13704 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13705 echo "${ECHO_T}$can_build_shared" >&6; }
13706
13707 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13708 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13709 test "$can_build_shared" = "no" && enable_shared=no
13710
13711 # On AIX, shared libraries and static libraries use the same namespace, and
13712 # are all built from PIC.
13713 case $host_os in
13714 aix3*)
13715 test "$enable_shared" = yes && enable_static=no
13716 if test -n "$RANLIB"; then
13717 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13718 postinstall_cmds='$RANLIB $lib'
13719 fi
13720 ;;
13721 aix4* | aix5*)
13722 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13723 test "$enable_shared" = yes && enable_static=no
13724 fi
13725 ;;
13726 esac
13727 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13728 echo "${ECHO_T}$enable_shared" >&6; }
13729
13730 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13731 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13732 # Make sure either enable_shared or enable_static is yes.
13733 test "$enable_shared" = yes || enable_static=yes
13734 { echo "$as_me:$LINENO: result: $enable_static" >&5
13735 echo "${ECHO_T}$enable_static" >&6; }
13736
13737 GCC_F77="$G77"
13738 LD_F77="$LD"
13739
13740 lt_prog_compiler_wl_F77=
13741 lt_prog_compiler_pic_F77=
13742 lt_prog_compiler_static_F77=
13743
13744 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13746
13747 if test "$GCC" = yes; then
13748 lt_prog_compiler_wl_F77='-Wl,'
13749 lt_prog_compiler_static_F77='-static'
13750
13751 case $host_os in
13752 aix*)
13753 # All AIX code is PIC.
13754 if test "$host_cpu" = ia64; then
13755 # AIX 5 now supports IA64 processor
13756 lt_prog_compiler_static_F77='-Bstatic'
13757 fi
13758 ;;
13759
13760 amigaos*)
13761 # FIXME: we need at least 68020 code to build shared libraries, but
13762 # adding the `-m68020' flag to GCC prevents building anything better,
13763 # like `-m68040'.
13764 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13765 ;;
13766
13767 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13768 # PIC is the default for these OSes.
13769 ;;
13770
13771 mingw* | cygwin* | pw32* | os2*)
13772 # This hack is so that the source file can tell whether it is being
13773 # built for inclusion in a dll (and should export symbols for example).
13774 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13775 # (--disable-auto-import) libraries
13776 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13777 ;;
13778
13779 darwin* | rhapsody*)
13780 # PIC is the default on this platform
13781 # Common symbols not allowed in MH_DYLIB files
13782 lt_prog_compiler_pic_F77='-fno-common'
13783 ;;
13784
13785 interix[3-9]*)
13786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13787 # Instead, we relocate shared libraries at runtime.
13788 ;;
13789
13790 msdosdjgpp*)
13791 # Just because we use GCC doesn't mean we suddenly get shared libraries
13792 # on systems that don't support them.
13793 lt_prog_compiler_can_build_shared_F77=no
13794 enable_shared=no
13795 ;;
13796
13797 sysv4*MP*)
13798 if test -d /usr/nec; then
13799 lt_prog_compiler_pic_F77=-Kconform_pic
13800 fi
13801 ;;
13802
13803 hpux*)
13804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13805 # not for PA HP-UX.
13806 case $host_cpu in
13807 hppa*64*|ia64*)
13808 # +Z the default
13809 ;;
13810 *)
13811 lt_prog_compiler_pic_F77='-fPIC'
13812 ;;
13813 esac
13814 ;;
13815
13816 *)
13817 lt_prog_compiler_pic_F77='-fPIC'
13818 ;;
13819 esac
13820 else
13821 # PORTME Check for flag to pass linker flags through the system compiler.
13822 case $host_os in
13823 aix*)
13824 lt_prog_compiler_wl_F77='-Wl,'
13825 if test "$host_cpu" = ia64; then
13826 # AIX 5 now supports IA64 processor
13827 lt_prog_compiler_static_F77='-Bstatic'
13828 else
13829 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13830 fi
13831 ;;
13832 darwin*)
13833 # PIC is the default on this platform
13834 # Common symbols not allowed in MH_DYLIB files
13835 case $cc_basename in
13836 xlc*)
13837 lt_prog_compiler_pic_F77='-qnocommon'
13838 lt_prog_compiler_wl_F77='-Wl,'
13839 ;;
13840 esac
13841 ;;
13842
13843 mingw* | cygwin* | pw32* | os2*)
13844 # This hack is so that the source file can tell whether it is being
13845 # built for inclusion in a dll (and should export symbols for example).
13846 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13847 ;;
13848
13849 hpux9* | hpux10* | hpux11*)
13850 lt_prog_compiler_wl_F77='-Wl,'
13851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13852 # not for PA HP-UX.
13853 case $host_cpu in
13854 hppa*64*|ia64*)
13855 # +Z the default
13856 ;;
13857 *)
13858 lt_prog_compiler_pic_F77='+Z'
13859 ;;
13860 esac
13861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13862 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13863 ;;
13864
13865 irix5* | irix6* | nonstopux*)
13866 lt_prog_compiler_wl_F77='-Wl,'
13867 # PIC (with -KPIC) is the default.
13868 lt_prog_compiler_static_F77='-non_shared'
13869 ;;
13870
13871 newsos6)
13872 lt_prog_compiler_pic_F77='-KPIC'
13873 lt_prog_compiler_static_F77='-Bstatic'
13874 ;;
13875
13876 linux* | k*bsd*-gnu)
13877 case $cc_basename in
13878 icc* | ecc*)
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-static'
13882 ;;
13883 pgcc* | pgf77* | pgf90* | pgf95*)
13884 # Portland Group compilers (*not* the Pentium gcc compiler,
13885 # which looks to be a dead project)
13886 lt_prog_compiler_wl_F77='-Wl,'
13887 lt_prog_compiler_pic_F77='-fpic'
13888 lt_prog_compiler_static_F77='-Bstatic'
13889 ;;
13890 ccc*)
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 # All Alpha code is PIC.
13893 lt_prog_compiler_static_F77='-non_shared'
13894 ;;
13895 *)
13896 case `$CC -V 2>&1 | sed 5q` in
13897 *Sun\ C*)
13898 # Sun C 5.9
13899 lt_prog_compiler_pic_F77='-KPIC'
13900 lt_prog_compiler_static_F77='-Bstatic'
13901 lt_prog_compiler_wl_F77='-Wl,'
13902 ;;
13903 *Sun\ F*)
13904 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13905 lt_prog_compiler_pic_F77='-KPIC'
13906 lt_prog_compiler_static_F77='-Bstatic'
13907 lt_prog_compiler_wl_F77=''
13908 ;;
13909 esac
13910 ;;
13911 esac
13912 ;;
13913
13914 osf3* | osf4* | osf5*)
13915 lt_prog_compiler_wl_F77='-Wl,'
13916 # All OSF/1 code is PIC.
13917 lt_prog_compiler_static_F77='-non_shared'
13918 ;;
13919
13920 rdos*)
13921 lt_prog_compiler_static_F77='-non_shared'
13922 ;;
13923
13924 solaris*)
13925 lt_prog_compiler_pic_F77='-KPIC'
13926 lt_prog_compiler_static_F77='-Bstatic'
13927 case $cc_basename in
13928 f77* | f90* | f95*)
13929 lt_prog_compiler_wl_F77='-Qoption ld ';;
13930 *)
13931 lt_prog_compiler_wl_F77='-Wl,';;
13932 esac
13933 ;;
13934
13935 sunos4*)
13936 lt_prog_compiler_wl_F77='-Qoption ld '
13937 lt_prog_compiler_pic_F77='-PIC'
13938 lt_prog_compiler_static_F77='-Bstatic'
13939 ;;
13940
13941 sysv4 | sysv4.2uw2* | sysv4.3*)
13942 lt_prog_compiler_wl_F77='-Wl,'
13943 lt_prog_compiler_pic_F77='-KPIC'
13944 lt_prog_compiler_static_F77='-Bstatic'
13945 ;;
13946
13947 sysv4*MP*)
13948 if test -d /usr/nec ;then
13949 lt_prog_compiler_pic_F77='-Kconform_pic'
13950 lt_prog_compiler_static_F77='-Bstatic'
13951 fi
13952 ;;
13953
13954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13955 lt_prog_compiler_wl_F77='-Wl,'
13956 lt_prog_compiler_pic_F77='-KPIC'
13957 lt_prog_compiler_static_F77='-Bstatic'
13958 ;;
13959
13960 unicos*)
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 lt_prog_compiler_can_build_shared_F77=no
13963 ;;
13964
13965 uts4*)
13966 lt_prog_compiler_pic_F77='-pic'
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 ;;
13969
13970 *)
13971 lt_prog_compiler_can_build_shared_F77=no
13972 ;;
13973 esac
13974 fi
13975
13976 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13977 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13978
13979 #
13980 # Check to make sure the PIC flag actually works.
13981 #
13982 if test -n "$lt_prog_compiler_pic_F77"; then
13983
13984 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13985 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13986 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989 lt_prog_compiler_pic_works_F77=no
13990 ac_outfile=conftest.$ac_objext
13991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13992 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13993 # Insert the option either (1) after the last *FLAGS variable, or
13994 # (2) before a word containing "conftest.", or (3) at the end.
13995 # Note that $ac_compile itself does not contain backslashes and begins
13996 # with a dollar sign (not a hyphen), so the echo should work correctly.
13997 # The option is referenced via a variable to avoid confusing sed.
13998 lt_compile=`echo "$ac_compile" | $SED \
13999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14001 -e 's:$: $lt_compiler_flag:'`
14002 (eval echo "\"\$as_me:14002: $lt_compile\"" >&5)
14003 (eval "$lt_compile" 2>conftest.err)
14004 ac_status=$?
14005 cat conftest.err >&5
14006 echo "$as_me:14006: \$? = $ac_status" >&5
14007 if (exit $ac_status) && test -s "$ac_outfile"; then
14008 # The compiler can only warn and ignore the option if not recognized
14009 # So say no if there are warnings other than the usual output.
14010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14013 lt_prog_compiler_pic_works_F77=yes
14014 fi
14015 fi
14016 $rm conftest*
14017
14018 fi
14019 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14020 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14021
14022 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14023 case $lt_prog_compiler_pic_F77 in
14024 "" | " "*) ;;
14025 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14026 esac
14027 else
14028 lt_prog_compiler_pic_F77=
14029 lt_prog_compiler_can_build_shared_F77=no
14030 fi
14031
14032 fi
14033 case $host_os in
14034 # For platforms which do not support PIC, -DPIC is meaningless:
14035 *djgpp*)
14036 lt_prog_compiler_pic_F77=
14037 ;;
14038 *)
14039 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14040 ;;
14041 esac
14042
14043 #
14044 # Check to make sure the static flag actually works.
14045 #
14046 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14047 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14048 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14049 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052 lt_prog_compiler_static_works_F77=no
14053 save_LDFLAGS="$LDFLAGS"
14054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14057 # The linker can only warn and ignore the option if not recognized
14058 # So say no if there are warnings
14059 if test -s conftest.err; then
14060 # Append any errors to the config.log.
14061 cat conftest.err 1>&5
14062 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14064 if diff conftest.exp conftest.er2 >/dev/null; then
14065 lt_prog_compiler_static_works_F77=yes
14066 fi
14067 else
14068 lt_prog_compiler_static_works_F77=yes
14069 fi
14070 fi
14071 $rm conftest*
14072 LDFLAGS="$save_LDFLAGS"
14073
14074 fi
14075 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14076 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14077
14078 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14079 :
14080 else
14081 lt_prog_compiler_static_F77=
14082 fi
14083
14084
14085 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14086 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14087 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 lt_cv_prog_compiler_c_o_F77=no
14091 $rm -r conftest 2>/dev/null
14092 mkdir conftest
14093 cd conftest
14094 mkdir out
14095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14096
14097 lt_compiler_flag="-o out/conftest2.$ac_objext"
14098 # Insert the option either (1) after the last *FLAGS variable, or
14099 # (2) before a word containing "conftest.", or (3) at the end.
14100 # Note that $ac_compile itself does not contain backslashes and begins
14101 # with a dollar sign (not a hyphen), so the echo should work correctly.
14102 lt_compile=`echo "$ac_compile" | $SED \
14103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14105 -e 's:$: $lt_compiler_flag:'`
14106 (eval echo "\"\$as_me:14106: $lt_compile\"" >&5)
14107 (eval "$lt_compile" 2>out/conftest.err)
14108 ac_status=$?
14109 cat out/conftest.err >&5
14110 echo "$as_me:14110: \$? = $ac_status" >&5
14111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14112 then
14113 # The compiler can only warn and ignore the option if not recognized
14114 # So say no if there are warnings
14115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14118 lt_cv_prog_compiler_c_o_F77=yes
14119 fi
14120 fi
14121 chmod u+w . 2>&5
14122 $rm conftest*
14123 # SGI C++ compiler will create directory out/ii_files/ for
14124 # template instantiation
14125 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14126 $rm out/* && rmdir out
14127 cd ..
14128 rmdir conftest
14129 $rm conftest*
14130
14131 fi
14132 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14133 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14134
14135
14136 hard_links="nottested"
14137 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14138 # do not overwrite the value of need_locks provided by the user
14139 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14140 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14141 hard_links=yes
14142 $rm conftest*
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 touch conftest.a
14145 ln conftest.a conftest.b 2>&5 || hard_links=no
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147 { echo "$as_me:$LINENO: result: $hard_links" >&5
14148 echo "${ECHO_T}$hard_links" >&6; }
14149 if test "$hard_links" = no; then
14150 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14151 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14152 need_locks=warn
14153 fi
14154 else
14155 need_locks=no
14156 fi
14157
14158 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14160
14161 runpath_var=
14162 allow_undefined_flag_F77=
14163 enable_shared_with_static_runtimes_F77=no
14164 archive_cmds_F77=
14165 archive_expsym_cmds_F77=
14166 old_archive_From_new_cmds_F77=
14167 old_archive_from_expsyms_cmds_F77=
14168 export_dynamic_flag_spec_F77=
14169 whole_archive_flag_spec_F77=
14170 thread_safe_flag_spec_F77=
14171 hardcode_libdir_flag_spec_F77=
14172 hardcode_libdir_flag_spec_ld_F77=
14173 hardcode_libdir_separator_F77=
14174 hardcode_direct_F77=no
14175 hardcode_minus_L_F77=no
14176 hardcode_shlibpath_var_F77=unsupported
14177 link_all_deplibs_F77=unknown
14178 hardcode_automatic_F77=no
14179 module_cmds_F77=
14180 module_expsym_cmds_F77=
14181 always_export_symbols_F77=no
14182 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14183 # include_expsyms should be a list of space-separated symbols to be *always*
14184 # included in the symbol list
14185 include_expsyms_F77=
14186 # exclude_expsyms can be an extended regexp of symbols to exclude
14187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14189 # as well as any symbol that contains `d'.
14190 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14192 # platforms (ab)use it in PIC code, but their linkers get confused if
14193 # the symbol is explicitly referenced. Since portable code cannot
14194 # rely on this symbol name, it's probably fine to never include it in
14195 # preloaded symbol tables.
14196 extract_expsyms_cmds=
14197 # Just being paranoid about ensuring that cc_basename is set.
14198 for cc_temp in $compiler""; do
14199 case $cc_temp in
14200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14202 \-*) ;;
14203 *) break;;
14204 esac
14205 done
14206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14207
14208 case $host_os in
14209 cygwin* | mingw* | pw32*)
14210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14211 # When not using gcc, we currently assume that we are using
14212 # Microsoft Visual C++.
14213 if test "$GCC" != yes; then
14214 with_gnu_ld=no
14215 fi
14216 ;;
14217 interix*)
14218 # we just hope/assume this is gcc and not c89 (= MSVC++)
14219 with_gnu_ld=yes
14220 ;;
14221 openbsd*)
14222 with_gnu_ld=no
14223 ;;
14224 esac
14225
14226 ld_shlibs_F77=yes
14227 if test "$with_gnu_ld" = yes; then
14228 # If archive_cmds runs LD, not CC, wlarc should be empty
14229 wlarc='${wl}'
14230
14231 # Set some defaults for GNU ld with shared library support. These
14232 # are reset later if shared libraries are not supported. Putting them
14233 # here allows them to be overridden if necessary.
14234 runpath_var=LD_RUN_PATH
14235 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14236 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14237 # ancient GNU ld didn't support --whole-archive et. al.
14238 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14239 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14240 else
14241 whole_archive_flag_spec_F77=
14242 fi
14243 supports_anon_versioning=no
14244 case `$LD -v 2>/dev/null` in
14245 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14246 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14247 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14248 *\ 2.11.*) ;; # other 2.11 versions
14249 *) supports_anon_versioning=yes ;;
14250 esac
14251
14252 # See if GNU ld supports shared libraries.
14253 case $host_os in
14254 aix3* | aix4* | aix5*)
14255 # On AIX/PPC, the GNU linker is very broken
14256 if test "$host_cpu" != ia64; then
14257 ld_shlibs_F77=no
14258 cat <<EOF 1>&2
14259
14260 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14261 *** to be unable to reliably create shared libraries on AIX.
14262 *** Therefore, libtool is disabling shared libraries support. If you
14263 *** really care for shared libraries, you may want to modify your PATH
14264 *** so that a non-GNU linker is found, and then restart.
14265
14266 EOF
14267 fi
14268 ;;
14269
14270 amigaos*)
14271 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)'
14272 hardcode_libdir_flag_spec_F77='-L$libdir'
14273 hardcode_minus_L_F77=yes
14274
14275 # Samuel A. Falvo II <[email protected]> reports
14276 # that the semantics of dynamic libraries on AmigaOS, at least up
14277 # to version 4, is to share data among multiple programs linked
14278 # with the same dynamic library. Since this doesn't match the
14279 # behavior of shared libraries on other platforms, we can't use
14280 # them.
14281 ld_shlibs_F77=no
14282 ;;
14283
14284 beos*)
14285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14286 allow_undefined_flag_F77=unsupported
14287 # Joseph Beckenbach <[email protected]> says some releases of gcc
14288 # support --undefined. This deserves some investigation. FIXME
14289 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14290 else
14291 ld_shlibs_F77=no
14292 fi
14293 ;;
14294
14295 cygwin* | mingw* | pw32*)
14296 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14297 # as there is no search path for DLLs.
14298 hardcode_libdir_flag_spec_F77='-L$libdir'
14299 allow_undefined_flag_F77=unsupported
14300 always_export_symbols_F77=no
14301 enable_shared_with_static_runtimes_F77=yes
14302 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14303
14304 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14305 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14306 # If the export-symbols file already is a .def file (1st line
14307 # is EXPORTS), use it as is; otherwise, prepend...
14308 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14309 cp $export_symbols $output_objdir/$soname.def;
14310 else
14311 echo EXPORTS > $output_objdir/$soname.def;
14312 cat $export_symbols >> $output_objdir/$soname.def;
14313 fi~
14314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14315 else
14316 ld_shlibs_F77=no
14317 fi
14318 ;;
14319
14320 interix[3-9]*)
14321 hardcode_direct_F77=no
14322 hardcode_shlibpath_var_F77=no
14323 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14324 export_dynamic_flag_spec_F77='${wl}-E'
14325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14326 # Instead, shared libraries are loaded at an image base (0x10000000 by
14327 # default) and relocated if they conflict, which is a slow very memory
14328 # consuming and fragmenting process. To avoid this, we pick a random,
14329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14331 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'
14332 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'
14333 ;;
14334
14335 gnu* | linux* | k*bsd*-gnu)
14336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337 tmp_addflag=
14338 case $cc_basename,$host_cpu in
14339 pgcc*) # Portland Group C compiler
14340 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'
14341 tmp_addflag=' $pic_flag'
14342 ;;
14343 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14344 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'
14345 tmp_addflag=' $pic_flag -Mnomain' ;;
14346 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14347 tmp_addflag=' -i_dynamic' ;;
14348 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14349 tmp_addflag=' -i_dynamic -nofor_main' ;;
14350 ifc* | ifort*) # Intel Fortran compiler
14351 tmp_addflag=' -nofor_main' ;;
14352 esac
14353 case `$CC -V 2>&1 | sed 5q` in
14354 *Sun\ C*) # Sun C 5.9
14355 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14356 tmp_sharedflag='-G' ;;
14357 *Sun\ F*) # Sun Fortran 8.3
14358 tmp_sharedflag='-G' ;;
14359 *)
14360 tmp_sharedflag='-shared' ;;
14361 esac
14362 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14363
14364 if test $supports_anon_versioning = yes; then
14365 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14367 $echo "local: *; };" >> $output_objdir/$libname.ver~
14368 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14369 fi
14370 else
14371 ld_shlibs_F77=no
14372 fi
14373 ;;
14374
14375 netbsd*)
14376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14377 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14378 wlarc=
14379 else
14380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14382 fi
14383 ;;
14384
14385 solaris*)
14386 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14387 ld_shlibs_F77=no
14388 cat <<EOF 1>&2
14389
14390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14391 *** create shared libraries on Solaris systems. Therefore, libtool
14392 *** is disabling shared libraries support. We urge you to upgrade GNU
14393 *** binutils to release 2.9.1 or newer. Another option is to modify
14394 *** your PATH or compiler configuration so that the native linker is
14395 *** used, and then restart.
14396
14397 EOF
14398 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14401 else
14402 ld_shlibs_F77=no
14403 fi
14404 ;;
14405
14406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14407 case `$LD -v 2>&1` in
14408 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14409 ld_shlibs_F77=no
14410 cat <<_LT_EOF 1>&2
14411
14412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14413 *** reliably create shared libraries on SCO systems. Therefore, libtool
14414 *** is disabling shared libraries support. We urge you to upgrade GNU
14415 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14416 *** your PATH or compiler configuration so that the native linker is
14417 *** used, and then restart.
14418
14419 _LT_EOF
14420 ;;
14421 *)
14422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14423 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14425 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14426 else
14427 ld_shlibs_F77=no
14428 fi
14429 ;;
14430 esac
14431 ;;
14432
14433 sunos4*)
14434 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14435 wlarc=
14436 hardcode_direct_F77=yes
14437 hardcode_shlibpath_var_F77=no
14438 ;;
14439
14440 *)
14441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14442 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14444 else
14445 ld_shlibs_F77=no
14446 fi
14447 ;;
14448 esac
14449
14450 if test "$ld_shlibs_F77" = no; then
14451 runpath_var=
14452 hardcode_libdir_flag_spec_F77=
14453 export_dynamic_flag_spec_F77=
14454 whole_archive_flag_spec_F77=
14455 fi
14456 else
14457 # PORTME fill in a description of your system's linker (not GNU ld)
14458 case $host_os in
14459 aix3*)
14460 allow_undefined_flag_F77=unsupported
14461 always_export_symbols_F77=yes
14462 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'
14463 # Note: this linker hardcodes the directories in LIBPATH if there
14464 # are no directories specified by -L.
14465 hardcode_minus_L_F77=yes
14466 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14467 # Neither direct hardcoding nor static linking is supported with a
14468 # broken collect2.
14469 hardcode_direct_F77=unsupported
14470 fi
14471 ;;
14472
14473 aix4* | aix5*)
14474 if test "$host_cpu" = ia64; then
14475 # On IA64, the linker does run time linking by default, so we don't
14476 # have to do anything special.
14477 aix_use_runtimelinking=no
14478 exp_sym_flag='-Bexport'
14479 no_entry_flag=""
14480 else
14481 # If we're using GNU nm, then we don't want the "-C" option.
14482 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14483 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14484 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'
14485 else
14486 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'
14487 fi
14488 aix_use_runtimelinking=no
14489
14490 # Test if we are trying to use run time linking or normal
14491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14492 # need to do runtime linking.
14493 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14494 for ld_flag in $LDFLAGS; do
14495 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14496 aix_use_runtimelinking=yes
14497 break
14498 fi
14499 done
14500 ;;
14501 esac
14502
14503 exp_sym_flag='-bexport'
14504 no_entry_flag='-bnoentry'
14505 fi
14506
14507 # When large executables or shared objects are built, AIX ld can
14508 # have problems creating the table of contents. If linking a library
14509 # or program results in "error TOC overflow" add -mminimal-toc to
14510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14512
14513 archive_cmds_F77=''
14514 hardcode_direct_F77=yes
14515 hardcode_libdir_separator_F77=':'
14516 link_all_deplibs_F77=yes
14517
14518 if test "$GCC" = yes; then
14519 case $host_os in aix4.[012]|aix4.[012].*)
14520 # We only want to do this on AIX 4.2 and lower, the check
14521 # below for broken collect2 doesn't work under 4.3+
14522 collect2name=`${CC} -print-prog-name=collect2`
14523 if test -f "$collect2name" && \
14524 strings "$collect2name" | grep resolve_lib_name >/dev/null
14525 then
14526 # We have reworked collect2
14527 :
14528 else
14529 # We have old collect2
14530 hardcode_direct_F77=unsupported
14531 # It fails to find uninstalled libraries when the uninstalled
14532 # path is not listed in the libpath. Setting hardcode_minus_L
14533 # to unsupported forces relinking
14534 hardcode_minus_L_F77=yes
14535 hardcode_libdir_flag_spec_F77='-L$libdir'
14536 hardcode_libdir_separator_F77=
14537 fi
14538 ;;
14539 esac
14540 shared_flag='-shared'
14541 if test "$aix_use_runtimelinking" = yes; then
14542 shared_flag="$shared_flag "'${wl}-G'
14543 fi
14544 else
14545 # not using gcc
14546 if test "$host_cpu" = ia64; then
14547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14548 # chokes on -Wl,-G. The following line is correct:
14549 shared_flag='-G'
14550 else
14551 if test "$aix_use_runtimelinking" = yes; then
14552 shared_flag='${wl}-G'
14553 else
14554 shared_flag='${wl}-bM:SRE'
14555 fi
14556 fi
14557 fi
14558
14559 # It seems that -bexpall does not export symbols beginning with
14560 # underscore (_), so it is better to generate a list of symbols to export.
14561 always_export_symbols_F77=yes
14562 if test "$aix_use_runtimelinking" = yes; then
14563 # Warning - without using the other runtime loading flags (-brtl),
14564 # -berok will link without error, but may produce a broken library.
14565 allow_undefined_flag_F77='-berok'
14566 # Determine the default libpath from the value encoded in an empty executable.
14567 cat >conftest.$ac_ext <<_ACEOF
14568 program main
14569
14570 end
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (ac_try="$ac_link"
14574 case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_link") 2>conftest.er1
14580 ac_status=$?
14581 grep -v '^ *+' conftest.er1 >conftest.err
14582 rm -f conftest.er1
14583 cat conftest.err >&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } && {
14586 test -z "$ac_f77_werror_flag" ||
14587 test ! -s conftest.err
14588 } && test -s conftest$ac_exeext &&
14589 $as_test_x conftest$ac_exeext; then
14590
14591 lt_aix_libpath_sed='
14592 /Import File Strings/,/^$/ {
14593 /^0/ {
14594 s/^0 *\(.*\)$/\1/
14595 p
14596 }
14597 }'
14598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14599 # Check for a 64-bit object if we didn't find anything.
14600 if test -z "$aix_libpath"; then
14601 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14602 fi
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607
14608 fi
14609
14610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14611 conftest$ac_exeext conftest.$ac_ext
14612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14613
14614 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14615 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"
14616 else
14617 if test "$host_cpu" = ia64; then
14618 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14619 allow_undefined_flag_F77="-z nodefs"
14620 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"
14621 else
14622 # Determine the default libpath from the value encoded in an empty executable.
14623 cat >conftest.$ac_ext <<_ACEOF
14624 program main
14625
14626 end
14627 _ACEOF
14628 rm -f conftest.$ac_objext conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>conftest.er1
14636 ac_status=$?
14637 grep -v '^ *+' conftest.er1 >conftest.err
14638 rm -f conftest.er1
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_f77_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest$ac_exeext &&
14645 $as_test_x conftest$ac_exeext; then
14646
14647 lt_aix_libpath_sed='
14648 /Import File Strings/,/^$/ {
14649 /^0/ {
14650 s/^0 *\(.*\)$/\1/
14651 p
14652 }
14653 }'
14654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14655 # Check for a 64-bit object if we didn't find anything.
14656 if test -z "$aix_libpath"; then
14657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14658 fi
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663
14664 fi
14665
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14669
14670 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14671 # Warning - without using the other run time loading flags,
14672 # -berok will link without error, but may produce a broken library.
14673 no_undefined_flag_F77=' ${wl}-bernotok'
14674 allow_undefined_flag_F77=' ${wl}-berok'
14675 # Exported symbols can be pulled into shared objects from archives
14676 whole_archive_flag_spec_F77='$convenience'
14677 archive_cmds_need_lc_F77=yes
14678 # This is similar to how AIX traditionally builds its shared libraries.
14679 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'
14680 fi
14681 fi
14682 ;;
14683
14684 amigaos*)
14685 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)'
14686 hardcode_libdir_flag_spec_F77='-L$libdir'
14687 hardcode_minus_L_F77=yes
14688 # see comment about different semantics on the GNU ld section
14689 ld_shlibs_F77=no
14690 ;;
14691
14692 bsdi[45]*)
14693 export_dynamic_flag_spec_F77=-rdynamic
14694 ;;
14695
14696 cygwin* | mingw* | pw32*)
14697 # When not using gcc, we currently assume that we are using
14698 # Microsoft Visual C++.
14699 # hardcode_libdir_flag_spec is actually meaningless, as there is
14700 # no search path for DLLs.
14701 hardcode_libdir_flag_spec_F77=' '
14702 allow_undefined_flag_F77=unsupported
14703 # Tell ltmain to make .lib files, not .a files.
14704 libext=lib
14705 # Tell ltmain to make .dll files, not .so files.
14706 shrext_cmds=".dll"
14707 # FIXME: Setting linknames here is a bad hack.
14708 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14709 # The linker will automatically build a .lib file if we build a DLL.
14710 old_archive_From_new_cmds_F77='true'
14711 # FIXME: Should let the user specify the lib program.
14712 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14713 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14714 enable_shared_with_static_runtimes_F77=yes
14715 ;;
14716
14717 darwin* | rhapsody*)
14718 case $host_os in
14719 rhapsody* | darwin1.[012])
14720 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14721 ;;
14722 *) # Darwin 1.3 on
14723 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14724 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14725 else
14726 case ${MACOSX_DEPLOYMENT_TARGET} in
14727 10.[012])
14728 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14729 ;;
14730 10.*)
14731 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14732 ;;
14733 esac
14734 fi
14735 ;;
14736 esac
14737 archive_cmds_need_lc_F77=no
14738 hardcode_direct_F77=no
14739 hardcode_automatic_F77=yes
14740 hardcode_shlibpath_var_F77=unsupported
14741 whole_archive_flag_spec_F77=''
14742 link_all_deplibs_F77=yes
14743 if test "$GCC" = yes ; then
14744 output_verbose_link_cmd='echo'
14745 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14746 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14748 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}'
14749 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}'
14750 else
14751 case $cc_basename in
14752 xlc*)
14753 output_verbose_link_cmd='echo'
14754 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14755 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14756 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14757 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14758 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}'
14759 ;;
14760 *)
14761 ld_shlibs_F77=no
14762 ;;
14763 esac
14764 fi
14765 ;;
14766
14767 dgux*)
14768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14769 hardcode_libdir_flag_spec_F77='-L$libdir'
14770 hardcode_shlibpath_var_F77=no
14771 ;;
14772
14773 freebsd1*)
14774 ld_shlibs_F77=no
14775 ;;
14776
14777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14778 # support. Future versions do this automatically, but an explicit c++rt0.o
14779 # does not break anything, and helps significantly (at the cost of a little
14780 # extra space).
14781 freebsd2.2*)
14782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14783 hardcode_libdir_flag_spec_F77='-R$libdir'
14784 hardcode_direct_F77=yes
14785 hardcode_shlibpath_var_F77=no
14786 ;;
14787
14788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14789 freebsd2*)
14790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14791 hardcode_direct_F77=yes
14792 hardcode_minus_L_F77=yes
14793 hardcode_shlibpath_var_F77=no
14794 ;;
14795
14796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14797 freebsd* | dragonfly*)
14798 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14799 hardcode_libdir_flag_spec_F77='-R$libdir'
14800 hardcode_direct_F77=yes
14801 hardcode_shlibpath_var_F77=no
14802 ;;
14803
14804 hpux9*)
14805 if test "$GCC" = yes; then
14806 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'
14807 else
14808 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'
14809 fi
14810 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14811 hardcode_libdir_separator_F77=:
14812 hardcode_direct_F77=yes
14813
14814 # hardcode_minus_L: Not really in the search PATH,
14815 # but as the default location of the library.
14816 hardcode_minus_L_F77=yes
14817 export_dynamic_flag_spec_F77='${wl}-E'
14818 ;;
14819
14820 hpux10*)
14821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14822 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14823 else
14824 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14825 fi
14826 if test "$with_gnu_ld" = no; then
14827 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14828 hardcode_libdir_separator_F77=:
14829
14830 hardcode_direct_F77=yes
14831 export_dynamic_flag_spec_F77='${wl}-E'
14832
14833 # hardcode_minus_L: Not really in the search PATH,
14834 # but as the default location of the library.
14835 hardcode_minus_L_F77=yes
14836 fi
14837 ;;
14838
14839 hpux11*)
14840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14841 case $host_cpu in
14842 hppa*64*)
14843 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 ;;
14845 ia64*)
14846 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14847 ;;
14848 *)
14849 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14850 ;;
14851 esac
14852 else
14853 case $host_cpu in
14854 hppa*64*)
14855 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 ;;
14857 ia64*)
14858 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14859 ;;
14860 *)
14861 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14862 ;;
14863 esac
14864 fi
14865 if test "$with_gnu_ld" = no; then
14866 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14867 hardcode_libdir_separator_F77=:
14868
14869 case $host_cpu in
14870 hppa*64*|ia64*)
14871 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14872 hardcode_direct_F77=no
14873 hardcode_shlibpath_var_F77=no
14874 ;;
14875 *)
14876 hardcode_direct_F77=yes
14877 export_dynamic_flag_spec_F77='${wl}-E'
14878
14879 # hardcode_minus_L: Not really in the search PATH,
14880 # but as the default location of the library.
14881 hardcode_minus_L_F77=yes
14882 ;;
14883 esac
14884 fi
14885 ;;
14886
14887 irix5* | irix6* | nonstopux*)
14888 if test "$GCC" = yes; then
14889 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'
14890 else
14891 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'
14892 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14893 fi
14894 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14895 hardcode_libdir_separator_F77=:
14896 link_all_deplibs_F77=yes
14897 ;;
14898
14899 netbsd*)
14900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14902 else
14903 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14904 fi
14905 hardcode_libdir_flag_spec_F77='-R$libdir'
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 newsos6)
14911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_direct_F77=yes
14913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14914 hardcode_libdir_separator_F77=:
14915 hardcode_shlibpath_var_F77=no
14916 ;;
14917
14918 openbsd*)
14919 if test -f /usr/libexec/ld.so; then
14920 hardcode_direct_F77=yes
14921 hardcode_shlibpath_var_F77=no
14922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14923 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14925 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14926 export_dynamic_flag_spec_F77='${wl}-E'
14927 else
14928 case $host_os in
14929 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14930 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931 hardcode_libdir_flag_spec_F77='-R$libdir'
14932 ;;
14933 *)
14934 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14935 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14936 ;;
14937 esac
14938 fi
14939 else
14940 ld_shlibs_F77=no
14941 fi
14942 ;;
14943
14944 os2*)
14945 hardcode_libdir_flag_spec_F77='-L$libdir'
14946 hardcode_minus_L_F77=yes
14947 allow_undefined_flag_F77=unsupported
14948 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'
14949 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14950 ;;
14951
14952 osf3*)
14953 if test "$GCC" = yes; then
14954 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14955 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'
14956 else
14957 allow_undefined_flag_F77=' -expect_unresolved \*'
14958 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'
14959 fi
14960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14961 hardcode_libdir_separator_F77=:
14962 ;;
14963
14964 osf4* | osf5*) # as osf3* with the addition of -msym flag
14965 if test "$GCC" = yes; then
14966 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14967 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'
14968 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14969 else
14970 allow_undefined_flag_F77=' -expect_unresolved \*'
14971 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'
14972 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~
14973 $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'
14974
14975 # Both c and cxx compiler support -rpath directly
14976 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14977 fi
14978 hardcode_libdir_separator_F77=:
14979 ;;
14980
14981 solaris*)
14982 no_undefined_flag_F77=' -z text'
14983 if test "$GCC" = yes; then
14984 wlarc='${wl}'
14985 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14987 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14988 else
14989 wlarc=''
14990 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14993 fi
14994 hardcode_libdir_flag_spec_F77='-R$libdir'
14995 hardcode_shlibpath_var_F77=no
14996 case $host_os in
14997 solaris2.[0-5] | solaris2.[0-5].*) ;;
14998 *)
14999 # The compiler driver will combine and reorder linker options,
15000 # but understands `-z linker_flag'. GCC discards it without `$wl',
15001 # but is careful enough not to reorder.
15002 # Supported since Solaris 2.6 (maybe 2.5.1?)
15003 if test "$GCC" = yes; then
15004 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15005 else
15006 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15007 fi
15008 ;;
15009 esac
15010 link_all_deplibs_F77=yes
15011 ;;
15012
15013 sunos4*)
15014 if test "x$host_vendor" = xsequent; then
15015 # Use $CC to link under sequent, because it throws in some extra .o
15016 # files that make .init and .fini sections work.
15017 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15018 else
15019 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15020 fi
15021 hardcode_libdir_flag_spec_F77='-L$libdir'
15022 hardcode_direct_F77=yes
15023 hardcode_minus_L_F77=yes
15024 hardcode_shlibpath_var_F77=no
15025 ;;
15026
15027 sysv4)
15028 case $host_vendor in
15029 sni)
15030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_direct_F77=yes # is this really true???
15032 ;;
15033 siemens)
15034 ## LD is ld it makes a PLAMLIB
15035 ## CC just makes a GrossModule.
15036 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15037 reload_cmds_F77='$CC -r -o $output$reload_objs'
15038 hardcode_direct_F77=no
15039 ;;
15040 motorola)
15041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15042 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15043 ;;
15044 esac
15045 runpath_var='LD_RUN_PATH'
15046 hardcode_shlibpath_var_F77=no
15047 ;;
15048
15049 sysv4.3*)
15050 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15051 hardcode_shlibpath_var_F77=no
15052 export_dynamic_flag_spec_F77='-Bexport'
15053 ;;
15054
15055 sysv4*MP*)
15056 if test -d /usr/nec; then
15057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_shlibpath_var_F77=no
15059 runpath_var=LD_RUN_PATH
15060 hardcode_runpath_var=yes
15061 ld_shlibs_F77=yes
15062 fi
15063 ;;
15064
15065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15066 no_undefined_flag_F77='${wl}-z,text'
15067 archive_cmds_need_lc_F77=no
15068 hardcode_shlibpath_var_F77=no
15069 runpath_var='LD_RUN_PATH'
15070
15071 if test "$GCC" = yes; then
15072 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 else
15075 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 fi
15078 ;;
15079
15080 sysv5* | sco3.2v5* | sco5v6*)
15081 # Note: We can NOT use -z defs as we might desire, because we do not
15082 # link with -lc, and that would cause any symbols used from libc to
15083 # always be unresolved, which means just about no library would
15084 # ever link correctly. If we're not using GNU ld we use -z text
15085 # though, which does catch some bad symbols but isn't as heavy-handed
15086 # as -z defs.
15087 no_undefined_flag_F77='${wl}-z,text'
15088 allow_undefined_flag_F77='${wl}-z,nodefs'
15089 archive_cmds_need_lc_F77=no
15090 hardcode_shlibpath_var_F77=no
15091 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15092 hardcode_libdir_separator_F77=':'
15093 link_all_deplibs_F77=yes
15094 export_dynamic_flag_spec_F77='${wl}-Bexport'
15095 runpath_var='LD_RUN_PATH'
15096
15097 if test "$GCC" = yes; then
15098 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 else
15101 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 fi
15104 ;;
15105
15106 uts4*)
15107 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15108 hardcode_libdir_flag_spec_F77='-L$libdir'
15109 hardcode_shlibpath_var_F77=no
15110 ;;
15111
15112 *)
15113 ld_shlibs_F77=no
15114 ;;
15115 esac
15116 fi
15117
15118 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15119 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15120 test "$ld_shlibs_F77" = no && can_build_shared=no
15121
15122 #
15123 # Do we need to explicitly link libc?
15124 #
15125 case "x$archive_cmds_need_lc_F77" in
15126 x|xyes)
15127 # Assume -lc should be added
15128 archive_cmds_need_lc_F77=yes
15129
15130 if test "$enable_shared" = yes && test "$GCC" = yes; then
15131 case $archive_cmds_F77 in
15132 *'~'*)
15133 # FIXME: we may have to deal with multi-command sequences.
15134 ;;
15135 '$CC '*)
15136 # Test whether the compiler implicitly links with -lc since on some
15137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15138 # to ld, don't add -lc before -lgcc.
15139 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15140 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15141 $rm conftest*
15142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15143
15144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145 (eval $ac_compile) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } 2>conftest.err; then
15149 soname=conftest
15150 lib=conftest
15151 libobjs=conftest.$ac_objext
15152 deplibs=
15153 wl=$lt_prog_compiler_wl_F77
15154 pic_flag=$lt_prog_compiler_pic_F77
15155 compiler_flags=-v
15156 linker_flags=-v
15157 verstring=
15158 output_objdir=.
15159 libname=conftest
15160 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15161 allow_undefined_flag_F77=
15162 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15163 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }
15167 then
15168 archive_cmds_need_lc_F77=no
15169 else
15170 archive_cmds_need_lc_F77=yes
15171 fi
15172 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15173 else
15174 cat conftest.err 1>&5
15175 fi
15176 $rm conftest*
15177 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15178 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15179 ;;
15180 esac
15181 fi
15182 ;;
15183 esac
15184
15185 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15186 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15187 library_names_spec=
15188 libname_spec='lib$name'
15189 soname_spec=
15190 shrext_cmds=".so"
15191 postinstall_cmds=
15192 postuninstall_cmds=
15193 finish_cmds=
15194 finish_eval=
15195 shlibpath_var=
15196 shlibpath_overrides_runpath=unknown
15197 version_type=none
15198 dynamic_linker="$host_os ld.so"
15199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15200
15201 need_lib_prefix=unknown
15202 hardcode_into_libs=no
15203
15204 # when you set need_version to no, make sure it does not cause -set_version
15205 # flags to be left without arguments
15206 need_version=unknown
15207
15208 case $host_os in
15209 aix3*)
15210 version_type=linux
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15212 shlibpath_var=LIBPATH
15213
15214 # AIX 3 has no versioning support, so we append a major version to the name.
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 ;;
15217
15218 aix4* | aix5*)
15219 version_type=linux
15220 need_lib_prefix=no
15221 need_version=no
15222 hardcode_into_libs=yes
15223 if test "$host_cpu" = ia64; then
15224 # AIX 5 supports IA64
15225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 else
15228 # With GCC up to 2.95.x, collect2 would create an import file
15229 # for dependence libraries. The import file would start with
15230 # the line `#! .'. This would cause the generated library to
15231 # depend on `.', always an invalid library. This was fixed in
15232 # development snapshots of GCC prior to 3.0.
15233 case $host_os in
15234 aix4 | aix4.[01] | aix4.[01].*)
15235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15236 echo ' yes '
15237 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15238 :
15239 else
15240 can_build_shared=no
15241 fi
15242 ;;
15243 esac
15244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15245 # soname into executable. Probably we can add versioning support to
15246 # collect2, so additional links can be useful in future.
15247 if test "$aix_use_runtimelinking" = yes; then
15248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15249 # instead of lib<name>.a to let people know that these are not
15250 # typical AIX shared libraries.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252 else
15253 # We preserve .a as extension for shared libraries through AIX4.2
15254 # and later when we are not doing run time linking.
15255 library_names_spec='${libname}${release}.a $libname.a'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 fi
15258 shlibpath_var=LIBPATH
15259 fi
15260 ;;
15261
15262 amigaos*)
15263 library_names_spec='$libname.ixlibrary $libname.a'
15264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15265 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'
15266 ;;
15267
15268 beos*)
15269 library_names_spec='${libname}${shared_ext}'
15270 dynamic_linker="$host_os ld.so"
15271 shlibpath_var=LIBRARY_PATH
15272 ;;
15273
15274 bsdi[45]*)
15275 version_type=linux
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15283 # the default ld.so.conf also contains /usr/contrib/lib and
15284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15285 # libtool to hard-code these into programs
15286 ;;
15287
15288 cygwin* | mingw* | pw32*)
15289 version_type=windows
15290 shrext_cmds=".dll"
15291 need_version=no
15292 need_lib_prefix=no
15293
15294 case $GCC,$host_os in
15295 yes,cygwin* | yes,mingw* | yes,pw32*)
15296 library_names_spec='$libname.dll.a'
15297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15298 postinstall_cmds='base_file=`basename \${file}`~
15299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15300 dldir=$destdir/`dirname \$dlpath`~
15301 test -d \$dldir || mkdir -p \$dldir~
15302 $install_prog $dir/$dlname \$dldir/$dlname~
15303 chmod a+x \$dldir/$dlname'
15304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15305 dlpath=$dir/\$dldll~
15306 $rm \$dlpath'
15307 shlibpath_overrides_runpath=yes
15308
15309 case $host_os in
15310 cygwin*)
15311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15313 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15314 ;;
15315 mingw*)
15316 # MinGW DLLs use traditional 'lib' prefix
15317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15319 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15320 # It is most probably a Windows format PATH printed by
15321 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15322 # path with ; separators, and with drive letters. We can handle the
15323 # drive letters (cygwin fileutils understands them), so leave them,
15324 # especially as we might pass files found there to a mingw objdump,
15325 # which wouldn't understand a cygwinified path. Ahh.
15326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327 else
15328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15329 fi
15330 ;;
15331 pw32*)
15332 # pw32 DLLs use 'pw' prefix rather than 'lib'
15333 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15334 ;;
15335 esac
15336 ;;
15337
15338 *)
15339 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15340 ;;
15341 esac
15342 dynamic_linker='Win32 ld.exe'
15343 # FIXME: first we should search . and the directory the executable is in
15344 shlibpath_var=PATH
15345 ;;
15346
15347 darwin* | rhapsody*)
15348 dynamic_linker="$host_os dyld"
15349 version_type=darwin
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15353 soname_spec='${libname}${release}${major}$shared_ext'
15354 shlibpath_overrides_runpath=yes
15355 shlibpath_var=DYLD_LIBRARY_PATH
15356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15357
15358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15359 ;;
15360
15361 dgux*)
15362 version_type=linux
15363 need_lib_prefix=no
15364 need_version=no
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 ;;
15369
15370 freebsd1*)
15371 dynamic_linker=no
15372 ;;
15373
15374 freebsd* | dragonfly*)
15375 # DragonFly does not have aout. When/if they implement a new
15376 # versioning mechanism, adjust this.
15377 if test -x /usr/bin/objformat; then
15378 objformat=`/usr/bin/objformat`
15379 else
15380 case $host_os in
15381 freebsd[123]*) objformat=aout ;;
15382 *) objformat=elf ;;
15383 esac
15384 fi
15385 version_type=freebsd-$objformat
15386 case $version_type in
15387 freebsd-elf*)
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389 need_version=no
15390 need_lib_prefix=no
15391 ;;
15392 freebsd-*)
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15394 need_version=yes
15395 ;;
15396 esac
15397 shlibpath_var=LD_LIBRARY_PATH
15398 case $host_os in
15399 freebsd2*)
15400 shlibpath_overrides_runpath=yes
15401 ;;
15402 freebsd3.[01]* | freebsdelf3.[01]*)
15403 shlibpath_overrides_runpath=yes
15404 hardcode_into_libs=yes
15405 ;;
15406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15410 ;;
15411 *) # from 4.6 on, and DragonFly
15412 shlibpath_overrides_runpath=yes
15413 hardcode_into_libs=yes
15414 ;;
15415 esac
15416 ;;
15417
15418 gnu*)
15419 version_type=linux
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 hardcode_into_libs=yes
15426 ;;
15427
15428 hpux9* | hpux10* | hpux11*)
15429 # Give a soname corresponding to the major version so that dld.sl refuses to
15430 # link against other versions.
15431 version_type=sunos
15432 need_lib_prefix=no
15433 need_version=no
15434 case $host_cpu in
15435 ia64*)
15436 shrext_cmds='.so'
15437 hardcode_into_libs=yes
15438 dynamic_linker="$host_os dld.so"
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 if test "X$HPUX_IA64_MODE" = X32; then
15444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15445 else
15446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15447 fi
15448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15449 ;;
15450 hppa*64*)
15451 shrext_cmds='.sl'
15452 hardcode_into_libs=yes
15453 dynamic_linker="$host_os dld.sl"
15454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15460 ;;
15461 *)
15462 shrext_cmds='.sl'
15463 dynamic_linker="$host_os dld.sl"
15464 shlibpath_var=SHLIB_PATH
15465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 ;;
15469 esac
15470 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15471 postinstall_cmds='chmod 555 $lib'
15472 ;;
15473
15474 interix[3-9]*)
15475 version_type=linux
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=no
15483 hardcode_into_libs=yes
15484 ;;
15485
15486 irix5* | irix6* | nonstopux*)
15487 case $host_os in
15488 nonstopux*) version_type=nonstopux ;;
15489 *)
15490 if test "$lt_cv_prog_gnu_ld" = yes; then
15491 version_type=linux
15492 else
15493 version_type=irix
15494 fi ;;
15495 esac
15496 need_lib_prefix=no
15497 need_version=no
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15500 case $host_os in
15501 irix5* | nonstopux*)
15502 libsuff= shlibsuff=
15503 ;;
15504 *)
15505 case $LD in # libtool.m4 will add one of these switches to LD
15506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15507 libsuff= shlibsuff= libmagic=32-bit;;
15508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15509 libsuff=32 shlibsuff=N32 libmagic=N32;;
15510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15512 *) libsuff= shlibsuff= libmagic=never-match;;
15513 esac
15514 ;;
15515 esac
15516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15517 shlibpath_overrides_runpath=no
15518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15520 hardcode_into_libs=yes
15521 ;;
15522
15523 # No shared lib support for Linux oldld, aout, or coff.
15524 linux*oldld* | linux*aout* | linux*coff*)
15525 dynamic_linker=no
15526 ;;
15527
15528 # This must be Linux ELF.
15529 linux* | k*bsd*-gnu)
15530 version_type=linux
15531 need_lib_prefix=no
15532 need_version=no
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=no
15538 # This implies no fast_install, which is unacceptable.
15539 # Some rework will be needed to allow for fast_install
15540 # before this can be enabled.
15541 hardcode_into_libs=yes
15542
15543 # Append ld.so.conf contents to the search path
15544 if test -f /etc/ld.so.conf; then
15545 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15546 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15547 fi
15548
15549 # We used to test for /lib/ld.so.1 and disable shared libraries on
15550 # powerpc, because MkLinux only supported shared libraries with the
15551 # GNU dynamic linker. Since this was broken with cross compilers,
15552 # most powerpc-linux boxes support dynamic linking these days and
15553 # people can always --disable-shared, the test was removed, and we
15554 # assume the GNU/Linux dynamic linker is in use.
15555 dynamic_linker='GNU/Linux ld.so'
15556 ;;
15557
15558 netbsd*)
15559 version_type=sunos
15560 need_lib_prefix=no
15561 need_version=no
15562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15565 dynamic_linker='NetBSD (a.out) ld.so'
15566 else
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 dynamic_linker='NetBSD ld.elf_so'
15570 fi
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15573 hardcode_into_libs=yes
15574 ;;
15575
15576 newsos6)
15577 version_type=linux
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582
15583 nto-qnx*)
15584 version_type=linux
15585 need_lib_prefix=no
15586 need_version=no
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=yes
15591 ;;
15592
15593 openbsd*)
15594 version_type=sunos
15595 sys_lib_dlsearch_path_spec="/usr/lib"
15596 need_lib_prefix=no
15597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15598 case $host_os in
15599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15600 *) need_version=no ;;
15601 esac
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15606 case $host_os in
15607 openbsd2.[89] | openbsd2.[89].*)
15608 shlibpath_overrides_runpath=no
15609 ;;
15610 *)
15611 shlibpath_overrides_runpath=yes
15612 ;;
15613 esac
15614 else
15615 shlibpath_overrides_runpath=yes
15616 fi
15617 ;;
15618
15619 os2*)
15620 libname_spec='$name'
15621 shrext_cmds=".dll"
15622 need_lib_prefix=no
15623 library_names_spec='$libname${shared_ext} $libname.a'
15624 dynamic_linker='OS/2 ld.exe'
15625 shlibpath_var=LIBPATH
15626 ;;
15627
15628 osf3* | osf4* | osf5*)
15629 version_type=osf
15630 need_lib_prefix=no
15631 need_version=no
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15637 ;;
15638
15639 rdos*)
15640 dynamic_linker=no
15641 ;;
15642
15643 solaris*)
15644 version_type=linux
15645 need_lib_prefix=no
15646 need_version=no
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=yes
15651 hardcode_into_libs=yes
15652 # ldd complains unless libraries are executable
15653 postinstall_cmds='chmod +x $lib'
15654 ;;
15655
15656 sunos4*)
15657 version_type=sunos
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 if test "$with_gnu_ld" = yes; then
15663 need_lib_prefix=no
15664 fi
15665 need_version=yes
15666 ;;
15667
15668 sysv4 | sysv4.3*)
15669 version_type=linux
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 case $host_vendor in
15674 sni)
15675 shlibpath_overrides_runpath=no
15676 need_lib_prefix=no
15677 export_dynamic_flag_spec='${wl}-Blargedynsym'
15678 runpath_var=LD_RUN_PATH
15679 ;;
15680 siemens)
15681 need_lib_prefix=no
15682 ;;
15683 motorola)
15684 need_lib_prefix=no
15685 need_version=no
15686 shlibpath_overrides_runpath=no
15687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15688 ;;
15689 esac
15690 ;;
15691
15692 sysv4*MP*)
15693 if test -d /usr/nec ;then
15694 version_type=linux
15695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696 soname_spec='$libname${shared_ext}.$major'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 fi
15699 ;;
15700
15701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15702 version_type=freebsd-elf
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 hardcode_into_libs=yes
15709 if test "$with_gnu_ld" = yes; then
15710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15711 shlibpath_overrides_runpath=no
15712 else
15713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15714 shlibpath_overrides_runpath=yes
15715 case $host_os in
15716 sco3.2v5*)
15717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15718 ;;
15719 esac
15720 fi
15721 sys_lib_dlsearch_path_spec='/usr/lib'
15722 ;;
15723
15724 uts4*)
15725 version_type=linux
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 ;;
15730
15731 *)
15732 dynamic_linker=no
15733 ;;
15734 esac
15735 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15736 echo "${ECHO_T}$dynamic_linker" >&6; }
15737 test "$dynamic_linker" = no && can_build_shared=no
15738
15739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15740 if test "$GCC" = yes; then
15741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15742 fi
15743
15744 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15746 hardcode_action_F77=
15747 if test -n "$hardcode_libdir_flag_spec_F77" || \
15748 test -n "$runpath_var_F77" || \
15749 test "X$hardcode_automatic_F77" = "Xyes" ; then
15750
15751 # We can hardcode non-existant directories.
15752 if test "$hardcode_direct_F77" != no &&
15753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15754 # have to relink, otherwise we might link with an installed library
15755 # when we should be linking with a yet-to-be-installed one
15756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15757 test "$hardcode_minus_L_F77" != no; then
15758 # Linking always hardcodes the temporary library directory.
15759 hardcode_action_F77=relink
15760 else
15761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15762 hardcode_action_F77=immediate
15763 fi
15764 else
15765 # We cannot hardcode anything, or else we can only hardcode existing
15766 # directories.
15767 hardcode_action_F77=unsupported
15768 fi
15769 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15770 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15771
15772 if test "$hardcode_action_F77" = relink; then
15773 # Fast installation is not supported
15774 enable_fast_install=no
15775 elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no; then
15777 # Fast installation is not necessary
15778 enable_fast_install=needless
15779 fi
15780
15781
15782 # The else clause should only fire when bootstrapping the
15783 # libtool distribution, otherwise you forgot to ship ltmain.sh
15784 # with your package, and you will get complaints that there are
15785 # no rules to generate ltmain.sh.
15786 if test -f "$ltmain"; then
15787 # See if we are running on zsh, and set the options which allow our commands through
15788 # without removal of \ escapes.
15789 if test -n "${ZSH_VERSION+set}" ; then
15790 setopt NO_GLOB_SUBST
15791 fi
15792 # Now quote all the things that may contain metacharacters while being
15793 # careful not to overquote the AC_SUBSTed values. We take copies of the
15794 # variables and quote the copies for generation of the libtool script.
15795 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15796 SED SHELL STRIP \
15797 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15798 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15799 deplibs_check_method reload_flag reload_cmds need_locks \
15800 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15801 lt_cv_sys_global_symbol_to_c_name_address \
15802 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15803 old_postinstall_cmds old_postuninstall_cmds \
15804 compiler_F77 \
15805 CC_F77 \
15806 LD_F77 \
15807 lt_prog_compiler_wl_F77 \
15808 lt_prog_compiler_pic_F77 \
15809 lt_prog_compiler_static_F77 \
15810 lt_prog_compiler_no_builtin_flag_F77 \
15811 export_dynamic_flag_spec_F77 \
15812 thread_safe_flag_spec_F77 \
15813 whole_archive_flag_spec_F77 \
15814 enable_shared_with_static_runtimes_F77 \
15815 old_archive_cmds_F77 \
15816 old_archive_from_new_cmds_F77 \
15817 predep_objects_F77 \
15818 postdep_objects_F77 \
15819 predeps_F77 \
15820 postdeps_F77 \
15821 compiler_lib_search_path_F77 \
15822 archive_cmds_F77 \
15823 archive_expsym_cmds_F77 \
15824 postinstall_cmds_F77 \
15825 postuninstall_cmds_F77 \
15826 old_archive_from_expsyms_cmds_F77 \
15827 allow_undefined_flag_F77 \
15828 no_undefined_flag_F77 \
15829 export_symbols_cmds_F77 \
15830 hardcode_libdir_flag_spec_F77 \
15831 hardcode_libdir_flag_spec_ld_F77 \
15832 hardcode_libdir_separator_F77 \
15833 hardcode_automatic_F77 \
15834 module_cmds_F77 \
15835 module_expsym_cmds_F77 \
15836 lt_cv_prog_compiler_c_o_F77 \
15837 fix_srcfile_path_F77 \
15838 exclude_expsyms_F77 \
15839 include_expsyms_F77; do
15840
15841 case $var in
15842 old_archive_cmds_F77 | \
15843 old_archive_from_new_cmds_F77 | \
15844 archive_cmds_F77 | \
15845 archive_expsym_cmds_F77 | \
15846 module_cmds_F77 | \
15847 module_expsym_cmds_F77 | \
15848 old_archive_from_expsyms_cmds_F77 | \
15849 export_symbols_cmds_F77 | \
15850 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15851 postinstall_cmds | postuninstall_cmds | \
15852 old_postinstall_cmds | old_postuninstall_cmds | \
15853 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15854 # Double-quote double-evaled strings.
15855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15856 ;;
15857 *)
15858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15859 ;;
15860 esac
15861 done
15862
15863 case $lt_echo in
15864 *'\$0 --fallback-echo"')
15865 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15866 ;;
15867 esac
15868
15869 cfgfile="$ofile"
15870
15871 cat <<__EOF__ >> "$cfgfile"
15872 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15873
15874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15875
15876 # Shell to use when invoking shell scripts.
15877 SHELL=$lt_SHELL
15878
15879 # Whether or not to build shared libraries.
15880 build_libtool_libs=$enable_shared
15881
15882 # Whether or not to build static libraries.
15883 build_old_libs=$enable_static
15884
15885 # Whether or not to add -lc for building shared libraries.
15886 build_libtool_need_lc=$archive_cmds_need_lc_F77
15887
15888 # Whether or not to disallow shared libs when runtime libs are static
15889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15890
15891 # Whether or not to optimize for fast installation.
15892 fast_install=$enable_fast_install
15893
15894 # The host system.
15895 host_alias=$host_alias
15896 host=$host
15897 host_os=$host_os
15898
15899 # The build system.
15900 build_alias=$build_alias
15901 build=$build
15902 build_os=$build_os
15903
15904 # An echo program that does not interpret backslashes.
15905 echo=$lt_echo
15906
15907 # The archiver.
15908 AR=$lt_AR
15909 AR_FLAGS=$lt_AR_FLAGS
15910
15911 # A C compiler.
15912 LTCC=$lt_LTCC
15913
15914 # LTCC compiler flags.
15915 LTCFLAGS=$lt_LTCFLAGS
15916
15917 # A language-specific compiler.
15918 CC=$lt_compiler_F77
15919
15920 # Is the compiler the GNU C compiler?
15921 with_gcc=$GCC_F77
15922
15923 # An ERE matcher.
15924 EGREP=$lt_EGREP
15925
15926 # The linker used to build libraries.
15927 LD=$lt_LD_F77
15928
15929 # Whether we need hard or soft links.
15930 LN_S=$lt_LN_S
15931
15932 # A BSD-compatible nm program.
15933 NM=$lt_NM
15934
15935 # A symbol stripping program
15936 STRIP=$lt_STRIP
15937
15938 # Used to examine libraries when file_magic_cmd begins "file"
15939 MAGIC_CMD=$MAGIC_CMD
15940
15941 # Used on cygwin: DLL creation program.
15942 DLLTOOL="$DLLTOOL"
15943
15944 # Used on cygwin: object dumper.
15945 OBJDUMP="$OBJDUMP"
15946
15947 # Used on cygwin: assembler.
15948 AS="$AS"
15949
15950 # The name of the directory that contains temporary libtool files.
15951 objdir=$objdir
15952
15953 # How to create reloadable object files.
15954 reload_flag=$lt_reload_flag
15955 reload_cmds=$lt_reload_cmds
15956
15957 # How to pass a linker flag through the compiler.
15958 wl=$lt_lt_prog_compiler_wl_F77
15959
15960 # Object file suffix (normally "o").
15961 objext="$ac_objext"
15962
15963 # Old archive suffix (normally "a").
15964 libext="$libext"
15965
15966 # Shared library suffix (normally ".so").
15967 shrext_cmds='$shrext_cmds'
15968
15969 # Executable file suffix (normally "").
15970 exeext="$exeext"
15971
15972 # Additional compiler flags for building library objects.
15973 pic_flag=$lt_lt_prog_compiler_pic_F77
15974 pic_mode=$pic_mode
15975
15976 # What is the maximum length of a command?
15977 max_cmd_len=$lt_cv_sys_max_cmd_len
15978
15979 # Does compiler simultaneously support -c and -o options?
15980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15981
15982 # Must we lock files when doing compilation?
15983 need_locks=$lt_need_locks
15984
15985 # Do we need the lib prefix for modules?
15986 need_lib_prefix=$need_lib_prefix
15987
15988 # Do we need a version for libraries?
15989 need_version=$need_version
15990
15991 # Whether dlopen is supported.
15992 dlopen_support=$enable_dlopen
15993
15994 # Whether dlopen of programs is supported.
15995 dlopen_self=$enable_dlopen_self
15996
15997 # Whether dlopen of statically linked programs is supported.
15998 dlopen_self_static=$enable_dlopen_self_static
15999
16000 # Compiler flag to prevent dynamic linking.
16001 link_static_flag=$lt_lt_prog_compiler_static_F77
16002
16003 # Compiler flag to turn off builtin functions.
16004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16005
16006 # Compiler flag to allow reflexive dlopens.
16007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16008
16009 # Compiler flag to generate shared objects directly from archives.
16010 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16011
16012 # Compiler flag to generate thread-safe objects.
16013 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16014
16015 # Library versioning type.
16016 version_type=$version_type
16017
16018 # Format of library name prefix.
16019 libname_spec=$lt_libname_spec
16020
16021 # List of archive names. First name is the real one, the rest are links.
16022 # The last name is the one that the linker finds with -lNAME.
16023 library_names_spec=$lt_library_names_spec
16024
16025 # The coded name of the library, if different from the real name.
16026 soname_spec=$lt_soname_spec
16027
16028 # Commands used to build and install an old-style archive.
16029 RANLIB=$lt_RANLIB
16030 old_archive_cmds=$lt_old_archive_cmds_F77
16031 old_postinstall_cmds=$lt_old_postinstall_cmds
16032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16033
16034 # Create an old-style archive from a shared archive.
16035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16036
16037 # Create a temporary old-style archive to link instead of a shared archive.
16038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16039
16040 # Commands used to build and install a shared archive.
16041 archive_cmds=$lt_archive_cmds_F77
16042 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16043 postinstall_cmds=$lt_postinstall_cmds
16044 postuninstall_cmds=$lt_postuninstall_cmds
16045
16046 # Commands used to build a loadable module (assumed same as above if empty)
16047 module_cmds=$lt_module_cmds_F77
16048 module_expsym_cmds=$lt_module_expsym_cmds_F77
16049
16050 # Commands to strip libraries.
16051 old_striplib=$lt_old_striplib
16052 striplib=$lt_striplib
16053
16054 # Dependencies to place before the objects being linked to create a
16055 # shared library.
16056 predep_objects=$lt_predep_objects_F77
16057
16058 # Dependencies to place after the objects being linked to create a
16059 # shared library.
16060 postdep_objects=$lt_postdep_objects_F77
16061
16062 # Dependencies to place before the objects being linked to create a
16063 # shared library.
16064 predeps=$lt_predeps_F77
16065
16066 # Dependencies to place after the objects being linked to create a
16067 # shared library.
16068 postdeps=$lt_postdeps_F77
16069
16070 # The library search path used internally by the compiler when linking
16071 # a shared library.
16072 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16073
16074 # Method to check whether dependent libraries are shared objects.
16075 deplibs_check_method=$lt_deplibs_check_method
16076
16077 # Command to use when deplibs_check_method == file_magic.
16078 file_magic_cmd=$lt_file_magic_cmd
16079
16080 # Flag that allows shared libraries with undefined symbols to be built.
16081 allow_undefined_flag=$lt_allow_undefined_flag_F77
16082
16083 # Flag that forces no undefined symbols.
16084 no_undefined_flag=$lt_no_undefined_flag_F77
16085
16086 # Commands used to finish a libtool library installation in a directory.
16087 finish_cmds=$lt_finish_cmds
16088
16089 # Same as above, but a single script fragment to be evaled but not shown.
16090 finish_eval=$lt_finish_eval
16091
16092 # Take the output of nm and produce a listing of raw symbols and C names.
16093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16094
16095 # Transform the output of nm in a proper C declaration
16096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16097
16098 # Transform the output of nm in a C name address pair
16099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16100
16101 # This is the shared library runtime path variable.
16102 runpath_var=$runpath_var
16103
16104 # This is the shared library path variable.
16105 shlibpath_var=$shlibpath_var
16106
16107 # Is shlibpath searched before the hard-coded library search path?
16108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16109
16110 # How to hardcode a shared library path into an executable.
16111 hardcode_action=$hardcode_action_F77
16112
16113 # Whether we should hardcode library paths into libraries.
16114 hardcode_into_libs=$hardcode_into_libs
16115
16116 # Flag to hardcode \$libdir into a binary during linking.
16117 # This must work even if \$libdir does not exist.
16118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16119
16120 # If ld is used when linking, flag to hardcode \$libdir into
16121 # a binary during linking. This must work even if \$libdir does
16122 # not exist.
16123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16124
16125 # Whether we need a single -rpath flag with a separated argument.
16126 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16127
16128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16129 # resulting binary.
16130 hardcode_direct=$hardcode_direct_F77
16131
16132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16133 # resulting binary.
16134 hardcode_minus_L=$hardcode_minus_L_F77
16135
16136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16137 # the resulting binary.
16138 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16139
16140 # Set to yes if building a shared library automatically hardcodes DIR into the library
16141 # and all subsequent libraries and executables linked against it.
16142 hardcode_automatic=$hardcode_automatic_F77
16143
16144 # Variables whose values should be saved in libtool wrapper scripts and
16145 # restored at relink time.
16146 variables_saved_for_relink="$variables_saved_for_relink"
16147
16148 # Whether libtool must link a program against all its dependency libraries.
16149 link_all_deplibs=$link_all_deplibs_F77
16150
16151 # Compile-time system search path for libraries
16152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16153
16154 # Run-time system search path for libraries
16155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16156
16157 # Fix the shell variable \$srcfile for the compiler.
16158 fix_srcfile_path=$lt_fix_srcfile_path
16159
16160 # Set to yes if exported symbols are required.
16161 always_export_symbols=$always_export_symbols_F77
16162
16163 # The commands to list exported symbols.
16164 export_symbols_cmds=$lt_export_symbols_cmds_F77
16165
16166 # The commands to extract the exported symbol list from a shared archive.
16167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16168
16169 # Symbols that should not be listed in the preloaded symbols.
16170 exclude_expsyms=$lt_exclude_expsyms_F77
16171
16172 # Symbols that must always be exported.
16173 include_expsyms=$lt_include_expsyms_F77
16174
16175 # ### END LIBTOOL TAG CONFIG: $tagname
16176
16177 __EOF__
16178
16179
16180 else
16181 # If there is no Makefile yet, we rely on a make rule to execute
16182 # `config.status --recheck' to rerun these tests and create the
16183 # libtool script then.
16184 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16185 if test -f "$ltmain_in"; then
16186 test -f Makefile && make "$ltmain"
16187 fi
16188 fi
16189
16190
16191 ac_ext=c
16192 ac_cpp='$CPP $CPPFLAGS'
16193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16196
16197 CC="$lt_save_CC"
16198
16199 else
16200 tagname=""
16201 fi
16202 ;;
16203
16204 GCJ)
16205 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16206
16207
16208 # Source file extension for Java test sources.
16209 ac_ext=java
16210
16211 # Object file extension for compiled Java test sources.
16212 objext=o
16213 objext_GCJ=$objext
16214
16215 # Code to be used in simple compile tests
16216 lt_simple_compile_test_code="class foo {}"
16217
16218 # Code to be used in simple link tests
16219 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16220
16221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16222
16223 # If no C compiler was specified, use CC.
16224 LTCC=${LTCC-"$CC"}
16225
16226 # If no C compiler flags were specified, use CFLAGS.
16227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16228
16229 # Allow CC to be a program name with arguments.
16230 compiler=$CC
16231
16232
16233 # save warnings/boilerplate of simple test code
16234 ac_outfile=conftest.$ac_objext
16235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16237 _lt_compiler_boilerplate=`cat conftest.err`
16238 $rm conftest*
16239
16240 ac_outfile=conftest.$ac_objext
16241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16243 _lt_linker_boilerplate=`cat conftest.err`
16244 $rm conftest*
16245
16246
16247 # Allow CC to be a program name with arguments.
16248 lt_save_CC="$CC"
16249 CC=${GCJ-"gcj"}
16250 compiler=$CC
16251 compiler_GCJ=$CC
16252 for cc_temp in $compiler""; do
16253 case $cc_temp in
16254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16256 \-*) ;;
16257 *) break;;
16258 esac
16259 done
16260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16261
16262
16263 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16264 archive_cmds_need_lc_GCJ=no
16265
16266 old_archive_cmds_GCJ=$old_archive_cmds
16267
16268
16269 lt_prog_compiler_no_builtin_flag_GCJ=
16270
16271 if test "$GCC" = yes; then
16272 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16273
16274
16275 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16276 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16277 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280 lt_cv_prog_compiler_rtti_exceptions=no
16281 ac_outfile=conftest.$ac_objext
16282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16283 lt_compiler_flag="-fno-rtti -fno-exceptions"
16284 # Insert the option either (1) after the last *FLAGS variable, or
16285 # (2) before a word containing "conftest.", or (3) at the end.
16286 # Note that $ac_compile itself does not contain backslashes and begins
16287 # with a dollar sign (not a hyphen), so the echo should work correctly.
16288 # The option is referenced via a variable to avoid confusing sed.
16289 lt_compile=`echo "$ac_compile" | $SED \
16290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16292 -e 's:$: $lt_compiler_flag:'`
16293 (eval echo "\"\$as_me:16293: $lt_compile\"" >&5)
16294 (eval "$lt_compile" 2>conftest.err)
16295 ac_status=$?
16296 cat conftest.err >&5
16297 echo "$as_me:16297: \$? = $ac_status" >&5
16298 if (exit $ac_status) && test -s "$ac_outfile"; then
16299 # The compiler can only warn and ignore the option if not recognized
16300 # So say no if there are warnings other than the usual output.
16301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16304 lt_cv_prog_compiler_rtti_exceptions=yes
16305 fi
16306 fi
16307 $rm conftest*
16308
16309 fi
16310 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16311 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16312
16313 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16314 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16315 else
16316 :
16317 fi
16318
16319 fi
16320
16321 lt_prog_compiler_wl_GCJ=
16322 lt_prog_compiler_pic_GCJ=
16323 lt_prog_compiler_static_GCJ=
16324
16325 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16326 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16327
16328 if test "$GCC" = yes; then
16329 lt_prog_compiler_wl_GCJ='-Wl,'
16330 lt_prog_compiler_static_GCJ='-static'
16331
16332 case $host_os in
16333 aix*)
16334 # All AIX code is PIC.
16335 if test "$host_cpu" = ia64; then
16336 # AIX 5 now supports IA64 processor
16337 lt_prog_compiler_static_GCJ='-Bstatic'
16338 fi
16339 ;;
16340
16341 amigaos*)
16342 # FIXME: we need at least 68020 code to build shared libraries, but
16343 # adding the `-m68020' flag to GCC prevents building anything better,
16344 # like `-m68040'.
16345 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16346 ;;
16347
16348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16349 # PIC is the default for these OSes.
16350 ;;
16351
16352 mingw* | cygwin* | pw32* | os2*)
16353 # This hack is so that the source file can tell whether it is being
16354 # built for inclusion in a dll (and should export symbols for example).
16355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16356 # (--disable-auto-import) libraries
16357 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16358 ;;
16359
16360 darwin* | rhapsody*)
16361 # PIC is the default on this platform
16362 # Common symbols not allowed in MH_DYLIB files
16363 lt_prog_compiler_pic_GCJ='-fno-common'
16364 ;;
16365
16366 interix[3-9]*)
16367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16368 # Instead, we relocate shared libraries at runtime.
16369 ;;
16370
16371 msdosdjgpp*)
16372 # Just because we use GCC doesn't mean we suddenly get shared libraries
16373 # on systems that don't support them.
16374 lt_prog_compiler_can_build_shared_GCJ=no
16375 enable_shared=no
16376 ;;
16377
16378 sysv4*MP*)
16379 if test -d /usr/nec; then
16380 lt_prog_compiler_pic_GCJ=-Kconform_pic
16381 fi
16382 ;;
16383
16384 hpux*)
16385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16386 # not for PA HP-UX.
16387 case $host_cpu in
16388 hppa*64*|ia64*)
16389 # +Z the default
16390 ;;
16391 *)
16392 lt_prog_compiler_pic_GCJ='-fPIC'
16393 ;;
16394 esac
16395 ;;
16396
16397 *)
16398 lt_prog_compiler_pic_GCJ='-fPIC'
16399 ;;
16400 esac
16401 else
16402 # PORTME Check for flag to pass linker flags through the system compiler.
16403 case $host_os in
16404 aix*)
16405 lt_prog_compiler_wl_GCJ='-Wl,'
16406 if test "$host_cpu" = ia64; then
16407 # AIX 5 now supports IA64 processor
16408 lt_prog_compiler_static_GCJ='-Bstatic'
16409 else
16410 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16411 fi
16412 ;;
16413 darwin*)
16414 # PIC is the default on this platform
16415 # Common symbols not allowed in MH_DYLIB files
16416 case $cc_basename in
16417 xlc*)
16418 lt_prog_compiler_pic_GCJ='-qnocommon'
16419 lt_prog_compiler_wl_GCJ='-Wl,'
16420 ;;
16421 esac
16422 ;;
16423
16424 mingw* | cygwin* | pw32* | os2*)
16425 # This hack is so that the source file can tell whether it is being
16426 # built for inclusion in a dll (and should export symbols for example).
16427 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16428 ;;
16429
16430 hpux9* | hpux10* | hpux11*)
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16433 # not for PA HP-UX.
16434 case $host_cpu in
16435 hppa*64*|ia64*)
16436 # +Z the default
16437 ;;
16438 *)
16439 lt_prog_compiler_pic_GCJ='+Z'
16440 ;;
16441 esac
16442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16443 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16444 ;;
16445
16446 irix5* | irix6* | nonstopux*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 # PIC (with -KPIC) is the default.
16449 lt_prog_compiler_static_GCJ='-non_shared'
16450 ;;
16451
16452 newsos6)
16453 lt_prog_compiler_pic_GCJ='-KPIC'
16454 lt_prog_compiler_static_GCJ='-Bstatic'
16455 ;;
16456
16457 linux* | k*bsd*-gnu)
16458 case $cc_basename in
16459 icc* | ecc*)
16460 lt_prog_compiler_wl_GCJ='-Wl,'
16461 lt_prog_compiler_pic_GCJ='-KPIC'
16462 lt_prog_compiler_static_GCJ='-static'
16463 ;;
16464 pgcc* | pgf77* | pgf90* | pgf95*)
16465 # Portland Group compilers (*not* the Pentium gcc compiler,
16466 # which looks to be a dead project)
16467 lt_prog_compiler_wl_GCJ='-Wl,'
16468 lt_prog_compiler_pic_GCJ='-fpic'
16469 lt_prog_compiler_static_GCJ='-Bstatic'
16470 ;;
16471 ccc*)
16472 lt_prog_compiler_wl_GCJ='-Wl,'
16473 # All Alpha code is PIC.
16474 lt_prog_compiler_static_GCJ='-non_shared'
16475 ;;
16476 *)
16477 case `$CC -V 2>&1 | sed 5q` in
16478 *Sun\ C*)
16479 # Sun C 5.9
16480 lt_prog_compiler_pic_GCJ='-KPIC'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 lt_prog_compiler_wl_GCJ='-Wl,'
16483 ;;
16484 *Sun\ F*)
16485 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 lt_prog_compiler_wl_GCJ=''
16489 ;;
16490 esac
16491 ;;
16492 esac
16493 ;;
16494
16495 osf3* | osf4* | osf5*)
16496 lt_prog_compiler_wl_GCJ='-Wl,'
16497 # All OSF/1 code is PIC.
16498 lt_prog_compiler_static_GCJ='-non_shared'
16499 ;;
16500
16501 rdos*)
16502 lt_prog_compiler_static_GCJ='-non_shared'
16503 ;;
16504
16505 solaris*)
16506 lt_prog_compiler_pic_GCJ='-KPIC'
16507 lt_prog_compiler_static_GCJ='-Bstatic'
16508 case $cc_basename in
16509 f77* | f90* | f95*)
16510 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16511 *)
16512 lt_prog_compiler_wl_GCJ='-Wl,';;
16513 esac
16514 ;;
16515
16516 sunos4*)
16517 lt_prog_compiler_wl_GCJ='-Qoption ld '
16518 lt_prog_compiler_pic_GCJ='-PIC'
16519 lt_prog_compiler_static_GCJ='-Bstatic'
16520 ;;
16521
16522 sysv4 | sysv4.2uw2* | sysv4.3*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 lt_prog_compiler_pic_GCJ='-KPIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16526 ;;
16527
16528 sysv4*MP*)
16529 if test -d /usr/nec ;then
16530 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16532 fi
16533 ;;
16534
16535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16536 lt_prog_compiler_wl_GCJ='-Wl,'
16537 lt_prog_compiler_pic_GCJ='-KPIC'
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 ;;
16540
16541 unicos*)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 lt_prog_compiler_can_build_shared_GCJ=no
16544 ;;
16545
16546 uts4*)
16547 lt_prog_compiler_pic_GCJ='-pic'
16548 lt_prog_compiler_static_GCJ='-Bstatic'
16549 ;;
16550
16551 *)
16552 lt_prog_compiler_can_build_shared_GCJ=no
16553 ;;
16554 esac
16555 fi
16556
16557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16558 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16559
16560 #
16561 # Check to make sure the PIC flag actually works.
16562 #
16563 if test -n "$lt_prog_compiler_pic_GCJ"; then
16564
16565 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16566 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16567 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570 lt_prog_compiler_pic_works_GCJ=no
16571 ac_outfile=conftest.$ac_objext
16572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16573 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16574 # Insert the option either (1) after the last *FLAGS variable, or
16575 # (2) before a word containing "conftest.", or (3) at the end.
16576 # Note that $ac_compile itself does not contain backslashes and begins
16577 # with a dollar sign (not a hyphen), so the echo should work correctly.
16578 # The option is referenced via a variable to avoid confusing sed.
16579 lt_compile=`echo "$ac_compile" | $SED \
16580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16582 -e 's:$: $lt_compiler_flag:'`
16583 (eval echo "\"\$as_me:16583: $lt_compile\"" >&5)
16584 (eval "$lt_compile" 2>conftest.err)
16585 ac_status=$?
16586 cat conftest.err >&5
16587 echo "$as_me:16587: \$? = $ac_status" >&5
16588 if (exit $ac_status) && test -s "$ac_outfile"; then
16589 # The compiler can only warn and ignore the option if not recognized
16590 # So say no if there are warnings other than the usual output.
16591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16594 lt_prog_compiler_pic_works_GCJ=yes
16595 fi
16596 fi
16597 $rm conftest*
16598
16599 fi
16600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16601 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16602
16603 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16604 case $lt_prog_compiler_pic_GCJ in
16605 "" | " "*) ;;
16606 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16607 esac
16608 else
16609 lt_prog_compiler_pic_GCJ=
16610 lt_prog_compiler_can_build_shared_GCJ=no
16611 fi
16612
16613 fi
16614 case $host_os in
16615 # For platforms which do not support PIC, -DPIC is meaningless:
16616 *djgpp*)
16617 lt_prog_compiler_pic_GCJ=
16618 ;;
16619 *)
16620 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16621 ;;
16622 esac
16623
16624 #
16625 # Check to make sure the static flag actually works.
16626 #
16627 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16629 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16630 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 lt_prog_compiler_static_works_GCJ=no
16634 save_LDFLAGS="$LDFLAGS"
16635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16638 # The linker can only warn and ignore the option if not recognized
16639 # So say no if there are warnings
16640 if test -s conftest.err; then
16641 # Append any errors to the config.log.
16642 cat conftest.err 1>&5
16643 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16645 if diff conftest.exp conftest.er2 >/dev/null; then
16646 lt_prog_compiler_static_works_GCJ=yes
16647 fi
16648 else
16649 lt_prog_compiler_static_works_GCJ=yes
16650 fi
16651 fi
16652 $rm conftest*
16653 LDFLAGS="$save_LDFLAGS"
16654
16655 fi
16656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16657 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16658
16659 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16660 :
16661 else
16662 lt_prog_compiler_static_GCJ=
16663 fi
16664
16665
16666 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16667 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16668 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671 lt_cv_prog_compiler_c_o_GCJ=no
16672 $rm -r conftest 2>/dev/null
16673 mkdir conftest
16674 cd conftest
16675 mkdir out
16676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16677
16678 lt_compiler_flag="-o out/conftest2.$ac_objext"
16679 # Insert the option either (1) after the last *FLAGS variable, or
16680 # (2) before a word containing "conftest.", or (3) at the end.
16681 # Note that $ac_compile itself does not contain backslashes and begins
16682 # with a dollar sign (not a hyphen), so the echo should work correctly.
16683 lt_compile=`echo "$ac_compile" | $SED \
16684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16686 -e 's:$: $lt_compiler_flag:'`
16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5)
16688 (eval "$lt_compile" 2>out/conftest.err)
16689 ac_status=$?
16690 cat out/conftest.err >&5
16691 echo "$as_me:16691: \$? = $ac_status" >&5
16692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16693 then
16694 # The compiler can only warn and ignore the option if not recognized
16695 # So say no if there are warnings
16696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16699 lt_cv_prog_compiler_c_o_GCJ=yes
16700 fi
16701 fi
16702 chmod u+w . 2>&5
16703 $rm conftest*
16704 # SGI C++ compiler will create directory out/ii_files/ for
16705 # template instantiation
16706 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16707 $rm out/* && rmdir out
16708 cd ..
16709 rmdir conftest
16710 $rm conftest*
16711
16712 fi
16713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16714 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16715
16716
16717 hard_links="nottested"
16718 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16719 # do not overwrite the value of need_locks provided by the user
16720 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16721 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16722 hard_links=yes
16723 $rm conftest*
16724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16725 touch conftest.a
16726 ln conftest.a conftest.b 2>&5 || hard_links=no
16727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16728 { echo "$as_me:$LINENO: result: $hard_links" >&5
16729 echo "${ECHO_T}$hard_links" >&6; }
16730 if test "$hard_links" = no; then
16731 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16732 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16733 need_locks=warn
16734 fi
16735 else
16736 need_locks=no
16737 fi
16738
16739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16741
16742 runpath_var=
16743 allow_undefined_flag_GCJ=
16744 enable_shared_with_static_runtimes_GCJ=no
16745 archive_cmds_GCJ=
16746 archive_expsym_cmds_GCJ=
16747 old_archive_From_new_cmds_GCJ=
16748 old_archive_from_expsyms_cmds_GCJ=
16749 export_dynamic_flag_spec_GCJ=
16750 whole_archive_flag_spec_GCJ=
16751 thread_safe_flag_spec_GCJ=
16752 hardcode_libdir_flag_spec_GCJ=
16753 hardcode_libdir_flag_spec_ld_GCJ=
16754 hardcode_libdir_separator_GCJ=
16755 hardcode_direct_GCJ=no
16756 hardcode_minus_L_GCJ=no
16757 hardcode_shlibpath_var_GCJ=unsupported
16758 link_all_deplibs_GCJ=unknown
16759 hardcode_automatic_GCJ=no
16760 module_cmds_GCJ=
16761 module_expsym_cmds_GCJ=
16762 always_export_symbols_GCJ=no
16763 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16764 # include_expsyms should be a list of space-separated symbols to be *always*
16765 # included in the symbol list
16766 include_expsyms_GCJ=
16767 # exclude_expsyms can be an extended regexp of symbols to exclude
16768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16770 # as well as any symbol that contains `d'.
16771 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16773 # platforms (ab)use it in PIC code, but their linkers get confused if
16774 # the symbol is explicitly referenced. Since portable code cannot
16775 # rely on this symbol name, it's probably fine to never include it in
16776 # preloaded symbol tables.
16777 extract_expsyms_cmds=
16778 # Just being paranoid about ensuring that cc_basename is set.
16779 for cc_temp in $compiler""; do
16780 case $cc_temp in
16781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16783 \-*) ;;
16784 *) break;;
16785 esac
16786 done
16787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16788
16789 case $host_os in
16790 cygwin* | mingw* | pw32*)
16791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16792 # When not using gcc, we currently assume that we are using
16793 # Microsoft Visual C++.
16794 if test "$GCC" != yes; then
16795 with_gnu_ld=no
16796 fi
16797 ;;
16798 interix*)
16799 # we just hope/assume this is gcc and not c89 (= MSVC++)
16800 with_gnu_ld=yes
16801 ;;
16802 openbsd*)
16803 with_gnu_ld=no
16804 ;;
16805 esac
16806
16807 ld_shlibs_GCJ=yes
16808 if test "$with_gnu_ld" = yes; then
16809 # If archive_cmds runs LD, not CC, wlarc should be empty
16810 wlarc='${wl}'
16811
16812 # Set some defaults for GNU ld with shared library support. These
16813 # are reset later if shared libraries are not supported. Putting them
16814 # here allows them to be overridden if necessary.
16815 runpath_var=LD_RUN_PATH
16816 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16817 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16818 # ancient GNU ld didn't support --whole-archive et. al.
16819 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16820 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16821 else
16822 whole_archive_flag_spec_GCJ=
16823 fi
16824 supports_anon_versioning=no
16825 case `$LD -v 2>/dev/null` in
16826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16829 *\ 2.11.*) ;; # other 2.11 versions
16830 *) supports_anon_versioning=yes ;;
16831 esac
16832
16833 # See if GNU ld supports shared libraries.
16834 case $host_os in
16835 aix3* | aix4* | aix5*)
16836 # On AIX/PPC, the GNU linker is very broken
16837 if test "$host_cpu" != ia64; then
16838 ld_shlibs_GCJ=no
16839 cat <<EOF 1>&2
16840
16841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16842 *** to be unable to reliably create shared libraries on AIX.
16843 *** Therefore, libtool is disabling shared libraries support. If you
16844 *** really care for shared libraries, you may want to modify your PATH
16845 *** so that a non-GNU linker is found, and then restart.
16846
16847 EOF
16848 fi
16849 ;;
16850
16851 amigaos*)
16852 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)'
16853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16854 hardcode_minus_L_GCJ=yes
16855
16856 # Samuel A. Falvo II <[email protected]> reports
16857 # that the semantics of dynamic libraries on AmigaOS, at least up
16858 # to version 4, is to share data among multiple programs linked
16859 # with the same dynamic library. Since this doesn't match the
16860 # behavior of shared libraries on other platforms, we can't use
16861 # them.
16862 ld_shlibs_GCJ=no
16863 ;;
16864
16865 beos*)
16866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16867 allow_undefined_flag_GCJ=unsupported
16868 # Joseph Beckenbach <[email protected]> says some releases of gcc
16869 # support --undefined. This deserves some investigation. FIXME
16870 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16871 else
16872 ld_shlibs_GCJ=no
16873 fi
16874 ;;
16875
16876 cygwin* | mingw* | pw32*)
16877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16878 # as there is no search path for DLLs.
16879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880 allow_undefined_flag_GCJ=unsupported
16881 always_export_symbols_GCJ=no
16882 enable_shared_with_static_runtimes_GCJ=yes
16883 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16884
16885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16887 # If the export-symbols file already is a .def file (1st line
16888 # is EXPORTS), use it as is; otherwise, prepend...
16889 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16890 cp $export_symbols $output_objdir/$soname.def;
16891 else
16892 echo EXPORTS > $output_objdir/$soname.def;
16893 cat $export_symbols >> $output_objdir/$soname.def;
16894 fi~
16895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16896 else
16897 ld_shlibs_GCJ=no
16898 fi
16899 ;;
16900
16901 interix[3-9]*)
16902 hardcode_direct_GCJ=no
16903 hardcode_shlibpath_var_GCJ=no
16904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16905 export_dynamic_flag_spec_GCJ='${wl}-E'
16906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16907 # Instead, shared libraries are loaded at an image base (0x10000000 by
16908 # default) and relocated if they conflict, which is a slow very memory
16909 # consuming and fragmenting process. To avoid this, we pick a random,
16910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16912 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'
16913 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'
16914 ;;
16915
16916 gnu* | linux* | k*bsd*-gnu)
16917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16918 tmp_addflag=
16919 case $cc_basename,$host_cpu in
16920 pgcc*) # Portland Group C compiler
16921 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'
16922 tmp_addflag=' $pic_flag'
16923 ;;
16924 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16925 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'
16926 tmp_addflag=' $pic_flag -Mnomain' ;;
16927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16928 tmp_addflag=' -i_dynamic' ;;
16929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16930 tmp_addflag=' -i_dynamic -nofor_main' ;;
16931 ifc* | ifort*) # Intel Fortran compiler
16932 tmp_addflag=' -nofor_main' ;;
16933 esac
16934 case `$CC -V 2>&1 | sed 5q` in
16935 *Sun\ C*) # Sun C 5.9
16936 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16937 tmp_sharedflag='-G' ;;
16938 *Sun\ F*) # Sun Fortran 8.3
16939 tmp_sharedflag='-G' ;;
16940 *)
16941 tmp_sharedflag='-shared' ;;
16942 esac
16943 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16944
16945 if test $supports_anon_versioning = yes; then
16946 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16948 $echo "local: *; };" >> $output_objdir/$libname.ver~
16949 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16950 fi
16951 else
16952 ld_shlibs_GCJ=no
16953 fi
16954 ;;
16955
16956 netbsd*)
16957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16958 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16959 wlarc=
16960 else
16961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16962 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16963 fi
16964 ;;
16965
16966 solaris*)
16967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16968 ld_shlibs_GCJ=no
16969 cat <<EOF 1>&2
16970
16971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16972 *** create shared libraries on Solaris systems. Therefore, libtool
16973 *** is disabling shared libraries support. We urge you to upgrade GNU
16974 *** binutils to release 2.9.1 or newer. Another option is to modify
16975 *** your PATH or compiler configuration so that the native linker is
16976 *** used, and then restart.
16977
16978 EOF
16979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16981 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16982 else
16983 ld_shlibs_GCJ=no
16984 fi
16985 ;;
16986
16987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16988 case `$LD -v 2>&1` in
16989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16990 ld_shlibs_GCJ=no
16991 cat <<_LT_EOF 1>&2
16992
16993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16994 *** reliably create shared libraries on SCO systems. Therefore, libtool
16995 *** is disabling shared libraries support. We urge you to upgrade GNU
16996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16997 *** your PATH or compiler configuration so that the native linker is
16998 *** used, and then restart.
16999
17000 _LT_EOF
17001 ;;
17002 *)
17003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17004 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17005 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17006 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17007 else
17008 ld_shlibs_GCJ=no
17009 fi
17010 ;;
17011 esac
17012 ;;
17013
17014 sunos4*)
17015 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17016 wlarc=
17017 hardcode_direct_GCJ=yes
17018 hardcode_shlibpath_var_GCJ=no
17019 ;;
17020
17021 *)
17022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17023 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17025 else
17026 ld_shlibs_GCJ=no
17027 fi
17028 ;;
17029 esac
17030
17031 if test "$ld_shlibs_GCJ" = no; then
17032 runpath_var=
17033 hardcode_libdir_flag_spec_GCJ=
17034 export_dynamic_flag_spec_GCJ=
17035 whole_archive_flag_spec_GCJ=
17036 fi
17037 else
17038 # PORTME fill in a description of your system's linker (not GNU ld)
17039 case $host_os in
17040 aix3*)
17041 allow_undefined_flag_GCJ=unsupported
17042 always_export_symbols_GCJ=yes
17043 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'
17044 # Note: this linker hardcodes the directories in LIBPATH if there
17045 # are no directories specified by -L.
17046 hardcode_minus_L_GCJ=yes
17047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17048 # Neither direct hardcoding nor static linking is supported with a
17049 # broken collect2.
17050 hardcode_direct_GCJ=unsupported
17051 fi
17052 ;;
17053
17054 aix4* | aix5*)
17055 if test "$host_cpu" = ia64; then
17056 # On IA64, the linker does run time linking by default, so we don't
17057 # have to do anything special.
17058 aix_use_runtimelinking=no
17059 exp_sym_flag='-Bexport'
17060 no_entry_flag=""
17061 else
17062 # If we're using GNU nm, then we don't want the "-C" option.
17063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17065 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'
17066 else
17067 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'
17068 fi
17069 aix_use_runtimelinking=no
17070
17071 # Test if we are trying to use run time linking or normal
17072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17073 # need to do runtime linking.
17074 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17075 for ld_flag in $LDFLAGS; do
17076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17077 aix_use_runtimelinking=yes
17078 break
17079 fi
17080 done
17081 ;;
17082 esac
17083
17084 exp_sym_flag='-bexport'
17085 no_entry_flag='-bnoentry'
17086 fi
17087
17088 # When large executables or shared objects are built, AIX ld can
17089 # have problems creating the table of contents. If linking a library
17090 # or program results in "error TOC overflow" add -mminimal-toc to
17091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17093
17094 archive_cmds_GCJ=''
17095 hardcode_direct_GCJ=yes
17096 hardcode_libdir_separator_GCJ=':'
17097 link_all_deplibs_GCJ=yes
17098
17099 if test "$GCC" = yes; then
17100 case $host_os in aix4.[012]|aix4.[012].*)
17101 # We only want to do this on AIX 4.2 and lower, the check
17102 # below for broken collect2 doesn't work under 4.3+
17103 collect2name=`${CC} -print-prog-name=collect2`
17104 if test -f "$collect2name" && \
17105 strings "$collect2name" | grep resolve_lib_name >/dev/null
17106 then
17107 # We have reworked collect2
17108 :
17109 else
17110 # We have old collect2
17111 hardcode_direct_GCJ=unsupported
17112 # It fails to find uninstalled libraries when the uninstalled
17113 # path is not listed in the libpath. Setting hardcode_minus_L
17114 # to unsupported forces relinking
17115 hardcode_minus_L_GCJ=yes
17116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17117 hardcode_libdir_separator_GCJ=
17118 fi
17119 ;;
17120 esac
17121 shared_flag='-shared'
17122 if test "$aix_use_runtimelinking" = yes; then
17123 shared_flag="$shared_flag "'${wl}-G'
17124 fi
17125 else
17126 # not using gcc
17127 if test "$host_cpu" = ia64; then
17128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17129 # chokes on -Wl,-G. The following line is correct:
17130 shared_flag='-G'
17131 else
17132 if test "$aix_use_runtimelinking" = yes; then
17133 shared_flag='${wl}-G'
17134 else
17135 shared_flag='${wl}-bM:SRE'
17136 fi
17137 fi
17138 fi
17139
17140 # It seems that -bexpall does not export symbols beginning with
17141 # underscore (_), so it is better to generate a list of symbols to export.
17142 always_export_symbols_GCJ=yes
17143 if test "$aix_use_runtimelinking" = yes; then
17144 # Warning - without using the other runtime loading flags (-brtl),
17145 # -berok will link without error, but may produce a broken library.
17146 allow_undefined_flag_GCJ='-berok'
17147 # Determine the default libpath from the value encoded in an empty executable.
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154
17155 int
17156 main ()
17157 {
17158
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181
17182 lt_aix_libpath_sed='
17183 /Import File Strings/,/^$/ {
17184 /^0/ {
17185 s/^0 *\(.*\)$/\1/
17186 p
17187 }
17188 }'
17189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17190 # Check for a 64-bit object if we didn't find anything.
17191 if test -z "$aix_libpath"; then
17192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17193 fi
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17197
17198
17199 fi
17200
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17204
17205 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17206 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"
17207 else
17208 if test "$host_cpu" = ia64; then
17209 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17210 allow_undefined_flag_GCJ="-z nodefs"
17211 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"
17212 else
17213 # Determine the default libpath from the value encoded in an empty executable.
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h. */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17220
17221 int
17222 main ()
17223 {
17224
17225 ;
17226 return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } && {
17243 test -z "$ac_c_werror_flag" ||
17244 test ! -s conftest.err
17245 } && test -s conftest$ac_exeext &&
17246 $as_test_x conftest$ac_exeext; then
17247
17248 lt_aix_libpath_sed='
17249 /Import File Strings/,/^$/ {
17250 /^0/ {
17251 s/^0 *\(.*\)$/\1/
17252 p
17253 }
17254 }'
17255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17256 # Check for a 64-bit object if we didn't find anything.
17257 if test -z "$aix_libpath"; then
17258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17259 fi
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264
17265 fi
17266
17267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17268 conftest$ac_exeext conftest.$ac_ext
17269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17270
17271 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17272 # Warning - without using the other run time loading flags,
17273 # -berok will link without error, but may produce a broken library.
17274 no_undefined_flag_GCJ=' ${wl}-bernotok'
17275 allow_undefined_flag_GCJ=' ${wl}-berok'
17276 # Exported symbols can be pulled into shared objects from archives
17277 whole_archive_flag_spec_GCJ='$convenience'
17278 archive_cmds_need_lc_GCJ=yes
17279 # This is similar to how AIX traditionally builds its shared libraries.
17280 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'
17281 fi
17282 fi
17283 ;;
17284
17285 amigaos*)
17286 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)'
17287 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17288 hardcode_minus_L_GCJ=yes
17289 # see comment about different semantics on the GNU ld section
17290 ld_shlibs_GCJ=no
17291 ;;
17292
17293 bsdi[45]*)
17294 export_dynamic_flag_spec_GCJ=-rdynamic
17295 ;;
17296
17297 cygwin* | mingw* | pw32*)
17298 # When not using gcc, we currently assume that we are using
17299 # Microsoft Visual C++.
17300 # hardcode_libdir_flag_spec is actually meaningless, as there is
17301 # no search path for DLLs.
17302 hardcode_libdir_flag_spec_GCJ=' '
17303 allow_undefined_flag_GCJ=unsupported
17304 # Tell ltmain to make .lib files, not .a files.
17305 libext=lib
17306 # Tell ltmain to make .dll files, not .so files.
17307 shrext_cmds=".dll"
17308 # FIXME: Setting linknames here is a bad hack.
17309 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17310 # The linker will automatically build a .lib file if we build a DLL.
17311 old_archive_From_new_cmds_GCJ='true'
17312 # FIXME: Should let the user specify the lib program.
17313 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17314 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17315 enable_shared_with_static_runtimes_GCJ=yes
17316 ;;
17317
17318 darwin* | rhapsody*)
17319 case $host_os in
17320 rhapsody* | darwin1.[012])
17321 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17322 ;;
17323 *) # Darwin 1.3 on
17324 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17325 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17326 else
17327 case ${MACOSX_DEPLOYMENT_TARGET} in
17328 10.[012])
17329 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17330 ;;
17331 10.*)
17332 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17333 ;;
17334 esac
17335 fi
17336 ;;
17337 esac
17338 archive_cmds_need_lc_GCJ=no
17339 hardcode_direct_GCJ=no
17340 hardcode_automatic_GCJ=yes
17341 hardcode_shlibpath_var_GCJ=unsupported
17342 whole_archive_flag_spec_GCJ=''
17343 link_all_deplibs_GCJ=yes
17344 if test "$GCC" = yes ; then
17345 output_verbose_link_cmd='echo'
17346 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17347 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17349 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}'
17350 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}'
17351 else
17352 case $cc_basename in
17353 xlc*)
17354 output_verbose_link_cmd='echo'
17355 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17356 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17358 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17359 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}'
17360 ;;
17361 *)
17362 ld_shlibs_GCJ=no
17363 ;;
17364 esac
17365 fi
17366 ;;
17367
17368 dgux*)
17369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17371 hardcode_shlibpath_var_GCJ=no
17372 ;;
17373
17374 freebsd1*)
17375 ld_shlibs_GCJ=no
17376 ;;
17377
17378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17379 # support. Future versions do this automatically, but an explicit c++rt0.o
17380 # does not break anything, and helps significantly (at the cost of a little
17381 # extra space).
17382 freebsd2.2*)
17383 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17384 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17385 hardcode_direct_GCJ=yes
17386 hardcode_shlibpath_var_GCJ=no
17387 ;;
17388
17389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17390 freebsd2*)
17391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17392 hardcode_direct_GCJ=yes
17393 hardcode_minus_L_GCJ=yes
17394 hardcode_shlibpath_var_GCJ=no
17395 ;;
17396
17397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17398 freebsd* | dragonfly*)
17399 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17400 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17401 hardcode_direct_GCJ=yes
17402 hardcode_shlibpath_var_GCJ=no
17403 ;;
17404
17405 hpux9*)
17406 if test "$GCC" = yes; then
17407 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'
17408 else
17409 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'
17410 fi
17411 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17412 hardcode_libdir_separator_GCJ=:
17413 hardcode_direct_GCJ=yes
17414
17415 # hardcode_minus_L: Not really in the search PATH,
17416 # but as the default location of the library.
17417 hardcode_minus_L_GCJ=yes
17418 export_dynamic_flag_spec_GCJ='${wl}-E'
17419 ;;
17420
17421 hpux10*)
17422 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17423 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17424 else
17425 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17426 fi
17427 if test "$with_gnu_ld" = no; then
17428 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17429 hardcode_libdir_separator_GCJ=:
17430
17431 hardcode_direct_GCJ=yes
17432 export_dynamic_flag_spec_GCJ='${wl}-E'
17433
17434 # hardcode_minus_L: Not really in the search PATH,
17435 # but as the default location of the library.
17436 hardcode_minus_L_GCJ=yes
17437 fi
17438 ;;
17439
17440 hpux11*)
17441 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17442 case $host_cpu in
17443 hppa*64*)
17444 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 ;;
17446 ia64*)
17447 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17448 ;;
17449 *)
17450 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451 ;;
17452 esac
17453 else
17454 case $host_cpu in
17455 hppa*64*)
17456 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17457 ;;
17458 ia64*)
17459 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17460 ;;
17461 *)
17462 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17463 ;;
17464 esac
17465 fi
17466 if test "$with_gnu_ld" = no; then
17467 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17468 hardcode_libdir_separator_GCJ=:
17469
17470 case $host_cpu in
17471 hppa*64*|ia64*)
17472 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17473 hardcode_direct_GCJ=no
17474 hardcode_shlibpath_var_GCJ=no
17475 ;;
17476 *)
17477 hardcode_direct_GCJ=yes
17478 export_dynamic_flag_spec_GCJ='${wl}-E'
17479
17480 # hardcode_minus_L: Not really in the search PATH,
17481 # but as the default location of the library.
17482 hardcode_minus_L_GCJ=yes
17483 ;;
17484 esac
17485 fi
17486 ;;
17487
17488 irix5* | irix6* | nonstopux*)
17489 if test "$GCC" = yes; then
17490 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'
17491 else
17492 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'
17493 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17494 fi
17495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17496 hardcode_libdir_separator_GCJ=:
17497 link_all_deplibs_GCJ=yes
17498 ;;
17499
17500 netbsd*)
17501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17503 else
17504 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17505 fi
17506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507 hardcode_direct_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=no
17509 ;;
17510
17511 newsos6)
17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513 hardcode_direct_GCJ=yes
17514 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17515 hardcode_libdir_separator_GCJ=:
17516 hardcode_shlibpath_var_GCJ=no
17517 ;;
17518
17519 openbsd*)
17520 if test -f /usr/libexec/ld.so; then
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17524 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17525 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17526 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17527 export_dynamic_flag_spec_GCJ='${wl}-E'
17528 else
17529 case $host_os in
17530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17531 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17533 ;;
17534 *)
17535 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17536 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17537 ;;
17538 esac
17539 fi
17540 else
17541 ld_shlibs_GCJ=no
17542 fi
17543 ;;
17544
17545 os2*)
17546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547 hardcode_minus_L_GCJ=yes
17548 allow_undefined_flag_GCJ=unsupported
17549 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'
17550 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17551 ;;
17552
17553 osf3*)
17554 if test "$GCC" = yes; then
17555 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17556 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'
17557 else
17558 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17559 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'
17560 fi
17561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17562 hardcode_libdir_separator_GCJ=:
17563 ;;
17564
17565 osf4* | osf5*) # as osf3* with the addition of -msym flag
17566 if test "$GCC" = yes; then
17567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17568 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'
17569 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17570 else
17571 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17572 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'
17573 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~
17574 $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'
17575
17576 # Both c and cxx compiler support -rpath directly
17577 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17578 fi
17579 hardcode_libdir_separator_GCJ=:
17580 ;;
17581
17582 solaris*)
17583 no_undefined_flag_GCJ=' -z text'
17584 if test "$GCC" = yes; then
17585 wlarc='${wl}'
17586 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17588 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17589 else
17590 wlarc=''
17591 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17592 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17594 fi
17595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17596 hardcode_shlibpath_var_GCJ=no
17597 case $host_os in
17598 solaris2.[0-5] | solaris2.[0-5].*) ;;
17599 *)
17600 # The compiler driver will combine and reorder linker options,
17601 # but understands `-z linker_flag'. GCC discards it without `$wl',
17602 # but is careful enough not to reorder.
17603 # Supported since Solaris 2.6 (maybe 2.5.1?)
17604 if test "$GCC" = yes; then
17605 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17606 else
17607 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17608 fi
17609 ;;
17610 esac
17611 link_all_deplibs_GCJ=yes
17612 ;;
17613
17614 sunos4*)
17615 if test "x$host_vendor" = xsequent; then
17616 # Use $CC to link under sequent, because it throws in some extra .o
17617 # files that make .init and .fini sections work.
17618 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17619 else
17620 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17621 fi
17622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17623 hardcode_direct_GCJ=yes
17624 hardcode_minus_L_GCJ=yes
17625 hardcode_shlibpath_var_GCJ=no
17626 ;;
17627
17628 sysv4)
17629 case $host_vendor in
17630 sni)
17631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 hardcode_direct_GCJ=yes # is this really true???
17633 ;;
17634 siemens)
17635 ## LD is ld it makes a PLAMLIB
17636 ## CC just makes a GrossModule.
17637 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17638 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17639 hardcode_direct_GCJ=no
17640 ;;
17641 motorola)
17642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17644 ;;
17645 esac
17646 runpath_var='LD_RUN_PATH'
17647 hardcode_shlibpath_var_GCJ=no
17648 ;;
17649
17650 sysv4.3*)
17651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17652 hardcode_shlibpath_var_GCJ=no
17653 export_dynamic_flag_spec_GCJ='-Bexport'
17654 ;;
17655
17656 sysv4*MP*)
17657 if test -d /usr/nec; then
17658 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17659 hardcode_shlibpath_var_GCJ=no
17660 runpath_var=LD_RUN_PATH
17661 hardcode_runpath_var=yes
17662 ld_shlibs_GCJ=yes
17663 fi
17664 ;;
17665
17666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17667 no_undefined_flag_GCJ='${wl}-z,text'
17668 archive_cmds_need_lc_GCJ=no
17669 hardcode_shlibpath_var_GCJ=no
17670 runpath_var='LD_RUN_PATH'
17671
17672 if test "$GCC" = yes; then
17673 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17674 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 else
17676 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17677 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17678 fi
17679 ;;
17680
17681 sysv5* | sco3.2v5* | sco5v6*)
17682 # Note: We can NOT use -z defs as we might desire, because we do not
17683 # link with -lc, and that would cause any symbols used from libc to
17684 # always be unresolved, which means just about no library would
17685 # ever link correctly. If we're not using GNU ld we use -z text
17686 # though, which does catch some bad symbols but isn't as heavy-handed
17687 # as -z defs.
17688 no_undefined_flag_GCJ='${wl}-z,text'
17689 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17690 archive_cmds_need_lc_GCJ=no
17691 hardcode_shlibpath_var_GCJ=no
17692 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17693 hardcode_libdir_separator_GCJ=':'
17694 link_all_deplibs_GCJ=yes
17695 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17696 runpath_var='LD_RUN_PATH'
17697
17698 if test "$GCC" = yes; then
17699 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17700 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17701 else
17702 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17703 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17704 fi
17705 ;;
17706
17707 uts4*)
17708 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17709 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710 hardcode_shlibpath_var_GCJ=no
17711 ;;
17712
17713 *)
17714 ld_shlibs_GCJ=no
17715 ;;
17716 esac
17717 fi
17718
17719 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17722
17723 #
17724 # Do we need to explicitly link libc?
17725 #
17726 case "x$archive_cmds_need_lc_GCJ" in
17727 x|xyes)
17728 # Assume -lc should be added
17729 archive_cmds_need_lc_GCJ=yes
17730
17731 if test "$enable_shared" = yes && test "$GCC" = yes; then
17732 case $archive_cmds_GCJ in
17733 *'~'*)
17734 # FIXME: we may have to deal with multi-command sequences.
17735 ;;
17736 '$CC '*)
17737 # Test whether the compiler implicitly links with -lc since on some
17738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17739 # to ld, don't add -lc before -lgcc.
17740 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17741 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17742 $rm conftest*
17743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17744
17745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17746 (eval $ac_compile) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } 2>conftest.err; then
17750 soname=conftest
17751 lib=conftest
17752 libobjs=conftest.$ac_objext
17753 deplibs=
17754 wl=$lt_prog_compiler_wl_GCJ
17755 pic_flag=$lt_prog_compiler_pic_GCJ
17756 compiler_flags=-v
17757 linker_flags=-v
17758 verstring=
17759 output_objdir=.
17760 libname=conftest
17761 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17762 allow_undefined_flag_GCJ=
17763 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17764 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }
17768 then
17769 archive_cmds_need_lc_GCJ=no
17770 else
17771 archive_cmds_need_lc_GCJ=yes
17772 fi
17773 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17774 else
17775 cat conftest.err 1>&5
17776 fi
17777 $rm conftest*
17778 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17779 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17780 ;;
17781 esac
17782 fi
17783 ;;
17784 esac
17785
17786 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17787 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17788 library_names_spec=
17789 libname_spec='lib$name'
17790 soname_spec=
17791 shrext_cmds=".so"
17792 postinstall_cmds=
17793 postuninstall_cmds=
17794 finish_cmds=
17795 finish_eval=
17796 shlibpath_var=
17797 shlibpath_overrides_runpath=unknown
17798 version_type=none
17799 dynamic_linker="$host_os ld.so"
17800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17801
17802 need_lib_prefix=unknown
17803 hardcode_into_libs=no
17804
17805 # when you set need_version to no, make sure it does not cause -set_version
17806 # flags to be left without arguments
17807 need_version=unknown
17808
17809 case $host_os in
17810 aix3*)
17811 version_type=linux
17812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17813 shlibpath_var=LIBPATH
17814
17815 # AIX 3 has no versioning support, so we append a major version to the name.
17816 soname_spec='${libname}${release}${shared_ext}$major'
17817 ;;
17818
17819 aix4* | aix5*)
17820 version_type=linux
17821 need_lib_prefix=no
17822 need_version=no
17823 hardcode_into_libs=yes
17824 if test "$host_cpu" = ia64; then
17825 # AIX 5 supports IA64
17826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17827 shlibpath_var=LD_LIBRARY_PATH
17828 else
17829 # With GCC up to 2.95.x, collect2 would create an import file
17830 # for dependence libraries. The import file would start with
17831 # the line `#! .'. This would cause the generated library to
17832 # depend on `.', always an invalid library. This was fixed in
17833 # development snapshots of GCC prior to 3.0.
17834 case $host_os in
17835 aix4 | aix4.[01] | aix4.[01].*)
17836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17837 echo ' yes '
17838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17839 :
17840 else
17841 can_build_shared=no
17842 fi
17843 ;;
17844 esac
17845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17846 # soname into executable. Probably we can add versioning support to
17847 # collect2, so additional links can be useful in future.
17848 if test "$aix_use_runtimelinking" = yes; then
17849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17850 # instead of lib<name>.a to let people know that these are not
17851 # typical AIX shared libraries.
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 else
17854 # We preserve .a as extension for shared libraries through AIX4.2
17855 # and later when we are not doing run time linking.
17856 library_names_spec='${libname}${release}.a $libname.a'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 fi
17859 shlibpath_var=LIBPATH
17860 fi
17861 ;;
17862
17863 amigaos*)
17864 library_names_spec='$libname.ixlibrary $libname.a'
17865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17866 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'
17867 ;;
17868
17869 beos*)
17870 library_names_spec='${libname}${shared_ext}'
17871 dynamic_linker="$host_os ld.so"
17872 shlibpath_var=LIBRARY_PATH
17873 ;;
17874
17875 bsdi[45]*)
17876 version_type=linux
17877 need_version=no
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879 soname_spec='${libname}${release}${shared_ext}$major'
17880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17884 # the default ld.so.conf also contains /usr/contrib/lib and
17885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17886 # libtool to hard-code these into programs
17887 ;;
17888
17889 cygwin* | mingw* | pw32*)
17890 version_type=windows
17891 shrext_cmds=".dll"
17892 need_version=no
17893 need_lib_prefix=no
17894
17895 case $GCC,$host_os in
17896 yes,cygwin* | yes,mingw* | yes,pw32*)
17897 library_names_spec='$libname.dll.a'
17898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17899 postinstall_cmds='base_file=`basename \${file}`~
17900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17901 dldir=$destdir/`dirname \$dlpath`~
17902 test -d \$dldir || mkdir -p \$dldir~
17903 $install_prog $dir/$dlname \$dldir/$dlname~
17904 chmod a+x \$dldir/$dlname'
17905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17906 dlpath=$dir/\$dldll~
17907 $rm \$dlpath'
17908 shlibpath_overrides_runpath=yes
17909
17910 case $host_os in
17911 cygwin*)
17912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17914 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17915 ;;
17916 mingw*)
17917 # MinGW DLLs use traditional 'lib' prefix
17918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17920 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17921 # It is most probably a Windows format PATH printed by
17922 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17923 # path with ; separators, and with drive letters. We can handle the
17924 # drive letters (cygwin fileutils understands them), so leave them,
17925 # especially as we might pass files found there to a mingw objdump,
17926 # which wouldn't understand a cygwinified path. Ahh.
17927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17928 else
17929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17930 fi
17931 ;;
17932 pw32*)
17933 # pw32 DLLs use 'pw' prefix rather than 'lib'
17934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17935 ;;
17936 esac
17937 ;;
17938
17939 *)
17940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17941 ;;
17942 esac
17943 dynamic_linker='Win32 ld.exe'
17944 # FIXME: first we should search . and the directory the executable is in
17945 shlibpath_var=PATH
17946 ;;
17947
17948 darwin* | rhapsody*)
17949 dynamic_linker="$host_os dyld"
17950 version_type=darwin
17951 need_lib_prefix=no
17952 need_version=no
17953 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17954 soname_spec='${libname}${release}${major}$shared_ext'
17955 shlibpath_overrides_runpath=yes
17956 shlibpath_var=DYLD_LIBRARY_PATH
17957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17958
17959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17960 ;;
17961
17962 dgux*)
17963 version_type=linux
17964 need_lib_prefix=no
17965 need_version=no
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 ;;
17970
17971 freebsd1*)
17972 dynamic_linker=no
17973 ;;
17974
17975 freebsd* | dragonfly*)
17976 # DragonFly does not have aout. When/if they implement a new
17977 # versioning mechanism, adjust this.
17978 if test -x /usr/bin/objformat; then
17979 objformat=`/usr/bin/objformat`
17980 else
17981 case $host_os in
17982 freebsd[123]*) objformat=aout ;;
17983 *) objformat=elf ;;
17984 esac
17985 fi
17986 version_type=freebsd-$objformat
17987 case $version_type in
17988 freebsd-elf*)
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17990 need_version=no
17991 need_lib_prefix=no
17992 ;;
17993 freebsd-*)
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17995 need_version=yes
17996 ;;
17997 esac
17998 shlibpath_var=LD_LIBRARY_PATH
17999 case $host_os in
18000 freebsd2*)
18001 shlibpath_overrides_runpath=yes
18002 ;;
18003 freebsd3.[01]* | freebsdelf3.[01]*)
18004 shlibpath_overrides_runpath=yes
18005 hardcode_into_libs=yes
18006 ;;
18007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18009 shlibpath_overrides_runpath=no
18010 hardcode_into_libs=yes
18011 ;;
18012 *) # from 4.6 on, and DragonFly
18013 shlibpath_overrides_runpath=yes
18014 hardcode_into_libs=yes
18015 ;;
18016 esac
18017 ;;
18018
18019 gnu*)
18020 version_type=linux
18021 need_lib_prefix=no
18022 need_version=no
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18024 soname_spec='${libname}${release}${shared_ext}$major'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 hardcode_into_libs=yes
18027 ;;
18028
18029 hpux9* | hpux10* | hpux11*)
18030 # Give a soname corresponding to the major version so that dld.sl refuses to
18031 # link against other versions.
18032 version_type=sunos
18033 need_lib_prefix=no
18034 need_version=no
18035 case $host_cpu in
18036 ia64*)
18037 shrext_cmds='.so'
18038 hardcode_into_libs=yes
18039 dynamic_linker="$host_os dld.so"
18040 shlibpath_var=LD_LIBRARY_PATH
18041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043 soname_spec='${libname}${release}${shared_ext}$major'
18044 if test "X$HPUX_IA64_MODE" = X32; then
18045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18046 else
18047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18048 fi
18049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18050 ;;
18051 hppa*64*)
18052 shrext_cmds='.sl'
18053 hardcode_into_libs=yes
18054 dynamic_linker="$host_os dld.sl"
18055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18061 ;;
18062 *)
18063 shrext_cmds='.sl'
18064 dynamic_linker="$host_os dld.sl"
18065 shlibpath_var=SHLIB_PATH
18066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 ;;
18070 esac
18071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18072 postinstall_cmds='chmod 555 $lib'
18073 ;;
18074
18075 interix[3-9]*)
18076 version_type=linux
18077 need_lib_prefix=no
18078 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18084 hardcode_into_libs=yes
18085 ;;
18086
18087 irix5* | irix6* | nonstopux*)
18088 case $host_os in
18089 nonstopux*) version_type=nonstopux ;;
18090 *)
18091 if test "$lt_cv_prog_gnu_ld" = yes; then
18092 version_type=linux
18093 else
18094 version_type=irix
18095 fi ;;
18096 esac
18097 need_lib_prefix=no
18098 need_version=no
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18101 case $host_os in
18102 irix5* | nonstopux*)
18103 libsuff= shlibsuff=
18104 ;;
18105 *)
18106 case $LD in # libtool.m4 will add one of these switches to LD
18107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18108 libsuff= shlibsuff= libmagic=32-bit;;
18109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18110 libsuff=32 shlibsuff=N32 libmagic=N32;;
18111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18113 *) libsuff= shlibsuff= libmagic=never-match;;
18114 esac
18115 ;;
18116 esac
18117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18118 shlibpath_overrides_runpath=no
18119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18121 hardcode_into_libs=yes
18122 ;;
18123
18124 # No shared lib support for Linux oldld, aout, or coff.
18125 linux*oldld* | linux*aout* | linux*coff*)
18126 dynamic_linker=no
18127 ;;
18128
18129 # This must be Linux ELF.
18130 linux* | k*bsd*-gnu)
18131 version_type=linux
18132 need_lib_prefix=no
18133 need_version=no
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=no
18139 # This implies no fast_install, which is unacceptable.
18140 # Some rework will be needed to allow for fast_install
18141 # before this can be enabled.
18142 hardcode_into_libs=yes
18143
18144 # Append ld.so.conf contents to the search path
18145 if test -f /etc/ld.so.conf; then
18146 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18148 fi
18149
18150 # We used to test for /lib/ld.so.1 and disable shared libraries on
18151 # powerpc, because MkLinux only supported shared libraries with the
18152 # GNU dynamic linker. Since this was broken with cross compilers,
18153 # most powerpc-linux boxes support dynamic linking these days and
18154 # people can always --disable-shared, the test was removed, and we
18155 # assume the GNU/Linux dynamic linker is in use.
18156 dynamic_linker='GNU/Linux ld.so'
18157 ;;
18158
18159 netbsd*)
18160 version_type=sunos
18161 need_lib_prefix=no
18162 need_version=no
18163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18166 dynamic_linker='NetBSD (a.out) ld.so'
18167 else
18168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18169 soname_spec='${libname}${release}${shared_ext}$major'
18170 dynamic_linker='NetBSD ld.elf_so'
18171 fi
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes
18174 hardcode_into_libs=yes
18175 ;;
18176
18177 newsos6)
18178 version_type=linux
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 shlibpath_overrides_runpath=yes
18182 ;;
18183
18184 nto-qnx*)
18185 version_type=linux
18186 need_lib_prefix=no
18187 need_version=no
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 shlibpath_var=LD_LIBRARY_PATH
18191 shlibpath_overrides_runpath=yes
18192 ;;
18193
18194 openbsd*)
18195 version_type=sunos
18196 sys_lib_dlsearch_path_spec="/usr/lib"
18197 need_lib_prefix=no
18198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18199 case $host_os in
18200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18201 *) need_version=no ;;
18202 esac
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18207 case $host_os in
18208 openbsd2.[89] | openbsd2.[89].*)
18209 shlibpath_overrides_runpath=no
18210 ;;
18211 *)
18212 shlibpath_overrides_runpath=yes
18213 ;;
18214 esac
18215 else
18216 shlibpath_overrides_runpath=yes
18217 fi
18218 ;;
18219
18220 os2*)
18221 libname_spec='$name'
18222 shrext_cmds=".dll"
18223 need_lib_prefix=no
18224 library_names_spec='$libname${shared_ext} $libname.a'
18225 dynamic_linker='OS/2 ld.exe'
18226 shlibpath_var=LIBPATH
18227 ;;
18228
18229 osf3* | osf4* | osf5*)
18230 version_type=osf
18231 need_lib_prefix=no
18232 need_version=no
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18238 ;;
18239
18240 rdos*)
18241 dynamic_linker=no
18242 ;;
18243
18244 solaris*)
18245 version_type=linux
18246 need_lib_prefix=no
18247 need_version=no
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=yes
18252 hardcode_into_libs=yes
18253 # ldd complains unless libraries are executable
18254 postinstall_cmds='chmod +x $lib'
18255 ;;
18256
18257 sunos4*)
18258 version_type=sunos
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18260 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=yes
18263 if test "$with_gnu_ld" = yes; then
18264 need_lib_prefix=no
18265 fi
18266 need_version=yes
18267 ;;
18268
18269 sysv4 | sysv4.3*)
18270 version_type=linux
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 case $host_vendor in
18275 sni)
18276 shlibpath_overrides_runpath=no
18277 need_lib_prefix=no
18278 export_dynamic_flag_spec='${wl}-Blargedynsym'
18279 runpath_var=LD_RUN_PATH
18280 ;;
18281 siemens)
18282 need_lib_prefix=no
18283 ;;
18284 motorola)
18285 need_lib_prefix=no
18286 need_version=no
18287 shlibpath_overrides_runpath=no
18288 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18289 ;;
18290 esac
18291 ;;
18292
18293 sysv4*MP*)
18294 if test -d /usr/nec ;then
18295 version_type=linux
18296 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18297 soname_spec='$libname${shared_ext}.$major'
18298 shlibpath_var=LD_LIBRARY_PATH
18299 fi
18300 ;;
18301
18302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18303 version_type=freebsd-elf
18304 need_lib_prefix=no
18305 need_version=no
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 hardcode_into_libs=yes
18310 if test "$with_gnu_ld" = yes; then
18311 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18312 shlibpath_overrides_runpath=no
18313 else
18314 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18315 shlibpath_overrides_runpath=yes
18316 case $host_os in
18317 sco3.2v5*)
18318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18319 ;;
18320 esac
18321 fi
18322 sys_lib_dlsearch_path_spec='/usr/lib'
18323 ;;
18324
18325 uts4*)
18326 version_type=linux
18327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18328 soname_spec='${libname}${release}${shared_ext}$major'
18329 shlibpath_var=LD_LIBRARY_PATH
18330 ;;
18331
18332 *)
18333 dynamic_linker=no
18334 ;;
18335 esac
18336 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18337 echo "${ECHO_T}$dynamic_linker" >&6; }
18338 test "$dynamic_linker" = no && can_build_shared=no
18339
18340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18341 if test "$GCC" = yes; then
18342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18343 fi
18344
18345 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18346 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18347 hardcode_action_GCJ=
18348 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18349 test -n "$runpath_var_GCJ" || \
18350 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18351
18352 # We can hardcode non-existant directories.
18353 if test "$hardcode_direct_GCJ" != no &&
18354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18355 # have to relink, otherwise we might link with an installed library
18356 # when we should be linking with a yet-to-be-installed one
18357 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18358 test "$hardcode_minus_L_GCJ" != no; then
18359 # Linking always hardcodes the temporary library directory.
18360 hardcode_action_GCJ=relink
18361 else
18362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18363 hardcode_action_GCJ=immediate
18364 fi
18365 else
18366 # We cannot hardcode anything, or else we can only hardcode existing
18367 # directories.
18368 hardcode_action_GCJ=unsupported
18369 fi
18370 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18371 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18372
18373 if test "$hardcode_action_GCJ" = relink; then
18374 # Fast installation is not supported
18375 enable_fast_install=no
18376 elif test "$shlibpath_overrides_runpath" = yes ||
18377 test "$enable_shared" = no; then
18378 # Fast installation is not necessary
18379 enable_fast_install=needless
18380 fi
18381
18382
18383 # The else clause should only fire when bootstrapping the
18384 # libtool distribution, otherwise you forgot to ship ltmain.sh
18385 # with your package, and you will get complaints that there are
18386 # no rules to generate ltmain.sh.
18387 if test -f "$ltmain"; then
18388 # See if we are running on zsh, and set the options which allow our commands through
18389 # without removal of \ escapes.
18390 if test -n "${ZSH_VERSION+set}" ; then
18391 setopt NO_GLOB_SUBST
18392 fi
18393 # Now quote all the things that may contain metacharacters while being
18394 # careful not to overquote the AC_SUBSTed values. We take copies of the
18395 # variables and quote the copies for generation of the libtool script.
18396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18397 SED SHELL STRIP \
18398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18400 deplibs_check_method reload_flag reload_cmds need_locks \
18401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18402 lt_cv_sys_global_symbol_to_c_name_address \
18403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18404 old_postinstall_cmds old_postuninstall_cmds \
18405 compiler_GCJ \
18406 CC_GCJ \
18407 LD_GCJ \
18408 lt_prog_compiler_wl_GCJ \
18409 lt_prog_compiler_pic_GCJ \
18410 lt_prog_compiler_static_GCJ \
18411 lt_prog_compiler_no_builtin_flag_GCJ \
18412 export_dynamic_flag_spec_GCJ \
18413 thread_safe_flag_spec_GCJ \
18414 whole_archive_flag_spec_GCJ \
18415 enable_shared_with_static_runtimes_GCJ \
18416 old_archive_cmds_GCJ \
18417 old_archive_from_new_cmds_GCJ \
18418 predep_objects_GCJ \
18419 postdep_objects_GCJ \
18420 predeps_GCJ \
18421 postdeps_GCJ \
18422 compiler_lib_search_path_GCJ \
18423 archive_cmds_GCJ \
18424 archive_expsym_cmds_GCJ \
18425 postinstall_cmds_GCJ \
18426 postuninstall_cmds_GCJ \
18427 old_archive_from_expsyms_cmds_GCJ \
18428 allow_undefined_flag_GCJ \
18429 no_undefined_flag_GCJ \
18430 export_symbols_cmds_GCJ \
18431 hardcode_libdir_flag_spec_GCJ \
18432 hardcode_libdir_flag_spec_ld_GCJ \
18433 hardcode_libdir_separator_GCJ \
18434 hardcode_automatic_GCJ \
18435 module_cmds_GCJ \
18436 module_expsym_cmds_GCJ \
18437 lt_cv_prog_compiler_c_o_GCJ \
18438 fix_srcfile_path_GCJ \
18439 exclude_expsyms_GCJ \
18440 include_expsyms_GCJ; do
18441
18442 case $var in
18443 old_archive_cmds_GCJ | \
18444 old_archive_from_new_cmds_GCJ | \
18445 archive_cmds_GCJ | \
18446 archive_expsym_cmds_GCJ | \
18447 module_cmds_GCJ | \
18448 module_expsym_cmds_GCJ | \
18449 old_archive_from_expsyms_cmds_GCJ | \
18450 export_symbols_cmds_GCJ | \
18451 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18452 postinstall_cmds | postuninstall_cmds | \
18453 old_postinstall_cmds | old_postuninstall_cmds | \
18454 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18455 # Double-quote double-evaled strings.
18456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18457 ;;
18458 *)
18459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18460 ;;
18461 esac
18462 done
18463
18464 case $lt_echo in
18465 *'\$0 --fallback-echo"')
18466 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18467 ;;
18468 esac
18469
18470 cfgfile="$ofile"
18471
18472 cat <<__EOF__ >> "$cfgfile"
18473 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18474
18475 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18476
18477 # Shell to use when invoking shell scripts.
18478 SHELL=$lt_SHELL
18479
18480 # Whether or not to build shared libraries.
18481 build_libtool_libs=$enable_shared
18482
18483 # Whether or not to build static libraries.
18484 build_old_libs=$enable_static
18485
18486 # Whether or not to add -lc for building shared libraries.
18487 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18488
18489 # Whether or not to disallow shared libs when runtime libs are static
18490 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18491
18492 # Whether or not to optimize for fast installation.
18493 fast_install=$enable_fast_install
18494
18495 # The host system.
18496 host_alias=$host_alias
18497 host=$host
18498 host_os=$host_os
18499
18500 # The build system.
18501 build_alias=$build_alias
18502 build=$build
18503 build_os=$build_os
18504
18505 # An echo program that does not interpret backslashes.
18506 echo=$lt_echo
18507
18508 # The archiver.
18509 AR=$lt_AR
18510 AR_FLAGS=$lt_AR_FLAGS
18511
18512 # A C compiler.
18513 LTCC=$lt_LTCC
18514
18515 # LTCC compiler flags.
18516 LTCFLAGS=$lt_LTCFLAGS
18517
18518 # A language-specific compiler.
18519 CC=$lt_compiler_GCJ
18520
18521 # Is the compiler the GNU C compiler?
18522 with_gcc=$GCC_GCJ
18523
18524 # An ERE matcher.
18525 EGREP=$lt_EGREP
18526
18527 # The linker used to build libraries.
18528 LD=$lt_LD_GCJ
18529
18530 # Whether we need hard or soft links.
18531 LN_S=$lt_LN_S
18532
18533 # A BSD-compatible nm program.
18534 NM=$lt_NM
18535
18536 # A symbol stripping program
18537 STRIP=$lt_STRIP
18538
18539 # Used to examine libraries when file_magic_cmd begins "file"
18540 MAGIC_CMD=$MAGIC_CMD
18541
18542 # Used on cygwin: DLL creation program.
18543 DLLTOOL="$DLLTOOL"
18544
18545 # Used on cygwin: object dumper.
18546 OBJDUMP="$OBJDUMP"
18547
18548 # Used on cygwin: assembler.
18549 AS="$AS"
18550
18551 # The name of the directory that contains temporary libtool files.
18552 objdir=$objdir
18553
18554 # How to create reloadable object files.
18555 reload_flag=$lt_reload_flag
18556 reload_cmds=$lt_reload_cmds
18557
18558 # How to pass a linker flag through the compiler.
18559 wl=$lt_lt_prog_compiler_wl_GCJ
18560
18561 # Object file suffix (normally "o").
18562 objext="$ac_objext"
18563
18564 # Old archive suffix (normally "a").
18565 libext="$libext"
18566
18567 # Shared library suffix (normally ".so").
18568 shrext_cmds='$shrext_cmds'
18569
18570 # Executable file suffix (normally "").
18571 exeext="$exeext"
18572
18573 # Additional compiler flags for building library objects.
18574 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18575 pic_mode=$pic_mode
18576
18577 # What is the maximum length of a command?
18578 max_cmd_len=$lt_cv_sys_max_cmd_len
18579
18580 # Does compiler simultaneously support -c and -o options?
18581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18582
18583 # Must we lock files when doing compilation?
18584 need_locks=$lt_need_locks
18585
18586 # Do we need the lib prefix for modules?
18587 need_lib_prefix=$need_lib_prefix
18588
18589 # Do we need a version for libraries?
18590 need_version=$need_version
18591
18592 # Whether dlopen is supported.
18593 dlopen_support=$enable_dlopen
18594
18595 # Whether dlopen of programs is supported.
18596 dlopen_self=$enable_dlopen_self
18597
18598 # Whether dlopen of statically linked programs is supported.
18599 dlopen_self_static=$enable_dlopen_self_static
18600
18601 # Compiler flag to prevent dynamic linking.
18602 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18603
18604 # Compiler flag to turn off builtin functions.
18605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18606
18607 # Compiler flag to allow reflexive dlopens.
18608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18609
18610 # Compiler flag to generate shared objects directly from archives.
18611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18612
18613 # Compiler flag to generate thread-safe objects.
18614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18615
18616 # Library versioning type.
18617 version_type=$version_type
18618
18619 # Format of library name prefix.
18620 libname_spec=$lt_libname_spec
18621
18622 # List of archive names. First name is the real one, the rest are links.
18623 # The last name is the one that the linker finds with -lNAME.
18624 library_names_spec=$lt_library_names_spec
18625
18626 # The coded name of the library, if different from the real name.
18627 soname_spec=$lt_soname_spec
18628
18629 # Commands used to build and install an old-style archive.
18630 RANLIB=$lt_RANLIB
18631 old_archive_cmds=$lt_old_archive_cmds_GCJ
18632 old_postinstall_cmds=$lt_old_postinstall_cmds
18633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18634
18635 # Create an old-style archive from a shared archive.
18636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18637
18638 # Create a temporary old-style archive to link instead of a shared archive.
18639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18640
18641 # Commands used to build and install a shared archive.
18642 archive_cmds=$lt_archive_cmds_GCJ
18643 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18644 postinstall_cmds=$lt_postinstall_cmds
18645 postuninstall_cmds=$lt_postuninstall_cmds
18646
18647 # Commands used to build a loadable module (assumed same as above if empty)
18648 module_cmds=$lt_module_cmds_GCJ
18649 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18650
18651 # Commands to strip libraries.
18652 old_striplib=$lt_old_striplib
18653 striplib=$lt_striplib
18654
18655 # Dependencies to place before the objects being linked to create a
18656 # shared library.
18657 predep_objects=$lt_predep_objects_GCJ
18658
18659 # Dependencies to place after the objects being linked to create a
18660 # shared library.
18661 postdep_objects=$lt_postdep_objects_GCJ
18662
18663 # Dependencies to place before the objects being linked to create a
18664 # shared library.
18665 predeps=$lt_predeps_GCJ
18666
18667 # Dependencies to place after the objects being linked to create a
18668 # shared library.
18669 postdeps=$lt_postdeps_GCJ
18670
18671 # The library search path used internally by the compiler when linking
18672 # a shared library.
18673 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18674
18675 # Method to check whether dependent libraries are shared objects.
18676 deplibs_check_method=$lt_deplibs_check_method
18677
18678 # Command to use when deplibs_check_method == file_magic.
18679 file_magic_cmd=$lt_file_magic_cmd
18680
18681 # Flag that allows shared libraries with undefined symbols to be built.
18682 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18683
18684 # Flag that forces no undefined symbols.
18685 no_undefined_flag=$lt_no_undefined_flag_GCJ
18686
18687 # Commands used to finish a libtool library installation in a directory.
18688 finish_cmds=$lt_finish_cmds
18689
18690 # Same as above, but a single script fragment to be evaled but not shown.
18691 finish_eval=$lt_finish_eval
18692
18693 # Take the output of nm and produce a listing of raw symbols and C names.
18694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18695
18696 # Transform the output of nm in a proper C declaration
18697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18698
18699 # Transform the output of nm in a C name address pair
18700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18701
18702 # This is the shared library runtime path variable.
18703 runpath_var=$runpath_var
18704
18705 # This is the shared library path variable.
18706 shlibpath_var=$shlibpath_var
18707
18708 # Is shlibpath searched before the hard-coded library search path?
18709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18710
18711 # How to hardcode a shared library path into an executable.
18712 hardcode_action=$hardcode_action_GCJ
18713
18714 # Whether we should hardcode library paths into libraries.
18715 hardcode_into_libs=$hardcode_into_libs
18716
18717 # Flag to hardcode \$libdir into a binary during linking.
18718 # This must work even if \$libdir does not exist.
18719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18720
18721 # If ld is used when linking, flag to hardcode \$libdir into
18722 # a binary during linking. This must work even if \$libdir does
18723 # not exist.
18724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18725
18726 # Whether we need a single -rpath flag with a separated argument.
18727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18728
18729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18730 # resulting binary.
18731 hardcode_direct=$hardcode_direct_GCJ
18732
18733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18734 # resulting binary.
18735 hardcode_minus_L=$hardcode_minus_L_GCJ
18736
18737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18738 # the resulting binary.
18739 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18740
18741 # Set to yes if building a shared library automatically hardcodes DIR into the library
18742 # and all subsequent libraries and executables linked against it.
18743 hardcode_automatic=$hardcode_automatic_GCJ
18744
18745 # Variables whose values should be saved in libtool wrapper scripts and
18746 # restored at relink time.
18747 variables_saved_for_relink="$variables_saved_for_relink"
18748
18749 # Whether libtool must link a program against all its dependency libraries.
18750 link_all_deplibs=$link_all_deplibs_GCJ
18751
18752 # Compile-time system search path for libraries
18753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18754
18755 # Run-time system search path for libraries
18756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18757
18758 # Fix the shell variable \$srcfile for the compiler.
18759 fix_srcfile_path=$lt_fix_srcfile_path
18760
18761 # Set to yes if exported symbols are required.
18762 always_export_symbols=$always_export_symbols_GCJ
18763
18764 # The commands to list exported symbols.
18765 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18766
18767 # The commands to extract the exported symbol list from a shared archive.
18768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18769
18770 # Symbols that should not be listed in the preloaded symbols.
18771 exclude_expsyms=$lt_exclude_expsyms_GCJ
18772
18773 # Symbols that must always be exported.
18774 include_expsyms=$lt_include_expsyms_GCJ
18775
18776 # ### END LIBTOOL TAG CONFIG: $tagname
18777
18778 __EOF__
18779
18780
18781 else
18782 # If there is no Makefile yet, we rely on a make rule to execute
18783 # `config.status --recheck' to rerun these tests and create the
18784 # libtool script then.
18785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18786 if test -f "$ltmain_in"; then
18787 test -f Makefile && make "$ltmain"
18788 fi
18789 fi
18790
18791
18792 ac_ext=c
18793 ac_cpp='$CPP $CPPFLAGS'
18794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18797
18798 CC="$lt_save_CC"
18799
18800 else
18801 tagname=""
18802 fi
18803 ;;
18804
18805 RC)
18806
18807
18808 # Source file extension for RC test sources.
18809 ac_ext=rc
18810
18811 # Object file extension for compiled RC test sources.
18812 objext=o
18813 objext_RC=$objext
18814
18815 # Code to be used in simple compile tests
18816 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18817
18818 # Code to be used in simple link tests
18819 lt_simple_link_test_code="$lt_simple_compile_test_code"
18820
18821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18822
18823 # If no C compiler was specified, use CC.
18824 LTCC=${LTCC-"$CC"}
18825
18826 # If no C compiler flags were specified, use CFLAGS.
18827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18828
18829 # Allow CC to be a program name with arguments.
18830 compiler=$CC
18831
18832
18833 # save warnings/boilerplate of simple test code
18834 ac_outfile=conftest.$ac_objext
18835 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18836 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18837 _lt_compiler_boilerplate=`cat conftest.err`
18838 $rm conftest*
18839
18840 ac_outfile=conftest.$ac_objext
18841 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18842 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18843 _lt_linker_boilerplate=`cat conftest.err`
18844 $rm conftest*
18845
18846
18847 # Allow CC to be a program name with arguments.
18848 lt_save_CC="$CC"
18849 CC=${RC-"windres"}
18850 compiler=$CC
18851 compiler_RC=$CC
18852 for cc_temp in $compiler""; do
18853 case $cc_temp in
18854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18856 \-*) ;;
18857 *) break;;
18858 esac
18859 done
18860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18861
18862 lt_cv_prog_compiler_c_o_RC=yes
18863
18864 # The else clause should only fire when bootstrapping the
18865 # libtool distribution, otherwise you forgot to ship ltmain.sh
18866 # with your package, and you will get complaints that there are
18867 # no rules to generate ltmain.sh.
18868 if test -f "$ltmain"; then
18869 # See if we are running on zsh, and set the options which allow our commands through
18870 # without removal of \ escapes.
18871 if test -n "${ZSH_VERSION+set}" ; then
18872 setopt NO_GLOB_SUBST
18873 fi
18874 # Now quote all the things that may contain metacharacters while being
18875 # careful not to overquote the AC_SUBSTed values. We take copies of the
18876 # variables and quote the copies for generation of the libtool script.
18877 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18878 SED SHELL STRIP \
18879 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18880 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18881 deplibs_check_method reload_flag reload_cmds need_locks \
18882 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18883 lt_cv_sys_global_symbol_to_c_name_address \
18884 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18885 old_postinstall_cmds old_postuninstall_cmds \
18886 compiler_RC \
18887 CC_RC \
18888 LD_RC \
18889 lt_prog_compiler_wl_RC \
18890 lt_prog_compiler_pic_RC \
18891 lt_prog_compiler_static_RC \
18892 lt_prog_compiler_no_builtin_flag_RC \
18893 export_dynamic_flag_spec_RC \
18894 thread_safe_flag_spec_RC \
18895 whole_archive_flag_spec_RC \
18896 enable_shared_with_static_runtimes_RC \
18897 old_archive_cmds_RC \
18898 old_archive_from_new_cmds_RC \
18899 predep_objects_RC \
18900 postdep_objects_RC \
18901 predeps_RC \
18902 postdeps_RC \
18903 compiler_lib_search_path_RC \
18904 archive_cmds_RC \
18905 archive_expsym_cmds_RC \
18906 postinstall_cmds_RC \
18907 postuninstall_cmds_RC \
18908 old_archive_from_expsyms_cmds_RC \
18909 allow_undefined_flag_RC \
18910 no_undefined_flag_RC \
18911 export_symbols_cmds_RC \
18912 hardcode_libdir_flag_spec_RC \
18913 hardcode_libdir_flag_spec_ld_RC \
18914 hardcode_libdir_separator_RC \
18915 hardcode_automatic_RC \
18916 module_cmds_RC \
18917 module_expsym_cmds_RC \
18918 lt_cv_prog_compiler_c_o_RC \
18919 fix_srcfile_path_RC \
18920 exclude_expsyms_RC \
18921 include_expsyms_RC; do
18922
18923 case $var in
18924 old_archive_cmds_RC | \
18925 old_archive_from_new_cmds_RC | \
18926 archive_cmds_RC | \
18927 archive_expsym_cmds_RC | \
18928 module_cmds_RC | \
18929 module_expsym_cmds_RC | \
18930 old_archive_from_expsyms_cmds_RC | \
18931 export_symbols_cmds_RC | \
18932 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18933 postinstall_cmds | postuninstall_cmds | \
18934 old_postinstall_cmds | old_postuninstall_cmds | \
18935 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18936 # Double-quote double-evaled strings.
18937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18938 ;;
18939 *)
18940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18941 ;;
18942 esac
18943 done
18944
18945 case $lt_echo in
18946 *'\$0 --fallback-echo"')
18947 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18948 ;;
18949 esac
18950
18951 cfgfile="$ofile"
18952
18953 cat <<__EOF__ >> "$cfgfile"
18954 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18955
18956 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18957
18958 # Shell to use when invoking shell scripts.
18959 SHELL=$lt_SHELL
18960
18961 # Whether or not to build shared libraries.
18962 build_libtool_libs=$enable_shared
18963
18964 # Whether or not to build static libraries.
18965 build_old_libs=$enable_static
18966
18967 # Whether or not to add -lc for building shared libraries.
18968 build_libtool_need_lc=$archive_cmds_need_lc_RC
18969
18970 # Whether or not to disallow shared libs when runtime libs are static
18971 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18972
18973 # Whether or not to optimize for fast installation.
18974 fast_install=$enable_fast_install
18975
18976 # The host system.
18977 host_alias=$host_alias
18978 host=$host
18979 host_os=$host_os
18980
18981 # The build system.
18982 build_alias=$build_alias
18983 build=$build
18984 build_os=$build_os
18985
18986 # An echo program that does not interpret backslashes.
18987 echo=$lt_echo
18988
18989 # The archiver.
18990 AR=$lt_AR
18991 AR_FLAGS=$lt_AR_FLAGS
18992
18993 # A C compiler.
18994 LTCC=$lt_LTCC
18995
18996 # LTCC compiler flags.
18997 LTCFLAGS=$lt_LTCFLAGS
18998
18999 # A language-specific compiler.
19000 CC=$lt_compiler_RC
19001
19002 # Is the compiler the GNU C compiler?
19003 with_gcc=$GCC_RC
19004
19005 # An ERE matcher.
19006 EGREP=$lt_EGREP
19007
19008 # The linker used to build libraries.
19009 LD=$lt_LD_RC
19010
19011 # Whether we need hard or soft links.
19012 LN_S=$lt_LN_S
19013
19014 # A BSD-compatible nm program.
19015 NM=$lt_NM
19016
19017 # A symbol stripping program
19018 STRIP=$lt_STRIP
19019
19020 # Used to examine libraries when file_magic_cmd begins "file"
19021 MAGIC_CMD=$MAGIC_CMD
19022
19023 # Used on cygwin: DLL creation program.
19024 DLLTOOL="$DLLTOOL"
19025
19026 # Used on cygwin: object dumper.
19027 OBJDUMP="$OBJDUMP"
19028
19029 # Used on cygwin: assembler.
19030 AS="$AS"
19031
19032 # The name of the directory that contains temporary libtool files.
19033 objdir=$objdir
19034
19035 # How to create reloadable object files.
19036 reload_flag=$lt_reload_flag
19037 reload_cmds=$lt_reload_cmds
19038
19039 # How to pass a linker flag through the compiler.
19040 wl=$lt_lt_prog_compiler_wl_RC
19041
19042 # Object file suffix (normally "o").
19043 objext="$ac_objext"
19044
19045 # Old archive suffix (normally "a").
19046 libext="$libext"
19047
19048 # Shared library suffix (normally ".so").
19049 shrext_cmds='$shrext_cmds'
19050
19051 # Executable file suffix (normally "").
19052 exeext="$exeext"
19053
19054 # Additional compiler flags for building library objects.
19055 pic_flag=$lt_lt_prog_compiler_pic_RC
19056 pic_mode=$pic_mode
19057
19058 # What is the maximum length of a command?
19059 max_cmd_len=$lt_cv_sys_max_cmd_len
19060
19061 # Does compiler simultaneously support -c and -o options?
19062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19063
19064 # Must we lock files when doing compilation?
19065 need_locks=$lt_need_locks
19066
19067 # Do we need the lib prefix for modules?
19068 need_lib_prefix=$need_lib_prefix
19069
19070 # Do we need a version for libraries?
19071 need_version=$need_version
19072
19073 # Whether dlopen is supported.
19074 dlopen_support=$enable_dlopen
19075
19076 # Whether dlopen of programs is supported.
19077 dlopen_self=$enable_dlopen_self
19078
19079 # Whether dlopen of statically linked programs is supported.
19080 dlopen_self_static=$enable_dlopen_self_static
19081
19082 # Compiler flag to prevent dynamic linking.
19083 link_static_flag=$lt_lt_prog_compiler_static_RC
19084
19085 # Compiler flag to turn off builtin functions.
19086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19087
19088 # Compiler flag to allow reflexive dlopens.
19089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19090
19091 # Compiler flag to generate shared objects directly from archives.
19092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19093
19094 # Compiler flag to generate thread-safe objects.
19095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19096
19097 # Library versioning type.
19098 version_type=$version_type
19099
19100 # Format of library name prefix.
19101 libname_spec=$lt_libname_spec
19102
19103 # List of archive names. First name is the real one, the rest are links.
19104 # The last name is the one that the linker finds with -lNAME.
19105 library_names_spec=$lt_library_names_spec
19106
19107 # The coded name of the library, if different from the real name.
19108 soname_spec=$lt_soname_spec
19109
19110 # Commands used to build and install an old-style archive.
19111 RANLIB=$lt_RANLIB
19112 old_archive_cmds=$lt_old_archive_cmds_RC
19113 old_postinstall_cmds=$lt_old_postinstall_cmds
19114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19115
19116 # Create an old-style archive from a shared archive.
19117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19118
19119 # Create a temporary old-style archive to link instead of a shared archive.
19120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19121
19122 # Commands used to build and install a shared archive.
19123 archive_cmds=$lt_archive_cmds_RC
19124 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19125 postinstall_cmds=$lt_postinstall_cmds
19126 postuninstall_cmds=$lt_postuninstall_cmds
19127
19128 # Commands used to build a loadable module (assumed same as above if empty)
19129 module_cmds=$lt_module_cmds_RC
19130 module_expsym_cmds=$lt_module_expsym_cmds_RC
19131
19132 # Commands to strip libraries.
19133 old_striplib=$lt_old_striplib
19134 striplib=$lt_striplib
19135
19136 # Dependencies to place before the objects being linked to create a
19137 # shared library.
19138 predep_objects=$lt_predep_objects_RC
19139
19140 # Dependencies to place after the objects being linked to create a
19141 # shared library.
19142 postdep_objects=$lt_postdep_objects_RC
19143
19144 # Dependencies to place before the objects being linked to create a
19145 # shared library.
19146 predeps=$lt_predeps_RC
19147
19148 # Dependencies to place after the objects being linked to create a
19149 # shared library.
19150 postdeps=$lt_postdeps_RC
19151
19152 # The library search path used internally by the compiler when linking
19153 # a shared library.
19154 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19155
19156 # Method to check whether dependent libraries are shared objects.
19157 deplibs_check_method=$lt_deplibs_check_method
19158
19159 # Command to use when deplibs_check_method == file_magic.
19160 file_magic_cmd=$lt_file_magic_cmd
19161
19162 # Flag that allows shared libraries with undefined symbols to be built.
19163 allow_undefined_flag=$lt_allow_undefined_flag_RC
19164
19165 # Flag that forces no undefined symbols.
19166 no_undefined_flag=$lt_no_undefined_flag_RC
19167
19168 # Commands used to finish a libtool library installation in a directory.
19169 finish_cmds=$lt_finish_cmds
19170
19171 # Same as above, but a single script fragment to be evaled but not shown.
19172 finish_eval=$lt_finish_eval
19173
19174 # Take the output of nm and produce a listing of raw symbols and C names.
19175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19176
19177 # Transform the output of nm in a proper C declaration
19178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19179
19180 # Transform the output of nm in a C name address pair
19181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19182
19183 # This is the shared library runtime path variable.
19184 runpath_var=$runpath_var
19185
19186 # This is the shared library path variable.
19187 shlibpath_var=$shlibpath_var
19188
19189 # Is shlibpath searched before the hard-coded library search path?
19190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19191
19192 # How to hardcode a shared library path into an executable.
19193 hardcode_action=$hardcode_action_RC
19194
19195 # Whether we should hardcode library paths into libraries.
19196 hardcode_into_libs=$hardcode_into_libs
19197
19198 # Flag to hardcode \$libdir into a binary during linking.
19199 # This must work even if \$libdir does not exist.
19200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19201
19202 # If ld is used when linking, flag to hardcode \$libdir into
19203 # a binary during linking. This must work even if \$libdir does
19204 # not exist.
19205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19206
19207 # Whether we need a single -rpath flag with a separated argument.
19208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19209
19210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19211 # resulting binary.
19212 hardcode_direct=$hardcode_direct_RC
19213
19214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19215 # resulting binary.
19216 hardcode_minus_L=$hardcode_minus_L_RC
19217
19218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19219 # the resulting binary.
19220 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19221
19222 # Set to yes if building a shared library automatically hardcodes DIR into the library
19223 # and all subsequent libraries and executables linked against it.
19224 hardcode_automatic=$hardcode_automatic_RC
19225
19226 # Variables whose values should be saved in libtool wrapper scripts and
19227 # restored at relink time.
19228 variables_saved_for_relink="$variables_saved_for_relink"
19229
19230 # Whether libtool must link a program against all its dependency libraries.
19231 link_all_deplibs=$link_all_deplibs_RC
19232
19233 # Compile-time system search path for libraries
19234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19235
19236 # Run-time system search path for libraries
19237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19238
19239 # Fix the shell variable \$srcfile for the compiler.
19240 fix_srcfile_path=$lt_fix_srcfile_path
19241
19242 # Set to yes if exported symbols are required.
19243 always_export_symbols=$always_export_symbols_RC
19244
19245 # The commands to list exported symbols.
19246 export_symbols_cmds=$lt_export_symbols_cmds_RC
19247
19248 # The commands to extract the exported symbol list from a shared archive.
19249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19250
19251 # Symbols that should not be listed in the preloaded symbols.
19252 exclude_expsyms=$lt_exclude_expsyms_RC
19253
19254 # Symbols that must always be exported.
19255 include_expsyms=$lt_include_expsyms_RC
19256
19257 # ### END LIBTOOL TAG CONFIG: $tagname
19258
19259 __EOF__
19260
19261
19262 else
19263 # If there is no Makefile yet, we rely on a make rule to execute
19264 # `config.status --recheck' to rerun these tests and create the
19265 # libtool script then.
19266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19267 if test -f "$ltmain_in"; then
19268 test -f Makefile && make "$ltmain"
19269 fi
19270 fi
19271
19272
19273 ac_ext=c
19274 ac_cpp='$CPP $CPPFLAGS'
19275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278
19279 CC="$lt_save_CC"
19280
19281 ;;
19282
19283 *)
19284 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19285 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19286 { (exit 1); exit 1; }; }
19287 ;;
19288 esac
19289
19290 # Append the new tag name to the list of available tags.
19291 if test -n "$tagname" ; then
19292 available_tags="$available_tags $tagname"
19293 fi
19294 fi
19295 done
19296 IFS="$lt_save_ifs"
19297
19298 # Now substitute the updated list of available tags.
19299 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19300 mv "${ofile}T" "$ofile"
19301 chmod +x "$ofile"
19302 else
19303 rm -f "${ofile}T"
19304 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19305 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19306 { (exit 1); exit 1; }; }
19307 fi
19308 fi
19309
19310
19311
19312 # This can be used to rebuild libtool when needed
19313 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19314
19315 # Always use our own libtool.
19316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19317
19318 # Prevent multiple expansion
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340 #DX_HTML_FEATURE(ON)
19341 #DX_CHM_FEATURE(OFF)
19342 #DX_CHI_FEATURE(OFF)
19343 #DX_MAN_FEATURE(OFF)
19344 #DX_RTF_FEATURE(OFF)
19345 #DX_XML_FEATURE(OFF)
19346 #DX_PDF_FEATURE(OFF)
19347 #DX_PS_FEATURE(OFF)
19348 #
19349 #DX_INIT_DOXYGEN(lv2dynparam, doxygen.cfg)
19350
19351 # Checks for libraries.
19352
19353 # Checks for header files.
19354 #AC_HEADER_STDC
19355 #AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h])
19356
19357
19358
19359 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19360 if test -n "$ac_tool_prefix"; then
19361 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19362 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 case $PKG_CONFIG in
19369 [\\/]* | ?:[\\/]*)
19370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19371 ;;
19372 *)
19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 for as_dir in $PATH
19375 do
19376 IFS=$as_save_IFS
19377 test -z "$as_dir" && as_dir=.
19378 for ac_exec_ext in '' $ac_executable_extensions; do
19379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19382 break 2
19383 fi
19384 done
19385 done
19386 IFS=$as_save_IFS
19387
19388 ;;
19389 esac
19390 fi
19391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19392 if test -n "$PKG_CONFIG"; then
19393 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19394 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19395 else
19396 { echo "$as_me:$LINENO: result: no" >&5
19397 echo "${ECHO_T}no" >&6; }
19398 fi
19399
19400
19401 fi
19402 if test -z "$ac_cv_path_PKG_CONFIG"; then
19403 ac_pt_PKG_CONFIG=$PKG_CONFIG
19404 # Extract the first word of "pkg-config", so it can be a program name with args.
19405 set dummy pkg-config; ac_word=$2
19406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19408 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 else
19411 case $ac_pt_PKG_CONFIG in
19412 [\\/]* | ?:[\\/]*)
19413 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19414 ;;
19415 *)
19416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19417 for as_dir in $PATH
19418 do
19419 IFS=$as_save_IFS
19420 test -z "$as_dir" && as_dir=.
19421 for ac_exec_ext in '' $ac_executable_extensions; do
19422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19423 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 break 2
19426 fi
19427 done
19428 done
19429 IFS=$as_save_IFS
19430
19431 ;;
19432 esac
19433 fi
19434 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19435 if test -n "$ac_pt_PKG_CONFIG"; then
19436 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19437 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19438 else
19439 { echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6; }
19441 fi
19442
19443 if test "x$ac_pt_PKG_CONFIG" = x; then
19444 PKG_CONFIG=""
19445 else
19446 case $cross_compiling:$ac_tool_warned in
19447 yes:)
19448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19449 whose name does not start with the host triplet. If you think this
19450 configuration is useful to you, please write to [email protected]." >&5
19451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19452 whose name does not start with the host triplet. If you think this
19453 configuration is useful to you, please write to [email protected]." >&2;}
19454 ac_tool_warned=yes ;;
19455 esac
19456 PKG_CONFIG=$ac_pt_PKG_CONFIG
19457 fi
19458 else
19459 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19460 fi
19461
19462 fi
19463 if test -n "$PKG_CONFIG"; then
19464 _pkg_min_version=0.9.0
19465 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19466 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19467 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19468 { echo "$as_me:$LINENO: result: yes" >&5
19469 echo "${ECHO_T}yes" >&6; }
19470 else
19471 { echo "$as_me:$LINENO: result: no" >&5
19472 echo "${ECHO_T}no" >&6; }
19473 PKG_CONFIG=""
19474 fi
19475
19476 fi
19477
19478 pkg_failed=no
19479 { echo "$as_me:$LINENO: checking for LV2" >&5
19480 echo $ECHO_N "checking for LV2... $ECHO_C" >&6; }
19481
19482 if test -n "$PKG_CONFIG"; then
19483 if test -n "$LV2_CFLAGS"; then
19484 pkg_cv_LV2_CFLAGS="$LV2_CFLAGS"
19485 else
19486 if test -n "$PKG_CONFIG" && \
19487 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lv2core >= 1\"") >&5
19488 ($PKG_CONFIG --exists --print-errors "lv2core >= 1") 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; then
19492 pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2core >= 1" 2>/dev/null`
19493 else
19494 pkg_failed=yes
19495 fi
19496 fi
19497 else
19498 pkg_failed=untried
19499 fi
19500 if test -n "$PKG_CONFIG"; then
19501 if test -n "$LV2_LIBS"; then
19502 pkg_cv_LV2_LIBS="$LV2_LIBS"
19503 else
19504 if test -n "$PKG_CONFIG" && \
19505 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lv2core >= 1\"") >&5
19506 ($PKG_CONFIG --exists --print-errors "lv2core >= 1") 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; then
19510 pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2core >= 1" 2>/dev/null`
19511 else
19512 pkg_failed=yes
19513 fi
19514 fi
19515 else
19516 pkg_failed=untried
19517 fi
19518
19519
19520
19521 if test $pkg_failed = yes; then
19522
19523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19524 _pkg_short_errors_supported=yes
19525 else
19526 _pkg_short_errors_supported=no
19527 fi
19528 if test $_pkg_short_errors_supported = yes; then
19529 LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lv2core >= 1"`
19530 else
19531 LV2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lv2core >= 1"`
19532 fi
19533 # Put the nasty error message in config.log where it belongs
19534 echo "$LV2_PKG_ERRORS" >&5
19535
19536 { { echo "$as_me:$LINENO: error: Package requirements (lv2core >= 1) were not met:
19537
19538 $LV2_PKG_ERRORS
19539
19540 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19541 installed software in a non-standard prefix.
19542
19543 Alternatively, you may set the environment variables LV2_CFLAGS
19544 and LV2_LIBS to avoid the need to call pkg-config.
19545 See the pkg-config man page for more details.
19546 " >&5
19547 echo "$as_me: error: Package requirements (lv2core >= 1) were not met:
19548
19549 $LV2_PKG_ERRORS
19550
19551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19552 installed software in a non-standard prefix.
19553
19554 Alternatively, you may set the environment variables LV2_CFLAGS
19555 and LV2_LIBS to avoid the need to call pkg-config.
19556 See the pkg-config man page for more details.
19557 " >&2;}
19558 { (exit 1); exit 1; }; }
19559 elif test $pkg_failed = untried; then
19560 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19561 is in your PATH or set the PKG_CONFIG environment variable to the full
19562 path to pkg-config.
19563
19564 Alternatively, you may set the environment variables LV2_CFLAGS
19565 and LV2_LIBS to avoid the need to call pkg-config.
19566 See the pkg-config man page for more details.
19567
19568 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19569 See \`config.log' for more details." >&5
19570 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19571 is in your PATH or set the PKG_CONFIG environment variable to the full
19572 path to pkg-config.
19573
19574 Alternatively, you may set the environment variables LV2_CFLAGS
19575 and LV2_LIBS to avoid the need to call pkg-config.
19576 See the pkg-config man page for more details.
19577
19578 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19579 See \`config.log' for more details." >&2;}
19580 { (exit 1); exit 1; }; }
19581 else
19582 LV2_CFLAGS=$pkg_cv_LV2_CFLAGS
19583 LV2_LIBS=$pkg_cv_LV2_LIBS
19584 { echo "$as_me:$LINENO: result: yes" >&5
19585 echo "${ECHO_T}yes" >&6; }
19586 :
19587 fi
19588
19589 # Checks for typedefs, structures, and compiler characteristics.
19590 #AC_C_CONST
19591 #AC_C_INLINE
19592 #AC_TYPE_SIZE_T
19593 #AC_TYPE_UINT32_T
19594
19595 # Checks for library functions.
19596 #AC_FUNC_MALLOC
19597 #AC_FUNC_VPRINTF
19598
19599 ac_config_files="$ac_config_files Makefile"
19600
19601 ac_config_files="$ac_config_files plugin/Makefile"
19602
19603 ac_config_files="$ac_config_files host/Makefile"
19604
19605 ac_config_files="$ac_config_files lv2dynparamplugin1.pc"
19606
19607 ac_config_files="$ac_config_files lv2dynparamhost1.pc"
19608
19609 cat >confcache <<\_ACEOF
19610 # This file is a shell script that caches the results of configure
19611 # tests run on this system so they can be shared between configure
19612 # scripts and configure runs, see configure's option --config-cache.
19613 # It is not useful on other systems. If it contains results you don't
19614 # want to keep, you may remove or edit it.
19615 #
19616 # config.status only pays attention to the cache file if you give it
19617 # the --recheck option to rerun configure.
19618 #
19619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19621 # following values.
19622
19623 _ACEOF
19624
19625 # The following way of writing the cache mishandles newlines in values,
19626 # but we know of no workaround that is simple, portable, and efficient.
19627 # So, we kill variables containing newlines.
19628 # Ultrix sh set writes to stderr and can't be redirected directly,
19629 # and sets the high bit in the cache file unless we assign to the vars.
19630 (
19631 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19632 eval ac_val=\$$ac_var
19633 case $ac_val in #(
19634 *${as_nl}*)
19635 case $ac_var in #(
19636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19638 esac
19639 case $ac_var in #(
19640 _ | IFS | as_nl) ;; #(
19641 *) $as_unset $ac_var ;;
19642 esac ;;
19643 esac
19644 done
19645
19646 (set) 2>&1 |
19647 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19648 *${as_nl}ac_space=\ *)
19649 # `set' does not quote correctly, so add quotes (double-quote
19650 # substitution turns \\\\ into \\, and sed turns \\ into \).
19651 sed -n \
19652 "s/'/'\\\\''/g;
19653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19654 ;; #(
19655 *)
19656 # `set' quotes correctly as required by POSIX, so do not add quotes.
19657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19658 ;;
19659 esac |
19660 sort
19661 ) |
19662 sed '
19663 /^ac_cv_env_/b end
19664 t clear
19665 :clear
19666 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19667 t end
19668 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19669 :end' >>confcache
19670 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19671 if test -w "$cache_file"; then
19672 test "x$cache_file" != "x/dev/null" &&
19673 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19674 echo "$as_me: updating cache $cache_file" >&6;}
19675 cat confcache >$cache_file
19676 else
19677 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19678 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19679 fi
19680 fi
19681 rm -f confcache
19682
19683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19684 # Let make expand exec_prefix.
19685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19686
19687 DEFS=-DHAVE_CONFIG_H
19688
19689 ac_libobjs=
19690 ac_ltlibobjs=
19691 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19692 # 1. Remove the extension, and $U if already installed.
19693 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19694 ac_i=`echo "$ac_i" | sed "$ac_script"`
19695 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19696 # will be set to the directory where LIBOBJS objects are built.
19697 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19698 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19699 done
19700 LIBOBJS=$ac_libobjs
19701
19702 LTLIBOBJS=$ac_ltlibobjs
19703
19704
19705 if test -z "${DEV_VERSION_TRUE}" && test -z "${DEV_VERSION_FALSE}"; then
19706 { { echo "$as_me:$LINENO: error: conditional \"DEV_VERSION\" was never defined.
19707 Usually this means the macro was only invoked conditionally." >&5
19708 echo "$as_me: error: conditional \"DEV_VERSION\" was never defined.
19709 Usually this means the macro was only invoked conditionally." >&2;}
19710 { (exit 1); exit 1; }; }
19711 fi
19712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19713 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19714 Usually this means the macro was only invoked conditionally." >&5
19715 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19716 Usually this means the macro was only invoked conditionally." >&2;}
19717 { (exit 1); exit 1; }; }
19718 fi
19719 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19720 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19721 Usually this means the macro was only invoked conditionally." >&5
19722 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19723 Usually this means the macro was only invoked conditionally." >&2;}
19724 { (exit 1); exit 1; }; }
19725 fi
19726 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19727 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19728 Usually this means the macro was only invoked conditionally." >&5
19729 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19730 Usually this means the macro was only invoked conditionally." >&2;}
19731 { (exit 1); exit 1; }; }
19732 fi
19733
19734 : ${CONFIG_STATUS=./config.status}
19735 ac_clean_files_save=$ac_clean_files
19736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19739 cat >$CONFIG_STATUS <<_ACEOF
19740 #! $SHELL
19741 # Generated by $as_me.
19742 # Run this file to recreate the current configuration.
19743 # Compiler output produced by configure, useful for debugging
19744 # configure, is in config.log if it exists.
19745
19746 debug=false
19747 ac_cs_recheck=false
19748 ac_cs_silent=false
19749 SHELL=\${CONFIG_SHELL-$SHELL}
19750 _ACEOF
19751
19752 cat >>$CONFIG_STATUS <<\_ACEOF
19753 ## --------------------- ##
19754 ## M4sh Initialization. ##
19755 ## --------------------- ##
19756
19757 # Be more Bourne compatible
19758 DUALCASE=1; export DUALCASE # for MKS sh
19759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19760 emulate sh
19761 NULLCMD=:
19762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19763 # is contrary to our usage. Disable this feature.
19764 alias -g '${1+"$@"}'='"$@"'
19765 setopt NO_GLOB_SUBST
19766 else
19767 case `(set -o) 2>/dev/null` in
19768 *posix*) set -o posix ;;
19769 esac
19770
19771 fi
19772
19773
19774
19775
19776 # PATH needs CR
19777 # Avoid depending upon Character Ranges.
19778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19781 as_cr_digits='0123456789'
19782 as_cr_alnum=$as_cr_Letters$as_cr_digits
19783
19784 # The user is always right.
19785 if test "${PATH_SEPARATOR+set}" != set; then
19786 echo "#! /bin/sh" >conf$$.sh
19787 echo "exit 0" >>conf$$.sh
19788 chmod +x conf$$.sh
19789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19790 PATH_SEPARATOR=';'
19791 else
19792 PATH_SEPARATOR=:
19793 fi
19794 rm -f conf$$.sh
19795 fi
19796
19797 # Support unset when possible.
19798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19799 as_unset=unset
19800 else
19801 as_unset=false
19802 fi
19803
19804
19805 # IFS
19806 # We need space, tab and new line, in precisely that order. Quoting is
19807 # there to prevent editors from complaining about space-tab.
19808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19809 # splitting by setting IFS to empty value.)
19810 as_nl='
19811 '
19812 IFS=" "" $as_nl"
19813
19814 # Find who we are. Look in the path if we contain no directory separator.
19815 case $0 in
19816 *[\\/]* ) as_myself=$0 ;;
19817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19819 do
19820 IFS=$as_save_IFS
19821 test -z "$as_dir" && as_dir=.
19822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19823 done
19824 IFS=$as_save_IFS
19825
19826 ;;
19827 esac
19828 # We did not find ourselves, most probably we were run as `sh COMMAND'
19829 # in which case we are not to be found in the path.
19830 if test "x$as_myself" = x; then
19831 as_myself=$0
19832 fi
19833 if test ! -f "$as_myself"; then
19834 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19835 { (exit 1); exit 1; }
19836 fi
19837
19838 # Work around bugs in pre-3.0 UWIN ksh.
19839 for as_var in ENV MAIL MAILPATH
19840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19841 done
19842 PS1='$ '
19843 PS2='> '
19844 PS4='+ '
19845
19846 # NLS nuisances.
19847 for as_var in \
19848 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19849 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19850 LC_TELEPHONE LC_TIME
19851 do
19852 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19853 eval $as_var=C; export $as_var
19854 else
19855 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19856 fi
19857 done
19858
19859 # Required to use basename.
19860 if expr a : '\(a\)' >/dev/null 2>&1 &&
19861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19862 as_expr=expr
19863 else
19864 as_expr=false
19865 fi
19866
19867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19868 as_basename=basename
19869 else
19870 as_basename=false
19871 fi
19872
19873
19874 # Name of the executable.
19875 as_me=`$as_basename -- "$0" ||
19876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19877 X"$0" : 'X\(//\)$' \| \
19878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19879 echo X/"$0" |
19880 sed '/^.*\/\([^/][^/]*\)\/*$/{
19881 s//\1/
19882 q
19883 }
19884 /^X\/\(\/\/\)$/{
19885 s//\1/
19886 q
19887 }
19888 /^X\/\(\/\).*/{
19889 s//\1/
19890 q
19891 }
19892 s/.*/./; q'`
19893
19894 # CDPATH.
19895 $as_unset CDPATH
19896
19897
19898
19899 as_lineno_1=$LINENO
19900 as_lineno_2=$LINENO
19901 test "x$as_lineno_1" != "x$as_lineno_2" &&
19902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19903
19904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19905 # uniformly replaced by the line number. The first 'sed' inserts a
19906 # line-number line after each line using $LINENO; the second 'sed'
19907 # does the real work. The second script uses 'N' to pair each
19908 # line-number line with the line containing $LINENO, and appends
19909 # trailing '-' during substitution so that $LINENO is not a special
19910 # case at line end.
19911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19912 # scripts with optimization help from Paolo Bonzini. Blame Lee
19913 # E. McMahon (1931-1989) for sed's syntax. :-)
19914 sed -n '
19915 p
19916 /[$]LINENO/=
19917 ' <$as_myself |
19918 sed '
19919 s/[$]LINENO.*/&-/
19920 t lineno
19921 b
19922 :lineno
19923 N
19924 :loop
19925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19926 t loop
19927 s/-\n.*//
19928 ' >$as_me.lineno &&
19929 chmod +x "$as_me.lineno" ||
19930 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19931 { (exit 1); exit 1; }; }
19932
19933 # Don't try to exec as it changes $[0], causing all sort of problems
19934 # (the dirname of $[0] is not the place where we might find the
19935 # original and so on. Autoconf is especially sensitive to this).
19936 . "./$as_me.lineno"
19937 # Exit status is that of the last command.
19938 exit
19939 }
19940
19941
19942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19943 as_dirname=dirname
19944 else
19945 as_dirname=false
19946 fi
19947
19948 ECHO_C= ECHO_N= ECHO_T=
19949 case `echo -n x` in
19950 -n*)
19951 case `echo 'x\c'` in
19952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19953 *) ECHO_C='\c';;
19954 esac;;
19955 *)
19956 ECHO_N='-n';;
19957 esac
19958
19959 if expr a : '\(a\)' >/dev/null 2>&1 &&
19960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19961 as_expr=expr
19962 else
19963 as_expr=false
19964 fi
19965
19966 rm -f conf$$ conf$$.exe conf$$.file
19967 if test -d conf$$.dir; then
19968 rm -f conf$$.dir/conf$$.file
19969 else
19970 rm -f conf$$.dir
19971 mkdir conf$$.dir
19972 fi
19973 echo >conf$$.file
19974 if ln -s conf$$.file conf$$ 2>/dev/null; then
19975 as_ln_s='ln -s'
19976 # ... but there are two gotchas:
19977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19979 # In both cases, we have to default to `cp -p'.
19980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19981 as_ln_s='cp -p'
19982 elif ln conf$$.file conf$$ 2>/dev/null; then
19983 as_ln_s=ln
19984 else
19985 as_ln_s='cp -p'
19986 fi
19987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19988 rmdir conf$$.dir 2>/dev/null
19989
19990 if mkdir -p . 2>/dev/null; then
19991 as_mkdir_p=:
19992 else
19993 test -d ./-p && rmdir ./-p
19994 as_mkdir_p=false
19995 fi
19996
19997 if test -x / >/dev/null 2>&1; then
19998 as_test_x='test -x'
19999 else
20000 if ls -dL / >/dev/null 2>&1; then
20001 as_ls_L_option=L
20002 else
20003 as_ls_L_option=
20004 fi
20005 as_test_x='
20006 eval sh -c '\''
20007 if test -d "$1"; then
20008 test -d "$1/.";
20009 else
20010 case $1 in
20011 -*)set "./$1";;
20012 esac;
20013 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20014 ???[sx]*):;;*)false;;esac;fi
20015 '\'' sh
20016 '
20017 fi
20018 as_executable_p=$as_test_x
20019
20020 # Sed expression to map a string onto a valid CPP name.
20021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20022
20023 # Sed expression to map a string onto a valid variable name.
20024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20025
20026
20027 exec 6>&1
20028
20029 # Save the log message, to keep $[0] and so on meaningful, and to
20030 # report actual input values of CONFIG_FILES etc. instead of their
20031 # values after options handling.
20032 ac_log="
20033 This file was extended by lv2dynparam1 $as_me 2, which was
20034 generated by GNU Autoconf 2.61. Invocation command line was
20035
20036 CONFIG_FILES = $CONFIG_FILES
20037 CONFIG_HEADERS = $CONFIG_HEADERS
20038 CONFIG_LINKS = $CONFIG_LINKS
20039 CONFIG_COMMANDS = $CONFIG_COMMANDS
20040 $ $0 $@
20041
20042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20043 "
20044
20045 _ACEOF
20046
20047 cat >>$CONFIG_STATUS <<_ACEOF
20048 # Files that config.status was made for.
20049 config_files="$ac_config_files"
20050 config_headers="$ac_config_headers"
20051 config_commands="$ac_config_commands"
20052
20053 _ACEOF
20054
20055 cat >>$CONFIG_STATUS <<\_ACEOF
20056 ac_cs_usage="\
20057 \`$as_me' instantiates files from templates according to the
20058 current configuration.
20059
20060 Usage: $0 [OPTIONS] [FILE]...
20061
20062 -h, --help print this help, then exit
20063 -V, --version print version number and configuration settings, then exit
20064 -q, --quiet do not print progress messages
20065 -d, --debug don't remove temporary files
20066 --recheck update $as_me by reconfiguring in the same conditions
20067 --file=FILE[:TEMPLATE]
20068 instantiate the configuration file FILE
20069 --header=FILE[:TEMPLATE]
20070 instantiate the configuration header FILE
20071
20072 Configuration files:
20073 $config_files
20074
20075 Configuration headers:
20076 $config_headers
20077
20078 Configuration commands:
20079 $config_commands
20080
20081 Report bugs to <[email protected]>."
20082
20083 _ACEOF
20084 cat >>$CONFIG_STATUS <<_ACEOF
20085 ac_cs_version="\\
20086 lv2dynparam1 config.status 2
20087 configured by $0, generated by GNU Autoconf 2.61,
20088 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20089
20090 Copyright (C) 2006 Free Software Foundation, Inc.
20091 This config.status script is free software; the Free Software Foundation
20092 gives unlimited permission to copy, distribute and modify it."
20093
20094 ac_pwd='$ac_pwd'
20095 srcdir='$srcdir'
20096 INSTALL='$INSTALL'
20097 MKDIR_P='$MKDIR_P'
20098 _ACEOF
20099
20100 cat >>$CONFIG_STATUS <<\_ACEOF
20101 # If no file are specified by the user, then we need to provide default
20102 # value. By we need to know if files were specified by the user.
20103 ac_need_defaults=:
20104 while test $# != 0
20105 do
20106 case $1 in
20107 --*=*)
20108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20110 ac_shift=:
20111 ;;
20112 *)
20113 ac_option=$1
20114 ac_optarg=$2
20115 ac_shift=shift
20116 ;;
20117 esac
20118
20119 case $ac_option in
20120 # Handling of the options.
20121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20122 ac_cs_recheck=: ;;
20123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20124 echo "$ac_cs_version"; exit ;;
20125 --debug | --debu | --deb | --de | --d | -d )
20126 debug=: ;;
20127 --file | --fil | --fi | --f )
20128 $ac_shift
20129 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20130 ac_need_defaults=false;;
20131 --header | --heade | --head | --hea )
20132 $ac_shift
20133 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20134 ac_need_defaults=false;;
20135 --he | --h)
20136 # Conflict between --help and --header
20137 { echo "$as_me: error: ambiguous option: $1
20138 Try \`$0 --help' for more information." >&2
20139 { (exit 1); exit 1; }; };;
20140 --help | --hel | -h )
20141 echo "$ac_cs_usage"; exit ;;
20142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20143 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20144 ac_cs_silent=: ;;
20145
20146 # This is an error.
20147 -*) { echo "$as_me: error: unrecognized option: $1
20148 Try \`$0 --help' for more information." >&2
20149 { (exit 1); exit 1; }; } ;;
20150
20151 *) ac_config_targets="$ac_config_targets $1"
20152 ac_need_defaults=false ;;
20153
20154 esac
20155 shift
20156 done
20157
20158 ac_configure_extra_args=
20159
20160 if $ac_cs_silent; then
20161 exec 6>/dev/null
20162 ac_configure_extra_args="$ac_configure_extra_args --silent"
20163 fi
20164
20165 _ACEOF
20166 cat >>$CONFIG_STATUS <<_ACEOF
20167 if \$ac_cs_recheck; then
20168 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20169 CONFIG_SHELL=$SHELL
20170 export CONFIG_SHELL
20171 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20172 fi
20173
20174 _ACEOF
20175 cat >>$CONFIG_STATUS <<\_ACEOF
20176 exec 5>>config.log
20177 {
20178 echo
20179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20180 ## Running $as_me. ##
20181 _ASBOX
20182 echo "$ac_log"
20183 } >&5
20184
20185 _ACEOF
20186 cat >>$CONFIG_STATUS <<_ACEOF
20187 #
20188 # INIT-COMMANDS
20189 #
20190 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20191
20192 _ACEOF
20193
20194 cat >>$CONFIG_STATUS <<\_ACEOF
20195
20196 # Handling of arguments.
20197 for ac_config_target in $ac_config_targets
20198 do
20199 case $ac_config_target in
20200 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20203 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
20204 "host/Makefile") CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
20205 "lv2dynparamplugin1.pc") CONFIG_FILES="$CONFIG_FILES lv2dynparamplugin1.pc" ;;
20206 "lv2dynparamhost1.pc") CONFIG_FILES="$CONFIG_FILES lv2dynparamhost1.pc" ;;
20207
20208 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20209 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20210 { (exit 1); exit 1; }; };;
20211 esac
20212 done
20213
20214
20215 # If the user did not use the arguments to specify the items to instantiate,
20216 # then the envvar interface is used. Set only those that are not.
20217 # We use the long form for the default assignment because of an extremely
20218 # bizarre bug on SunOS 4.1.3.
20219 if $ac_need_defaults; then
20220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20222 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20223 fi
20224
20225 # Have a temporary directory for convenience. Make it in the build tree
20226 # simply because there is no reason against having it here, and in addition,
20227 # creating and moving files from /tmp can sometimes cause problems.
20228 # Hook for its removal unless debugging.
20229 # Note that there is a small window in which the directory will not be cleaned:
20230 # after its creation but before its name has been assigned to `$tmp'.
20231 $debug ||
20232 {
20233 tmp=
20234 trap 'exit_status=$?
20235 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20236 ' 0
20237 trap '{ (exit 1); exit 1; }' 1 2 13 15
20238 }
20239 # Create a (secure) tmp directory for tmp files.
20240
20241 {
20242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20243 test -n "$tmp" && test -d "$tmp"
20244 } ||
20245 {
20246 tmp=./conf$$-$RANDOM
20247 (umask 077 && mkdir "$tmp")
20248 } ||
20249 {
20250 echo "$me: cannot create a temporary directory in ." >&2
20251 { (exit 1); exit 1; }
20252 }
20253
20254 #
20255 # Set up the sed scripts for CONFIG_FILES section.
20256 #
20257
20258 # No need to generate the scripts if there are no CONFIG_FILES.
20259 # This happens for instance when ./config.status config.h
20260 if test -n "$CONFIG_FILES"; then
20261
20262 _ACEOF
20263
20264
20265
20266 ac_delim='%!_!# '
20267 for ac_last_try in false false false false false :; do
20268 cat >conf$$subs.sed <<_ACEOF
20269 SHELL!$SHELL$ac_delim
20270 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20271 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20272 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20273 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20274 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20275 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20276 exec_prefix!$exec_prefix$ac_delim
20277 prefix!$prefix$ac_delim
20278 program_transform_name!$program_transform_name$ac_delim
20279 bindir!$bindir$ac_delim
20280 sbindir!$sbindir$ac_delim
20281 libexecdir!$libexecdir$ac_delim
20282 datarootdir!$datarootdir$ac_delim
20283 datadir!$datadir$ac_delim
20284 sysconfdir!$sysconfdir$ac_delim
20285 sharedstatedir!$sharedstatedir$ac_delim
20286 localstatedir!$localstatedir$ac_delim
20287 includedir!$includedir$ac_delim
20288 oldincludedir!$oldincludedir$ac_delim
20289 docdir!$docdir$ac_delim
20290 infodir!$infodir$ac_delim
20291 htmldir!$htmldir$ac_delim
20292 dvidir!$dvidir$ac_delim
20293 pdfdir!$pdfdir$ac_delim
20294 psdir!$psdir$ac_delim
20295 libdir!$libdir$ac_delim
20296 localedir!$localedir$ac_delim
20297 mandir!$mandir$ac_delim
20298 DEFS!$DEFS$ac_delim
20299 ECHO_C!$ECHO_C$ac_delim
20300 ECHO_N!$ECHO_N$ac_delim
20301 ECHO_T!$ECHO_T$ac_delim
20302 LIBS!$LIBS$ac_delim
20303 build_alias!$build_alias$ac_delim
20304 host_alias!$host_alias$ac_delim
20305 target_alias!$target_alias$ac_delim
20306 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20307 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20308 INSTALL_DATA!$INSTALL_DATA$ac_delim
20309 am__isrc!$am__isrc$ac_delim
20310 CYGPATH_W!$CYGPATH_W$ac_delim
20311 PACKAGE!$PACKAGE$ac_delim
20312 VERSION!$VERSION$ac_delim
20313 ACLOCAL!$ACLOCAL$ac_delim
20314 AUTOCONF!$AUTOCONF$ac_delim
20315 AUTOMAKE!$AUTOMAKE$ac_delim
20316 AUTOHEADER!$AUTOHEADER$ac_delim
20317 MAKEINFO!$MAKEINFO$ac_delim
20318 install_sh!$install_sh$ac_delim
20319 STRIP!$STRIP$ac_delim
20320 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20321 mkdir_p!$mkdir_p$ac_delim
20322 AWK!$AWK$ac_delim
20323 SET_MAKE!$SET_MAKE$ac_delim
20324 am__leading_dot!$am__leading_dot$ac_delim
20325 AMTAR!$AMTAR$ac_delim
20326 am__tar!$am__tar$ac_delim
20327 am__untar!$am__untar$ac_delim
20328 DEV_VERSION_TRUE!$DEV_VERSION_TRUE$ac_delim
20329 DEV_VERSION_FALSE!$DEV_VERSION_FALSE$ac_delim
20330 CC!$CC$ac_delim
20331 CFLAGS!$CFLAGS$ac_delim
20332 LDFLAGS!$LDFLAGS$ac_delim
20333 CPPFLAGS!$CPPFLAGS$ac_delim
20334 ac_ct_CC!$ac_ct_CC$ac_delim
20335 EXEEXT!$EXEEXT$ac_delim
20336 OBJEXT!$OBJEXT$ac_delim
20337 DEPDIR!$DEPDIR$ac_delim
20338 am__include!$am__include$ac_delim
20339 am__quote!$am__quote$ac_delim
20340 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20341 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20342 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20343 CCDEPMODE!$CCDEPMODE$ac_delim
20344 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20345 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20346 build!$build$ac_delim
20347 build_cpu!$build_cpu$ac_delim
20348 build_vendor!$build_vendor$ac_delim
20349 build_os!$build_os$ac_delim
20350 host!$host$ac_delim
20351 host_cpu!$host_cpu$ac_delim
20352 host_vendor!$host_vendor$ac_delim
20353 host_os!$host_os$ac_delim
20354 SED!$SED$ac_delim
20355 GREP!$GREP$ac_delim
20356 EGREP!$EGREP$ac_delim
20357 LN_S!$LN_S$ac_delim
20358 ECHO!$ECHO$ac_delim
20359 AR!$AR$ac_delim
20360 RANLIB!$RANLIB$ac_delim
20361 CPP!$CPP$ac_delim
20362 CXX!$CXX$ac_delim
20363 CXXFLAGS!$CXXFLAGS$ac_delim
20364 ac_ct_CXX!$ac_ct_CXX$ac_delim
20365 CXXDEPMODE!$CXXDEPMODE$ac_delim
20366 _ACEOF
20367
20368 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20369 break
20370 elif $ac_last_try; then
20371 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20372 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20373 { (exit 1); exit 1; }; }
20374 else
20375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20376 fi
20377 done
20378
20379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20380 if test -n "$ac_eof"; then
20381 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20382 ac_eof=`expr $ac_eof + 1`
20383 fi
20384
20385 cat >>$CONFIG_STATUS <<_ACEOF
20386 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20388 _ACEOF
20389 sed '
20390 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20391 s/^/s,@/; s/!/@,|#_!!_#|/
20392 :n
20393 t n
20394 s/'"$ac_delim"'$/,g/; t
20395 s/$/\\/; p
20396 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20397 ' >>$CONFIG_STATUS <conf$$subs.sed
20398 rm -f conf$$subs.sed
20399 cat >>$CONFIG_STATUS <<_ACEOF
20400 CEOF$ac_eof
20401 _ACEOF
20402
20403
20404 ac_delim='%!_!# '
20405 for ac_last_try in false false false false false :; do
20406 cat >conf$$subs.sed <<_ACEOF
20407 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20408 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20409 CXXCPP!$CXXCPP$ac_delim
20410 F77!$F77$ac_delim
20411 FFLAGS!$FFLAGS$ac_delim
20412 ac_ct_F77!$ac_ct_F77$ac_delim
20413 LIBTOOL!$LIBTOOL$ac_delim
20414 PKG_CONFIG!$PKG_CONFIG$ac_delim
20415 LV2_CFLAGS!$LV2_CFLAGS$ac_delim
20416 LV2_LIBS!$LV2_LIBS$ac_delim
20417 LIBOBJS!$LIBOBJS$ac_delim
20418 LTLIBOBJS!$LTLIBOBJS$ac_delim
20419 _ACEOF
20420
20421 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20422 break
20423 elif $ac_last_try; then
20424 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20425 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20426 { (exit 1); exit 1; }; }
20427 else
20428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20429 fi
20430 done
20431
20432 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20433 if test -n "$ac_eof"; then
20434 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20435 ac_eof=`expr $ac_eof + 1`
20436 fi
20437
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20441 _ACEOF
20442 sed '
20443 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20444 s/^/s,@/; s/!/@,|#_!!_#|/
20445 :n
20446 t n
20447 s/'"$ac_delim"'$/,g/; t
20448 s/$/\\/; p
20449 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20450 ' >>$CONFIG_STATUS <conf$$subs.sed
20451 rm -f conf$$subs.sed
20452 cat >>$CONFIG_STATUS <<_ACEOF
20453 :end
20454 s/|#_!!_#|//g
20455 CEOF$ac_eof
20456 _ACEOF
20457
20458
20459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20461 # trailing colons and then remove the whole line if VPATH becomes empty
20462 # (actually we leave an empty line to preserve line numbers).
20463 if test "x$srcdir" = x.; then
20464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20465 s/:*\$(srcdir):*/:/
20466 s/:*\${srcdir}:*/:/
20467 s/:*@srcdir@:*/:/
20468 s/^\([^=]*=[ ]*\):*/\1/
20469 s/:*$//
20470 s/^[^=]*=[ ]*$//
20471 }'
20472 fi
20473
20474 cat >>$CONFIG_STATUS <<\_ACEOF
20475 fi # test -n "$CONFIG_FILES"
20476
20477
20478 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20479 do
20480 case $ac_tag in
20481 :[FHLC]) ac_mode=$ac_tag; continue;;
20482 esac
20483 case $ac_mode$ac_tag in
20484 :[FHL]*:*);;
20485 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20486 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20487 { (exit 1); exit 1; }; };;
20488 :[FH]-) ac_tag=-:-;;
20489 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20490 esac
20491 ac_save_IFS=$IFS
20492 IFS=:
20493 set x $ac_tag
20494 IFS=$ac_save_IFS
20495 shift
20496 ac_file=$1
20497 shift
20498
20499 case $ac_mode in
20500 :L) ac_source=$1;;
20501 :[FH])
20502 ac_file_inputs=
20503 for ac_f
20504 do
20505 case $ac_f in
20506 -) ac_f="$tmp/stdin";;
20507 *) # Look for the file first in the build tree, then in the source tree
20508 # (if the path is not absolute). The absolute path cannot be DOS-style,
20509 # because $ac_f cannot contain `:'.
20510 test -f "$ac_f" ||
20511 case $ac_f in
20512 [\\/$]*) false;;
20513 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20514 esac ||
20515 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20516 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20517 { (exit 1); exit 1; }; };;
20518 esac
20519 ac_file_inputs="$ac_file_inputs $ac_f"
20520 done
20521
20522 # Let's still pretend it is `configure' which instantiates (i.e., don't
20523 # use $as_me), people would be surprised to read:
20524 # /* config.h. Generated by config.status. */
20525 configure_input="Generated from "`IFS=:
20526 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20527 if test x"$ac_file" != x-; then
20528 configure_input="$ac_file. $configure_input"
20529 { echo "$as_me:$LINENO: creating $ac_file" >&5
20530 echo "$as_me: creating $ac_file" >&6;}
20531 fi
20532
20533 case $ac_tag in
20534 *:-:* | *:-) cat >"$tmp/stdin";;
20535 esac
20536 ;;
20537 esac
20538
20539 ac_dir=`$as_dirname -- "$ac_file" ||
20540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20541 X"$ac_file" : 'X\(//\)[^/]' \| \
20542 X"$ac_file" : 'X\(//\)$' \| \
20543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20544 echo X"$ac_file" |
20545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20546 s//\1/
20547 q
20548 }
20549 /^X\(\/\/\)[^/].*/{
20550 s//\1/
20551 q
20552 }
20553 /^X\(\/\/\)$/{
20554 s//\1/
20555 q
20556 }
20557 /^X\(\/\).*/{
20558 s//\1/
20559 q
20560 }
20561 s/.*/./; q'`
20562 { as_dir="$ac_dir"
20563 case $as_dir in #(
20564 -*) as_dir=./$as_dir;;
20565 esac
20566 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20567 as_dirs=
20568 while :; do
20569 case $as_dir in #(
20570 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20571 *) as_qdir=$as_dir;;
20572 esac
20573 as_dirs="'$as_qdir' $as_dirs"
20574 as_dir=`$as_dirname -- "$as_dir" ||
20575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576 X"$as_dir" : 'X\(//\)[^/]' \| \
20577 X"$as_dir" : 'X\(//\)$' \| \
20578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20579 echo X"$as_dir" |
20580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20581 s//\1/
20582 q
20583 }
20584 /^X\(\/\/\)[^/].*/{
20585 s//\1/
20586 q
20587 }
20588 /^X\(\/\/\)$/{
20589 s//\1/
20590 q
20591 }
20592 /^X\(\/\).*/{
20593 s//\1/
20594 q
20595 }
20596 s/.*/./; q'`
20597 test -d "$as_dir" && break
20598 done
20599 test -z "$as_dirs" || eval "mkdir $as_dirs"
20600 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20601 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20602 { (exit 1); exit 1; }; }; }
20603 ac_builddir=.
20604
20605 case "$ac_dir" in
20606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20607 *)
20608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20609 # A ".." for each directory in $ac_dir_suffix.
20610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20611 case $ac_top_builddir_sub in
20612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20614 esac ;;
20615 esac
20616 ac_abs_top_builddir=$ac_pwd
20617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20618 # for backward compatibility:
20619 ac_top_builddir=$ac_top_build_prefix
20620
20621 case $srcdir in
20622 .) # We are building in place.
20623 ac_srcdir=.
20624 ac_top_srcdir=$ac_top_builddir_sub
20625 ac_abs_top_srcdir=$ac_pwd ;;
20626 [\\/]* | ?:[\\/]* ) # Absolute name.
20627 ac_srcdir=$srcdir$ac_dir_suffix;
20628 ac_top_srcdir=$srcdir
20629 ac_abs_top_srcdir=$srcdir ;;
20630 *) # Relative name.
20631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20632 ac_top_srcdir=$ac_top_build_prefix$srcdir
20633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20634 esac
20635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20636
20637
20638 case $ac_mode in
20639 :F)
20640 #
20641 # CONFIG_FILE
20642 #
20643
20644 case $INSTALL in
20645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20647 esac
20648 ac_MKDIR_P=$MKDIR_P
20649 case $MKDIR_P in
20650 [\\/$]* | ?:[\\/]* ) ;;
20651 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20652 esac
20653 _ACEOF
20654
20655 cat >>$CONFIG_STATUS <<\_ACEOF
20656 # If the template does not know about datarootdir, expand it.
20657 # FIXME: This hack should be removed a few years after 2.60.
20658 ac_datarootdir_hack=; ac_datarootdir_seen=
20659
20660 case `sed -n '/datarootdir/ {
20661 p
20662 q
20663 }
20664 /@datadir@/p
20665 /@docdir@/p
20666 /@infodir@/p
20667 /@localedir@/p
20668 /@mandir@/p
20669 ' $ac_file_inputs` in
20670 *datarootdir*) ac_datarootdir_seen=yes;;
20671 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20672 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20673 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20674 _ACEOF
20675 cat >>$CONFIG_STATUS <<_ACEOF
20676 ac_datarootdir_hack='
20677 s&@datadir@&$datadir&g
20678 s&@docdir@&$docdir&g
20679 s&@infodir@&$infodir&g
20680 s&@localedir@&$localedir&g
20681 s&@mandir@&$mandir&g
20682 s&\\\${datarootdir}&$datarootdir&g' ;;
20683 esac
20684 _ACEOF
20685
20686 # Neutralize VPATH when `$srcdir' = `.'.
20687 # Shell code in configure.ac might set extrasub.
20688 # FIXME: do we really want to maintain this feature?
20689 cat >>$CONFIG_STATUS <<_ACEOF
20690 sed "$ac_vpsub
20691 $extrasub
20692 _ACEOF
20693 cat >>$CONFIG_STATUS <<\_ACEOF
20694 :t
20695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20696 s&@configure_input@&$configure_input&;t t
20697 s&@top_builddir@&$ac_top_builddir_sub&;t t
20698 s&@srcdir@&$ac_srcdir&;t t
20699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20700 s&@top_srcdir@&$ac_top_srcdir&;t t
20701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20702 s&@builddir@&$ac_builddir&;t t
20703 s&@abs_builddir@&$ac_abs_builddir&;t t
20704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20705 s&@INSTALL@&$ac_INSTALL&;t t
20706 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20707 $ac_datarootdir_hack
20708 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20709
20710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20713 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20714 which seems to be undefined. Please make sure it is defined." >&5
20715 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20716 which seems to be undefined. Please make sure it is defined." >&2;}
20717
20718 rm -f "$tmp/stdin"
20719 case $ac_file in
20720 -) cat "$tmp/out"; rm -f "$tmp/out";;
20721 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20722 esac
20723 ;;
20724 :H)
20725 #
20726 # CONFIG_HEADER
20727 #
20728 _ACEOF
20729
20730 # Transform confdefs.h into a sed script `conftest.defines', that
20731 # substitutes the proper values into config.h.in to produce config.h.
20732 rm -f conftest.defines conftest.tail
20733 # First, append a space to every undef/define line, to ease matching.
20734 echo 's/$/ /' >conftest.defines
20735 # Then, protect against being on the right side of a sed subst, or in
20736 # an unquoted here document, in config.status. If some macros were
20737 # called several times there might be several #defines for the same
20738 # symbol, which is useless. But do not sort them, since the last
20739 # AC_DEFINE must be honored.
20740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20741 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20742 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20743 # PARAMS is the parameter list in the macro definition--in most cases, it's
20744 # just an empty string.
20745 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20746 ac_dB='\\)[ (].*,\\1define\\2'
20747 ac_dC=' '
20748 ac_dD=' ,'
20749
20750 uniq confdefs.h |
20751 sed -n '
20752 t rset
20753 :rset
20754 s/^[ ]*#[ ]*define[ ][ ]*//
20755 t ok
20756 d
20757 :ok
20758 s/[\\&,]/\\&/g
20759 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20760 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20761 ' >>conftest.defines
20762
20763 # Remove the space that was appended to ease matching.
20764 # Then replace #undef with comments. This is necessary, for
20765 # example, in the case of _POSIX_SOURCE, which is predefined and required
20766 # on some systems where configure will not decide to define it.
20767 # (The regexp can be short, since the line contains either #define or #undef.)
20768 echo 's/ $//
20769 s,^[ #]*u.*,/* & */,' >>conftest.defines
20770
20771 # Break up conftest.defines:
20772 ac_max_sed_lines=50
20773
20774 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20775 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20776 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20777 # et cetera.
20778 ac_in='$ac_file_inputs'
20779 ac_out='"$tmp/out1"'
20780 ac_nxt='"$tmp/out2"'
20781
20782 while :
20783 do
20784 # Write a here document:
20785 cat >>$CONFIG_STATUS <<_ACEOF
20786 # First, check the format of the line:
20787 cat >"\$tmp/defines.sed" <<\\CEOF
20788 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20789 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20790 b
20791 :def
20792 _ACEOF
20793 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20794 echo 'CEOF
20795 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20796 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20797 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20798 grep . conftest.tail >/dev/null || break
20799 rm -f conftest.defines
20800 mv conftest.tail conftest.defines
20801 done
20802 rm -f conftest.defines conftest.tail
20803
20804 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20805 cat >>$CONFIG_STATUS <<\_ACEOF
20806 if test x"$ac_file" != x-; then
20807 echo "/* $configure_input */" >"$tmp/config.h"
20808 cat "$ac_result" >>"$tmp/config.h"
20809 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20811 echo "$as_me: $ac_file is unchanged" >&6;}
20812 else
20813 rm -f $ac_file
20814 mv "$tmp/config.h" $ac_file
20815 fi
20816 else
20817 echo "/* $configure_input */"
20818 cat "$ac_result"
20819 fi
20820 rm -f "$tmp/out12"
20821 # Compute $ac_file's index in $config_headers.
20822 _am_stamp_count=1
20823 for _am_header in $config_headers :; do
20824 case $_am_header in
20825 $ac_file | $ac_file:* )
20826 break ;;
20827 * )
20828 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20829 esac
20830 done
20831 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20832 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20833 X$ac_file : 'X\(//\)[^/]' \| \
20834 X$ac_file : 'X\(//\)$' \| \
20835 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20836 echo X$ac_file |
20837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20838 s//\1/
20839 q
20840 }
20841 /^X\(\/\/\)[^/].*/{
20842 s//\1/
20843 q
20844 }
20845 /^X\(\/\/\)$/{
20846 s//\1/
20847 q
20848 }
20849 /^X\(\/\).*/{
20850 s//\1/
20851 q
20852 }
20853 s/.*/./; q'`/stamp-h$_am_stamp_count
20854 ;;
20855
20856 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20857 echo "$as_me: executing $ac_file commands" >&6;}
20858 ;;
20859 esac
20860
20861
20862 case $ac_file$ac_mode in
20863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20864 # Strip MF so we end up with the name of the file.
20865 mf=`echo "$mf" | sed -e 's/:.*$//'`
20866 # Check whether this is an Automake generated Makefile or not.
20867 # We used to match only the files named `Makefile.in', but
20868 # some people rename them; so instead we look at the file content.
20869 # Grep'ing the first line is not enough: some people post-process
20870 # each Makefile.in and add a new line on top of each file to say so.
20871 # Grep'ing the whole file is not good either: AIX grep has a line
20872 # limit of 2048, but all sed's we know have understand at least 4000.
20873 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20874 dirpart=`$as_dirname -- "$mf" ||
20875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20876 X"$mf" : 'X\(//\)[^/]' \| \
20877 X"$mf" : 'X\(//\)$' \| \
20878 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20879 echo X"$mf" |
20880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20881 s//\1/
20882 q
20883 }
20884 /^X\(\/\/\)[^/].*/{
20885 s//\1/
20886 q
20887 }
20888 /^X\(\/\/\)$/{
20889 s//\1/
20890 q
20891 }
20892 /^X\(\/\).*/{
20893 s//\1/
20894 q
20895 }
20896 s/.*/./; q'`
20897 else
20898 continue
20899 fi
20900 # Extract the definition of DEPDIR, am__include, and am__quote
20901 # from the Makefile without running `make'.
20902 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20903 test -z "$DEPDIR" && continue
20904 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20905 test -z "am__include" && continue
20906 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20907 # When using ansi2knr, U may be empty or an underscore; expand it
20908 U=`sed -n 's/^U = //p' < "$mf"`
20909 # Find all dependency output files, they are included files with
20910 # $(DEPDIR) in their names. We invoke sed twice because it is the
20911 # simplest approach to changing $(DEPDIR) to its actual value in the
20912 # expansion.
20913 for file in `sed -n "
20914 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20915 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20916 # Make sure the directory exists.
20917 test -f "$dirpart/$file" && continue
20918 fdir=`$as_dirname -- "$file" ||
20919 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20920 X"$file" : 'X\(//\)[^/]' \| \
20921 X"$file" : 'X\(//\)$' \| \
20922 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20923 echo X"$file" |
20924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20925 s//\1/
20926 q
20927 }
20928 /^X\(\/\/\)[^/].*/{
20929 s//\1/
20930 q
20931 }
20932 /^X\(\/\/\)$/{
20933 s//\1/
20934 q
20935 }
20936 /^X\(\/\).*/{
20937 s//\1/
20938 q
20939 }
20940 s/.*/./; q'`
20941 { as_dir=$dirpart/$fdir
20942 case $as_dir in #(
20943 -*) as_dir=./$as_dir;;
20944 esac
20945 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20946 as_dirs=
20947 while :; do
20948 case $as_dir in #(
20949 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20950 *) as_qdir=$as_dir;;
20951 esac
20952 as_dirs="'$as_qdir' $as_dirs"
20953 as_dir=`$as_dirname -- "$as_dir" ||
20954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955 X"$as_dir" : 'X\(//\)[^/]' \| \
20956 X"$as_dir" : 'X\(//\)$' \| \
20957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20958 echo X"$as_dir" |
20959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960 s//\1/
20961 q
20962 }
20963 /^X\(\/\/\)[^/].*/{
20964 s//\1/
20965 q
20966 }
20967 /^X\(\/\/\)$/{
20968 s//\1/
20969 q
20970 }
20971 /^X\(\/\).*/{
20972 s//\1/
20973 q
20974 }
20975 s/.*/./; q'`
20976 test -d "$as_dir" && break
20977 done
20978 test -z "$as_dirs" || eval "mkdir $as_dirs"
20979 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20980 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20981 { (exit 1); exit 1; }; }; }
20982 # echo "creating $dirpart/$file"
20983 echo '# dummy' > "$dirpart/$file"
20984 done
20985 done
20986 ;;
20987
20988 esac
20989 done # for ac_tag
20990
20991
20992 { (exit 0); exit 0; }
20993 _ACEOF
20994 chmod +x $CONFIG_STATUS
20995 ac_clean_files=$ac_clean_files_save
20996
20997
20998 # configure is writing to config.log, and then calls config.status.
20999 # config.status does its own redirection, appending to config.log.
21000 # Unfortunately, on DOS this fails, as config.log is still kept open
21001 # by configure, so config.status won't be able to write to it; its
21002 # output is simply discarded. So we exec the FD to /dev/null,
21003 # effectively closing config.log, so it can be properly (re)opened and
21004 # appended to by config.status. When coming back to configure, we
21005 # need to make the FD available again.
21006 if test "$no_create" != yes; then
21007 ac_cs_success=:
21008 ac_config_status_args=
21009 test "$silent" = yes &&
21010 ac_config_status_args="$ac_config_status_args --quiet"
21011 exec 5>/dev/null
21012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21013 exec 5>>config.log
21014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21015 # would make configure fail if this is the last instruction.
21016 $ac_cs_success || { (exit 1); exit 1; }
21017 fi
21018