More unit tests
[codimension.git] / thirdparty / libantlr3c-3.2 / configure
blobdff6f59a84466751da6cac6d1d0d1b2549478c2b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libantlr3c 3.2.
5 # Report bugs to <jimi@temporal-wave.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
13 # (The "BSD licence")
14 # Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
15 # http://www.temporal-wave.com
16 # http://www.linkedin.com/in/jimidle
17 # All rights reserved.
19 # Redistribution and use in source and binary forms, with or without
20 # modification, are permitted provided that the following conditions
21 # are met:
22 # 1. Redistributions of source code must retain the above copyright
23 # notice, this list of conditions and the following disclaimer.
24 # 2. Redistributions in binary form must reproduce the above copyright
25 # notice, this list of conditions and the following disclaimer in the
26 # documentation and/or other materials provided with the distribution.
27 # 3. The name of the author may not be used to endorse or promote products
28 # derived from this software without specific prior written permission.
30 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
31 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
32 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
34 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 ## --------------------- ##
42 ## M4sh Initialization. ##
43 ## --------------------- ##
45 # Be more Bourne compatible
46 DUALCASE=1; export DUALCASE # for MKS sh
47 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48 emulate sh
49 NULLCMD=:
50 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51 # is contrary to our usage. Disable this feature.
52 alias -g '${1+"$@"}'='"$@"'
53 setopt NO_GLOB_SUBST
54 else
55 case `(set -o) 2>/dev/null` in
56 *posix*) set -o posix ;;
57 esac
64 # PATH needs CR
65 # Avoid depending upon Character Ranges.
66 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
67 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69 as_cr_digits='0123456789'
70 as_cr_alnum=$as_cr_Letters$as_cr_digits
72 as_nl='
74 export as_nl
75 # Printing a long string crashes Solaris 7 /usr/bin/printf.
76 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
77 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
78 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
79 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
80 as_echo='printf %s\n'
81 as_echo_n='printf %s'
82 else
83 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
84 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
85 as_echo_n='/usr/ucb/echo -n'
86 else
87 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
88 as_echo_n_body='eval
89 arg=$1;
90 case $arg in
91 *"$as_nl"*)
92 expr "X$arg" : "X\\(.*\\)$as_nl";
93 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
94 esac;
95 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
97 export as_echo_n_body
98 as_echo_n='sh -c $as_echo_n_body as_echo'
100 export as_echo_body
101 as_echo='sh -c $as_echo_body as_echo'
104 # The user is always right.
105 if test "${PATH_SEPARATOR+set}" != set; then
106 PATH_SEPARATOR=:
107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
109 PATH_SEPARATOR=';'
113 # Support unset when possible.
114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
115 as_unset=unset
116 else
117 as_unset=false
121 # IFS
122 # We need space, tab and new line, in precisely that order. Quoting is
123 # there to prevent editors from complaining about space-tab.
124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
125 # splitting by setting IFS to empty value.)
126 IFS=" "" $as_nl"
128 # Find who we are. Look in the path if we contain no directory separator.
129 case $0 in
130 *[\\/]* ) as_myself=$0 ;;
131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in $PATH
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
137 done
138 IFS=$as_save_IFS
141 esac
142 # We did not find ourselves, most probably we were run as `sh COMMAND'
143 # in which case we are not to be found in the path.
144 if test "x$as_myself" = x; then
145 as_myself=$0
147 if test ! -f "$as_myself"; then
148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
149 { (exit 1); exit 1; }
152 # Work around bugs in pre-3.0 UWIN ksh.
153 for as_var in ENV MAIL MAILPATH
154 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
155 done
156 PS1='$ '
157 PS2='> '
158 PS4='+ '
160 # NLS nuisances.
161 LC_ALL=C
162 export LC_ALL
163 LANGUAGE=C
164 export LANGUAGE
166 # Required to use basename.
167 if expr a : '\(a\)' >/dev/null 2>&1 &&
168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
169 as_expr=expr
170 else
171 as_expr=false
174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
175 as_basename=basename
176 else
177 as_basename=false
181 # Name of the executable.
182 as_me=`$as_basename -- "$0" ||
183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
184 X"$0" : 'X\(//\)$' \| \
185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
186 $as_echo X/"$0" |
187 sed '/^.*\/\([^/][^/]*\)\/*$/{
188 s//\1/
191 /^X\/\(\/\/\)$/{
192 s//\1/
195 /^X\/\(\/\).*/{
196 s//\1/
199 s/.*/./; q'`
201 # CDPATH.
202 $as_unset CDPATH
205 if test "x$CONFIG_SHELL" = x; then
206 if (eval ":") 2>/dev/null; then
207 as_have_required=yes
208 else
209 as_have_required=no
212 if test $as_have_required = yes && (eval ":
213 (as_func_return () {
214 (exit \$1)
216 as_func_success () {
217 as_func_return 0
219 as_func_failure () {
220 as_func_return 1
222 as_func_ret_success () {
223 return 0
225 as_func_ret_failure () {
226 return 1
229 exitcode=0
230 if as_func_success; then
232 else
233 exitcode=1
234 echo as_func_success failed.
237 if as_func_failure; then
238 exitcode=1
239 echo as_func_failure succeeded.
242 if as_func_ret_success; then
244 else
245 exitcode=1
246 echo as_func_ret_success failed.
249 if as_func_ret_failure; then
250 exitcode=1
251 echo as_func_ret_failure succeeded.
254 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
256 else
257 exitcode=1
258 echo positional parameters were not saved.
261 test \$exitcode = 0) || { (exit 1); exit 1; }
264 as_lineno_1=\$LINENO
265 as_lineno_2=\$LINENO
266 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
267 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
268 ") 2> /dev/null; then
270 else
271 as_candidate_shells=
272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
273 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
275 IFS=$as_save_IFS
276 test -z "$as_dir" && as_dir=.
277 case $as_dir in
279 for as_base in sh bash ksh sh5; do
280 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
281 done;;
282 esac
283 done
284 IFS=$as_save_IFS
287 for as_shell in $as_candidate_shells $SHELL; do
288 # Try only shells that exist, to save several forks.
289 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
290 { ("$as_shell") 2> /dev/null <<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
292 emulate sh
293 NULLCMD=:
294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
295 # is contrary to our usage. Disable this feature.
296 alias -g '${1+"$@"}'='"$@"'
297 setopt NO_GLOB_SUBST
298 else
299 case `(set -o) 2>/dev/null` in
300 *posix*) set -o posix ;;
301 esac
307 _ASEOF
308 }; then
309 CONFIG_SHELL=$as_shell
310 as_have_required=yes
311 if { "$as_shell" 2> /dev/null <<\_ASEOF
312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
313 emulate sh
314 NULLCMD=:
315 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
316 # is contrary to our usage. Disable this feature.
317 alias -g '${1+"$@"}'='"$@"'
318 setopt NO_GLOB_SUBST
319 else
320 case `(set -o) 2>/dev/null` in
321 *posix*) set -o posix ;;
322 esac
328 (as_func_return () {
329 (exit $1)
331 as_func_success () {
332 as_func_return 0
334 as_func_failure () {
335 as_func_return 1
337 as_func_ret_success () {
338 return 0
340 as_func_ret_failure () {
341 return 1
344 exitcode=0
345 if as_func_success; then
347 else
348 exitcode=1
349 echo as_func_success failed.
352 if as_func_failure; then
353 exitcode=1
354 echo as_func_failure succeeded.
357 if as_func_ret_success; then
359 else
360 exitcode=1
361 echo as_func_ret_success failed.
364 if as_func_ret_failure; then
365 exitcode=1
366 echo as_func_ret_failure succeeded.
369 if ( set x; as_func_ret_success y && test x = "$1" ); then
371 else
372 exitcode=1
373 echo positional parameters were not saved.
376 test $exitcode = 0) || { (exit 1); exit 1; }
379 as_lineno_1=$LINENO
380 as_lineno_2=$LINENO
381 test "x$as_lineno_1" != "x$as_lineno_2" &&
382 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
384 _ASEOF
385 }; then
386 break
391 done
393 if test "x$CONFIG_SHELL" != x; then
394 for as_var in BASH_ENV ENV
395 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
396 done
397 export CONFIG_SHELL
398 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
402 if test $as_have_required = no; then
403 echo This script requires a shell more modern than all the
404 echo shells that I found on your system. Please install a
405 echo modern shell, or manually run the script under such a
406 echo shell if you do have one.
407 { (exit 1); exit 1; }
417 (eval "as_func_return () {
418 (exit \$1)
420 as_func_success () {
421 as_func_return 0
423 as_func_failure () {
424 as_func_return 1
426 as_func_ret_success () {
427 return 0
429 as_func_ret_failure () {
430 return 1
433 exitcode=0
434 if as_func_success; then
436 else
437 exitcode=1
438 echo as_func_success failed.
441 if as_func_failure; then
442 exitcode=1
443 echo as_func_failure succeeded.
446 if as_func_ret_success; then
448 else
449 exitcode=1
450 echo as_func_ret_success failed.
453 if as_func_ret_failure; then
454 exitcode=1
455 echo as_func_ret_failure succeeded.
458 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
460 else
461 exitcode=1
462 echo positional parameters were not saved.
465 test \$exitcode = 0") || {
466 echo No shell found that supports shell functions.
467 echo Please tell bug-autoconf@gnu.org about your system,
468 echo including any error possibly output before this message.
469 echo This can help us improve future autoconf versions.
470 echo Configuration will now proceed without shell functions.
475 as_lineno_1=$LINENO
476 as_lineno_2=$LINENO
477 test "x$as_lineno_1" != "x$as_lineno_2" &&
478 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
481 # uniformly replaced by the line number. The first 'sed' inserts a
482 # line-number line after each line using $LINENO; the second 'sed'
483 # does the real work. The second script uses 'N' to pair each
484 # line-number line with the line containing $LINENO, and appends
485 # trailing '-' during substitution so that $LINENO is not a special
486 # case at line end.
487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
488 # scripts with optimization help from Paolo Bonzini. Blame Lee
489 # E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
498 :lineno
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
507 { (exit 1); exit 1; }; }
509 # Don't try to exec as it changes $[0], causing all sort of problems
510 # (the dirname of $[0] is not the place where we might find the
511 # original and so on. Autoconf is especially sensitive to this).
512 . "./$as_me.lineno"
513 # Exit status is that of the last command.
514 exit
518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
519 as_dirname=dirname
520 else
521 as_dirname=false
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in
526 -n*)
527 case `echo 'x\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 *) ECHO_C='\c';;
530 esac;;
532 ECHO_N='-n';;
533 esac
534 if expr a : '\(a\)' >/dev/null 2>&1 &&
535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
536 as_expr=expr
537 else
538 as_expr=false
541 rm -f conf$$ conf$$.exe conf$$.file
542 if test -d conf$$.dir; then
543 rm -f conf$$.dir/conf$$.file
544 else
545 rm -f conf$$.dir
546 mkdir conf$$.dir 2>/dev/null
548 if (echo >conf$$.file) 2>/dev/null; then
549 if ln -s conf$$.file conf$$ 2>/dev/null; then
550 as_ln_s='ln -s'
551 # ... but there are two gotchas:
552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
554 # In both cases, we have to default to `cp -p'.
555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
556 as_ln_s='cp -p'
557 elif ln conf$$.file conf$$ 2>/dev/null; then
558 as_ln_s=ln
559 else
560 as_ln_s='cp -p'
562 else
563 as_ln_s='cp -p'
565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
566 rmdir conf$$.dir 2>/dev/null
568 if mkdir -p . 2>/dev/null; then
569 as_mkdir_p=:
570 else
571 test -d ./-p && rmdir ./-p
572 as_mkdir_p=false
575 if test -x / >/dev/null 2>&1; then
576 as_test_x='test -x'
577 else
578 if ls -dL / >/dev/null 2>&1; then
579 as_ls_L_option=L
580 else
581 as_ls_L_option=
583 as_test_x='
584 eval sh -c '\''
585 if test -d "$1"; then
586 test -d "$1/.";
587 else
588 case $1 in
589 -*)set "./$1";;
590 esac;
591 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
592 ???[sx]*):;;*)false;;esac;fi
593 '\'' sh
596 as_executable_p=$as_test_x
598 # Sed expression to map a string onto a valid CPP name.
599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
601 # Sed expression to map a string onto a valid variable name.
602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
607 # Check that we are running under the correct shell.
608 SHELL=${CONFIG_SHELL-/bin/sh}
610 case X$ECHO in
611 X*--fallback-echo)
612 # Remove one level of quotation (which was required for Make).
613 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
615 esac
617 echo=${ECHO-echo}
618 if test "X$1" = X--no-reexec; then
619 # Discard the --no-reexec flag, and continue.
620 shift
621 elif test "X$1" = X--fallback-echo; then
622 # Avoid inline document here, it may be left over
624 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
625 # Yippee, $echo works!
627 else
628 # Restart under the correct shell.
629 exec $SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X$1" = X--fallback-echo; then
633 # used as fallback echo
634 shift
635 cat <<EOF
638 exit 0
641 # The HP-UX ksh and POSIX shell print the target directory to stdout
642 # if CDPATH is set.
643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
645 if test -z "$ECHO"; then
646 if test "X${echo_test_string+set}" != Xset; then
647 # find a string as large as possible, as long as the shell can cope with it
648 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
649 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
650 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
651 echo_test_string=`eval $cmd` &&
652 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
653 then
654 break
656 done
659 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
663 else
664 # The Solaris, AIX, and Digital Unix default echo programs unquote
665 # backslashes. This makes it impossible to quote backslashes using
666 # echo "$something" | sed 's/\\/\\\\/g'
668 # So, first we look for a working echo in the user's PATH.
670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
671 for dir in $PATH /usr/ucb; do
672 IFS="$lt_save_ifs"
673 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
674 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
675 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 echo="$dir/echo"
678 break
680 done
681 IFS="$lt_save_ifs"
683 if test "X$echo" = Xecho; then
684 # We didn't find a better echo, so look for alternatives.
685 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
686 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 # This shell has a builtin print -r that does the trick.
689 echo='print -r'
690 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
691 test "X$CONFIG_SHELL" != X/bin/ksh; then
692 # If we have ksh, try running configure again with it.
693 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
694 export ORIGINAL_CONFIG_SHELL
695 CONFIG_SHELL=/bin/ksh
696 export CONFIG_SHELL
697 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
698 else
699 # Try using printf.
700 echo='printf %s\n'
701 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
702 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
703 test "X$echo_testing_string" = "X$echo_test_string"; then
704 # Cool, printf works
706 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
707 test "X$echo_testing_string" = 'X\t' &&
708 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
709 test "X$echo_testing_string" = "X$echo_test_string"; then
710 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
711 export CONFIG_SHELL
712 SHELL="$CONFIG_SHELL"
713 export SHELL
714 echo="$CONFIG_SHELL $0 --fallback-echo"
715 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
716 test "X$echo_testing_string" = 'X\t' &&
717 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
718 test "X$echo_testing_string" = "X$echo_test_string"; then
719 echo="$CONFIG_SHELL $0 --fallback-echo"
720 else
721 # maybe with a smaller string...
722 prev=:
724 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
725 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
726 then
727 break
729 prev="$cmd"
730 done
732 if test "$prev" != 'sed 50q "$0"'; then
733 echo_test_string=`eval $prev`
734 export echo_test_string
735 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
736 else
737 # Oops. We lost completely, so just stick with echo.
738 echo=echo
746 # Copy echo and quote the copy suitably for passing to libtool from
747 # the Makefile, instead of quoting the original, which is used later.
748 ECHO=$echo
749 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
750 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
756 tagnames=${tagnames+${tagnames},}CXX
758 tagnames=${tagnames+${tagnames},}F77
760 exec 7<&0 </dev/null 6>&1
762 # Name of the host.
763 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
764 # so uname gets run too.
765 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
768 # Initializations.
770 ac_default_prefix=/usr/local
771 ac_clean_files=
772 ac_config_libobj_dir=.
773 LIBOBJS=
774 cross_compiling=no
775 subdirs=
776 MFLAGS=
777 MAKEFLAGS=
778 SHELL=${CONFIG_SHELL-/bin/sh}
780 # Identity of this package.
781 PACKAGE_NAME='libantlr3c'
782 PACKAGE_TARNAME='libantlr3c'
783 PACKAGE_VERSION='3.2'
784 PACKAGE_STRING='libantlr3c 3.2'
785 PACKAGE_BUGREPORT='jimi@temporal-wave.com'
787 ac_unique_file="src/antlr3parser.c"
788 # Factoring default headers for most tests.
789 ac_includes_default="\
790 #include <stdio.h>
791 #ifdef HAVE_SYS_TYPES_H
792 # include <sys/types.h>
793 #endif
794 #ifdef HAVE_SYS_STAT_H
795 # include <sys/stat.h>
796 #endif
797 #ifdef STDC_HEADERS
798 # include <stdlib.h>
799 # include <stddef.h>
800 #else
801 # ifdef HAVE_STDLIB_H
802 # include <stdlib.h>
803 # endif
804 #endif
805 #ifdef HAVE_STRING_H
806 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
807 # include <memory.h>
808 # endif
809 # include <string.h>
810 #endif
811 #ifdef HAVE_STRINGS_H
812 # include <strings.h>
813 #endif
814 #ifdef HAVE_INTTYPES_H
815 # include <inttypes.h>
816 #endif
817 #ifdef HAVE_STDINT_H
818 # include <stdint.h>
819 #endif
820 #ifdef HAVE_UNISTD_H
821 # include <unistd.h>
822 #endif"
824 ac_subst_vars='LTLIBOBJS
825 LIBOBJS
826 OBJECT_MODE
827 LIBTOOL
828 ac_ct_F77
829 FFLAGS
831 CXXCPP
832 am__fastdepCXX_FALSE
833 am__fastdepCXX_TRUE
834 CXXDEPMODE
835 ac_ct_CXX
836 CXXFLAGS
839 RANLIB
841 ECHO
842 LN_S
843 EGREP
844 GREP
846 host_os
847 host_vendor
848 host_cpu
849 host
850 build_os
851 build_vendor
852 build_cpu
853 build
854 MAINT
855 MAINTAINER_MODE_FALSE
856 MAINTAINER_MODE_TRUE
857 am__fastdepCC_FALSE
858 am__fastdepCC_TRUE
859 CCDEPMODE
860 AMDEPBACKSLASH
861 AMDEP_FALSE
862 AMDEP_TRUE
863 am__quote
864 am__include
865 DEPDIR
866 OBJEXT
867 EXEEXT
868 ac_ct_CC
869 CPPFLAGS
870 LDFLAGS
871 CFLAGS
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
879 mkdir_p
880 INSTALL_STRIP_PROGRAM
881 STRIP
882 install_sh
883 MAKEINFO
884 AUTOHEADER
885 AUTOMAKE
886 AUTOCONF
887 ACLOCAL
888 VERSION
889 PACKAGE
890 CYGPATH_W
891 INSTALL_DATA
892 INSTALL_SCRIPT
893 INSTALL_PROGRAM
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL'
931 ac_subst_files=''
932 ac_user_opts='
933 enable_option_checking
934 enable_debuginfo
935 enable_64bit
936 enable_abiflags
937 enable_antlrdebug
938 enable_dependency_tracking
939 enable_maintainer_mode
940 enable_shared
941 enable_static
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 with_pic
946 with_tags
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
958 CXXFLAGS
960 CXXCPP
962 FFLAGS'
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=no ;;
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=\$ac_optarg ;;
1316 -without-* | --without-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321 { (exit 1); exit 1; }; }
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1326 "with_$ac_useropt"
1327 "*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=no ;;
1333 --x)
1334 # Obsolete; use --with-x.
1335 with_x=yes ;;
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342 x_includes=$ac_optarg ;;
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349 x_libraries=$ac_optarg ;;
1351 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352 Try \`$0 --help' for more information." >&2
1353 { (exit 1); exit 1; }; }
1356 *=*)
1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361 { (exit 1); exit 1; }; }
1362 eval $ac_envvar=\$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 esac
1374 done
1376 if test -n "$ac_prev"; then
1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379 { (exit 1); exit 1; }; }
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1384 no) ;;
1385 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386 { (exit 1); exit 1; }; } ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410 { (exit 1); exit 1; }; }
1411 done
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422 if test "x$build_alias" = x; then
1423 cross_compiling=maybe
1424 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425 If a cross compiler is detected then cross compile mode will be used." >&2
1426 elif test "x$build_alias" != "x$host_alias"; then
1427 cross_compiling=yes
1431 ac_tool_prefix=
1432 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434 test "$silent" = yes && exec 6>/dev/null
1437 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di=`ls -di .` &&
1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441 { (exit 1); exit 1; }; }
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444 { (exit 1); exit 1; }; }
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1465 /^X\(\/\/\)$/{
1466 s//\1/
1469 /^X\(\/\).*/{
1470 s//\1/
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1478 else
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484 { (exit 1); exit 1; }; }
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489 { (exit 1); exit 1; }; }
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1509 # Report the --help message.
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures libantlr3c 3.2 to adapt to many kinds of systems.
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1522 Defaults for the options are specified in brackets.
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1546 For better control, use the options below.
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/libantlr3c]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1570 cat <<\_ACEOF
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of libantlr3c 3.2:";;
1586 esac
1587 cat <<\_ACEOF
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --enable-debuginfo Compiles debug info into the library (default
1594 --disable-debuginfo)
1595 --enable-64bit Turns on flags that produce 64 bit object code if
1596 any are required (default --disable-64bit)
1597 --disable-abiflags Does not add ABI flags -m32 or -m64 for older
1598 versions of gcc, such as itanium 3.x (default
1599 --enable-abiflags=yes)
1600 --disable-antlrdebug Turns off default flags that include the antlr
1601 debugger in the runtime. Specify to remove debugger
1602 and the socket dependancies (default
1603 --enable-antlrdebug)
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing) to the casual installer
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1614 Optional Packages:
1615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-pic try to use only PIC/non-PIC objects [default=use
1619 both]
1620 --with-tags[=TAGS] include additional configurations [automatic]
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CPP C preprocessor
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 CXXCPP C++ preprocessor
1634 F77 Fortran 77 compiler command
1635 FFLAGS Fortran 77 compiler flags
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1640 Report bugs to <jimi@temporal-wave.com>.
1641 _ACEOF
1642 ac_status=$?
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
1651 ac_builddir=.
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1669 case $srcdir in
1670 .) # We are building in place.
1671 ac_srcdir=.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 libantlr3c configure 3.2
1704 generated by GNU Autoconf 2.63
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1712 (The "BSD licence")
1713 Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
1714 http://www.temporal-wave.com
1715 http://www.linkedin.com/in/jimidle
1716 All rights reserved.
1718 Redistribution and use in source and binary forms, with or without
1719 modification, are permitted provided that the following conditions
1720 are met:
1721 1. Redistributions of source code must retain the above copyright
1722 notice, this list of conditions and the following disclaimer.
1723 2. Redistributions in binary form must reproduce the above copyright
1724 notice, this list of conditions and the following disclaimer in the
1725 documentation and/or other materials provided with the distribution.
1726 3. The name of the author may not be used to endorse or promote products
1727 derived from this software without specific prior written permission.
1729 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1730 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1731 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1732 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1733 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1734 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1735 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1736 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1737 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1738 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1740 _ACEOF
1741 exit
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1747 It was created by libantlr3c $as_me 3.2, which was
1748 generated by GNU Autoconf 2.63. Invocation command line was
1750 $ $0 $@
1752 _ACEOF
1753 exec 5>>config.log
1755 cat <<_ASUNAME
1756 ## --------- ##
1757 ## Platform. ##
1758 ## --------- ##
1760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777 _ASUNAME
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 $as_echo "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1788 } >&5
1790 cat >&5 <<_ACEOF
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1797 _ACEOF
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1811 for ac_arg
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1824 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1840 ac_configure_args="$ac_configure_args '$ac_arg'"
1842 esac
1843 done
1844 done
1845 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Save into config.log some information that might help in debugging.
1856 echo
1858 cat <<\_ASBOX
1859 ## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##
1862 _ASBOX
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) $as_unset $ac_var ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 esac |
1892 sort
1894 echo
1896 cat <<\_ASBOX
1897 ## ----------------- ##
1898 ## Output variables. ##
1899 ## ----------------- ##
1900 _ASBOX
1901 echo
1902 for ac_var in $ac_subst_vars
1904 eval ac_val=\$$ac_var
1905 case $ac_val in
1906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 esac
1908 $as_echo "$ac_var='\''$ac_val'\''"
1909 done | sort
1910 echo
1912 if test -n "$ac_subst_files"; then
1913 cat <<\_ASBOX
1914 ## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##
1917 _ASBOX
1918 echo
1919 for ac_var in $ac_subst_files
1921 eval ac_val=\$$ac_var
1922 case $ac_val in
1923 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 esac
1925 $as_echo "$ac_var='\''$ac_val'\''"
1926 done | sort
1927 echo
1930 if test -s confdefs.h; then
1931 cat <<\_ASBOX
1932 ## ----------- ##
1933 ## confdefs.h. ##
1934 ## ----------- ##
1935 _ASBOX
1936 echo
1937 cat confdefs.h
1938 echo
1940 test "$ac_signal" != 0 &&
1941 $as_echo "$as_me: caught signal $ac_signal"
1942 $as_echo "$as_me: exit $exit_status"
1943 } >&5
1944 rm -f core *.core core.conftest.* &&
1945 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946 exit $exit_status
1948 for ac_signal in 1 2 13 15; do
1949 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950 done
1951 ac_signal=0
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1956 # Predefined preprocessor variables.
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 _ACEOF
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 _ACEOF
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1970 _ACEOF
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 _ACEOF
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1985 ac_site_file1=NONE
1986 ac_site_file2=NONE
1987 if test -n "$CONFIG_SITE"; then
1988 ac_site_file1=$CONFIG_SITE
1989 elif test "x$prefix" != xNONE; then
1990 ac_site_file1=$prefix/share/config.site
1991 ac_site_file2=$prefix/etc/config.site
1992 else
1993 ac_site_file1=$ac_default_prefix/share/config.site
1994 ac_site_file2=$ac_default_prefix/etc/config.site
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998 test "x$ac_site_file" = xNONE && continue
1999 if test -r "$ac_site_file"; then
2000 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2003 . "$ac_site_file"
2005 done
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special
2009 # files actually), so we avoid doing that.
2010 if test -f "$cache_file"; then
2011 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013 case $cache_file in
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2016 esac
2018 else
2019 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021 >$cache_file
2024 # Check that the precious variables saved in the cache have kept the same
2025 # value.
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029 eval ac_new_set=\$ac_env_${ac_var}_set
2030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031 eval ac_new_val=\$ac_env_${ac_var}_value
2032 case $ac_old_set,$ac_new_set in
2033 set,)
2034 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2037 ,set)
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2041 ,);;
2043 if test "x$ac_old_val" != "x$ac_new_val"; then
2044 # differences in whitespace do not lead to failure.
2045 ac_old_val_w=`echo x $ac_old_val`
2046 ac_new_val_w=`echo x $ac_new_val`
2047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050 ac_cache_corrupted=:
2051 else
2052 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054 eval $ac_var=\$ac_old_val
2056 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2058 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2060 fi;;
2061 esac
2062 # Pass precious variables to config.status.
2063 if test "$ac_new_set" = set; then
2064 case $ac_new_val in
2065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 *) ac_arg=$ac_var=$ac_new_val ;;
2067 esac
2068 case " $ac_configure_args " in
2069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2070 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2071 esac
2073 done
2074 if $ac_cache_corrupted; then
2075 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2080 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2081 { (exit 1); exit 1; }; }
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 # Check whether --enable-debuginfo was given.
2121 if test "${enable_debuginfo+set}" = set; then
2122 enableval=$enable_debuginfo;
2123 else
2124 enable_debuginfo=no
2128 # Check whether --enable-64bit was given.
2129 if test "${enable_64bit+set}" = set; then
2130 enableval=$enable_64bit;
2131 else
2132 enable_64bit=no
2136 # Check whether --enable-abiflags was given.
2137 if test "${enable_abiflags+set}" = set; then
2138 enableval=$enable_abiflags;
2139 else
2140 enable_abiflags=yes
2144 # Check whether --enable-antlrdebug was given.
2145 if test "${enable_antlrdebug+set}" = set; then
2146 enableval=$enable_antlrdebug;
2147 else
2148 enable_antlrdebug=yes
2152 am__api_version="1.9"
2153 ac_aux_dir=
2154 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2155 if test -f "$ac_dir/install-sh"; then
2156 ac_aux_dir=$ac_dir
2157 ac_install_sh="$ac_aux_dir/install-sh -c"
2158 break
2159 elif test -f "$ac_dir/install.sh"; then
2160 ac_aux_dir=$ac_dir
2161 ac_install_sh="$ac_aux_dir/install.sh -c"
2162 break
2163 elif test -f "$ac_dir/shtool"; then
2164 ac_aux_dir=$ac_dir
2165 ac_install_sh="$ac_aux_dir/shtool install -c"
2166 break
2168 done
2169 if test -z "$ac_aux_dir"; then
2170 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2171 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2172 { (exit 1); exit 1; }; }
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2190 # AIX /bin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if test "${ac_cv_path_install+set}" = set; then
2202 $as_echo_n "(cached) " >&6
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in
2211 ./ | .// | /cC/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2214 /usr/ucb/* ) ;;
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2218 # by default.
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2230 else
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2234 mkdir conftest.dir
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2239 then
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241 break 3
2245 done
2246 done
2248 esac
2250 done
2251 IFS=$as_save_IFS
2253 rm -rf conftest.one conftest.two conftest.dir
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2258 else
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2266 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2279 # Just in case
2280 sleep 1
2281 echo timestamp > conftest.file
2282 # Do `set' in a subshell so we don't clobber the current shell's
2283 # arguments. Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2286 # directory).
2287 if (
2288 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2289 if test "$*" = "X"; then
2290 # -L didn't work.
2291 set X `ls -t $srcdir/configure conftest.file`
2293 rm -f conftest.file
2294 if test "$*" != "X $srcdir/configure conftest.file" \
2295 && test "$*" != "X conftest.file $srcdir/configure"; then
2297 # If neither matched, then we have a broken ls. This can happen
2298 # if, for instance, CONFIG_SHELL is bash and it inherits a
2299 # broken ls alias from the environment. This has actually
2300 # happened. Such a system could not be considered "sane".
2301 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2302 alias in your environment" >&5
2303 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2304 alias in your environment" >&2;}
2305 { (exit 1); exit 1; }; }
2308 test "$2" = conftest.file
2310 then
2311 # Ok.
2313 else
2314 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2315 Check your system clock" >&5
2316 $as_echo "$as_me: error: newly created file is older than distributed files!
2317 Check your system clock" >&2;}
2318 { (exit 1); exit 1; }; }
2320 { $as_echo "$as_me:$LINENO: result: yes" >&5
2321 $as_echo "yes" >&6; }
2322 test "$program_prefix" != NONE &&
2323 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2324 # Use a double $ so make ignores it.
2325 test "$program_suffix" != NONE &&
2326 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2327 # Double any \ or $.
2328 # By default was `s,x,x', remove it if useless.
2329 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2330 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2332 # expand $ac_aux_dir to an absolute path
2333 am_aux_dir=`cd $ac_aux_dir && pwd`
2335 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2336 # Use eval to expand $SHELL
2337 if eval "$MISSING --run true"; then
2338 am_missing_run="$MISSING --run "
2339 else
2340 am_missing_run=
2341 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2342 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2345 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2346 # We used to keeping the `.' as first argument, in order to
2347 # allow $(mkdir_p) to be used without argument. As in
2348 # $(mkdir_p) $(somedir)
2349 # where $(somedir) is conditionally defined. However this is wrong
2350 # for two reasons:
2351 # 1. if the package is installed by a user who cannot write `.'
2352 # make install will fail,
2353 # 2. the above comment should most certainly read
2354 # $(mkdir_p) $(DESTDIR)$(somedir)
2355 # so it does not work when $(somedir) is undefined and
2356 # $(DESTDIR) is not.
2357 # To support the latter case, we have to write
2358 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2359 # so the `.' trick is pointless.
2360 mkdir_p='mkdir -p --'
2361 else
2362 # On NextStep and OpenStep, the `mkdir' command does not
2363 # recognize any option. It will interpret all options as
2364 # directories to create, and then abort because `.' already
2365 # exists.
2366 for d in ./-p ./--version;
2368 test -d $d && rmdir $d
2369 done
2370 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2371 if test -f "$ac_aux_dir/mkinstalldirs"; then
2372 mkdir_p='$(mkinstalldirs)'
2373 else
2374 mkdir_p='$(install_sh) -d'
2378 for ac_prog in gawk mawk nawk awk
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if test "${ac_cv_prog_AWK+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test -n "$AWK"; then
2388 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_AWK="$ac_prog"
2398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 AWK=$ac_cv_prog_AWK
2408 if test -n "$AWK"; then
2409 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2410 $as_echo "$AWK" >&6; }
2411 else
2412 { $as_echo "$as_me:$LINENO: result: no" >&5
2413 $as_echo "no" >&6; }
2417 test -n "$AWK" && break
2418 done
2420 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2422 set x ${MAKE-make}
2423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425 $as_echo_n "(cached) " >&6
2426 else
2427 cat >conftest.make <<\_ACEOF
2428 SHELL = /bin/sh
2429 all:
2430 @echo '@@@%%%=$(MAKE)=@@@%%%'
2431 _ACEOF
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2434 *@@@%%%=?*=@@@%%%*)
2435 eval ac_cv_prog_make_${ac_make}_set=yes;;
2437 eval ac_cv_prog_make_${ac_make}_set=no;;
2438 esac
2439 rm -f conftest.make
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442 { $as_echo "$as_me:$LINENO: result: yes" >&5
2443 $as_echo "yes" >&6; }
2444 SET_MAKE=
2445 else
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448 SET_MAKE="MAKE=${MAKE-make}"
2451 rm -rf .tst 2>/dev/null
2452 mkdir .tst 2>/dev/null
2453 if test -d .tst; then
2454 am__leading_dot=.
2455 else
2456 am__leading_dot=_
2458 rmdir .tst 2>/dev/null
2460 # test to see if srcdir already configured
2461 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2462 test -f $srcdir/config.status; then
2463 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2464 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2465 { (exit 1); exit 1; }; }
2468 # test whether we have cygpath
2469 if test -z "$CYGPATH_W"; then
2470 if (cygpath --version) >/dev/null 2>/dev/null; then
2471 CYGPATH_W='cygpath -w'
2472 else
2473 CYGPATH_W=echo
2478 # Define the identity of the package.
2479 PACKAGE='libantlr3c'
2480 VERSION='3.2'
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE "$PACKAGE"
2485 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define VERSION "$VERSION"
2490 _ACEOF
2492 # Some tools Automake needs.
2494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2508 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'. However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}strip; ac_word=$2
2518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$STRIP"; then
2524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 STRIP=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2546 $as_echo "$STRIP" >&6; }
2547 else
2548 { $as_echo "$as_me:$LINENO: result: no" >&5
2549 $as_echo "no" >&6; }
2554 if test -z "$ac_cv_prog_STRIP"; then
2555 ac_ct_STRIP=$STRIP
2556 # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip; ac_word=$2
2558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$ac_ct_STRIP"; then
2564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_STRIP="strip"
2574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2577 done
2578 done
2579 IFS=$as_save_IFS
2583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2586 $as_echo "$ac_ct_STRIP" >&6; }
2587 else
2588 { $as_echo "$as_me:$LINENO: result: no" >&5
2589 $as_echo "no" >&6; }
2592 if test "x$ac_ct_STRIP" = x; then
2593 STRIP=":"
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601 STRIP=$ac_ct_STRIP
2603 else
2604 STRIP="$ac_cv_prog_STRIP"
2608 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2610 # We need awk for the "check" target. The system "awk" is bad on
2611 # some platforms.
2612 # Always define AMTAR for backward compatibility.
2614 AMTAR=${AMTAR-"${am_missing_run}tar"}
2616 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog in xlc aCC gcc cc
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2657 done
2658 done
2659 IFS=$as_save_IFS
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2666 $as_echo "$CC" >&6; }
2667 else
2668 { $as_echo "$as_me:$LINENO: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$CC" && break
2674 done
2676 if test -z "$CC"; then
2677 ac_ct_CC=$CC
2678 for ac_prog in xlc aCC gcc cc
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC="$ac_prog"
2698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2703 IFS=$as_save_IFS
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2711 else
2712 { $as_echo "$as_me:$LINENO: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$ac_ct_CC" && break
2718 done
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2734 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }; }
2742 # Provide some information about the compiler.
2743 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 set X $ac_compile
2745 ac_compiler=$2
2746 { (ac_try="$ac_compiler --version >&5"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752 $as_echo "$ac_try_echo") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2754 ac_status=$?
2755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2758 case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764 (eval "$ac_compiler -v >&5") 2>&5
2765 ac_status=$?
2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774 $as_echo "$ac_try_echo") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h. */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2788 main ()
2792 return 0;
2794 _ACEOF
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2799 # of exeext.
2800 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 $as_echo_n "checking for C compiler default output file name... " >&6; }
2802 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 # The possible output files:
2805 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2810 case $ac_file in
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813 esac
2814 done
2815 rm -f $ac_rmfiles
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823 $as_echo "$ac_try_echo") >&5
2824 (eval "$ac_link_default") 2>&5
2825 ac_status=$?
2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files ''
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2839 [ab].out )
2840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
2843 *.* )
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
2853 break;;
2855 break;;
2856 esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 else
2861 ac_file=''
2864 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2865 $as_echo "$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 $as_echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876 { (exit 77); exit 77; }; }; }
2879 ac_exeext=$ac_cv_exeext
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 $as_echo_n "checking whether the C compiler works... " >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_try") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 cross_compiling=no
2900 else
2901 if test "$cross_compiling" = maybe; then
2902 cross_compiling=yes
2903 else
2904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&5
2909 $as_echo "$as_me: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }; }
2916 { $as_echo "$as_me:$LINENO: result: yes" >&5
2917 $as_echo "yes" >&6; }
2919 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 # Check that the compiler produces executables we can run. If not, either
2922 # the compiler is broken, or we cross compile.
2923 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2924 $as_echo_n "checking whether we are cross compiling... " >&6; }
2925 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2926 $as_echo "$cross_compiling" >&6; }
2928 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2929 $as_echo_n "checking for suffix of executables... " >&6; }
2930 if { (ac_try="$ac_link"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937 (eval "$ac_link") 2>&5
2938 ac_status=$?
2939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
2941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2943 # work properly (i.e., refer to `conftest.exe'), while it won't with
2944 # `rm'.
2945 for ac_file in conftest.exe conftest conftest.*; do
2946 test -f "$ac_file" || continue
2947 case $ac_file in
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 break;;
2951 * ) break;;
2952 esac
2953 done
2954 else
2955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }; }
2964 rm -f conftest$ac_cv_exeext
2965 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 $as_echo "$ac_cv_exeext" >&6; }
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2970 ac_exeext=$EXEEXT
2971 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 $as_echo_n "checking for suffix of object files... " >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2984 main ()
2988 return 0;
2990 _ACEOF
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999 (eval "$ac_compile") 2>&5
3000 ac_status=$?
3001 $as_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 | *.dSYM ) ;;
3007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008 break;;
3009 esac
3010 done
3011 else
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details." >&5
3019 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027 $as_echo "$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3029 ac_objext=$OBJEXT
3030 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3032 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3034 else
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3043 main ()
3045 #ifndef __GNUC__
3046 choke me
3047 #endif
3050 return 0;
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060 $as_echo "$ac_try_echo") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3071 ac_compiler_gnu=yes
3072 else
3073 $as_echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 ac_compiler_gnu=no
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3085 if test $ac_compiler_gnu = yes; then
3086 GCC=yes
3087 else
3088 GCC=
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then
3095 $as_echo_n "(cached) " >&6
3096 else
3097 ac_save_c_werror_flag=$ac_c_werror_flag
3098 ac_c_werror_flag=yes
3099 ac_cv_prog_cc_g=no
3100 CFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } && {
3131 test -z "$ac_c_werror_flag" ||
3132 test ! -s conftest.err
3133 } && test -s conftest.$ac_objext; then
3134 ac_cv_prog_cc_g=yes
3135 else
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 CFLAGS=""
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3148 main ()
3152 return 0;
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3174 else
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3179 CFLAGS="-g"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3213 ac_cv_prog_cc_g=yes
3214 else
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 $as_echo "$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
3237 else
3238 CFLAGS="-g"
3240 else
3241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
3243 else
3244 CFLAGS=
3247 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3251 else
3252 ac_cv_prog_cc_c89=no
3253 ac_save_CC=$CC
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <stdarg.h>
3261 #include <stdio.h>
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3268 char **p;
3269 int i;
3271 return p[i];
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
3286 as 'x'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
3289 that's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294 #define FOO(x) 'x'
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 int argc;
3302 char **argv;
3304 main ()
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 return 0;
3310 _ACEOF
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_cv_prog_cc_c89=$ac_arg
3334 else
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3341 rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3343 done
3344 rm -f conftest.$ac_ext
3345 CC=$ac_save_CC
3348 # AC_CACHE_VAL
3349 case "x$ac_cv_prog_cc_c89" in
3351 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3353 xno)
3354 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3360 esac
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 DEPDIR="${am__leading_dot}deps"
3370 ac_config_commands="$ac_config_commands depfiles"
3373 am_make=${MAKE-make}
3374 cat > confinc << 'END'
3375 am__doit:
3376 @echo done
3377 .PHONY: am__doit
3379 # If we don't find an include directive, just comment out the code.
3380 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3381 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3382 am__include="#"
3383 am__quote=
3384 _am_result=none
3385 # First try GNU make style include.
3386 echo "include confinc" > confmf
3387 # We grep out `Entering directory' and `Leaving directory'
3388 # messages which can occur if `w' ends up in MAKEFLAGS.
3389 # In particular we don't look at `^make:' because GNU make might
3390 # be invoked under some other name (usually "gmake"), in which
3391 # case it prints its new name instead of `make'.
3392 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3393 am__include=include
3394 am__quote=
3395 _am_result=GNU
3397 # Now try BSD make style include.
3398 if test "$am__include" = "#"; then
3399 echo '.include "confinc"' > confmf
3400 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3401 am__include=.include
3402 am__quote="\""
3403 _am_result=BSD
3408 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3409 $as_echo "$_am_result" >&6; }
3410 rm -f confinc confmf
3412 # Check whether --enable-dependency-tracking was given.
3413 if test "${enable_dependency_tracking+set}" = set; then
3414 enableval=$enable_dependency_tracking;
3417 if test "x$enable_dependency_tracking" != xno; then
3418 am_depcomp="$ac_aux_dir/depcomp"
3419 AMDEPBACKSLASH='\'
3423 if test "x$enable_dependency_tracking" != xno; then
3424 AMDEP_TRUE=
3425 AMDEP_FALSE='#'
3426 else
3427 AMDEP_TRUE='#'
3428 AMDEP_FALSE=
3434 depcc="$CC" am_compiler_list=
3436 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3437 $as_echo_n "checking dependency style of $depcc... " >&6; }
3438 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3442 # We make a subdir and do the tests there. Otherwise we can end up
3443 # making bogus files that we don't know about and never remove. For
3444 # instance it was reported that on HP-UX the gcc test will end up
3445 # making a dummy file named `D' -- because `-MD' means `put the output
3446 # in D'.
3447 mkdir conftest.dir
3448 # Copy depcomp to subdir because otherwise we won't find it if we're
3449 # using a relative directory.
3450 cp "$am_depcomp" conftest.dir
3451 cd conftest.dir
3452 # We will build objects and dependencies in a subdirectory because
3453 # it helps to detect inapplicable dependency modes. For instance
3454 # both Tru64's cc and ICC support -MD to output dependencies as a
3455 # side effect of compilation, but ICC will put the dependencies in
3456 # the current directory while Tru64 will put them in the object
3457 # directory.
3458 mkdir sub
3460 am_cv_CC_dependencies_compiler_type=none
3461 if test "$am_compiler_list" = ""; then
3462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3464 for depmode in $am_compiler_list; do
3465 # Setup a source with many dependencies, because some compilers
3466 # like to wrap large dependency lists on column 80 (with \), and
3467 # we should not choose a depcomp mode which is confused by this.
3469 # We need to recreate these files for each test, as the compiler may
3470 # overwrite some of them when testing with obscure command lines.
3471 # This happens at least with the AIX C compiler.
3472 : > sub/conftest.c
3473 for i in 1 2 3 4 5 6; do
3474 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3475 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3476 # Solaris 8's {/usr,}/bin/sh.
3477 touch sub/conftst$i.h
3478 done
3479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481 case $depmode in
3482 nosideeffect)
3483 # after this tag, mechanisms are not by side-effect, so they'll
3484 # only be used when explicitly requested
3485 if test "x$enable_dependency_tracking" = xyes; then
3486 continue
3487 else
3488 break
3491 none) break ;;
3492 esac
3493 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3494 # mode. It turns out that the SunPro C++ compiler does not properly
3495 # handle `-M -o', and we need to detect this.
3496 if depmode=$depmode \
3497 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3499 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3500 >/dev/null 2>conftest.err &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3517 done
3519 cd ..
3520 rm -rf conftest.dir
3521 else
3522 am_cv_CC_dependencies_compiler_type=none
3526 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3533 test "x$enable_dependency_tracking" != xno \
3534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535 am__fastdepCC_TRUE=
3536 am__fastdepCC_FALSE='#'
3537 else
3538 am__fastdepCC_TRUE='#'
3539 am__fastdepCC_FALSE=
3543 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3545 # Check whether --enable-maintainer-mode was given.
3546 if test "${enable_maintainer_mode+set}" = set; then
3547 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3548 else
3549 USE_MAINTAINER_MODE=no
3552 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3553 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3556 if test $USE_MAINTAINER_MODE = yes; then
3557 MAINTAINER_MODE_TRUE=
3558 MAINTAINER_MODE_FALSE='#'
3559 else
3560 MAINTAINER_MODE_TRUE='#'
3561 MAINTAINER_MODE_FALSE=
3564 MAINT=$MAINTAINER_MODE_TRUE
3567 # Check whether --enable-shared was given.
3568 if test "${enable_shared+set}" = set; then
3569 enableval=$enable_shared; p=${PACKAGE-default}
3570 case $enableval in
3571 yes) enable_shared=yes ;;
3572 no) enable_shared=no ;;
3574 enable_shared=no
3575 # Look at the argument we got. We use all the common list separators.
3576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577 for pkg in $enableval; do
3578 IFS="$lt_save_ifs"
3579 if test "X$pkg" = "X$p"; then
3580 enable_shared=yes
3582 done
3583 IFS="$lt_save_ifs"
3585 esac
3586 else
3587 enable_shared=yes
3591 # Check whether --enable-static was given.
3592 if test "${enable_static+set}" = set; then
3593 enableval=$enable_static; p=${PACKAGE-default}
3594 case $enableval in
3595 yes) enable_static=yes ;;
3596 no) enable_static=no ;;
3598 enable_static=no
3599 # Look at the argument we got. We use all the common list separators.
3600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601 for pkg in $enableval; do
3602 IFS="$lt_save_ifs"
3603 if test "X$pkg" = "X$p"; then
3604 enable_static=yes
3606 done
3607 IFS="$lt_save_ifs"
3609 esac
3610 else
3611 enable_static=yes
3615 # Check whether --enable-fast-install was given.
3616 if test "${enable_fast_install+set}" = set; then
3617 enableval=$enable_fast_install; p=${PACKAGE-default}
3618 case $enableval in
3619 yes) enable_fast_install=yes ;;
3620 no) enable_fast_install=no ;;
3622 enable_fast_install=no
3623 # Look at the argument we got. We use all the common list separators.
3624 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3625 for pkg in $enableval; do
3626 IFS="$lt_save_ifs"
3627 if test "X$pkg" = "X$p"; then
3628 enable_fast_install=yes
3630 done
3631 IFS="$lt_save_ifs"
3633 esac
3634 else
3635 enable_fast_install=yes
3639 # Make sure we can run config.sub.
3640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3641 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3643 { (exit 1); exit 1; }; }
3645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3646 $as_echo_n "checking build system type... " >&6; }
3647 if test "${ac_cv_build+set}" = set; then
3648 $as_echo_n "(cached) " >&6
3649 else
3650 ac_build_alias=$build_alias
3651 test "x$ac_build_alias" = x &&
3652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3653 test "x$ac_build_alias" = x &&
3654 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3656 { (exit 1); exit 1; }; }
3657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3660 { (exit 1); exit 1; }; }
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3664 $as_echo "$ac_cv_build" >&6; }
3665 case $ac_cv_build in
3666 *-*-*) ;;
3667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3669 { (exit 1); exit 1; }; };;
3670 esac
3671 build=$ac_cv_build
3672 ac_save_IFS=$IFS; IFS='-'
3673 set x $ac_cv_build
3674 shift
3675 build_cpu=$1
3676 build_vendor=$2
3677 shift; shift
3678 # Remember, the first character of IFS is used to create $*,
3679 # except with old shells:
3680 build_os=$*
3681 IFS=$ac_save_IFS
3682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3686 $as_echo_n "checking host system type... " >&6; }
3687 if test "${ac_cv_host+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test "x$host_alias" = x; then
3691 ac_cv_host=$ac_cv_build
3692 else
3693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3694 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3696 { (exit 1); exit 1; }; }
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3701 $as_echo "$ac_cv_host" >&6; }
3702 case $ac_cv_host in
3703 *-*-*) ;;
3704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3706 { (exit 1); exit 1; }; };;
3707 esac
3708 host=$ac_cv_host
3709 ac_save_IFS=$IFS; IFS='-'
3710 set x $ac_cv_host
3711 shift
3712 host_cpu=$1
3713 host_vendor=$2
3714 shift; shift
3715 # Remember, the first character of IFS is used to create $*,
3716 # except with old shells:
3717 host_os=$*
3718 IFS=$ac_save_IFS
3719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3722 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3723 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3724 if test "${lt_cv_path_SED+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3726 else
3727 # Loop through the user's path and test for sed and gsed.
3728 # Then use that list of sed's as ones to test for truncation.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for lt_ac_prog in sed gsed; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3737 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3739 done
3740 done
3741 done
3742 IFS=$as_save_IFS
3743 lt_ac_max=0
3744 lt_ac_count=0
3745 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3746 # along with /bin/sed that truncates output.
3747 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3748 test ! -f $lt_ac_sed && continue
3749 cat /dev/null > conftest.in
3750 lt_ac_count=0
3751 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3752 # Check for GNU sed and select it if it is found.
3753 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3754 lt_cv_path_SED=$lt_ac_sed
3755 break
3757 while true; do
3758 cat conftest.in conftest.in >conftest.tmp
3759 mv conftest.tmp conftest.in
3760 cp conftest.in conftest.nl
3761 echo >>conftest.nl
3762 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3763 cmp -s conftest.out conftest.nl || break
3764 # 10000 chars as input seems more than enough
3765 test $lt_ac_count -gt 10 && break
3766 lt_ac_count=`expr $lt_ac_count + 1`
3767 if test $lt_ac_count -gt $lt_ac_max; then
3768 lt_ac_max=$lt_ac_count
3769 lt_cv_path_SED=$lt_ac_sed
3771 done
3772 done
3776 SED=$lt_cv_path_SED
3778 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3779 $as_echo "$SED" >&6; }
3781 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -z "$GREP"; then
3787 ac_path_GREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in grep ggrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3798 # Check for GNU ac_path_GREP and select it if it is found.
3799 # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3801 *GNU*)
3802 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3804 ac_count=0
3805 $as_echo_n 0123456789 >"conftest.in"
3806 while :
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 $as_echo 'GREP' >> "conftest.nl"
3812 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 ac_count=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_GREP="$ac_path_GREP"
3818 ac_path_GREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3826 $ac_path_GREP_found && break 3
3827 done
3828 done
3829 done
3830 IFS=$as_save_IFS
3831 if test -z "$ac_cv_path_GREP"; then
3832 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834 { (exit 1); exit 1; }; }
3836 else
3837 ac_cv_path_GREP=$GREP
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3842 $as_echo "$ac_cv_path_GREP" >&6; }
3843 GREP="$ac_cv_path_GREP"
3846 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3847 $as_echo_n "checking for egrep... " >&6; }
3848 if test "${ac_cv_path_EGREP+set}" = set; then
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3852 then ac_cv_path_EGREP="$GREP -E"
3853 else
3854 if test -z "$EGREP"; then
3855 ac_path_EGREP_found=false
3856 # Loop through the user's path and test for each of PROGNAME-LIST
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_prog in egrep; do
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3865 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3866 # Check for GNU ac_path_EGREP and select it if it is found.
3867 # Check for GNU $ac_path_EGREP
3868 case `"$ac_path_EGREP" --version 2>&1` in
3869 *GNU*)
3870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872 ac_count=0
3873 $as_echo_n 0123456789 >"conftest.in"
3874 while :
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 $as_echo 'EGREP' >> "conftest.nl"
3880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882 ac_count=`expr $ac_count + 1`
3883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_EGREP="$ac_path_EGREP"
3886 ac_path_EGREP_max=$ac_count
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3890 done
3891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 esac
3894 $ac_path_EGREP_found && break 3
3895 done
3896 done
3897 done
3898 IFS=$as_save_IFS
3899 if test -z "$ac_cv_path_EGREP"; then
3900 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902 { (exit 1); exit 1; }; }
3904 else
3905 ac_cv_path_EGREP=$EGREP
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911 $as_echo "$ac_cv_path_EGREP" >&6; }
3912 EGREP="$ac_cv_path_EGREP"
3916 # Check whether --with-gnu-ld was given.
3917 if test "${with_gnu_ld+set}" = set; then
3918 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3919 else
3920 with_gnu_ld=no
3923 ac_prog=ld
3924 if test "$GCC" = yes; then
3925 # Check if gcc -print-prog-name=ld gives a path.
3926 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3927 $as_echo_n "checking for ld used by $CC... " >&6; }
3928 case $host in
3929 *-*-mingw*)
3930 # gcc leaves a trailing carriage return which upsets mingw
3931 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3933 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3934 esac
3935 case $ac_prog in
3936 # Accept absolute paths.
3937 [\\/]* | ?:[\\/]*)
3938 re_direlt='/[^/][^/]*/\.\./'
3939 # Canonicalize the pathname of ld
3940 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3941 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3942 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3943 done
3944 test -z "$LD" && LD="$ac_prog"
3947 # If it fails, then pretend we aren't using GCC.
3948 ac_prog=ld
3951 # If it is relative, then search for the first ld in PATH.
3952 with_gnu_ld=unknown
3954 esac
3955 elif test "$with_gnu_ld" = yes; then
3956 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3957 $as_echo_n "checking for GNU ld... " >&6; }
3958 else
3959 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3960 $as_echo_n "checking for non-GNU ld... " >&6; }
3962 if test "${lt_cv_path_LD+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -z "$LD"; then
3966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967 for ac_dir in $PATH; do
3968 IFS="$lt_save_ifs"
3969 test -z "$ac_dir" && ac_dir=.
3970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971 lt_cv_path_LD="$ac_dir/$ac_prog"
3972 # Check to see if the program is GNU ld. I'd rather use --version,
3973 # but apparently some variants of GNU ld only accept -v.
3974 # Break only if it was the GNU/non-GNU ld that we prefer.
3975 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976 *GNU* | *'with BFD'*)
3977 test "$with_gnu_ld" != no && break
3980 test "$with_gnu_ld" != yes && break
3982 esac
3984 done
3985 IFS="$lt_save_ifs"
3986 else
3987 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3991 LD="$lt_cv_path_LD"
3992 if test -n "$LD"; then
3993 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3994 $as_echo "$LD" >&6; }
3995 else
3996 { $as_echo "$as_me:$LINENO: result: no" >&5
3997 $as_echo "no" >&6; }
3999 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4000 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4001 { (exit 1); exit 1; }; }
4002 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4003 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4004 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4005 $as_echo_n "(cached) " >&6
4006 else
4007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4008 case `$LD -v 2>&1 </dev/null` in
4009 *GNU* | *'with BFD'*)
4010 lt_cv_prog_gnu_ld=yes
4013 lt_cv_prog_gnu_ld=no
4015 esac
4017 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4018 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4019 with_gnu_ld=$lt_cv_prog_gnu_ld
4022 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4024 if test "${lt_cv_ld_reload_flag+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4026 else
4027 lt_cv_ld_reload_flag='-r'
4029 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4031 reload_flag=$lt_cv_ld_reload_flag
4032 case $reload_flag in
4033 "" | " "*) ;;
4034 *) reload_flag=" $reload_flag" ;;
4035 esac
4036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4037 case $host_os in
4038 darwin*)
4039 if test "$GCC" = yes; then
4040 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4041 else
4042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4045 esac
4047 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4048 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4049 if test "${lt_cv_path_NM+set}" = set; then
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test -n "$NM"; then
4053 # Let the user override the test.
4054 lt_cv_path_NM="$NM"
4055 else
4056 lt_nm_to_check="${ac_tool_prefix}nm"
4057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4058 lt_nm_to_check="$lt_nm_to_check nm"
4060 for lt_tmp_nm in $lt_nm_to_check; do
4061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4062 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4063 IFS="$lt_save_ifs"
4064 test -z "$ac_dir" && ac_dir=.
4065 tmp_nm="$ac_dir/$lt_tmp_nm"
4066 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4067 # Check to see if the nm accepts a BSD-compat flag.
4068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4069 # nm: unknown option "B" ignored
4070 # Tru64's nm complains that /dev/null is an invalid object file
4071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4072 */dev/null* | *'Invalid file or object type'*)
4073 lt_cv_path_NM="$tmp_nm -B"
4074 break
4077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4078 */dev/null*)
4079 lt_cv_path_NM="$tmp_nm -p"
4080 break
4083 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4084 continue # so that we can try to find one that supports BSD flags
4086 esac
4088 esac
4090 done
4091 IFS="$lt_save_ifs"
4092 done
4093 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4096 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4097 $as_echo "$lt_cv_path_NM" >&6; }
4098 NM="$lt_cv_path_NM"
4100 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4101 $as_echo_n "checking whether ln -s works... " >&6; }
4102 LN_S=$as_ln_s
4103 if test "$LN_S" = "ln -s"; then
4104 { $as_echo "$as_me:$LINENO: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106 else
4107 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4108 $as_echo "no, using $LN_S" >&6; }
4111 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4112 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4113 if test "${lt_cv_deplibs_check_method+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4115 else
4116 lt_cv_file_magic_cmd='$MAGIC_CMD'
4117 lt_cv_file_magic_test_file=
4118 lt_cv_deplibs_check_method='unknown'
4119 # Need to set the preceding variable on all platforms that support
4120 # interlibrary dependencies.
4121 # 'none' -- dependencies not supported.
4122 # `unknown' -- same as none, but documents that we really don't know.
4123 # 'pass_all' -- all dependencies passed with no checks.
4124 # 'test_compile' -- check by making test program.
4125 # 'file_magic [[regex]]' -- check by looking for files in library path
4126 # which responds to the $file_magic_cmd with a given extended regex.
4127 # If you have `file' or equivalent on your system and you're not sure
4128 # whether `pass_all' will *always* work, you probably want this one.
4130 case $host_os in
4131 aix4* | aix5*)
4132 lt_cv_deplibs_check_method=pass_all
4135 beos*)
4136 lt_cv_deplibs_check_method=pass_all
4139 bsdi[45]*)
4140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4141 lt_cv_file_magic_cmd='/usr/bin/file -L'
4142 lt_cv_file_magic_test_file=/shlib/libc.so
4145 cygwin*)
4146 # func_win32_libid is a shell function defined in ltmain.sh
4147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4148 lt_cv_file_magic_cmd='func_win32_libid'
4151 mingw* | pw32*)
4152 # Base MSYS/MinGW do not provide the 'file' command needed by
4153 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4154 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4155 lt_cv_file_magic_cmd='$OBJDUMP -f'
4158 darwin* | rhapsody*)
4159 lt_cv_deplibs_check_method=pass_all
4162 freebsd* | kfreebsd*-gnu | dragonfly*)
4163 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4164 case $host_cpu in
4165 i*86 )
4166 # Not sure whether the presence of OpenBSD here was a mistake.
4167 # Let's accept both of them until this is cleared up.
4168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4169 lt_cv_file_magic_cmd=/usr/bin/file
4170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4172 esac
4173 else
4174 lt_cv_deplibs_check_method=pass_all
4178 gnu*)
4179 lt_cv_deplibs_check_method=pass_all
4182 hpux10.20* | hpux11*)
4183 lt_cv_file_magic_cmd=/usr/bin/file
4184 case $host_cpu in
4185 ia64*)
4186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4189 hppa*64*)
4190 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]'
4191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4195 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4197 esac
4200 interix3*)
4201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4205 irix5* | irix6* | nonstopux*)
4206 case $LD in
4207 *-32|*"-32 ") libmagic=32-bit;;
4208 *-n32|*"-n32 ") libmagic=N32;;
4209 *-64|*"-64 ") libmagic=64-bit;;
4210 *) libmagic=never-match;;
4211 esac
4212 lt_cv_deplibs_check_method=pass_all
4215 # This must be Linux ELF.
4216 linux*)
4217 lt_cv_deplibs_check_method=pass_all
4220 netbsd*)
4221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4223 else
4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4228 newos6*)
4229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4234 nto-qnx*)
4235 lt_cv_deplibs_check_method=unknown
4238 openbsd*)
4239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4241 else
4242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4246 osf3* | osf4* | osf5*)
4247 lt_cv_deplibs_check_method=pass_all
4250 solaris*)
4251 lt_cv_deplibs_check_method=pass_all
4254 sysv4 | sysv4.3*)
4255 case $host_vendor in
4256 motorola)
4257 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]'
4258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4260 ncr)
4261 lt_cv_deplibs_check_method=pass_all
4263 sequent)
4264 lt_cv_file_magic_cmd='/bin/file'
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4267 sni)
4268 lt_cv_file_magic_cmd='/bin/file'
4269 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4270 lt_cv_file_magic_test_file=/lib/libc.so
4272 siemens)
4273 lt_cv_deplibs_check_method=pass_all
4276 lt_cv_deplibs_check_method=pass_all
4278 esac
4281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4282 lt_cv_deplibs_check_method=pass_all
4284 esac
4287 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4288 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4289 file_magic_cmd=$lt_cv_file_magic_cmd
4290 deplibs_check_method=$lt_cv_deplibs_check_method
4291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4296 # If no C compiler was specified, use CC.
4297 LTCC=${LTCC-"$CC"}
4299 # If no C compiler flags were specified, use CFLAGS.
4300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4302 # Allow CC to be a program name with arguments.
4303 compiler=$CC
4306 # Check whether --enable-libtool-lock was given.
4307 if test "${enable_libtool_lock+set}" = set; then
4308 enableval=$enable_libtool_lock;
4311 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4313 # Some flags need to be propagated to the compiler or linker for good
4314 # libtool support.
4315 case $host in
4316 ia64-*-hpux*)
4317 # Find out which ABI we are using.
4318 echo 'int i;' > conftest.$ac_ext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4321 ac_status=$?
4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; then
4324 case `/usr/bin/file conftest.$ac_objext` in
4325 *ELF-32*)
4326 HPUX_IA64_MODE="32"
4328 *ELF-64*)
4329 HPUX_IA64_MODE="64"
4331 esac
4333 rm -rf conftest*
4335 *-*-irix6*)
4336 # Find out which ABI we are using.
4337 echo '#line 4337 "configure"' > conftest.$ac_ext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4340 ac_status=$?
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; then
4343 if test "$lt_cv_prog_gnu_ld" = yes; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4345 *32-bit*)
4346 LD="${LD-ld} -melf32bsmip"
4348 *N32*)
4349 LD="${LD-ld} -melf32bmipn32"
4351 *64-bit*)
4352 LD="${LD-ld} -melf64bmip"
4354 esac
4355 else
4356 case `/usr/bin/file conftest.$ac_objext` in
4357 *32-bit*)
4358 LD="${LD-ld} -32"
4360 *N32*)
4361 LD="${LD-ld} -n32"
4363 *64-bit*)
4364 LD="${LD-ld} -64"
4366 esac
4369 rm -rf conftest*
4372 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|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 $as_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-*linux*)
4384 LD="${LD-ld} -m elf_i386"
4386 ppc64-*linux*|powerpc64-*linux*)
4387 LD="${LD-ld} -m elf32ppclinux"
4389 s390x-*linux*)
4390 LD="${LD-ld} -m elf_s390"
4392 sparc64-*linux*)
4393 LD="${LD-ld} -m elf32_sparc"
4395 esac
4397 *64-bit*)
4398 case $host in
4399 x86_64-*linux*)
4400 LD="${LD-ld} -m elf_x86_64"
4402 ppc*-*linux*|powerpc*-*linux*)
4403 LD="${LD-ld} -m elf64ppc"
4405 s390*-*linux*)
4406 LD="${LD-ld} -m elf64_s390"
4408 sparc*-*linux*)
4409 LD="${LD-ld} -m elf64_sparc"
4411 esac
4413 esac
4415 rm -rf conftest*
4418 *-*-sco3.2v5*)
4419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4420 SAVE_CFLAGS="$CFLAGS"
4421 CFLAGS="$CFLAGS -belf"
4422 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4423 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4424 if test "${lt_cv_cc_needs_belf+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4441 main ()
4445 return 0;
4447 _ACEOF
4448 rm -f conftest.$ac_objext conftest$ac_exeext
4449 if { (ac_try="$ac_link"
4450 case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4455 $as_echo "$ac_try_echo") >&5
4456 (eval "$ac_link") 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && {
4463 test -z "$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4465 } && test -s conftest$ac_exeext && {
4466 test "$cross_compiling" = yes ||
4467 $as_test_x conftest$ac_exeext
4468 }; then
4469 lt_cv_cc_needs_belf=yes
4470 else
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 lt_cv_cc_needs_belf=no
4477 rm -rf conftest.dSYM
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479 conftest$ac_exeext conftest.$ac_ext
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4491 CFLAGS="$SAVE_CFLAGS"
4494 sparc*-*solaris*)
4495 # Find out which ABI we are using.
4496 echo 'int i;' > conftest.$ac_ext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4499 ac_status=$?
4500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; then
4502 case `/usr/bin/file conftest.o` in
4503 *64-bit*)
4504 case $lt_cv_prog_gnu_ld in
4505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4506 *) LD="${LD-ld} -64" ;;
4507 esac
4509 esac
4511 rm -rf conftest*
4515 esac
4517 need_locks="$enable_libtool_lock"
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4529 CPP=
4531 if test -z "$CPP"; then
4532 if test "${ac_cv_prog_CPP+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4534 else
4535 # Double quotes because CPP needs to be expanded
4536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4538 ac_preproc_ok=false
4539 for ac_c_preproc_warn_flag in '' yes
4541 # Use a header file that comes with gcc, so configuring glibc
4542 # with a fresh cross-compiler works.
4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544 # <limits.h> exists even on freestanding compilers.
4545 # On the NeXT, cc -E runs the code through the compiler's parser,
4546 # not just through cpp. "Syntax error" is here to catch this case.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 #ifdef __STDC__
4554 # include <limits.h>
4555 #else
4556 # include <assert.h>
4557 #endif
4558 Syntax error
4559 _ACEOF
4560 if { (ac_try="$ac_cpp conftest.$ac_ext"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } >/dev/null && {
4574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4576 }; then
4578 else
4579 $as_echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 # Broken: fails on valid input.
4583 continue
4586 rm -f conftest.err conftest.$ac_ext
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <ac_nonexistent.h>
4597 _ACEOF
4598 if { (ac_try="$ac_cpp conftest.$ac_ext"
4599 case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$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 $as_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 $as_echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 # Passes both tests.
4622 ac_preproc_ok=:
4623 break
4626 rm -f conftest.err conftest.$ac_ext
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
4635 done
4636 ac_cv_prog_CPP=$CPP
4639 CPP=$ac_cv_prog_CPP
4640 else
4641 ac_cv_prog_CPP=$CPP
4643 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4644 $as_echo "$CPP" >&6; }
4645 ac_preproc_ok=false
4646 for ac_c_preproc_warn_flag in '' yes
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } >/dev/null && {
4681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 }; then
4685 else
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 # Broken: fails on valid input.
4690 continue
4693 rm -f conftest.err conftest.$ac_ext
4695 # OK, works on sane cases. Now check whether nonexistent headers
4696 # can be detected and how.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <ac_nonexistent.h>
4704 _ACEOF
4705 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null && {
4719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 }; then
4722 # Broken: success on invalid input.
4723 continue
4724 else
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 # Passes both tests.
4729 ac_preproc_ok=:
4730 break
4733 rm -f conftest.err conftest.$ac_ext
4735 done
4736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737 rm -f conftest.err conftest.$ac_ext
4738 if $ac_preproc_ok; then
4740 else
4741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4743 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4744 See \`config.log' for more details." >&5
4745 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details." >&2;}
4747 { (exit 1); exit 1; }; }; }
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 $as_echo_n "checking for ANSI C header files... " >&6; }
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 $as_echo_n "(cached) " >&6
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4774 main ()
4778 return 0;
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788 $as_echo "$ac_try_echo") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
4799 ac_cv_header_stdc=yes
4800 else
4801 $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 ac_cv_header_stdc=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 if test $ac_cv_header_stdc = yes; then
4810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <string.h>
4819 _ACEOF
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 $EGREP "memchr" >/dev/null 2>&1; then
4823 else
4824 ac_cv_header_stdc=no
4826 rm -f conftest*
4830 if test $ac_cv_header_stdc = yes; then
4831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <stdlib.h>
4840 _ACEOF
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "free" >/dev/null 2>&1; then
4844 else
4845 ac_cv_header_stdc=no
4847 rm -f conftest*
4851 if test $ac_cv_header_stdc = yes; then
4852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4853 if test "$cross_compiling" = yes; then
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <ctype.h>
4863 #include <stdlib.h>
4864 #if ((' ' & 0x0FF) == 0x020)
4865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4867 #else
4868 # define ISLOWER(c) \
4869 (('a' <= (c) && (c) <= 'i') \
4870 || ('j' <= (c) && (c) <= 'r') \
4871 || ('s' <= (c) && (c) <= 'z'))
4872 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4873 #endif
4875 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4877 main ()
4879 int i;
4880 for (i = 0; i < 256; i++)
4881 if (XOR (islower (i), ISLOWER (i))
4882 || toupper (i) != TOUPPER (i))
4883 return 2;
4884 return 0;
4886 _ACEOF
4887 rm -f conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4889 case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892 esac
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895 (eval "$ac_link") 2>&5
4896 ac_status=$?
4897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899 { (case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904 $as_echo "$ac_try_echo") >&5
4905 (eval "$ac_try") 2>&5
4906 ac_status=$?
4907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4910 else
4911 $as_echo "$as_me: program exited with status $ac_status" >&5
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 ( exit $ac_status )
4916 ac_cv_header_stdc=no
4918 rm -rf conftest.dSYM
4919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4926 $as_echo "$ac_cv_header_stdc" >&6; }
4927 if test $ac_cv_header_stdc = yes; then
4929 cat >>confdefs.h <<\_ACEOF
4930 #define STDC_HEADERS 1
4931 _ACEOF
4935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4946 inttypes.h stdint.h unistd.h
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 $as_echo_n "checking for $ac_header... " >&6; }
4951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952 $as_echo_n "(cached) " >&6
4953 else
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4962 #include <$ac_header>
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4966 case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969 esac
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.$ac_objext; then
4982 eval "$as_ac_Header=yes"
4983 else
4984 $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 eval "$as_ac_Header=no"
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 ac_res=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4995 $as_echo "$ac_res" >&6; }
4996 as_val=`eval 'as_val=${'$as_ac_Header'}
4997 $as_echo "$as_val"'`
4998 if test "x$as_val" = x""yes; then
4999 cat >>confdefs.h <<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 _ACEOF
5005 done
5009 for ac_header in dlfcn.h
5011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 $as_echo_n "checking for $ac_header... " >&6; }
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016 $as_echo_n "(cached) " >&6
5018 ac_res=`eval 'as_val=${'$as_ac_Header'}
5019 $as_echo "$as_val"'`
5020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5021 $as_echo "$ac_res" >&6; }
5022 else
5023 # Is the header compilable?
5024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5025 $as_echo_n "checking $ac_header usability... " >&6; }
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 #include <$ac_header>
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_header_compiler=yes
5054 else
5055 $as_echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_header_compiler=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 $as_echo "$ac_header_compiler" >&6; }
5065 # Is the header present?
5066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 $as_echo_n "checking $ac_header presence... " >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <$ac_header>
5075 _ACEOF
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080 esac
5081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev/null && {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 }; then
5093 ac_header_preproc=yes
5094 else
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5098 ac_header_preproc=no
5101 rm -f conftest.err conftest.$ac_ext
5102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 $as_echo "$ac_header_preproc" >&6; }
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107 yes:no: )
5108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc=yes
5114 no:yes:* )
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5127 ( cat <<\_ASBOX
5128 ## ------------------------------------- ##
5129 ## Report this to jimi@temporal-wave.com ##
5130 ## ------------------------------------- ##
5131 _ASBOX
5132 ) | sed "s/^/$as_me: WARNING: /" >&2
5134 esac
5135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 $as_echo_n "checking for $ac_header... " >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138 $as_echo_n "(cached) " >&6
5139 else
5140 eval "$as_ac_Header=\$ac_header_preproc"
5142 ac_res=`eval 'as_val=${'$as_ac_Header'}
5143 $as_echo "$as_val"'`
5144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145 $as_echo "$ac_res" >&6; }
5148 as_val=`eval 'as_val=${'$as_ac_Header'}
5149 $as_echo "$as_val"'`
5150 if test "x$as_val" = x""yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 _ACEOF
5157 done
5159 ac_ext=cpp
5160 ac_cpp='$CXXCPP $CPPFLAGS'
5161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164 if test -z "$CXX"; then
5165 if test -n "$CCC"; then
5166 CXX=$CCC
5167 else
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_CXX+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$CXX"; then
5179 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 CXX=$ac_cv_prog_CXX
5199 if test -n "$CXX"; then
5200 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5201 $as_echo "$CXX" >&6; }
5202 else
5203 { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
5208 test -n "$CXX" && break
5209 done
5211 if test -z "$CXX"; then
5212 ac_ct_CXX=$CXX
5213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$ac_ct_CXX"; then
5223 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_CXX="$ac_prog"
5233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5243 if test -n "$ac_ct_CXX"; then
5244 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5245 $as_echo "$ac_ct_CXX" >&6; }
5246 else
5247 { $as_echo "$as_me:$LINENO: result: no" >&5
5248 $as_echo "no" >&6; }
5252 test -n "$ac_ct_CXX" && break
5253 done
5255 if test "x$ac_ct_CXX" = x; then
5256 CXX="g++"
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 CXX=$ac_ct_CXX
5270 # Provide some information about the compiler.
5271 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272 set X $ac_compile
5273 ac_compiler=$2
5274 { (ac_try="$ac_compiler --version >&5"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280 $as_echo "$ac_try_echo") >&5
5281 (eval "$ac_compiler --version >&5") 2>&5
5282 ac_status=$?
5283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5286 case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289 esac
5290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5291 $as_echo "$ac_try_echo") >&5
5292 (eval "$ac_compiler -v >&5") 2>&5
5293 ac_status=$?
5294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 { (ac_try="$ac_compiler -V >&5"
5297 case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300 esac
5301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302 $as_echo "$ac_try_echo") >&5
5303 (eval "$ac_compiler -V >&5") 2>&5
5304 ac_status=$?
5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5308 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5310 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5312 else
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5321 main ()
5323 #ifndef __GNUC__
5324 choke me
5325 #endif
5328 return 0;
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5338 $as_echo "$ac_try_echo") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_cxx_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_compiler_gnu=yes
5350 else
5351 $as_echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_compiler_gnu=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5361 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5362 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5363 if test $ac_compiler_gnu = yes; then
5364 GXX=yes
5365 else
5366 GXX=
5368 ac_test_CXXFLAGS=${CXXFLAGS+set}
5369 ac_save_CXXFLAGS=$CXXFLAGS
5370 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5372 if test "${ac_cv_prog_cxx_g+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5374 else
5375 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5376 ac_cxx_werror_flag=yes
5377 ac_cv_prog_cxx_g=no
5378 CXXFLAGS="-g"
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5387 main ()
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_cxx_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_prog_cxx_g=yes
5413 else
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 CXXFLAGS=""
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5426 main ()
5430 return 0;
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440 $as_echo "$ac_try_echo") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_cxx_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.$ac_objext; then
5452 else
5453 $as_echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457 CXXFLAGS="-g"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5466 main ()
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_cxx_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_cv_prog_cxx_g=yes
5492 else
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5508 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5510 if test "$ac_test_CXXFLAGS" = set; then
5511 CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513 if test "$GXX" = yes; then
5514 CXXFLAGS="-g -O2"
5515 else
5516 CXXFLAGS="-g"
5518 else
5519 if test "$GXX" = yes; then
5520 CXXFLAGS="-O2"
5521 else
5522 CXXFLAGS=
5525 ac_ext=cpp
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531 depcc="$CXX" am_compiler_list=
5533 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5543 # in D'.
5544 mkdir conftest.dir
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5548 cd conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5554 # directory.
5555 mkdir sub
5557 am_cv_CXX_dependencies_compiler_type=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5578 case $depmode in
5579 nosideeffect)
5580 # after this tag, mechanisms are not by side-effect, so they'll
5581 # only be used when explicitly requested
5582 if test "x$enable_dependency_tracking" = xyes; then
5583 continue
5584 else
5585 break
5588 none) break ;;
5589 esac
5590 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5591 # mode. It turns out that the SunPro C++ compiler does not properly
5592 # handle `-M -o', and we need to detect this.
5593 if depmode=$depmode \
5594 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5596 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5597 >/dev/null 2>conftest.err &&
5598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5599 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5601 # icc doesn't choke on unknown options, it will just issue warnings
5602 # or remarks (even with -Werror). So we grep stderr for any message
5603 # that says an option was ignored or not supported.
5604 # When given -MP, icc 7.0 and 7.1 complain thusly:
5605 # icc: Command line warning: ignoring option '-M'; no argument required
5606 # The diagnosis changed in icc 8.0:
5607 # icc: Command line remark: option '-MP' not supported
5608 if (grep 'ignoring option' conftest.err ||
5609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5610 am_cv_CXX_dependencies_compiler_type=$depmode
5611 break
5614 done
5616 cd ..
5617 rm -rf conftest.dir
5618 else
5619 am_cv_CXX_dependencies_compiler_type=none
5623 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5624 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5625 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5630 test "x$enable_dependency_tracking" != xno \
5631 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5632 am__fastdepCXX_TRUE=
5633 am__fastdepCXX_FALSE='#'
5634 else
5635 am__fastdepCXX_TRUE='#'
5636 am__fastdepCXX_FALSE=
5642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5644 (test "X$CXX" != "Xg++"))) ; then
5645 ac_ext=cpp
5646 ac_cpp='$CXXCPP $CPPFLAGS'
5647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5650 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5651 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5652 if test -z "$CXXCPP"; then
5653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5654 $as_echo_n "(cached) " >&6
5655 else
5656 # Double quotes because CXXCPP needs to be expanded
5657 for CXXCPP in "$CXX -E" "/lib/cpp"
5659 ac_preproc_ok=false
5660 for ac_cxx_preproc_warn_flag in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null && {
5695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5696 test ! -s conftest.err
5697 }; then
5699 else
5700 $as_echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Broken: fails on valid input.
5704 continue
5707 rm -f conftest.err conftest.$ac_ext
5709 # OK, works on sane cases. Now check whether nonexistent headers
5710 # can be detected and how.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev/null && {
5733 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5735 }; then
5736 # Broken: success on invalid input.
5737 continue
5738 else
5739 $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 # Passes both tests.
5743 ac_preproc_ok=:
5744 break
5747 rm -f conftest.err conftest.$ac_ext
5749 done
5750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5751 rm -f conftest.err conftest.$ac_ext
5752 if $ac_preproc_ok; then
5753 break
5756 done
5757 ac_cv_prog_CXXCPP=$CXXCPP
5760 CXXCPP=$ac_cv_prog_CXXCPP
5761 else
5762 ac_cv_prog_CXXCPP=$CXXCPP
5764 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5765 $as_echo "$CXXCPP" >&6; }
5766 ac_preproc_ok=false
5767 for ac_cxx_preproc_warn_flag in '' yes
5769 # Use a header file that comes with gcc, so configuring glibc
5770 # with a fresh cross-compiler works.
5771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5772 # <limits.h> exists even on freestanding compilers.
5773 # On the NeXT, cc -E runs the code through the compiler's parser,
5774 # not just through cpp. "Syntax error" is here to catch this case.
5775 cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h. */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #ifdef __STDC__
5782 # include <limits.h>
5783 #else
5784 # include <assert.h>
5785 #endif
5786 Syntax error
5787 _ACEOF
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792 esac
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5804 }; then
5806 else
5807 $as_echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 # Broken: fails on valid input.
5811 continue
5814 rm -f conftest.err conftest.$ac_ext
5816 # OK, works on sane cases. Now check whether nonexistent headers
5817 # can be detected and how.
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5843 # Broken: success on invalid input.
5844 continue
5845 else
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 # Passes both tests.
5850 ac_preproc_ok=:
5851 break
5854 rm -f conftest.err conftest.$ac_ext
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then
5861 else
5862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&5
5866 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&2;}
5868 { (exit 1); exit 1; }; }; }
5871 ac_ext=cpp
5872 ac_cpp='$CXXCPP $CPPFLAGS'
5873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5880 ac_ext=f
5881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5884 if test -n "$ac_tool_prefix"; then
5885 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
5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_F77+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$F77"; then
5895 ac_cv_prog_F77="$F77" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5910 IFS=$as_save_IFS
5914 F77=$ac_cv_prog_F77
5915 if test -n "$F77"; then
5916 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5917 $as_echo "$F77" >&6; }
5918 else
5919 { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$F77" && break
5925 done
5927 if test -z "$F77"; then
5928 ac_ct_F77=$F77
5929 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
5931 # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy $ac_prog; ac_word=$2
5933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if test -n "$ac_ct_F77"; then
5939 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_ac_ct_F77="$ac_prog"
5949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5952 done
5953 done
5954 IFS=$as_save_IFS
5958 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5959 if test -n "$ac_ct_F77"; then
5960 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5961 $as_echo "$ac_ct_F77" >&6; }
5962 else
5963 { $as_echo "$as_me:$LINENO: result: no" >&5
5964 $as_echo "no" >&6; }
5968 test -n "$ac_ct_F77" && break
5969 done
5971 if test "x$ac_ct_F77" = x; then
5972 F77=""
5973 else
5974 case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned=yes ;;
5979 esac
5980 F77=$ac_ct_F77
5985 # Provide some information about the compiler.
5986 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5987 set X $ac_compile
5988 ac_compiler=$2
5989 { (ac_try="$ac_compiler --version >&5"
5990 case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995 $as_echo "$ac_try_echo") >&5
5996 (eval "$ac_compiler --version >&5") 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }
6000 { (ac_try="$ac_compiler -v >&5"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compiler -v >&5") 2>&5
6008 ac_status=$?
6009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 { (ac_try="$ac_compiler -V >&5"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_compiler -V >&5") 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6022 rm -f a.out
6024 # If we don't use `.F' as extension, the preprocessor is not run on the
6025 # input file. (Note that this only needs to work for GNU compilers.)
6026 ac_save_ext=$ac_ext
6027 ac_ext=F
6028 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6029 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6030 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6031 $as_echo_n "(cached) " >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 program main
6035 #ifndef __GNUC__
6036 choke me
6037 #endif
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6046 esac
6047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048 $as_echo "$ac_try_echo") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_f77_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6059 ac_compiler_gnu=yes
6060 else
6061 $as_echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 ac_compiler_gnu=no
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6071 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6072 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6073 ac_ext=$ac_save_ext
6074 ac_test_FFLAGS=${FFLAGS+set}
6075 ac_save_FFLAGS=$FFLAGS
6076 FFLAGS=
6077 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6078 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6079 if test "${ac_cv_prog_f77_g+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6081 else
6082 FFLAGS=-g
6083 cat >conftest.$ac_ext <<_ACEOF
6084 program main
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_f77_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_prog_f77_g=yes
6107 else
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_prog_f77_g=no
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6118 $as_echo "$ac_cv_prog_f77_g" >&6; }
6119 if test "$ac_test_FFLAGS" = set; then
6120 FFLAGS=$ac_save_FFLAGS
6121 elif test $ac_cv_prog_f77_g = yes; then
6122 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6123 FFLAGS="-g -O2"
6124 else
6125 FFLAGS="-g"
6127 else
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129 FFLAGS="-O2"
6130 else
6131 FFLAGS=
6135 if test $ac_compiler_gnu = yes; then
6136 G77=yes
6137 else
6138 G77=
6140 ac_ext=c
6141 ac_cpp='$CPP $CPPFLAGS'
6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6150 # find the maximum length of command line arguments
6151 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6153 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6155 else
6157 teststring="ABCD"
6159 case $build_os in
6160 msdosdjgpp*)
6161 # On DJGPP, this test can blow up pretty badly due to problems in libc
6162 # (any single argument exceeding 2000 bytes causes a buffer overrun
6163 # during glob expansion). Even if it were fixed, the result of this
6164 # check would be larger than it should be.
6165 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6168 gnu*)
6169 # Under GNU Hurd, this test is not required because there is
6170 # no limit to the length of command line arguments.
6171 # Libtool will interpret -1 as no limit whatsoever
6172 lt_cv_sys_max_cmd_len=-1;
6175 cygwin* | mingw*)
6176 # On Win9x/ME, this test blows up -- it succeeds, but takes
6177 # about 5 minutes as the teststring grows exponentially.
6178 # Worse, since 9x/ME are not pre-emptively multitasking,
6179 # you end up with a "frozen" computer, even though with patience
6180 # the test eventually succeeds (with a max line length of 256k).
6181 # Instead, let's just punt: use the minimum linelength reported by
6182 # all of the supported platforms: 8192 (on NT/2K/XP).
6183 lt_cv_sys_max_cmd_len=8192;
6186 amigaos*)
6187 # On AmigaOS with pdksh, this test takes hours, literally.
6188 # So we just punt and use a minimum line length of 8192.
6189 lt_cv_sys_max_cmd_len=8192;
6192 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6193 # This has been around since 386BSD, at least. Likely further.
6194 if test -x /sbin/sysctl; then
6195 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6196 elif test -x /usr/sbin/sysctl; then
6197 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6198 else
6199 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6201 # And add a safety zone
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206 interix*)
6207 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6208 lt_cv_sys_max_cmd_len=196608
6211 osf*)
6212 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6213 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6214 # nice to cause kernel panics so lets avoid the loop below.
6215 # First set a reasonable default.
6216 lt_cv_sys_max_cmd_len=16384
6218 if test -x /sbin/sysconfig; then
6219 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6220 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6221 esac
6224 sco3.2v5*)
6225 lt_cv_sys_max_cmd_len=102400
6227 sysv5* | sco5v6* | sysv4.2uw2*)
6228 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6229 if test -n "$kargmax"; then
6230 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6231 else
6232 lt_cv_sys_max_cmd_len=32768
6236 # If test is not a shell built-in, we'll probably end up computing a
6237 # maximum length that is only half of the actual maximum length, but
6238 # we can't tell.
6239 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6240 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6241 = "XX$teststring") >/dev/null 2>&1 &&
6242 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6243 lt_cv_sys_max_cmd_len=$new_result &&
6244 test $i != 17 # 1/2 MB should be enough
6246 i=`expr $i + 1`
6247 teststring=$teststring$teststring
6248 done
6249 teststring=
6250 # Add a significant safety factor because C++ compilers can tack on massive
6251 # amounts of additional arguments before passing them to the linker.
6252 # It appears as though 1/2 is a usable value.
6253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6255 esac
6259 if test -n $lt_cv_sys_max_cmd_len ; then
6260 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6262 else
6263 { $as_echo "$as_me:$LINENO: result: none" >&5
6264 $as_echo "none" >&6; }
6270 # Check for command to grab the raw symbol name followed by C symbol from nm.
6271 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6272 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6273 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6274 $as_echo_n "(cached) " >&6
6275 else
6277 # These are sane defaults that work on at least a few old systems.
6278 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6280 # Character class describing NM global symbol codes.
6281 symcode='[BCDEGRST]'
6283 # Regexp to match symbols that can be accessed directly from C.
6284 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6286 # Transform an extracted symbol line into a proper C declaration
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6289 # Transform an extracted symbol line into symbol name and symbol address
6290 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'"
6292 # Define system-specific variables.
6293 case $host_os in
6294 aix*)
6295 symcode='[BCDT]'
6297 cygwin* | mingw* | pw32*)
6298 symcode='[ABCDGISTW]'
6300 hpux*) # Its linker distinguishes data from code symbols
6301 if test "$host_cpu" = ia64; then
6302 symcode='[ABCDEGRST]'
6304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6305 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'"
6307 linux*)
6308 if test "$host_cpu" = ia64; then
6309 symcode='[ABCDGIRSTW]'
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311 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'"
6314 irix* | nonstopux*)
6315 symcode='[BCDEGRST]'
6317 osf*)
6318 symcode='[BCDEGQRST]'
6320 solaris*)
6321 symcode='[BDRT]'
6323 sco3.2v5*)
6324 symcode='[DT]'
6326 sysv4.2uw2*)
6327 symcode='[DT]'
6329 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6330 symcode='[ABDT]'
6332 sysv4)
6333 symcode='[DFNSTU]'
6335 esac
6337 # Handle CRLF in mingw tool chain
6338 opt_cr=
6339 case $build_os in
6340 mingw*)
6341 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6343 esac
6345 # If we're using GNU nm, then use its standard symbol codes.
6346 case `$NM -V 2>&1` in
6347 *GNU* | *'with BFD'*)
6348 symcode='[ABCDGIRSTW]' ;;
6349 esac
6351 # Try without a prefix undercore, then with it.
6352 for ac_symprfx in "" "_"; do
6354 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6355 symxfrm="\\1 $ac_symprfx\\2 \\2"
6357 # Write the raw and C identifiers.
6358 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6360 # Check to see that the pipe works correctly.
6361 pipe_works=no
6363 rm -f conftest*
6364 cat > conftest.$ac_ext <<EOF
6365 #ifdef __cplusplus
6366 extern "C" {
6367 #endif
6368 char nm_test_var;
6369 void nm_test_func(){}
6370 #ifdef __cplusplus
6372 #endif
6373 int main(){nm_test_var='a';nm_test_func();return(0);}
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; then
6381 # Now try to grab the symbols.
6382 nlist=conftest.nm
6383 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6384 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6385 ac_status=$?
6386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && test -s "$nlist"; then
6388 # Try sorting and uniquifying the output.
6389 if sort "$nlist" | uniq > "$nlist"T; then
6390 mv -f "$nlist"T "$nlist"
6391 else
6392 rm -f "$nlist"T
6395 # Make sure that we snagged all the symbols we need.
6396 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6397 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6398 cat <<EOF > conftest.$ac_ext
6399 #ifdef __cplusplus
6400 extern "C" {
6401 #endif
6404 # Now generate the symbol file.
6405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6407 cat <<EOF >> conftest.$ac_ext
6408 #if defined (__STDC__) && __STDC__
6409 # define lt_ptr_t void *
6410 #else
6411 # define lt_ptr_t char *
6412 # define const
6413 #endif
6415 /* The mapping between symbol names and symbols. */
6416 const struct {
6417 const char *name;
6418 lt_ptr_t address;
6420 lt_preloaded_symbols[] =
6423 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6424 cat <<\EOF >> conftest.$ac_ext
6425 {0, (lt_ptr_t) 0}
6428 #ifdef __cplusplus
6430 #endif
6432 # Now try linking the two files.
6433 mv conftest.$ac_objext conftstm.$ac_objext
6434 lt_save_LIBS="$LIBS"
6435 lt_save_CFLAGS="$CFLAGS"
6436 LIBS="conftstm.$ac_objext"
6437 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>&5
6440 ac_status=$?
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6443 pipe_works=yes
6445 LIBS="$lt_save_LIBS"
6446 CFLAGS="$lt_save_CFLAGS"
6447 else
6448 echo "cannot find nm_test_func in $nlist" >&5
6450 else
6451 echo "cannot find nm_test_var in $nlist" >&5
6453 else
6454 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6456 else
6457 echo "$progname: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6460 rm -f conftest* conftst*
6462 # Do not use the global_symbol_pipe unless it works.
6463 if test "$pipe_works" = yes; then
6464 break
6465 else
6466 lt_cv_sys_global_symbol_pipe=
6468 done
6472 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6473 lt_cv_sys_global_symbol_to_cdecl=
6475 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6476 { $as_echo "$as_me:$LINENO: result: failed" >&5
6477 $as_echo "failed" >&6; }
6478 else
6479 { $as_echo "$as_me:$LINENO: result: ok" >&5
6480 $as_echo "ok" >&6; }
6483 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6484 $as_echo_n "checking for objdir... " >&6; }
6485 if test "${lt_cv_objdir+set}" = set; then
6486 $as_echo_n "(cached) " >&6
6487 else
6488 rm -f .libs 2>/dev/null
6489 mkdir .libs 2>/dev/null
6490 if test -d .libs; then
6491 lt_cv_objdir=.libs
6492 else
6493 # MS-DOS does not allow filenames that begin with a dot.
6494 lt_cv_objdir=_libs
6496 rmdir .libs 2>/dev/null
6498 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6499 $as_echo "$lt_cv_objdir" >&6; }
6500 objdir=$lt_cv_objdir
6506 case $host_os in
6507 aix3*)
6508 # AIX sometimes has problems with the GCC collect2 program. For some
6509 # reason, if we set the COLLECT_NAMES environment variable, the problems
6510 # vanish in a puff of smoke.
6511 if test "X${COLLECT_NAMES+set}" != Xset; then
6512 COLLECT_NAMES=
6513 export COLLECT_NAMES
6516 esac
6518 # Sed substitution that helps us do robust quoting. It backslashifies
6519 # metacharacters that are still active within double-quoted strings.
6520 Xsed='sed -e 1s/^X//'
6521 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6523 # Same as above, but do not quote variable references.
6524 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6526 # Sed substitution to delay expansion of an escaped shell variable in a
6527 # double_quote_subst'ed string.
6528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6530 # Sed substitution to avoid accidental globbing in evaled expressions
6531 no_glob_subst='s/\*/\\\*/g'
6533 # Constants:
6534 rm="rm -f"
6536 # Global variables:
6537 default_ofile=libtool
6538 can_build_shared=yes
6540 # All known linkers require a `.a' archive for static linking (except MSVC,
6541 # which needs '.lib').
6542 libext=a
6543 ltmain="$ac_aux_dir/ltmain.sh"
6544 ofile="$default_ofile"
6545 with_gnu_ld="$lt_cv_prog_gnu_ld"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}ar; ac_word=$2
6550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_AR+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$AR"; then
6556 ac_cv_prog_AR="$AR" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
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_AR="${ac_tool_prefix}ar"
6566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 AR=$ac_cv_prog_AR
6576 if test -n "$AR"; then
6577 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6578 $as_echo "$AR" >&6; }
6579 else
6580 { $as_echo "$as_me:$LINENO: result: no" >&5
6581 $as_echo "no" >&6; }
6586 if test -z "$ac_cv_prog_AR"; then
6587 ac_ct_AR=$AR
6588 # Extract the first word of "ar", so it can be a program name with args.
6589 set dummy ar; ac_word=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_AR"; then
6596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_AR="ar"
6606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6616 if test -n "$ac_ct_AR"; then
6617 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6618 $as_echo "$ac_ct_AR" >&6; }
6619 else
6620 { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6624 if test "x$ac_ct_AR" = x; then
6625 AR="false"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 AR=$ac_ct_AR
6635 else
6636 AR="$ac_cv_prog_AR"
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 $as_echo "$RANLIB" >&6; }
6671 else
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679 ac_ct_RANLIB=$RANLIB
6680 # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6686 else
6687 if test -n "$ac_ct_RANLIB"; then
6688 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_RANLIB="ranlib"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6701 done
6702 done
6703 IFS=$as_save_IFS
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6710 $as_echo "$ac_ct_RANLIB" >&6; }
6711 else
6712 { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_RANLIB" = x; then
6717 RANLIB=":"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 RANLIB=$ac_ct_RANLIB
6727 else
6728 RANLIB="$ac_cv_prog_RANLIB"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}strip; ac_word=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_STRIP+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$STRIP"; then
6740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 STRIP=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6762 $as_echo "$STRIP" >&6; }
6763 else
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_STRIP"; then
6771 ac_ct_STRIP=$STRIP
6772 # Extract the first word of "strip", so it can be a program name with args.
6773 set dummy strip; ac_word=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_STRIP"; then
6780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_STRIP="strip"
6790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6800 if test -n "$ac_ct_STRIP"; then
6801 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6802 $as_echo "$ac_ct_STRIP" >&6; }
6803 else
6804 { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_STRIP" = x; then
6809 STRIP=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 STRIP=$ac_ct_STRIP
6819 else
6820 STRIP="$ac_cv_prog_STRIP"
6824 old_CC="$CC"
6825 old_CFLAGS="$CFLAGS"
6827 # Set sane defaults for various variables
6828 test -z "$AR" && AR=ar
6829 test -z "$AR_FLAGS" && AR_FLAGS=cru
6830 test -z "$AS" && AS=as
6831 test -z "$CC" && CC=cc
6832 test -z "$LTCC" && LTCC=$CC
6833 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6834 test -z "$DLLTOOL" && DLLTOOL=dlltool
6835 test -z "$LD" && LD=ld
6836 test -z "$LN_S" && LN_S="ln -s"
6837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6838 test -z "$NM" && NM=nm
6839 test -z "$SED" && SED=sed
6840 test -z "$OBJDUMP" && OBJDUMP=objdump
6841 test -z "$RANLIB" && RANLIB=:
6842 test -z "$STRIP" && STRIP=:
6843 test -z "$ac_objext" && ac_objext=o
6845 # Determine commands to create old-style static archives.
6846 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6847 old_postinstall_cmds='chmod 644 $oldlib'
6848 old_postuninstall_cmds=
6850 if test -n "$RANLIB"; then
6851 case $host_os in
6852 openbsd*)
6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6858 esac
6859 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6862 for cc_temp in $compiler""; do
6863 case $cc_temp in
6864 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6865 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6866 \-*) ;;
6867 *) break;;
6868 esac
6869 done
6870 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6873 # Only perform the check for file, if the check method requires it
6874 case $deplibs_check_method in
6875 file_magic*)
6876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6877 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 case $MAGIC_CMD in
6883 [\\/*] | ?:[\\/]*)
6884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6887 lt_save_MAGIC_CMD="$MAGIC_CMD"
6888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6890 for ac_dir in $ac_dummy; do
6891 IFS="$lt_save_ifs"
6892 test -z "$ac_dir" && ac_dir=.
6893 if test -f $ac_dir/${ac_tool_prefix}file; then
6894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6895 if test -n "$file_magic_test_file"; then
6896 case $deplibs_check_method in
6897 "file_magic "*)
6898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6901 $EGREP "$file_magic_regex" > /dev/null; then
6903 else
6904 cat <<EOF 1>&2
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such. This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem. Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6916 fi ;;
6917 esac
6919 break
6921 done
6922 IFS="$lt_save_ifs"
6923 MAGIC_CMD="$lt_save_MAGIC_CMD"
6925 esac
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 $as_echo "$MAGIC_CMD" >&6; }
6932 else
6933 { $as_echo "$as_me:$LINENO: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test -z "$lt_cv_path_MAGIC_CMD"; then
6938 if test -n "$ac_tool_prefix"; then
6939 { $as_echo "$as_me:$LINENO: checking for file" >&5
6940 $as_echo_n "checking for file... " >&6; }
6941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6943 else
6944 case $MAGIC_CMD in
6945 [\\/*] | ?:[\\/]*)
6946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6949 lt_save_MAGIC_CMD="$MAGIC_CMD"
6950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6952 for ac_dir in $ac_dummy; do
6953 IFS="$lt_save_ifs"
6954 test -z "$ac_dir" && ac_dir=.
6955 if test -f $ac_dir/file; then
6956 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6957 if test -n "$file_magic_test_file"; then
6958 case $deplibs_check_method in
6959 "file_magic "*)
6960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6963 $EGREP "$file_magic_regex" > /dev/null; then
6965 else
6966 cat <<EOF 1>&2
6968 *** Warning: the command libtool uses to detect shared libraries,
6969 *** $file_magic_cmd, produces output that libtool cannot recognize.
6970 *** The result is that libtool may fail to recognize shared libraries
6971 *** as such. This will affect the creation of libtool libraries that
6972 *** depend on shared libraries, but programs linked with such libtool
6973 *** libraries will work regardless of this problem. Nevertheless, you
6974 *** may want to report the problem to your system manager and/or to
6975 *** bug-libtool@gnu.org
6978 fi ;;
6979 esac
6981 break
6983 done
6984 IFS="$lt_save_ifs"
6985 MAGIC_CMD="$lt_save_MAGIC_CMD"
6987 esac
6990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991 if test -n "$MAGIC_CMD"; then
6992 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6993 $as_echo "$MAGIC_CMD" >&6; }
6994 else
6995 { $as_echo "$as_me:$LINENO: result: no" >&5
6996 $as_echo "no" >&6; }
6999 else
7000 MAGIC_CMD=:
7006 esac
7008 enable_dlopen=no
7009 enable_win32_dll=no
7011 # Check whether --enable-libtool-lock was given.
7012 if test "${enable_libtool_lock+set}" = set; then
7013 enableval=$enable_libtool_lock;
7016 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7019 # Check whether --with-pic was given.
7020 if test "${with_pic+set}" = set; then
7021 withval=$with_pic; pic_mode="$withval"
7022 else
7023 pic_mode=default
7026 test -z "$pic_mode" && pic_mode=default
7028 # Use C for the default configuration in the libtool script
7029 tagname=
7030 lt_save_CC="$CC"
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038 # Source file extension for C test sources.
7039 ac_ext=c
7041 # Object file extension for compiled C test sources.
7042 objext=o
7043 objext=$objext
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code="int some_variable = 0;\n"
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code='int main(){return(0);}\n'
7052 # If no C compiler was specified, use CC.
7053 LTCC=${LTCC-"$CC"}
7055 # If no C compiler flags were specified, use CFLAGS.
7056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7058 # Allow CC to be a program name with arguments.
7059 compiler=$CC
7062 # save warnings/boilerplate of simple test code
7063 ac_outfile=conftest.$ac_objext
7064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7066 _lt_compiler_boilerplate=`cat conftest.err`
7067 $rm conftest*
7069 ac_outfile=conftest.$ac_objext
7070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7072 _lt_linker_boilerplate=`cat conftest.err`
7073 $rm conftest*
7077 lt_prog_compiler_no_builtin_flag=
7079 if test "$GCC" = yes; then
7080 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7083 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7084 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7085 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7086 $as_echo_n "(cached) " >&6
7087 else
7088 lt_cv_prog_compiler_rtti_exceptions=no
7089 ac_outfile=conftest.$ac_objext
7090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7091 lt_compiler_flag="-fno-rtti -fno-exceptions"
7092 # Insert the option either (1) after the last *FLAGS variable, or
7093 # (2) before a word containing "conftest.", or (3) at the end.
7094 # Note that $ac_compile itself does not contain backslashes and begins
7095 # with a dollar sign (not a hyphen), so the echo should work correctly.
7096 # The option is referenced via a variable to avoid confusing sed.
7097 lt_compile=`echo "$ac_compile" | $SED \
7098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7100 -e 's:$: $lt_compiler_flag:'`
7101 (eval echo "\"\$as_me:7101: $lt_compile\"" >&5)
7102 (eval "$lt_compile" 2>conftest.err)
7103 ac_status=$?
7104 cat conftest.err >&5
7105 echo "$as_me:7105: \$? = $ac_status" >&5
7106 if (exit $ac_status) && test -s "$ac_outfile"; then
7107 # The compiler can only warn and ignore the option if not recognized
7108 # So say no if there are warnings other than the usual output.
7109 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7112 lt_cv_prog_compiler_rtti_exceptions=yes
7115 $rm conftest*
7118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7119 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7121 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7122 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7123 else
7129 lt_prog_compiler_wl=
7130 lt_prog_compiler_pic=
7131 lt_prog_compiler_static=
7133 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7134 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7136 if test "$GCC" = yes; then
7137 lt_prog_compiler_wl='-Wl,'
7138 lt_prog_compiler_static='-static'
7140 case $host_os in
7141 aix*)
7142 # All AIX code is PIC.
7143 if test "$host_cpu" = ia64; then
7144 # AIX 5 now supports IA64 processor
7145 lt_prog_compiler_static='-Bstatic'
7149 amigaos*)
7150 # FIXME: we need at least 68020 code to build shared libraries, but
7151 # adding the `-m68020' flag to GCC prevents building anything better,
7152 # like `-m68040'.
7153 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7157 # PIC is the default for these OSes.
7160 mingw* | pw32* | os2*)
7161 # This hack is so that the source file can tell whether it is being
7162 # built for inclusion in a dll (and should export symbols for example).
7163 lt_prog_compiler_pic='-DDLL_EXPORT'
7166 darwin* | rhapsody*)
7167 # PIC is the default on this platform
7168 # Common symbols not allowed in MH_DYLIB files
7169 lt_prog_compiler_pic='-fno-common'
7172 interix3*)
7173 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7174 # Instead, we relocate shared libraries at runtime.
7177 msdosdjgpp*)
7178 # Just because we use GCC doesn't mean we suddenly get shared libraries
7179 # on systems that don't support them.
7180 lt_prog_compiler_can_build_shared=no
7181 enable_shared=no
7184 sysv4*MP*)
7185 if test -d /usr/nec; then
7186 lt_prog_compiler_pic=-Kconform_pic
7190 hpux*)
7191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192 # not for PA HP-UX.
7193 case $host_cpu in
7194 hppa*64*|ia64*)
7195 # +Z the default
7198 lt_prog_compiler_pic='-fPIC'
7200 esac
7204 lt_prog_compiler_pic='-fPIC'
7206 esac
7207 else
7208 # PORTME Check for flag to pass linker flags through the system compiler.
7209 case $host_os in
7210 aix*)
7211 lt_prog_compiler_wl='-Wl,'
7212 if test "$host_cpu" = ia64; then
7213 # AIX 5 now supports IA64 processor
7214 lt_prog_compiler_static='-Bstatic'
7215 else
7216 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7219 darwin*)
7220 # PIC is the default on this platform
7221 # Common symbols not allowed in MH_DYLIB files
7222 case $cc_basename in
7223 xlc*)
7224 lt_prog_compiler_pic='-qnocommon'
7225 lt_prog_compiler_wl='-Wl,'
7227 esac
7230 mingw* | pw32* | os2*)
7231 # This hack is so that the source file can tell whether it is being
7232 # built for inclusion in a dll (and should export symbols for example).
7233 lt_prog_compiler_pic='-DDLL_EXPORT'
7236 hpux9* | hpux10* | hpux11*)
7237 lt_prog_compiler_wl='-Wl,'
7238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7239 # not for PA HP-UX.
7240 case $host_cpu in
7241 hppa*64*|ia64*)
7242 # +Z the default
7245 lt_prog_compiler_pic='+Z'
7247 esac
7248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7249 lt_prog_compiler_static='${wl}-a ${wl}archive'
7252 irix5* | irix6* | nonstopux*)
7253 lt_prog_compiler_wl='-Wl,'
7254 # PIC (with -KPIC) is the default.
7255 lt_prog_compiler_static='-non_shared'
7258 newsos6)
7259 lt_prog_compiler_pic='-KPIC'
7260 lt_prog_compiler_static='-Bstatic'
7263 linux*)
7264 case $cc_basename in
7265 icc* | ecc*)
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_pic='-KPIC'
7268 lt_prog_compiler_static='-static'
7270 pgcc* | pgf77* | pgf90* | pgf95*)
7271 # Portland Group compilers (*not* the Pentium gcc compiler,
7272 # which looks to be a dead project)
7273 lt_prog_compiler_wl='-Wl,'
7274 lt_prog_compiler_pic='-fpic'
7275 lt_prog_compiler_static='-Bstatic'
7277 ccc*)
7278 lt_prog_compiler_wl='-Wl,'
7279 # All Alpha code is PIC.
7280 lt_prog_compiler_static='-non_shared'
7282 esac
7285 osf3* | osf4* | osf5*)
7286 lt_prog_compiler_wl='-Wl,'
7287 # All OSF/1 code is PIC.
7288 lt_prog_compiler_static='-non_shared'
7291 solaris*)
7292 lt_prog_compiler_pic='-KPIC'
7293 lt_prog_compiler_static='-Bstatic'
7294 case $cc_basename in
7295 f77* | f90* | f95*)
7296 lt_prog_compiler_wl='-Qoption ld ';;
7298 lt_prog_compiler_wl='-Wl,';;
7299 esac
7302 sunos4*)
7303 lt_prog_compiler_wl='-Qoption ld '
7304 lt_prog_compiler_pic='-PIC'
7305 lt_prog_compiler_static='-Bstatic'
7308 sysv4 | sysv4.2uw2* | sysv4.3*)
7309 lt_prog_compiler_wl='-Wl,'
7310 lt_prog_compiler_pic='-KPIC'
7311 lt_prog_compiler_static='-Bstatic'
7314 sysv4*MP*)
7315 if test -d /usr/nec ;then
7316 lt_prog_compiler_pic='-Kconform_pic'
7317 lt_prog_compiler_static='-Bstatic'
7321 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-KPIC'
7324 lt_prog_compiler_static='-Bstatic'
7327 unicos*)
7328 lt_prog_compiler_wl='-Wl,'
7329 lt_prog_compiler_can_build_shared=no
7332 uts4*)
7333 lt_prog_compiler_pic='-pic'
7334 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_can_build_shared=no
7340 esac
7343 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7344 $as_echo "$lt_prog_compiler_pic" >&6; }
7347 # Check to make sure the PIC flag actually works.
7349 if test -n "$lt_prog_compiler_pic"; then
7351 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7352 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7353 if test "${lt_prog_compiler_pic_works+set}" = set; then
7354 $as_echo_n "(cached) " >&6
7355 else
7356 lt_prog_compiler_pic_works=no
7357 ac_outfile=conftest.$ac_objext
7358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 # The option is referenced via a variable to avoid confusing sed.
7365 lt_compile=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>conftest.err)
7371 ac_status=$?
7372 cat conftest.err >&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s "$ac_outfile"; then
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings other than the usual output.
7377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7380 lt_prog_compiler_pic_works=yes
7383 $rm conftest*
7386 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7387 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7389 if test x"$lt_prog_compiler_pic_works" = xyes; then
7390 case $lt_prog_compiler_pic in
7391 "" | " "*) ;;
7392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7393 esac
7394 else
7395 lt_prog_compiler_pic=
7396 lt_prog_compiler_can_build_shared=no
7400 case $host_os in
7401 # For platforms which do not support PIC, -DPIC is meaningless:
7402 *djgpp*)
7403 lt_prog_compiler_pic=
7406 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7408 esac
7411 # Check to make sure the static flag actually works.
7413 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7414 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7416 if test "${lt_prog_compiler_static_works+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7418 else
7419 lt_prog_compiler_static_works=no
7420 save_LDFLAGS="$LDFLAGS"
7421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7422 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7424 # The linker can only warn and ignore the option if not recognized
7425 # So say no if there are warnings
7426 if test -s conftest.err; then
7427 # Append any errors to the config.log.
7428 cat conftest.err 1>&5
7429 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431 if diff conftest.exp conftest.er2 >/dev/null; then
7432 lt_prog_compiler_static_works=yes
7434 else
7435 lt_prog_compiler_static_works=yes
7438 $rm conftest*
7439 LDFLAGS="$save_LDFLAGS"
7442 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7443 $as_echo "$lt_prog_compiler_static_works" >&6; }
7445 if test x"$lt_prog_compiler_static_works" = xyes; then
7447 else
7448 lt_prog_compiler_static=
7452 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7455 $as_echo_n "(cached) " >&6
7456 else
7457 lt_cv_prog_compiler_c_o=no
7458 $rm -r conftest 2>/dev/null
7459 mkdir conftest
7460 cd conftest
7461 mkdir out
7462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7464 lt_compiler_flag="-o out/conftest2.$ac_objext"
7465 # Insert the option either (1) after the last *FLAGS variable, or
7466 # (2) before a word containing "conftest.", or (3) at the end.
7467 # Note that $ac_compile itself does not contain backslashes and begins
7468 # with a dollar sign (not a hyphen), so the echo should work correctly.
7469 lt_compile=`echo "$ac_compile" | $SED \
7470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472 -e 's:$: $lt_compiler_flag:'`
7473 (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474 (eval "$lt_compile" 2>out/conftest.err)
7475 ac_status=$?
7476 cat out/conftest.err >&5
7477 echo "$as_me:7477: \$? = $ac_status" >&5
7478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7479 then
7480 # The compiler can only warn and ignore the option if not recognized
7481 # So say no if there are warnings
7482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7485 lt_cv_prog_compiler_c_o=yes
7488 chmod u+w . 2>&5
7489 $rm conftest*
7490 # SGI C++ compiler will create directory out/ii_files/ for
7491 # template instantiation
7492 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7493 $rm out/* && rmdir out
7494 cd ..
7495 rmdir conftest
7496 $rm conftest*
7499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7503 hard_links="nottested"
7504 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7505 # do not overwrite the value of need_locks provided by the user
7506 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7507 $as_echo_n "checking if we can lock with hard links... " >&6; }
7508 hard_links=yes
7509 $rm conftest*
7510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7511 touch conftest.a
7512 ln conftest.a conftest.b 2>&5 || hard_links=no
7513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7514 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7515 $as_echo "$hard_links" >&6; }
7516 if test "$hard_links" = no; then
7517 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7519 need_locks=warn
7521 else
7522 need_locks=no
7525 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7528 runpath_var=
7529 allow_undefined_flag=
7530 enable_shared_with_static_runtimes=no
7531 archive_cmds=
7532 archive_expsym_cmds=
7533 old_archive_From_new_cmds=
7534 old_archive_from_expsyms_cmds=
7535 export_dynamic_flag_spec=
7536 whole_archive_flag_spec=
7537 thread_safe_flag_spec=
7538 hardcode_libdir_flag_spec=
7539 hardcode_libdir_flag_spec_ld=
7540 hardcode_libdir_separator=
7541 hardcode_direct=no
7542 hardcode_minus_L=no
7543 hardcode_shlibpath_var=unsupported
7544 link_all_deplibs=unknown
7545 hardcode_automatic=no
7546 module_cmds=
7547 module_expsym_cmds=
7548 always_export_symbols=no
7549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7550 # include_expsyms should be a list of space-separated symbols to be *always*
7551 # included in the symbol list
7552 include_expsyms=
7553 # exclude_expsyms can be an extended regexp of symbols to exclude
7554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7556 # as well as any symbol that contains `d'.
7557 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7559 # platforms (ab)use it in PIC code, but their linkers get confused if
7560 # the symbol is explicitly referenced. Since portable code cannot
7561 # rely on this symbol name, it's probably fine to never include it in
7562 # preloaded symbol tables.
7563 extract_expsyms_cmds=
7564 # Just being paranoid about ensuring that cc_basename is set.
7565 for cc_temp in $compiler""; do
7566 case $cc_temp in
7567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569 \-*) ;;
7570 *) break;;
7571 esac
7572 done
7573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7575 case $host_os in
7576 cygwin* | mingw* | pw32*)
7577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7578 # When not using gcc, we currently assume that we are using
7579 # Microsoft Visual C++.
7580 if test "$GCC" != yes; then
7581 with_gnu_ld=no
7584 interix*)
7585 # we just hope/assume this is gcc and not c89 (= MSVC++)
7586 with_gnu_ld=yes
7588 openbsd*)
7589 with_gnu_ld=no
7591 esac
7593 ld_shlibs=yes
7594 if test "$with_gnu_ld" = yes; then
7595 # If archive_cmds runs LD, not CC, wlarc should be empty
7596 wlarc='${wl}'
7598 # Set some defaults for GNU ld with shared library support. These
7599 # are reset later if shared libraries are not supported. Putting them
7600 # here allows them to be overridden if necessary.
7601 runpath_var=LD_RUN_PATH
7602 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7603 export_dynamic_flag_spec='${wl}--export-dynamic'
7604 # ancient GNU ld didn't support --whole-archive et. al.
7605 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7606 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7607 else
7608 whole_archive_flag_spec=
7610 supports_anon_versioning=no
7611 case `$LD -v 2>/dev/null` in
7612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7615 *\ 2.11.*) ;; # other 2.11 versions
7616 *) supports_anon_versioning=yes ;;
7617 esac
7619 # See if GNU ld supports shared libraries.
7620 case $host_os in
7621 aix3* | aix4* | aix5*)
7622 # On AIX/PPC, the GNU linker is very broken
7623 if test "$host_cpu" != ia64; then
7624 ld_shlibs=no
7625 cat <<EOF 1>&2
7627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7628 *** to be unable to reliably create shared libraries on AIX.
7629 *** Therefore, libtool is disabling shared libraries support. If you
7630 *** really care for shared libraries, you may want to modify your PATH
7631 *** so that a non-GNU linker is found, and then restart.
7637 amigaos*)
7638 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)'
7639 hardcode_libdir_flag_spec='-L$libdir'
7640 hardcode_minus_L=yes
7642 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7643 # that the semantics of dynamic libraries on AmigaOS, at least up
7644 # to version 4, is to share data among multiple programs linked
7645 # with the same dynamic library. Since this doesn't match the
7646 # behavior of shared libraries on other platforms, we can't use
7647 # them.
7648 ld_shlibs=no
7651 beos*)
7652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7653 allow_undefined_flag=unsupported
7654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7655 # support --undefined. This deserves some investigation. FIXME
7656 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 else
7658 ld_shlibs=no
7662 cygwin* | mingw* | pw32*)
7663 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7664 # as there is no search path for DLLs.
7665 hardcode_libdir_flag_spec='-L$libdir'
7666 allow_undefined_flag=unsupported
7667 always_export_symbols=no
7668 enable_shared_with_static_runtimes=yes
7669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7671 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7673 # If the export-symbols file already is a .def file (1st line
7674 # is EXPORTS), use it as is; otherwise, prepend...
7675 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7676 cp $export_symbols $output_objdir/$soname.def;
7677 else
7678 echo EXPORTS > $output_objdir/$soname.def;
7679 cat $export_symbols >> $output_objdir/$soname.def;
7681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7682 else
7683 ld_shlibs=no
7687 interix3*)
7688 hardcode_direct=no
7689 hardcode_shlibpath_var=no
7690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7691 export_dynamic_flag_spec='${wl}-E'
7692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7693 # Instead, shared libraries are loaded at an image base (0x10000000 by
7694 # default) and relocated if they conflict, which is a slow very memory
7695 # consuming and fragmenting process. To avoid this, we pick a random,
7696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7698 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7699 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'
7702 linux*)
7703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7704 tmp_addflag=
7705 case $cc_basename,$host_cpu in
7706 pgcc*) # Portland Group C compiler
7707 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'
7708 tmp_addflag=' $pic_flag'
7710 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7711 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'
7712 tmp_addflag=' $pic_flag -Mnomain' ;;
7713 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7714 tmp_addflag=' -i_dynamic' ;;
7715 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7716 tmp_addflag=' -i_dynamic -nofor_main' ;;
7717 ifc* | ifort*) # Intel Fortran compiler
7718 tmp_addflag=' -nofor_main' ;;
7719 esac
7720 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722 if test $supports_anon_versioning = yes; then
7723 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7724 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7725 $echo "local: *; };" >> $output_objdir/$libname.ver~
7726 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7728 else
7729 ld_shlibs=no
7733 netbsd*)
7734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7735 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7736 wlarc=
7737 else
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7743 solaris*)
7744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7745 ld_shlibs=no
7746 cat <<EOF 1>&2
7748 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7749 *** create shared libraries on Solaris systems. Therefore, libtool
7750 *** is disabling shared libraries support. We urge you to upgrade GNU
7751 *** binutils to release 2.9.1 or newer. Another option is to modify
7752 *** your PATH or compiler configuration so that the native linker is
7753 *** used, and then restart.
7756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759 else
7760 ld_shlibs=no
7764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7765 case `$LD -v 2>&1` in
7766 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7767 ld_shlibs=no
7768 cat <<_LT_EOF 1>&2
7770 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7771 *** reliably create shared libraries on SCO systems. Therefore, libtool
7772 *** is disabling shared libraries support. We urge you to upgrade GNU
7773 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7774 *** your PATH or compiler configuration so that the native linker is
7775 *** used, and then restart.
7777 _LT_EOF
7780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7784 else
7785 ld_shlibs=no
7788 esac
7791 sunos4*)
7792 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7793 wlarc=
7794 hardcode_direct=yes
7795 hardcode_shlibpath_var=no
7799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7802 else
7803 ld_shlibs=no
7806 esac
7808 if test "$ld_shlibs" = no; then
7809 runpath_var=
7810 hardcode_libdir_flag_spec=
7811 export_dynamic_flag_spec=
7812 whole_archive_flag_spec=
7814 else
7815 # PORTME fill in a description of your system's linker (not GNU ld)
7816 case $host_os in
7817 aix3*)
7818 allow_undefined_flag=unsupported
7819 always_export_symbols=yes
7820 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'
7821 # Note: this linker hardcodes the directories in LIBPATH if there
7822 # are no directories specified by -L.
7823 hardcode_minus_L=yes
7824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7825 # Neither direct hardcoding nor static linking is supported with a
7826 # broken collect2.
7827 hardcode_direct=unsupported
7831 aix4* | aix5*)
7832 if test "$host_cpu" = ia64; then
7833 # On IA64, the linker does run time linking by default, so we don't
7834 # have to do anything special.
7835 aix_use_runtimelinking=no
7836 exp_sym_flag='-Bexport'
7837 no_entry_flag=""
7838 else
7839 # If we're using GNU nm, then we don't want the "-C" option.
7840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7841 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7842 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'
7843 else
7844 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'
7846 aix_use_runtimelinking=no
7848 # Test if we are trying to use run time linking or normal
7849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7850 # need to do runtime linking.
7851 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7852 for ld_flag in $LDFLAGS; do
7853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7854 aix_use_runtimelinking=yes
7855 break
7857 done
7859 esac
7861 exp_sym_flag='-bexport'
7862 no_entry_flag='-bnoentry'
7865 # When large executables or shared objects are built, AIX ld can
7866 # have problems creating the table of contents. If linking a library
7867 # or program results in "error TOC overflow" add -mminimal-toc to
7868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7871 archive_cmds=''
7872 hardcode_direct=yes
7873 hardcode_libdir_separator=':'
7874 link_all_deplibs=yes
7876 if test "$GCC" = yes; then
7877 case $host_os in aix4.[012]|aix4.[012].*)
7878 # We only want to do this on AIX 4.2 and lower, the check
7879 # below for broken collect2 doesn't work under 4.3+
7880 collect2name=`${CC} -print-prog-name=collect2`
7881 if test -f "$collect2name" && \
7882 strings "$collect2name" | grep resolve_lib_name >/dev/null
7883 then
7884 # We have reworked collect2
7885 hardcode_direct=yes
7886 else
7887 # We have old collect2
7888 hardcode_direct=unsupported
7889 # It fails to find uninstalled libraries when the uninstalled
7890 # path is not listed in the libpath. Setting hardcode_minus_L
7891 # to unsupported forces relinking
7892 hardcode_minus_L=yes
7893 hardcode_libdir_flag_spec='-L$libdir'
7894 hardcode_libdir_separator=
7897 esac
7898 shared_flag='-shared'
7899 if test "$aix_use_runtimelinking" = yes; then
7900 shared_flag="$shared_flag "'${wl}-G'
7902 else
7903 # not using gcc
7904 if test "$host_cpu" = ia64; then
7905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7906 # chokes on -Wl,-G. The following line is correct:
7907 shared_flag='-G'
7908 else
7909 if test "$aix_use_runtimelinking" = yes; then
7910 shared_flag='${wl}-G'
7911 else
7912 shared_flag='${wl}-bM:SRE'
7917 # It seems that -bexpall does not export symbols beginning with
7918 # underscore (_), so it is better to generate a list of symbols to export.
7919 always_export_symbols=yes
7920 if test "$aix_use_runtimelinking" = yes; then
7921 # Warning - without using the other runtime loading flags (-brtl),
7922 # -berok will link without error, but may produce a broken library.
7923 allow_undefined_flag='-berok'
7924 # Determine the default libpath from the value encoded in an empty executable.
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7933 main ()
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext && {
7958 test "$cross_compiling" = yes ||
7959 $as_test_x conftest$ac_exeext
7960 }; then
7962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7964 # Check for a 64-bit object if we didn't find anything.
7965 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7966 }'`; fi
7967 else
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976 conftest$ac_exeext conftest.$ac_ext
7977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7980 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"
7981 else
7982 if test "$host_cpu" = ia64; then
7983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7984 allow_undefined_flag="-z nodefs"
7985 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"
7986 else
7987 # Determine the default libpath from the value encoded in an empty executable.
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7996 main ()
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (ac_try="$ac_link"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8010 $as_echo "$ac_try_echo") >&5
8011 (eval "$ac_link") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest$ac_exeext && {
8021 test "$cross_compiling" = yes ||
8022 $as_test_x conftest$ac_exeext
8023 }; then
8025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8027 # Check for a 64-bit object if we didn't find anything.
8028 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8029 }'`; fi
8030 else
8031 $as_echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -rf conftest.dSYM
8038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8039 conftest$ac_exeext conftest.$ac_ext
8040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8043 # Warning - without using the other run time loading flags,
8044 # -berok will link without error, but may produce a broken library.
8045 no_undefined_flag=' ${wl}-bernotok'
8046 allow_undefined_flag=' ${wl}-berok'
8047 # Exported symbols can be pulled into shared objects from archives
8048 whole_archive_flag_spec='$convenience'
8049 archive_cmds_need_lc=yes
8050 # This is similar to how AIX traditionally builds its shared libraries.
8051 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'
8056 amigaos*)
8057 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)'
8058 hardcode_libdir_flag_spec='-L$libdir'
8059 hardcode_minus_L=yes
8060 # see comment about different semantics on the GNU ld section
8061 ld_shlibs=no
8064 bsdi[45]*)
8065 export_dynamic_flag_spec=-rdynamic
8068 cygwin* | mingw* | pw32*)
8069 # When not using gcc, we currently assume that we are using
8070 # Microsoft Visual C++.
8071 # hardcode_libdir_flag_spec is actually meaningless, as there is
8072 # no search path for DLLs.
8073 hardcode_libdir_flag_spec=' '
8074 allow_undefined_flag=unsupported
8075 # Tell ltmain to make .lib files, not .a files.
8076 libext=lib
8077 # Tell ltmain to make .dll files, not .so files.
8078 shrext_cmds=".dll"
8079 # FIXME: Setting linknames here is a bad hack.
8080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8081 # The linker will automatically build a .lib file if we build a DLL.
8082 old_archive_From_new_cmds='true'
8083 # FIXME: Should let the user specify the lib program.
8084 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8085 fix_srcfile_path='`cygpath -w "$srcfile"`'
8086 enable_shared_with_static_runtimes=yes
8089 darwin* | rhapsody*)
8090 case $host_os in
8091 rhapsody* | darwin1.[012])
8092 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8094 *) # Darwin 1.3 on
8095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8096 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8097 else
8098 case ${MACOSX_DEPLOYMENT_TARGET} in
8099 10.[012])
8100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8102 10.*)
8103 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8105 esac
8108 esac
8109 archive_cmds_need_lc=no
8110 hardcode_direct=no
8111 hardcode_automatic=yes
8112 hardcode_shlibpath_var=unsupported
8113 whole_archive_flag_spec=''
8114 link_all_deplibs=yes
8115 if test "$GCC" = yes ; then
8116 output_verbose_link_cmd='echo'
8117 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8120 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}'
8121 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}'
8122 else
8123 case $cc_basename in
8124 xlc*)
8125 output_verbose_link_cmd='echo'
8126 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
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}'
8133 ld_shlibs=no
8135 esac
8139 dgux*)
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_libdir_flag_spec='-L$libdir'
8142 hardcode_shlibpath_var=no
8145 freebsd1*)
8146 ld_shlibs=no
8149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8150 # support. Future versions do this automatically, but an explicit c++rt0.o
8151 # does not break anything, and helps significantly (at the cost of a little
8152 # extra space).
8153 freebsd2.2*)
8154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8155 hardcode_libdir_flag_spec='-R$libdir'
8156 hardcode_direct=yes
8157 hardcode_shlibpath_var=no
8160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8161 freebsd2*)
8162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8163 hardcode_direct=yes
8164 hardcode_minus_L=yes
8165 hardcode_shlibpath_var=no
8168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8169 freebsd* | kfreebsd*-gnu | dragonfly*)
8170 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8171 hardcode_libdir_flag_spec='-R$libdir'
8172 hardcode_direct=yes
8173 hardcode_shlibpath_var=no
8176 hpux9*)
8177 if test "$GCC" = yes; then
8178 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'
8179 else
8180 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'
8182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183 hardcode_libdir_separator=:
8184 hardcode_direct=yes
8186 # hardcode_minus_L: Not really in the search PATH,
8187 # but as the default location of the library.
8188 hardcode_minus_L=yes
8189 export_dynamic_flag_spec='${wl}-E'
8192 hpux10*)
8193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8195 else
8196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8198 if test "$with_gnu_ld" = no; then
8199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8200 hardcode_libdir_separator=:
8202 hardcode_direct=yes
8203 export_dynamic_flag_spec='${wl}-E'
8205 # hardcode_minus_L: Not really in the search PATH,
8206 # but as the default location of the library.
8207 hardcode_minus_L=yes
8211 hpux11*)
8212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8213 case $host_cpu in
8214 hppa*64*)
8215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8217 ia64*)
8218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 esac
8224 else
8225 case $host_cpu in
8226 hppa*64*)
8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229 ia64*)
8230 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8235 esac
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_separator=:
8241 case $host_cpu in
8242 hppa*64*|ia64*)
8243 hardcode_libdir_flag_spec_ld='+b $libdir'
8244 hardcode_direct=no
8245 hardcode_shlibpath_var=no
8248 hardcode_direct=yes
8249 export_dynamic_flag_spec='${wl}-E'
8251 # hardcode_minus_L: Not really in the search PATH,
8252 # but as the default location of the library.
8253 hardcode_minus_L=yes
8255 esac
8259 irix5* | irix6* | nonstopux*)
8260 if test "$GCC" = yes; then
8261 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'
8262 else
8263 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'
8264 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 link_all_deplibs=yes
8271 netbsd*)
8272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8274 else
8275 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8277 hardcode_libdir_flag_spec='-R$libdir'
8278 hardcode_direct=yes
8279 hardcode_shlibpath_var=no
8282 newsos6)
8283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_direct=yes
8285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286 hardcode_libdir_separator=:
8287 hardcode_shlibpath_var=no
8290 openbsd*)
8291 hardcode_direct=yes
8292 hardcode_shlibpath_var=no
8293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297 export_dynamic_flag_spec='${wl}-E'
8298 else
8299 case $host_os in
8300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_libdir_flag_spec='-R$libdir'
8305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8308 esac
8312 os2*)
8313 hardcode_libdir_flag_spec='-L$libdir'
8314 hardcode_minus_L=yes
8315 allow_undefined_flag=unsupported
8316 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'
8317 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8320 osf3*)
8321 if test "$GCC" = yes; then
8322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8323 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'
8324 else
8325 allow_undefined_flag=' -expect_unresolved \*'
8326 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'
8328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8329 hardcode_libdir_separator=:
8332 osf4* | osf5*) # as osf3* with the addition of -msym flag
8333 if test "$GCC" = yes; then
8334 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8335 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'
8336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337 else
8338 allow_undefined_flag=' -expect_unresolved \*'
8339 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'
8340 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8341 $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'
8343 # Both c and cxx compiler support -rpath directly
8344 hardcode_libdir_flag_spec='-rpath $libdir'
8346 hardcode_libdir_separator=:
8349 solaris*)
8350 no_undefined_flag=' -z text'
8351 if test "$GCC" = yes; then
8352 wlarc='${wl}'
8353 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8356 else
8357 wlarc=''
8358 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8360 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8362 hardcode_libdir_flag_spec='-R$libdir'
8363 hardcode_shlibpath_var=no
8364 case $host_os in
8365 solaris2.[0-5] | solaris2.[0-5].*) ;;
8367 # The compiler driver will combine linker options so we
8368 # cannot just pass the convience library names through
8369 # without $wl, iff we do not link with $LD.
8370 # Luckily, gcc supports the same syntax we need for Sun Studio.
8371 # Supported since Solaris 2.6 (maybe 2.5.1?)
8372 case $wlarc in
8374 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8376 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8377 esac ;;
8378 esac
8379 link_all_deplibs=yes
8382 sunos4*)
8383 if test "x$host_vendor" = xsequent; then
8384 # Use $CC to link under sequent, because it throws in some extra .o
8385 # files that make .init and .fini sections work.
8386 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8387 else
8388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_libdir_flag_spec='-L$libdir'
8391 hardcode_direct=yes
8392 hardcode_minus_L=yes
8393 hardcode_shlibpath_var=no
8396 sysv4)
8397 case $host_vendor in
8398 sni)
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct=yes # is this really true???
8402 siemens)
8403 ## LD is ld it makes a PLAMLIB
8404 ## CC just makes a GrossModule.
8405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8406 reload_cmds='$CC -r -o $output$reload_objs'
8407 hardcode_direct=no
8409 motorola)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8413 esac
8414 runpath_var='LD_RUN_PATH'
8415 hardcode_shlibpath_var=no
8418 sysv4.3*)
8419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var=no
8421 export_dynamic_flag_spec='-Bexport'
8424 sysv4*MP*)
8425 if test -d /usr/nec; then
8426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_shlibpath_var=no
8428 runpath_var=LD_RUN_PATH
8429 hardcode_runpath_var=yes
8430 ld_shlibs=yes
8434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8435 no_undefined_flag='${wl}-z,text'
8436 archive_cmds_need_lc=no
8437 hardcode_shlibpath_var=no
8438 runpath_var='LD_RUN_PATH'
8440 if test "$GCC" = yes; then
8441 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 else
8444 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 sysv5* | sco3.2v5* | sco5v6*)
8450 # Note: We can NOT use -z defs as we might desire, because we do not
8451 # link with -lc, and that would cause any symbols used from libc to
8452 # always be unresolved, which means just about no library would
8453 # ever link correctly. If we're not using GNU ld we use -z text
8454 # though, which does catch some bad symbols but isn't as heavy-handed
8455 # as -z defs.
8456 no_undefined_flag='${wl}-z,text'
8457 allow_undefined_flag='${wl}-z,nodefs'
8458 archive_cmds_need_lc=no
8459 hardcode_shlibpath_var=no
8460 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8461 hardcode_libdir_separator=':'
8462 link_all_deplibs=yes
8463 export_dynamic_flag_spec='${wl}-Bexport'
8464 runpath_var='LD_RUN_PATH'
8466 if test "$GCC" = yes; then
8467 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 else
8470 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 uts4*)
8476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 hardcode_shlibpath_var=no
8482 ld_shlibs=no
8484 esac
8487 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8488 $as_echo "$ld_shlibs" >&6; }
8489 test "$ld_shlibs" = no && can_build_shared=no
8492 # Do we need to explicitly link libc?
8494 case "x$archive_cmds_need_lc" in
8495 x|xyes)
8496 # Assume -lc should be added
8497 archive_cmds_need_lc=yes
8499 if test "$enable_shared" = yes && test "$GCC" = yes; then
8500 case $archive_cmds in
8501 *'~'*)
8502 # FIXME: we may have to deal with multi-command sequences.
8504 '$CC '*)
8505 # Test whether the compiler implicitly links with -lc since on some
8506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8507 # to ld, don't add -lc before -lgcc.
8508 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8510 $rm conftest*
8511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8515 ac_status=$?
8516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } 2>conftest.err; then
8518 soname=conftest
8519 lib=conftest
8520 libobjs=conftest.$ac_objext
8521 deplibs=
8522 wl=$lt_prog_compiler_wl
8523 pic_flag=$lt_prog_compiler_pic
8524 compiler_flags=-v
8525 linker_flags=-v
8526 verstring=
8527 output_objdir=.
8528 libname=conftest
8529 lt_save_allow_undefined_flag=$allow_undefined_flag
8530 allow_undefined_flag=
8531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8533 ac_status=$?
8534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }
8536 then
8537 archive_cmds_need_lc=no
8538 else
8539 archive_cmds_need_lc=yes
8541 allow_undefined_flag=$lt_save_allow_undefined_flag
8542 else
8543 cat conftest.err 1>&5
8545 $rm conftest*
8546 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8547 $as_echo "$archive_cmds_need_lc" >&6; }
8549 esac
8552 esac
8554 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8556 library_names_spec=
8557 libname_spec='lib$name'
8558 soname_spec=
8559 shrext_cmds=".so"
8560 postinstall_cmds=
8561 postuninstall_cmds=
8562 finish_cmds=
8563 finish_eval=
8564 shlibpath_var=
8565 shlibpath_overrides_runpath=unknown
8566 version_type=none
8567 dynamic_linker="$host_os ld.so"
8568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8569 if test "$GCC" = yes; then
8570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8572 # if the path contains ";" then we assume it to be the separator
8573 # otherwise default to the standard path separator (i.e. ":") - it is
8574 # assumed that no part of a normal pathname contains ";" but that should
8575 # okay in the real world where ";" in dirpaths is itself problematic.
8576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8577 else
8578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8580 else
8581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8583 need_lib_prefix=unknown
8584 hardcode_into_libs=no
8586 # when you set need_version to no, make sure it does not cause -set_version
8587 # flags to be left without arguments
8588 need_version=unknown
8590 case $host_os in
8591 aix3*)
8592 version_type=linux
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8594 shlibpath_var=LIBPATH
8596 # AIX 3 has no versioning support, so we append a major version to the name.
8597 soname_spec='${libname}${release}${shared_ext}$major'
8600 aix4* | aix5*)
8601 version_type=linux
8602 need_lib_prefix=no
8603 need_version=no
8604 hardcode_into_libs=yes
8605 if test "$host_cpu" = ia64; then
8606 # AIX 5 supports IA64
8607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8608 shlibpath_var=LD_LIBRARY_PATH
8609 else
8610 # With GCC up to 2.95.x, collect2 would create an import file
8611 # for dependence libraries. The import file would start with
8612 # the line `#! .'. This would cause the generated library to
8613 # depend on `.', always an invalid library. This was fixed in
8614 # development snapshots of GCC prior to 3.0.
8615 case $host_os in
8616 aix4 | aix4.[01] | aix4.[01].*)
8617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8618 echo ' yes '
8619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8621 else
8622 can_build_shared=no
8625 esac
8626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8627 # soname into executable. Probably we can add versioning support to
8628 # collect2, so additional links can be useful in future.
8629 if test "$aix_use_runtimelinking" = yes; then
8630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8631 # instead of lib<name>.a to let people know that these are not
8632 # typical AIX shared libraries.
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 else
8635 # We preserve .a as extension for shared libraries through AIX4.2
8636 # and later when we are not doing run time linking.
8637 library_names_spec='${libname}${release}.a $libname.a'
8638 soname_spec='${libname}${release}${shared_ext}$major'
8640 shlibpath_var=LIBPATH
8644 amigaos*)
8645 library_names_spec='$libname.ixlibrary $libname.a'
8646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8647 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'
8650 beos*)
8651 library_names_spec='${libname}${shared_ext}'
8652 dynamic_linker="$host_os ld.so"
8653 shlibpath_var=LIBRARY_PATH
8656 bsdi[45]*)
8657 version_type=linux
8658 need_version=no
8659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660 soname_spec='${libname}${release}${shared_ext}$major'
8661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8662 shlibpath_var=LD_LIBRARY_PATH
8663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8665 # the default ld.so.conf also contains /usr/contrib/lib and
8666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8667 # libtool to hard-code these into programs
8670 cygwin* | mingw* | pw32*)
8671 version_type=windows
8672 shrext_cmds=".dll"
8673 need_version=no
8674 need_lib_prefix=no
8676 case $GCC,$host_os in
8677 yes,cygwin* | yes,mingw* | yes,pw32*)
8678 library_names_spec='$libname.dll.a'
8679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8680 postinstall_cmds='base_file=`basename \${file}`~
8681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8682 dldir=$destdir/`dirname \$dlpath`~
8683 test -d \$dldir || mkdir -p \$dldir~
8684 $install_prog $dir/$dlname \$dldir/$dlname~
8685 chmod a+x \$dldir/$dlname'
8686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8687 dlpath=$dir/\$dldll~
8688 $rm \$dlpath'
8689 shlibpath_overrides_runpath=yes
8691 case $host_os in
8692 cygwin*)
8693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8697 mingw*)
8698 # MinGW DLLs use traditional 'lib' prefix
8699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8702 # It is most probably a Windows format PATH printed by
8703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8704 # path with ; separators, and with drive letters. We can handle the
8705 # drive letters (cygwin fileutils understands them), so leave them,
8706 # especially as we might pass files found there to a mingw objdump,
8707 # which wouldn't understand a cygwinified path. Ahh.
8708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8709 else
8710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8713 pw32*)
8714 # pw32 DLLs use 'pw' prefix rather than 'lib'
8715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8717 esac
8721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8723 esac
8724 dynamic_linker='Win32 ld.exe'
8725 # FIXME: first we should search . and the directory the executable is in
8726 shlibpath_var=PATH
8729 darwin* | rhapsody*)
8730 dynamic_linker="$host_os dyld"
8731 version_type=darwin
8732 need_lib_prefix=no
8733 need_version=no
8734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8735 soname_spec='${libname}${release}${major}$shared_ext'
8736 shlibpath_overrides_runpath=yes
8737 shlibpath_var=DYLD_LIBRARY_PATH
8738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8740 if test "$GCC" = yes; then
8741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8742 else
8743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8748 dgux*)
8749 version_type=linux
8750 need_lib_prefix=no
8751 need_version=no
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 shlibpath_var=LD_LIBRARY_PATH
8757 freebsd1*)
8758 dynamic_linker=no
8761 kfreebsd*-gnu)
8762 version_type=linux
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=no
8769 hardcode_into_libs=yes
8770 dynamic_linker='GNU ld.so'
8773 freebsd* | dragonfly*)
8774 # DragonFly does not have aout. When/if they implement a new
8775 # versioning mechanism, adjust this.
8776 if test -x /usr/bin/objformat; then
8777 objformat=`/usr/bin/objformat`
8778 else
8779 case $host_os in
8780 freebsd[123]*) objformat=aout ;;
8781 *) objformat=elf ;;
8782 esac
8784 version_type=freebsd-$objformat
8785 case $version_type in
8786 freebsd-elf*)
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8788 need_version=no
8789 need_lib_prefix=no
8791 freebsd-*)
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8793 need_version=yes
8795 esac
8796 shlibpath_var=LD_LIBRARY_PATH
8797 case $host_os in
8798 freebsd2*)
8799 shlibpath_overrides_runpath=yes
8801 freebsd3.[01]* | freebsdelf3.[01]*)
8802 shlibpath_overrides_runpath=yes
8803 hardcode_into_libs=yes
8805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8807 shlibpath_overrides_runpath=no
8808 hardcode_into_libs=yes
8810 freebsd*) # from 4.6 on
8811 shlibpath_overrides_runpath=yes
8812 hardcode_into_libs=yes
8814 esac
8817 gnu*)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 hardcode_into_libs=yes
8827 hpux9* | hpux10* | hpux11*)
8828 # Give a soname corresponding to the major version so that dld.sl refuses to
8829 # link against other versions.
8830 version_type=sunos
8831 need_lib_prefix=no
8832 need_version=no
8833 case $host_cpu in
8834 ia64*)
8835 shrext_cmds='.so'
8836 hardcode_into_libs=yes
8837 dynamic_linker="$host_os dld.so"
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 if test "X$HPUX_IA64_MODE" = X32; then
8843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8844 else
8845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849 hppa*64*)
8850 shrext_cmds='.sl'
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861 shrext_cmds='.sl'
8862 dynamic_linker="$host_os dld.sl"
8863 shlibpath_var=SHLIB_PATH
8864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8868 esac
8869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870 postinstall_cmds='chmod 555 $lib'
8873 interix3*)
8874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath=no
8882 hardcode_into_libs=yes
8885 irix5* | irix6* | nonstopux*)
8886 case $host_os in
8887 nonstopux*) version_type=nonstopux ;;
8889 if test "$lt_cv_prog_gnu_ld" = yes; then
8890 version_type=linux
8891 else
8892 version_type=irix
8893 fi ;;
8894 esac
8895 need_lib_prefix=no
8896 need_version=no
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 case $host_os in
8900 irix5* | nonstopux*)
8901 libsuff= shlibsuff=
8904 case $LD in # libtool.m4 will add one of these switches to LD
8905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8906 libsuff= shlibsuff= libmagic=32-bit;;
8907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8908 libsuff=32 shlibsuff=N32 libmagic=N32;;
8909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8911 *) libsuff= shlibsuff= libmagic=never-match;;
8912 esac
8914 esac
8915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8916 shlibpath_overrides_runpath=no
8917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8919 hardcode_into_libs=yes
8922 # No shared lib support for Linux oldld, aout, or coff.
8923 linux*oldld* | linux*aout* | linux*coff*)
8924 dynamic_linker=no
8927 # This must be Linux ELF.
8928 linux*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=no
8937 # This implies no fast_install, which is unacceptable.
8938 # Some rework will be needed to allow for fast_install
8939 # before this can be enabled.
8940 hardcode_into_libs=yes
8942 # find out which ABI we are using
8943 libsuff=
8944 case "$host_cpu" in
8945 x86_64*|s390x*|powerpc64*)
8946 echo '#line 8946 "configure"' > conftest.$ac_ext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>&5
8949 ac_status=$?
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; then
8952 case `/usr/bin/file conftest.$ac_objext` in
8953 *64-bit*)
8954 libsuff=64
8955 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8957 esac
8959 rm -rf conftest*
8961 esac
8963 # Append ld.so.conf contents to the search path
8964 if test -f /etc/ld.so.conf; then
8965 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8966 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8969 # We used to test for /lib/ld.so.1 and disable shared libraries on
8970 # powerpc, because MkLinux only supported shared libraries with the
8971 # GNU dynamic linker. Since this was broken with cross compilers,
8972 # most powerpc-linux boxes support dynamic linking these days and
8973 # people can always --disable-shared, the test was removed, and we
8974 # assume the GNU/Linux dynamic linker is in use.
8975 dynamic_linker='GNU/Linux ld.so'
8978 knetbsd*-gnu)
8979 version_type=linux
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8990 netbsd*)
8991 version_type=sunos
8992 need_lib_prefix=no
8993 need_version=no
8994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8997 dynamic_linker='NetBSD (a.out) ld.so'
8998 else
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 dynamic_linker='NetBSD ld.elf_so'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9008 newsos6)
9009 version_type=linux
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath=yes
9015 nto-qnx*)
9016 version_type=linux
9017 need_lib_prefix=no
9018 need_version=no
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9025 openbsd*)
9026 version_type=sunos
9027 sys_lib_dlsearch_path_spec="/usr/lib"
9028 need_lib_prefix=no
9029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9030 case $host_os in
9031 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9032 *) need_version=no ;;
9033 esac
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9038 case $host_os in
9039 openbsd2.[89] | openbsd2.[89].*)
9040 shlibpath_overrides_runpath=no
9043 shlibpath_overrides_runpath=yes
9045 esac
9046 else
9047 shlibpath_overrides_runpath=yes
9051 os2*)
9052 libname_spec='$name'
9053 shrext_cmds=".dll"
9054 need_lib_prefix=no
9055 library_names_spec='$libname${shared_ext} $libname.a'
9056 dynamic_linker='OS/2 ld.exe'
9057 shlibpath_var=LIBPATH
9060 osf3* | osf4* | osf5*)
9061 version_type=osf
9062 need_lib_prefix=no
9063 need_version=no
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9068 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9071 solaris*)
9072 version_type=linux
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=yes
9079 hardcode_into_libs=yes
9080 # ldd complains unless libraries are executable
9081 postinstall_cmds='chmod +x $lib'
9084 sunos4*)
9085 version_type=sunos
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=yes
9090 if test "$with_gnu_ld" = yes; then
9091 need_lib_prefix=no
9093 need_version=yes
9096 sysv4 | sysv4.3*)
9097 version_type=linux
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 case $host_vendor in
9102 sni)
9103 shlibpath_overrides_runpath=no
9104 need_lib_prefix=no
9105 export_dynamic_flag_spec='${wl}-Blargedynsym'
9106 runpath_var=LD_RUN_PATH
9108 siemens)
9109 need_lib_prefix=no
9111 motorola)
9112 need_lib_prefix=no
9113 need_version=no
9114 shlibpath_overrides_runpath=no
9115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9117 esac
9120 sysv4*MP*)
9121 if test -d /usr/nec ;then
9122 version_type=linux
9123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9124 soname_spec='$libname${shared_ext}.$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9130 version_type=freebsd-elf
9131 need_lib_prefix=no
9132 need_version=no
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 hardcode_into_libs=yes
9137 if test "$with_gnu_ld" = yes; then
9138 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9139 shlibpath_overrides_runpath=no
9140 else
9141 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9142 shlibpath_overrides_runpath=yes
9143 case $host_os in
9144 sco3.2v5*)
9145 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9147 esac
9149 sys_lib_dlsearch_path_spec='/usr/lib'
9152 uts4*)
9153 version_type=linux
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9160 dynamic_linker=no
9162 esac
9163 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9164 $as_echo "$dynamic_linker" >&6; }
9165 test "$dynamic_linker" = no && can_build_shared=no
9167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9168 if test "$GCC" = yes; then
9169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9172 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9174 hardcode_action=
9175 if test -n "$hardcode_libdir_flag_spec" || \
9176 test -n "$runpath_var" || \
9177 test "X$hardcode_automatic" = "Xyes" ; then
9179 # We can hardcode non-existant directories.
9180 if test "$hardcode_direct" != no &&
9181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9182 # have to relink, otherwise we might link with an installed library
9183 # when we should be linking with a yet-to-be-installed one
9184 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9185 test "$hardcode_minus_L" != no; then
9186 # Linking always hardcodes the temporary library directory.
9187 hardcode_action=relink
9188 else
9189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9190 hardcode_action=immediate
9192 else
9193 # We cannot hardcode anything, or else we can only hardcode existing
9194 # directories.
9195 hardcode_action=unsupported
9197 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9198 $as_echo "$hardcode_action" >&6; }
9200 if test "$hardcode_action" = relink; then
9201 # Fast installation is not supported
9202 enable_fast_install=no
9203 elif test "$shlibpath_overrides_runpath" = yes ||
9204 test "$enable_shared" = no; then
9205 # Fast installation is not necessary
9206 enable_fast_install=needless
9209 striplib=
9210 old_striplib=
9211 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9213 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9214 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9215 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9216 { $as_echo "$as_me:$LINENO: result: yes" >&5
9217 $as_echo "yes" >&6; }
9218 else
9219 # FIXME - insert some real tests, host_os isn't really good enough
9220 case $host_os in
9221 darwin*)
9222 if test -n "$STRIP" ; then
9223 striplib="$STRIP -x"
9224 { $as_echo "$as_me:$LINENO: result: yes" >&5
9225 $as_echo "yes" >&6; }
9226 else
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9232 { $as_echo "$as_me:$LINENO: result: no" >&5
9233 $as_echo "no" >&6; }
9235 esac
9238 if test "x$enable_dlopen" != xyes; then
9239 enable_dlopen=unknown
9240 enable_dlopen_self=unknown
9241 enable_dlopen_self_static=unknown
9242 else
9243 lt_cv_dlopen=no
9244 lt_cv_dlopen_libs=
9246 case $host_os in
9247 beos*)
9248 lt_cv_dlopen="load_add_on"
9249 lt_cv_dlopen_libs=
9250 lt_cv_dlopen_self=yes
9253 mingw* | pw32*)
9254 lt_cv_dlopen="LoadLibrary"
9255 lt_cv_dlopen_libs=
9258 cygwin*)
9259 lt_cv_dlopen="dlopen"
9260 lt_cv_dlopen_libs=
9263 darwin*)
9264 # if libdl is installed we need to link against it
9265 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9268 $as_echo_n "(cached) " >&6
9269 else
9270 ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-ldl $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char dlopen ();
9287 main ()
9289 return dlopen ();
9291 return 0;
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299 esac
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302 (eval "$ac_link") 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest$ac_exeext && {
9312 test "$cross_compiling" = yes ||
9313 $as_test_x conftest$ac_exeext
9314 }; then
9315 ac_cv_lib_dl_dlopen=yes
9316 else
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_lib_dl_dlopen=no
9323 rm -rf conftest.dSYM
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9330 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9332 else
9334 lt_cv_dlopen="dyld"
9335 lt_cv_dlopen_libs=
9336 lt_cv_dlopen_self=yes
9343 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9344 $as_echo_n "checking for shl_load... " >&6; }
9345 if test "${ac_cv_func_shl_load+set}" = set; then
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h. */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9356 #define shl_load innocuous_shl_load
9358 /* System header to define __stub macros and hopefully few prototypes,
9359 which can conflict with char shl_load (); below.
9360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361 <limits.h> exists even on freestanding compilers. */
9363 #ifdef __STDC__
9364 # include <limits.h>
9365 #else
9366 # include <assert.h>
9367 #endif
9369 #undef shl_load
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char shl_load ();
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined __stub_shl_load || defined __stub___shl_load
9382 choke me
9383 #endif
9386 main ()
9388 return shl_load ();
9390 return 0;
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9400 $as_echo "$ac_try_echo") >&5
9401 (eval "$ac_link") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext && {
9411 test "$cross_compiling" = yes ||
9412 $as_test_x conftest$ac_exeext
9413 }; then
9414 ac_cv_func_shl_load=yes
9415 else
9416 $as_echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_cv_func_shl_load=no
9422 rm -rf conftest.dSYM
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 conftest$ac_exeext conftest.$ac_ext
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9427 $as_echo "$ac_cv_func_shl_load" >&6; }
9428 if test "x$ac_cv_func_shl_load" = x""yes; then
9429 lt_cv_dlopen="shl_load"
9430 else
9431 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9434 $as_echo_n "(cached) " >&6
9435 else
9436 ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-ldld $LIBS"
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char shl_load ();
9453 main ()
9455 return shl_load ();
9457 return 0;
9459 _ACEOF
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (ac_try="$ac_link"
9462 case "(($ac_try" in
9463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9465 esac
9466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9467 $as_echo "$ac_try_echo") >&5
9468 (eval "$ac_link") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest$ac_exeext && {
9478 test "$cross_compiling" = yes ||
9479 $as_test_x conftest$ac_exeext
9480 }; then
9481 ac_cv_lib_dld_shl_load=yes
9482 else
9483 $as_echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_lib_dld_shl_load=no
9489 rm -rf conftest.dSYM
9490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9498 else
9499 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9500 $as_echo_n "checking for dlopen... " >&6; }
9501 if test "${ac_cv_func_dlopen+set}" = set; then
9502 $as_echo_n "(cached) " >&6
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define dlopen innocuous_dlopen
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char dlopen (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9525 #undef dlopen
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char dlopen ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined __stub_dlopen || defined __stub___dlopen
9538 choke me
9539 #endif
9542 main ()
9544 return dlopen ();
9546 return 0;
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554 esac
9555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9556 $as_echo "$ac_try_echo") >&5
9557 (eval "$ac_link") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest$ac_exeext && {
9567 test "$cross_compiling" = yes ||
9568 $as_test_x conftest$ac_exeext
9569 }; then
9570 ac_cv_func_dlopen=yes
9571 else
9572 $as_echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 ac_cv_func_dlopen=no
9578 rm -rf conftest.dSYM
9579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9580 conftest$ac_exeext conftest.$ac_ext
9582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9583 $as_echo "$ac_cv_func_dlopen" >&6; }
9584 if test "x$ac_cv_func_dlopen" = x""yes; then
9585 lt_cv_dlopen="dlopen"
9586 else
9587 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9590 $as_echo_n "(cached) " >&6
9591 else
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-ldl $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char dlopen ();
9609 main ()
9611 return dlopen ();
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (ac_try="$ac_link"
9618 case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621 esac
9622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9623 $as_echo "$ac_try_echo") >&5
9624 (eval "$ac_link") 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext && {
9634 test "$cross_compiling" = yes ||
9635 $as_test_x conftest$ac_exeext
9636 }; then
9637 ac_cv_lib_dl_dlopen=yes
9638 else
9639 $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_cv_lib_dl_dlopen=no
9645 rm -rf conftest.dSYM
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9654 else
9655 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9658 $as_echo_n "(cached) " >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lsvld $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char dlopen ();
9677 main ()
9679 return dlopen ();
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9691 $as_echo "$ac_try_echo") >&5
9692 (eval "$ac_link") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext && {
9702 test "$cross_compiling" = yes ||
9703 $as_test_x conftest$ac_exeext
9704 }; then
9705 ac_cv_lib_svld_dlopen=yes
9706 else
9707 $as_echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_svld_dlopen=no
9713 rm -rf conftest.dSYM
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9720 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9722 else
9723 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726 $as_echo_n "(cached) " >&6
9727 else
9728 ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldld $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char dld_link ();
9745 main ()
9747 return dld_link ();
9749 return 0;
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757 esac
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_link") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext && {
9770 test "$cross_compiling" = yes ||
9771 $as_test_x conftest$ac_exeext
9772 }; then
9773 ac_cv_lib_dld_dld_link=yes
9774 else
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_lib_dld_dld_link=no
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9788 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9808 esac
9810 if test "x$lt_cv_dlopen" != xno; then
9811 enable_dlopen=yes
9812 else
9813 enable_dlopen=no
9816 case $lt_cv_dlopen in
9817 dlopen)
9818 save_CPPFLAGS="$CPPFLAGS"
9819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9821 save_LDFLAGS="$LDFLAGS"
9822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9824 save_LIBS="$LIBS"
9825 LIBS="$lt_cv_dlopen_libs $LIBS"
9827 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9829 if test "${lt_cv_dlopen_self+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9831 else
9832 if test "$cross_compiling" = yes; then :
9833 lt_cv_dlopen_self=cross
9834 else
9835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9836 lt_status=$lt_dlunknown
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9841 #if HAVE_DLFCN_H
9842 #include <dlfcn.h>
9843 #endif
9845 #include <stdio.h>
9847 #ifdef RTLD_GLOBAL
9848 # define LT_DLGLOBAL RTLD_GLOBAL
9849 #else
9850 # ifdef DL_GLOBAL
9851 # define LT_DLGLOBAL DL_GLOBAL
9852 # else
9853 # define LT_DLGLOBAL 0
9854 # endif
9855 #endif
9857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9858 find out it does not work in some platform. */
9859 #ifndef LT_DLLAZY_OR_NOW
9860 # ifdef RTLD_LAZY
9861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9862 # else
9863 # ifdef DL_LAZY
9864 # define LT_DLLAZY_OR_NOW DL_LAZY
9865 # else
9866 # ifdef RTLD_NOW
9867 # define LT_DLLAZY_OR_NOW RTLD_NOW
9868 # else
9869 # ifdef DL_NOW
9870 # define LT_DLLAZY_OR_NOW DL_NOW
9871 # else
9872 # define LT_DLLAZY_OR_NOW 0
9873 # endif
9874 # endif
9875 # endif
9876 # endif
9877 #endif
9879 #ifdef __cplusplus
9880 extern "C" void exit (int);
9881 #endif
9883 void fnord() { int i=42;}
9884 int main ()
9886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9887 int status = $lt_dlunknown;
9889 if (self)
9891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9893 /* dlclose (self); */
9895 else
9896 puts (dlerror ());
9898 exit (status);
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9903 ac_status=$?
9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906 (./conftest; exit; ) >&5 2>/dev/null
9907 lt_status=$?
9908 case x$lt_status in
9909 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9910 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9911 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9912 esac
9913 else :
9914 # compilation failed
9915 lt_cv_dlopen_self=no
9918 rm -fr conftest*
9922 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9923 $as_echo "$lt_cv_dlopen_self" >&6; }
9925 if test "x$lt_cv_dlopen_self" = xyes; then
9926 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9927 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9928 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9929 if test "${lt_cv_dlopen_self_static+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test "$cross_compiling" = yes; then :
9933 lt_cv_dlopen_self_static=cross
9934 else
9935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9936 lt_status=$lt_dlunknown
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9941 #if HAVE_DLFCN_H
9942 #include <dlfcn.h>
9943 #endif
9945 #include <stdio.h>
9947 #ifdef RTLD_GLOBAL
9948 # define LT_DLGLOBAL RTLD_GLOBAL
9949 #else
9950 # ifdef DL_GLOBAL
9951 # define LT_DLGLOBAL DL_GLOBAL
9952 # else
9953 # define LT_DLGLOBAL 0
9954 # endif
9955 #endif
9957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9958 find out it does not work in some platform. */
9959 #ifndef LT_DLLAZY_OR_NOW
9960 # ifdef RTLD_LAZY
9961 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9962 # else
9963 # ifdef DL_LAZY
9964 # define LT_DLLAZY_OR_NOW DL_LAZY
9965 # else
9966 # ifdef RTLD_NOW
9967 # define LT_DLLAZY_OR_NOW RTLD_NOW
9968 # else
9969 # ifdef DL_NOW
9970 # define LT_DLLAZY_OR_NOW DL_NOW
9971 # else
9972 # define LT_DLLAZY_OR_NOW 0
9973 # endif
9974 # endif
9975 # endif
9976 # endif
9977 #endif
9979 #ifdef __cplusplus
9980 extern "C" void exit (int);
9981 #endif
9983 void fnord() { int i=42;}
9984 int main ()
9986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9987 int status = $lt_dlunknown;
9989 if (self)
9991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9992 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9993 /* dlclose (self); */
9995 else
9996 puts (dlerror ());
9998 exit (status);
10001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>&5
10003 ac_status=$?
10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10006 (./conftest; exit; ) >&5 2>/dev/null
10007 lt_status=$?
10008 case x$lt_status in
10009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10012 esac
10013 else :
10014 # compilation failed
10015 lt_cv_dlopen_self_static=no
10018 rm -fr conftest*
10022 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10026 CPPFLAGS="$save_CPPFLAGS"
10027 LDFLAGS="$save_LDFLAGS"
10028 LIBS="$save_LIBS"
10030 esac
10032 case $lt_cv_dlopen_self in
10033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10034 *) enable_dlopen_self=unknown ;;
10035 esac
10037 case $lt_cv_dlopen_self_static in
10038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10039 *) enable_dlopen_self_static=unknown ;;
10040 esac
10044 # Report which library types will actually be built
10045 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10047 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10048 $as_echo "$can_build_shared" >&6; }
10050 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10051 $as_echo_n "checking whether to build shared libraries... " >&6; }
10052 test "$can_build_shared" = "no" && enable_shared=no
10054 # On AIX, shared libraries and static libraries use the same namespace, and
10055 # are all built from PIC.
10056 case $host_os in
10057 aix3*)
10058 test "$enable_shared" = yes && enable_static=no
10059 if test -n "$RANLIB"; then
10060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10061 postinstall_cmds='$RANLIB $lib'
10065 aix4* | aix5*)
10066 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10067 test "$enable_shared" = yes && enable_static=no
10070 esac
10071 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10072 $as_echo "$enable_shared" >&6; }
10074 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10075 $as_echo_n "checking whether to build static libraries... " >&6; }
10076 # Make sure either enable_shared or enable_static is yes.
10077 test "$enable_shared" = yes || enable_static=yes
10078 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10079 $as_echo "$enable_static" >&6; }
10081 # The else clause should only fire when bootstrapping the
10082 # libtool distribution, otherwise you forgot to ship ltmain.sh
10083 # with your package, and you will get complaints that there are
10084 # no rules to generate ltmain.sh.
10085 if test -f "$ltmain"; then
10086 # See if we are running on zsh, and set the options which allow our commands through
10087 # without removal of \ escapes.
10088 if test -n "${ZSH_VERSION+set}" ; then
10089 setopt NO_GLOB_SUBST
10091 # Now quote all the things that may contain metacharacters while being
10092 # careful not to overquote the AC_SUBSTed values. We take copies of the
10093 # variables and quote the copies for generation of the libtool script.
10094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10095 SED SHELL STRIP \
10096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10098 deplibs_check_method reload_flag reload_cmds need_locks \
10099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10100 lt_cv_sys_global_symbol_to_c_name_address \
10101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10102 old_postinstall_cmds old_postuninstall_cmds \
10103 compiler \
10104 CC \
10105 LD \
10106 lt_prog_compiler_wl \
10107 lt_prog_compiler_pic \
10108 lt_prog_compiler_static \
10109 lt_prog_compiler_no_builtin_flag \
10110 export_dynamic_flag_spec \
10111 thread_safe_flag_spec \
10112 whole_archive_flag_spec \
10113 enable_shared_with_static_runtimes \
10114 old_archive_cmds \
10115 old_archive_from_new_cmds \
10116 predep_objects \
10117 postdep_objects \
10118 predeps \
10119 postdeps \
10120 compiler_lib_search_path \
10121 archive_cmds \
10122 archive_expsym_cmds \
10123 postinstall_cmds \
10124 postuninstall_cmds \
10125 old_archive_from_expsyms_cmds \
10126 allow_undefined_flag \
10127 no_undefined_flag \
10128 export_symbols_cmds \
10129 hardcode_libdir_flag_spec \
10130 hardcode_libdir_flag_spec_ld \
10131 hardcode_libdir_separator \
10132 hardcode_automatic \
10133 module_cmds \
10134 module_expsym_cmds \
10135 lt_cv_prog_compiler_c_o \
10136 exclude_expsyms \
10137 include_expsyms; do
10139 case $var in
10140 old_archive_cmds | \
10141 old_archive_from_new_cmds | \
10142 archive_cmds | \
10143 archive_expsym_cmds | \
10144 module_cmds | \
10145 module_expsym_cmds | \
10146 old_archive_from_expsyms_cmds | \
10147 export_symbols_cmds | \
10148 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10149 postinstall_cmds | postuninstall_cmds | \
10150 old_postinstall_cmds | old_postuninstall_cmds | \
10151 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10152 # Double-quote double-evaled strings.
10153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10158 esac
10159 done
10161 case $lt_echo in
10162 *'\$0 --fallback-echo"')
10163 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10165 esac
10167 cfgfile="${ofile}T"
10168 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10169 $rm -f "$cfgfile"
10170 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10171 $as_echo "$as_me: creating $ofile" >&6;}
10173 cat <<__EOF__ >> "$cfgfile"
10174 #! $SHELL
10176 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10177 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10181 # Free Software Foundation, Inc.
10183 # This file is part of GNU Libtool:
10184 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10186 # This program is free software; you can redistribute it and/or modify
10187 # it under the terms of the GNU General Public License as published by
10188 # the Free Software Foundation; either version 2 of the License, or
10189 # (at your option) any later version.
10191 # This program is distributed in the hope that it will be useful, but
10192 # WITHOUT ANY WARRANTY; without even the implied warranty of
10193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10194 # General Public License for more details.
10196 # You should have received a copy of the GNU General Public License
10197 # along with this program; if not, write to the Free Software
10198 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10200 # As a special exception to the GNU General Public License, if you
10201 # distribute this file as part of a program that contains a
10202 # configuration script generated by Autoconf, you may include it under
10203 # the same distribution terms that you use for the rest of that program.
10205 # A sed program that does not truncate output.
10206 SED=$lt_SED
10208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10209 Xsed="$SED -e 1s/^X//"
10211 # The HP-UX ksh and POSIX shell print the target directory to stdout
10212 # if CDPATH is set.
10213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10215 # The names of the tagged configurations supported by this script.
10216 available_tags=
10218 # ### BEGIN LIBTOOL CONFIG
10220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10222 # Shell to use when invoking shell scripts.
10223 SHELL=$lt_SHELL
10225 # Whether or not to build shared libraries.
10226 build_libtool_libs=$enable_shared
10228 # Whether or not to build static libraries.
10229 build_old_libs=$enable_static
10231 # Whether or not to add -lc for building shared libraries.
10232 build_libtool_need_lc=$archive_cmds_need_lc
10234 # Whether or not to disallow shared libs when runtime libs are static
10235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10237 # Whether or not to optimize for fast installation.
10238 fast_install=$enable_fast_install
10240 # The host system.
10241 host_alias=$host_alias
10242 host=$host
10243 host_os=$host_os
10245 # The build system.
10246 build_alias=$build_alias
10247 build=$build
10248 build_os=$build_os
10250 # An echo program that does not interpret backslashes.
10251 echo=$lt_echo
10253 # The archiver.
10254 AR=$lt_AR
10255 AR_FLAGS=$lt_AR_FLAGS
10257 # A C compiler.
10258 LTCC=$lt_LTCC
10260 # LTCC compiler flags.
10261 LTCFLAGS=$lt_LTCFLAGS
10263 # A language-specific compiler.
10264 CC=$lt_compiler
10266 # Is the compiler the GNU C compiler?
10267 with_gcc=$GCC
10269 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10270 gcc_ver=\`gcc -dumpversion\`
10272 # An ERE matcher.
10273 EGREP=$lt_EGREP
10275 # The linker used to build libraries.
10276 LD=$lt_LD
10278 # Whether we need hard or soft links.
10279 LN_S=$lt_LN_S
10281 # A BSD-compatible nm program.
10282 NM=$lt_NM
10284 # A symbol stripping program
10285 STRIP=$lt_STRIP
10287 # Used to examine libraries when file_magic_cmd begins "file"
10288 MAGIC_CMD=$MAGIC_CMD
10290 # Used on cygwin: DLL creation program.
10291 DLLTOOL="$DLLTOOL"
10293 # Used on cygwin: object dumper.
10294 OBJDUMP="$OBJDUMP"
10296 # Used on cygwin: assembler.
10297 AS="$AS"
10299 # The name of the directory that contains temporary libtool files.
10300 objdir=$objdir
10302 # How to create reloadable object files.
10303 reload_flag=$lt_reload_flag
10304 reload_cmds=$lt_reload_cmds
10306 # How to pass a linker flag through the compiler.
10307 wl=$lt_lt_prog_compiler_wl
10309 # Object file suffix (normally "o").
10310 objext="$ac_objext"
10312 # Old archive suffix (normally "a").
10313 libext="$libext"
10315 # Shared library suffix (normally ".so").
10316 shrext_cmds='$shrext_cmds'
10318 # Executable file suffix (normally "").
10319 exeext="$exeext"
10321 # Additional compiler flags for building library objects.
10322 pic_flag=$lt_lt_prog_compiler_pic
10323 pic_mode=$pic_mode
10325 # What is the maximum length of a command?
10326 max_cmd_len=$lt_cv_sys_max_cmd_len
10328 # Does compiler simultaneously support -c and -o options?
10329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10331 # Must we lock files when doing compilation?
10332 need_locks=$lt_need_locks
10334 # Do we need the lib prefix for modules?
10335 need_lib_prefix=$need_lib_prefix
10337 # Do we need a version for libraries?
10338 need_version=$need_version
10340 # Whether dlopen is supported.
10341 dlopen_support=$enable_dlopen
10343 # Whether dlopen of programs is supported.
10344 dlopen_self=$enable_dlopen_self
10346 # Whether dlopen of statically linked programs is supported.
10347 dlopen_self_static=$enable_dlopen_self_static
10349 # Compiler flag to prevent dynamic linking.
10350 link_static_flag=$lt_lt_prog_compiler_static
10352 # Compiler flag to turn off builtin functions.
10353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10355 # Compiler flag to allow reflexive dlopens.
10356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10358 # Compiler flag to generate shared objects directly from archives.
10359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10361 # Compiler flag to generate thread-safe objects.
10362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10364 # Library versioning type.
10365 version_type=$version_type
10367 # Format of library name prefix.
10368 libname_spec=$lt_libname_spec
10370 # List of archive names. First name is the real one, the rest are links.
10371 # The last name is the one that the linker finds with -lNAME.
10372 library_names_spec=$lt_library_names_spec
10374 # The coded name of the library, if different from the real name.
10375 soname_spec=$lt_soname_spec
10377 # Commands used to build and install an old-style archive.
10378 RANLIB=$lt_RANLIB
10379 old_archive_cmds=$lt_old_archive_cmds
10380 old_postinstall_cmds=$lt_old_postinstall_cmds
10381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10383 # Create an old-style archive from a shared archive.
10384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10386 # Create a temporary old-style archive to link instead of a shared archive.
10387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10389 # Commands used to build and install a shared archive.
10390 archive_cmds=$lt_archive_cmds
10391 archive_expsym_cmds=$lt_archive_expsym_cmds
10392 postinstall_cmds=$lt_postinstall_cmds
10393 postuninstall_cmds=$lt_postuninstall_cmds
10395 # Commands used to build a loadable module (assumed same as above if empty)
10396 module_cmds=$lt_module_cmds
10397 module_expsym_cmds=$lt_module_expsym_cmds
10399 # Commands to strip libraries.
10400 old_striplib=$lt_old_striplib
10401 striplib=$lt_striplib
10403 # Dependencies to place before the objects being linked to create a
10404 # shared library.
10405 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10407 # Dependencies to place after the objects being linked to create a
10408 # shared library.
10409 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10411 # Dependencies to place before the objects being linked to create a
10412 # shared library.
10413 predeps=$lt_predeps
10415 # Dependencies to place after the objects being linked to create a
10416 # shared library.
10417 postdeps=$lt_postdeps
10419 # The library search path used internally by the compiler when linking
10420 # a shared library.
10421 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10423 # Method to check whether dependent libraries are shared objects.
10424 deplibs_check_method=$lt_deplibs_check_method
10426 # Command to use when deplibs_check_method == file_magic.
10427 file_magic_cmd=$lt_file_magic_cmd
10429 # Flag that allows shared libraries with undefined symbols to be built.
10430 allow_undefined_flag=$lt_allow_undefined_flag
10432 # Flag that forces no undefined symbols.
10433 no_undefined_flag=$lt_no_undefined_flag
10435 # Commands used to finish a libtool library installation in a directory.
10436 finish_cmds=$lt_finish_cmds
10438 # Same as above, but a single script fragment to be evaled but not shown.
10439 finish_eval=$lt_finish_eval
10441 # Take the output of nm and produce a listing of raw symbols and C names.
10442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10444 # Transform the output of nm in a proper C declaration
10445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10447 # Transform the output of nm in a C name address pair
10448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10450 # This is the shared library runtime path variable.
10451 runpath_var=$runpath_var
10453 # This is the shared library path variable.
10454 shlibpath_var=$shlibpath_var
10456 # Is shlibpath searched before the hard-coded library search path?
10457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10459 # How to hardcode a shared library path into an executable.
10460 hardcode_action=$hardcode_action
10462 # Whether we should hardcode library paths into libraries.
10463 hardcode_into_libs=$hardcode_into_libs
10465 # Flag to hardcode \$libdir into a binary during linking.
10466 # This must work even if \$libdir does not exist.
10467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10469 # If ld is used when linking, flag to hardcode \$libdir into
10470 # a binary during linking. This must work even if \$libdir does
10471 # not exist.
10472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10474 # Whether we need a single -rpath flag with a separated argument.
10475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10478 # resulting binary.
10479 hardcode_direct=$hardcode_direct
10481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10482 # resulting binary.
10483 hardcode_minus_L=$hardcode_minus_L
10485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10486 # the resulting binary.
10487 hardcode_shlibpath_var=$hardcode_shlibpath_var
10489 # Set to yes if building a shared library automatically hardcodes DIR into the library
10490 # and all subsequent libraries and executables linked against it.
10491 hardcode_automatic=$hardcode_automatic
10493 # Variables whose values should be saved in libtool wrapper scripts and
10494 # restored at relink time.
10495 variables_saved_for_relink="$variables_saved_for_relink"
10497 # Whether libtool must link a program against all its dependency libraries.
10498 link_all_deplibs=$link_all_deplibs
10500 # Compile-time system search path for libraries
10501 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10503 # Run-time system search path for libraries
10504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10506 # Fix the shell variable \$srcfile for the compiler.
10507 fix_srcfile_path="$fix_srcfile_path"
10509 # Set to yes if exported symbols are required.
10510 always_export_symbols=$always_export_symbols
10512 # The commands to list exported symbols.
10513 export_symbols_cmds=$lt_export_symbols_cmds
10515 # The commands to extract the exported symbol list from a shared archive.
10516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10518 # Symbols that should not be listed in the preloaded symbols.
10519 exclude_expsyms=$lt_exclude_expsyms
10521 # Symbols that must always be exported.
10522 include_expsyms=$lt_include_expsyms
10524 # ### END LIBTOOL CONFIG
10526 __EOF__
10529 case $host_os in
10530 aix3*)
10531 cat <<\EOF >> "$cfgfile"
10533 # AIX sometimes has problems with the GCC collect2 program. For some
10534 # reason, if we set the COLLECT_NAMES environment variable, the problems
10535 # vanish in a puff of smoke.
10536 if test "X${COLLECT_NAMES+set}" != Xset; then
10537 COLLECT_NAMES=
10538 export COLLECT_NAMES
10542 esac
10544 # We use sed instead of cat because bash on DJGPP gets confused if
10545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10546 # text mode, it properly converts lines to CR/LF. This bash problem
10547 # is reportedly fixed, but why not run on old versions too?
10548 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10550 mv -f "$cfgfile" "$ofile" || \
10551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10552 chmod +x "$ofile"
10554 else
10555 # If there is no Makefile yet, we rely on a make rule to execute
10556 # `config.status --recheck' to rerun these tests and create the
10557 # libtool script then.
10558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10559 if test -f "$ltmain_in"; then
10560 test -f Makefile && make "$ltmain"
10565 ac_ext=c
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10571 CC="$lt_save_CC"
10574 # Check whether --with-tags was given.
10575 if test "${with_tags+set}" = set; then
10576 withval=$with_tags; tagnames="$withval"
10580 if test -f "$ltmain" && test -n "$tagnames"; then
10581 if test ! -f "${ofile}"; then
10582 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10583 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10586 if test -z "$LTCC"; then
10587 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10588 if test -z "$LTCC"; then
10589 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10590 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10591 else
10592 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10593 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10596 if test -z "$LTCFLAGS"; then
10597 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10600 # Extract list of available tagged configurations in $ofile.
10601 # Note that this assumes the entire list is on one line.
10602 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10605 for tagname in $tagnames; do
10606 IFS="$lt_save_ifs"
10607 # Check whether tagname contains only valid characters
10608 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10609 "") ;;
10610 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10611 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10612 { (exit 1); exit 1; }; }
10614 esac
10616 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10617 then
10618 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10619 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10620 { (exit 1); exit 1; }; }
10623 # Update the list of available tags.
10624 if test -n "$tagname"; then
10625 echo appending configuration tag \"$tagname\" to $ofile
10627 case $tagname in
10628 CXX)
10629 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10631 (test "X$CXX" != "Xg++"))) ; then
10632 ac_ext=cpp
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10641 archive_cmds_need_lc_CXX=no
10642 allow_undefined_flag_CXX=
10643 always_export_symbols_CXX=no
10644 archive_expsym_cmds_CXX=
10645 export_dynamic_flag_spec_CXX=
10646 hardcode_direct_CXX=no
10647 hardcode_libdir_flag_spec_CXX=
10648 hardcode_libdir_flag_spec_ld_CXX=
10649 hardcode_libdir_separator_CXX=
10650 hardcode_minus_L_CXX=no
10651 hardcode_shlibpath_var_CXX=unsupported
10652 hardcode_automatic_CXX=no
10653 module_cmds_CXX=
10654 module_expsym_cmds_CXX=
10655 link_all_deplibs_CXX=unknown
10656 old_archive_cmds_CXX=$old_archive_cmds
10657 no_undefined_flag_CXX=
10658 whole_archive_flag_spec_CXX=
10659 enable_shared_with_static_runtimes_CXX=no
10661 # Dependencies to place before and after the object being linked:
10662 predep_objects_CXX=
10663 postdep_objects_CXX=
10664 predeps_CXX=
10665 postdeps_CXX=
10666 compiler_lib_search_path_CXX=
10668 # Source file extension for C++ test sources.
10669 ac_ext=cpp
10671 # Object file extension for compiled C++ test sources.
10672 objext=o
10673 objext_CXX=$objext
10675 # Code to be used in simple compile tests
10676 lt_simple_compile_test_code="int some_variable = 0;\n"
10678 # Code to be used in simple link tests
10679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10683 # If no C compiler was specified, use CC.
10684 LTCC=${LTCC-"$CC"}
10686 # If no C compiler flags were specified, use CFLAGS.
10687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10689 # Allow CC to be a program name with arguments.
10690 compiler=$CC
10693 # save warnings/boilerplate of simple test code
10694 ac_outfile=conftest.$ac_objext
10695 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10697 _lt_compiler_boilerplate=`cat conftest.err`
10698 $rm conftest*
10700 ac_outfile=conftest.$ac_objext
10701 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10703 _lt_linker_boilerplate=`cat conftest.err`
10704 $rm conftest*
10707 # Allow CC to be a program name with arguments.
10708 lt_save_CC=$CC
10709 lt_save_LD=$LD
10710 lt_save_GCC=$GCC
10711 GCC=$GXX
10712 lt_save_with_gnu_ld=$with_gnu_ld
10713 lt_save_path_LD=$lt_cv_path_LD
10714 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10715 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10716 else
10717 $as_unset lt_cv_prog_gnu_ld
10719 if test -n "${lt_cv_path_LDCXX+set}"; then
10720 lt_cv_path_LD=$lt_cv_path_LDCXX
10721 else
10722 $as_unset lt_cv_path_LD
10724 test -z "${LDCXX+set}" || LD=$LDCXX
10725 CC=${CXX-"c++"}
10726 compiler=$CC
10727 compiler_CXX=$CC
10728 for cc_temp in $compiler""; do
10729 case $cc_temp in
10730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10732 \-*) ;;
10733 *) break;;
10734 esac
10735 done
10736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10739 # We don't want -fno-exception wen compiling C++ code, so set the
10740 # no_builtin_flag separately
10741 if test "$GXX" = yes; then
10742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10743 else
10744 lt_prog_compiler_no_builtin_flag_CXX=
10747 if test "$GXX" = yes; then
10748 # Set up default GNU C++ configuration
10751 # Check whether --with-gnu-ld was given.
10752 if test "${with_gnu_ld+set}" = set; then
10753 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10754 else
10755 with_gnu_ld=no
10758 ac_prog=ld
10759 if test "$GCC" = yes; then
10760 # Check if gcc -print-prog-name=ld gives a path.
10761 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10762 $as_echo_n "checking for ld used by $CC... " >&6; }
10763 case $host in
10764 *-*-mingw*)
10765 # gcc leaves a trailing carriage return which upsets mingw
10766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10769 esac
10770 case $ac_prog in
10771 # Accept absolute paths.
10772 [\\/]* | ?:[\\/]*)
10773 re_direlt='/[^/][^/]*/\.\./'
10774 # Canonicalize the pathname of ld
10775 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10777 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10778 done
10779 test -z "$LD" && LD="$ac_prog"
10782 # If it fails, then pretend we aren't using GCC.
10783 ac_prog=ld
10786 # If it is relative, then search for the first ld in PATH.
10787 with_gnu_ld=unknown
10789 esac
10790 elif test "$with_gnu_ld" = yes; then
10791 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10792 $as_echo_n "checking for GNU ld... " >&6; }
10793 else
10794 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10795 $as_echo_n "checking for non-GNU ld... " >&6; }
10797 if test "${lt_cv_path_LD+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10799 else
10800 if test -z "$LD"; then
10801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10802 for ac_dir in $PATH; do
10803 IFS="$lt_save_ifs"
10804 test -z "$ac_dir" && ac_dir=.
10805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10806 lt_cv_path_LD="$ac_dir/$ac_prog"
10807 # Check to see if the program is GNU ld. I'd rather use --version,
10808 # but apparently some variants of GNU ld only accept -v.
10809 # Break only if it was the GNU/non-GNU ld that we prefer.
10810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10811 *GNU* | *'with BFD'*)
10812 test "$with_gnu_ld" != no && break
10815 test "$with_gnu_ld" != yes && break
10817 esac
10819 done
10820 IFS="$lt_save_ifs"
10821 else
10822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10826 LD="$lt_cv_path_LD"
10827 if test -n "$LD"; then
10828 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10829 $as_echo "$LD" >&6; }
10830 else
10831 { $as_echo "$as_me:$LINENO: result: no" >&5
10832 $as_echo "no" >&6; }
10834 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10835 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10836 { (exit 1); exit 1; }; }
10837 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10839 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10840 $as_echo_n "(cached) " >&6
10841 else
10842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10843 case `$LD -v 2>&1 </dev/null` in
10844 *GNU* | *'with BFD'*)
10845 lt_cv_prog_gnu_ld=yes
10848 lt_cv_prog_gnu_ld=no
10850 esac
10852 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10854 with_gnu_ld=$lt_cv_prog_gnu_ld
10858 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10859 # archiving commands below assume that GNU ld is being used.
10860 if test "$with_gnu_ld" = yes; then
10861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10862 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'
10864 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10867 # If archive_cmds runs LD, not CC, wlarc should be empty
10868 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10869 # investigate it a little bit more. (MM)
10870 wlarc='${wl}'
10872 # ancient GNU ld didn't support --whole-archive et. al.
10873 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10874 grep 'no-whole-archive' > /dev/null; then
10875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10876 else
10877 whole_archive_flag_spec_CXX=
10879 else
10880 with_gnu_ld=no
10881 wlarc=
10883 # A generic and very simple default shared library creation
10884 # command for GNU C++ for the case where it uses the native
10885 # linker, instead of GNU ld. If possible, this setting should
10886 # overridden to take advantage of the native linker features on
10887 # the platform it is being used on.
10888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10891 # Commands to make compiler produce verbose output that lists
10892 # what "hidden" libraries, object files and flags are used when
10893 # linking a shared library.
10894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10896 else
10897 GXX=no
10898 with_gnu_ld=no
10899 wlarc=
10902 # PORTME: fill in a description of your system's C++ link characteristics
10903 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10905 ld_shlibs_CXX=yes
10906 case $host_os in
10907 aix3*)
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10911 aix4* | aix5*)
10912 if test "$host_cpu" = ia64; then
10913 # On IA64, the linker does run time linking by default, so we don't
10914 # have to do anything special.
10915 aix_use_runtimelinking=no
10916 exp_sym_flag='-Bexport'
10917 no_entry_flag=""
10918 else
10919 aix_use_runtimelinking=no
10921 # Test if we are trying to use run time linking or normal
10922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10923 # need to do runtime linking.
10924 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10925 for ld_flag in $LDFLAGS; do
10926 case $ld_flag in
10927 *-brtl*)
10928 aix_use_runtimelinking=yes
10929 break
10931 esac
10932 done
10934 esac
10936 exp_sym_flag='-bexport'
10937 no_entry_flag='-bnoentry'
10940 # When large executables or shared objects are built, AIX ld can
10941 # have problems creating the table of contents. If linking a library
10942 # or program results in "error TOC overflow" add -mminimal-toc to
10943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10946 archive_cmds_CXX=''
10947 hardcode_direct_CXX=yes
10948 hardcode_libdir_separator_CXX=':'
10949 link_all_deplibs_CXX=yes
10951 if test "$GXX" = yes; then
10952 case $host_os in aix4.[012]|aix4.[012].*)
10953 # We only want to do this on AIX 4.2 and lower, the check
10954 # below for broken collect2 doesn't work under 4.3+
10955 collect2name=`${CC} -print-prog-name=collect2`
10956 if test -f "$collect2name" && \
10957 strings "$collect2name" | grep resolve_lib_name >/dev/null
10958 then
10959 # We have reworked collect2
10960 hardcode_direct_CXX=yes
10961 else
10962 # We have old collect2
10963 hardcode_direct_CXX=unsupported
10964 # It fails to find uninstalled libraries when the uninstalled
10965 # path is not listed in the libpath. Setting hardcode_minus_L
10966 # to unsupported forces relinking
10967 hardcode_minus_L_CXX=yes
10968 hardcode_libdir_flag_spec_CXX='-L$libdir'
10969 hardcode_libdir_separator_CXX=
10972 esac
10973 shared_flag='-shared'
10974 if test "$aix_use_runtimelinking" = yes; then
10975 shared_flag="$shared_flag "'${wl}-G'
10977 else
10978 # not using gcc
10979 if test "$host_cpu" = ia64; then
10980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10981 # chokes on -Wl,-G. The following line is correct:
10982 shared_flag='-G'
10983 else
10984 if test "$aix_use_runtimelinking" = yes; then
10985 shared_flag='${wl}-G'
10986 else
10987 shared_flag='${wl}-bM:SRE'
10992 # It seems that -bexpall does not export symbols beginning with
10993 # underscore (_), so it is better to generate a list of symbols to export.
10994 always_export_symbols_CXX=yes
10995 if test "$aix_use_runtimelinking" = yes; then
10996 # Warning - without using the other runtime loading flags (-brtl),
10997 # -berok will link without error, but may produce a broken library.
10998 allow_undefined_flag_CXX='-berok'
10999 # Determine the default libpath from the value encoded in an empty executable.
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11008 main ()
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022 $as_echo "$ac_try_echo") >&5
11023 (eval "$ac_link") 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_cxx_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest$ac_exeext && {
11033 test "$cross_compiling" = yes ||
11034 $as_test_x conftest$ac_exeext
11035 }; then
11037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11039 # Check for a 64-bit object if we didn't find anything.
11040 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11041 }'`; fi
11042 else
11043 $as_echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11049 rm -rf conftest.dSYM
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051 conftest$ac_exeext conftest.$ac_ext
11052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11054 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11056 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"
11057 else
11058 if test "$host_cpu" = ia64; then
11059 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11060 allow_undefined_flag_CXX="-z nodefs"
11061 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"
11062 else
11063 # Determine the default libpath from the value encoded in an empty executable.
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11072 main ()
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_link") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_cxx_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest$ac_exeext && {
11097 test "$cross_compiling" = yes ||
11098 $as_test_x conftest$ac_exeext
11099 }; then
11101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11103 # Check for a 64-bit object if we didn't find anything.
11104 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11105 }'`; fi
11106 else
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11113 rm -rf conftest.dSYM
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11118 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11119 # Warning - without using the other run time loading flags,
11120 # -berok will link without error, but may produce a broken library.
11121 no_undefined_flag_CXX=' ${wl}-bernotok'
11122 allow_undefined_flag_CXX=' ${wl}-berok'
11123 # Exported symbols can be pulled into shared objects from archives
11124 whole_archive_flag_spec_CXX='$convenience'
11125 archive_cmds_need_lc_CXX=yes
11126 # This is similar to how AIX traditionally builds its shared libraries.
11127 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'
11132 beos*)
11133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11134 allow_undefined_flag_CXX=unsupported
11135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11136 # support --undefined. This deserves some investigation. FIXME
11137 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11138 else
11139 ld_shlibs_CXX=no
11143 chorus*)
11144 case $cc_basename in
11146 # FIXME: insert proper C++ library support
11147 ld_shlibs_CXX=no
11149 esac
11152 cygwin* | mingw* | pw32*)
11153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11154 # as there is no search path for DLLs.
11155 hardcode_libdir_flag_spec_CXX='-L$libdir'
11156 allow_undefined_flag_CXX=unsupported
11157 always_export_symbols_CXX=no
11158 enable_shared_with_static_runtimes_CXX=yes
11160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11161 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'
11162 # If the export-symbols file already is a .def file (1st line
11163 # is EXPORTS), use it as is; otherwise, prepend...
11164 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11165 cp $export_symbols $output_objdir/$soname.def;
11166 else
11167 echo EXPORTS > $output_objdir/$soname.def;
11168 cat $export_symbols >> $output_objdir/$soname.def;
11170 $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'
11171 else
11172 ld_shlibs_CXX=no
11175 darwin* | rhapsody*)
11176 case $host_os in
11177 rhapsody* | darwin1.[012])
11178 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11180 *) # Darwin 1.3 on
11181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11182 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11183 else
11184 case ${MACOSX_DEPLOYMENT_TARGET} in
11185 10.[012])
11186 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11188 10.*)
11189 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11191 esac
11194 esac
11195 archive_cmds_need_lc_CXX=no
11196 hardcode_direct_CXX=no
11197 hardcode_automatic_CXX=yes
11198 hardcode_shlibpath_var_CXX=unsupported
11199 whole_archive_flag_spec_CXX=''
11200 link_all_deplibs_CXX=yes
11202 if test "$GXX" = yes ; then
11203 lt_int_apple_cc_single_mod=no
11204 output_verbose_link_cmd='echo'
11205 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11206 lt_int_apple_cc_single_mod=yes
11208 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11209 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11210 else
11211 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'
11213 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11216 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}'
11217 else
11218 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}'
11220 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}'
11221 else
11222 case $cc_basename in
11223 xlc*)
11224 output_verbose_link_cmd='echo'
11225 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11226 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11228 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11229 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}'
11232 ld_shlibs_CXX=no
11234 esac
11238 dgux*)
11239 case $cc_basename in
11240 ec++*)
11241 # FIXME: insert proper C++ library support
11242 ld_shlibs_CXX=no
11244 ghcx*)
11245 # Green Hills C++ Compiler
11246 # FIXME: insert proper C++ library support
11247 ld_shlibs_CXX=no
11250 # FIXME: insert proper C++ library support
11251 ld_shlibs_CXX=no
11253 esac
11255 freebsd[12]*)
11256 # C++ shared libraries reported to be fairly broken before switch to ELF
11257 ld_shlibs_CXX=no
11259 freebsd-elf*)
11260 archive_cmds_need_lc_CXX=no
11262 freebsd* | kfreebsd*-gnu | dragonfly*)
11263 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11264 # conventions
11265 ld_shlibs_CXX=yes
11267 gnu*)
11269 hpux9*)
11270 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11271 hardcode_libdir_separator_CXX=:
11272 export_dynamic_flag_spec_CXX='${wl}-E'
11273 hardcode_direct_CXX=yes
11274 hardcode_minus_L_CXX=yes # Not in the search PATH,
11275 # but as the default
11276 # location of the library.
11278 case $cc_basename in
11279 CC*)
11280 # FIXME: insert proper C++ library support
11281 ld_shlibs_CXX=no
11283 aCC*)
11284 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'
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11289 # There doesn't appear to be a way to prevent this compiler from
11290 # explicitly linking system object files so we need to strip them
11291 # from the output so that they don't get included in the library
11292 # dependencies.
11293 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'
11296 if test "$GXX" = yes; then
11297 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'
11298 else
11299 # FIXME: insert proper C++ library support
11300 ld_shlibs_CXX=no
11303 esac
11305 hpux10*|hpux11*)
11306 if test $with_gnu_ld = no; then
11307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308 hardcode_libdir_separator_CXX=:
11310 case $host_cpu in
11311 hppa*64*|ia64*)
11312 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11315 export_dynamic_flag_spec_CXX='${wl}-E'
11317 esac
11319 case $host_cpu in
11320 hppa*64*|ia64*)
11321 hardcode_direct_CXX=no
11322 hardcode_shlibpath_var_CXX=no
11325 hardcode_direct_CXX=yes
11326 hardcode_minus_L_CXX=yes # Not in the search PATH,
11327 # but as the default
11328 # location of the library.
11330 esac
11332 case $cc_basename in
11333 CC*)
11334 # FIXME: insert proper C++ library support
11335 ld_shlibs_CXX=no
11337 aCC*)
11338 case $host_cpu in
11339 hppa*64*)
11340 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11342 ia64*)
11343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348 esac
11349 # Commands to make compiler produce verbose output that lists
11350 # what "hidden" libraries, object files and flags are used when
11351 # linking a shared library.
11353 # There doesn't appear to be a way to prevent this compiler from
11354 # explicitly linking system object files so we need to strip them
11355 # from the output so that they don't get included in the library
11356 # dependencies.
11357 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'
11360 if test "$GXX" = yes; then
11361 if test $with_gnu_ld = no; then
11362 case $host_cpu in
11363 hppa*64*)
11364 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11366 ia64*)
11367 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11370 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'
11372 esac
11374 else
11375 # FIXME: insert proper C++ library support
11376 ld_shlibs_CXX=no
11379 esac
11381 interix3*)
11382 hardcode_direct_CXX=no
11383 hardcode_shlibpath_var_CXX=no
11384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11385 export_dynamic_flag_spec_CXX='${wl}-E'
11386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11387 # Instead, shared libraries are loaded at an image base (0x10000000 by
11388 # default) and relocated if they conflict, which is a slow very memory
11389 # consuming and fragmenting process. To avoid this, we pick a random,
11390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11392 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'
11393 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'
11395 irix5* | irix6*)
11396 case $cc_basename in
11397 CC*)
11398 # SGI C++
11399 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'
11401 # Archives containing C++ object files must be created using
11402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11403 # necessary to make sure instantiated templates are included
11404 # in the archive.
11405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11408 if test "$GXX" = yes; then
11409 if test "$with_gnu_ld" = no; then
11410 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'
11411 else
11412 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'
11415 link_all_deplibs_CXX=yes
11417 esac
11418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419 hardcode_libdir_separator_CXX=:
11421 linux*)
11422 case $cc_basename in
11423 KCC*)
11424 # Kuck and Associates, Inc. (KAI) C++ Compiler
11426 # KCC will only create a shared library if the output file
11427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11428 # to its proper name (with version) after linking.
11429 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'
11430 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'
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11435 # There doesn't appear to be a way to prevent this compiler from
11436 # explicitly linking system object files so we need to strip them
11437 # from the output so that they don't get included in the library
11438 # dependencies.
11439 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'
11441 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11444 # Archives containing C++ object files must be created using
11445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11446 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11448 icpc*)
11449 # Intel C++
11450 with_gnu_ld=yes
11451 # version 8.0 and above of icpc choke on multiply defined symbols
11452 # if we add $predep_objects and $postdep_objects, however 7.1 and
11453 # earlier do not add the objects themselves.
11454 case `$CC -V 2>&1` in
11455 *"Version 7."*)
11456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11457 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'
11459 *) # Version 8.0 or newer
11460 tmp_idyn=
11461 case $host_cpu in
11462 ia64*) tmp_idyn=' -i_dynamic';;
11463 esac
11464 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 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'
11467 esac
11468 archive_cmds_need_lc_CXX=no
11469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11471 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11473 pgCC*)
11474 # Portland Group C++ compiler
11475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11476 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'
11478 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11480 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'
11482 cxx*)
11483 # Compaq C++
11484 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11485 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'
11487 runpath_var=LD_RUN_PATH
11488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11489 hardcode_libdir_separator_CXX=:
11491 # Commands to make compiler produce verbose output that lists
11492 # what "hidden" libraries, object files and flags are used when
11493 # linking a shared library.
11495 # There doesn't appear to be a way to prevent this compiler from
11496 # explicitly linking system object files so we need to strip them
11497 # from the output so that they don't get included in the library
11498 # dependencies.
11499 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'
11501 esac
11503 lynxos*)
11504 # FIXME: insert proper C++ library support
11505 ld_shlibs_CXX=no
11507 m88k*)
11508 # FIXME: insert proper C++ library support
11509 ld_shlibs_CXX=no
11511 mvs*)
11512 case $cc_basename in
11513 cxx*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11521 esac
11523 netbsd*)
11524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11525 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11526 wlarc=
11527 hardcode_libdir_flag_spec_CXX='-R$libdir'
11528 hardcode_direct_CXX=yes
11529 hardcode_shlibpath_var_CXX=no
11531 # Workaround some broken pre-1.5 toolchains
11532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11534 openbsd2*)
11535 # C++ shared libraries are fairly broken
11536 ld_shlibs_CXX=no
11538 openbsd*)
11539 hardcode_direct_CXX=yes
11540 hardcode_shlibpath_var_CXX=no
11541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11545 export_dynamic_flag_spec_CXX='${wl}-E'
11546 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11548 output_verbose_link_cmd='echo'
11550 osf3*)
11551 case $cc_basename in
11552 KCC*)
11553 # Kuck and Associates, Inc. (KAI) C++ Compiler
11555 # KCC will only create a shared library if the output file
11556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11557 # to its proper name (with version) after linking.
11558 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'
11560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561 hardcode_libdir_separator_CXX=:
11563 # Archives containing C++ object files must be created using
11564 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11565 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11568 RCC*)
11569 # Rational C++ 2.4.1
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11573 cxx*)
11574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575 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'
11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578 hardcode_libdir_separator_CXX=:
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11587 # dependencies.
11588 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'
11591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593 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'
11595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596 hardcode_libdir_separator_CXX=:
11598 # Commands to make compiler produce verbose output that lists
11599 # what "hidden" libraries, object files and flags are used when
11600 # linking a shared library.
11601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11603 else
11604 # FIXME: insert proper C++ library support
11605 ld_shlibs_CXX=no
11608 esac
11610 osf4* | osf5*)
11611 case $cc_basename in
11612 KCC*)
11613 # Kuck and Associates, Inc. (KAI) C++ Compiler
11615 # KCC will only create a shared library if the output file
11616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617 # to its proper name (with version) after linking.
11618 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'
11620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621 hardcode_libdir_separator_CXX=:
11623 # Archives containing C++ object files must be created using
11624 # the KAI C++ compiler.
11625 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11627 RCC*)
11628 # Rational C++ 2.4.1
11629 # FIXME: insert proper C++ library support
11630 ld_shlibs_CXX=no
11632 cxx*)
11633 allow_undefined_flag_CXX=' -expect_unresolved \*'
11634 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'
11635 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11636 echo "-hidden">> $lib.exp~
11637 $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~
11638 $rm $lib.exp'
11640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11641 hardcode_libdir_separator_CXX=:
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11647 # There doesn't appear to be a way to prevent this compiler from
11648 # explicitly linking system object files so we need to strip them
11649 # from the output so that they don't get included in the library
11650 # dependencies.
11651 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'
11654 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11656 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'
11658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11659 hardcode_libdir_separator_CXX=:
11661 # Commands to make compiler produce verbose output that lists
11662 # what "hidden" libraries, object files and flags are used when
11663 # linking a shared library.
11664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11666 else
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11671 esac
11673 psos*)
11674 # FIXME: insert proper C++ library support
11675 ld_shlibs_CXX=no
11677 sunos4*)
11678 case $cc_basename in
11679 CC*)
11680 # Sun C++ 4.x
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11684 lcc*)
11685 # Lucid
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11693 esac
11695 solaris*)
11696 case $cc_basename in
11697 CC*)
11698 # Sun C++ 4.2, 5.x and Centerline C++
11699 archive_cmds_need_lc_CXX=yes
11700 no_undefined_flag_CXX=' -zdefs'
11701 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11703 $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'
11705 hardcode_libdir_flag_spec_CXX='-R$libdir'
11706 hardcode_shlibpath_var_CXX=no
11707 case $host_os in
11708 solaris2.[0-5] | solaris2.[0-5].*) ;;
11710 # The C++ compiler is used as linker so we must use $wl
11711 # flag to pass the commands to the underlying system
11712 # linker. We must also pass each convience library through
11713 # to the system linker between allextract/defaultextract.
11714 # The C++ compiler will combine linker options so we
11715 # cannot just pass the convience library names through
11716 # without $wl.
11717 # Supported since Solaris 2.6 (maybe 2.5.1?)
11718 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11720 esac
11721 link_all_deplibs_CXX=yes
11723 output_verbose_link_cmd='echo'
11725 # Archives containing C++ object files must be created using
11726 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11727 # necessary to make sure instantiated templates are included
11728 # in the archive.
11729 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11731 gcx*)
11732 # Green Hills C++ Compiler
11733 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735 # The C++ compiler must be used to create the archive.
11736 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11739 # GNU C++ compiler with Solaris linker
11740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11741 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11742 if $CC --version | grep -v '^2\.7' > /dev/null; then
11743 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11745 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11750 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11751 else
11752 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11753 # platform.
11754 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11758 # Commands to make compiler produce verbose output that lists
11759 # what "hidden" libraries, object files and flags are used when
11760 # linking a shared library.
11761 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11764 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11767 esac
11769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11770 no_undefined_flag_CXX='${wl}-z,text'
11771 archive_cmds_need_lc_CXX=no
11772 hardcode_shlibpath_var_CXX=no
11773 runpath_var='LD_RUN_PATH'
11775 case $cc_basename in
11776 CC*)
11777 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 esac
11786 sysv5* | sco3.2v5* | sco5v6*)
11787 # Note: We can NOT use -z defs as we might desire, because we do not
11788 # link with -lc, and that would cause any symbols used from libc to
11789 # always be unresolved, which means just about no library would
11790 # ever link correctly. If we're not using GNU ld we use -z text
11791 # though, which does catch some bad symbols but isn't as heavy-handed
11792 # as -z defs.
11793 # For security reasons, it is highly recommended that you always
11794 # use absolute paths for naming shared libraries, and exclude the
11795 # DT_RUNPATH tag from executables and libraries. But doing so
11796 # requires that you compile everything twice, which is a pain.
11797 # So that behaviour is only enabled if SCOABSPATH is set to a
11798 # non-empty value in the environment. Most likely only useful for
11799 # creating official distributions of packages.
11800 # This is a hack until libtool officially supports absolute path
11801 # names for shared libraries.
11802 no_undefined_flag_CXX='${wl}-z,text'
11803 allow_undefined_flag_CXX='${wl}-z,nodefs'
11804 archive_cmds_need_lc_CXX=no
11805 hardcode_shlibpath_var_CXX=no
11806 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11807 hardcode_libdir_separator_CXX=':'
11808 link_all_deplibs_CXX=yes
11809 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11810 runpath_var='LD_RUN_PATH'
11812 case $cc_basename in
11813 CC*)
11814 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11821 esac
11823 tandem*)
11824 case $cc_basename in
11825 NCC*)
11826 # NonStop-UX NCC 3.20
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11831 # FIXME: insert proper C++ library support
11832 ld_shlibs_CXX=no
11834 esac
11836 vxworks*)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11844 esac
11845 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11846 $as_echo "$ld_shlibs_CXX" >&6; }
11847 test "$ld_shlibs_CXX" = no && can_build_shared=no
11849 GCC_CXX="$GXX"
11850 LD_CXX="$LD"
11853 cat > conftest.$ac_ext <<EOF
11854 class Foo
11856 public:
11857 Foo (void) { a = 0; }
11858 private:
11859 int a;
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 (eval $ac_compile) 2>&5
11865 ac_status=$?
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; then
11868 # Parse the compiler output and extract the necessary
11869 # objects, libraries and library flags.
11871 # Sentinel used to keep track of whether or not we are before
11872 # the conftest object file.
11873 pre_test_object_deps_done=no
11875 # The `*' in the case matches for architectures that use `case' in
11876 # $output_verbose_cmd can trigger glob expansion during the loop
11877 # eval without this substitution.
11878 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11880 for p in `eval $output_verbose_link_cmd`; do
11881 case $p in
11883 -L* | -R* | -l*)
11884 # Some compilers place space between "-{L,R}" and the path.
11885 # Remove the space.
11886 if test $p = "-L" \
11887 || test $p = "-R"; then
11888 prev=$p
11889 continue
11890 else
11891 prev=
11894 if test "$pre_test_object_deps_done" = no; then
11895 case $p in
11896 -L* | -R*)
11897 # Internal compiler library paths should come after those
11898 # provided the user. The postdeps already come after the
11899 # user supplied libs so there is no need to process them.
11900 if test -z "$compiler_lib_search_path_CXX"; then
11901 compiler_lib_search_path_CXX="${prev}${p}"
11902 else
11903 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11906 # The "-l" case would never come before the object being
11907 # linked, so don't bother handling this case.
11908 esac
11909 else
11910 if test -z "$postdeps_CXX"; then
11911 postdeps_CXX="${prev}${p}"
11912 else
11913 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11918 *.$objext)
11919 # This assumes that the test object file only shows up
11920 # once in the compiler output.
11921 if test "$p" = "conftest.$objext"; then
11922 pre_test_object_deps_done=yes
11923 continue
11926 if test "$pre_test_object_deps_done" = no; then
11927 if test -z "$predep_objects_CXX"; then
11928 predep_objects_CXX="$p"
11929 else
11930 predep_objects_CXX="$predep_objects_CXX $p"
11932 else
11933 if test -z "$postdep_objects_CXX"; then
11934 postdep_objects_CXX="$p"
11935 else
11936 postdep_objects_CXX="$postdep_objects_CXX $p"
11941 *) ;; # Ignore the rest.
11943 esac
11944 done
11946 # Clean up.
11947 rm -f a.out a.exe
11948 else
11949 echo "libtool.m4: error: problem compiling CXX test program"
11952 $rm -f confest.$objext
11954 # PORTME: override above test on systems where it is broken
11955 case $host_os in
11956 interix3*)
11957 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11958 # hack all around it, let's just trust "g++" to DTRT.
11959 predep_objects_CXX=
11960 postdep_objects_CXX=
11961 postdeps_CXX=
11964 solaris*)
11965 case $cc_basename in
11966 CC*)
11967 # Adding this requires a known-good setup of shared libraries for
11968 # Sun compiler versions before 5.6, else PIC objects from an old
11969 # archive will be linked into the output, leading to subtle bugs.
11970 postdeps_CXX='-lCstd -lCrun'
11972 esac
11974 esac
11977 case " $postdeps_CXX " in
11978 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11979 esac
11981 lt_prog_compiler_wl_CXX=
11982 lt_prog_compiler_pic_CXX=
11983 lt_prog_compiler_static_CXX=
11985 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11988 # C++ specific cases for pic, static, wl, etc.
11989 if test "$GXX" = yes; then
11990 lt_prog_compiler_wl_CXX='-Wl,'
11991 lt_prog_compiler_static_CXX='-static'
11993 case $host_os in
11994 aix*)
11995 # All AIX code is PIC.
11996 if test "$host_cpu" = ia64; then
11997 # AIX 5 now supports IA64 processor
11998 lt_prog_compiler_static_CXX='-Bstatic'
12001 amigaos*)
12002 # FIXME: we need at least 68020 code to build shared libraries, but
12003 # adding the `-m68020' flag to GCC prevents building anything better,
12004 # like `-m68040'.
12005 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12007 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12008 # PIC is the default for these OSes.
12010 mingw* | os2* | pw32*)
12011 # This hack is so that the source file can tell whether it is being
12012 # built for inclusion in a dll (and should export symbols for example).
12013 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_CXX='-fno-common'
12020 *djgpp*)
12021 # DJGPP does not support shared libraries at all
12022 lt_prog_compiler_pic_CXX=
12024 interix3*)
12025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026 # Instead, we relocate shared libraries at runtime.
12028 sysv4*MP*)
12029 if test -d /usr/nec; then
12030 lt_prog_compiler_pic_CXX=-Kconform_pic
12033 hpux*)
12034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035 # not for PA HP-UX.
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12040 lt_prog_compiler_pic_CXX='-fPIC'
12042 esac
12045 lt_prog_compiler_pic_CXX='-fPIC'
12047 esac
12048 else
12049 case $host_os in
12050 aix4* | aix5*)
12051 # All AIX code is PIC.
12052 if test "$host_cpu" = ia64; then
12053 # AIX 5 now supports IA64 processor
12054 lt_prog_compiler_static_CXX='-Bstatic'
12055 else
12056 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12059 chorus*)
12060 case $cc_basename in
12061 cxch68*)
12062 # Green Hills C++ Compiler
12063 # _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"
12065 esac
12067 darwin*)
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 case $cc_basename in
12071 xlc*)
12072 lt_prog_compiler_pic_CXX='-qnocommon'
12073 lt_prog_compiler_wl_CXX='-Wl,'
12075 esac
12077 dgux*)
12078 case $cc_basename in
12079 ec++*)
12080 lt_prog_compiler_pic_CXX='-KPIC'
12082 ghcx*)
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX='-pic'
12088 esac
12090 freebsd* | kfreebsd*-gnu | dragonfly*)
12091 # FreeBSD uses GNU C++
12093 hpux9* | hpux10* | hpux11*)
12094 case $cc_basename in
12095 CC*)
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12098 if test "$host_cpu" != ia64; then
12099 lt_prog_compiler_pic_CXX='+Z'
12102 aCC*)
12103 lt_prog_compiler_wl_CXX='-Wl,'
12104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105 case $host_cpu in
12106 hppa*64*|ia64*)
12107 # +Z the default
12110 lt_prog_compiler_pic_CXX='+Z'
12112 esac
12116 esac
12118 interix*)
12119 # This is c89, which is MS Visual C++ (no shared libs)
12120 # Anyone wants to do a port?
12122 irix5* | irix6* | nonstopux*)
12123 case $cc_basename in
12124 CC*)
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_static_CXX='-non_shared'
12127 # CC pic flag -KPIC is the default.
12131 esac
12133 linux*)
12134 case $cc_basename in
12135 KCC*)
12136 # KAI C++ Compiler
12137 lt_prog_compiler_wl_CXX='--backend -Wl,'
12138 lt_prog_compiler_pic_CXX='-fPIC'
12140 icpc* | ecpc*)
12141 # Intel C++
12142 lt_prog_compiler_wl_CXX='-Wl,'
12143 lt_prog_compiler_pic_CXX='-KPIC'
12144 lt_prog_compiler_static_CXX='-static'
12146 pgCC*)
12147 # Portland Group C++ compiler.
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 lt_prog_compiler_pic_CXX='-fpic'
12150 lt_prog_compiler_static_CXX='-Bstatic'
12152 cxx*)
12153 # Compaq C++
12154 # Make sure the PIC flag is empty. It appears that all Alpha
12155 # Linux and Compaq Tru64 Unix objects are PIC.
12156 lt_prog_compiler_pic_CXX=
12157 lt_prog_compiler_static_CXX='-non_shared'
12161 esac
12163 lynxos*)
12165 m88k*)
12167 mvs*)
12168 case $cc_basename in
12169 cxx*)
12170 lt_prog_compiler_pic_CXX='-W c,exportall'
12174 esac
12176 netbsd*)
12178 osf3* | osf4* | osf5*)
12179 case $cc_basename in
12180 KCC*)
12181 lt_prog_compiler_wl_CXX='--backend -Wl,'
12183 RCC*)
12184 # Rational C++ 2.4.1
12185 lt_prog_compiler_pic_CXX='-pic'
12187 cxx*)
12188 # Digital/Compaq C++
12189 lt_prog_compiler_wl_CXX='-Wl,'
12190 # Make sure the PIC flag is empty. It appears that all Alpha
12191 # Linux and Compaq Tru64 Unix objects are PIC.
12192 lt_prog_compiler_pic_CXX=
12193 lt_prog_compiler_static_CXX='-non_shared'
12197 esac
12199 psos*)
12201 solaris*)
12202 case $cc_basename in
12203 CC*)
12204 # Sun C++ 4.2, 5.x and Centerline C++
12205 lt_prog_compiler_pic_CXX='-KPIC'
12206 lt_prog_compiler_static_CXX='-Bstatic'
12207 lt_prog_compiler_wl_CXX='-Qoption ld '
12209 gcx*)
12210 # Green Hills C++ Compiler
12211 lt_prog_compiler_pic_CXX='-PIC'
12215 esac
12217 sunos4*)
12218 case $cc_basename in
12219 CC*)
12220 # Sun C++ 4.x
12221 lt_prog_compiler_pic_CXX='-pic'
12222 lt_prog_compiler_static_CXX='-Bstatic'
12224 lcc*)
12225 # Lucid
12226 lt_prog_compiler_pic_CXX='-pic'
12230 esac
12232 tandem*)
12233 case $cc_basename in
12234 NCC*)
12235 # NonStop-UX NCC 3.20
12236 lt_prog_compiler_pic_CXX='-KPIC'
12240 esac
12242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12243 case $cc_basename in
12244 CC*)
12245 lt_prog_compiler_wl_CXX='-Wl,'
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 lt_prog_compiler_static_CXX='-Bstatic'
12249 esac
12251 vxworks*)
12254 lt_prog_compiler_can_build_shared_CXX=no
12256 esac
12259 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12260 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12263 # Check to make sure the PIC flag actually works.
12265 if test -n "$lt_prog_compiler_pic_CXX"; then
12267 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12269 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12270 $as_echo_n "(cached) " >&6
12271 else
12272 lt_prog_compiler_pic_works_CXX=no
12273 ac_outfile=conftest.$ac_objext
12274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12276 # Insert the option either (1) after the last *FLAGS variable, or
12277 # (2) before a word containing "conftest.", or (3) at the end.
12278 # Note that $ac_compile itself does not contain backslashes and begins
12279 # with a dollar sign (not a hyphen), so the echo should work correctly.
12280 # The option is referenced via a variable to avoid confusing sed.
12281 lt_compile=`echo "$ac_compile" | $SED \
12282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284 -e 's:$: $lt_compiler_flag:'`
12285 (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286 (eval "$lt_compile" 2>conftest.err)
12287 ac_status=$?
12288 cat conftest.err >&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 if (exit $ac_status) && test -s "$ac_outfile"; then
12291 # The compiler can only warn and ignore the option if not recognized
12292 # So say no if there are warnings other than the usual output.
12293 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12296 lt_prog_compiler_pic_works_CXX=yes
12299 $rm conftest*
12302 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12303 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12305 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12306 case $lt_prog_compiler_pic_CXX in
12307 "" | " "*) ;;
12308 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12309 esac
12310 else
12311 lt_prog_compiler_pic_CXX=
12312 lt_prog_compiler_can_build_shared_CXX=no
12316 case $host_os in
12317 # For platforms which do not support PIC, -DPIC is meaningless:
12318 *djgpp*)
12319 lt_prog_compiler_pic_CXX=
12322 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12324 esac
12327 # Check to make sure the static flag actually works.
12329 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12330 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12332 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12334 else
12335 lt_prog_compiler_static_works_CXX=no
12336 save_LDFLAGS="$LDFLAGS"
12337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12338 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12340 # The linker can only warn and ignore the option if not recognized
12341 # So say no if there are warnings
12342 if test -s conftest.err; then
12343 # Append any errors to the config.log.
12344 cat conftest.err 1>&5
12345 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12347 if diff conftest.exp conftest.er2 >/dev/null; then
12348 lt_prog_compiler_static_works_CXX=yes
12350 else
12351 lt_prog_compiler_static_works_CXX=yes
12354 $rm conftest*
12355 LDFLAGS="$save_LDFLAGS"
12358 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12359 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12361 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12363 else
12364 lt_prog_compiler_static_CXX=
12368 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12370 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12372 else
12373 lt_cv_prog_compiler_c_o_CXX=no
12374 $rm -r conftest 2>/dev/null
12375 mkdir conftest
12376 cd conftest
12377 mkdir out
12378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12380 lt_compiler_flag="-o out/conftest2.$ac_objext"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 lt_compile=`echo "$ac_compile" | $SED \
12386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388 -e 's:$: $lt_compiler_flag:'`
12389 (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
12390 (eval "$lt_compile" 2>out/conftest.err)
12391 ac_status=$?
12392 cat out/conftest.err >&5
12393 echo "$as_me:12393: \$? = $ac_status" >&5
12394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12395 then
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12401 lt_cv_prog_compiler_c_o_CXX=yes
12404 chmod u+w . 2>&5
12405 $rm conftest*
12406 # SGI C++ compiler will create directory out/ii_files/ for
12407 # template instantiation
12408 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12409 $rm out/* && rmdir out
12410 cd ..
12411 rmdir conftest
12412 $rm conftest*
12415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12416 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12419 hard_links="nottested"
12420 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12421 # do not overwrite the value of need_locks provided by the user
12422 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12423 $as_echo_n "checking if we can lock with hard links... " >&6; }
12424 hard_links=yes
12425 $rm conftest*
12426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12427 touch conftest.a
12428 ln conftest.a conftest.b 2>&5 || hard_links=no
12429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12430 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12431 $as_echo "$hard_links" >&6; }
12432 if test "$hard_links" = no; then
12433 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12435 need_locks=warn
12437 else
12438 need_locks=no
12441 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12444 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12445 case $host_os in
12446 aix4* | aix5*)
12447 # If we're using GNU nm, then we don't want the "-C" option.
12448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12449 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12450 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'
12451 else
12452 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'
12455 pw32*)
12456 export_symbols_cmds_CXX="$ltdll_cmds"
12458 cygwin* | mingw*)
12459 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'
12462 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12464 esac
12466 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12467 $as_echo "$ld_shlibs_CXX" >&6; }
12468 test "$ld_shlibs_CXX" = no && can_build_shared=no
12471 # Do we need to explicitly link libc?
12473 case "x$archive_cmds_need_lc_CXX" in
12474 x|xyes)
12475 # Assume -lc should be added
12476 archive_cmds_need_lc_CXX=yes
12478 if test "$enable_shared" = yes && test "$GCC" = yes; then
12479 case $archive_cmds_CXX in
12480 *'~'*)
12481 # FIXME: we may have to deal with multi-command sequences.
12483 '$CC '*)
12484 # Test whether the compiler implicitly links with -lc since on some
12485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12486 # to ld, don't add -lc before -lgcc.
12487 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12489 $rm conftest*
12490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>&5
12494 ac_status=$?
12495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } 2>conftest.err; then
12497 soname=conftest
12498 lib=conftest
12499 libobjs=conftest.$ac_objext
12500 deplibs=
12501 wl=$lt_prog_compiler_wl_CXX
12502 pic_flag=$lt_prog_compiler_pic_CXX
12503 compiler_flags=-v
12504 linker_flags=-v
12505 verstring=
12506 output_objdir=.
12507 libname=conftest
12508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12509 allow_undefined_flag_CXX=
12510 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12511 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12512 ac_status=$?
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }
12515 then
12516 archive_cmds_need_lc_CXX=no
12517 else
12518 archive_cmds_need_lc_CXX=yes
12520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12521 else
12522 cat conftest.err 1>&5
12524 $rm conftest*
12525 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12526 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12528 esac
12531 esac
12533 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12535 library_names_spec=
12536 libname_spec='lib$name'
12537 soname_spec=
12538 shrext_cmds=".so"
12539 postinstall_cmds=
12540 postuninstall_cmds=
12541 finish_cmds=
12542 finish_eval=
12543 shlibpath_var=
12544 shlibpath_overrides_runpath=unknown
12545 version_type=none
12546 dynamic_linker="$host_os ld.so"
12547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12548 if test "$GCC" = yes; then
12549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12550 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12551 # if the path contains ";" then we assume it to be the separator
12552 # otherwise default to the standard path separator (i.e. ":") - it is
12553 # assumed that no part of a normal pathname contains ";" but that should
12554 # okay in the real world where ";" in dirpaths is itself problematic.
12555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12556 else
12557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12559 else
12560 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12562 need_lib_prefix=unknown
12563 hardcode_into_libs=no
12565 # when you set need_version to no, make sure it does not cause -set_version
12566 # flags to be left without arguments
12567 need_version=unknown
12569 case $host_os in
12570 aix3*)
12571 version_type=linux
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12573 shlibpath_var=LIBPATH
12575 # AIX 3 has no versioning support, so we append a major version to the name.
12576 soname_spec='${libname}${release}${shared_ext}$major'
12579 aix4* | aix5*)
12580 version_type=linux
12581 need_lib_prefix=no
12582 need_version=no
12583 hardcode_into_libs=yes
12584 if test "$host_cpu" = ia64; then
12585 # AIX 5 supports IA64
12586 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 else
12589 # With GCC up to 2.95.x, collect2 would create an import file
12590 # for dependence libraries. The import file would start with
12591 # the line `#! .'. This would cause the generated library to
12592 # depend on `.', always an invalid library. This was fixed in
12593 # development snapshots of GCC prior to 3.0.
12594 case $host_os in
12595 aix4 | aix4.[01] | aix4.[01].*)
12596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12597 echo ' yes '
12598 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12600 else
12601 can_build_shared=no
12604 esac
12605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12606 # soname into executable. Probably we can add versioning support to
12607 # collect2, so additional links can be useful in future.
12608 if test "$aix_use_runtimelinking" = yes; then
12609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12610 # instead of lib<name>.a to let people know that these are not
12611 # typical AIX shared libraries.
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12613 else
12614 # We preserve .a as extension for shared libraries through AIX4.2
12615 # and later when we are not doing run time linking.
12616 library_names_spec='${libname}${release}.a $libname.a'
12617 soname_spec='${libname}${release}${shared_ext}$major'
12619 shlibpath_var=LIBPATH
12623 amigaos*)
12624 library_names_spec='$libname.ixlibrary $libname.a'
12625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12626 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'
12629 beos*)
12630 library_names_spec='${libname}${shared_ext}'
12631 dynamic_linker="$host_os ld.so"
12632 shlibpath_var=LIBRARY_PATH
12635 bsdi[45]*)
12636 version_type=linux
12637 need_version=no
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12643 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12644 # the default ld.so.conf also contains /usr/contrib/lib and
12645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12646 # libtool to hard-code these into programs
12649 cygwin* | mingw* | pw32*)
12650 version_type=windows
12651 shrext_cmds=".dll"
12652 need_version=no
12653 need_lib_prefix=no
12655 case $GCC,$host_os in
12656 yes,cygwin* | yes,mingw* | yes,pw32*)
12657 library_names_spec='$libname.dll.a'
12658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12659 postinstall_cmds='base_file=`basename \${file}`~
12660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12661 dldir=$destdir/`dirname \$dlpath`~
12662 test -d \$dldir || mkdir -p \$dldir~
12663 $install_prog $dir/$dlname \$dldir/$dlname~
12664 chmod a+x \$dldir/$dlname'
12665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12666 dlpath=$dir/\$dldll~
12667 $rm \$dlpath'
12668 shlibpath_overrides_runpath=yes
12670 case $host_os in
12671 cygwin*)
12672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12674 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12676 mingw*)
12677 # MinGW DLLs use traditional 'lib' prefix
12678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12681 # It is most probably a Windows format PATH printed by
12682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12683 # path with ; separators, and with drive letters. We can handle the
12684 # drive letters (cygwin fileutils understands them), so leave them,
12685 # especially as we might pass files found there to a mingw objdump,
12686 # which wouldn't understand a cygwinified path. Ahh.
12687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12688 else
12689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12692 pw32*)
12693 # pw32 DLLs use 'pw' prefix rather than 'lib'
12694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12696 esac
12700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12702 esac
12703 dynamic_linker='Win32 ld.exe'
12704 # FIXME: first we should search . and the directory the executable is in
12705 shlibpath_var=PATH
12708 darwin* | rhapsody*)
12709 dynamic_linker="$host_os dyld"
12710 version_type=darwin
12711 need_lib_prefix=no
12712 need_version=no
12713 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12714 soname_spec='${libname}${release}${major}$shared_ext'
12715 shlibpath_overrides_runpath=yes
12716 shlibpath_var=DYLD_LIBRARY_PATH
12717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12719 if test "$GCC" = yes; then
12720 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12721 else
12722 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12724 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12727 dgux*)
12728 version_type=linux
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12736 freebsd1*)
12737 dynamic_linker=no
12740 kfreebsd*-gnu)
12741 version_type=linux
12742 need_lib_prefix=no
12743 need_version=no
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12745 soname_spec='${libname}${release}${shared_ext}$major'
12746 shlibpath_var=LD_LIBRARY_PATH
12747 shlibpath_overrides_runpath=no
12748 hardcode_into_libs=yes
12749 dynamic_linker='GNU ld.so'
12752 freebsd* | dragonfly*)
12753 # DragonFly does not have aout. When/if they implement a new
12754 # versioning mechanism, adjust this.
12755 if test -x /usr/bin/objformat; then
12756 objformat=`/usr/bin/objformat`
12757 else
12758 case $host_os in
12759 freebsd[123]*) objformat=aout ;;
12760 *) objformat=elf ;;
12761 esac
12763 version_type=freebsd-$objformat
12764 case $version_type in
12765 freebsd-elf*)
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12767 need_version=no
12768 need_lib_prefix=no
12770 freebsd-*)
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12772 need_version=yes
12774 esac
12775 shlibpath_var=LD_LIBRARY_PATH
12776 case $host_os in
12777 freebsd2*)
12778 shlibpath_overrides_runpath=yes
12780 freebsd3.[01]* | freebsdelf3.[01]*)
12781 shlibpath_overrides_runpath=yes
12782 hardcode_into_libs=yes
12784 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12785 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12786 shlibpath_overrides_runpath=no
12787 hardcode_into_libs=yes
12789 freebsd*) # from 4.6 on
12790 shlibpath_overrides_runpath=yes
12791 hardcode_into_libs=yes
12793 esac
12796 gnu*)
12797 version_type=linux
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 hardcode_into_libs=yes
12806 hpux9* | hpux10* | hpux11*)
12807 # Give a soname corresponding to the major version so that dld.sl refuses to
12808 # link against other versions.
12809 version_type=sunos
12810 need_lib_prefix=no
12811 need_version=no
12812 case $host_cpu in
12813 ia64*)
12814 shrext_cmds='.so'
12815 hardcode_into_libs=yes
12816 dynamic_linker="$host_os dld.so"
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 if test "X$HPUX_IA64_MODE" = X32; then
12822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12823 else
12824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12828 hppa*64*)
12829 shrext_cmds='.sl'
12830 hardcode_into_libs=yes
12831 dynamic_linker="$host_os dld.sl"
12832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12840 shrext_cmds='.sl'
12841 dynamic_linker="$host_os dld.sl"
12842 shlibpath_var=SHLIB_PATH
12843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12847 esac
12848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12849 postinstall_cmds='chmod 555 $lib'
12852 interix3*)
12853 version_type=linux
12854 need_lib_prefix=no
12855 need_version=no
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=no
12861 hardcode_into_libs=yes
12864 irix5* | irix6* | nonstopux*)
12865 case $host_os in
12866 nonstopux*) version_type=nonstopux ;;
12868 if test "$lt_cv_prog_gnu_ld" = yes; then
12869 version_type=linux
12870 else
12871 version_type=irix
12872 fi ;;
12873 esac
12874 need_lib_prefix=no
12875 need_version=no
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12878 case $host_os in
12879 irix5* | nonstopux*)
12880 libsuff= shlibsuff=
12883 case $LD in # libtool.m4 will add one of these switches to LD
12884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12885 libsuff= shlibsuff= libmagic=32-bit;;
12886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12887 libsuff=32 shlibsuff=N32 libmagic=N32;;
12888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12890 *) libsuff= shlibsuff= libmagic=never-match;;
12891 esac
12893 esac
12894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12895 shlibpath_overrides_runpath=no
12896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12898 hardcode_into_libs=yes
12901 # No shared lib support for Linux oldld, aout, or coff.
12902 linux*oldld* | linux*aout* | linux*coff*)
12903 dynamic_linker=no
12906 # This must be Linux ELF.
12907 linux*)
12908 version_type=linux
12909 need_lib_prefix=no
12910 need_version=no
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=no
12916 # This implies no fast_install, which is unacceptable.
12917 # Some rework will be needed to allow for fast_install
12918 # before this can be enabled.
12919 hardcode_into_libs=yes
12921 # find out which ABI we are using
12922 libsuff=
12923 case "$host_cpu" in
12924 x86_64*|s390x*|powerpc64*)
12925 echo '#line 12925 "configure"' > conftest.$ac_ext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; then
12931 case `/usr/bin/file conftest.$ac_objext` in
12932 *64-bit*)
12933 libsuff=64
12934 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12936 esac
12938 rm -rf conftest*
12940 esac
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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12945 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
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'
12957 knetbsd*-gnu)
12958 version_type=linux
12959 need_lib_prefix=no
12960 need_version=no
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12962 soname_spec='${libname}${release}${shared_ext}$major'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 shlibpath_overrides_runpath=no
12965 hardcode_into_libs=yes
12966 dynamic_linker='GNU ld.so'
12969 netbsd*)
12970 version_type=sunos
12971 need_lib_prefix=no
12972 need_version=no
12973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12976 dynamic_linker='NetBSD (a.out) ld.so'
12977 else
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 dynamic_linker='NetBSD ld.elf_so'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath=yes
12984 hardcode_into_libs=yes
12987 newsos6)
12988 version_type=linux
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 shlibpath_overrides_runpath=yes
12994 nto-qnx*)
12995 version_type=linux
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=yes
13004 openbsd*)
13005 version_type=sunos
13006 sys_lib_dlsearch_path_spec="/usr/lib"
13007 need_lib_prefix=no
13008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13009 case $host_os in
13010 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13011 *) need_version=no ;;
13012 esac
13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13017 case $host_os in
13018 openbsd2.[89] | openbsd2.[89].*)
13019 shlibpath_overrides_runpath=no
13022 shlibpath_overrides_runpath=yes
13024 esac
13025 else
13026 shlibpath_overrides_runpath=yes
13030 os2*)
13031 libname_spec='$name'
13032 shrext_cmds=".dll"
13033 need_lib_prefix=no
13034 library_names_spec='$libname${shared_ext} $libname.a'
13035 dynamic_linker='OS/2 ld.exe'
13036 shlibpath_var=LIBPATH
13039 osf3* | osf4* | osf5*)
13040 version_type=osf
13041 need_lib_prefix=no
13042 need_version=no
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13050 solaris*)
13051 version_type=linux
13052 need_lib_prefix=no
13053 need_version=no
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 shlibpath_overrides_runpath=yes
13058 hardcode_into_libs=yes
13059 # ldd complains unless libraries are executable
13060 postinstall_cmds='chmod +x $lib'
13063 sunos4*)
13064 version_type=sunos
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath=yes
13069 if test "$with_gnu_ld" = yes; then
13070 need_lib_prefix=no
13072 need_version=yes
13075 sysv4 | sysv4.3*)
13076 version_type=linux
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 case $host_vendor in
13081 sni)
13082 shlibpath_overrides_runpath=no
13083 need_lib_prefix=no
13084 export_dynamic_flag_spec='${wl}-Blargedynsym'
13085 runpath_var=LD_RUN_PATH
13087 siemens)
13088 need_lib_prefix=no
13090 motorola)
13091 need_lib_prefix=no
13092 need_version=no
13093 shlibpath_overrides_runpath=no
13094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13096 esac
13099 sysv4*MP*)
13100 if test -d /usr/nec ;then
13101 version_type=linux
13102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13103 soname_spec='$libname${shared_ext}.$major'
13104 shlibpath_var=LD_LIBRARY_PATH
13108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13109 version_type=freebsd-elf
13110 need_lib_prefix=no
13111 need_version=no
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 hardcode_into_libs=yes
13116 if test "$with_gnu_ld" = yes; then
13117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13118 shlibpath_overrides_runpath=no
13119 else
13120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13121 shlibpath_overrides_runpath=yes
13122 case $host_os in
13123 sco3.2v5*)
13124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13126 esac
13128 sys_lib_dlsearch_path_spec='/usr/lib'
13131 uts4*)
13132 version_type=linux
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13135 shlibpath_var=LD_LIBRARY_PATH
13139 dynamic_linker=no
13141 esac
13142 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13143 $as_echo "$dynamic_linker" >&6; }
13144 test "$dynamic_linker" = no && can_build_shared=no
13146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13147 if test "$GCC" = yes; then
13148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13151 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13153 hardcode_action_CXX=
13154 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13155 test -n "$runpath_var_CXX" || \
13156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13158 # We can hardcode non-existant directories.
13159 if test "$hardcode_direct_CXX" != no &&
13160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13161 # have to relink, otherwise we might link with an installed library
13162 # when we should be linking with a yet-to-be-installed one
13163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13164 test "$hardcode_minus_L_CXX" != no; then
13165 # Linking always hardcodes the temporary library directory.
13166 hardcode_action_CXX=relink
13167 else
13168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13169 hardcode_action_CXX=immediate
13171 else
13172 # We cannot hardcode anything, or else we can only hardcode existing
13173 # directories.
13174 hardcode_action_CXX=unsupported
13176 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13177 $as_echo "$hardcode_action_CXX" >&6; }
13179 if test "$hardcode_action_CXX" = relink; then
13180 # Fast installation is not supported
13181 enable_fast_install=no
13182 elif test "$shlibpath_overrides_runpath" = yes ||
13183 test "$enable_shared" = no; then
13184 # Fast installation is not necessary
13185 enable_fast_install=needless
13189 # The else clause should only fire when bootstrapping the
13190 # libtool distribution, otherwise you forgot to ship ltmain.sh
13191 # with your package, and you will get complaints that there are
13192 # no rules to generate ltmain.sh.
13193 if test -f "$ltmain"; then
13194 # See if we are running on zsh, and set the options which allow our commands through
13195 # without removal of \ escapes.
13196 if test -n "${ZSH_VERSION+set}" ; then
13197 setopt NO_GLOB_SUBST
13199 # Now quote all the things that may contain metacharacters while being
13200 # careful not to overquote the AC_SUBSTed values. We take copies of the
13201 # variables and quote the copies for generation of the libtool script.
13202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13203 SED SHELL STRIP \
13204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13206 deplibs_check_method reload_flag reload_cmds need_locks \
13207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13208 lt_cv_sys_global_symbol_to_c_name_address \
13209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13210 old_postinstall_cmds old_postuninstall_cmds \
13211 compiler_CXX \
13212 CC_CXX \
13213 LD_CXX \
13214 lt_prog_compiler_wl_CXX \
13215 lt_prog_compiler_pic_CXX \
13216 lt_prog_compiler_static_CXX \
13217 lt_prog_compiler_no_builtin_flag_CXX \
13218 export_dynamic_flag_spec_CXX \
13219 thread_safe_flag_spec_CXX \
13220 whole_archive_flag_spec_CXX \
13221 enable_shared_with_static_runtimes_CXX \
13222 old_archive_cmds_CXX \
13223 old_archive_from_new_cmds_CXX \
13224 predep_objects_CXX \
13225 postdep_objects_CXX \
13226 predeps_CXX \
13227 postdeps_CXX \
13228 compiler_lib_search_path_CXX \
13229 archive_cmds_CXX \
13230 archive_expsym_cmds_CXX \
13231 postinstall_cmds_CXX \
13232 postuninstall_cmds_CXX \
13233 old_archive_from_expsyms_cmds_CXX \
13234 allow_undefined_flag_CXX \
13235 no_undefined_flag_CXX \
13236 export_symbols_cmds_CXX \
13237 hardcode_libdir_flag_spec_CXX \
13238 hardcode_libdir_flag_spec_ld_CXX \
13239 hardcode_libdir_separator_CXX \
13240 hardcode_automatic_CXX \
13241 module_cmds_CXX \
13242 module_expsym_cmds_CXX \
13243 lt_cv_prog_compiler_c_o_CXX \
13244 exclude_expsyms_CXX \
13245 include_expsyms_CXX; do
13247 case $var in
13248 old_archive_cmds_CXX | \
13249 old_archive_from_new_cmds_CXX | \
13250 archive_cmds_CXX | \
13251 archive_expsym_cmds_CXX | \
13252 module_cmds_CXX | \
13253 module_expsym_cmds_CXX | \
13254 old_archive_from_expsyms_cmds_CXX | \
13255 export_symbols_cmds_CXX | \
13256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13257 postinstall_cmds | postuninstall_cmds | \
13258 old_postinstall_cmds | old_postuninstall_cmds | \
13259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13260 # Double-quote double-evaled strings.
13261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13266 esac
13267 done
13269 case $lt_echo in
13270 *'\$0 --fallback-echo"')
13271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13273 esac
13275 cfgfile="$ofile"
13277 cat <<__EOF__ >> "$cfgfile"
13278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13282 # Shell to use when invoking shell scripts.
13283 SHELL=$lt_SHELL
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13288 # Whether or not to build static libraries.
13289 build_old_libs=$enable_static
13291 # Whether or not to add -lc for building shared libraries.
13292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13294 # Whether or not to disallow shared libs when runtime libs are static
13295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13297 # Whether or not to optimize for fast installation.
13298 fast_install=$enable_fast_install
13300 # The host system.
13301 host_alias=$host_alias
13302 host=$host
13303 host_os=$host_os
13305 # The build system.
13306 build_alias=$build_alias
13307 build=$build
13308 build_os=$build_os
13310 # An echo program that does not interpret backslashes.
13311 echo=$lt_echo
13313 # The archiver.
13314 AR=$lt_AR
13315 AR_FLAGS=$lt_AR_FLAGS
13317 # A C compiler.
13318 LTCC=$lt_LTCC
13320 # LTCC compiler flags.
13321 LTCFLAGS=$lt_LTCFLAGS
13323 # A language-specific compiler.
13324 CC=$lt_compiler_CXX
13326 # Is the compiler the GNU C compiler?
13327 with_gcc=$GCC_CXX
13329 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13330 gcc_ver=\`gcc -dumpversion\`
13332 # An ERE matcher.
13333 EGREP=$lt_EGREP
13335 # The linker used to build libraries.
13336 LD=$lt_LD_CXX
13338 # Whether we need hard or soft links.
13339 LN_S=$lt_LN_S
13341 # A BSD-compatible nm program.
13342 NM=$lt_NM
13344 # A symbol stripping program
13345 STRIP=$lt_STRIP
13347 # Used to examine libraries when file_magic_cmd begins "file"
13348 MAGIC_CMD=$MAGIC_CMD
13350 # Used on cygwin: DLL creation program.
13351 DLLTOOL="$DLLTOOL"
13353 # Used on cygwin: object dumper.
13354 OBJDUMP="$OBJDUMP"
13356 # Used on cygwin: assembler.
13357 AS="$AS"
13359 # The name of the directory that contains temporary libtool files.
13360 objdir=$objdir
13362 # How to create reloadable object files.
13363 reload_flag=$lt_reload_flag
13364 reload_cmds=$lt_reload_cmds
13366 # How to pass a linker flag through the compiler.
13367 wl=$lt_lt_prog_compiler_wl_CXX
13369 # Object file suffix (normally "o").
13370 objext="$ac_objext"
13372 # Old archive suffix (normally "a").
13373 libext="$libext"
13375 # Shared library suffix (normally ".so").
13376 shrext_cmds='$shrext_cmds'
13378 # Executable file suffix (normally "").
13379 exeext="$exeext"
13381 # Additional compiler flags for building library objects.
13382 pic_flag=$lt_lt_prog_compiler_pic_CXX
13383 pic_mode=$pic_mode
13385 # What is the maximum length of a command?
13386 max_cmd_len=$lt_cv_sys_max_cmd_len
13388 # Does compiler simultaneously support -c and -o options?
13389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13394 # Do we need the lib prefix for modules?
13395 need_lib_prefix=$need_lib_prefix
13397 # Do we need a version for libraries?
13398 need_version=$need_version
13400 # Whether dlopen is supported.
13401 dlopen_support=$enable_dlopen
13403 # Whether dlopen of programs is supported.
13404 dlopen_self=$enable_dlopen_self
13406 # Whether dlopen of statically linked programs is supported.
13407 dlopen_self_static=$enable_dlopen_self_static
13409 # Compiler flag to prevent dynamic linking.
13410 link_static_flag=$lt_lt_prog_compiler_static_CXX
13412 # Compiler flag to turn off builtin functions.
13413 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13415 # Compiler flag to allow reflexive dlopens.
13416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13418 # Compiler flag to generate shared objects directly from archives.
13419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13421 # Compiler flag to generate thread-safe objects.
13422 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13424 # Library versioning type.
13425 version_type=$version_type
13427 # Format of library name prefix.
13428 libname_spec=$lt_libname_spec
13430 # List of archive names. First name is the real one, the rest are links.
13431 # The last name is the one that the linker finds with -lNAME.
13432 library_names_spec=$lt_library_names_spec
13434 # The coded name of the library, if different from the real name.
13435 soname_spec=$lt_soname_spec
13437 # Commands used to build and install an old-style archive.
13438 RANLIB=$lt_RANLIB
13439 old_archive_cmds=$lt_old_archive_cmds_CXX
13440 old_postinstall_cmds=$lt_old_postinstall_cmds
13441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13443 # Create an old-style archive from a shared archive.
13444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13446 # Create a temporary old-style archive to link instead of a shared archive.
13447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13449 # Commands used to build and install a shared archive.
13450 archive_cmds=$lt_archive_cmds_CXX
13451 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13452 postinstall_cmds=$lt_postinstall_cmds
13453 postuninstall_cmds=$lt_postuninstall_cmds
13455 # Commands used to build a loadable module (assumed same as above if empty)
13456 module_cmds=$lt_module_cmds_CXX
13457 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13459 # Commands to strip libraries.
13460 old_striplib=$lt_old_striplib
13461 striplib=$lt_striplib
13463 # Dependencies to place before the objects being linked to create a
13464 # shared library.
13465 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13467 # Dependencies to place after the objects being linked to create a
13468 # shared library.
13469 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13471 # Dependencies to place before the objects being linked to create a
13472 # shared library.
13473 predeps=$lt_predeps_CXX
13475 # Dependencies to place after the objects being linked to create a
13476 # shared library.
13477 postdeps=$lt_postdeps_CXX
13479 # The library search path used internally by the compiler when linking
13480 # a shared library.
13481 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13483 # Method to check whether dependent libraries are shared objects.
13484 deplibs_check_method=$lt_deplibs_check_method
13486 # Command to use when deplibs_check_method == file_magic.
13487 file_magic_cmd=$lt_file_magic_cmd
13489 # Flag that allows shared libraries with undefined symbols to be built.
13490 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13492 # Flag that forces no undefined symbols.
13493 no_undefined_flag=$lt_no_undefined_flag_CXX
13495 # Commands used to finish a libtool library installation in a directory.
13496 finish_cmds=$lt_finish_cmds
13498 # Same as above, but a single script fragment to be evaled but not shown.
13499 finish_eval=$lt_finish_eval
13501 # Take the output of nm and produce a listing of raw symbols and C names.
13502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13504 # Transform the output of nm in a proper C declaration
13505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13507 # Transform the output of nm in a C name address pair
13508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13510 # This is the shared library runtime path variable.
13511 runpath_var=$runpath_var
13513 # This is the shared library path variable.
13514 shlibpath_var=$shlibpath_var
13516 # Is shlibpath searched before the hard-coded library search path?
13517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13519 # How to hardcode a shared library path into an executable.
13520 hardcode_action=$hardcode_action_CXX
13522 # Whether we should hardcode library paths into libraries.
13523 hardcode_into_libs=$hardcode_into_libs
13525 # Flag to hardcode \$libdir into a binary during linking.
13526 # This must work even if \$libdir does not exist.
13527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13529 # If ld is used when linking, flag to hardcode \$libdir into
13530 # a binary during linking. This must work even if \$libdir does
13531 # not exist.
13532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13534 # Whether we need a single -rpath flag with a separated argument.
13535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13537 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13538 # resulting binary.
13539 hardcode_direct=$hardcode_direct_CXX
13541 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13542 # resulting binary.
13543 hardcode_minus_L=$hardcode_minus_L_CXX
13545 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13546 # the resulting binary.
13547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13549 # Set to yes if building a shared library automatically hardcodes DIR into the library
13550 # and all subsequent libraries and executables linked against it.
13551 hardcode_automatic=$hardcode_automatic_CXX
13553 # Variables whose values should be saved in libtool wrapper scripts and
13554 # restored at relink time.
13555 variables_saved_for_relink="$variables_saved_for_relink"
13557 # Whether libtool must link a program against all its dependency libraries.
13558 link_all_deplibs=$link_all_deplibs_CXX
13560 # Compile-time system search path for libraries
13561 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13563 # Run-time system search path for libraries
13564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13566 # Fix the shell variable \$srcfile for the compiler.
13567 fix_srcfile_path="$fix_srcfile_path_CXX"
13569 # Set to yes if exported symbols are required.
13570 always_export_symbols=$always_export_symbols_CXX
13572 # The commands to list exported symbols.
13573 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13575 # The commands to extract the exported symbol list from a shared archive.
13576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13578 # Symbols that should not be listed in the preloaded symbols.
13579 exclude_expsyms=$lt_exclude_expsyms_CXX
13581 # Symbols that must always be exported.
13582 include_expsyms=$lt_include_expsyms_CXX
13584 # ### END LIBTOOL TAG CONFIG: $tagname
13586 __EOF__
13589 else
13590 # If there is no Makefile yet, we rely on a make rule to execute
13591 # `config.status --recheck' to rerun these tests and create the
13592 # libtool script then.
13593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13594 if test -f "$ltmain_in"; then
13595 test -f Makefile && make "$ltmain"
13600 ac_ext=c
13601 ac_cpp='$CPP $CPPFLAGS'
13602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13606 CC=$lt_save_CC
13607 LDCXX=$LD
13608 LD=$lt_save_LD
13609 GCC=$lt_save_GCC
13610 with_gnu_ldcxx=$with_gnu_ld
13611 with_gnu_ld=$lt_save_with_gnu_ld
13612 lt_cv_path_LDCXX=$lt_cv_path_LD
13613 lt_cv_path_LD=$lt_save_path_LD
13614 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13615 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13617 else
13618 tagname=""
13622 F77)
13623 if test -n "$F77" && test "X$F77" != "Xno"; then
13625 ac_ext=f
13626 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13627 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13631 archive_cmds_need_lc_F77=no
13632 allow_undefined_flag_F77=
13633 always_export_symbols_F77=no
13634 archive_expsym_cmds_F77=
13635 export_dynamic_flag_spec_F77=
13636 hardcode_direct_F77=no
13637 hardcode_libdir_flag_spec_F77=
13638 hardcode_libdir_flag_spec_ld_F77=
13639 hardcode_libdir_separator_F77=
13640 hardcode_minus_L_F77=no
13641 hardcode_automatic_F77=no
13642 module_cmds_F77=
13643 module_expsym_cmds_F77=
13644 link_all_deplibs_F77=unknown
13645 old_archive_cmds_F77=$old_archive_cmds
13646 no_undefined_flag_F77=
13647 whole_archive_flag_spec_F77=
13648 enable_shared_with_static_runtimes_F77=no
13650 # Source file extension for f77 test sources.
13651 ac_ext=f
13653 # Object file extension for compiled f77 test sources.
13654 objext=o
13655 objext_F77=$objext
13657 # Code to be used in simple compile tests
13658 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13660 # Code to be used in simple link tests
13661 lt_simple_link_test_code=" program t\n end\n"
13663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13665 # If no C compiler was specified, use CC.
13666 LTCC=${LTCC-"$CC"}
13668 # If no C compiler flags were specified, use CFLAGS.
13669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13671 # Allow CC to be a program name with arguments.
13672 compiler=$CC
13675 # save warnings/boilerplate of simple test code
13676 ac_outfile=conftest.$ac_objext
13677 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13679 _lt_compiler_boilerplate=`cat conftest.err`
13680 $rm conftest*
13682 ac_outfile=conftest.$ac_objext
13683 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13685 _lt_linker_boilerplate=`cat conftest.err`
13686 $rm conftest*
13689 # Allow CC to be a program name with arguments.
13690 lt_save_CC="$CC"
13691 CC=${F77-"f77"}
13692 compiler=$CC
13693 compiler_F77=$CC
13694 for cc_temp in $compiler""; do
13695 case $cc_temp in
13696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13698 \-*) ;;
13699 *) break;;
13700 esac
13701 done
13702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13705 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13706 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13707 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13708 $as_echo "$can_build_shared" >&6; }
13710 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13711 $as_echo_n "checking whether to build shared libraries... " >&6; }
13712 test "$can_build_shared" = "no" && enable_shared=no
13714 # On AIX, shared libraries and static libraries use the same namespace, and
13715 # are all built from PIC.
13716 case $host_os in
13717 aix3*)
13718 test "$enable_shared" = yes && enable_static=no
13719 if test -n "$RANLIB"; then
13720 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13721 postinstall_cmds='$RANLIB $lib'
13724 aix4* | aix5*)
13725 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13726 test "$enable_shared" = yes && enable_static=no
13729 esac
13730 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13731 $as_echo "$enable_shared" >&6; }
13733 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13734 $as_echo_n "checking whether to build static libraries... " >&6; }
13735 # Make sure either enable_shared or enable_static is yes.
13736 test "$enable_shared" = yes || enable_static=yes
13737 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13738 $as_echo "$enable_static" >&6; }
13740 GCC_F77="$G77"
13741 LD_F77="$LD"
13743 lt_prog_compiler_wl_F77=
13744 lt_prog_compiler_pic_F77=
13745 lt_prog_compiler_static_F77=
13747 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13750 if test "$GCC" = yes; then
13751 lt_prog_compiler_wl_F77='-Wl,'
13752 lt_prog_compiler_static_F77='-static'
13754 case $host_os in
13755 aix*)
13756 # All AIX code is PIC.
13757 if test "$host_cpu" = ia64; then
13758 # AIX 5 now supports IA64 processor
13759 lt_prog_compiler_static_F77='-Bstatic'
13763 amigaos*)
13764 # FIXME: we need at least 68020 code to build shared libraries, but
13765 # adding the `-m68020' flag to GCC prevents building anything better,
13766 # like `-m68040'.
13767 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13770 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13771 # PIC is the default for these OSes.
13774 mingw* | pw32* | os2*)
13775 # This hack is so that the source file can tell whether it is being
13776 # built for inclusion in a dll (and should export symbols for example).
13777 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13780 darwin* | rhapsody*)
13781 # PIC is the default on this platform
13782 # Common symbols not allowed in MH_DYLIB files
13783 lt_prog_compiler_pic_F77='-fno-common'
13786 interix3*)
13787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13788 # Instead, we relocate shared libraries at runtime.
13791 msdosdjgpp*)
13792 # Just because we use GCC doesn't mean we suddenly get shared libraries
13793 # on systems that don't support them.
13794 lt_prog_compiler_can_build_shared_F77=no
13795 enable_shared=no
13798 sysv4*MP*)
13799 if test -d /usr/nec; then
13800 lt_prog_compiler_pic_F77=-Kconform_pic
13804 hpux*)
13805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13806 # not for PA HP-UX.
13807 case $host_cpu in
13808 hppa*64*|ia64*)
13809 # +Z the default
13812 lt_prog_compiler_pic_F77='-fPIC'
13814 esac
13818 lt_prog_compiler_pic_F77='-fPIC'
13820 esac
13821 else
13822 # PORTME Check for flag to pass linker flags through the system compiler.
13823 case $host_os in
13824 aix*)
13825 lt_prog_compiler_wl_F77='-Wl,'
13826 if test "$host_cpu" = ia64; then
13827 # AIX 5 now supports IA64 processor
13828 lt_prog_compiler_static_F77='-Bstatic'
13829 else
13830 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13833 darwin*)
13834 # PIC is the default on this platform
13835 # Common symbols not allowed in MH_DYLIB files
13836 case $cc_basename in
13837 xlc*)
13838 lt_prog_compiler_pic_F77='-qnocommon'
13839 lt_prog_compiler_wl_F77='-Wl,'
13841 esac
13844 mingw* | pw32* | os2*)
13845 # This hack is so that the source file can tell whether it is being
13846 # built for inclusion in a dll (and should export symbols for example).
13847 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13850 hpux9* | hpux10* | hpux11*)
13851 lt_prog_compiler_wl_F77='-Wl,'
13852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13853 # not for PA HP-UX.
13854 case $host_cpu in
13855 hppa*64*|ia64*)
13856 # +Z the default
13859 lt_prog_compiler_pic_F77='+Z'
13861 esac
13862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13863 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13866 irix5* | irix6* | nonstopux*)
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 # PIC (with -KPIC) is the default.
13869 lt_prog_compiler_static_F77='-non_shared'
13872 newsos6)
13873 lt_prog_compiler_pic_F77='-KPIC'
13874 lt_prog_compiler_static_F77='-Bstatic'
13877 linux*)
13878 case $cc_basename in
13879 icc* | ecc*)
13880 lt_prog_compiler_wl_F77='-Wl,'
13881 lt_prog_compiler_pic_F77='-KPIC'
13882 lt_prog_compiler_static_F77='-static'
13884 pgcc* | pgf77* | pgf90* | pgf95*)
13885 # Portland Group compilers (*not* the Pentium gcc compiler,
13886 # which looks to be a dead project)
13887 lt_prog_compiler_wl_F77='-Wl,'
13888 lt_prog_compiler_pic_F77='-fpic'
13889 lt_prog_compiler_static_F77='-Bstatic'
13891 ccc*)
13892 lt_prog_compiler_wl_F77='-Wl,'
13893 # All Alpha code is PIC.
13894 lt_prog_compiler_static_F77='-non_shared'
13896 esac
13899 osf3* | osf4* | osf5*)
13900 lt_prog_compiler_wl_F77='-Wl,'
13901 # All OSF/1 code is PIC.
13902 lt_prog_compiler_static_F77='-non_shared'
13905 solaris*)
13906 lt_prog_compiler_pic_F77='-KPIC'
13907 lt_prog_compiler_static_F77='-Bstatic'
13908 case $cc_basename in
13909 f77* | f90* | f95*)
13910 lt_prog_compiler_wl_F77='-Qoption ld ';;
13912 lt_prog_compiler_wl_F77='-Wl,';;
13913 esac
13916 sunos4*)
13917 lt_prog_compiler_wl_F77='-Qoption ld '
13918 lt_prog_compiler_pic_F77='-PIC'
13919 lt_prog_compiler_static_F77='-Bstatic'
13922 sysv4 | sysv4.2uw2* | sysv4.3*)
13923 lt_prog_compiler_wl_F77='-Wl,'
13924 lt_prog_compiler_pic_F77='-KPIC'
13925 lt_prog_compiler_static_F77='-Bstatic'
13928 sysv4*MP*)
13929 if test -d /usr/nec ;then
13930 lt_prog_compiler_pic_F77='-Kconform_pic'
13931 lt_prog_compiler_static_F77='-Bstatic'
13935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 lt_prog_compiler_pic_F77='-KPIC'
13938 lt_prog_compiler_static_F77='-Bstatic'
13941 unicos*)
13942 lt_prog_compiler_wl_F77='-Wl,'
13943 lt_prog_compiler_can_build_shared_F77=no
13946 uts4*)
13947 lt_prog_compiler_pic_F77='-pic'
13948 lt_prog_compiler_static_F77='-Bstatic'
13952 lt_prog_compiler_can_build_shared_F77=no
13954 esac
13957 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13958 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13961 # Check to make sure the PIC flag actually works.
13963 if test -n "$lt_prog_compiler_pic_F77"; then
13965 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13967 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13968 $as_echo_n "(cached) " >&6
13969 else
13970 lt_prog_compiler_pic_works_F77=no
13971 ac_outfile=conftest.$ac_objext
13972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13973 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13974 # Insert the option either (1) after the last *FLAGS variable, or
13975 # (2) before a word containing "conftest.", or (3) at the end.
13976 # Note that $ac_compile itself does not contain backslashes and begins
13977 # with a dollar sign (not a hyphen), so the echo should work correctly.
13978 # The option is referenced via a variable to avoid confusing sed.
13979 lt_compile=`echo "$ac_compile" | $SED \
13980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13982 -e 's:$: $lt_compiler_flag:'`
13983 (eval echo "\"\$as_me:13983: $lt_compile\"" >&5)
13984 (eval "$lt_compile" 2>conftest.err)
13985 ac_status=$?
13986 cat conftest.err >&5
13987 echo "$as_me:13987: \$? = $ac_status" >&5
13988 if (exit $ac_status) && test -s "$ac_outfile"; then
13989 # The compiler can only warn and ignore the option if not recognized
13990 # So say no if there are warnings other than the usual output.
13991 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13994 lt_prog_compiler_pic_works_F77=yes
13997 $rm conftest*
14000 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14001 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14003 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14004 case $lt_prog_compiler_pic_F77 in
14005 "" | " "*) ;;
14006 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14007 esac
14008 else
14009 lt_prog_compiler_pic_F77=
14010 lt_prog_compiler_can_build_shared_F77=no
14014 case $host_os in
14015 # For platforms which do not support PIC, -DPIC is meaningless:
14016 *djgpp*)
14017 lt_prog_compiler_pic_F77=
14020 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14022 esac
14025 # Check to make sure the static flag actually works.
14027 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14028 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14029 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14030 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14031 $as_echo_n "(cached) " >&6
14032 else
14033 lt_prog_compiler_static_works_F77=no
14034 save_LDFLAGS="$LDFLAGS"
14035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14036 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14038 # The linker can only warn and ignore the option if not recognized
14039 # So say no if there are warnings
14040 if test -s conftest.err; then
14041 # Append any errors to the config.log.
14042 cat conftest.err 1>&5
14043 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14045 if diff conftest.exp conftest.er2 >/dev/null; then
14046 lt_prog_compiler_static_works_F77=yes
14048 else
14049 lt_prog_compiler_static_works_F77=yes
14052 $rm conftest*
14053 LDFLAGS="$save_LDFLAGS"
14056 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14057 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14059 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14061 else
14062 lt_prog_compiler_static_F77=
14066 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14070 else
14071 lt_cv_prog_compiler_c_o_F77=no
14072 $rm -r conftest 2>/dev/null
14073 mkdir conftest
14074 cd conftest
14075 mkdir out
14076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14078 lt_compiler_flag="-o out/conftest2.$ac_objext"
14079 # Insert the option either (1) after the last *FLAGS variable, or
14080 # (2) before a word containing "conftest.", or (3) at the end.
14081 # Note that $ac_compile itself does not contain backslashes and begins
14082 # with a dollar sign (not a hyphen), so the echo should work correctly.
14083 lt_compile=`echo "$ac_compile" | $SED \
14084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14086 -e 's:$: $lt_compiler_flag:'`
14087 (eval echo "\"\$as_me:14087: $lt_compile\"" >&5)
14088 (eval "$lt_compile" 2>out/conftest.err)
14089 ac_status=$?
14090 cat out/conftest.err >&5
14091 echo "$as_me:14091: \$? = $ac_status" >&5
14092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14093 then
14094 # The compiler can only warn and ignore the option if not recognized
14095 # So say no if there are warnings
14096 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14099 lt_cv_prog_compiler_c_o_F77=yes
14102 chmod u+w . 2>&5
14103 $rm conftest*
14104 # SGI C++ compiler will create directory out/ii_files/ for
14105 # template instantiation
14106 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14107 $rm out/* && rmdir out
14108 cd ..
14109 rmdir conftest
14110 $rm conftest*
14113 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14114 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14117 hard_links="nottested"
14118 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14119 # do not overwrite the value of need_locks provided by the user
14120 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14121 $as_echo_n "checking if we can lock with hard links... " >&6; }
14122 hard_links=yes
14123 $rm conftest*
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 touch conftest.a
14126 ln conftest.a conftest.b 2>&5 || hard_links=no
14127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14128 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14129 $as_echo "$hard_links" >&6; }
14130 if test "$hard_links" = no; then
14131 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14132 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14133 need_locks=warn
14135 else
14136 need_locks=no
14139 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14142 runpath_var=
14143 allow_undefined_flag_F77=
14144 enable_shared_with_static_runtimes_F77=no
14145 archive_cmds_F77=
14146 archive_expsym_cmds_F77=
14147 old_archive_From_new_cmds_F77=
14148 old_archive_from_expsyms_cmds_F77=
14149 export_dynamic_flag_spec_F77=
14150 whole_archive_flag_spec_F77=
14151 thread_safe_flag_spec_F77=
14152 hardcode_libdir_flag_spec_F77=
14153 hardcode_libdir_flag_spec_ld_F77=
14154 hardcode_libdir_separator_F77=
14155 hardcode_direct_F77=no
14156 hardcode_minus_L_F77=no
14157 hardcode_shlibpath_var_F77=unsupported
14158 link_all_deplibs_F77=unknown
14159 hardcode_automatic_F77=no
14160 module_cmds_F77=
14161 module_expsym_cmds_F77=
14162 always_export_symbols_F77=no
14163 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164 # include_expsyms should be a list of space-separated symbols to be *always*
14165 # included in the symbol list
14166 include_expsyms_F77=
14167 # exclude_expsyms can be an extended regexp of symbols to exclude
14168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14170 # as well as any symbol that contains `d'.
14171 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14173 # platforms (ab)use it in PIC code, but their linkers get confused if
14174 # the symbol is explicitly referenced. Since portable code cannot
14175 # rely on this symbol name, it's probably fine to never include it in
14176 # preloaded symbol tables.
14177 extract_expsyms_cmds=
14178 # Just being paranoid about ensuring that cc_basename is set.
14179 for cc_temp in $compiler""; do
14180 case $cc_temp in
14181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14183 \-*) ;;
14184 *) break;;
14185 esac
14186 done
14187 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14189 case $host_os in
14190 cygwin* | mingw* | pw32*)
14191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 if test "$GCC" != yes; then
14195 with_gnu_ld=no
14198 interix*)
14199 # we just hope/assume this is gcc and not c89 (= MSVC++)
14200 with_gnu_ld=yes
14202 openbsd*)
14203 with_gnu_ld=no
14205 esac
14207 ld_shlibs_F77=yes
14208 if test "$with_gnu_ld" = yes; then
14209 # If archive_cmds runs LD, not CC, wlarc should be empty
14210 wlarc='${wl}'
14212 # Set some defaults for GNU ld with shared library support. These
14213 # are reset later if shared libraries are not supported. Putting them
14214 # here allows them to be overridden if necessary.
14215 runpath_var=LD_RUN_PATH
14216 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14217 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14218 # ancient GNU ld didn't support --whole-archive et. al.
14219 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14220 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14221 else
14222 whole_archive_flag_spec_F77=
14224 supports_anon_versioning=no
14225 case `$LD -v 2>/dev/null` in
14226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14229 *\ 2.11.*) ;; # other 2.11 versions
14230 *) supports_anon_versioning=yes ;;
14231 esac
14233 # See if GNU ld supports shared libraries.
14234 case $host_os in
14235 aix3* | aix4* | aix5*)
14236 # On AIX/PPC, the GNU linker is very broken
14237 if test "$host_cpu" != ia64; then
14238 ld_shlibs_F77=no
14239 cat <<EOF 1>&2
14241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14242 *** to be unable to reliably create shared libraries on AIX.
14243 *** Therefore, libtool is disabling shared libraries support. If you
14244 *** really care for shared libraries, you may want to modify your PATH
14245 *** so that a non-GNU linker is found, and then restart.
14251 amigaos*)
14252 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)'
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 hardcode_minus_L_F77=yes
14256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14257 # that the semantics of dynamic libraries on AmigaOS, at least up
14258 # to version 4, is to share data among multiple programs linked
14259 # with the same dynamic library. Since this doesn't match the
14260 # behavior of shared libraries on other platforms, we can't use
14261 # them.
14262 ld_shlibs_F77=no
14265 beos*)
14266 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14267 allow_undefined_flag_F77=unsupported
14268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14269 # support --undefined. This deserves some investigation. FIXME
14270 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14271 else
14272 ld_shlibs_F77=no
14276 cygwin* | mingw* | pw32*)
14277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14278 # as there is no search path for DLLs.
14279 hardcode_libdir_flag_spec_F77='-L$libdir'
14280 allow_undefined_flag_F77=unsupported
14281 always_export_symbols_F77=no
14282 enable_shared_with_static_runtimes_F77=yes
14283 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14285 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14287 # If the export-symbols file already is a .def file (1st line
14288 # is EXPORTS), use it as is; otherwise, prepend...
14289 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14290 cp $export_symbols $output_objdir/$soname.def;
14291 else
14292 echo EXPORTS > $output_objdir/$soname.def;
14293 cat $export_symbols >> $output_objdir/$soname.def;
14295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14296 else
14297 ld_shlibs_F77=no
14301 interix3*)
14302 hardcode_direct_F77=no
14303 hardcode_shlibpath_var_F77=no
14304 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14305 export_dynamic_flag_spec_F77='${wl}-E'
14306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14307 # Instead, shared libraries are loaded at an image base (0x10000000 by
14308 # default) and relocated if they conflict, which is a slow very memory
14309 # consuming and fragmenting process. To avoid this, we pick a random,
14310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14312 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'
14313 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'
14316 linux*)
14317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14318 tmp_addflag=
14319 case $cc_basename,$host_cpu in
14320 pgcc*) # Portland Group C compiler
14321 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'
14322 tmp_addflag=' $pic_flag'
14324 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14325 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'
14326 tmp_addflag=' $pic_flag -Mnomain' ;;
14327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14328 tmp_addflag=' -i_dynamic' ;;
14329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14330 tmp_addflag=' -i_dynamic -nofor_main' ;;
14331 ifc* | ifort*) # Intel Fortran compiler
14332 tmp_addflag=' -nofor_main' ;;
14333 esac
14334 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 if test $supports_anon_versioning = yes; then
14337 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14339 $echo "local: *; };" >> $output_objdir/$libname.ver~
14340 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14342 else
14343 ld_shlibs_F77=no
14347 netbsd*)
14348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14349 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14350 wlarc=
14351 else
14352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14357 solaris*)
14358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14359 ld_shlibs_F77=no
14360 cat <<EOF 1>&2
14362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14363 *** create shared libraries on Solaris systems. Therefore, libtool
14364 *** is disabling shared libraries support. We urge you to upgrade GNU
14365 *** binutils to release 2.9.1 or newer. Another option is to modify
14366 *** your PATH or compiler configuration so that the native linker is
14367 *** used, and then restart.
14370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14373 else
14374 ld_shlibs_F77=no
14378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14379 case `$LD -v 2>&1` in
14380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14381 ld_shlibs_F77=no
14382 cat <<_LT_EOF 1>&2
14384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14385 *** reliably create shared libraries on SCO systems. Therefore, libtool
14386 *** is disabling shared libraries support. We urge you to upgrade GNU
14387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14388 *** your PATH or compiler configuration so that the native linker is
14389 *** used, and then restart.
14391 _LT_EOF
14394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14395 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14396 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14397 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14398 else
14399 ld_shlibs_F77=no
14402 esac
14405 sunos4*)
14406 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14407 wlarc=
14408 hardcode_direct_F77=yes
14409 hardcode_shlibpath_var_F77=no
14413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14414 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14416 else
14417 ld_shlibs_F77=no
14420 esac
14422 if test "$ld_shlibs_F77" = no; then
14423 runpath_var=
14424 hardcode_libdir_flag_spec_F77=
14425 export_dynamic_flag_spec_F77=
14426 whole_archive_flag_spec_F77=
14428 else
14429 # PORTME fill in a description of your system's linker (not GNU ld)
14430 case $host_os in
14431 aix3*)
14432 allow_undefined_flag_F77=unsupported
14433 always_export_symbols_F77=yes
14434 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'
14435 # Note: this linker hardcodes the directories in LIBPATH if there
14436 # are no directories specified by -L.
14437 hardcode_minus_L_F77=yes
14438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14439 # Neither direct hardcoding nor static linking is supported with a
14440 # broken collect2.
14441 hardcode_direct_F77=unsupported
14445 aix4* | aix5*)
14446 if test "$host_cpu" = ia64; then
14447 # On IA64, the linker does run time linking by default, so we don't
14448 # have to do anything special.
14449 aix_use_runtimelinking=no
14450 exp_sym_flag='-Bexport'
14451 no_entry_flag=""
14452 else
14453 # If we're using GNU nm, then we don't want the "-C" option.
14454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14455 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14456 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'
14457 else
14458 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'
14460 aix_use_runtimelinking=no
14462 # Test if we are trying to use run time linking or normal
14463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14464 # need to do runtime linking.
14465 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14466 for ld_flag in $LDFLAGS; do
14467 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14468 aix_use_runtimelinking=yes
14469 break
14471 done
14473 esac
14475 exp_sym_flag='-bexport'
14476 no_entry_flag='-bnoentry'
14479 # When large executables or shared objects are built, AIX ld can
14480 # have problems creating the table of contents. If linking a library
14481 # or program results in "error TOC overflow" add -mminimal-toc to
14482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14485 archive_cmds_F77=''
14486 hardcode_direct_F77=yes
14487 hardcode_libdir_separator_F77=':'
14488 link_all_deplibs_F77=yes
14490 if test "$GCC" = yes; then
14491 case $host_os in aix4.[012]|aix4.[012].*)
14492 # We only want to do this on AIX 4.2 and lower, the check
14493 # below for broken collect2 doesn't work under 4.3+
14494 collect2name=`${CC} -print-prog-name=collect2`
14495 if test -f "$collect2name" && \
14496 strings "$collect2name" | grep resolve_lib_name >/dev/null
14497 then
14498 # We have reworked collect2
14499 hardcode_direct_F77=yes
14500 else
14501 # We have old collect2
14502 hardcode_direct_F77=unsupported
14503 # It fails to find uninstalled libraries when the uninstalled
14504 # path is not listed in the libpath. Setting hardcode_minus_L
14505 # to unsupported forces relinking
14506 hardcode_minus_L_F77=yes
14507 hardcode_libdir_flag_spec_F77='-L$libdir'
14508 hardcode_libdir_separator_F77=
14511 esac
14512 shared_flag='-shared'
14513 if test "$aix_use_runtimelinking" = yes; then
14514 shared_flag="$shared_flag "'${wl}-G'
14516 else
14517 # not using gcc
14518 if test "$host_cpu" = ia64; then
14519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14520 # chokes on -Wl,-G. The following line is correct:
14521 shared_flag='-G'
14522 else
14523 if test "$aix_use_runtimelinking" = yes; then
14524 shared_flag='${wl}-G'
14525 else
14526 shared_flag='${wl}-bM:SRE'
14531 # It seems that -bexpall does not export symbols beginning with
14532 # underscore (_), so it is better to generate a list of symbols to export.
14533 always_export_symbols_F77=yes
14534 if test "$aix_use_runtimelinking" = yes; then
14535 # Warning - without using the other runtime loading flags (-brtl),
14536 # -berok will link without error, but may produce a broken library.
14537 allow_undefined_flag_F77='-berok'
14538 # Determine the default libpath from the value encoded in an empty executable.
14539 cat >conftest.$ac_ext <<_ACEOF
14540 program main
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549 esac
14550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14551 $as_echo "$ac_try_echo") >&5
14552 (eval "$ac_link") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_f77_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext && {
14562 test "$cross_compiling" = yes ||
14563 $as_test_x conftest$ac_exeext
14564 }; then
14566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14568 # Check for a 64-bit object if we didn't find anything.
14569 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14570 }'`; fi
14571 else
14572 $as_echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -rf conftest.dSYM
14579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14580 conftest$ac_exeext conftest.$ac_ext
14581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14583 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14584 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"
14585 else
14586 if test "$host_cpu" = ia64; then
14587 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14588 allow_undefined_flag_F77="-z nodefs"
14589 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"
14590 else
14591 # Determine the default libpath from the value encoded in an empty executable.
14592 cat >conftest.$ac_ext <<_ACEOF
14593 program main
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605 (eval "$ac_link") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_f77_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest$ac_exeext && {
14615 test "$cross_compiling" = yes ||
14616 $as_test_x conftest$ac_exeext
14617 }; then
14619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14621 # Check for a 64-bit object if we didn't find anything.
14622 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14623 }'`; fi
14624 else
14625 $as_echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14631 rm -rf conftest.dSYM
14632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14633 conftest$ac_exeext conftest.$ac_ext
14634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14636 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14637 # Warning - without using the other run time loading flags,
14638 # -berok will link without error, but may produce a broken library.
14639 no_undefined_flag_F77=' ${wl}-bernotok'
14640 allow_undefined_flag_F77=' ${wl}-berok'
14641 # Exported symbols can be pulled into shared objects from archives
14642 whole_archive_flag_spec_F77='$convenience'
14643 archive_cmds_need_lc_F77=yes
14644 # This is similar to how AIX traditionally builds its shared libraries.
14645 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'
14650 amigaos*)
14651 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)'
14652 hardcode_libdir_flag_spec_F77='-L$libdir'
14653 hardcode_minus_L_F77=yes
14654 # see comment about different semantics on the GNU ld section
14655 ld_shlibs_F77=no
14658 bsdi[45]*)
14659 export_dynamic_flag_spec_F77=-rdynamic
14662 cygwin* | mingw* | pw32*)
14663 # When not using gcc, we currently assume that we are using
14664 # Microsoft Visual C++.
14665 # hardcode_libdir_flag_spec is actually meaningless, as there is
14666 # no search path for DLLs.
14667 hardcode_libdir_flag_spec_F77=' '
14668 allow_undefined_flag_F77=unsupported
14669 # Tell ltmain to make .lib files, not .a files.
14670 libext=lib
14671 # Tell ltmain to make .dll files, not .so files.
14672 shrext_cmds=".dll"
14673 # FIXME: Setting linknames here is a bad hack.
14674 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14675 # The linker will automatically build a .lib file if we build a DLL.
14676 old_archive_From_new_cmds_F77='true'
14677 # FIXME: Should let the user specify the lib program.
14678 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14679 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14680 enable_shared_with_static_runtimes_F77=yes
14683 darwin* | rhapsody*)
14684 case $host_os in
14685 rhapsody* | darwin1.[012])
14686 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14688 *) # Darwin 1.3 on
14689 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14690 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14691 else
14692 case ${MACOSX_DEPLOYMENT_TARGET} in
14693 10.[012])
14694 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14696 10.*)
14697 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14699 esac
14702 esac
14703 archive_cmds_need_lc_F77=no
14704 hardcode_direct_F77=no
14705 hardcode_automatic_F77=yes
14706 hardcode_shlibpath_var_F77=unsupported
14707 whole_archive_flag_spec_F77=''
14708 link_all_deplibs_F77=yes
14709 if test "$GCC" = yes ; then
14710 output_verbose_link_cmd='echo'
14711 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14712 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14713 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14714 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}'
14715 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}'
14716 else
14717 case $cc_basename in
14718 xlc*)
14719 output_verbose_link_cmd='echo'
14720 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14721 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14722 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14723 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14724 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}'
14727 ld_shlibs_F77=no
14729 esac
14733 dgux*)
14734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_libdir_flag_spec_F77='-L$libdir'
14736 hardcode_shlibpath_var_F77=no
14739 freebsd1*)
14740 ld_shlibs_F77=no
14743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14744 # support. Future versions do this automatically, but an explicit c++rt0.o
14745 # does not break anything, and helps significantly (at the cost of a little
14746 # extra space).
14747 freebsd2.2*)
14748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14749 hardcode_libdir_flag_spec_F77='-R$libdir'
14750 hardcode_direct_F77=yes
14751 hardcode_shlibpath_var_F77=no
14754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14755 freebsd2*)
14756 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14757 hardcode_direct_F77=yes
14758 hardcode_minus_L_F77=yes
14759 hardcode_shlibpath_var_F77=no
14762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14763 freebsd* | kfreebsd*-gnu | dragonfly*)
14764 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14765 hardcode_libdir_flag_spec_F77='-R$libdir'
14766 hardcode_direct_F77=yes
14767 hardcode_shlibpath_var_F77=no
14770 hpux9*)
14771 if test "$GCC" = yes; then
14772 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'
14773 else
14774 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'
14776 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14777 hardcode_libdir_separator_F77=:
14778 hardcode_direct_F77=yes
14780 # hardcode_minus_L: Not really in the search PATH,
14781 # but as the default location of the library.
14782 hardcode_minus_L_F77=yes
14783 export_dynamic_flag_spec_F77='${wl}-E'
14786 hpux10*)
14787 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14788 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789 else
14790 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14792 if test "$with_gnu_ld" = no; then
14793 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14794 hardcode_libdir_separator_F77=:
14796 hardcode_direct_F77=yes
14797 export_dynamic_flag_spec_F77='${wl}-E'
14799 # hardcode_minus_L: Not really in the search PATH,
14800 # but as the default location of the library.
14801 hardcode_minus_L_F77=yes
14805 hpux11*)
14806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14807 case $host_cpu in
14808 hppa*64*)
14809 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 ia64*)
14812 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14815 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14817 esac
14818 else
14819 case $host_cpu in
14820 hppa*64*)
14821 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 ia64*)
14824 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14829 esac
14831 if test "$with_gnu_ld" = no; then
14832 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14833 hardcode_libdir_separator_F77=:
14835 case $host_cpu in
14836 hppa*64*|ia64*)
14837 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14838 hardcode_direct_F77=no
14839 hardcode_shlibpath_var_F77=no
14842 hardcode_direct_F77=yes
14843 export_dynamic_flag_spec_F77='${wl}-E'
14845 # hardcode_minus_L: Not really in the search PATH,
14846 # but as the default location of the library.
14847 hardcode_minus_L_F77=yes
14849 esac
14853 irix5* | irix6* | nonstopux*)
14854 if test "$GCC" = yes; then
14855 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'
14856 else
14857 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'
14858 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14860 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14861 hardcode_libdir_separator_F77=:
14862 link_all_deplibs_F77=yes
14865 netbsd*)
14866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14868 else
14869 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14871 hardcode_libdir_flag_spec_F77='-R$libdir'
14872 hardcode_direct_F77=yes
14873 hardcode_shlibpath_var_F77=no
14876 newsos6)
14877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878 hardcode_direct_F77=yes
14879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14880 hardcode_libdir_separator_F77=:
14881 hardcode_shlibpath_var_F77=no
14884 openbsd*)
14885 hardcode_direct_F77=yes
14886 hardcode_shlibpath_var_F77=no
14887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14888 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14889 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14890 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14891 export_dynamic_flag_spec_F77='${wl}-E'
14892 else
14893 case $host_os in
14894 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14895 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14899 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14902 esac
14906 os2*)
14907 hardcode_libdir_flag_spec_F77='-L$libdir'
14908 hardcode_minus_L_F77=yes
14909 allow_undefined_flag_F77=unsupported
14910 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'
14911 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14914 osf3*)
14915 if test "$GCC" = yes; then
14916 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14917 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'
14918 else
14919 allow_undefined_flag_F77=' -expect_unresolved \*'
14920 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'
14922 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14923 hardcode_libdir_separator_F77=:
14926 osf4* | osf5*) # as osf3* with the addition of -msym flag
14927 if test "$GCC" = yes; then
14928 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14929 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'
14930 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931 else
14932 allow_undefined_flag_F77=' -expect_unresolved \*'
14933 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'
14934 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~
14935 $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'
14937 # Both c and cxx compiler support -rpath directly
14938 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14940 hardcode_libdir_separator_F77=:
14943 solaris*)
14944 no_undefined_flag_F77=' -z text'
14945 if test "$GCC" = yes; then
14946 wlarc='${wl}'
14947 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14949 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14950 else
14951 wlarc=''
14952 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14953 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14956 hardcode_libdir_flag_spec_F77='-R$libdir'
14957 hardcode_shlibpath_var_F77=no
14958 case $host_os in
14959 solaris2.[0-5] | solaris2.[0-5].*) ;;
14961 # The compiler driver will combine linker options so we
14962 # cannot just pass the convience library names through
14963 # without $wl, iff we do not link with $LD.
14964 # Luckily, gcc supports the same syntax we need for Sun Studio.
14965 # Supported since Solaris 2.6 (maybe 2.5.1?)
14966 case $wlarc in
14968 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14970 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14971 esac ;;
14972 esac
14973 link_all_deplibs_F77=yes
14976 sunos4*)
14977 if test "x$host_vendor" = xsequent; then
14978 # Use $CC to link under sequent, because it throws in some extra .o
14979 # files that make .init and .fini sections work.
14980 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14981 else
14982 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14984 hardcode_libdir_flag_spec_F77='-L$libdir'
14985 hardcode_direct_F77=yes
14986 hardcode_minus_L_F77=yes
14987 hardcode_shlibpath_var_F77=no
14990 sysv4)
14991 case $host_vendor in
14992 sni)
14993 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14994 hardcode_direct_F77=yes # is this really true???
14996 siemens)
14997 ## LD is ld it makes a PLAMLIB
14998 ## CC just makes a GrossModule.
14999 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15000 reload_cmds_F77='$CC -r -o $output$reload_objs'
15001 hardcode_direct_F77=no
15003 motorola)
15004 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15007 esac
15008 runpath_var='LD_RUN_PATH'
15009 hardcode_shlibpath_var_F77=no
15012 sysv4.3*)
15013 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014 hardcode_shlibpath_var_F77=no
15015 export_dynamic_flag_spec_F77='-Bexport'
15018 sysv4*MP*)
15019 if test -d /usr/nec; then
15020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15021 hardcode_shlibpath_var_F77=no
15022 runpath_var=LD_RUN_PATH
15023 hardcode_runpath_var=yes
15024 ld_shlibs_F77=yes
15028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15029 no_undefined_flag_F77='${wl}-z,text'
15030 archive_cmds_need_lc_F77=no
15031 hardcode_shlibpath_var_F77=no
15032 runpath_var='LD_RUN_PATH'
15034 if test "$GCC" = yes; then
15035 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 else
15038 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 sysv5* | sco3.2v5* | sco5v6*)
15044 # Note: We can NOT use -z defs as we might desire, because we do not
15045 # link with -lc, and that would cause any symbols used from libc to
15046 # always be unresolved, which means just about no library would
15047 # ever link correctly. If we're not using GNU ld we use -z text
15048 # though, which does catch some bad symbols but isn't as heavy-handed
15049 # as -z defs.
15050 no_undefined_flag_F77='${wl}-z,text'
15051 allow_undefined_flag_F77='${wl}-z,nodefs'
15052 archive_cmds_need_lc_F77=no
15053 hardcode_shlibpath_var_F77=no
15054 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15055 hardcode_libdir_separator_F77=':'
15056 link_all_deplibs_F77=yes
15057 export_dynamic_flag_spec_F77='${wl}-Bexport'
15058 runpath_var='LD_RUN_PATH'
15060 if test "$GCC" = yes; then
15061 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 else
15064 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15069 uts4*)
15070 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071 hardcode_libdir_flag_spec_F77='-L$libdir'
15072 hardcode_shlibpath_var_F77=no
15076 ld_shlibs_F77=no
15078 esac
15081 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15082 $as_echo "$ld_shlibs_F77" >&6; }
15083 test "$ld_shlibs_F77" = no && can_build_shared=no
15086 # Do we need to explicitly link libc?
15088 case "x$archive_cmds_need_lc_F77" in
15089 x|xyes)
15090 # Assume -lc should be added
15091 archive_cmds_need_lc_F77=yes
15093 if test "$enable_shared" = yes && test "$GCC" = yes; then
15094 case $archive_cmds_F77 in
15095 *'~'*)
15096 # FIXME: we may have to deal with multi-command sequences.
15098 '$CC '*)
15099 # Test whether the compiler implicitly links with -lc since on some
15100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15101 # to ld, don't add -lc before -lgcc.
15102 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15104 $rm conftest*
15105 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>&5
15109 ac_status=$?
15110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } 2>conftest.err; then
15112 soname=conftest
15113 lib=conftest
15114 libobjs=conftest.$ac_objext
15115 deplibs=
15116 wl=$lt_prog_compiler_wl_F77
15117 pic_flag=$lt_prog_compiler_pic_F77
15118 compiler_flags=-v
15119 linker_flags=-v
15120 verstring=
15121 output_objdir=.
15122 libname=conftest
15123 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15124 allow_undefined_flag_F77=
15125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15126 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15127 ac_status=$?
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }
15130 then
15131 archive_cmds_need_lc_F77=no
15132 else
15133 archive_cmds_need_lc_F77=yes
15135 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15136 else
15137 cat conftest.err 1>&5
15139 $rm conftest*
15140 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15141 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15143 esac
15146 esac
15148 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15150 library_names_spec=
15151 libname_spec='lib$name'
15152 soname_spec=
15153 shrext_cmds=".so"
15154 postinstall_cmds=
15155 postuninstall_cmds=
15156 finish_cmds=
15157 finish_eval=
15158 shlibpath_var=
15159 shlibpath_overrides_runpath=unknown
15160 version_type=none
15161 dynamic_linker="$host_os ld.so"
15162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15163 if test "$GCC" = yes; then
15164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15165 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15166 # if the path contains ";" then we assume it to be the separator
15167 # otherwise default to the standard path separator (i.e. ":") - it is
15168 # assumed that no part of a normal pathname contains ";" but that should
15169 # okay in the real world where ";" in dirpaths is itself problematic.
15170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15171 else
15172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15174 else
15175 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15177 need_lib_prefix=unknown
15178 hardcode_into_libs=no
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version=unknown
15184 case $host_os in
15185 aix3*)
15186 version_type=linux
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15188 shlibpath_var=LIBPATH
15190 # AIX 3 has no versioning support, so we append a major version to the name.
15191 soname_spec='${libname}${release}${shared_ext}$major'
15194 aix4* | aix5*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 hardcode_into_libs=yes
15199 if test "$host_cpu" = ia64; then
15200 # AIX 5 supports IA64
15201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 else
15204 # With GCC up to 2.95.x, collect2 would create an import file
15205 # for dependence libraries. The import file would start with
15206 # the line `#! .'. This would cause the generated library to
15207 # depend on `.', always an invalid library. This was fixed in
15208 # development snapshots of GCC prior to 3.0.
15209 case $host_os in
15210 aix4 | aix4.[01] | aix4.[01].*)
15211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15212 echo ' yes '
15213 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15215 else
15216 can_build_shared=no
15219 esac
15220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221 # soname into executable. Probably we can add versioning support to
15222 # collect2, so additional links can be useful in future.
15223 if test "$aix_use_runtimelinking" = yes; then
15224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225 # instead of lib<name>.a to let people know that these are not
15226 # typical AIX shared libraries.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 else
15229 # We preserve .a as extension for shared libraries through AIX4.2
15230 # and later when we are not doing run time linking.
15231 library_names_spec='${libname}${release}.a $libname.a'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15234 shlibpath_var=LIBPATH
15238 amigaos*)
15239 library_names_spec='$libname.ixlibrary $libname.a'
15240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15241 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'
15244 beos*)
15245 library_names_spec='${libname}${shared_ext}'
15246 dynamic_linker="$host_os ld.so"
15247 shlibpath_var=LIBRARY_PATH
15250 bsdi[45]*)
15251 version_type=linux
15252 need_version=no
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15259 # the default ld.so.conf also contains /usr/contrib/lib and
15260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15261 # libtool to hard-code these into programs
15264 cygwin* | mingw* | pw32*)
15265 version_type=windows
15266 shrext_cmds=".dll"
15267 need_version=no
15268 need_lib_prefix=no
15270 case $GCC,$host_os in
15271 yes,cygwin* | yes,mingw* | yes,pw32*)
15272 library_names_spec='$libname.dll.a'
15273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15274 postinstall_cmds='base_file=`basename \${file}`~
15275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15276 dldir=$destdir/`dirname \$dlpath`~
15277 test -d \$dldir || mkdir -p \$dldir~
15278 $install_prog $dir/$dlname \$dldir/$dlname~
15279 chmod a+x \$dldir/$dlname'
15280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15281 dlpath=$dir/\$dldll~
15282 $rm \$dlpath'
15283 shlibpath_overrides_runpath=yes
15285 case $host_os in
15286 cygwin*)
15287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15289 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15291 mingw*)
15292 # MinGW DLLs use traditional 'lib' prefix
15293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15295 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15296 # It is most probably a Windows format PATH printed by
15297 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15298 # path with ; separators, and with drive letters. We can handle the
15299 # drive letters (cygwin fileutils understands them), so leave them,
15300 # especially as we might pass files found there to a mingw objdump,
15301 # which wouldn't understand a cygwinified path. Ahh.
15302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 else
15304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15307 pw32*)
15308 # pw32 DLLs use 'pw' prefix rather than 'lib'
15309 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311 esac
15315 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15317 esac
15318 dynamic_linker='Win32 ld.exe'
15319 # FIXME: first we should search . and the directory the executable is in
15320 shlibpath_var=PATH
15323 darwin* | rhapsody*)
15324 dynamic_linker="$host_os dyld"
15325 version_type=darwin
15326 need_lib_prefix=no
15327 need_version=no
15328 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15329 soname_spec='${libname}${release}${major}$shared_ext'
15330 shlibpath_overrides_runpath=yes
15331 shlibpath_var=DYLD_LIBRARY_PATH
15332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15333 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15334 if test "$GCC" = yes; then
15335 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15336 else
15337 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15342 dgux*)
15343 version_type=linux
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15351 freebsd1*)
15352 dynamic_linker=no
15355 kfreebsd*-gnu)
15356 version_type=linux
15357 need_lib_prefix=no
15358 need_version=no
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=no
15363 hardcode_into_libs=yes
15364 dynamic_linker='GNU ld.so'
15367 freebsd* | dragonfly*)
15368 # DragonFly does not have aout. When/if they implement a new
15369 # versioning mechanism, adjust this.
15370 if test -x /usr/bin/objformat; then
15371 objformat=`/usr/bin/objformat`
15372 else
15373 case $host_os in
15374 freebsd[123]*) objformat=aout ;;
15375 *) objformat=elf ;;
15376 esac
15378 version_type=freebsd-$objformat
15379 case $version_type in
15380 freebsd-elf*)
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15382 need_version=no
15383 need_lib_prefix=no
15385 freebsd-*)
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387 need_version=yes
15389 esac
15390 shlibpath_var=LD_LIBRARY_PATH
15391 case $host_os in
15392 freebsd2*)
15393 shlibpath_overrides_runpath=yes
15395 freebsd3.[01]* | freebsdelf3.[01]*)
15396 shlibpath_overrides_runpath=yes
15397 hardcode_into_libs=yes
15399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401 shlibpath_overrides_runpath=no
15402 hardcode_into_libs=yes
15404 freebsd*) # from 4.6 on
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15408 esac
15411 gnu*)
15412 version_type=linux
15413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 hardcode_into_libs=yes
15421 hpux9* | hpux10* | hpux11*)
15422 # Give a soname corresponding to the major version so that dld.sl refuses to
15423 # link against other versions.
15424 version_type=sunos
15425 need_lib_prefix=no
15426 need_version=no
15427 case $host_cpu in
15428 ia64*)
15429 shrext_cmds='.so'
15430 hardcode_into_libs=yes
15431 dynamic_linker="$host_os dld.so"
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 if test "X$HPUX_IA64_MODE" = X32; then
15437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438 else
15439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443 hppa*64*)
15444 shrext_cmds='.sl'
15445 hardcode_into_libs=yes
15446 dynamic_linker="$host_os dld.sl"
15447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15455 shrext_cmds='.sl'
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=SHLIB_PATH
15458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15462 esac
15463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464 postinstall_cmds='chmod 555 $lib'
15467 interix3*)
15468 version_type=linux
15469 need_lib_prefix=no
15470 need_version=no
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 hardcode_into_libs=yes
15479 irix5* | irix6* | nonstopux*)
15480 case $host_os in
15481 nonstopux*) version_type=nonstopux ;;
15483 if test "$lt_cv_prog_gnu_ld" = yes; then
15484 version_type=linux
15485 else
15486 version_type=irix
15487 fi ;;
15488 esac
15489 need_lib_prefix=no
15490 need_version=no
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493 case $host_os in
15494 irix5* | nonstopux*)
15495 libsuff= shlibsuff=
15498 case $LD in # libtool.m4 will add one of these switches to LD
15499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500 libsuff= shlibsuff= libmagic=32-bit;;
15501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502 libsuff=32 shlibsuff=N32 libmagic=N32;;
15503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505 *) libsuff= shlibsuff= libmagic=never-match;;
15506 esac
15508 esac
15509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510 shlibpath_overrides_runpath=no
15511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513 hardcode_into_libs=yes
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15518 dynamic_linker=no
15521 # This must be Linux ELF.
15522 linux*)
15523 version_type=linux
15524 need_lib_prefix=no
15525 need_version=no
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath=no
15531 # This implies no fast_install, which is unacceptable.
15532 # Some rework will be needed to allow for fast_install
15533 # before this can be enabled.
15534 hardcode_into_libs=yes
15536 # find out which ABI we are using
15537 libsuff=
15538 case "$host_cpu" in
15539 x86_64*|s390x*|powerpc64*)
15540 echo '#line 15540 "configure"' > conftest.$ac_ext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15543 ac_status=$?
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; then
15546 case `/usr/bin/file conftest.$ac_objext` in
15547 *64-bit*)
15548 libsuff=64
15549 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15551 esac
15553 rm -rf conftest*
15555 esac
15557 # Append ld.so.conf contents to the search path
15558 if test -f /etc/ld.so.conf; then
15559 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15560 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15563 # We used to test for /lib/ld.so.1 and disable shared libraries on
15564 # powerpc, because MkLinux only supported shared libraries with the
15565 # GNU dynamic linker. Since this was broken with cross compilers,
15566 # most powerpc-linux boxes support dynamic linking these days and
15567 # people can always --disable-shared, the test was removed, and we
15568 # assume the GNU/Linux dynamic linker is in use.
15569 dynamic_linker='GNU/Linux ld.so'
15572 knetbsd*-gnu)
15573 version_type=linux
15574 need_lib_prefix=no
15575 need_version=no
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=no
15580 hardcode_into_libs=yes
15581 dynamic_linker='GNU ld.so'
15584 netbsd*)
15585 version_type=sunos
15586 need_lib_prefix=no
15587 need_version=no
15588 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15591 dynamic_linker='NetBSD (a.out) ld.so'
15592 else
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 dynamic_linker='NetBSD ld.elf_so'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=yes
15599 hardcode_into_libs=yes
15602 newsos6)
15603 version_type=linux
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15609 nto-qnx*)
15610 version_type=linux
15611 need_lib_prefix=no
15612 need_version=no
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath=yes
15619 openbsd*)
15620 version_type=sunos
15621 sys_lib_dlsearch_path_spec="/usr/lib"
15622 need_lib_prefix=no
15623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15624 case $host_os in
15625 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15626 *) need_version=no ;;
15627 esac
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15632 case $host_os in
15633 openbsd2.[89] | openbsd2.[89].*)
15634 shlibpath_overrides_runpath=no
15637 shlibpath_overrides_runpath=yes
15639 esac
15640 else
15641 shlibpath_overrides_runpath=yes
15645 os2*)
15646 libname_spec='$name'
15647 shrext_cmds=".dll"
15648 need_lib_prefix=no
15649 library_names_spec='$libname${shared_ext} $libname.a'
15650 dynamic_linker='OS/2 ld.exe'
15651 shlibpath_var=LIBPATH
15654 osf3* | osf4* | osf5*)
15655 version_type=osf
15656 need_lib_prefix=no
15657 need_version=no
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15662 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15665 solaris*)
15666 version_type=linux
15667 need_lib_prefix=no
15668 need_version=no
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 shlibpath_var=LD_LIBRARY_PATH
15672 shlibpath_overrides_runpath=yes
15673 hardcode_into_libs=yes
15674 # ldd complains unless libraries are executable
15675 postinstall_cmds='chmod +x $lib'
15678 sunos4*)
15679 version_type=sunos
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=yes
15684 if test "$with_gnu_ld" = yes; then
15685 need_lib_prefix=no
15687 need_version=yes
15690 sysv4 | sysv4.3*)
15691 version_type=linux
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693 soname_spec='${libname}${release}${shared_ext}$major'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 case $host_vendor in
15696 sni)
15697 shlibpath_overrides_runpath=no
15698 need_lib_prefix=no
15699 export_dynamic_flag_spec='${wl}-Blargedynsym'
15700 runpath_var=LD_RUN_PATH
15702 siemens)
15703 need_lib_prefix=no
15705 motorola)
15706 need_lib_prefix=no
15707 need_version=no
15708 shlibpath_overrides_runpath=no
15709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15711 esac
15714 sysv4*MP*)
15715 if test -d /usr/nec ;then
15716 version_type=linux
15717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15718 soname_spec='$libname${shared_ext}.$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15724 version_type=freebsd-elf
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 hardcode_into_libs=yes
15731 if test "$with_gnu_ld" = yes; then
15732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15733 shlibpath_overrides_runpath=no
15734 else
15735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15736 shlibpath_overrides_runpath=yes
15737 case $host_os in
15738 sco3.2v5*)
15739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15741 esac
15743 sys_lib_dlsearch_path_spec='/usr/lib'
15746 uts4*)
15747 version_type=linux
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 shlibpath_var=LD_LIBRARY_PATH
15754 dynamic_linker=no
15756 esac
15757 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15758 $as_echo "$dynamic_linker" >&6; }
15759 test "$dynamic_linker" = no && can_build_shared=no
15761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15762 if test "$GCC" = yes; then
15763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15766 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15768 hardcode_action_F77=
15769 if test -n "$hardcode_libdir_flag_spec_F77" || \
15770 test -n "$runpath_var_F77" || \
15771 test "X$hardcode_automatic_F77" = "Xyes" ; then
15773 # We can hardcode non-existant directories.
15774 if test "$hardcode_direct_F77" != no &&
15775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15776 # have to relink, otherwise we might link with an installed library
15777 # when we should be linking with a yet-to-be-installed one
15778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15779 test "$hardcode_minus_L_F77" != no; then
15780 # Linking always hardcodes the temporary library directory.
15781 hardcode_action_F77=relink
15782 else
15783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15784 hardcode_action_F77=immediate
15786 else
15787 # We cannot hardcode anything, or else we can only hardcode existing
15788 # directories.
15789 hardcode_action_F77=unsupported
15791 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15792 $as_echo "$hardcode_action_F77" >&6; }
15794 if test "$hardcode_action_F77" = relink; then
15795 # Fast installation is not supported
15796 enable_fast_install=no
15797 elif test "$shlibpath_overrides_runpath" = yes ||
15798 test "$enable_shared" = no; then
15799 # Fast installation is not necessary
15800 enable_fast_install=needless
15804 # The else clause should only fire when bootstrapping the
15805 # libtool distribution, otherwise you forgot to ship ltmain.sh
15806 # with your package, and you will get complaints that there are
15807 # no rules to generate ltmain.sh.
15808 if test -f "$ltmain"; then
15809 # See if we are running on zsh, and set the options which allow our commands through
15810 # without removal of \ escapes.
15811 if test -n "${ZSH_VERSION+set}" ; then
15812 setopt NO_GLOB_SUBST
15814 # Now quote all the things that may contain metacharacters while being
15815 # careful not to overquote the AC_SUBSTed values. We take copies of the
15816 # variables and quote the copies for generation of the libtool script.
15817 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15818 SED SHELL STRIP \
15819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15821 deplibs_check_method reload_flag reload_cmds need_locks \
15822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15823 lt_cv_sys_global_symbol_to_c_name_address \
15824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15825 old_postinstall_cmds old_postuninstall_cmds \
15826 compiler_F77 \
15827 CC_F77 \
15828 LD_F77 \
15829 lt_prog_compiler_wl_F77 \
15830 lt_prog_compiler_pic_F77 \
15831 lt_prog_compiler_static_F77 \
15832 lt_prog_compiler_no_builtin_flag_F77 \
15833 export_dynamic_flag_spec_F77 \
15834 thread_safe_flag_spec_F77 \
15835 whole_archive_flag_spec_F77 \
15836 enable_shared_with_static_runtimes_F77 \
15837 old_archive_cmds_F77 \
15838 old_archive_from_new_cmds_F77 \
15839 predep_objects_F77 \
15840 postdep_objects_F77 \
15841 predeps_F77 \
15842 postdeps_F77 \
15843 compiler_lib_search_path_F77 \
15844 archive_cmds_F77 \
15845 archive_expsym_cmds_F77 \
15846 postinstall_cmds_F77 \
15847 postuninstall_cmds_F77 \
15848 old_archive_from_expsyms_cmds_F77 \
15849 allow_undefined_flag_F77 \
15850 no_undefined_flag_F77 \
15851 export_symbols_cmds_F77 \
15852 hardcode_libdir_flag_spec_F77 \
15853 hardcode_libdir_flag_spec_ld_F77 \
15854 hardcode_libdir_separator_F77 \
15855 hardcode_automatic_F77 \
15856 module_cmds_F77 \
15857 module_expsym_cmds_F77 \
15858 lt_cv_prog_compiler_c_o_F77 \
15859 exclude_expsyms_F77 \
15860 include_expsyms_F77; do
15862 case $var in
15863 old_archive_cmds_F77 | \
15864 old_archive_from_new_cmds_F77 | \
15865 archive_cmds_F77 | \
15866 archive_expsym_cmds_F77 | \
15867 module_cmds_F77 | \
15868 module_expsym_cmds_F77 | \
15869 old_archive_from_expsyms_cmds_F77 | \
15870 export_symbols_cmds_F77 | \
15871 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15872 postinstall_cmds | postuninstall_cmds | \
15873 old_postinstall_cmds | old_postuninstall_cmds | \
15874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15875 # Double-quote double-evaled strings.
15876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15881 esac
15882 done
15884 case $lt_echo in
15885 *'\$0 --fallback-echo"')
15886 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15888 esac
15890 cfgfile="$ofile"
15892 cat <<__EOF__ >> "$cfgfile"
15893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15897 # Shell to use when invoking shell scripts.
15898 SHELL=$lt_SHELL
15900 # Whether or not to build shared libraries.
15901 build_libtool_libs=$enable_shared
15903 # Whether or not to build static libraries.
15904 build_old_libs=$enable_static
15906 # Whether or not to add -lc for building shared libraries.
15907 build_libtool_need_lc=$archive_cmds_need_lc_F77
15909 # Whether or not to disallow shared libs when runtime libs are static
15910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15912 # Whether or not to optimize for fast installation.
15913 fast_install=$enable_fast_install
15915 # The host system.
15916 host_alias=$host_alias
15917 host=$host
15918 host_os=$host_os
15920 # The build system.
15921 build_alias=$build_alias
15922 build=$build
15923 build_os=$build_os
15925 # An echo program that does not interpret backslashes.
15926 echo=$lt_echo
15928 # The archiver.
15929 AR=$lt_AR
15930 AR_FLAGS=$lt_AR_FLAGS
15932 # A C compiler.
15933 LTCC=$lt_LTCC
15935 # LTCC compiler flags.
15936 LTCFLAGS=$lt_LTCFLAGS
15938 # A language-specific compiler.
15939 CC=$lt_compiler_F77
15941 # Is the compiler the GNU C compiler?
15942 with_gcc=$GCC_F77
15944 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15945 gcc_ver=\`gcc -dumpversion\`
15947 # An ERE matcher.
15948 EGREP=$lt_EGREP
15950 # The linker used to build libraries.
15951 LD=$lt_LD_F77
15953 # Whether we need hard or soft links.
15954 LN_S=$lt_LN_S
15956 # A BSD-compatible nm program.
15957 NM=$lt_NM
15959 # A symbol stripping program
15960 STRIP=$lt_STRIP
15962 # Used to examine libraries when file_magic_cmd begins "file"
15963 MAGIC_CMD=$MAGIC_CMD
15965 # Used on cygwin: DLL creation program.
15966 DLLTOOL="$DLLTOOL"
15968 # Used on cygwin: object dumper.
15969 OBJDUMP="$OBJDUMP"
15971 # Used on cygwin: assembler.
15972 AS="$AS"
15974 # The name of the directory that contains temporary libtool files.
15975 objdir=$objdir
15977 # How to create reloadable object files.
15978 reload_flag=$lt_reload_flag
15979 reload_cmds=$lt_reload_cmds
15981 # How to pass a linker flag through the compiler.
15982 wl=$lt_lt_prog_compiler_wl_F77
15984 # Object file suffix (normally "o").
15985 objext="$ac_objext"
15987 # Old archive suffix (normally "a").
15988 libext="$libext"
15990 # Shared library suffix (normally ".so").
15991 shrext_cmds='$shrext_cmds'
15993 # Executable file suffix (normally "").
15994 exeext="$exeext"
15996 # Additional compiler flags for building library objects.
15997 pic_flag=$lt_lt_prog_compiler_pic_F77
15998 pic_mode=$pic_mode
16000 # What is the maximum length of a command?
16001 max_cmd_len=$lt_cv_sys_max_cmd_len
16003 # Does compiler simultaneously support -c and -o options?
16004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16006 # Must we lock files when doing compilation?
16007 need_locks=$lt_need_locks
16009 # Do we need the lib prefix for modules?
16010 need_lib_prefix=$need_lib_prefix
16012 # Do we need a version for libraries?
16013 need_version=$need_version
16015 # Whether dlopen is supported.
16016 dlopen_support=$enable_dlopen
16018 # Whether dlopen of programs is supported.
16019 dlopen_self=$enable_dlopen_self
16021 # Whether dlopen of statically linked programs is supported.
16022 dlopen_self_static=$enable_dlopen_self_static
16024 # Compiler flag to prevent dynamic linking.
16025 link_static_flag=$lt_lt_prog_compiler_static_F77
16027 # Compiler flag to turn off builtin functions.
16028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16030 # Compiler flag to allow reflexive dlopens.
16031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16033 # Compiler flag to generate shared objects directly from archives.
16034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16036 # Compiler flag to generate thread-safe objects.
16037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16039 # Library versioning type.
16040 version_type=$version_type
16042 # Format of library name prefix.
16043 libname_spec=$lt_libname_spec
16045 # List of archive names. First name is the real one, the rest are links.
16046 # The last name is the one that the linker finds with -lNAME.
16047 library_names_spec=$lt_library_names_spec
16049 # The coded name of the library, if different from the real name.
16050 soname_spec=$lt_soname_spec
16052 # Commands used to build and install an old-style archive.
16053 RANLIB=$lt_RANLIB
16054 old_archive_cmds=$lt_old_archive_cmds_F77
16055 old_postinstall_cmds=$lt_old_postinstall_cmds
16056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16058 # Create an old-style archive from a shared archive.
16059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16061 # Create a temporary old-style archive to link instead of a shared archive.
16062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16064 # Commands used to build and install a shared archive.
16065 archive_cmds=$lt_archive_cmds_F77
16066 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16067 postinstall_cmds=$lt_postinstall_cmds
16068 postuninstall_cmds=$lt_postuninstall_cmds
16070 # Commands used to build a loadable module (assumed same as above if empty)
16071 module_cmds=$lt_module_cmds_F77
16072 module_expsym_cmds=$lt_module_expsym_cmds_F77
16074 # Commands to strip libraries.
16075 old_striplib=$lt_old_striplib
16076 striplib=$lt_striplib
16078 # Dependencies to place before the objects being linked to create a
16079 # shared library.
16080 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16082 # Dependencies to place after the objects being linked to create a
16083 # shared library.
16084 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16086 # Dependencies to place before the objects being linked to create a
16087 # shared library.
16088 predeps=$lt_predeps_F77
16090 # Dependencies to place after the objects being linked to create a
16091 # shared library.
16092 postdeps=$lt_postdeps_F77
16094 # The library search path used internally by the compiler when linking
16095 # a shared library.
16096 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16098 # Method to check whether dependent libraries are shared objects.
16099 deplibs_check_method=$lt_deplibs_check_method
16101 # Command to use when deplibs_check_method == file_magic.
16102 file_magic_cmd=$lt_file_magic_cmd
16104 # Flag that allows shared libraries with undefined symbols to be built.
16105 allow_undefined_flag=$lt_allow_undefined_flag_F77
16107 # Flag that forces no undefined symbols.
16108 no_undefined_flag=$lt_no_undefined_flag_F77
16110 # Commands used to finish a libtool library installation in a directory.
16111 finish_cmds=$lt_finish_cmds
16113 # Same as above, but a single script fragment to be evaled but not shown.
16114 finish_eval=$lt_finish_eval
16116 # Take the output of nm and produce a listing of raw symbols and C names.
16117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16119 # Transform the output of nm in a proper C declaration
16120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16122 # Transform the output of nm in a C name address pair
16123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16125 # This is the shared library runtime path variable.
16126 runpath_var=$runpath_var
16128 # This is the shared library path variable.
16129 shlibpath_var=$shlibpath_var
16131 # Is shlibpath searched before the hard-coded library search path?
16132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16134 # How to hardcode a shared library path into an executable.
16135 hardcode_action=$hardcode_action_F77
16137 # Whether we should hardcode library paths into libraries.
16138 hardcode_into_libs=$hardcode_into_libs
16140 # Flag to hardcode \$libdir into a binary during linking.
16141 # This must work even if \$libdir does not exist.
16142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16144 # If ld is used when linking, flag to hardcode \$libdir into
16145 # a binary during linking. This must work even if \$libdir does
16146 # not exist.
16147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16149 # Whether we need a single -rpath flag with a separated argument.
16150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16153 # resulting binary.
16154 hardcode_direct=$hardcode_direct_F77
16156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16157 # resulting binary.
16158 hardcode_minus_L=$hardcode_minus_L_F77
16160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16161 # the resulting binary.
16162 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16164 # Set to yes if building a shared library automatically hardcodes DIR into the library
16165 # and all subsequent libraries and executables linked against it.
16166 hardcode_automatic=$hardcode_automatic_F77
16168 # Variables whose values should be saved in libtool wrapper scripts and
16169 # restored at relink time.
16170 variables_saved_for_relink="$variables_saved_for_relink"
16172 # Whether libtool must link a program against all its dependency libraries.
16173 link_all_deplibs=$link_all_deplibs_F77
16175 # Compile-time system search path for libraries
16176 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16178 # Run-time system search path for libraries
16179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16181 # Fix the shell variable \$srcfile for the compiler.
16182 fix_srcfile_path="$fix_srcfile_path_F77"
16184 # Set to yes if exported symbols are required.
16185 always_export_symbols=$always_export_symbols_F77
16187 # The commands to list exported symbols.
16188 export_symbols_cmds=$lt_export_symbols_cmds_F77
16190 # The commands to extract the exported symbol list from a shared archive.
16191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16193 # Symbols that should not be listed in the preloaded symbols.
16194 exclude_expsyms=$lt_exclude_expsyms_F77
16196 # Symbols that must always be exported.
16197 include_expsyms=$lt_include_expsyms_F77
16199 # ### END LIBTOOL TAG CONFIG: $tagname
16201 __EOF__
16204 else
16205 # If there is no Makefile yet, we rely on a make rule to execute
16206 # `config.status --recheck' to rerun these tests and create the
16207 # libtool script then.
16208 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16209 if test -f "$ltmain_in"; then
16210 test -f Makefile && make "$ltmain"
16215 ac_ext=c
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221 CC="$lt_save_CC"
16223 else
16224 tagname=""
16228 GCJ)
16229 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16232 # Source file extension for Java test sources.
16233 ac_ext=java
16235 # Object file extension for compiled Java test sources.
16236 objext=o
16237 objext_GCJ=$objext
16239 # Code to be used in simple compile tests
16240 lt_simple_compile_test_code="class foo {}\n"
16242 # Code to be used in simple link tests
16243 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16247 # If no C compiler was specified, use CC.
16248 LTCC=${LTCC-"$CC"}
16250 # If no C compiler flags were specified, use CFLAGS.
16251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16253 # Allow CC to be a program name with arguments.
16254 compiler=$CC
16257 # save warnings/boilerplate of simple test code
16258 ac_outfile=conftest.$ac_objext
16259 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16261 _lt_compiler_boilerplate=`cat conftest.err`
16262 $rm conftest*
16264 ac_outfile=conftest.$ac_objext
16265 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16267 _lt_linker_boilerplate=`cat conftest.err`
16268 $rm conftest*
16271 # Allow CC to be a program name with arguments.
16272 lt_save_CC="$CC"
16273 CC=${GCJ-"gcj"}
16274 compiler=$CC
16275 compiler_GCJ=$CC
16276 for cc_temp in $compiler""; do
16277 case $cc_temp in
16278 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16279 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16280 \-*) ;;
16281 *) break;;
16282 esac
16283 done
16284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16287 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16288 archive_cmds_need_lc_GCJ=no
16290 old_archive_cmds_GCJ=$old_archive_cmds
16293 lt_prog_compiler_no_builtin_flag_GCJ=
16295 if test "$GCC" = yes; then
16296 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16299 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16300 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16301 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16302 $as_echo_n "(cached) " >&6
16303 else
16304 lt_cv_prog_compiler_rtti_exceptions=no
16305 ac_outfile=conftest.$ac_objext
16306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16307 lt_compiler_flag="-fno-rtti -fno-exceptions"
16308 # Insert the option either (1) after the last *FLAGS variable, or
16309 # (2) before a word containing "conftest.", or (3) at the end.
16310 # Note that $ac_compile itself does not contain backslashes and begins
16311 # with a dollar sign (not a hyphen), so the echo should work correctly.
16312 # The option is referenced via a variable to avoid confusing sed.
16313 lt_compile=`echo "$ac_compile" | $SED \
16314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16316 -e 's:$: $lt_compiler_flag:'`
16317 (eval echo "\"\$as_me:16317: $lt_compile\"" >&5)
16318 (eval "$lt_compile" 2>conftest.err)
16319 ac_status=$?
16320 cat conftest.err >&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 if (exit $ac_status) && test -s "$ac_outfile"; then
16323 # The compiler can only warn and ignore the option if not recognized
16324 # So say no if there are warnings other than the usual output.
16325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16328 lt_cv_prog_compiler_rtti_exceptions=yes
16331 $rm conftest*
16334 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16335 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16337 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16338 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16339 else
16345 lt_prog_compiler_wl_GCJ=
16346 lt_prog_compiler_pic_GCJ=
16347 lt_prog_compiler_static_GCJ=
16349 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16352 if test "$GCC" = yes; then
16353 lt_prog_compiler_wl_GCJ='-Wl,'
16354 lt_prog_compiler_static_GCJ='-static'
16356 case $host_os in
16357 aix*)
16358 # All AIX code is PIC.
16359 if test "$host_cpu" = ia64; then
16360 # AIX 5 now supports IA64 processor
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16365 amigaos*)
16366 # FIXME: we need at least 68020 code to build shared libraries, but
16367 # adding the `-m68020' flag to GCC prevents building anything better,
16368 # like `-m68040'.
16369 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16372 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16373 # PIC is the default for these OSes.
16376 mingw* | pw32* | os2*)
16377 # This hack is so that the source file can tell whether it is being
16378 # built for inclusion in a dll (and should export symbols for example).
16379 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16382 darwin* | rhapsody*)
16383 # PIC is the default on this platform
16384 # Common symbols not allowed in MH_DYLIB files
16385 lt_prog_compiler_pic_GCJ='-fno-common'
16388 interix3*)
16389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16390 # Instead, we relocate shared libraries at runtime.
16393 msdosdjgpp*)
16394 # Just because we use GCC doesn't mean we suddenly get shared libraries
16395 # on systems that don't support them.
16396 lt_prog_compiler_can_build_shared_GCJ=no
16397 enable_shared=no
16400 sysv4*MP*)
16401 if test -d /usr/nec; then
16402 lt_prog_compiler_pic_GCJ=-Kconform_pic
16406 hpux*)
16407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16408 # not for PA HP-UX.
16409 case $host_cpu in
16410 hppa*64*|ia64*)
16411 # +Z the default
16414 lt_prog_compiler_pic_GCJ='-fPIC'
16416 esac
16420 lt_prog_compiler_pic_GCJ='-fPIC'
16422 esac
16423 else
16424 # PORTME Check for flag to pass linker flags through the system compiler.
16425 case $host_os in
16426 aix*)
16427 lt_prog_compiler_wl_GCJ='-Wl,'
16428 if test "$host_cpu" = ia64; then
16429 # AIX 5 now supports IA64 processor
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16431 else
16432 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16435 darwin*)
16436 # PIC is the default on this platform
16437 # Common symbols not allowed in MH_DYLIB files
16438 case $cc_basename in
16439 xlc*)
16440 lt_prog_compiler_pic_GCJ='-qnocommon'
16441 lt_prog_compiler_wl_GCJ='-Wl,'
16443 esac
16446 mingw* | pw32* | os2*)
16447 # This hack is so that the source file can tell whether it is being
16448 # built for inclusion in a dll (and should export symbols for example).
16449 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16452 hpux9* | hpux10* | hpux11*)
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16455 # not for PA HP-UX.
16456 case $host_cpu in
16457 hppa*64*|ia64*)
16458 # +Z the default
16461 lt_prog_compiler_pic_GCJ='+Z'
16463 esac
16464 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16465 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16468 irix5* | irix6* | nonstopux*)
16469 lt_prog_compiler_wl_GCJ='-Wl,'
16470 # PIC (with -KPIC) is the default.
16471 lt_prog_compiler_static_GCJ='-non_shared'
16474 newsos6)
16475 lt_prog_compiler_pic_GCJ='-KPIC'
16476 lt_prog_compiler_static_GCJ='-Bstatic'
16479 linux*)
16480 case $cc_basename in
16481 icc* | ecc*)
16482 lt_prog_compiler_wl_GCJ='-Wl,'
16483 lt_prog_compiler_pic_GCJ='-KPIC'
16484 lt_prog_compiler_static_GCJ='-static'
16486 pgcc* | pgf77* | pgf90* | pgf95*)
16487 # Portland Group compilers (*not* the Pentium gcc compiler,
16488 # which looks to be a dead project)
16489 lt_prog_compiler_wl_GCJ='-Wl,'
16490 lt_prog_compiler_pic_GCJ='-fpic'
16491 lt_prog_compiler_static_GCJ='-Bstatic'
16493 ccc*)
16494 lt_prog_compiler_wl_GCJ='-Wl,'
16495 # All Alpha code is PIC.
16496 lt_prog_compiler_static_GCJ='-non_shared'
16498 esac
16501 osf3* | osf4* | osf5*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 # All OSF/1 code is PIC.
16504 lt_prog_compiler_static_GCJ='-non_shared'
16507 solaris*)
16508 lt_prog_compiler_pic_GCJ='-KPIC'
16509 lt_prog_compiler_static_GCJ='-Bstatic'
16510 case $cc_basename in
16511 f77* | f90* | f95*)
16512 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16514 lt_prog_compiler_wl_GCJ='-Wl,';;
16515 esac
16518 sunos4*)
16519 lt_prog_compiler_wl_GCJ='-Qoption ld '
16520 lt_prog_compiler_pic_GCJ='-PIC'
16521 lt_prog_compiler_static_GCJ='-Bstatic'
16524 sysv4 | sysv4.2uw2* | sysv4.3*)
16525 lt_prog_compiler_wl_GCJ='-Wl,'
16526 lt_prog_compiler_pic_GCJ='-KPIC'
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16530 sysv4*MP*)
16531 if test -d /usr/nec ;then
16532 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16533 lt_prog_compiler_static_GCJ='-Bstatic'
16537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16539 lt_prog_compiler_pic_GCJ='-KPIC'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16543 unicos*)
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16545 lt_prog_compiler_can_build_shared_GCJ=no
16548 uts4*)
16549 lt_prog_compiler_pic_GCJ='-pic'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16554 lt_prog_compiler_can_build_shared_GCJ=no
16556 esac
16559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16560 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16563 # Check to make sure the PIC flag actually works.
16565 if test -n "$lt_prog_compiler_pic_GCJ"; then
16567 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16569 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16570 $as_echo_n "(cached) " >&6
16571 else
16572 lt_prog_compiler_pic_works_GCJ=no
16573 ac_outfile=conftest.$ac_objext
16574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16575 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16576 # Insert the option either (1) after the last *FLAGS variable, or
16577 # (2) before a word containing "conftest.", or (3) at the end.
16578 # Note that $ac_compile itself does not contain backslashes and begins
16579 # with a dollar sign (not a hyphen), so the echo should work correctly.
16580 # The option is referenced via a variable to avoid confusing sed.
16581 lt_compile=`echo "$ac_compile" | $SED \
16582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584 -e 's:$: $lt_compiler_flag:'`
16585 (eval echo "\"\$as_me:16585: $lt_compile\"" >&5)
16586 (eval "$lt_compile" 2>conftest.err)
16587 ac_status=$?
16588 cat conftest.err >&5
16589 echo "$as_me:16589: \$? = $ac_status" >&5
16590 if (exit $ac_status) && test -s "$ac_outfile"; then
16591 # The compiler can only warn and ignore the option if not recognized
16592 # So say no if there are warnings other than the usual output.
16593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16596 lt_prog_compiler_pic_works_GCJ=yes
16599 $rm conftest*
16602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16603 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16605 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16606 case $lt_prog_compiler_pic_GCJ in
16607 "" | " "*) ;;
16608 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16609 esac
16610 else
16611 lt_prog_compiler_pic_GCJ=
16612 lt_prog_compiler_can_build_shared_GCJ=no
16616 case $host_os in
16617 # For platforms which do not support PIC, -DPIC is meaningless:
16618 *djgpp*)
16619 lt_prog_compiler_pic_GCJ=
16622 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16624 esac
16627 # Check to make sure the static flag actually works.
16629 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16630 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16632 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16633 $as_echo_n "(cached) " >&6
16634 else
16635 lt_prog_compiler_static_works_GCJ=no
16636 save_LDFLAGS="$LDFLAGS"
16637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16638 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16640 # The linker can only warn and ignore the option if not recognized
16641 # So say no if there are warnings
16642 if test -s conftest.err; then
16643 # Append any errors to the config.log.
16644 cat conftest.err 1>&5
16645 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16647 if diff conftest.exp conftest.er2 >/dev/null; then
16648 lt_prog_compiler_static_works_GCJ=yes
16650 else
16651 lt_prog_compiler_static_works_GCJ=yes
16654 $rm conftest*
16655 LDFLAGS="$save_LDFLAGS"
16658 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16659 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16661 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16663 else
16664 lt_prog_compiler_static_GCJ=
16668 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16670 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16671 $as_echo_n "(cached) " >&6
16672 else
16673 lt_cv_prog_compiler_c_o_GCJ=no
16674 $rm -r conftest 2>/dev/null
16675 mkdir conftest
16676 cd conftest
16677 mkdir out
16678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16680 lt_compiler_flag="-o out/conftest2.$ac_objext"
16681 # Insert the option either (1) after the last *FLAGS variable, or
16682 # (2) before a word containing "conftest.", or (3) at the end.
16683 # Note that $ac_compile itself does not contain backslashes and begins
16684 # with a dollar sign (not a hyphen), so the echo should work correctly.
16685 lt_compile=`echo "$ac_compile" | $SED \
16686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688 -e 's:$: $lt_compiler_flag:'`
16689 (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
16690 (eval "$lt_compile" 2>out/conftest.err)
16691 ac_status=$?
16692 cat out/conftest.err >&5
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16695 then
16696 # The compiler can only warn and ignore the option if not recognized
16697 # So say no if there are warnings
16698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16701 lt_cv_prog_compiler_c_o_GCJ=yes
16704 chmod u+w . 2>&5
16705 $rm conftest*
16706 # SGI C++ compiler will create directory out/ii_files/ for
16707 # template instantiation
16708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16709 $rm out/* && rmdir out
16710 cd ..
16711 rmdir conftest
16712 $rm conftest*
16715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16716 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16719 hard_links="nottested"
16720 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16721 # do not overwrite the value of need_locks provided by the user
16722 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16723 $as_echo_n "checking if we can lock with hard links... " >&6; }
16724 hard_links=yes
16725 $rm conftest*
16726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16727 touch conftest.a
16728 ln conftest.a conftest.b 2>&5 || hard_links=no
16729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16730 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16731 $as_echo "$hard_links" >&6; }
16732 if test "$hard_links" = no; then
16733 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16734 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16735 need_locks=warn
16737 else
16738 need_locks=no
16741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16744 runpath_var=
16745 allow_undefined_flag_GCJ=
16746 enable_shared_with_static_runtimes_GCJ=no
16747 archive_cmds_GCJ=
16748 archive_expsym_cmds_GCJ=
16749 old_archive_From_new_cmds_GCJ=
16750 old_archive_from_expsyms_cmds_GCJ=
16751 export_dynamic_flag_spec_GCJ=
16752 whole_archive_flag_spec_GCJ=
16753 thread_safe_flag_spec_GCJ=
16754 hardcode_libdir_flag_spec_GCJ=
16755 hardcode_libdir_flag_spec_ld_GCJ=
16756 hardcode_libdir_separator_GCJ=
16757 hardcode_direct_GCJ=no
16758 hardcode_minus_L_GCJ=no
16759 hardcode_shlibpath_var_GCJ=unsupported
16760 link_all_deplibs_GCJ=unknown
16761 hardcode_automatic_GCJ=no
16762 module_cmds_GCJ=
16763 module_expsym_cmds_GCJ=
16764 always_export_symbols_GCJ=no
16765 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16766 # include_expsyms should be a list of space-separated symbols to be *always*
16767 # included in the symbol list
16768 include_expsyms_GCJ=
16769 # exclude_expsyms can be an extended regexp of symbols to exclude
16770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16772 # as well as any symbol that contains `d'.
16773 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16775 # platforms (ab)use it in PIC code, but their linkers get confused if
16776 # the symbol is explicitly referenced. Since portable code cannot
16777 # rely on this symbol name, it's probably fine to never include it in
16778 # preloaded symbol tables.
16779 extract_expsyms_cmds=
16780 # Just being paranoid about ensuring that cc_basename is set.
16781 for cc_temp in $compiler""; do
16782 case $cc_temp in
16783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16785 \-*) ;;
16786 *) break;;
16787 esac
16788 done
16789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16791 case $host_os in
16792 cygwin* | mingw* | pw32*)
16793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16794 # When not using gcc, we currently assume that we are using
16795 # Microsoft Visual C++.
16796 if test "$GCC" != yes; then
16797 with_gnu_ld=no
16800 interix*)
16801 # we just hope/assume this is gcc and not c89 (= MSVC++)
16802 with_gnu_ld=yes
16804 openbsd*)
16805 with_gnu_ld=no
16807 esac
16809 ld_shlibs_GCJ=yes
16810 if test "$with_gnu_ld" = yes; then
16811 # If archive_cmds runs LD, not CC, wlarc should be empty
16812 wlarc='${wl}'
16814 # Set some defaults for GNU ld with shared library support. These
16815 # are reset later if shared libraries are not supported. Putting them
16816 # here allows them to be overridden if necessary.
16817 runpath_var=LD_RUN_PATH
16818 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16819 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16820 # ancient GNU ld didn't support --whole-archive et. al.
16821 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16822 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16823 else
16824 whole_archive_flag_spec_GCJ=
16826 supports_anon_versioning=no
16827 case `$LD -v 2>/dev/null` in
16828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16831 *\ 2.11.*) ;; # other 2.11 versions
16832 *) supports_anon_versioning=yes ;;
16833 esac
16835 # See if GNU ld supports shared libraries.
16836 case $host_os in
16837 aix3* | aix4* | aix5*)
16838 # On AIX/PPC, the GNU linker is very broken
16839 if test "$host_cpu" != ia64; then
16840 ld_shlibs_GCJ=no
16841 cat <<EOF 1>&2
16843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16844 *** to be unable to reliably create shared libraries on AIX.
16845 *** Therefore, libtool is disabling shared libraries support. If you
16846 *** really care for shared libraries, you may want to modify your PATH
16847 *** so that a non-GNU linker is found, and then restart.
16853 amigaos*)
16854 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)'
16855 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16856 hardcode_minus_L_GCJ=yes
16858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16859 # that the semantics of dynamic libraries on AmigaOS, at least up
16860 # to version 4, is to share data among multiple programs linked
16861 # with the same dynamic library. Since this doesn't match the
16862 # behavior of shared libraries on other platforms, we can't use
16863 # them.
16864 ld_shlibs_GCJ=no
16867 beos*)
16868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869 allow_undefined_flag_GCJ=unsupported
16870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16871 # support --undefined. This deserves some investigation. FIXME
16872 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16873 else
16874 ld_shlibs_GCJ=no
16878 cygwin* | mingw* | pw32*)
16879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16880 # as there is no search path for DLLs.
16881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882 allow_undefined_flag_GCJ=unsupported
16883 always_export_symbols_GCJ=no
16884 enable_shared_with_static_runtimes_GCJ=yes
16885 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16887 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16888 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16889 # If the export-symbols file already is a .def file (1st line
16890 # is EXPORTS), use it as is; otherwise, prepend...
16891 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16892 cp $export_symbols $output_objdir/$soname.def;
16893 else
16894 echo EXPORTS > $output_objdir/$soname.def;
16895 cat $export_symbols >> $output_objdir/$soname.def;
16897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16898 else
16899 ld_shlibs_GCJ=no
16903 interix3*)
16904 hardcode_direct_GCJ=no
16905 hardcode_shlibpath_var_GCJ=no
16906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16907 export_dynamic_flag_spec_GCJ='${wl}-E'
16908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16909 # Instead, shared libraries are loaded at an image base (0x10000000 by
16910 # default) and relocated if they conflict, which is a slow very memory
16911 # consuming and fragmenting process. To avoid this, we pick a random,
16912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16914 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'
16915 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'
16918 linux*)
16919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16920 tmp_addflag=
16921 case $cc_basename,$host_cpu in
16922 pgcc*) # Portland Group C compiler
16923 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'
16924 tmp_addflag=' $pic_flag'
16926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16927 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'
16928 tmp_addflag=' $pic_flag -Mnomain' ;;
16929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16930 tmp_addflag=' -i_dynamic' ;;
16931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16932 tmp_addflag=' -i_dynamic -nofor_main' ;;
16933 ifc* | ifort*) # Intel Fortran compiler
16934 tmp_addflag=' -nofor_main' ;;
16935 esac
16936 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 if test $supports_anon_versioning = yes; then
16939 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16941 $echo "local: *; };" >> $output_objdir/$libname.ver~
16942 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16944 else
16945 ld_shlibs_GCJ=no
16949 netbsd*)
16950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16951 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16952 wlarc=
16953 else
16954 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16959 solaris*)
16960 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16961 ld_shlibs_GCJ=no
16962 cat <<EOF 1>&2
16964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16965 *** create shared libraries on Solaris systems. Therefore, libtool
16966 *** is disabling shared libraries support. We urge you to upgrade GNU
16967 *** binutils to release 2.9.1 or newer. Another option is to modify
16968 *** your PATH or compiler configuration so that the native linker is
16969 *** used, and then restart.
16972 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16973 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16974 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16975 else
16976 ld_shlibs_GCJ=no
16980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16981 case `$LD -v 2>&1` in
16982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16983 ld_shlibs_GCJ=no
16984 cat <<_LT_EOF 1>&2
16986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16987 *** reliably create shared libraries on SCO systems. Therefore, libtool
16988 *** is disabling shared libraries support. We urge you to upgrade GNU
16989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16990 *** your PATH or compiler configuration so that the native linker is
16991 *** used, and then restart.
16993 _LT_EOF
16996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16997 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16999 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17000 else
17001 ld_shlibs_GCJ=no
17004 esac
17007 sunos4*)
17008 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17009 wlarc=
17010 hardcode_direct_GCJ=yes
17011 hardcode_shlibpath_var_GCJ=no
17015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17017 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17018 else
17019 ld_shlibs_GCJ=no
17022 esac
17024 if test "$ld_shlibs_GCJ" = no; then
17025 runpath_var=
17026 hardcode_libdir_flag_spec_GCJ=
17027 export_dynamic_flag_spec_GCJ=
17028 whole_archive_flag_spec_GCJ=
17030 else
17031 # PORTME fill in a description of your system's linker (not GNU ld)
17032 case $host_os in
17033 aix3*)
17034 allow_undefined_flag_GCJ=unsupported
17035 always_export_symbols_GCJ=yes
17036 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'
17037 # Note: this linker hardcodes the directories in LIBPATH if there
17038 # are no directories specified by -L.
17039 hardcode_minus_L_GCJ=yes
17040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17041 # Neither direct hardcoding nor static linking is supported with a
17042 # broken collect2.
17043 hardcode_direct_GCJ=unsupported
17047 aix4* | aix5*)
17048 if test "$host_cpu" = ia64; then
17049 # On IA64, the linker does run time linking by default, so we don't
17050 # have to do anything special.
17051 aix_use_runtimelinking=no
17052 exp_sym_flag='-Bexport'
17053 no_entry_flag=""
17054 else
17055 # If we're using GNU nm, then we don't want the "-C" option.
17056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17057 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17058 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'
17059 else
17060 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'
17062 aix_use_runtimelinking=no
17064 # Test if we are trying to use run time linking or normal
17065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17066 # need to do runtime linking.
17067 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17068 for ld_flag in $LDFLAGS; do
17069 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17070 aix_use_runtimelinking=yes
17071 break
17073 done
17075 esac
17077 exp_sym_flag='-bexport'
17078 no_entry_flag='-bnoentry'
17081 # When large executables or shared objects are built, AIX ld can
17082 # have problems creating the table of contents. If linking a library
17083 # or program results in "error TOC overflow" add -mminimal-toc to
17084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17087 archive_cmds_GCJ=''
17088 hardcode_direct_GCJ=yes
17089 hardcode_libdir_separator_GCJ=':'
17090 link_all_deplibs_GCJ=yes
17092 if test "$GCC" = yes; then
17093 case $host_os in aix4.[012]|aix4.[012].*)
17094 # We only want to do this on AIX 4.2 and lower, the check
17095 # below for broken collect2 doesn't work under 4.3+
17096 collect2name=`${CC} -print-prog-name=collect2`
17097 if test -f "$collect2name" && \
17098 strings "$collect2name" | grep resolve_lib_name >/dev/null
17099 then
17100 # We have reworked collect2
17101 hardcode_direct_GCJ=yes
17102 else
17103 # We have old collect2
17104 hardcode_direct_GCJ=unsupported
17105 # It fails to find uninstalled libraries when the uninstalled
17106 # path is not listed in the libpath. Setting hardcode_minus_L
17107 # to unsupported forces relinking
17108 hardcode_minus_L_GCJ=yes
17109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110 hardcode_libdir_separator_GCJ=
17113 esac
17114 shared_flag='-shared'
17115 if test "$aix_use_runtimelinking" = yes; then
17116 shared_flag="$shared_flag "'${wl}-G'
17118 else
17119 # not using gcc
17120 if test "$host_cpu" = ia64; then
17121 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17122 # chokes on -Wl,-G. The following line is correct:
17123 shared_flag='-G'
17124 else
17125 if test "$aix_use_runtimelinking" = yes; then
17126 shared_flag='${wl}-G'
17127 else
17128 shared_flag='${wl}-bM:SRE'
17133 # It seems that -bexpall does not export symbols beginning with
17134 # underscore (_), so it is better to generate a list of symbols to export.
17135 always_export_symbols_GCJ=yes
17136 if test "$aix_use_runtimelinking" = yes; then
17137 # Warning - without using the other runtime loading flags (-brtl),
17138 # -berok will link without error, but may produce a broken library.
17139 allow_undefined_flag_GCJ='-berok'
17140 # Determine the default libpath from the value encoded in an empty executable.
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17149 main ()
17153 return 0;
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161 esac
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext && {
17174 test "$cross_compiling" = yes ||
17175 $as_test_x conftest$ac_exeext
17176 }; then
17178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17180 # Check for a 64-bit object if we didn't find anything.
17181 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17182 }'`; fi
17183 else
17184 $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17190 rm -rf conftest.dSYM
17191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17192 conftest$ac_exeext conftest.$ac_ext
17193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17195 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17196 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"
17197 else
17198 if test "$host_cpu" = ia64; then
17199 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17200 allow_undefined_flag_GCJ="-z nodefs"
17201 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"
17202 else
17203 # Determine the default libpath from the value encoded in an empty executable.
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17212 main ()
17216 return 0;
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224 esac
17225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227 (eval "$ac_link") 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest$ac_exeext && {
17237 test "$cross_compiling" = yes ||
17238 $as_test_x conftest$ac_exeext
17239 }; then
17241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17243 # Check for a 64-bit object if we didn't find anything.
17244 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17245 }'`; fi
17246 else
17247 $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17253 rm -rf conftest.dSYM
17254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17258 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17259 # Warning - without using the other run time loading flags,
17260 # -berok will link without error, but may produce a broken library.
17261 no_undefined_flag_GCJ=' ${wl}-bernotok'
17262 allow_undefined_flag_GCJ=' ${wl}-berok'
17263 # Exported symbols can be pulled into shared objects from archives
17264 whole_archive_flag_spec_GCJ='$convenience'
17265 archive_cmds_need_lc_GCJ=yes
17266 # This is similar to how AIX traditionally builds its shared libraries.
17267 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'
17272 amigaos*)
17273 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)'
17274 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17275 hardcode_minus_L_GCJ=yes
17276 # see comment about different semantics on the GNU ld section
17277 ld_shlibs_GCJ=no
17280 bsdi[45]*)
17281 export_dynamic_flag_spec_GCJ=-rdynamic
17284 cygwin* | mingw* | pw32*)
17285 # When not using gcc, we currently assume that we are using
17286 # Microsoft Visual C++.
17287 # hardcode_libdir_flag_spec is actually meaningless, as there is
17288 # no search path for DLLs.
17289 hardcode_libdir_flag_spec_GCJ=' '
17290 allow_undefined_flag_GCJ=unsupported
17291 # Tell ltmain to make .lib files, not .a files.
17292 libext=lib
17293 # Tell ltmain to make .dll files, not .so files.
17294 shrext_cmds=".dll"
17295 # FIXME: Setting linknames here is a bad hack.
17296 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17297 # The linker will automatically build a .lib file if we build a DLL.
17298 old_archive_From_new_cmds_GCJ='true'
17299 # FIXME: Should let the user specify the lib program.
17300 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17301 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17302 enable_shared_with_static_runtimes_GCJ=yes
17305 darwin* | rhapsody*)
17306 case $host_os in
17307 rhapsody* | darwin1.[012])
17308 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17310 *) # Darwin 1.3 on
17311 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17312 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17313 else
17314 case ${MACOSX_DEPLOYMENT_TARGET} in
17315 10.[012])
17316 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17318 10.*)
17319 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17321 esac
17324 esac
17325 archive_cmds_need_lc_GCJ=no
17326 hardcode_direct_GCJ=no
17327 hardcode_automatic_GCJ=yes
17328 hardcode_shlibpath_var_GCJ=unsupported
17329 whole_archive_flag_spec_GCJ=''
17330 link_all_deplibs_GCJ=yes
17331 if test "$GCC" = yes ; then
17332 output_verbose_link_cmd='echo'
17333 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17334 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17336 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}'
17337 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}'
17338 else
17339 case $cc_basename in
17340 xlc*)
17341 output_verbose_link_cmd='echo'
17342 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17343 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17345 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17346 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}'
17349 ld_shlibs_GCJ=no
17351 esac
17355 dgux*)
17356 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17358 hardcode_shlibpath_var_GCJ=no
17361 freebsd1*)
17362 ld_shlibs_GCJ=no
17365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17366 # support. Future versions do this automatically, but an explicit c++rt0.o
17367 # does not break anything, and helps significantly (at the cost of a little
17368 # extra space).
17369 freebsd2.2*)
17370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17372 hardcode_direct_GCJ=yes
17373 hardcode_shlibpath_var_GCJ=no
17376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17377 freebsd2*)
17378 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379 hardcode_direct_GCJ=yes
17380 hardcode_minus_L_GCJ=yes
17381 hardcode_shlibpath_var_GCJ=no
17384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17385 freebsd* | kfreebsd*-gnu | dragonfly*)
17386 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17388 hardcode_direct_GCJ=yes
17389 hardcode_shlibpath_var_GCJ=no
17392 hpux9*)
17393 if test "$GCC" = yes; then
17394 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'
17395 else
17396 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'
17398 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ=:
17400 hardcode_direct_GCJ=yes
17402 # hardcode_minus_L: Not really in the search PATH,
17403 # but as the default location of the library.
17404 hardcode_minus_L_GCJ=yes
17405 export_dynamic_flag_spec_GCJ='${wl}-E'
17408 hpux10*)
17409 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17410 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17411 else
17412 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17414 if test "$with_gnu_ld" = no; then
17415 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17416 hardcode_libdir_separator_GCJ=:
17418 hardcode_direct_GCJ=yes
17419 export_dynamic_flag_spec_GCJ='${wl}-E'
17421 # hardcode_minus_L: Not really in the search PATH,
17422 # but as the default location of the library.
17423 hardcode_minus_L_GCJ=yes
17427 hpux11*)
17428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17429 case $host_cpu in
17430 hppa*64*)
17431 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433 ia64*)
17434 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17439 esac
17440 else
17441 case $host_cpu in
17442 hppa*64*)
17443 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 ia64*)
17446 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17449 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451 esac
17453 if test "$with_gnu_ld" = no; then
17454 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17455 hardcode_libdir_separator_GCJ=:
17457 case $host_cpu in
17458 hppa*64*|ia64*)
17459 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17460 hardcode_direct_GCJ=no
17461 hardcode_shlibpath_var_GCJ=no
17464 hardcode_direct_GCJ=yes
17465 export_dynamic_flag_spec_GCJ='${wl}-E'
17467 # hardcode_minus_L: Not really in the search PATH,
17468 # but as the default location of the library.
17469 hardcode_minus_L_GCJ=yes
17471 esac
17475 irix5* | irix6* | nonstopux*)
17476 if test "$GCC" = yes; then
17477 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'
17478 else
17479 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'
17480 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17482 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17483 hardcode_libdir_separator_GCJ=:
17484 link_all_deplibs_GCJ=yes
17487 netbsd*)
17488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17489 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17490 else
17491 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17493 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17494 hardcode_direct_GCJ=yes
17495 hardcode_shlibpath_var_GCJ=no
17498 newsos6)
17499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_direct_GCJ=yes
17501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17502 hardcode_libdir_separator_GCJ=:
17503 hardcode_shlibpath_var_GCJ=no
17506 openbsd*)
17507 hardcode_direct_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=no
17509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17510 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17513 export_dynamic_flag_spec_GCJ='${wl}-E'
17514 else
17515 case $host_os in
17516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17524 esac
17528 os2*)
17529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17530 hardcode_minus_L_GCJ=yes
17531 allow_undefined_flag_GCJ=unsupported
17532 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'
17533 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17536 osf3*)
17537 if test "$GCC" = yes; then
17538 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539 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'
17540 else
17541 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17542 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'
17544 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17545 hardcode_libdir_separator_GCJ=:
17548 osf4* | osf5*) # as osf3* with the addition of -msym flag
17549 if test "$GCC" = yes; then
17550 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17551 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'
17552 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553 else
17554 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17555 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'
17556 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~
17557 $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'
17559 # Both c and cxx compiler support -rpath directly
17560 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17562 hardcode_libdir_separator_GCJ=:
17565 solaris*)
17566 no_undefined_flag_GCJ=' -z text'
17567 if test "$GCC" = yes; then
17568 wlarc='${wl}'
17569 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17571 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17572 else
17573 wlarc=''
17574 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17579 hardcode_shlibpath_var_GCJ=no
17580 case $host_os in
17581 solaris2.[0-5] | solaris2.[0-5].*) ;;
17583 # The compiler driver will combine linker options so we
17584 # cannot just pass the convience library names through
17585 # without $wl, iff we do not link with $LD.
17586 # Luckily, gcc supports the same syntax we need for Sun Studio.
17587 # Supported since Solaris 2.6 (maybe 2.5.1?)
17588 case $wlarc in
17590 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17592 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17593 esac ;;
17594 esac
17595 link_all_deplibs_GCJ=yes
17598 sunos4*)
17599 if test "x$host_vendor" = xsequent; then
17600 # Use $CC to link under sequent, because it throws in some extra .o
17601 # files that make .init and .fini sections work.
17602 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17603 else
17604 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17607 hardcode_direct_GCJ=yes
17608 hardcode_minus_L_GCJ=yes
17609 hardcode_shlibpath_var_GCJ=no
17612 sysv4)
17613 case $host_vendor in
17614 sni)
17615 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_direct_GCJ=yes # is this really true???
17618 siemens)
17619 ## LD is ld it makes a PLAMLIB
17620 ## CC just makes a GrossModule.
17621 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17622 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17623 hardcode_direct_GCJ=no
17625 motorola)
17626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17629 esac
17630 runpath_var='LD_RUN_PATH'
17631 hardcode_shlibpath_var_GCJ=no
17634 sysv4.3*)
17635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636 hardcode_shlibpath_var_GCJ=no
17637 export_dynamic_flag_spec_GCJ='-Bexport'
17640 sysv4*MP*)
17641 if test -d /usr/nec; then
17642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_shlibpath_var_GCJ=no
17644 runpath_var=LD_RUN_PATH
17645 hardcode_runpath_var=yes
17646 ld_shlibs_GCJ=yes
17650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17651 no_undefined_flag_GCJ='${wl}-z,text'
17652 archive_cmds_need_lc_GCJ=no
17653 hardcode_shlibpath_var_GCJ=no
17654 runpath_var='LD_RUN_PATH'
17656 if test "$GCC" = yes; then
17657 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 else
17660 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 sysv5* | sco3.2v5* | sco5v6*)
17666 # Note: We can NOT use -z defs as we might desire, because we do not
17667 # link with -lc, and that would cause any symbols used from libc to
17668 # always be unresolved, which means just about no library would
17669 # ever link correctly. If we're not using GNU ld we use -z text
17670 # though, which does catch some bad symbols but isn't as heavy-handed
17671 # as -z defs.
17672 no_undefined_flag_GCJ='${wl}-z,text'
17673 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17674 archive_cmds_need_lc_GCJ=no
17675 hardcode_shlibpath_var_GCJ=no
17676 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17677 hardcode_libdir_separator_GCJ=':'
17678 link_all_deplibs_GCJ=yes
17679 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17680 runpath_var='LD_RUN_PATH'
17682 if test "$GCC" = yes; then
17683 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17685 else
17686 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17687 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 uts4*)
17692 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17694 hardcode_shlibpath_var_GCJ=no
17698 ld_shlibs_GCJ=no
17700 esac
17703 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17704 $as_echo "$ld_shlibs_GCJ" >&6; }
17705 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17708 # Do we need to explicitly link libc?
17710 case "x$archive_cmds_need_lc_GCJ" in
17711 x|xyes)
17712 # Assume -lc should be added
17713 archive_cmds_need_lc_GCJ=yes
17715 if test "$enable_shared" = yes && test "$GCC" = yes; then
17716 case $archive_cmds_GCJ in
17717 *'~'*)
17718 # FIXME: we may have to deal with multi-command sequences.
17720 '$CC '*)
17721 # Test whether the compiler implicitly links with -lc since on some
17722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17723 # to ld, don't add -lc before -lgcc.
17724 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17726 $rm conftest*
17727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>&5
17731 ac_status=$?
17732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } 2>conftest.err; then
17734 soname=conftest
17735 lib=conftest
17736 libobjs=conftest.$ac_objext
17737 deplibs=
17738 wl=$lt_prog_compiler_wl_GCJ
17739 pic_flag=$lt_prog_compiler_pic_GCJ
17740 compiler_flags=-v
17741 linker_flags=-v
17742 verstring=
17743 output_objdir=.
17744 libname=conftest
17745 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17746 allow_undefined_flag_GCJ=
17747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17748 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17749 ac_status=$?
17750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }
17752 then
17753 archive_cmds_need_lc_GCJ=no
17754 else
17755 archive_cmds_need_lc_GCJ=yes
17757 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17758 else
17759 cat conftest.err 1>&5
17761 $rm conftest*
17762 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17763 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17765 esac
17768 esac
17770 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17771 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17772 library_names_spec=
17773 libname_spec='lib$name'
17774 soname_spec=
17775 shrext_cmds=".so"
17776 postinstall_cmds=
17777 postuninstall_cmds=
17778 finish_cmds=
17779 finish_eval=
17780 shlibpath_var=
17781 shlibpath_overrides_runpath=unknown
17782 version_type=none
17783 dynamic_linker="$host_os ld.so"
17784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17785 if test "$GCC" = yes; then
17786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17787 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17788 # if the path contains ";" then we assume it to be the separator
17789 # otherwise default to the standard path separator (i.e. ":") - it is
17790 # assumed that no part of a normal pathname contains ";" but that should
17791 # okay in the real world where ";" in dirpaths is itself problematic.
17792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17793 else
17794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17796 else
17797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17799 need_lib_prefix=unknown
17800 hardcode_into_libs=no
17802 # when you set need_version to no, make sure it does not cause -set_version
17803 # flags to be left without arguments
17804 need_version=unknown
17806 case $host_os in
17807 aix3*)
17808 version_type=linux
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17810 shlibpath_var=LIBPATH
17812 # AIX 3 has no versioning support, so we append a major version to the name.
17813 soname_spec='${libname}${release}${shared_ext}$major'
17816 aix4* | aix5*)
17817 version_type=linux
17818 need_lib_prefix=no
17819 need_version=no
17820 hardcode_into_libs=yes
17821 if test "$host_cpu" = ia64; then
17822 # AIX 5 supports IA64
17823 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 else
17826 # With GCC up to 2.95.x, collect2 would create an import file
17827 # for dependence libraries. The import file would start with
17828 # the line `#! .'. This would cause the generated library to
17829 # depend on `.', always an invalid library. This was fixed in
17830 # development snapshots of GCC prior to 3.0.
17831 case $host_os in
17832 aix4 | aix4.[01] | aix4.[01].*)
17833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17834 echo ' yes '
17835 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17837 else
17838 can_build_shared=no
17841 esac
17842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17843 # soname into executable. Probably we can add versioning support to
17844 # collect2, so additional links can be useful in future.
17845 if test "$aix_use_runtimelinking" = yes; then
17846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17847 # instead of lib<name>.a to let people know that these are not
17848 # typical AIX shared libraries.
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 else
17851 # We preserve .a as extension for shared libraries through AIX4.2
17852 # and later when we are not doing run time linking.
17853 library_names_spec='${libname}${release}.a $libname.a'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LIBPATH
17860 amigaos*)
17861 library_names_spec='$libname.ixlibrary $libname.a'
17862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17863 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'
17866 beos*)
17867 library_names_spec='${libname}${shared_ext}'
17868 dynamic_linker="$host_os ld.so"
17869 shlibpath_var=LIBRARY_PATH
17872 bsdi[45]*)
17873 version_type=linux
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17881 # the default ld.so.conf also contains /usr/contrib/lib and
17882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17883 # libtool to hard-code these into programs
17886 cygwin* | mingw* | pw32*)
17887 version_type=windows
17888 shrext_cmds=".dll"
17889 need_version=no
17890 need_lib_prefix=no
17892 case $GCC,$host_os in
17893 yes,cygwin* | yes,mingw* | yes,pw32*)
17894 library_names_spec='$libname.dll.a'
17895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17896 postinstall_cmds='base_file=`basename \${file}`~
17897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17898 dldir=$destdir/`dirname \$dlpath`~
17899 test -d \$dldir || mkdir -p \$dldir~
17900 $install_prog $dir/$dlname \$dldir/$dlname~
17901 chmod a+x \$dldir/$dlname'
17902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903 dlpath=$dir/\$dldll~
17904 $rm \$dlpath'
17905 shlibpath_overrides_runpath=yes
17907 case $host_os in
17908 cygwin*)
17909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17911 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17913 mingw*)
17914 # MinGW DLLs use traditional 'lib' prefix
17915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17917 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17918 # It is most probably a Windows format PATH printed by
17919 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17920 # path with ; separators, and with drive letters. We can handle the
17921 # drive letters (cygwin fileutils understands them), so leave them,
17922 # especially as we might pass files found there to a mingw objdump,
17923 # which wouldn't understand a cygwinified path. Ahh.
17924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17925 else
17926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17929 pw32*)
17930 # pw32 DLLs use 'pw' prefix rather than 'lib'
17931 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17933 esac
17937 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17939 esac
17940 dynamic_linker='Win32 ld.exe'
17941 # FIXME: first we should search . and the directory the executable is in
17942 shlibpath_var=PATH
17945 darwin* | rhapsody*)
17946 dynamic_linker="$host_os dyld"
17947 version_type=darwin
17948 need_lib_prefix=no
17949 need_version=no
17950 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17951 soname_spec='${libname}${release}${major}$shared_ext'
17952 shlibpath_overrides_runpath=yes
17953 shlibpath_var=DYLD_LIBRARY_PATH
17954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17956 if test "$GCC" = yes; then
17957 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17958 else
17959 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17964 dgux*)
17965 version_type=linux
17966 need_lib_prefix=no
17967 need_version=no
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17973 freebsd1*)
17974 dynamic_linker=no
17977 kfreebsd*-gnu)
17978 version_type=linux
17979 need_lib_prefix=no
17980 need_version=no
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 shlibpath_var=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath=no
17985 hardcode_into_libs=yes
17986 dynamic_linker='GNU ld.so'
17989 freebsd* | dragonfly*)
17990 # DragonFly does not have aout. When/if they implement a new
17991 # versioning mechanism, adjust this.
17992 if test -x /usr/bin/objformat; then
17993 objformat=`/usr/bin/objformat`
17994 else
17995 case $host_os in
17996 freebsd[123]*) objformat=aout ;;
17997 *) objformat=elf ;;
17998 esac
18000 version_type=freebsd-$objformat
18001 case $version_type in
18002 freebsd-elf*)
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18004 need_version=no
18005 need_lib_prefix=no
18007 freebsd-*)
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18009 need_version=yes
18011 esac
18012 shlibpath_var=LD_LIBRARY_PATH
18013 case $host_os in
18014 freebsd2*)
18015 shlibpath_overrides_runpath=yes
18017 freebsd3.[01]* | freebsdelf3.[01]*)
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18023 shlibpath_overrides_runpath=no
18024 hardcode_into_libs=yes
18026 freebsd*) # from 4.6 on
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18030 esac
18033 gnu*)
18034 version_type=linux
18035 need_lib_prefix=no
18036 need_version=no
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 hardcode_into_libs=yes
18043 hpux9* | hpux10* | hpux11*)
18044 # Give a soname corresponding to the major version so that dld.sl refuses to
18045 # link against other versions.
18046 version_type=sunos
18047 need_lib_prefix=no
18048 need_version=no
18049 case $host_cpu in
18050 ia64*)
18051 shrext_cmds='.so'
18052 hardcode_into_libs=yes
18053 dynamic_linker="$host_os dld.so"
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 if test "X$HPUX_IA64_MODE" = X32; then
18059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18060 else
18061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18065 hppa*64*)
18066 shrext_cmds='.sl'
18067 hardcode_into_libs=yes
18068 dynamic_linker="$host_os dld.sl"
18069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18077 shrext_cmds='.sl'
18078 dynamic_linker="$host_os dld.sl"
18079 shlibpath_var=SHLIB_PATH
18080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18084 esac
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086 postinstall_cmds='chmod 555 $lib'
18089 interix3*)
18090 version_type=linux
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 hardcode_into_libs=yes
18101 irix5* | irix6* | nonstopux*)
18102 case $host_os in
18103 nonstopux*) version_type=nonstopux ;;
18105 if test "$lt_cv_prog_gnu_ld" = yes; then
18106 version_type=linux
18107 else
18108 version_type=irix
18109 fi ;;
18110 esac
18111 need_lib_prefix=no
18112 need_version=no
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18115 case $host_os in
18116 irix5* | nonstopux*)
18117 libsuff= shlibsuff=
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122 libsuff= shlibsuff= libmagic=32-bit;;
18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124 libsuff=32 shlibsuff=N32 libmagic=N32;;
18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127 *) libsuff= shlibsuff= libmagic=never-match;;
18128 esac
18130 esac
18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18135 hardcode_into_libs=yes
18138 # No shared lib support for Linux oldld, aout, or coff.
18139 linux*oldld* | linux*aout* | linux*coff*)
18140 dynamic_linker=no
18143 # This must be Linux ELF.
18144 linux*)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs=yes
18158 # find out which ABI we are using
18159 libsuff=
18160 case "$host_cpu" in
18161 x86_64*|s390x*|powerpc64*)
18162 echo '#line 18162 "configure"' > conftest.$ac_ext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>&5
18165 ac_status=$?
18166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; then
18168 case `/usr/bin/file conftest.$ac_objext` in
18169 *64-bit*)
18170 libsuff=64
18171 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18173 esac
18175 rm -rf conftest*
18177 esac
18179 # Append ld.so.conf contents to the search path
18180 if test -f /etc/ld.so.conf; then
18181 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18182 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18185 # We used to test for /lib/ld.so.1 and disable shared libraries on
18186 # powerpc, because MkLinux only supported shared libraries with the
18187 # GNU dynamic linker. Since this was broken with cross compilers,
18188 # most powerpc-linux boxes support dynamic linking these days and
18189 # people can always --disable-shared, the test was removed, and we
18190 # assume the GNU/Linux dynamic linker is in use.
18191 dynamic_linker='GNU/Linux ld.so'
18194 knetbsd*-gnu)
18195 version_type=linux
18196 need_lib_prefix=no
18197 need_version=no
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath=no
18202 hardcode_into_libs=yes
18203 dynamic_linker='GNU ld.so'
18206 netbsd*)
18207 version_type=sunos
18208 need_lib_prefix=no
18209 need_version=no
18210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18213 dynamic_linker='NetBSD (a.out) ld.so'
18214 else
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 dynamic_linker='NetBSD ld.elf_so'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=yes
18221 hardcode_into_libs=yes
18224 newsos6)
18225 version_type=linux
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 shlibpath_var=LD_LIBRARY_PATH
18228 shlibpath_overrides_runpath=yes
18231 nto-qnx*)
18232 version_type=linux
18233 need_lib_prefix=no
18234 need_version=no
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 shlibpath_var=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath=yes
18241 openbsd*)
18242 version_type=sunos
18243 sys_lib_dlsearch_path_spec="/usr/lib"
18244 need_lib_prefix=no
18245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18246 case $host_os in
18247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18248 *) need_version=no ;;
18249 esac
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18254 case $host_os in
18255 openbsd2.[89] | openbsd2.[89].*)
18256 shlibpath_overrides_runpath=no
18259 shlibpath_overrides_runpath=yes
18261 esac
18262 else
18263 shlibpath_overrides_runpath=yes
18267 os2*)
18268 libname_spec='$name'
18269 shrext_cmds=".dll"
18270 need_lib_prefix=no
18271 library_names_spec='$libname${shared_ext} $libname.a'
18272 dynamic_linker='OS/2 ld.exe'
18273 shlibpath_var=LIBPATH
18276 osf3* | osf4* | osf5*)
18277 version_type=osf
18278 need_lib_prefix=no
18279 need_version=no
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 shlibpath_var=LD_LIBRARY_PATH
18283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18287 solaris*)
18288 version_type=linux
18289 need_lib_prefix=no
18290 need_version=no
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath=yes
18295 hardcode_into_libs=yes
18296 # ldd complains unless libraries are executable
18297 postinstall_cmds='chmod +x $lib'
18300 sunos4*)
18301 version_type=sunos
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath=yes
18306 if test "$with_gnu_ld" = yes; then
18307 need_lib_prefix=no
18309 need_version=yes
18312 sysv4 | sysv4.3*)
18313 version_type=linux
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 case $host_vendor in
18318 sni)
18319 shlibpath_overrides_runpath=no
18320 need_lib_prefix=no
18321 export_dynamic_flag_spec='${wl}-Blargedynsym'
18322 runpath_var=LD_RUN_PATH
18324 siemens)
18325 need_lib_prefix=no
18327 motorola)
18328 need_lib_prefix=no
18329 need_version=no
18330 shlibpath_overrides_runpath=no
18331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18333 esac
18336 sysv4*MP*)
18337 if test -d /usr/nec ;then
18338 version_type=linux
18339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18340 soname_spec='$libname${shared_ext}.$major'
18341 shlibpath_var=LD_LIBRARY_PATH
18345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18346 version_type=freebsd-elf
18347 need_lib_prefix=no
18348 need_version=no
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18350 soname_spec='${libname}${release}${shared_ext}$major'
18351 shlibpath_var=LD_LIBRARY_PATH
18352 hardcode_into_libs=yes
18353 if test "$with_gnu_ld" = yes; then
18354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18355 shlibpath_overrides_runpath=no
18356 else
18357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18358 shlibpath_overrides_runpath=yes
18359 case $host_os in
18360 sco3.2v5*)
18361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18363 esac
18365 sys_lib_dlsearch_path_spec='/usr/lib'
18368 uts4*)
18369 version_type=linux
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18376 dynamic_linker=no
18378 esac
18379 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18380 $as_echo "$dynamic_linker" >&6; }
18381 test "$dynamic_linker" = no && can_build_shared=no
18383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18384 if test "$GCC" = yes; then
18385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18388 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18390 hardcode_action_GCJ=
18391 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18392 test -n "$runpath_var_GCJ" || \
18393 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18395 # We can hardcode non-existant directories.
18396 if test "$hardcode_direct_GCJ" != no &&
18397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18398 # have to relink, otherwise we might link with an installed library
18399 # when we should be linking with a yet-to-be-installed one
18400 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18401 test "$hardcode_minus_L_GCJ" != no; then
18402 # Linking always hardcodes the temporary library directory.
18403 hardcode_action_GCJ=relink
18404 else
18405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18406 hardcode_action_GCJ=immediate
18408 else
18409 # We cannot hardcode anything, or else we can only hardcode existing
18410 # directories.
18411 hardcode_action_GCJ=unsupported
18413 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18414 $as_echo "$hardcode_action_GCJ" >&6; }
18416 if test "$hardcode_action_GCJ" = relink; then
18417 # Fast installation is not supported
18418 enable_fast_install=no
18419 elif test "$shlibpath_overrides_runpath" = yes ||
18420 test "$enable_shared" = no; then
18421 # Fast installation is not necessary
18422 enable_fast_install=needless
18426 # The else clause should only fire when bootstrapping the
18427 # libtool distribution, otherwise you forgot to ship ltmain.sh
18428 # with your package, and you will get complaints that there are
18429 # no rules to generate ltmain.sh.
18430 if test -f "$ltmain"; then
18431 # See if we are running on zsh, and set the options which allow our commands through
18432 # without removal of \ escapes.
18433 if test -n "${ZSH_VERSION+set}" ; then
18434 setopt NO_GLOB_SUBST
18436 # Now quote all the things that may contain metacharacters while being
18437 # careful not to overquote the AC_SUBSTed values. We take copies of the
18438 # variables and quote the copies for generation of the libtool script.
18439 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18440 SED SHELL STRIP \
18441 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18442 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18443 deplibs_check_method reload_flag reload_cmds need_locks \
18444 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18445 lt_cv_sys_global_symbol_to_c_name_address \
18446 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18447 old_postinstall_cmds old_postuninstall_cmds \
18448 compiler_GCJ \
18449 CC_GCJ \
18450 LD_GCJ \
18451 lt_prog_compiler_wl_GCJ \
18452 lt_prog_compiler_pic_GCJ \
18453 lt_prog_compiler_static_GCJ \
18454 lt_prog_compiler_no_builtin_flag_GCJ \
18455 export_dynamic_flag_spec_GCJ \
18456 thread_safe_flag_spec_GCJ \
18457 whole_archive_flag_spec_GCJ \
18458 enable_shared_with_static_runtimes_GCJ \
18459 old_archive_cmds_GCJ \
18460 old_archive_from_new_cmds_GCJ \
18461 predep_objects_GCJ \
18462 postdep_objects_GCJ \
18463 predeps_GCJ \
18464 postdeps_GCJ \
18465 compiler_lib_search_path_GCJ \
18466 archive_cmds_GCJ \
18467 archive_expsym_cmds_GCJ \
18468 postinstall_cmds_GCJ \
18469 postuninstall_cmds_GCJ \
18470 old_archive_from_expsyms_cmds_GCJ \
18471 allow_undefined_flag_GCJ \
18472 no_undefined_flag_GCJ \
18473 export_symbols_cmds_GCJ \
18474 hardcode_libdir_flag_spec_GCJ \
18475 hardcode_libdir_flag_spec_ld_GCJ \
18476 hardcode_libdir_separator_GCJ \
18477 hardcode_automatic_GCJ \
18478 module_cmds_GCJ \
18479 module_expsym_cmds_GCJ \
18480 lt_cv_prog_compiler_c_o_GCJ \
18481 exclude_expsyms_GCJ \
18482 include_expsyms_GCJ; do
18484 case $var in
18485 old_archive_cmds_GCJ | \
18486 old_archive_from_new_cmds_GCJ | \
18487 archive_cmds_GCJ | \
18488 archive_expsym_cmds_GCJ | \
18489 module_cmds_GCJ | \
18490 module_expsym_cmds_GCJ | \
18491 old_archive_from_expsyms_cmds_GCJ | \
18492 export_symbols_cmds_GCJ | \
18493 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18494 postinstall_cmds | postuninstall_cmds | \
18495 old_postinstall_cmds | old_postuninstall_cmds | \
18496 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18497 # Double-quote double-evaled strings.
18498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18503 esac
18504 done
18506 case $lt_echo in
18507 *'\$0 --fallback-echo"')
18508 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18510 esac
18512 cfgfile="$ofile"
18514 cat <<__EOF__ >> "$cfgfile"
18515 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18519 # Shell to use when invoking shell scripts.
18520 SHELL=$lt_SHELL
18522 # Whether or not to build shared libraries.
18523 build_libtool_libs=$enable_shared
18525 # Whether or not to build static libraries.
18526 build_old_libs=$enable_static
18528 # Whether or not to add -lc for building shared libraries.
18529 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18531 # Whether or not to disallow shared libs when runtime libs are static
18532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18534 # Whether or not to optimize for fast installation.
18535 fast_install=$enable_fast_install
18537 # The host system.
18538 host_alias=$host_alias
18539 host=$host
18540 host_os=$host_os
18542 # The build system.
18543 build_alias=$build_alias
18544 build=$build
18545 build_os=$build_os
18547 # An echo program that does not interpret backslashes.
18548 echo=$lt_echo
18550 # The archiver.
18551 AR=$lt_AR
18552 AR_FLAGS=$lt_AR_FLAGS
18554 # A C compiler.
18555 LTCC=$lt_LTCC
18557 # LTCC compiler flags.
18558 LTCFLAGS=$lt_LTCFLAGS
18560 # A language-specific compiler.
18561 CC=$lt_compiler_GCJ
18563 # Is the compiler the GNU C compiler?
18564 with_gcc=$GCC_GCJ
18566 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18567 gcc_ver=\`gcc -dumpversion\`
18569 # An ERE matcher.
18570 EGREP=$lt_EGREP
18572 # The linker used to build libraries.
18573 LD=$lt_LD_GCJ
18575 # Whether we need hard or soft links.
18576 LN_S=$lt_LN_S
18578 # A BSD-compatible nm program.
18579 NM=$lt_NM
18581 # A symbol stripping program
18582 STRIP=$lt_STRIP
18584 # Used to examine libraries when file_magic_cmd begins "file"
18585 MAGIC_CMD=$MAGIC_CMD
18587 # Used on cygwin: DLL creation program.
18588 DLLTOOL="$DLLTOOL"
18590 # Used on cygwin: object dumper.
18591 OBJDUMP="$OBJDUMP"
18593 # Used on cygwin: assembler.
18594 AS="$AS"
18596 # The name of the directory that contains temporary libtool files.
18597 objdir=$objdir
18599 # How to create reloadable object files.
18600 reload_flag=$lt_reload_flag
18601 reload_cmds=$lt_reload_cmds
18603 # How to pass a linker flag through the compiler.
18604 wl=$lt_lt_prog_compiler_wl_GCJ
18606 # Object file suffix (normally "o").
18607 objext="$ac_objext"
18609 # Old archive suffix (normally "a").
18610 libext="$libext"
18612 # Shared library suffix (normally ".so").
18613 shrext_cmds='$shrext_cmds'
18615 # Executable file suffix (normally "").
18616 exeext="$exeext"
18618 # Additional compiler flags for building library objects.
18619 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18620 pic_mode=$pic_mode
18622 # What is the maximum length of a command?
18623 max_cmd_len=$lt_cv_sys_max_cmd_len
18625 # Does compiler simultaneously support -c and -o options?
18626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18628 # Must we lock files when doing compilation?
18629 need_locks=$lt_need_locks
18631 # Do we need the lib prefix for modules?
18632 need_lib_prefix=$need_lib_prefix
18634 # Do we need a version for libraries?
18635 need_version=$need_version
18637 # Whether dlopen is supported.
18638 dlopen_support=$enable_dlopen
18640 # Whether dlopen of programs is supported.
18641 dlopen_self=$enable_dlopen_self
18643 # Whether dlopen of statically linked programs is supported.
18644 dlopen_self_static=$enable_dlopen_self_static
18646 # Compiler flag to prevent dynamic linking.
18647 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18649 # Compiler flag to turn off builtin functions.
18650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18652 # Compiler flag to allow reflexive dlopens.
18653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18655 # Compiler flag to generate shared objects directly from archives.
18656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18658 # Compiler flag to generate thread-safe objects.
18659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18661 # Library versioning type.
18662 version_type=$version_type
18664 # Format of library name prefix.
18665 libname_spec=$lt_libname_spec
18667 # List of archive names. First name is the real one, the rest are links.
18668 # The last name is the one that the linker finds with -lNAME.
18669 library_names_spec=$lt_library_names_spec
18671 # The coded name of the library, if different from the real name.
18672 soname_spec=$lt_soname_spec
18674 # Commands used to build and install an old-style archive.
18675 RANLIB=$lt_RANLIB
18676 old_archive_cmds=$lt_old_archive_cmds_GCJ
18677 old_postinstall_cmds=$lt_old_postinstall_cmds
18678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18680 # Create an old-style archive from a shared archive.
18681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18683 # Create a temporary old-style archive to link instead of a shared archive.
18684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18686 # Commands used to build and install a shared archive.
18687 archive_cmds=$lt_archive_cmds_GCJ
18688 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18689 postinstall_cmds=$lt_postinstall_cmds
18690 postuninstall_cmds=$lt_postuninstall_cmds
18692 # Commands used to build a loadable module (assumed same as above if empty)
18693 module_cmds=$lt_module_cmds_GCJ
18694 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18696 # Commands to strip libraries.
18697 old_striplib=$lt_old_striplib
18698 striplib=$lt_striplib
18700 # Dependencies to place before the objects being linked to create a
18701 # shared library.
18702 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18704 # Dependencies to place after the objects being linked to create a
18705 # shared library.
18706 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18708 # Dependencies to place before the objects being linked to create a
18709 # shared library.
18710 predeps=$lt_predeps_GCJ
18712 # Dependencies to place after the objects being linked to create a
18713 # shared library.
18714 postdeps=$lt_postdeps_GCJ
18716 # The library search path used internally by the compiler when linking
18717 # a shared library.
18718 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18720 # Method to check whether dependent libraries are shared objects.
18721 deplibs_check_method=$lt_deplibs_check_method
18723 # Command to use when deplibs_check_method == file_magic.
18724 file_magic_cmd=$lt_file_magic_cmd
18726 # Flag that allows shared libraries with undefined symbols to be built.
18727 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18729 # Flag that forces no undefined symbols.
18730 no_undefined_flag=$lt_no_undefined_flag_GCJ
18732 # Commands used to finish a libtool library installation in a directory.
18733 finish_cmds=$lt_finish_cmds
18735 # Same as above, but a single script fragment to be evaled but not shown.
18736 finish_eval=$lt_finish_eval
18738 # Take the output of nm and produce a listing of raw symbols and C names.
18739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18741 # Transform the output of nm in a proper C declaration
18742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18744 # Transform the output of nm in a C name address pair
18745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18747 # This is the shared library runtime path variable.
18748 runpath_var=$runpath_var
18750 # This is the shared library path variable.
18751 shlibpath_var=$shlibpath_var
18753 # Is shlibpath searched before the hard-coded library search path?
18754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18756 # How to hardcode a shared library path into an executable.
18757 hardcode_action=$hardcode_action_GCJ
18759 # Whether we should hardcode library paths into libraries.
18760 hardcode_into_libs=$hardcode_into_libs
18762 # Flag to hardcode \$libdir into a binary during linking.
18763 # This must work even if \$libdir does not exist.
18764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18766 # If ld is used when linking, flag to hardcode \$libdir into
18767 # a binary during linking. This must work even if \$libdir does
18768 # not exist.
18769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18771 # Whether we need a single -rpath flag with a separated argument.
18772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18775 # resulting binary.
18776 hardcode_direct=$hardcode_direct_GCJ
18778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18779 # resulting binary.
18780 hardcode_minus_L=$hardcode_minus_L_GCJ
18782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18783 # the resulting binary.
18784 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18786 # Set to yes if building a shared library automatically hardcodes DIR into the library
18787 # and all subsequent libraries and executables linked against it.
18788 hardcode_automatic=$hardcode_automatic_GCJ
18790 # Variables whose values should be saved in libtool wrapper scripts and
18791 # restored at relink time.
18792 variables_saved_for_relink="$variables_saved_for_relink"
18794 # Whether libtool must link a program against all its dependency libraries.
18795 link_all_deplibs=$link_all_deplibs_GCJ
18797 # Compile-time system search path for libraries
18798 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18800 # Run-time system search path for libraries
18801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18803 # Fix the shell variable \$srcfile for the compiler.
18804 fix_srcfile_path="$fix_srcfile_path_GCJ"
18806 # Set to yes if exported symbols are required.
18807 always_export_symbols=$always_export_symbols_GCJ
18809 # The commands to list exported symbols.
18810 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18812 # The commands to extract the exported symbol list from a shared archive.
18813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18815 # Symbols that should not be listed in the preloaded symbols.
18816 exclude_expsyms=$lt_exclude_expsyms_GCJ
18818 # Symbols that must always be exported.
18819 include_expsyms=$lt_include_expsyms_GCJ
18821 # ### END LIBTOOL TAG CONFIG: $tagname
18823 __EOF__
18826 else
18827 # If there is no Makefile yet, we rely on a make rule to execute
18828 # `config.status --recheck' to rerun these tests and create the
18829 # libtool script then.
18830 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18831 if test -f "$ltmain_in"; then
18832 test -f Makefile && make "$ltmain"
18837 ac_ext=c
18838 ac_cpp='$CPP $CPPFLAGS'
18839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18843 CC="$lt_save_CC"
18845 else
18846 tagname=""
18853 # Source file extension for RC test sources.
18854 ac_ext=rc
18856 # Object file extension for compiled RC test sources.
18857 objext=o
18858 objext_RC=$objext
18860 # Code to be used in simple compile tests
18861 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18863 # Code to be used in simple link tests
18864 lt_simple_link_test_code="$lt_simple_compile_test_code"
18866 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18868 # If no C compiler was specified, use CC.
18869 LTCC=${LTCC-"$CC"}
18871 # If no C compiler flags were specified, use CFLAGS.
18872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18874 # Allow CC to be a program name with arguments.
18875 compiler=$CC
18878 # save warnings/boilerplate of simple test code
18879 ac_outfile=conftest.$ac_objext
18880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18882 _lt_compiler_boilerplate=`cat conftest.err`
18883 $rm conftest*
18885 ac_outfile=conftest.$ac_objext
18886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18888 _lt_linker_boilerplate=`cat conftest.err`
18889 $rm conftest*
18892 # Allow CC to be a program name with arguments.
18893 lt_save_CC="$CC"
18894 CC=${RC-"windres"}
18895 compiler=$CC
18896 compiler_RC=$CC
18897 for cc_temp in $compiler""; do
18898 case $cc_temp in
18899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18901 \-*) ;;
18902 *) break;;
18903 esac
18904 done
18905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18907 lt_cv_prog_compiler_c_o_RC=yes
18909 # The else clause should only fire when bootstrapping the
18910 # libtool distribution, otherwise you forgot to ship ltmain.sh
18911 # with your package, and you will get complaints that there are
18912 # no rules to generate ltmain.sh.
18913 if test -f "$ltmain"; then
18914 # See if we are running on zsh, and set the options which allow our commands through
18915 # without removal of \ escapes.
18916 if test -n "${ZSH_VERSION+set}" ; then
18917 setopt NO_GLOB_SUBST
18919 # Now quote all the things that may contain metacharacters while being
18920 # careful not to overquote the AC_SUBSTed values. We take copies of the
18921 # variables and quote the copies for generation of the libtool script.
18922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18923 SED SHELL STRIP \
18924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18926 deplibs_check_method reload_flag reload_cmds need_locks \
18927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18928 lt_cv_sys_global_symbol_to_c_name_address \
18929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18930 old_postinstall_cmds old_postuninstall_cmds \
18931 compiler_RC \
18932 CC_RC \
18933 LD_RC \
18934 lt_prog_compiler_wl_RC \
18935 lt_prog_compiler_pic_RC \
18936 lt_prog_compiler_static_RC \
18937 lt_prog_compiler_no_builtin_flag_RC \
18938 export_dynamic_flag_spec_RC \
18939 thread_safe_flag_spec_RC \
18940 whole_archive_flag_spec_RC \
18941 enable_shared_with_static_runtimes_RC \
18942 old_archive_cmds_RC \
18943 old_archive_from_new_cmds_RC \
18944 predep_objects_RC \
18945 postdep_objects_RC \
18946 predeps_RC \
18947 postdeps_RC \
18948 compiler_lib_search_path_RC \
18949 archive_cmds_RC \
18950 archive_expsym_cmds_RC \
18951 postinstall_cmds_RC \
18952 postuninstall_cmds_RC \
18953 old_archive_from_expsyms_cmds_RC \
18954 allow_undefined_flag_RC \
18955 no_undefined_flag_RC \
18956 export_symbols_cmds_RC \
18957 hardcode_libdir_flag_spec_RC \
18958 hardcode_libdir_flag_spec_ld_RC \
18959 hardcode_libdir_separator_RC \
18960 hardcode_automatic_RC \
18961 module_cmds_RC \
18962 module_expsym_cmds_RC \
18963 lt_cv_prog_compiler_c_o_RC \
18964 exclude_expsyms_RC \
18965 include_expsyms_RC; do
18967 case $var in
18968 old_archive_cmds_RC | \
18969 old_archive_from_new_cmds_RC | \
18970 archive_cmds_RC | \
18971 archive_expsym_cmds_RC | \
18972 module_cmds_RC | \
18973 module_expsym_cmds_RC | \
18974 old_archive_from_expsyms_cmds_RC | \
18975 export_symbols_cmds_RC | \
18976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18977 postinstall_cmds | postuninstall_cmds | \
18978 old_postinstall_cmds | old_postuninstall_cmds | \
18979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18980 # Double-quote double-evaled strings.
18981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18986 esac
18987 done
18989 case $lt_echo in
18990 *'\$0 --fallback-echo"')
18991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18993 esac
18995 cfgfile="$ofile"
18997 cat <<__EOF__ >> "$cfgfile"
18998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19002 # Shell to use when invoking shell scripts.
19003 SHELL=$lt_SHELL
19005 # Whether or not to build shared libraries.
19006 build_libtool_libs=$enable_shared
19008 # Whether or not to build static libraries.
19009 build_old_libs=$enable_static
19011 # Whether or not to add -lc for building shared libraries.
19012 build_libtool_need_lc=$archive_cmds_need_lc_RC
19014 # Whether or not to disallow shared libs when runtime libs are static
19015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19017 # Whether or not to optimize for fast installation.
19018 fast_install=$enable_fast_install
19020 # The host system.
19021 host_alias=$host_alias
19022 host=$host
19023 host_os=$host_os
19025 # The build system.
19026 build_alias=$build_alias
19027 build=$build
19028 build_os=$build_os
19030 # An echo program that does not interpret backslashes.
19031 echo=$lt_echo
19033 # The archiver.
19034 AR=$lt_AR
19035 AR_FLAGS=$lt_AR_FLAGS
19037 # A C compiler.
19038 LTCC=$lt_LTCC
19040 # LTCC compiler flags.
19041 LTCFLAGS=$lt_LTCFLAGS
19043 # A language-specific compiler.
19044 CC=$lt_compiler_RC
19046 # Is the compiler the GNU C compiler?
19047 with_gcc=$GCC_RC
19049 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19050 gcc_ver=\`gcc -dumpversion\`
19052 # An ERE matcher.
19053 EGREP=$lt_EGREP
19055 # The linker used to build libraries.
19056 LD=$lt_LD_RC
19058 # Whether we need hard or soft links.
19059 LN_S=$lt_LN_S
19061 # A BSD-compatible nm program.
19062 NM=$lt_NM
19064 # A symbol stripping program
19065 STRIP=$lt_STRIP
19067 # Used to examine libraries when file_magic_cmd begins "file"
19068 MAGIC_CMD=$MAGIC_CMD
19070 # Used on cygwin: DLL creation program.
19071 DLLTOOL="$DLLTOOL"
19073 # Used on cygwin: object dumper.
19074 OBJDUMP="$OBJDUMP"
19076 # Used on cygwin: assembler.
19077 AS="$AS"
19079 # The name of the directory that contains temporary libtool files.
19080 objdir=$objdir
19082 # How to create reloadable object files.
19083 reload_flag=$lt_reload_flag
19084 reload_cmds=$lt_reload_cmds
19086 # How to pass a linker flag through the compiler.
19087 wl=$lt_lt_prog_compiler_wl_RC
19089 # Object file suffix (normally "o").
19090 objext="$ac_objext"
19092 # Old archive suffix (normally "a").
19093 libext="$libext"
19095 # Shared library suffix (normally ".so").
19096 shrext_cmds='$shrext_cmds'
19098 # Executable file suffix (normally "").
19099 exeext="$exeext"
19101 # Additional compiler flags for building library objects.
19102 pic_flag=$lt_lt_prog_compiler_pic_RC
19103 pic_mode=$pic_mode
19105 # What is the maximum length of a command?
19106 max_cmd_len=$lt_cv_sys_max_cmd_len
19108 # Does compiler simultaneously support -c and -o options?
19109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19111 # Must we lock files when doing compilation?
19112 need_locks=$lt_need_locks
19114 # Do we need the lib prefix for modules?
19115 need_lib_prefix=$need_lib_prefix
19117 # Do we need a version for libraries?
19118 need_version=$need_version
19120 # Whether dlopen is supported.
19121 dlopen_support=$enable_dlopen
19123 # Whether dlopen of programs is supported.
19124 dlopen_self=$enable_dlopen_self
19126 # Whether dlopen of statically linked programs is supported.
19127 dlopen_self_static=$enable_dlopen_self_static
19129 # Compiler flag to prevent dynamic linking.
19130 link_static_flag=$lt_lt_prog_compiler_static_RC
19132 # Compiler flag to turn off builtin functions.
19133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19135 # Compiler flag to allow reflexive dlopens.
19136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19138 # Compiler flag to generate shared objects directly from archives.
19139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19141 # Compiler flag to generate thread-safe objects.
19142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19144 # Library versioning type.
19145 version_type=$version_type
19147 # Format of library name prefix.
19148 libname_spec=$lt_libname_spec
19150 # List of archive names. First name is the real one, the rest are links.
19151 # The last name is the one that the linker finds with -lNAME.
19152 library_names_spec=$lt_library_names_spec
19154 # The coded name of the library, if different from the real name.
19155 soname_spec=$lt_soname_spec
19157 # Commands used to build and install an old-style archive.
19158 RANLIB=$lt_RANLIB
19159 old_archive_cmds=$lt_old_archive_cmds_RC
19160 old_postinstall_cmds=$lt_old_postinstall_cmds
19161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19163 # Create an old-style archive from a shared archive.
19164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19166 # Create a temporary old-style archive to link instead of a shared archive.
19167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19169 # Commands used to build and install a shared archive.
19170 archive_cmds=$lt_archive_cmds_RC
19171 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19172 postinstall_cmds=$lt_postinstall_cmds
19173 postuninstall_cmds=$lt_postuninstall_cmds
19175 # Commands used to build a loadable module (assumed same as above if empty)
19176 module_cmds=$lt_module_cmds_RC
19177 module_expsym_cmds=$lt_module_expsym_cmds_RC
19179 # Commands to strip libraries.
19180 old_striplib=$lt_old_striplib
19181 striplib=$lt_striplib
19183 # Dependencies to place before the objects being linked to create a
19184 # shared library.
19185 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19187 # Dependencies to place after the objects being linked to create a
19188 # shared library.
19189 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19191 # Dependencies to place before the objects being linked to create a
19192 # shared library.
19193 predeps=$lt_predeps_RC
19195 # Dependencies to place after the objects being linked to create a
19196 # shared library.
19197 postdeps=$lt_postdeps_RC
19199 # The library search path used internally by the compiler when linking
19200 # a shared library.
19201 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19203 # Method to check whether dependent libraries are shared objects.
19204 deplibs_check_method=$lt_deplibs_check_method
19206 # Command to use when deplibs_check_method == file_magic.
19207 file_magic_cmd=$lt_file_magic_cmd
19209 # Flag that allows shared libraries with undefined symbols to be built.
19210 allow_undefined_flag=$lt_allow_undefined_flag_RC
19212 # Flag that forces no undefined symbols.
19213 no_undefined_flag=$lt_no_undefined_flag_RC
19215 # Commands used to finish a libtool library installation in a directory.
19216 finish_cmds=$lt_finish_cmds
19218 # Same as above, but a single script fragment to be evaled but not shown.
19219 finish_eval=$lt_finish_eval
19221 # Take the output of nm and produce a listing of raw symbols and C names.
19222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19224 # Transform the output of nm in a proper C declaration
19225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19227 # Transform the output of nm in a C name address pair
19228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19230 # This is the shared library runtime path variable.
19231 runpath_var=$runpath_var
19233 # This is the shared library path variable.
19234 shlibpath_var=$shlibpath_var
19236 # Is shlibpath searched before the hard-coded library search path?
19237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19239 # How to hardcode a shared library path into an executable.
19240 hardcode_action=$hardcode_action_RC
19242 # Whether we should hardcode library paths into libraries.
19243 hardcode_into_libs=$hardcode_into_libs
19245 # Flag to hardcode \$libdir into a binary during linking.
19246 # This must work even if \$libdir does not exist.
19247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19249 # If ld is used when linking, flag to hardcode \$libdir into
19250 # a binary during linking. This must work even if \$libdir does
19251 # not exist.
19252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19254 # Whether we need a single -rpath flag with a separated argument.
19255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19258 # resulting binary.
19259 hardcode_direct=$hardcode_direct_RC
19261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19262 # resulting binary.
19263 hardcode_minus_L=$hardcode_minus_L_RC
19265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19266 # the resulting binary.
19267 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19269 # Set to yes if building a shared library automatically hardcodes DIR into the library
19270 # and all subsequent libraries and executables linked against it.
19271 hardcode_automatic=$hardcode_automatic_RC
19273 # Variables whose values should be saved in libtool wrapper scripts and
19274 # restored at relink time.
19275 variables_saved_for_relink="$variables_saved_for_relink"
19277 # Whether libtool must link a program against all its dependency libraries.
19278 link_all_deplibs=$link_all_deplibs_RC
19280 # Compile-time system search path for libraries
19281 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19283 # Run-time system search path for libraries
19284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19286 # Fix the shell variable \$srcfile for the compiler.
19287 fix_srcfile_path="$fix_srcfile_path_RC"
19289 # Set to yes if exported symbols are required.
19290 always_export_symbols=$always_export_symbols_RC
19292 # The commands to list exported symbols.
19293 export_symbols_cmds=$lt_export_symbols_cmds_RC
19295 # The commands to extract the exported symbol list from a shared archive.
19296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19298 # Symbols that should not be listed in the preloaded symbols.
19299 exclude_expsyms=$lt_exclude_expsyms_RC
19301 # Symbols that must always be exported.
19302 include_expsyms=$lt_include_expsyms_RC
19304 # ### END LIBTOOL TAG CONFIG: $tagname
19306 __EOF__
19309 else
19310 # If there is no Makefile yet, we rely on a make rule to execute
19311 # `config.status --recheck' to rerun these tests and create the
19312 # libtool script then.
19313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19314 if test -f "$ltmain_in"; then
19315 test -f Makefile && make "$ltmain"
19320 ac_ext=c
19321 ac_cpp='$CPP $CPPFLAGS'
19322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19326 CC="$lt_save_CC"
19331 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19332 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19333 { (exit 1); exit 1; }; }
19335 esac
19337 # Append the new tag name to the list of available tags.
19338 if test -n "$tagname" ; then
19339 available_tags="$available_tags $tagname"
19342 done
19343 IFS="$lt_save_ifs"
19345 # Now substitute the updated list of available tags.
19346 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19347 mv "${ofile}T" "$ofile"
19348 chmod +x "$ofile"
19349 else
19350 rm -f "${ofile}T"
19351 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19352 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19353 { (exit 1); exit 1; }; }
19359 # This can be used to rebuild libtool when needed
19360 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19362 # Always use our own libtool.
19363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19365 # Prevent multiple expansion
19387 # Make sure we can run config.sub.
19388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
19389 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
19390 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
19391 { (exit 1); exit 1; }; }
19393 { $as_echo "$as_me:$LINENO: checking build system type" >&5
19394 $as_echo_n "checking build system type... " >&6; }
19395 if test "${ac_cv_build+set}" = set; then
19396 $as_echo_n "(cached) " >&6
19397 else
19398 ac_build_alias=$build_alias
19399 test "x$ac_build_alias" = x &&
19400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
19401 test "x$ac_build_alias" = x &&
19402 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
19403 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
19404 { (exit 1); exit 1; }; }
19405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
19406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
19407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
19408 { (exit 1); exit 1; }; }
19411 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
19412 $as_echo "$ac_cv_build" >&6; }
19413 case $ac_cv_build in
19414 *-*-*) ;;
19415 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
19416 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
19417 { (exit 1); exit 1; }; };;
19418 esac
19419 build=$ac_cv_build
19420 ac_save_IFS=$IFS; IFS='-'
19421 set x $ac_cv_build
19422 shift
19423 build_cpu=$1
19424 build_vendor=$2
19425 shift; shift
19426 # Remember, the first character of IFS is used to create $*,
19427 # except with old shells:
19428 build_os=$*
19429 IFS=$ac_save_IFS
19430 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
19433 { $as_echo "$as_me:$LINENO: checking host system type" >&5
19434 $as_echo_n "checking host system type... " >&6; }
19435 if test "${ac_cv_host+set}" = set; then
19436 $as_echo_n "(cached) " >&6
19437 else
19438 if test "x$host_alias" = x; then
19439 ac_cv_host=$ac_cv_build
19440 else
19441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19442 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19443 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19444 { (exit 1); exit 1; }; }
19448 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19449 $as_echo "$ac_cv_host" >&6; }
19450 case $ac_cv_host in
19451 *-*-*) ;;
19452 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19453 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
19454 { (exit 1); exit 1; }; };;
19455 esac
19456 host=$ac_cv_host
19457 ac_save_IFS=$IFS; IFS='-'
19458 set x $ac_cv_host
19459 shift
19460 host_cpu=$1
19461 host_vendor=$2
19462 shift; shift
19463 # Remember, the first character of IFS is used to create $*,
19464 # except with old shells:
19465 host_os=$*
19466 IFS=$ac_save_IFS
19467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19471 OBJECT_MODE=
19472 # Checks for programs.
19473 { $as_echo "$as_me:$LINENO: checking compiler flags required for compiling ANTLR with $CC C compiler on host $host" >&5
19474 $as_echo_n "checking compiler flags required for compiling ANTLR with $CC C compiler on host $host... " >&6; }
19475 WARNFLAGS=
19476 case $CC in
19477 xlc*)
19478 CPPCMNTFLAGS="-qcpluscmt"
19479 if test x"$enable_64bit" = xyes; then
19480 CCFLAGS64="-q64 -Wl,-b64"
19481 OBJECT_MODE="64"
19482 else
19483 OBJECT_MODE="32"
19485 OPTIMFLAGS="-O2"
19486 if test x"$enable_debuginfo" = xyes; then
19487 DEBUGFLAGS="-g"
19491 aCC*)
19492 CPPCMNTFLAGS=
19493 if test x"$enable_64bit" = xyes; then
19494 CCFLAGS64="+DD64"
19496 OPTIMFLAGS="-O"
19497 if test $DEBUGINF = 1; then
19498 DEBUGFLAGS="-g"
19502 gcc*)
19503 CPPCMNTFLAGS=
19504 if test x"$enable_64bit" = xyes; then
19505 GCCABIFLAGS="-m64"
19506 else
19507 GCCABIFLAGS="-m32"
19509 if test x"$enable_abiflags" = xyes; then
19510 CCFLAGS64=$GCCABIFLAGS
19512 OPTIMFLAGS="-O2"
19513 if test x"$enable_debuginfo" = xyes; then
19514 DEBUGFLAGS="-g"
19516 WARNFLAGS=-Wall
19521 case $host in
19522 sparc*-*solaris*)
19523 CPPCMNTFLAGS=
19524 if test x"$enable_64bit" = xyes; then
19525 CCFLAGS64="-fast -xtarget=ultra4 -m64 -xarch=sparcvis"
19527 OPTIMFLAGS="-O"
19528 if test x"$enable_debuginfo" = xyes; then
19529 DEBUGFLAGS='-g'
19534 CPPCMNTFLAGS=
19535 CCFLAGS64=
19536 OPTIMFLAGS="-O"
19537 if test x"$enable_debuginfo" = xyes; then
19538 DEBUGFLAGS='-g'
19541 esac
19544 esac
19546 CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
19547 { $as_echo "$as_me:$LINENO: result: $CFLAGS" >&5
19548 $as_echo "$CFLAGS" >&6; }
19551 if test "x$enable_antlrdebug" = xno; then
19553 cat >>confdefs.h <<\_ACEOF
19554 #define ANTLR3_NODEBUGGER 1
19555 _ACEOF
19559 if test x"$enable_64bit" = xyes; then
19561 cat >>confdefs.h <<\_ACEOF
19562 #define ANTLR3_USE_64BIT 1
19563 _ACEOF
19568 # Find a good install program. We prefer a C program (faster),
19569 # so one script is as good as another. But avoid the broken or
19570 # incompatible versions:
19571 # SysV /etc/install, /usr/sbin/install
19572 # SunOS /usr/etc/install
19573 # IRIX /sbin/install
19574 # AIX /bin/install
19575 # AmigaOS /C/install, which installs bootblocks on floppy discs
19576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19579 # OS/2's system install, which has a completely different semantic
19580 # ./install, which can be erroneously created by make from ./install.sh.
19581 # Reject install programs that cannot install multiple files.
19582 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19584 if test -z "$INSTALL"; then
19585 if test "${ac_cv_path_install+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19587 else
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19591 IFS=$as_save_IFS
19592 test -z "$as_dir" && as_dir=.
19593 # Account for people who put trailing slashes in PATH elements.
19594 case $as_dir/ in
19595 ./ | .// | /cC/* | \
19596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19597 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19598 /usr/ucb/* ) ;;
19600 # OSF1 and SCO ODT 3.0 have their own names for install.
19601 # Don't use installbsd from OSF since it installs stuff as root
19602 # by default.
19603 for ac_prog in ginstall scoinst install; do
19604 for ac_exec_ext in '' $ac_executable_extensions; do
19605 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19606 if test $ac_prog = install &&
19607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19608 # AIX install. It has an incompatible calling convention.
19610 elif test $ac_prog = install &&
19611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19612 # program-specific install script used by HP pwplus--don't use.
19614 else
19615 rm -rf conftest.one conftest.two conftest.dir
19616 echo one > conftest.one
19617 echo two > conftest.two
19618 mkdir conftest.dir
19619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19620 test -s conftest.one && test -s conftest.two &&
19621 test -s conftest.dir/conftest.one &&
19622 test -s conftest.dir/conftest.two
19623 then
19624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19625 break 3
19629 done
19630 done
19632 esac
19634 done
19635 IFS=$as_save_IFS
19637 rm -rf conftest.one conftest.two conftest.dir
19640 if test "${ac_cv_path_install+set}" = set; then
19641 INSTALL=$ac_cv_path_install
19642 else
19643 # As a last resort, use the slow shell script. Don't cache a
19644 # value for INSTALL within a source directory, because that will
19645 # break other packages using the cache if that directory is
19646 # removed, or if the value is a relative name.
19647 INSTALL=$ac_install_sh
19650 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19651 $as_echo "$INSTALL" >&6; }
19653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19654 # It thinks the first close brace ends the variable substitution.
19655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19661 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19662 $as_echo_n "checking whether ln -s works... " >&6; }
19663 LN_S=$as_ln_s
19664 if test "$LN_S" = "ln -s"; then
19665 { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19667 else
19668 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19669 $as_echo "no, using $LN_S" >&6; }
19672 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19674 set x ${MAKE-make}
19675 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19676 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19677 $as_echo_n "(cached) " >&6
19678 else
19679 cat >conftest.make <<\_ACEOF
19680 SHELL = /bin/sh
19681 all:
19682 @echo '@@@%%%=$(MAKE)=@@@%%%'
19683 _ACEOF
19684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19685 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19686 *@@@%%%=?*=@@@%%%*)
19687 eval ac_cv_prog_make_${ac_make}_set=yes;;
19689 eval ac_cv_prog_make_${ac_make}_set=no;;
19690 esac
19691 rm -f conftest.make
19693 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19694 { $as_echo "$as_me:$LINENO: result: yes" >&5
19695 $as_echo "yes" >&6; }
19696 SET_MAKE=
19697 else
19698 { $as_echo "$as_me:$LINENO: result: no" >&5
19699 $as_echo "no" >&6; }
19700 SET_MAKE="MAKE=${MAKE-make}"
19704 # Checks for libraries.
19706 # Checks for header files.
19707 $ac_includes_default
19713 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
19715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 $as_echo_n "checking for $ac_header... " >&6; }
19718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719 $as_echo_n "(cached) " >&6
19720 else
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #ifdef HAVE_SYS_TYPES_H
19728 # include <sys/types.h>
19729 #endif
19730 #ifdef HAVE_NETINET_IN_H
19731 # include <netinet/in.h> /* inet_ functions / structs */
19732 #endif
19733 #ifdef HAVE_ARPA_NAMESER_H
19734 # include <arpa/nameser.h> /* DNS HEADER struct */
19735 #endif
19736 #ifdef HAVE_NETDB_H
19737 # include <netdb.h>
19738 #endif
19740 #include <$ac_header>
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747 esac
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750 (eval "$ac_compile") 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest.$ac_objext; then
19760 eval "$as_ac_Header=yes"
19761 else
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 eval "$as_ac_Header=no"
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 ac_res=`eval 'as_val=${'$as_ac_Header'}
19771 $as_echo "$as_val"'`
19772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19773 $as_echo "$ac_res" >&6; }
19774 as_val=`eval 'as_val=${'$as_ac_Header'}
19775 $as_echo "$as_val"'`
19776 if test "x$as_val" = x""yes; then
19777 cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779 _ACEOF
19783 done
19788 for ac_header in sys/malloc.h malloc.h
19790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19792 $as_echo_n "checking for $ac_header... " >&6; }
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 $as_echo_n "(cached) " >&6
19795 else
19796 cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h. */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 #ifdef HAVE_SYS_MALLOC_H
19803 #include <sys/malloc.h>
19804 #endif
19805 #ifdef HAVE_MALLOC_H
19806 #include <malloc.h>
19807 #endif
19810 #include <$ac_header>
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
19830 eval "$as_ac_Header=yes"
19831 else
19832 $as_echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 eval "$as_ac_Header=no"
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 ac_res=`eval 'as_val=${'$as_ac_Header'}
19841 $as_echo "$as_val"'`
19842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19843 $as_echo "$ac_res" >&6; }
19844 as_val=`eval 'as_val=${'$as_ac_Header'}
19845 $as_echo "$as_val"'`
19846 if test "x$as_val" = x""yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 _ACEOF
19853 done
19856 for ac_header in stdarg.h
19858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 $as_echo_n "checking for $ac_header... " >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 $as_echo_n "(cached) " >&6
19863 else
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #ifdef HAVE_STDARG_H
19871 #include <stdarg.h>
19872 #endif
19875 #include <$ac_header>
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19882 esac
19883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19884 $as_echo "$ac_try_echo") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 eval "$as_ac_Header=yes"
19896 else
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 eval "$as_ac_Header=no"
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 ac_res=`eval 'as_val=${'$as_ac_Header'}
19906 $as_echo "$as_val"'`
19907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19908 $as_echo "$ac_res" >&6; }
19909 as_val=`eval 'as_val=${'$as_ac_Header'}
19910 $as_echo "$as_val"'`
19911 if test "x$as_val" = x""yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19914 _ACEOF
19918 done
19922 for ac_header in sys/stat.h
19924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 $as_echo_n "checking for $ac_header... " >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928 $as_echo_n "(cached) " >&6
19929 else
19930 cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h. */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #ifdef HAVE_SYS_STAT_H
19937 #include <sys/stat.h>
19938 #endif
19941 #include <$ac_header>
19942 _ACEOF
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19952 ac_status=$?
19953 grep -v '^ *+' conftest.er1 >conftest.err
19954 rm -f conftest.er1
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest.$ac_objext; then
19961 eval "$as_ac_Header=yes"
19962 else
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 eval "$as_ac_Header=no"
19969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19971 ac_res=`eval 'as_val=${'$as_ac_Header'}
19972 $as_echo "$as_val"'`
19973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975 as_val=`eval 'as_val=${'$as_ac_Header'}
19976 $as_echo "$as_val"'`
19977 if test "x$as_val" = x""yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 _ACEOF
19984 done
19988 for ac_header in ctype.h
19990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19992 $as_echo_n "checking for $ac_header... " >&6; }
19993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19994 $as_echo_n "(cached) " >&6
19995 else
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #ifdef HAVE_CTYPE_H
20003 #include <ctype.h>
20004 #endif
20007 #include <$ac_header>
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20016 $as_echo "$ac_try_echo") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest.$ac_objext; then
20027 eval "$as_ac_Header=yes"
20028 else
20029 $as_echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 eval "$as_ac_Header=no"
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 ac_res=`eval 'as_val=${'$as_ac_Header'}
20038 $as_echo "$as_val"'`
20039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20040 $as_echo "$ac_res" >&6; }
20041 as_val=`eval 'as_val=${'$as_ac_Header'}
20042 $as_echo "$as_val"'`
20043 if test "x$as_val" = x""yes; then
20044 cat >>confdefs.h <<_ACEOF
20045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20046 _ACEOF
20050 done
20054 for ac_header in netinet/tcp.h
20056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20058 $as_echo_n "checking for $ac_header... " >&6; }
20059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20060 $as_echo_n "(cached) " >&6
20061 else
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #ifdef HAVE_NETINET_TCP_H
20069 #include <netinet/tcp.h>
20070 #endif
20073 #include <$ac_header>
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080 esac
20081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.$ac_objext; then
20093 eval "$as_ac_Header=yes"
20094 else
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 eval "$as_ac_Header=no"
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20103 ac_res=`eval 'as_val=${'$as_ac_Header'}
20104 $as_echo "$as_val"'`
20105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20106 $as_echo "$ac_res" >&6; }
20107 as_val=`eval 'as_val=${'$as_ac_Header'}
20108 $as_echo "$as_val"'`
20109 if test "x$as_val" = x""yes; then
20110 cat >>confdefs.h <<_ACEOF
20111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20112 _ACEOF
20116 done
20121 for ac_header in sys/socket.h socket.h
20123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 $as_echo_n "checking for $ac_header... " >&6; }
20126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20127 $as_echo_n "(cached) " >&6
20128 else
20129 cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h. */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #ifdef HAVE_SYS_SOCKET_H
20136 #include <sys/socket.h>
20137 #endif
20138 #ifdef HAVE_SOCKET_H
20139 #include <socket.h>
20140 #endif
20143 #include <$ac_header>
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 eval "$as_ac_Header=yes"
20164 else
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 eval "$as_ac_Header=no"
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 ac_res=`eval 'as_val=${'$as_ac_Header'}
20174 $as_echo "$as_val"'`
20175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20176 $as_echo "$ac_res" >&6; }
20177 as_val=`eval 'as_val=${'$as_ac_Header'}
20178 $as_echo "$as_val"'`
20179 if test "x$as_val" = x""yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 _ACEOF
20186 done
20189 # Checks for typedefs, structures, and compiler characteristics.
20190 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20191 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20192 if test "${ac_cv_c_const+set}" = set; then
20193 $as_echo_n "(cached) " >&6
20194 else
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h. */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20203 main ()
20205 /* FIXME: Include the comments suggested by Paul. */
20206 #ifndef __cplusplus
20207 /* Ultrix mips cc rejects this. */
20208 typedef int charset[2];
20209 const charset cs;
20210 /* SunOS 4.1.1 cc rejects this. */
20211 char const *const *pcpcc;
20212 char **ppc;
20213 /* NEC SVR4.0.2 mips cc rejects this. */
20214 struct point {int x, y;};
20215 static struct point const zero = {0,0};
20216 /* AIX XL C 1.02.0.0 rejects this.
20217 It does not let you subtract one const X* pointer from another in
20218 an arm of an if-expression whose if-part is not a constant
20219 expression */
20220 const char *g = "string";
20221 pcpcc = &g + (g ? g-g : 0);
20222 /* HPUX 7.0 cc rejects these. */
20223 ++pcpcc;
20224 ppc = (char**) pcpcc;
20225 pcpcc = (char const *const *) ppc;
20226 { /* SCO 3.2v4 cc rejects this. */
20227 char *t;
20228 char const *s = 0 ? (char *) 0 : (char const *) 0;
20230 *t++ = 0;
20231 if (s) return 0;
20233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20234 int x[] = {25, 17};
20235 const int *foo = &x[0];
20236 ++foo;
20238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20239 typedef const int *iptr;
20240 iptr p = 0;
20241 ++p;
20243 { /* AIX XL C 1.02.0.0 rejects this saying
20244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20245 struct s { int j; const int *ap[3]; };
20246 struct s *b; b->j = 5;
20248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20249 const int foo = 10;
20250 if (!foo) return 0;
20252 return !cs[0] && !zero.x;
20253 #endif
20256 return 0;
20258 _ACEOF
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20266 $as_echo "$ac_try_echo") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.$ac_objext; then
20277 ac_cv_c_const=yes
20278 else
20279 $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_c_const=no
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20288 $as_echo "$ac_cv_c_const" >&6; }
20289 if test $ac_cv_c_const = no; then
20291 cat >>confdefs.h <<\_ACEOF
20292 #define const /**/
20293 _ACEOF
20297 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20298 $as_echo_n "checking for size_t... " >&6; }
20299 if test "${ac_cv_type_size_t+set}" = set; then
20300 $as_echo_n "(cached) " >&6
20301 else
20302 ac_cv_type_size_t=no
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20311 main ()
20313 if (sizeof (size_t))
20314 return 0;
20316 return 0;
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20345 main ()
20347 if (sizeof ((size_t)))
20348 return 0;
20350 return 0;
20352 _ACEOF
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest.$ac_objext; then
20372 else
20373 $as_echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_cv_type_size_t=yes
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 else
20381 $as_echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20390 $as_echo "$ac_cv_type_size_t" >&6; }
20391 if test "x$ac_cv_type_size_t" = x""yes; then
20393 else
20395 cat >>confdefs.h <<_ACEOF
20396 #define size_t unsigned int
20397 _ACEOF
20402 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
20403 $as_echo_n "checking for int8_t... " >&6; }
20404 if test "${ac_cv_c_int8_t+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20406 else
20407 ac_cv_c_int8_t=no
20408 for ac_type in 'int8_t' 'int' 'long int' \
20409 'long long int' 'short int' 'signed char'; do
20410 cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h. */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20418 main ()
20420 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
20421 test_array [0] = 0
20424 return 0;
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432 esac
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_compile") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest.$ac_objext; then
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 $ac_includes_default
20453 main ()
20455 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
20456 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
20457 test_array [0] = 0
20460 return 0;
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471 (eval "$ac_compile") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest.$ac_objext; then
20482 else
20483 $as_echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 case $ac_type in
20487 int8_t) ac_cv_c_int8_t=yes ;;
20488 *) ac_cv_c_int8_t=$ac_type ;;
20489 esac
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 else
20495 $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 test "$ac_cv_c_int8_t" != no && break
20503 done
20505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
20506 $as_echo "$ac_cv_c_int8_t" >&6; }
20507 case $ac_cv_c_int8_t in #(
20508 no|yes) ;; #(
20511 cat >>confdefs.h <<_ACEOF
20512 #define int8_t $ac_cv_c_int8_t
20513 _ACEOF
20515 esac
20518 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
20519 $as_echo_n "checking for int16_t... " >&6; }
20520 if test "${ac_cv_c_int16_t+set}" = set; then
20521 $as_echo_n "(cached) " >&6
20522 else
20523 ac_cv_c_int16_t=no
20524 for ac_type in 'int16_t' 'int' 'long int' \
20525 'long long int' 'short int' 'signed char'; do
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h. */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 $ac_includes_default
20534 main ()
20536 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
20537 test_array [0] = 0
20540 return 0;
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20550 $as_echo "$ac_try_echo") >&5
20551 (eval "$ac_compile") 2>conftest.er1
20552 ac_status=$?
20553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
20556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } && {
20558 test -z "$ac_c_werror_flag" ||
20559 test ! -s conftest.err
20560 } && test -s conftest.$ac_objext; then
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 $ac_includes_default
20569 main ()
20571 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
20572 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
20573 test_array [0] = 0
20576 return 0;
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584 esac
20585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20586 $as_echo "$ac_try_echo") >&5
20587 (eval "$ac_compile") 2>conftest.er1
20588 ac_status=$?
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
20592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_c_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest.$ac_objext; then
20598 else
20599 $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 case $ac_type in
20603 int16_t) ac_cv_c_int16_t=yes ;;
20604 *) ac_cv_c_int16_t=$ac_type ;;
20605 esac
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 else
20611 $as_echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 test "$ac_cv_c_int16_t" != no && break
20619 done
20621 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
20622 $as_echo "$ac_cv_c_int16_t" >&6; }
20623 case $ac_cv_c_int16_t in #(
20624 no|yes) ;; #(
20627 cat >>confdefs.h <<_ACEOF
20628 #define int16_t $ac_cv_c_int16_t
20629 _ACEOF
20631 esac
20634 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
20635 $as_echo_n "checking for int32_t... " >&6; }
20636 if test "${ac_cv_c_int32_t+set}" = set; then
20637 $as_echo_n "(cached) " >&6
20638 else
20639 ac_cv_c_int32_t=no
20640 for ac_type in 'int32_t' 'int' 'long int' \
20641 'long long int' 'short int' 'signed char'; do
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h. */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 $ac_includes_default
20650 main ()
20652 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
20653 test_array [0] = 0
20656 return 0;
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20666 $as_echo "$ac_try_echo") >&5
20667 (eval "$ac_compile") 2>conftest.er1
20668 ac_status=$?
20669 grep -v '^ *+' conftest.er1 >conftest.err
20670 rm -f conftest.er1
20671 cat conftest.err >&5
20672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } && {
20674 test -z "$ac_c_werror_flag" ||
20675 test ! -s conftest.err
20676 } && test -s conftest.$ac_objext; then
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 $ac_includes_default
20685 main ()
20687 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
20688 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
20689 test_array [0] = 0
20692 return 0;
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700 esac
20701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20702 $as_echo "$ac_try_echo") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest.$ac_objext; then
20714 else
20715 $as_echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 case $ac_type in
20719 int32_t) ac_cv_c_int32_t=yes ;;
20720 *) ac_cv_c_int32_t=$ac_type ;;
20721 esac
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 else
20727 $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 test "$ac_cv_c_int32_t" != no && break
20735 done
20737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
20738 $as_echo "$ac_cv_c_int32_t" >&6; }
20739 case $ac_cv_c_int32_t in #(
20740 no|yes) ;; #(
20743 cat >>confdefs.h <<_ACEOF
20744 #define int32_t $ac_cv_c_int32_t
20745 _ACEOF
20747 esac
20750 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
20751 $as_echo_n "checking for int64_t... " >&6; }
20752 if test "${ac_cv_c_int64_t+set}" = set; then
20753 $as_echo_n "(cached) " >&6
20754 else
20755 ac_cv_c_int64_t=no
20756 for ac_type in 'int64_t' 'int' 'long int' \
20757 'long long int' 'short int' 'signed char'; do
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h. */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 $ac_includes_default
20766 main ()
20768 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
20769 test_array [0] = 0
20772 return 0;
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest.$ac_objext; then
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20801 main ()
20803 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
20804 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
20805 test_array [0] = 0
20808 return 0;
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816 esac
20817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20818 $as_echo "$ac_try_echo") >&5
20819 (eval "$ac_compile") 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest.$ac_objext; then
20830 else
20831 $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 case $ac_type in
20835 int64_t) ac_cv_c_int64_t=yes ;;
20836 *) ac_cv_c_int64_t=$ac_type ;;
20837 esac
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 else
20843 $as_echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 test "$ac_cv_c_int64_t" != no && break
20851 done
20853 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
20854 $as_echo "$ac_cv_c_int64_t" >&6; }
20855 case $ac_cv_c_int64_t in #(
20856 no|yes) ;; #(
20859 cat >>confdefs.h <<_ACEOF
20860 #define int64_t $ac_cv_c_int64_t
20861 _ACEOF
20863 esac
20866 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
20867 $as_echo_n "checking for intptr_t... " >&6; }
20868 if test "${ac_cv_type_intptr_t+set}" = set; then
20869 $as_echo_n "(cached) " >&6
20870 else
20871 ac_cv_type_intptr_t=no
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 $ac_includes_default
20880 main ()
20882 if (sizeof (intptr_t))
20883 return 0;
20885 return 0;
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893 esac
20894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895 $as_echo "$ac_try_echo") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20914 main ()
20916 if (sizeof ((intptr_t)))
20917 return 0;
20919 return 0;
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.$ac_objext; then
20941 else
20942 $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_type_intptr_t=yes
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 else
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
20959 $as_echo "$ac_cv_type_intptr_t" >&6; }
20960 if test "x$ac_cv_type_intptr_t" = x""yes; then
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_INTPTR_T 1
20964 _ACEOF
20966 else
20967 for ac_type in 'int' 'long int' 'long long int'; do
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20976 main ()
20978 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20979 test_array [0] = 0
20982 return 0;
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20990 esac
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest.$ac_objext; then
21004 cat >>confdefs.h <<_ACEOF
21005 #define intptr_t $ac_type
21006 _ACEOF
21008 ac_type=
21009 else
21010 $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 test -z "$ac_type" && break
21018 done
21023 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
21024 $as_echo_n "checking for uint8_t... " >&6; }
21025 if test "${ac_cv_c_uint8_t+set}" = set; then
21026 $as_echo_n "(cached) " >&6
21027 else
21028 ac_cv_c_uint8_t=no
21029 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21030 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21031 cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h. */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 $ac_includes_default
21039 main ()
21041 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21042 test_array [0] = 0
21045 return 0;
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 case $ac_type in
21067 uint8_t) ac_cv_c_uint8_t=yes ;;
21068 *) ac_cv_c_uint8_t=$ac_type ;;
21069 esac
21071 else
21072 $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 test "$ac_cv_c_uint8_t" != no && break
21080 done
21082 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21083 $as_echo "$ac_cv_c_uint8_t" >&6; }
21084 case $ac_cv_c_uint8_t in #(
21085 no|yes) ;; #(
21088 cat >>confdefs.h <<\_ACEOF
21089 #define _UINT8_T 1
21090 _ACEOF
21093 cat >>confdefs.h <<_ACEOF
21094 #define uint8_t $ac_cv_c_uint8_t
21095 _ACEOF
21097 esac
21100 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
21101 $as_echo_n "checking for uint16_t... " >&6; }
21102 if test "${ac_cv_c_uint16_t+set}" = set; then
21103 $as_echo_n "(cached) " >&6
21104 else
21105 ac_cv_c_uint16_t=no
21106 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21107 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 $ac_includes_default
21116 main ()
21118 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21119 test_array [0] = 0
21122 return 0;
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest.$ac_objext; then
21143 case $ac_type in
21144 uint16_t) ac_cv_c_uint16_t=yes ;;
21145 *) ac_cv_c_uint16_t=$ac_type ;;
21146 esac
21148 else
21149 $as_echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156 test "$ac_cv_c_uint16_t" != no && break
21157 done
21159 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21160 $as_echo "$ac_cv_c_uint16_t" >&6; }
21161 case $ac_cv_c_uint16_t in #(
21162 no|yes) ;; #(
21166 cat >>confdefs.h <<_ACEOF
21167 #define uint16_t $ac_cv_c_uint16_t
21168 _ACEOF
21170 esac
21173 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
21174 $as_echo_n "checking for uint32_t... " >&6; }
21175 if test "${ac_cv_c_uint32_t+set}" = set; then
21176 $as_echo_n "(cached) " >&6
21177 else
21178 ac_cv_c_uint32_t=no
21179 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21180 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21189 main ()
21191 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21192 test_array [0] = 0
21195 return 0;
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.$ac_objext; then
21216 case $ac_type in
21217 uint32_t) ac_cv_c_uint32_t=yes ;;
21218 *) ac_cv_c_uint32_t=$ac_type ;;
21219 esac
21221 else
21222 $as_echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 test "$ac_cv_c_uint32_t" != no && break
21230 done
21232 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
21233 $as_echo "$ac_cv_c_uint32_t" >&6; }
21234 case $ac_cv_c_uint32_t in #(
21235 no|yes) ;; #(
21238 cat >>confdefs.h <<\_ACEOF
21239 #define _UINT32_T 1
21240 _ACEOF
21243 cat >>confdefs.h <<_ACEOF
21244 #define uint32_t $ac_cv_c_uint32_t
21245 _ACEOF
21247 esac
21250 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
21251 $as_echo_n "checking for uint64_t... " >&6; }
21252 if test "${ac_cv_c_uint64_t+set}" = set; then
21253 $as_echo_n "(cached) " >&6
21254 else
21255 ac_cv_c_uint64_t=no
21256 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
21257 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 $ac_includes_default
21266 main ()
21268 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
21269 test_array [0] = 0
21272 return 0;
21274 _ACEOF
21275 rm -f conftest.$ac_objext
21276 if { (ac_try="$ac_compile"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282 $as_echo "$ac_try_echo") >&5
21283 (eval "$ac_compile") 2>conftest.er1
21284 ac_status=$?
21285 grep -v '^ *+' conftest.er1 >conftest.err
21286 rm -f conftest.er1
21287 cat conftest.err >&5
21288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21293 case $ac_type in
21294 uint64_t) ac_cv_c_uint64_t=yes ;;
21295 *) ac_cv_c_uint64_t=$ac_type ;;
21296 esac
21298 else
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 test "$ac_cv_c_uint64_t" != no && break
21307 done
21309 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
21310 $as_echo "$ac_cv_c_uint64_t" >&6; }
21311 case $ac_cv_c_uint64_t in #(
21312 no|yes) ;; #(
21315 cat >>confdefs.h <<\_ACEOF
21316 #define _UINT64_T 1
21317 _ACEOF
21320 cat >>confdefs.h <<_ACEOF
21321 #define uint64_t $ac_cv_c_uint64_t
21322 _ACEOF
21324 esac
21327 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
21328 $as_echo_n "checking for uintptr_t... " >&6; }
21329 if test "${ac_cv_type_uintptr_t+set}" = set; then
21330 $as_echo_n "(cached) " >&6
21331 else
21332 ac_cv_type_uintptr_t=no
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h. */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 $ac_includes_default
21341 main ()
21343 if (sizeof (uintptr_t))
21344 return 0;
21346 return 0;
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354 esac
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest.$ac_objext; then
21367 cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h. */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21373 $ac_includes_default
21375 main ()
21377 if (sizeof ((uintptr_t)))
21378 return 0;
21380 return 0;
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391 (eval "$ac_compile") 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest.$ac_objext; then
21402 else
21403 $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_cv_type_uintptr_t=yes
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 else
21411 $as_echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21420 $as_echo "$ac_cv_type_uintptr_t" >&6; }
21421 if test "x$ac_cv_type_uintptr_t" = x""yes; then
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_UINTPTR_T 1
21425 _ACEOF
21427 else
21428 for ac_type in 'unsigned int' 'unsigned long int' \
21429 'unsigned long long int'; do
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h. */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 $ac_includes_default
21438 main ()
21440 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21441 test_array [0] = 0
21444 return 0;
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21454 $as_echo "$ac_try_echo") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.$ac_objext; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define uintptr_t $ac_type
21468 _ACEOF
21470 ac_type=
21471 else
21472 $as_echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479 test -z "$ac_type" && break
21480 done
21484 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21485 $as_echo_n "checking for inline... " >&6; }
21486 if test "${ac_cv_c_inline+set}" = set; then
21487 $as_echo_n "(cached) " >&6
21488 else
21489 ac_cv_c_inline=no
21490 for ac_kw in inline __inline__ __inline; do
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h. */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #ifndef __cplusplus
21498 typedef int foo_t;
21499 static $ac_kw foo_t static_foo () {return 0; }
21500 $ac_kw foo_t foo () {return 0; }
21501 #endif
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21509 esac
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21513 ac_status=$?
21514 grep -v '^ *+' conftest.er1 >conftest.err
21515 rm -f conftest.er1
21516 cat conftest.err >&5
21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21522 ac_cv_c_inline=$ac_kw
21523 else
21524 $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 test "$ac_cv_c_inline" != no && break
21532 done
21535 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21536 $as_echo "$ac_cv_c_inline" >&6; }
21539 case $ac_cv_c_inline in
21540 inline | yes) ;;
21542 case $ac_cv_c_inline in
21543 no) ac_val=;;
21544 *) ac_val=$ac_cv_c_inline;;
21545 esac
21546 cat >>confdefs.h <<_ACEOF
21547 #ifndef __cplusplus
21548 #define inline $ac_val
21549 #endif
21550 _ACEOF
21552 esac
21556 # Checks for library functions.
21561 for ac_func in memmove memset strdup accept
21563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21565 $as_echo_n "checking for $ac_func... " >&6; }
21566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21567 $as_echo_n "(cached) " >&6
21568 else
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21577 #define $ac_func innocuous_$ac_func
21579 /* System header to define __stub macros and hopefully few prototypes,
21580 which can conflict with char $ac_func (); below.
21581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582 <limits.h> exists even on freestanding compilers. */
21584 #ifdef __STDC__
21585 # include <limits.h>
21586 #else
21587 # include <assert.h>
21588 #endif
21590 #undef $ac_func
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char $ac_func ();
21599 /* The GNU C library defines this for functions which it implements
21600 to always fail with ENOSYS. Some functions are actually named
21601 something starting with __ and the normal name is an alias. */
21602 #if defined __stub_$ac_func || defined __stub___$ac_func
21603 choke me
21604 #endif
21607 main ()
21609 return $ac_func ();
21611 return 0;
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21619 esac
21620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21621 $as_echo "$ac_try_echo") >&5
21622 (eval "$ac_link") 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest$ac_exeext && {
21632 test "$cross_compiling" = yes ||
21633 $as_test_x conftest$ac_exeext
21634 }; then
21635 eval "$as_ac_var=yes"
21636 else
21637 $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 eval "$as_ac_var=no"
21643 rm -rf conftest.dSYM
21644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21645 conftest$ac_exeext conftest.$ac_ext
21647 ac_res=`eval 'as_val=${'$as_ac_var'}
21648 $as_echo "$as_val"'`
21649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21650 $as_echo "$ac_res" >&6; }
21651 as_val=`eval 'as_val=${'$as_ac_var'}
21652 $as_echo "$as_val"'`
21653 if test "x$as_val" = x""yes; then
21654 cat >>confdefs.h <<_ACEOF
21655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21656 _ACEOF
21659 done
21664 ac_config_headers="$ac_config_headers antlr3config.h"
21666 ac_config_files="$ac_config_files Makefile"
21668 cat >confcache <<\_ACEOF
21669 # This file is a shell script that caches the results of configure
21670 # tests run on this system so they can be shared between configure
21671 # scripts and configure runs, see configure's option --config-cache.
21672 # It is not useful on other systems. If it contains results you don't
21673 # want to keep, you may remove or edit it.
21675 # config.status only pays attention to the cache file if you give it
21676 # the --recheck option to rerun configure.
21678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21680 # following values.
21682 _ACEOF
21684 # The following way of writing the cache mishandles newlines in values,
21685 # but we know of no workaround that is simple, portable, and efficient.
21686 # So, we kill variables containing newlines.
21687 # Ultrix sh set writes to stderr and can't be redirected directly,
21688 # and sets the high bit in the cache file unless we assign to the vars.
21690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21691 eval ac_val=\$$ac_var
21692 case $ac_val in #(
21693 *${as_nl}*)
21694 case $ac_var in #(
21695 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21697 esac
21698 case $ac_var in #(
21699 _ | IFS | as_nl) ;; #(
21700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21701 *) $as_unset $ac_var ;;
21702 esac ;;
21703 esac
21704 done
21706 (set) 2>&1 |
21707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21708 *${as_nl}ac_space=\ *)
21709 # `set' does not quote correctly, so add quotes (double-quote
21710 # substitution turns \\\\ into \\, and sed turns \\ into \).
21711 sed -n \
21712 "s/'/'\\\\''/g;
21713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21714 ;; #(
21716 # `set' quotes correctly as required by POSIX, so do not add quotes.
21717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21719 esac |
21720 sort
21722 sed '
21723 /^ac_cv_env_/b end
21724 t clear
21725 :clear
21726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21727 t end
21728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21729 :end' >>confcache
21730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21731 if test -w "$cache_file"; then
21732 test "x$cache_file" != "x/dev/null" &&
21733 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21734 $as_echo "$as_me: updating cache $cache_file" >&6;}
21735 cat confcache >$cache_file
21736 else
21737 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21741 rm -f confcache
21743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21744 # Let make expand exec_prefix.
21745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21747 DEFS=-DHAVE_CONFIG_H
21749 ac_libobjs=
21750 ac_ltlibobjs=
21751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21752 # 1. Remove the extension, and $U if already installed.
21753 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21754 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21756 # will be set to the directory where LIBOBJS objects are built.
21757 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21758 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21759 done
21760 LIBOBJS=$ac_libobjs
21762 LTLIBOBJS=$ac_ltlibobjs
21765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21766 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21767 Usually this means the macro was only invoked conditionally." >&5
21768 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21769 Usually this means the macro was only invoked conditionally." >&2;}
21770 { (exit 1); exit 1; }; }
21772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21773 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21774 Usually this means the macro was only invoked conditionally." >&5
21775 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21776 Usually this means the macro was only invoked conditionally." >&2;}
21777 { (exit 1); exit 1; }; }
21779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21780 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21781 Usually this means the macro was only invoked conditionally." >&5
21782 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21783 Usually this means the macro was only invoked conditionally." >&2;}
21784 { (exit 1); exit 1; }; }
21786 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21787 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21788 Usually this means the macro was only invoked conditionally." >&5
21789 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21790 Usually this means the macro was only invoked conditionally." >&2;}
21791 { (exit 1); exit 1; }; }
21794 : ${CONFIG_STATUS=./config.status}
21795 ac_write_fail=0
21796 ac_clean_files_save=$ac_clean_files
21797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21798 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21799 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21800 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21801 #! $SHELL
21802 # Generated by $as_me.
21803 # Run this file to recreate the current configuration.
21804 # Compiler output produced by configure, useful for debugging
21805 # configure, is in config.log if it exists.
21807 debug=false
21808 ac_cs_recheck=false
21809 ac_cs_silent=false
21810 SHELL=\${CONFIG_SHELL-$SHELL}
21811 _ACEOF
21813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21814 ## --------------------- ##
21815 ## M4sh Initialization. ##
21816 ## --------------------- ##
21818 # Be more Bourne compatible
21819 DUALCASE=1; export DUALCASE # for MKS sh
21820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21821 emulate sh
21822 NULLCMD=:
21823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21824 # is contrary to our usage. Disable this feature.
21825 alias -g '${1+"$@"}'='"$@"'
21826 setopt NO_GLOB_SUBST
21827 else
21828 case `(set -o) 2>/dev/null` in
21829 *posix*) set -o posix ;;
21830 esac
21837 # PATH needs CR
21838 # Avoid depending upon Character Ranges.
21839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21842 as_cr_digits='0123456789'
21843 as_cr_alnum=$as_cr_Letters$as_cr_digits
21845 as_nl='
21847 export as_nl
21848 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21849 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21852 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21853 as_echo='printf %s\n'
21854 as_echo_n='printf %s'
21855 else
21856 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21857 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21858 as_echo_n='/usr/ucb/echo -n'
21859 else
21860 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21861 as_echo_n_body='eval
21862 arg=$1;
21863 case $arg in
21864 *"$as_nl"*)
21865 expr "X$arg" : "X\\(.*\\)$as_nl";
21866 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21867 esac;
21868 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21870 export as_echo_n_body
21871 as_echo_n='sh -c $as_echo_n_body as_echo'
21873 export as_echo_body
21874 as_echo='sh -c $as_echo_body as_echo'
21877 # The user is always right.
21878 if test "${PATH_SEPARATOR+set}" != set; then
21879 PATH_SEPARATOR=:
21880 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21881 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21882 PATH_SEPARATOR=';'
21886 # Support unset when possible.
21887 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21888 as_unset=unset
21889 else
21890 as_unset=false
21894 # IFS
21895 # We need space, tab and new line, in precisely that order. Quoting is
21896 # there to prevent editors from complaining about space-tab.
21897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21898 # splitting by setting IFS to empty value.)
21899 IFS=" "" $as_nl"
21901 # Find who we are. Look in the path if we contain no directory separator.
21902 case $0 in
21903 *[\\/]* ) as_myself=$0 ;;
21904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $PATH
21907 IFS=$as_save_IFS
21908 test -z "$as_dir" && as_dir=.
21909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21910 done
21911 IFS=$as_save_IFS
21914 esac
21915 # We did not find ourselves, most probably we were run as `sh COMMAND'
21916 # in which case we are not to be found in the path.
21917 if test "x$as_myself" = x; then
21918 as_myself=$0
21920 if test ! -f "$as_myself"; then
21921 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21922 { (exit 1); exit 1; }
21925 # Work around bugs in pre-3.0 UWIN ksh.
21926 for as_var in ENV MAIL MAILPATH
21927 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21928 done
21929 PS1='$ '
21930 PS2='> '
21931 PS4='+ '
21933 # NLS nuisances.
21934 LC_ALL=C
21935 export LC_ALL
21936 LANGUAGE=C
21937 export LANGUAGE
21939 # Required to use basename.
21940 if expr a : '\(a\)' >/dev/null 2>&1 &&
21941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21942 as_expr=expr
21943 else
21944 as_expr=false
21947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21948 as_basename=basename
21949 else
21950 as_basename=false
21954 # Name of the executable.
21955 as_me=`$as_basename -- "$0" ||
21956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21957 X"$0" : 'X\(//\)$' \| \
21958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21959 $as_echo X/"$0" |
21960 sed '/^.*\/\([^/][^/]*\)\/*$/{
21961 s//\1/
21964 /^X\/\(\/\/\)$/{
21965 s//\1/
21968 /^X\/\(\/\).*/{
21969 s//\1/
21972 s/.*/./; q'`
21974 # CDPATH.
21975 $as_unset CDPATH
21979 as_lineno_1=$LINENO
21980 as_lineno_2=$LINENO
21981 test "x$as_lineno_1" != "x$as_lineno_2" &&
21982 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21985 # uniformly replaced by the line number. The first 'sed' inserts a
21986 # line-number line after each line using $LINENO; the second 'sed'
21987 # does the real work. The second script uses 'N' to pair each
21988 # line-number line with the line containing $LINENO, and appends
21989 # trailing '-' during substitution so that $LINENO is not a special
21990 # case at line end.
21991 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21992 # scripts with optimization help from Paolo Bonzini. Blame Lee
21993 # E. McMahon (1931-1989) for sed's syntax. :-)
21994 sed -n '
21996 /[$]LINENO/=
21997 ' <$as_myself |
21998 sed '
21999 s/[$]LINENO.*/&-/
22000 t lineno
22002 :lineno
22004 :loop
22005 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22006 t loop
22007 s/-\n.*//
22008 ' >$as_me.lineno &&
22009 chmod +x "$as_me.lineno" ||
22010 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22011 { (exit 1); exit 1; }; }
22013 # Don't try to exec as it changes $[0], causing all sort of problems
22014 # (the dirname of $[0] is not the place where we might find the
22015 # original and so on. Autoconf is especially sensitive to this).
22016 . "./$as_me.lineno"
22017 # Exit status is that of the last command.
22018 exit
22022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22023 as_dirname=dirname
22024 else
22025 as_dirname=false
22028 ECHO_C= ECHO_N= ECHO_T=
22029 case `echo -n x` in
22030 -n*)
22031 case `echo 'x\c'` in
22032 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22033 *) ECHO_C='\c';;
22034 esac;;
22036 ECHO_N='-n';;
22037 esac
22038 if expr a : '\(a\)' >/dev/null 2>&1 &&
22039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22040 as_expr=expr
22041 else
22042 as_expr=false
22045 rm -f conf$$ conf$$.exe conf$$.file
22046 if test -d conf$$.dir; then
22047 rm -f conf$$.dir/conf$$.file
22048 else
22049 rm -f conf$$.dir
22050 mkdir conf$$.dir 2>/dev/null
22052 if (echo >conf$$.file) 2>/dev/null; then
22053 if ln -s conf$$.file conf$$ 2>/dev/null; then
22054 as_ln_s='ln -s'
22055 # ... but there are two gotchas:
22056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22058 # In both cases, we have to default to `cp -p'.
22059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22060 as_ln_s='cp -p'
22061 elif ln conf$$.file conf$$ 2>/dev/null; then
22062 as_ln_s=ln
22063 else
22064 as_ln_s='cp -p'
22066 else
22067 as_ln_s='cp -p'
22069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22070 rmdir conf$$.dir 2>/dev/null
22072 if mkdir -p . 2>/dev/null; then
22073 as_mkdir_p=:
22074 else
22075 test -d ./-p && rmdir ./-p
22076 as_mkdir_p=false
22079 if test -x / >/dev/null 2>&1; then
22080 as_test_x='test -x'
22081 else
22082 if ls -dL / >/dev/null 2>&1; then
22083 as_ls_L_option=L
22084 else
22085 as_ls_L_option=
22087 as_test_x='
22088 eval sh -c '\''
22089 if test -d "$1"; then
22090 test -d "$1/.";
22091 else
22092 case $1 in
22093 -*)set "./$1";;
22094 esac;
22095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22096 ???[sx]*):;;*)false;;esac;fi
22097 '\'' sh
22100 as_executable_p=$as_test_x
22102 # Sed expression to map a string onto a valid CPP name.
22103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22105 # Sed expression to map a string onto a valid variable name.
22106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22109 exec 6>&1
22111 # Save the log message, to keep $[0] and so on meaningful, and to
22112 # report actual input values of CONFIG_FILES etc. instead of their
22113 # values after options handling.
22114 ac_log="
22115 This file was extended by libantlr3c $as_me 3.2, which was
22116 generated by GNU Autoconf 2.63. Invocation command line was
22118 CONFIG_FILES = $CONFIG_FILES
22119 CONFIG_HEADERS = $CONFIG_HEADERS
22120 CONFIG_LINKS = $CONFIG_LINKS
22121 CONFIG_COMMANDS = $CONFIG_COMMANDS
22122 $ $0 $@
22124 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22127 _ACEOF
22129 case $ac_config_files in *"
22130 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22131 esac
22133 case $ac_config_headers in *"
22134 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22135 esac
22138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22139 # Files that config.status was made for.
22140 config_files="$ac_config_files"
22141 config_headers="$ac_config_headers"
22142 config_commands="$ac_config_commands"
22144 _ACEOF
22146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147 ac_cs_usage="\
22148 \`$as_me' instantiates files from templates according to the
22149 current configuration.
22151 Usage: $0 [OPTION]... [FILE]...
22153 -h, --help print this help, then exit
22154 -V, --version print version number and configuration settings, then exit
22155 -q, --quiet, --silent
22156 do not print progress messages
22157 -d, --debug don't remove temporary files
22158 --recheck update $as_me by reconfiguring in the same conditions
22159 --file=FILE[:TEMPLATE]
22160 instantiate the configuration file FILE
22161 --header=FILE[:TEMPLATE]
22162 instantiate the configuration header FILE
22164 Configuration files:
22165 $config_files
22167 Configuration headers:
22168 $config_headers
22170 Configuration commands:
22171 $config_commands
22173 Report bugs to <bug-autoconf@gnu.org>."
22175 _ACEOF
22176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22177 ac_cs_version="\\
22178 libantlr3c config.status 3.2
22179 configured by $0, generated by GNU Autoconf 2.63,
22180 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22182 Copyright (C) 2008 Free Software Foundation, Inc.
22183 This config.status script is free software; the Free Software Foundation
22184 gives unlimited permission to copy, distribute and modify it."
22186 ac_pwd='$ac_pwd'
22187 srcdir='$srcdir'
22188 INSTALL='$INSTALL'
22189 AWK='$AWK'
22190 test -n "\$AWK" || AWK=awk
22191 _ACEOF
22193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22194 # The default lists apply if the user does not specify any file.
22195 ac_need_defaults=:
22196 while test $# != 0
22198 case $1 in
22199 --*=*)
22200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22202 ac_shift=:
22205 ac_option=$1
22206 ac_optarg=$2
22207 ac_shift=shift
22209 esac
22211 case $ac_option in
22212 # Handling of the options.
22213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22214 ac_cs_recheck=: ;;
22215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22216 $as_echo "$ac_cs_version"; exit ;;
22217 --debug | --debu | --deb | --de | --d | -d )
22218 debug=: ;;
22219 --file | --fil | --fi | --f )
22220 $ac_shift
22221 case $ac_optarg in
22222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22223 esac
22224 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22225 ac_need_defaults=false;;
22226 --header | --heade | --head | --hea )
22227 $ac_shift
22228 case $ac_optarg in
22229 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22230 esac
22231 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22232 ac_need_defaults=false;;
22233 --he | --h)
22234 # Conflict between --help and --header
22235 { $as_echo "$as_me: error: ambiguous option: $1
22236 Try \`$0 --help' for more information." >&2
22237 { (exit 1); exit 1; }; };;
22238 --help | --hel | -h )
22239 $as_echo "$ac_cs_usage"; exit ;;
22240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22242 ac_cs_silent=: ;;
22244 # This is an error.
22245 -*) { $as_echo "$as_me: error: unrecognized option: $1
22246 Try \`$0 --help' for more information." >&2
22247 { (exit 1); exit 1; }; } ;;
22249 *) ac_config_targets="$ac_config_targets $1"
22250 ac_need_defaults=false ;;
22252 esac
22253 shift
22254 done
22256 ac_configure_extra_args=
22258 if $ac_cs_silent; then
22259 exec 6>/dev/null
22260 ac_configure_extra_args="$ac_configure_extra_args --silent"
22263 _ACEOF
22264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22265 if \$ac_cs_recheck; then
22266 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22267 shift
22268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22269 CONFIG_SHELL='$SHELL'
22270 export CONFIG_SHELL
22271 exec "\$@"
22274 _ACEOF
22275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22276 exec 5>>config.log
22278 echo
22279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22280 ## Running $as_me. ##
22281 _ASBOX
22282 $as_echo "$ac_log"
22283 } >&5
22285 _ACEOF
22286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22288 # INIT-COMMANDS
22290 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22292 _ACEOF
22294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22296 # Handling of arguments.
22297 for ac_config_target in $ac_config_targets
22299 case $ac_config_target in
22300 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22301 "antlr3config.h") CONFIG_HEADERS="$CONFIG_HEADERS antlr3config.h" ;;
22302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22304 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22306 { (exit 1); exit 1; }; };;
22307 esac
22308 done
22311 # If the user did not use the arguments to specify the items to instantiate,
22312 # then the envvar interface is used. Set only those that are not.
22313 # We use the long form for the default assignment because of an extremely
22314 # bizarre bug on SunOS 4.1.3.
22315 if $ac_need_defaults; then
22316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22321 # Have a temporary directory for convenience. Make it in the build tree
22322 # simply because there is no reason against having it here, and in addition,
22323 # creating and moving files from /tmp can sometimes cause problems.
22324 # Hook for its removal unless debugging.
22325 # Note that there is a small window in which the directory will not be cleaned:
22326 # after its creation but before its name has been assigned to `$tmp'.
22327 $debug ||
22329 tmp=
22330 trap 'exit_status=$?
22331 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22333 trap '{ (exit 1); exit 1; }' 1 2 13 15
22335 # Create a (secure) tmp directory for tmp files.
22338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22339 test -n "$tmp" && test -d "$tmp"
22340 } ||
22342 tmp=./conf$$-$RANDOM
22343 (umask 077 && mkdir "$tmp")
22344 } ||
22346 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22347 { (exit 1); exit 1; }
22350 # Set up the scripts for CONFIG_FILES section.
22351 # No need to generate them if there are no CONFIG_FILES.
22352 # This happens for instance with `./config.status config.h'.
22353 if test -n "$CONFIG_FILES"; then
22356 ac_cr=' '
22357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22359 ac_cs_awk_cr='\\r'
22360 else
22361 ac_cs_awk_cr=$ac_cr
22364 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22365 _ACEOF
22369 echo "cat >conf$$subs.awk <<_ACEOF" &&
22370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22371 echo "_ACEOF"
22372 } >conf$$subs.sh ||
22373 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22374 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22375 { (exit 1); exit 1; }; }
22376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22377 ac_delim='%!_!# '
22378 for ac_last_try in false false false false false :; do
22379 . ./conf$$subs.sh ||
22380 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22381 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22382 { (exit 1); exit 1; }; }
22384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22385 if test $ac_delim_n = $ac_delim_num; then
22386 break
22387 elif $ac_last_try; then
22388 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22389 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22390 { (exit 1); exit 1; }; }
22391 else
22392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22394 done
22395 rm -f conf$$subs.sh
22397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22398 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22399 _ACEOF
22400 sed -n '
22402 s/^/S["/; s/!.*/"]=/
22405 s/^[^!]*!//
22406 :repl
22407 t repl
22408 s/'"$ac_delim"'$//
22409 t delim
22412 s/\(.\{148\}\).*/\1/
22413 t more1
22414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22417 b repl
22418 :more1
22419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22422 s/.\{148\}//
22423 t nl
22424 :delim
22426 s/\(.\{148\}\).*/\1/
22427 t more2
22428 s/["\\]/\\&/g; s/^/"/; s/$/"/
22431 :more2
22432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22435 s/.\{148\}//
22436 t delim
22437 ' <conf$$subs.awk | sed '
22438 /^[^""]/{
22440 s/\n//
22442 ' >>$CONFIG_STATUS || ac_write_fail=1
22443 rm -f conf$$subs.awk
22444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22445 _ACAWK
22446 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22447 for (key in S) S_is_set[key] = 1
22448 FS = "\a"
22452 line = $ 0
22453 nfields = split(line, field, "@")
22454 substed = 0
22455 len = length(field[1])
22456 for (i = 2; i < nfields; i++) {
22457 key = field[i]
22458 keylen = length(key)
22459 if (S_is_set[key]) {
22460 value = S[key]
22461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22462 len += length(value) + length(field[++i])
22463 substed = 1
22464 } else
22465 len += 1 + keylen
22468 print line
22471 _ACAWK
22472 _ACEOF
22473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22476 else
22478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22479 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22480 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22481 { (exit 1); exit 1; }; }
22482 _ACEOF
22484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22486 # trailing colons and then remove the whole line if VPATH becomes empty
22487 # (actually we leave an empty line to preserve line numbers).
22488 if test "x$srcdir" = x.; then
22489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22490 s/:*\$(srcdir):*/:/
22491 s/:*\${srcdir}:*/:/
22492 s/:*@srcdir@:*/:/
22493 s/^\([^=]*=[ ]*\):*/\1/
22494 s/:*$//
22495 s/^[^=]*=[ ]*$//
22499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500 fi # test -n "$CONFIG_FILES"
22502 # Set up the scripts for CONFIG_HEADERS section.
22503 # No need to generate them if there are no CONFIG_HEADERS.
22504 # This happens for instance with `./config.status Makefile'.
22505 if test -n "$CONFIG_HEADERS"; then
22506 cat >"$tmp/defines.awk" <<\_ACAWK ||
22507 BEGIN {
22508 _ACEOF
22510 # Transform confdefs.h into an awk script `defines.awk', embedded as
22511 # here-document in config.status, that substitutes the proper values into
22512 # config.h.in to produce config.h.
22514 # Create a delimiter string that does not exist in confdefs.h, to ease
22515 # handling of long lines.
22516 ac_delim='%!_!# '
22517 for ac_last_try in false false :; do
22518 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22519 if test -z "$ac_t"; then
22520 break
22521 elif $ac_last_try; then
22522 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22523 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22524 { (exit 1); exit 1; }; }
22525 else
22526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22528 done
22530 # For the awk script, D is an array of macro values keyed by name,
22531 # likewise P contains macro parameters if any. Preserve backslash
22532 # newline sequences.
22534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22535 sed -n '
22536 s/.\{148\}/&'"$ac_delim"'/g
22537 t rset
22538 :rset
22539 s/^[ ]*#[ ]*define[ ][ ]*/ /
22540 t def
22542 :def
22543 s/\\$//
22544 t bsnl
22545 s/["\\]/\\&/g
22546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22547 D["\1"]=" \3"/p
22548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22550 :bsnl
22551 s/["\\]/\\&/g
22552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22553 D["\1"]=" \3\\\\\\n"\\/p
22554 t cont
22555 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22556 t cont
22558 :cont
22560 s/.\{148\}/&'"$ac_delim"'/g
22561 t clear
22562 :clear
22563 s/\\$//
22564 t bsnlc
22565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22567 :bsnlc
22568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22569 b cont
22570 ' <confdefs.h | sed '
22571 s/'"$ac_delim"'/"\\\
22572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22575 for (key in D) D_is_set[key] = 1
22576 FS = "\a"
22578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22579 line = \$ 0
22580 split(line, arg, " ")
22581 if (arg[1] == "#") {
22582 defundef = arg[2]
22583 mac1 = arg[3]
22584 } else {
22585 defundef = substr(arg[1], 2)
22586 mac1 = arg[2]
22588 split(mac1, mac2, "(") #)
22589 macro = mac2[1]
22590 prefix = substr(line, 1, index(line, defundef) - 1)
22591 if (D_is_set[macro]) {
22592 # Preserve the white space surrounding the "#".
22593 print prefix "define", macro P[macro] D[macro]
22594 next
22595 } else {
22596 # Replace #undef with comments. This is necessary, for example,
22597 # in the case of _POSIX_SOURCE, which is predefined and required
22598 # on some systems where configure will not decide to define it.
22599 if (defundef == "undef") {
22600 print "/*", prefix defundef, macro, "*/"
22601 next
22605 { print }
22606 _ACAWK
22607 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22609 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22610 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22611 { (exit 1); exit 1; }; }
22612 fi # test -n "$CONFIG_HEADERS"
22615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22616 shift
22617 for ac_tag
22619 case $ac_tag in
22620 :[FHLC]) ac_mode=$ac_tag; continue;;
22621 esac
22622 case $ac_mode$ac_tag in
22623 :[FHL]*:*);;
22624 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22625 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22626 { (exit 1); exit 1; }; };;
22627 :[FH]-) ac_tag=-:-;;
22628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22629 esac
22630 ac_save_IFS=$IFS
22631 IFS=:
22632 set x $ac_tag
22633 IFS=$ac_save_IFS
22634 shift
22635 ac_file=$1
22636 shift
22638 case $ac_mode in
22639 :L) ac_source=$1;;
22640 :[FH])
22641 ac_file_inputs=
22642 for ac_f
22644 case $ac_f in
22645 -) ac_f="$tmp/stdin";;
22646 *) # Look for the file first in the build tree, then in the source tree
22647 # (if the path is not absolute). The absolute path cannot be DOS-style,
22648 # because $ac_f cannot contain `:'.
22649 test -f "$ac_f" ||
22650 case $ac_f in
22651 [\\/$]*) false;;
22652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22653 esac ||
22654 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22655 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22656 { (exit 1); exit 1; }; };;
22657 esac
22658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22659 ac_file_inputs="$ac_file_inputs '$ac_f'"
22660 done
22662 # Let's still pretend it is `configure' which instantiates (i.e., don't
22663 # use $as_me), people would be surprised to read:
22664 # /* config.h. Generated by config.status. */
22665 configure_input='Generated from '`
22666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22667 `' by configure.'
22668 if test x"$ac_file" != x-; then
22669 configure_input="$ac_file. $configure_input"
22670 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22671 $as_echo "$as_me: creating $ac_file" >&6;}
22673 # Neutralize special characters interpreted by sed in replacement strings.
22674 case $configure_input in #(
22675 *\&* | *\|* | *\\* )
22676 ac_sed_conf_input=`$as_echo "$configure_input" |
22677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22678 *) ac_sed_conf_input=$configure_input;;
22679 esac
22681 case $ac_tag in
22682 *:-:* | *:-) cat >"$tmp/stdin" \
22683 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22684 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22685 { (exit 1); exit 1; }; } ;;
22686 esac
22688 esac
22690 ac_dir=`$as_dirname -- "$ac_file" ||
22691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22692 X"$ac_file" : 'X\(//\)[^/]' \| \
22693 X"$ac_file" : 'X\(//\)$' \| \
22694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22695 $as_echo X"$ac_file" |
22696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22697 s//\1/
22700 /^X\(\/\/\)[^/].*/{
22701 s//\1/
22704 /^X\(\/\/\)$/{
22705 s//\1/
22708 /^X\(\/\).*/{
22709 s//\1/
22712 s/.*/./; q'`
22713 { as_dir="$ac_dir"
22714 case $as_dir in #(
22715 -*) as_dir=./$as_dir;;
22716 esac
22717 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22718 as_dirs=
22719 while :; do
22720 case $as_dir in #(
22721 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22722 *) as_qdir=$as_dir;;
22723 esac
22724 as_dirs="'$as_qdir' $as_dirs"
22725 as_dir=`$as_dirname -- "$as_dir" ||
22726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22727 X"$as_dir" : 'X\(//\)[^/]' \| \
22728 X"$as_dir" : 'X\(//\)$' \| \
22729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22730 $as_echo X"$as_dir" |
22731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22732 s//\1/
22735 /^X\(\/\/\)[^/].*/{
22736 s//\1/
22739 /^X\(\/\/\)$/{
22740 s//\1/
22743 /^X\(\/\).*/{
22744 s//\1/
22747 s/.*/./; q'`
22748 test -d "$as_dir" && break
22749 done
22750 test -z "$as_dirs" || eval "mkdir $as_dirs"
22751 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22752 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22753 { (exit 1); exit 1; }; }; }
22754 ac_builddir=.
22756 case "$ac_dir" in
22757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22760 # A ".." for each directory in $ac_dir_suffix.
22761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22762 case $ac_top_builddir_sub in
22763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22765 esac ;;
22766 esac
22767 ac_abs_top_builddir=$ac_pwd
22768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22769 # for backward compatibility:
22770 ac_top_builddir=$ac_top_build_prefix
22772 case $srcdir in
22773 .) # We are building in place.
22774 ac_srcdir=.
22775 ac_top_srcdir=$ac_top_builddir_sub
22776 ac_abs_top_srcdir=$ac_pwd ;;
22777 [\\/]* | ?:[\\/]* ) # Absolute name.
22778 ac_srcdir=$srcdir$ac_dir_suffix;
22779 ac_top_srcdir=$srcdir
22780 ac_abs_top_srcdir=$srcdir ;;
22781 *) # Relative name.
22782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22783 ac_top_srcdir=$ac_top_build_prefix$srcdir
22784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22785 esac
22786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22789 case $ac_mode in
22792 # CONFIG_FILE
22795 case $INSTALL in
22796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22798 esac
22799 _ACEOF
22801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22802 # If the template does not know about datarootdir, expand it.
22803 # FIXME: This hack should be removed a few years after 2.60.
22804 ac_datarootdir_hack=; ac_datarootdir_seen=
22806 ac_sed_dataroot='
22807 /datarootdir/ {
22811 /@datadir@/p
22812 /@docdir@/p
22813 /@infodir@/p
22814 /@localedir@/p
22815 /@mandir@/p
22817 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22818 *datarootdir*) ac_datarootdir_seen=yes;;
22819 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22820 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22821 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22822 _ACEOF
22823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22824 ac_datarootdir_hack='
22825 s&@datadir@&$datadir&g
22826 s&@docdir@&$docdir&g
22827 s&@infodir@&$infodir&g
22828 s&@localedir@&$localedir&g
22829 s&@mandir@&$mandir&g
22830 s&\\\${datarootdir}&$datarootdir&g' ;;
22831 esac
22832 _ACEOF
22834 # Neutralize VPATH when `$srcdir' = `.'.
22835 # Shell code in configure.ac might set extrasub.
22836 # FIXME: do we really want to maintain this feature?
22837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22838 ac_sed_extra="$ac_vpsub
22839 $extrasub
22840 _ACEOF
22841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22844 s|@configure_input@|$ac_sed_conf_input|;t t
22845 s&@top_builddir@&$ac_top_builddir_sub&;t t
22846 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22847 s&@srcdir@&$ac_srcdir&;t t
22848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22849 s&@top_srcdir@&$ac_top_srcdir&;t t
22850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22851 s&@builddir@&$ac_builddir&;t t
22852 s&@abs_builddir@&$ac_abs_builddir&;t t
22853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22854 s&@INSTALL@&$ac_INSTALL&;t t
22855 $ac_datarootdir_hack
22857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22858 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22859 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22860 { (exit 1); exit 1; }; }
22862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22863 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22865 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22866 which seems to be undefined. Please make sure it is defined." >&5
22867 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22868 which seems to be undefined. Please make sure it is defined." >&2;}
22870 rm -f "$tmp/stdin"
22871 case $ac_file in
22872 -) cat "$tmp/out" && rm -f "$tmp/out";;
22873 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22874 esac \
22875 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22876 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22877 { (exit 1); exit 1; }; }
22881 # CONFIG_HEADER
22883 if test x"$ac_file" != x-; then
22885 $as_echo "/* $configure_input */" \
22886 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22887 } >"$tmp/config.h" \
22888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22889 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22890 { (exit 1); exit 1; }; }
22891 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22892 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22894 else
22895 rm -f "$ac_file"
22896 mv "$tmp/config.h" "$ac_file" \
22897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22899 { (exit 1); exit 1; }; }
22901 else
22902 $as_echo "/* $configure_input */" \
22903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22904 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22905 $as_echo "$as_me: error: could not create -" >&2;}
22906 { (exit 1); exit 1; }; }
22908 # Compute "$ac_file"'s index in $config_headers.
22909 _am_stamp_count=1
22910 for _am_header in $config_headers :; do
22911 case $_am_header in
22912 "$ac_file" | "$ac_file":* )
22913 break ;;
22915 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22916 esac
22917 done
22918 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22920 X"$ac_file" : 'X\(//\)[^/]' \| \
22921 X"$ac_file" : 'X\(//\)$' \| \
22922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22923 $as_echo X"$ac_file" |
22924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22925 s//\1/
22928 /^X\(\/\/\)[^/].*/{
22929 s//\1/
22932 /^X\(\/\/\)$/{
22933 s//\1/
22936 /^X\(\/\).*/{
22937 s//\1/
22940 s/.*/./; q'`/stamp-h$_am_stamp_count
22943 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22944 $as_echo "$as_me: executing $ac_file commands" >&6;}
22946 esac
22949 case $ac_file$ac_mode in
22950 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22951 # Strip MF so we end up with the name of the file.
22952 mf=`echo "$mf" | sed -e 's/:.*$//'`
22953 # Check whether this is an Automake generated Makefile or not.
22954 # We used to match only the files named `Makefile.in', but
22955 # some people rename them; so instead we look at the file content.
22956 # Grep'ing the first line is not enough: some people post-process
22957 # each Makefile.in and add a new line on top of each file to say so.
22958 # So let's grep whole file.
22959 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22960 dirpart=`$as_dirname -- "$mf" ||
22961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22962 X"$mf" : 'X\(//\)[^/]' \| \
22963 X"$mf" : 'X\(//\)$' \| \
22964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22965 $as_echo X"$mf" |
22966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22967 s//\1/
22970 /^X\(\/\/\)[^/].*/{
22971 s//\1/
22974 /^X\(\/\/\)$/{
22975 s//\1/
22978 /^X\(\/\).*/{
22979 s//\1/
22982 s/.*/./; q'`
22983 else
22984 continue
22986 # Extract the definition of DEPDIR, am__include, and am__quote
22987 # from the Makefile without running `make'.
22988 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22989 test -z "$DEPDIR" && continue
22990 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22991 test -z "am__include" && continue
22992 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22993 # When using ansi2knr, U may be empty or an underscore; expand it
22994 U=`sed -n 's/^U = //p' < "$mf"`
22995 # Find all dependency output files, they are included files with
22996 # $(DEPDIR) in their names. We invoke sed twice because it is the
22997 # simplest approach to changing $(DEPDIR) to its actual value in the
22998 # expansion.
22999 for file in `sed -n "
23000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23002 # Make sure the directory exists.
23003 test -f "$dirpart/$file" && continue
23004 fdir=`$as_dirname -- "$file" ||
23005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$file" : 'X\(//\)[^/]' \| \
23007 X"$file" : 'X\(//\)$' \| \
23008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23009 $as_echo X"$file" |
23010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23011 s//\1/
23014 /^X\(\/\/\)[^/].*/{
23015 s//\1/
23018 /^X\(\/\/\)$/{
23019 s//\1/
23022 /^X\(\/\).*/{
23023 s//\1/
23026 s/.*/./; q'`
23027 { as_dir=$dirpart/$fdir
23028 case $as_dir in #(
23029 -*) as_dir=./$as_dir;;
23030 esac
23031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23032 as_dirs=
23033 while :; do
23034 case $as_dir in #(
23035 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23036 *) as_qdir=$as_dir;;
23037 esac
23038 as_dirs="'$as_qdir' $as_dirs"
23039 as_dir=`$as_dirname -- "$as_dir" ||
23040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23041 X"$as_dir" : 'X\(//\)[^/]' \| \
23042 X"$as_dir" : 'X\(//\)$' \| \
23043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23044 $as_echo X"$as_dir" |
23045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23046 s//\1/
23049 /^X\(\/\/\)[^/].*/{
23050 s//\1/
23053 /^X\(\/\/\)$/{
23054 s//\1/
23057 /^X\(\/\).*/{
23058 s//\1/
23061 s/.*/./; q'`
23062 test -d "$as_dir" && break
23063 done
23064 test -z "$as_dirs" || eval "mkdir $as_dirs"
23065 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23066 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23067 { (exit 1); exit 1; }; }; }
23068 # echo "creating $dirpart/$file"
23069 echo '# dummy' > "$dirpart/$file"
23070 done
23071 done
23074 esac
23075 done # for ac_tag
23078 { (exit 0); exit 0; }
23079 _ACEOF
23080 chmod +x $CONFIG_STATUS
23081 ac_clean_files=$ac_clean_files_save
23083 test $ac_write_fail = 0 ||
23084 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23085 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23086 { (exit 1); exit 1; }; }
23089 # configure is writing to config.log, and then calls config.status.
23090 # config.status does its own redirection, appending to config.log.
23091 # Unfortunately, on DOS this fails, as config.log is still kept open
23092 # by configure, so config.status won't be able to write to it; its
23093 # output is simply discarded. So we exec the FD to /dev/null,
23094 # effectively closing config.log, so it can be properly (re)opened and
23095 # appended to by config.status. When coming back to configure, we
23096 # need to make the FD available again.
23097 if test "$no_create" != yes; then
23098 ac_cs_success=:
23099 ac_config_status_args=
23100 test "$silent" = yes &&
23101 ac_config_status_args="$ac_config_status_args --quiet"
23102 exec 5>/dev/null
23103 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23104 exec 5>>config.log
23105 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23106 # would make configure fail if this is the last instruction.
23107 $ac_cs_success || { (exit 1); exit 1; }
23109 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23110 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23111 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}