release 0.1
[u-tools.git] / u-tools / apps / tslib / configure
blobd34252f90ab012fc559db75c48a8e7c9f0a8f968
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for tslib 0.0.2.
5 # Report bugs to <kergoth@handhelds.org>.
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
626 done
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
650 done
651 IFS="$lt_save_ifs"
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
699 prev="$cmd"
700 done
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 # Initializations.
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='tslib'
752 PACKAGE_TARNAME='tslib'
753 PACKAGE_VERSION='0.0.2'
754 PACKAGE_STRING='tslib 0.0.2'
755 PACKAGE_BUGREPORT='kergoth@handhelds.org'
757 ac_unique_file="src/ts_close.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
794 ac_subst_vars='LTLIBOBJS
795 LT_AGE
796 LT_REVISION
797 LT_CURRENT
798 LT_RELEASE
799 TS_CONF
800 LIBFLAGS
801 DEBUGFLAGS
802 PLUGIN_DIR
803 ENABLE_INPUT_MODULE_FALSE
804 ENABLE_INPUT_MODULE_TRUE
805 ENABLE_ARCTIC2_MODULE_FALSE
806 ENABLE_ARCTIC2_MODULE_TRUE
807 ENABLE_MK712_MODULE_FALSE
808 ENABLE_MK712_MODULE_TRUE
809 ENABLE_H3600_MODULE_FALSE
810 ENABLE_H3600_MODULE_TRUE
811 ENABLE_COLLIE_MODULE_FALSE
812 ENABLE_COLLIE_MODULE_TRUE
813 ENABLE_CORGI_MODULE_FALSE
814 ENABLE_CORGI_MODULE_TRUE
815 ENABLE_UCB1X00_MODULE_FALSE
816 ENABLE_UCB1X00_MODULE_TRUE
817 ENABLE_PTHRES_MODULE_FALSE
818 ENABLE_PTHRES_MODULE_TRUE
819 ENABLE_VARIANCE_MODULE_FALSE
820 ENABLE_VARIANCE_MODULE_TRUE
821 ENABLE_H2200_LINEAR_MODULE_FALSE
822 ENABLE_H2200_LINEAR_MODULE_TRUE
823 ENABLE_DEJITTER_MODULE_FALSE
824 ENABLE_DEJITTER_MODULE_TRUE
825 ENABLE_LINEAR_MODULE_FALSE
826 ENABLE_LINEAR_MODULE_TRUE
827 LIBOBJS
828 ALLOCA
829 LIBTOOL
830 ac_ct_F77
831 FFLAGS
833 CXXCPP
834 NMEDIT
835 DSYMUTIL
836 RANLIB
838 ECHO
839 EGREP
840 GREP
842 host_os
843 host_vendor
844 host_cpu
845 host
846 build_os
847 build_vendor
848 build_cpu
849 build
850 LN_S
851 VIS_CFLAGS
853 am__fastdepCC_FALSE
854 am__fastdepCC_TRUE
855 CCDEPMODE
856 ac_ct_CC
857 CFLAGS
859 am__fastdepCXX_FALSE
860 am__fastdepCXX_TRUE
861 CXXDEPMODE
862 AMDEPBACKSLASH
863 AMDEP_FALSE
864 AMDEP_TRUE
865 am__quote
866 am__include
867 DEPDIR
868 OBJEXT
869 EXEEXT
870 ac_ct_CXX
871 CPPFLAGS
872 LDFLAGS
873 CXXFLAGS
875 PACKAGE_DESCRIPTION
876 am__untar
877 am__tar
878 AMTAR
879 am__leading_dot
880 SET_MAKE
882 mkdir_p
883 MKDIR_P
884 INSTALL_STRIP_PROGRAM
885 STRIP
886 install_sh
887 MAKEINFO
888 AUTOHEADER
889 AUTOMAKE
890 AUTOCONF
891 ACLOCAL
892 VERSION
893 PACKAGE
894 CYGPATH_W
895 am__isrc
896 INSTALL_DATA
897 INSTALL_SCRIPT
898 INSTALL_PROGRAM
899 target_alias
900 host_alias
901 build_alias
902 LIBS
903 ECHO_T
904 ECHO_N
905 ECHO_C
906 DEFS
907 mandir
908 localedir
909 libdir
910 psdir
911 pdfdir
912 dvidir
913 htmldir
914 infodir
915 docdir
916 oldincludedir
917 includedir
918 localstatedir
919 sharedstatedir
920 sysconfdir
921 datadir
922 datarootdir
923 libexecdir
924 sbindir
925 bindir
926 program_transform_name
927 prefix
928 exec_prefix
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files=''
937 ac_user_opts='
938 enable_option_checking
939 enable_dependency_tracking
940 with_hidden_visibility
941 enable_static
942 enable_shared
943 enable_fast_install
944 with_gnu_ld
945 enable_libtool_lock
946 with_pic
947 with_tags
948 enable_linear
949 enable_dejitter
950 enable_variance
951 enable_pthres
952 enable_ucb1x00
953 enable_corgi
954 enable_collie
955 enable_h3600
956 enable_mk712
957 enable_arctic2
958 enable_input
959 with_plugindir
960 enable_debug
962 ac_precious_vars='build_alias
963 host_alias
964 target_alias
966 CXXFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
972 CFLAGS
974 CXXCPP
976 FFLAGS'
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1047 ac_dashdash=yes ;;
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1313 -with-* | --with-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335 { (exit 1); exit 1; }; }
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1340 "with_$ac_useropt"
1341 "*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1365 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1366 Try \`$0 --help' for more information." >&2
1367 { (exit 1); exit 1; }; }
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375 { (exit 1); exit 1; }; }
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387 esac
1388 done
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1393 { (exit 1); exit 1; }; }
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400 { (exit 1); exit 1; }; } ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 esac
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1413 case $ac_val in
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1417 esac
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424 { (exit 1); exit 1; }; }
1425 done
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1441 cross_compiling=yes
1445 ac_tool_prefix=
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448 test "$silent" = yes && exec 6>/dev/null
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455 { (exit 1); exit 1; }; }
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458 { (exit 1); exit 1; }; }
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 s//\1/
1475 /^X\(\/\/\)[^/].*/{
1476 s//\1/
1479 /^X\(\/\/\)$/{
1480 s//\1/
1483 /^X\(\/\).*/{
1484 s//\1/
1487 s/.*/./; q'`
1488 srcdir=$ac_confdir
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 srcdir=..
1492 else
1493 ac_srcdir_defaulted=no
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1498 { (exit 1); exit 1; }; }
1500 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501 ac_abs_confdir=`(
1502 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1503 { (exit 1); exit 1; }; }
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures tslib 0.0.2 to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/tslib]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1584 cat <<\_ACEOF
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1591 System types:
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 _ACEOF
1597 if test -n "$ac_init_help"; then
1598 case $ac_init_help in
1599 short | recursive ) echo "Configuration of tslib 0.0.2:";;
1600 esac
1601 cat <<\_ACEOF
1603 Optional Features:
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --disable-dependency-tracking speeds up one-time build
1608 --enable-dependency-tracking do not reject slow dependency extractors
1609 --enable-static[=PKGS] build static libraries [default=no]
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-linear Enable building of linear scaling (default=yes)
1615 --enable-dejitter Enable building of dejitter filter (default=yes)
1616 --enable-linear-h2200 Enable building of linearizing filter for iPAQ h2200
1617 (default=yes)
1618 --enable-variance Enable building of variance filter (default=yes)
1619 --enable-pthres Enable building of pthres filter (default=yes)
1620 --enable-ucb1x00 Enable building of ucb1x00 raw module (UCB1x00
1621 support) (default=yes)
1622 --enable-corgi Enable building of corgi raw module (Sharp Zaurus
1623 sl-c7x0 support) (default=yes)
1624 --enable-collie Enable building of collie raw module (Sharp Zaurus
1625 sl-5500/5000d support) (default=yes)
1626 --enable-h3600 Enable building of h3600 raw module (HP iPaq H3600
1627 support) (default=yes)
1628 --enable-mk712 Enable building of mk712 raw module (Hi tachi
1629 support) (default=yes)
1630 --enable-arctic2 Enable building of arctic2 raw module (IBM Arctic II
1631 support) (default=yes)
1632 --enable-input Enable building of generic input raw module (Linux
1633 /dev/input/eventN support) (default=yes)
1634 --enable-debug
1635 Enable debug messages from filters (default=no)
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-hidden_visibility=VAL
1642 use -fvisibility=hidden (default VAL is 'auto')
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-pic try to use only PIC/non-PIC objects [default=use
1645 both]
1646 --with-tags[=TAGS] include additional configurations [automatic]
1647 --with-plugindir=ARG Where to look for plugins (default=${libdir}/ts)
1649 Some influential environment variables:
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1657 CC C compiler command
1658 CFLAGS C compiler flags
1659 CPP C preprocessor
1660 CXXCPP C++ preprocessor
1661 F77 Fortran 77 compiler command
1662 FFLAGS Fortran 77 compiler flags
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 Report bugs to <kergoth@handhelds.org>.
1668 _ACEOF
1669 ac_status=$?
1672 if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 continue
1678 ac_builddir=.
1680 case "$ac_dir" in
1681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690 esac
1691 ac_abs_top_builddir=$ac_pwd
1692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir=$ac_top_build_prefix
1696 case $srcdir in
1697 .) # We are building in place.
1698 ac_srcdir=.
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
1702 ac_srcdir=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 esac
1710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1720 else
1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
1724 done
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1729 cat <<\_ACEOF
1730 tslib configure 0.0.2
1731 generated by GNU Autoconf 2.63
1733 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1734 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1735 This configure script is free software; the Free Software Foundation
1736 gives unlimited permission to copy, distribute and modify it.
1737 _ACEOF
1738 exit
1740 cat >config.log <<_ACEOF
1741 This file contains any messages produced by compilers while
1742 running configure, to aid debugging if configure makes a mistake.
1744 It was created by tslib $as_me 0.0.2, which was
1745 generated by GNU Autoconf 2.63. Invocation command line was
1747 $ $0 $@
1749 _ACEOF
1750 exec 5>>config.log
1752 cat <<_ASUNAME
1753 ## --------- ##
1754 ## Platform. ##
1755 ## --------- ##
1757 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1758 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1759 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1760 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1761 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1764 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1766 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1767 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1768 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1769 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1770 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1771 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1772 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1774 _ASUNAME
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 $as_echo "PATH: $as_dir"
1782 done
1783 IFS=$as_save_IFS
1785 } >&5
1787 cat >&5 <<_ACEOF
1790 ## ----------- ##
1791 ## Core tests. ##
1792 ## ----------- ##
1794 _ACEOF
1797 # Keep a trace of the command line.
1798 # Strip out --no-create and --no-recursion so they do not pile up.
1799 # Strip out --silent because we don't want to record it for future runs.
1800 # Also quote any args containing shell meta-characters.
1801 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_configure_args=
1803 ac_configure_args0=
1804 ac_configure_args1=
1805 ac_must_keep_next=false
1806 for ac_pass in 1 2
1808 for ac_arg
1810 case $ac_arg in
1811 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1813 | -silent | --silent | --silen | --sile | --sil)
1814 continue ;;
1815 *\'*)
1816 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1817 esac
1818 case $ac_pass in
1819 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1821 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1822 if test $ac_must_keep_next = true; then
1823 ac_must_keep_next=false # Got value, back to normal.
1824 else
1825 case $ac_arg in
1826 *=* | --config-cache | -C | -disable-* | --disable-* \
1827 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1828 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1829 | -with-* | --with-* | -without-* | --without-* | --x)
1830 case "$ac_configure_args0 " in
1831 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1832 esac
1834 -* ) ac_must_keep_next=true ;;
1835 esac
1837 ac_configure_args="$ac_configure_args '$ac_arg'"
1839 esac
1840 done
1841 done
1842 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1843 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1845 # When interrupted or exit'd, cleanup temporary files, and complete
1846 # config.log. We remove comments because anyway the quotes in there
1847 # would cause problems or look ugly.
1848 # WARNING: Use '\'' to represent an apostrophe within the trap.
1849 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1850 trap 'exit_status=$?
1851 # Save into config.log some information that might help in debugging.
1853 echo
1855 cat <<\_ASBOX
1856 ## ---------------- ##
1857 ## Cache variables. ##
1858 ## ---------------- ##
1859 _ASBOX
1860 echo
1861 # The following way of writing the cache mishandles newlines in values,
1863 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1864 eval ac_val=\$$ac_var
1865 case $ac_val in #(
1866 *${as_nl}*)
1867 case $ac_var in #(
1868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1870 esac
1871 case $ac_var in #(
1872 _ | IFS | as_nl) ;; #(
1873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1874 *) $as_unset $ac_var ;;
1875 esac ;;
1876 esac
1877 done
1878 (set) 2>&1 |
1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1880 *${as_nl}ac_space=\ *)
1881 sed -n \
1882 "s/'\''/'\''\\\\'\'''\''/g;
1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1884 ;; #(
1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888 esac |
1889 sort
1891 echo
1893 cat <<\_ASBOX
1894 ## ----------------- ##
1895 ## Output variables. ##
1896 ## ----------------- ##
1897 _ASBOX
1898 echo
1899 for ac_var in $ac_subst_vars
1901 eval ac_val=\$$ac_var
1902 case $ac_val in
1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 esac
1905 $as_echo "$ac_var='\''$ac_val'\''"
1906 done | sort
1907 echo
1909 if test -n "$ac_subst_files"; then
1910 cat <<\_ASBOX
1911 ## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##
1914 _ASBOX
1915 echo
1916 for ac_var in $ac_subst_files
1918 eval ac_val=\$$ac_var
1919 case $ac_val in
1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 esac
1922 $as_echo "$ac_var='\''$ac_val'\''"
1923 done | sort
1924 echo
1927 if test -s confdefs.h; then
1928 cat <<\_ASBOX
1929 ## ----------- ##
1930 ## confdefs.h. ##
1931 ## ----------- ##
1932 _ASBOX
1933 echo
1934 cat confdefs.h
1935 echo
1937 test "$ac_signal" != 0 &&
1938 $as_echo "$as_me: caught signal $ac_signal"
1939 $as_echo "$as_me: exit $exit_status"
1940 } >&5
1941 rm -f core *.core core.conftest.* &&
1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1943 exit $exit_status
1945 for ac_signal in 1 2 13 15; do
1946 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1947 done
1948 ac_signal=0
1950 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1951 rm -f -r conftest* confdefs.h
1953 # Predefined preprocessor variables.
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_NAME "$PACKAGE_NAME"
1957 _ACEOF
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962 _ACEOF
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1967 _ACEOF
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_STRING "$PACKAGE_STRING"
1972 _ACEOF
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977 _ACEOF
1980 # Let the site file select an alternate cache file if it wants to.
1981 # Prefer an explicitly selected file to automatically selected ones.
1982 ac_site_file1=NONE
1983 ac_site_file2=NONE
1984 if test -n "$CONFIG_SITE"; then
1985 ac_site_file1=$CONFIG_SITE
1986 elif test "x$prefix" != xNONE; then
1987 ac_site_file1=$prefix/share/config.site
1988 ac_site_file2=$prefix/etc/config.site
1989 else
1990 ac_site_file1=$ac_default_prefix/share/config.site
1991 ac_site_file2=$ac_default_prefix/etc/config.site
1993 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1995 test "x$ac_site_file" = xNONE && continue
1996 if test -r "$ac_site_file"; then
1997 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1998 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1999 sed 's/^/| /' "$ac_site_file" >&5
2000 . "$ac_site_file"
2002 done
2004 if test -r "$cache_file"; then
2005 # Some versions of bash will fail to source /dev/null (special
2006 # files actually), so we avoid doing that.
2007 if test -f "$cache_file"; then
2008 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2009 $as_echo "$as_me: loading cache $cache_file" >&6;}
2010 case $cache_file in
2011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2012 *) . "./$cache_file";;
2013 esac
2015 else
2016 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2017 $as_echo "$as_me: creating cache $cache_file" >&6;}
2018 >$cache_file
2021 # Check that the precious variables saved in the cache have kept the same
2022 # value.
2023 ac_cache_corrupted=false
2024 for ac_var in $ac_precious_vars; do
2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2026 eval ac_new_set=\$ac_env_${ac_var}_set
2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2028 eval ac_new_val=\$ac_env_${ac_var}_value
2029 case $ac_old_set,$ac_new_set in
2030 set,)
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2034 ,set)
2035 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2036 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2037 ac_cache_corrupted=: ;;
2038 ,);;
2040 if test "x$ac_old_val" != "x$ac_new_val"; then
2041 # differences in whitespace do not lead to failure.
2042 ac_old_val_w=`echo x $ac_old_val`
2043 ac_new_val_w=`echo x $ac_new_val`
2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2045 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2046 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2047 ac_cache_corrupted=:
2048 else
2049 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2050 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2051 eval $ac_var=\$ac_old_val
2053 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2054 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2055 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2056 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2057 fi;;
2058 esac
2059 # Pass precious variables to config.status.
2060 if test "$ac_new_set" = set; then
2061 case $ac_new_val in
2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 *) ac_arg=$ac_var=$ac_new_val ;;
2064 esac
2065 case " $ac_configure_args " in
2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2067 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2068 esac
2070 done
2071 if $ac_cache_corrupted; then
2072 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2075 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2076 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2077 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2078 { (exit 1); exit 1; }; }
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 # AC_CONFIG_AUX_DIR(config)
2113 am__api_version='1.10'
2115 ac_aux_dir=
2116 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2117 if test -f "$ac_dir/install-sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 break
2121 elif test -f "$ac_dir/install.sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 break
2125 elif test -f "$ac_dir/shtool"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 break
2130 done
2131 if test -z "$ac_aux_dir"; then
2132 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2133 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2134 { (exit 1); exit 1; }; }
2137 # These three variables are undocumented and unsupported,
2138 # and are intended to be withdrawn in a future Autoconf release.
2139 # They can cause serious problems if a builder's source tree is in a directory
2140 # whose full name contains unusual characters.
2141 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2142 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2143 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2146 # Find a good install program. We prefer a C program (faster),
2147 # so one script is as good as another. But avoid the broken or
2148 # incompatible versions:
2149 # SysV /etc/install, /usr/sbin/install
2150 # SunOS /usr/etc/install
2151 # IRIX /sbin/install
2152 # AIX /bin/install
2153 # AmigaOS /C/install, which installs bootblocks on floppy discs
2154 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2157 # OS/2's system install, which has a completely different semantic
2158 # ./install, which can be erroneously created by make from ./install.sh.
2159 # Reject install programs that cannot install multiple files.
2160 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2161 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2162 if test -z "$INSTALL"; then
2163 if test "${ac_cv_path_install+set}" = set; then
2164 $as_echo_n "(cached) " >&6
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 # Account for people who put trailing slashes in PATH elements.
2172 case $as_dir/ in
2173 ./ | .// | /cC/* | \
2174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2175 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2176 /usr/ucb/* ) ;;
2178 # OSF1 and SCO ODT 3.0 have their own names for install.
2179 # Don't use installbsd from OSF since it installs stuff as root
2180 # by default.
2181 for ac_prog in ginstall scoinst install; do
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2184 if test $ac_prog = install &&
2185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186 # AIX install. It has an incompatible calling convention.
2188 elif test $ac_prog = install &&
2189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190 # program-specific install script used by HP pwplus--don't use.
2192 else
2193 rm -rf conftest.one conftest.two conftest.dir
2194 echo one > conftest.one
2195 echo two > conftest.two
2196 mkdir conftest.dir
2197 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2198 test -s conftest.one && test -s conftest.two &&
2199 test -s conftest.dir/conftest.one &&
2200 test -s conftest.dir/conftest.two
2201 then
2202 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2203 break 3
2207 done
2208 done
2210 esac
2212 done
2213 IFS=$as_save_IFS
2215 rm -rf conftest.one conftest.two conftest.dir
2218 if test "${ac_cv_path_install+set}" = set; then
2219 INSTALL=$ac_cv_path_install
2220 else
2221 # As a last resort, use the slow shell script. Don't cache a
2222 # value for INSTALL within a source directory, because that will
2223 # break other packages using the cache if that directory is
2224 # removed, or if the value is a relative name.
2225 INSTALL=$ac_install_sh
2228 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2229 $as_echo "$INSTALL" >&6; }
2231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2232 # It thinks the first close brace ends the variable substitution.
2233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2239 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2240 $as_echo_n "checking whether build environment is sane... " >&6; }
2241 # Just in case
2242 sleep 1
2243 echo timestamp > conftest.file
2244 # Do `set' in a subshell so we don't clobber the current shell's
2245 # arguments. Must try -L first in case configure is actually a
2246 # symlink; some systems play weird games with the mod time of symlinks
2247 # (eg FreeBSD returns the mod time of the symlink's containing
2248 # directory).
2249 if (
2250 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2251 if test "$*" = "X"; then
2252 # -L didn't work.
2253 set X `ls -t $srcdir/configure conftest.file`
2255 rm -f conftest.file
2256 if test "$*" != "X $srcdir/configure conftest.file" \
2257 && test "$*" != "X conftest.file $srcdir/configure"; then
2259 # If neither matched, then we have a broken ls. This can happen
2260 # if, for instance, CONFIG_SHELL is bash and it inherits a
2261 # broken ls alias from the environment. This has actually
2262 # happened. Such a system could not be considered "sane".
2263 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" >&5
2265 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2266 alias in your environment" >&2;}
2267 { (exit 1); exit 1; }; }
2270 test "$2" = conftest.file
2272 then
2273 # Ok.
2275 else
2276 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2277 Check your system clock" >&5
2278 $as_echo "$as_me: error: newly created file is older than distributed files!
2279 Check your system clock" >&2;}
2280 { (exit 1); exit 1; }; }
2282 { $as_echo "$as_me:$LINENO: result: yes" >&5
2283 $as_echo "yes" >&6; }
2284 test "$program_prefix" != NONE &&
2285 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2286 # Use a double $ so make ignores it.
2287 test "$program_suffix" != NONE &&
2288 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2289 # Double any \ or $.
2290 # By default was `s,x,x', remove it if useless.
2291 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2292 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2294 # expand $ac_aux_dir to an absolute path
2295 am_aux_dir=`cd $ac_aux_dir && pwd`
2297 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2298 # Use eval to expand $SHELL
2299 if eval "$MISSING --run true"; then
2300 am_missing_run="$MISSING --run "
2301 else
2302 am_missing_run=
2303 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2304 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2308 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2309 if test -z "$MKDIR_P"; then
2310 if test "${ac_cv_path_mkdir+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_prog in mkdir gmkdir; do
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2321 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2322 'mkdir (GNU coreutils) '* | \
2323 'mkdir (coreutils) '* | \
2324 'mkdir (fileutils) '4.1*)
2325 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2326 break 3;;
2327 esac
2328 done
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 if test "${ac_cv_path_mkdir+set}" = set; then
2336 MKDIR_P="$ac_cv_path_mkdir -p"
2337 else
2338 # As a last resort, use the slow shell script. Don't cache a
2339 # value for MKDIR_P within a source directory, because that will
2340 # break other packages using the cache if that directory is
2341 # removed, or if the value is a relative name.
2342 test -d ./--version && rmdir ./--version
2343 MKDIR_P="$ac_install_sh -d"
2346 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2347 $as_echo "$MKDIR_P" >&6; }
2349 mkdir_p="$MKDIR_P"
2350 case $mkdir_p in
2351 [\\/$]* | ?:[\\/]*) ;;
2352 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2353 esac
2355 for ac_prog in gawk mawk nawk awk
2357 # Extract the first word of "$ac_prog", so it can be a program name with args.
2358 set dummy $ac_prog; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_AWK+set}" = set; then
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$AWK"; then
2365 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_AWK="$ac_prog"
2375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2378 done
2379 done
2380 IFS=$as_save_IFS
2384 AWK=$ac_cv_prog_AWK
2385 if test -n "$AWK"; then
2386 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2387 $as_echo "$AWK" >&6; }
2388 else
2389 { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2394 test -n "$AWK" && break
2395 done
2397 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2398 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2399 set x ${MAKE-make}
2400 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2401 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2402 $as_echo_n "(cached) " >&6
2403 else
2404 cat >conftest.make <<\_ACEOF
2405 SHELL = /bin/sh
2406 all:
2407 @echo '@@@%%%=$(MAKE)=@@@%%%'
2408 _ACEOF
2409 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2410 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2411 *@@@%%%=?*=@@@%%%*)
2412 eval ac_cv_prog_make_${ac_make}_set=yes;;
2414 eval ac_cv_prog_make_${ac_make}_set=no;;
2415 esac
2416 rm -f conftest.make
2418 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2419 { $as_echo "$as_me:$LINENO: result: yes" >&5
2420 $as_echo "yes" >&6; }
2421 SET_MAKE=
2422 else
2423 { $as_echo "$as_me:$LINENO: result: no" >&5
2424 $as_echo "no" >&6; }
2425 SET_MAKE="MAKE=${MAKE-make}"
2428 rm -rf .tst 2>/dev/null
2429 mkdir .tst 2>/dev/null
2430 if test -d .tst; then
2431 am__leading_dot=.
2432 else
2433 am__leading_dot=_
2435 rmdir .tst 2>/dev/null
2437 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2438 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2439 # is not polluted with repeated "-I."
2440 am__isrc=' -I$(srcdir)'
2441 # test to see if srcdir already configured
2442 if test -f $srcdir/config.status; then
2443 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2444 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2445 { (exit 1); exit 1; }; }
2449 # test whether we have cygpath
2450 if test -z "$CYGPATH_W"; then
2451 if (cygpath --version) >/dev/null 2>/dev/null; then
2452 CYGPATH_W='cygpath -w'
2453 else
2454 CYGPATH_W=echo
2459 # Define the identity of the package.
2460 PACKAGE='tslib'
2461 VERSION='0.0.2'
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE "$PACKAGE"
2466 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define VERSION "$VERSION"
2471 _ACEOF
2473 # Some tools Automake needs.
2475 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2478 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2481 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2484 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2487 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2489 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2491 # Installed binaries are usually stripped using `strip' when the user
2492 # run `make install-strip'. However `strip' might not be the right
2493 # tool to use in cross-compilation environments, therefore Automake
2494 # will honor the `STRIP' environment variable to overrule this program.
2495 if test "$cross_compiling" != no; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_STRIP+set}" = set; then
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 STRIP=$ac_cv_prog_STRIP
2525 if test -n "$STRIP"; then
2526 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2527 $as_echo "$STRIP" >&6; }
2528 else
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2535 if test -z "$ac_cv_prog_STRIP"; then
2536 ac_ct_STRIP=$STRIP
2537 # Extract the first word of "strip", so it can be a program name with args.
2538 set dummy strip; ac_word=$2
2539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$ac_ct_STRIP"; then
2545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_ac_ct_STRIP="strip"
2555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2560 IFS=$as_save_IFS
2564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565 if test -n "$ac_ct_STRIP"; then
2566 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2567 $as_echo "$ac_ct_STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:$LINENO: result: no" >&5
2570 $as_echo "no" >&6; }
2573 if test "x$ac_ct_STRIP" = x; then
2574 STRIP=":"
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582 STRIP=$ac_ct_STRIP
2584 else
2585 STRIP="$ac_cv_prog_STRIP"
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591 # We need awk for the "check" target. The system "awk" is bad on
2592 # some platforms.
2593 # Always define AMTAR for backward compatibility.
2595 AMTAR=${AMTAR-"${am_missing_run}tar"}
2597 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2604 ac_config_headers="$ac_config_headers config.h"
2607 PACKAGE_DESCRIPTION="Touchscreen Access Library"
2610 # Set our default flags variables
2612 if test x"$CFLAGS" = "x"; then
2613 CFLAGS="-O2 -Wall -W"
2617 # Checks for programs.
2618 ac_ext=cpp
2619 ac_cpp='$CXXCPP $CPPFLAGS'
2620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2623 if test -z "$CXX"; then
2624 if test -n "$CCC"; then
2625 CXX=$CCC
2626 else
2627 if test -n "$ac_tool_prefix"; then
2628 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_CXX+set}" = set; then
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$CXX"; then
2638 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 CXX=$ac_cv_prog_CXX
2658 if test -n "$CXX"; then
2659 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2660 $as_echo "$CXX" >&6; }
2661 else
2662 { $as_echo "$as_me:$LINENO: result: no" >&5
2663 $as_echo "no" >&6; }
2667 test -n "$CXX" && break
2668 done
2670 if test -z "$CXX"; then
2671 ac_ct_CXX=$CXX
2672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$ac_ct_CXX"; then
2682 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_CXX="$ac_prog"
2692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2702 if test -n "$ac_ct_CXX"; then
2703 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2704 $as_echo "$ac_ct_CXX" >&6; }
2705 else
2706 { $as_echo "$as_me:$LINENO: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$ac_ct_CXX" && break
2712 done
2714 if test "x$ac_ct_CXX" = x; then
2715 CXX="g++"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CXX=$ac_ct_CXX
2729 # Provide some information about the compiler.
2730 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2731 set X $ac_compile
2732 ac_compiler=$2
2733 { (ac_try="$ac_compiler --version >&5"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739 $as_echo "$ac_try_echo") >&5
2740 (eval "$ac_compiler --version >&5") 2>&5
2741 ac_status=$?
2742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (ac_try="$ac_compiler -v >&5"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750 $as_echo "$ac_try_echo") >&5
2751 (eval "$ac_compiler -v >&5") 2>&5
2752 ac_status=$?
2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -V >&5"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2761 $as_echo "$ac_try_echo") >&5
2762 (eval "$ac_compiler -V >&5") 2>&5
2763 ac_status=$?
2764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 ac_clean_files_save=$ac_clean_files
2783 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2784 # Try to create an executable without -o first, disregard a.out.
2785 # It will help us diagnose broken compilers, and finding out an intuition
2786 # of exeext.
2787 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2788 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2789 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2791 # The possible output files:
2792 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2794 ac_rmfiles=
2795 for ac_file in $ac_files
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2800 esac
2801 done
2802 rm -f $ac_rmfiles
2804 if { (ac_try="$ac_link_default"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2810 $as_echo "$ac_try_echo") >&5
2811 (eval "$ac_link_default") 2>&5
2812 ac_status=$?
2813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2819 # Autoconf.
2820 for ac_file in $ac_files ''
2822 test -f "$ac_file" || continue
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
2840 break;;
2842 break;;
2843 esac
2844 done
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2847 else
2848 ac_file=''
2851 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2852 $as_echo "$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854 $as_echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2860 See \`config.log' for more details." >&5
2861 $as_echo "$as_me: error: C++ compiler cannot create executables
2862 See \`config.log' for more details." >&2;}
2863 { (exit 77); exit 77; }; }; }
2866 ac_exeext=$ac_cv_exeext
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2871 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873 # If not cross compiling, check that we can run a simple program.
2874 if test "$cross_compiling" != yes; then
2875 if { ac_try='./$ac_file'
2876 { (case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882 (eval "$ac_try") 2>&5
2883 ac_status=$?
2884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 cross_compiling=no
2887 else
2888 if test "$cross_compiling" = maybe; then
2889 cross_compiling=yes
2890 else
2891 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 $as_echo "$as_me: error: cannot run C++ compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }; }
2903 { $as_echo "$as_me:$LINENO: result: yes" >&5
2904 $as_echo "yes" >&6; }
2906 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 $as_echo_n "checking whether we are cross compiling... " >&6; }
2912 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 $as_echo "$cross_compiling" >&6; }
2915 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 $as_echo_n "checking for suffix of executables... " >&6; }
2917 if { (ac_try="$ac_link"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2923 $as_echo "$ac_try_echo") >&5
2924 (eval "$ac_link") 2>&5
2925 ac_status=$?
2926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2931 # `rm'.
2932 for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 break;;
2938 * ) break;;
2939 esac
2940 done
2941 else
2942 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&5
2946 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }; }
2951 rm -f conftest$ac_cv_exeext
2952 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 $as_echo "$ac_cv_exeext" >&6; }
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2957 ac_exeext=$EXEEXT
2958 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 $as_echo_n "checking for suffix of object files... " >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961 $as_echo_n "(cached) " >&6
2962 else
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2971 main ()
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2985 $as_echo "$ac_try_echo") >&5
2986 (eval "$ac_compile") 2>&5
2987 ac_status=$?
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997 done
2998 else
2999 $as_echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&5
3006 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }; }
3011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014 $as_echo "$ac_cv_objext" >&6; }
3015 OBJEXT=$ac_cv_objext
3016 ac_objext=$OBJEXT
3017 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020 $as_echo_n "(cached) " >&6
3021 else
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3030 main ()
3032 #ifndef __GNUC__
3033 choke me
3034 #endif
3037 return 0;
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3047 $as_echo "$ac_try_echo") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_cxx_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3058 ac_compiler_gnu=yes
3059 else
3060 $as_echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 ac_compiler_gnu=no
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3070 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3071 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3072 if test $ac_compiler_gnu = yes; then
3073 GXX=yes
3074 else
3075 GXX=
3077 ac_test_CXXFLAGS=${CXXFLAGS+set}
3078 ac_save_CXXFLAGS=$CXXFLAGS
3079 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3080 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3081 if test "${ac_cv_prog_cxx_g+set}" = set; then
3082 $as_echo_n "(cached) " >&6
3083 else
3084 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3085 ac_cxx_werror_flag=yes
3086 ac_cv_prog_cxx_g=no
3087 CXXFLAGS="-g"
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3096 main ()
3100 return 0;
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3110 $as_echo "$ac_try_echo") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_cxx_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3121 ac_cv_prog_cxx_g=yes
3122 else
3123 $as_echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 CXXFLAGS=""
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 main ()
3139 return 0;
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_cxx_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3161 else
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166 CXXFLAGS="-g"
3167 cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_cxx_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3200 ac_cv_prog_cxx_g=yes
3201 else
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3218 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3219 if test "$ac_test_CXXFLAGS" = set; then
3220 CXXFLAGS=$ac_save_CXXFLAGS
3221 elif test $ac_cv_prog_cxx_g = yes; then
3222 if test "$GXX" = yes; then
3223 CXXFLAGS="-g -O2"
3224 else
3225 CXXFLAGS="-g"
3227 else
3228 if test "$GXX" = yes; then
3229 CXXFLAGS="-O2"
3230 else
3231 CXXFLAGS=
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 DEPDIR="${am__leading_dot}deps"
3241 ac_config_commands="$ac_config_commands depfiles"
3244 am_make=${MAKE-make}
3245 cat > confinc << 'END'
3246 am__doit:
3247 @echo done
3248 .PHONY: am__doit
3250 # If we don't find an include directive, just comment out the code.
3251 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3253 am__include="#"
3254 am__quote=
3255 _am_result=none
3256 # First try GNU make style include.
3257 echo "include confinc" > confmf
3258 # We grep out `Entering directory' and `Leaving directory'
3259 # messages which can occur if `w' ends up in MAKEFLAGS.
3260 # In particular we don't look at `^make:' because GNU make might
3261 # be invoked under some other name (usually "gmake"), in which
3262 # case it prints its new name instead of `make'.
3263 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3264 am__include=include
3265 am__quote=
3266 _am_result=GNU
3268 # Now try BSD make style include.
3269 if test "$am__include" = "#"; then
3270 echo '.include "confinc"' > confmf
3271 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3272 am__include=.include
3273 am__quote="\""
3274 _am_result=BSD
3279 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3280 $as_echo "$_am_result" >&6; }
3281 rm -f confinc confmf
3283 # Check whether --enable-dependency-tracking was given.
3284 if test "${enable_dependency_tracking+set}" = set; then
3285 enableval=$enable_dependency_tracking;
3288 if test "x$enable_dependency_tracking" != xno; then
3289 am_depcomp="$ac_aux_dir/depcomp"
3290 AMDEPBACKSLASH='\'
3292 if test "x$enable_dependency_tracking" != xno; then
3293 AMDEP_TRUE=
3294 AMDEP_FALSE='#'
3295 else
3296 AMDEP_TRUE='#'
3297 AMDEP_FALSE=
3302 depcc="$CXX" am_compiler_list=
3304 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3305 $as_echo_n "checking dependency style of $depcc... " >&6; }
3306 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3310 # We make a subdir and do the tests there. Otherwise we can end up
3311 # making bogus files that we don't know about and never remove. For
3312 # instance it was reported that on HP-UX the gcc test will end up
3313 # making a dummy file named `D' -- because `-MD' means `put the output
3314 # in D'.
3315 mkdir conftest.dir
3316 # Copy depcomp to subdir because otherwise we won't find it if we're
3317 # using a relative directory.
3318 cp "$am_depcomp" conftest.dir
3319 cd conftest.dir
3320 # We will build objects and dependencies in a subdirectory because
3321 # it helps to detect inapplicable dependency modes. For instance
3322 # both Tru64's cc and ICC support -MD to output dependencies as a
3323 # side effect of compilation, but ICC will put the dependencies in
3324 # the current directory while Tru64 will put them in the object
3325 # directory.
3326 mkdir sub
3328 am_cv_CXX_dependencies_compiler_type=none
3329 if test "$am_compiler_list" = ""; then
3330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3332 for depmode in $am_compiler_list; do
3333 # Setup a source with many dependencies, because some compilers
3334 # like to wrap large dependency lists on column 80 (with \), and
3335 # we should not choose a depcomp mode which is confused by this.
3337 # We need to recreate these files for each test, as the compiler may
3338 # overwrite some of them when testing with obscure command lines.
3339 # This happens at least with the AIX C compiler.
3340 : > sub/conftest.c
3341 for i in 1 2 3 4 5 6; do
3342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3343 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3344 # Solaris 8's {/usr,}/bin/sh.
3345 touch sub/conftst$i.h
3346 done
3347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3349 case $depmode in
3350 nosideeffect)
3351 # after this tag, mechanisms are not by side-effect, so they'll
3352 # only be used when explicitly requested
3353 if test "x$enable_dependency_tracking" = xyes; then
3354 continue
3355 else
3356 break
3359 none) break ;;
3360 esac
3361 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3362 # mode. It turns out that the SunPro C++ compiler does not properly
3363 # handle `-M -o', and we need to detect this.
3364 if depmode=$depmode \
3365 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3367 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3368 >/dev/null 2>conftest.err &&
3369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3371 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3373 # icc doesn't choke on unknown options, it will just issue warnings
3374 # or remarks (even with -Werror). So we grep stderr for any message
3375 # that says an option was ignored or not supported.
3376 # When given -MP, icc 7.0 and 7.1 complain thusly:
3377 # icc: Command line warning: ignoring option '-M'; no argument required
3378 # The diagnosis changed in icc 8.0:
3379 # icc: Command line remark: option '-MP' not supported
3380 if (grep 'ignoring option' conftest.err ||
3381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3382 am_cv_CXX_dependencies_compiler_type=$depmode
3383 break
3386 done
3388 cd ..
3389 rm -rf conftest.dir
3390 else
3391 am_cv_CXX_dependencies_compiler_type=none
3395 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3396 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3400 test "x$enable_dependency_tracking" != xno \
3401 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3402 am__fastdepCXX_TRUE=
3403 am__fastdepCXX_FALSE='#'
3404 else
3405 am__fastdepCXX_TRUE='#'
3406 am__fastdepCXX_FALSE=
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_CC+set}" = set; then
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448 { $as_echo "$as_me:$LINENO: result: no" >&5
3449 $as_echo "no" >&6; }
3454 if test -z "$ac_cv_prog_CC"; then
3455 ac_ct_CC=$CC
3456 # Extract the first word of "gcc", so it can be a program name with args.
3457 set dummy gcc; ac_word=$2
3458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$ac_ct_CC"; then
3464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_ac_ct_CC="gcc"
3474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3484 if test -n "$ac_ct_CC"; then
3485 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3486 $as_echo "$ac_ct_CC" >&6; }
3487 else
3488 { $as_echo "$as_me:$LINENO: result: no" >&5
3489 $as_echo "no" >&6; }
3492 if test "x$ac_ct_CC" = x; then
3493 CC=""
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CC=$ac_ct_CC
3503 else
3504 CC="$ac_cv_prog_CC"
3507 if test -z "$CC"; then
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3510 set dummy ${ac_tool_prefix}cc; ac_word=$2
3511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_CC="${ac_tool_prefix}cc"
3527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3530 done
3531 done
3532 IFS=$as_save_IFS
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3540 else
3541 { $as_echo "$as_me:$LINENO: result: no" >&5
3542 $as_echo "no" >&6; }
3548 if test -z "$CC"; then
3549 # Extract the first word of "cc", so it can be a program name with args.
3550 set dummy cc; ac_word=$2
3551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 ac_prog_rejected=no
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3568 ac_prog_rejected=yes
3569 continue
3571 ac_cv_prog_CC="cc"
3572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3579 if test $ac_prog_rejected = yes; then
3580 # We found a bogon in the path, so make sure we never use it.
3581 set dummy $ac_cv_prog_CC
3582 shift
3583 if test $# != 0; then
3584 # We chose a different compiler from the bogus one.
3585 # However, it has the same basename, so the bogon will be chosen
3586 # first if we set CC to just the basename; use the full file name.
3587 shift
3588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:$LINENO: result: no" >&5
3599 $as_echo "no" >&6; }
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 for ac_prog in cl.exe
3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:$LINENO: result: no" >&5
3641 $as_echo "no" >&6; }
3645 test -n "$CC" && break
3646 done
3648 if test -z "$CC"; then
3649 ac_ct_CC=$CC
3650 for ac_prog in cl.exe
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$ac_ct_CC"; then
3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_ac_ct_CC="$ac_prog"
3670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3675 IFS=$as_save_IFS
3679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3680 if test -n "$ac_ct_CC"; then
3681 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3682 $as_echo "$ac_ct_CC" >&6; }
3683 else
3684 { $as_echo "$as_me:$LINENO: result: no" >&5
3685 $as_echo "no" >&6; }
3689 test -n "$ac_ct_CC" && break
3690 done
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696 yes:)
3697 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701 CC=$ac_ct_CC
3708 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3711 See \`config.log' for more details." >&5
3712 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3713 See \`config.log' for more details." >&2;}
3714 { (exit 1); exit 1; }; }; }
3716 # Provide some information about the compiler.
3717 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3718 set X $ac_compile
3719 ac_compiler=$2
3720 { (ac_try="$ac_compiler --version >&5"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727 (eval "$ac_compiler --version >&5") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }
3731 { (ac_try="$ac_compiler -v >&5"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3737 $as_echo "$ac_try_echo") >&5
3738 (eval "$ac_compiler -v >&5") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }
3742 { (ac_try="$ac_compiler -V >&5"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compiler -V >&5") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }
3754 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3756 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 main ()
3769 #ifndef __GNUC__
3770 choke me
3771 #endif
3774 return 0;
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3784 $as_echo "$ac_try_echo") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3795 ac_compiler_gnu=yes
3796 else
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 ac_compiler_gnu=no
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3807 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3808 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3809 if test $ac_compiler_gnu = yes; then
3810 GCC=yes
3811 else
3812 GCC=
3814 ac_test_CFLAGS=${CFLAGS+set}
3815 ac_save_CFLAGS=$CFLAGS
3816 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3817 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3818 if test "${ac_cv_prog_cc_g+set}" = set; then
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_save_c_werror_flag=$ac_c_werror_flag
3822 ac_c_werror_flag=yes
3823 ac_cv_prog_cc_g=no
3824 CFLAGS="-g"
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (ac_try="$ac_compile"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3847 $as_echo "$ac_try_echo") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3858 ac_cv_prog_cc_g=yes
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 CFLAGS=""
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3886 $as_echo "$ac_try_echo") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3898 else
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3903 CFLAGS="-g"
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3926 $as_echo "$ac_try_echo") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3937 ac_cv_prog_cc_g=yes
3938 else
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 ac_c_werror_flag=$ac_save_c_werror_flag
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3955 $as_echo "$ac_cv_prog_cc_g" >&6; }
3956 if test "$ac_test_CFLAGS" = set; then
3957 CFLAGS=$ac_save_CFLAGS
3958 elif test $ac_cv_prog_cc_g = yes; then
3959 if test "$GCC" = yes; then
3960 CFLAGS="-g -O2"
3961 else
3962 CFLAGS="-g"
3964 else
3965 if test "$GCC" = yes; then
3966 CFLAGS="-O2"
3967 else
3968 CFLAGS=
3971 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3973 if test "${ac_cv_prog_cc_c89+set}" = set; then
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_cv_prog_cc_c89=no
3977 ac_save_CC=$CC
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <stdarg.h>
3985 #include <stdio.h>
3986 #include <sys/types.h>
3987 #include <sys/stat.h>
3988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3989 struct buf { int x; };
3990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3991 static char *e (p, i)
3992 char **p;
3993 int i;
3995 return p[i];
3997 static char *f (char * (*g) (char **, int), char **p, ...)
3999 char *s;
4000 va_list v;
4001 va_start (v,p);
4002 s = g (p, va_arg (v,int));
4003 va_end (v);
4004 return s;
4007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4008 function prototypes and stuff, but not '\xHH' hex character constants.
4009 These don't provoke an error unfortunately, instead are silently treated
4010 as 'x'. The following induces an error, until -std is added to get
4011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4012 array size at least. It's necessary to write '\x00'==0 to get something
4013 that's true only with -std. */
4014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4017 inside strings and character constants. */
4018 #define FOO(x) 'x'
4019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021 int test (int i, double x);
4022 struct s1 {int (*f) (int a);};
4023 struct s2 {int (*f) (double a);};
4024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4025 int argc;
4026 char **argv;
4028 main ()
4030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4032 return 0;
4034 _ACEOF
4035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038 CC="$ac_save_CC $ac_arg"
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 ac_cv_prog_cc_c89=$ac_arg
4058 else
4059 $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4065 rm -f core conftest.err conftest.$ac_objext
4066 test "x$ac_cv_prog_cc_c89" != "xno" && break
4067 done
4068 rm -f conftest.$ac_ext
4069 CC=$ac_save_CC
4072 # AC_CACHE_VAL
4073 case "x$ac_cv_prog_cc_c89" in
4075 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4076 $as_echo "none needed" >&6; } ;;
4077 xno)
4078 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4079 $as_echo "unsupported" >&6; } ;;
4081 CC="$CC $ac_cv_prog_cc_c89"
4082 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4083 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4084 esac
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 depcc="$CC" am_compiler_list=
4095 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4096 $as_echo_n "checking dependency style of $depcc... " >&6; }
4097 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4101 # We make a subdir and do the tests there. Otherwise we can end up
4102 # making bogus files that we don't know about and never remove. For
4103 # instance it was reported that on HP-UX the gcc test will end up
4104 # making a dummy file named `D' -- because `-MD' means `put the output
4105 # in D'.
4106 mkdir conftest.dir
4107 # Copy depcomp to subdir because otherwise we won't find it if we're
4108 # using a relative directory.
4109 cp "$am_depcomp" conftest.dir
4110 cd conftest.dir
4111 # We will build objects and dependencies in a subdirectory because
4112 # it helps to detect inapplicable dependency modes. For instance
4113 # both Tru64's cc and ICC support -MD to output dependencies as a
4114 # side effect of compilation, but ICC will put the dependencies in
4115 # the current directory while Tru64 will put them in the object
4116 # directory.
4117 mkdir sub
4119 am_cv_CC_dependencies_compiler_type=none
4120 if test "$am_compiler_list" = ""; then
4121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4123 for depmode in $am_compiler_list; do
4124 # Setup a source with many dependencies, because some compilers
4125 # like to wrap large dependency lists on column 80 (with \), and
4126 # we should not choose a depcomp mode which is confused by this.
4128 # We need to recreate these files for each test, as the compiler may
4129 # overwrite some of them when testing with obscure command lines.
4130 # This happens at least with the AIX C compiler.
4131 : > sub/conftest.c
4132 for i in 1 2 3 4 5 6; do
4133 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4134 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4135 # Solaris 8's {/usr,}/bin/sh.
4136 touch sub/conftst$i.h
4137 done
4138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4140 case $depmode in
4141 nosideeffect)
4142 # after this tag, mechanisms are not by side-effect, so they'll
4143 # only be used when explicitly requested
4144 if test "x$enable_dependency_tracking" = xyes; then
4145 continue
4146 else
4147 break
4150 none) break ;;
4151 esac
4152 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4153 # mode. It turns out that the SunPro C++ compiler does not properly
4154 # handle `-M -o', and we need to detect this.
4155 if depmode=$depmode \
4156 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4158 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4159 >/dev/null 2>conftest.err &&
4160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4164 # icc doesn't choke on unknown options, it will just issue warnings
4165 # or remarks (even with -Werror). So we grep stderr for any message
4166 # that says an option was ignored or not supported.
4167 # When given -MP, icc 7.0 and 7.1 complain thusly:
4168 # icc: Command line warning: ignoring option '-M'; no argument required
4169 # The diagnosis changed in icc 8.0:
4170 # icc: Command line remark: option '-MP' not supported
4171 if (grep 'ignoring option' conftest.err ||
4172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4173 am_cv_CC_dependencies_compiler_type=$depmode
4174 break
4177 done
4179 cd ..
4180 rm -rf conftest.dir
4181 else
4182 am_cv_CC_dependencies_compiler_type=none
4186 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4187 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4188 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4191 test "x$enable_dependency_tracking" != xno \
4192 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4193 am__fastdepCC_TRUE=
4194 am__fastdepCC_FALSE='#'
4195 else
4196 am__fastdepCC_TRUE='#'
4197 am__fastdepCC_FALSE=
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4208 # On Suns, sometimes $CPP names a directory.
4209 if test -n "$CPP" && test -d "$CPP"; then
4210 CPP=
4212 if test -z "$CPP"; then
4213 if test "${ac_cv_prog_CPP+set}" = set; then
4214 $as_echo_n "(cached) " >&6
4215 else
4216 # Double quotes because CPP needs to be expanded
4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219 ac_preproc_ok=false
4220 for ac_c_preproc_warn_flag in '' yes
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #ifdef __STDC__
4235 # include <limits.h>
4236 #else
4237 # include <assert.h>
4238 #endif
4239 Syntax error
4240 _ACEOF
4241 if { (ac_try="$ac_cpp conftest.$ac_ext"
4242 case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4247 $as_echo "$ac_try_echo") >&5
4248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } >/dev/null && {
4255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 }; then
4259 else
4260 $as_echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # Broken: fails on valid input.
4264 continue
4267 rm -f conftest.err conftest.$ac_ext
4269 # OK, works on sane cases. Now check whether nonexistent headers
4270 # can be detected and how.
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <ac_nonexistent.h>
4278 _ACEOF
4279 if { (ac_try="$ac_cpp conftest.$ac_ext"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4285 $as_echo "$ac_try_echo") >&5
4286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } >/dev/null && {
4293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 }; then
4296 # Broken: success on invalid input.
4297 continue
4298 else
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 # Passes both tests.
4303 ac_preproc_ok=:
4304 break
4307 rm -f conftest.err conftest.$ac_ext
4309 done
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then
4313 break
4316 done
4317 ac_cv_prog_CPP=$CPP
4320 CPP=$ac_cv_prog_CPP
4321 else
4322 ac_cv_prog_CPP=$CPP
4324 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4325 $as_echo "$CPP" >&6; }
4326 ac_preproc_ok=false
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 #ifdef __STDC__
4342 # include <limits.h>
4343 #else
4344 # include <assert.h>
4345 #endif
4346 Syntax error
4347 _ACEOF
4348 if { (ac_try="$ac_cpp conftest.$ac_ext"
4349 case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352 esac
4353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4354 $as_echo "$ac_try_echo") >&5
4355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } >/dev/null && {
4362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 }; then
4366 else
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 # Broken: fails on valid input.
4371 continue
4374 rm -f conftest.err conftest.$ac_ext
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #include <ac_nonexistent.h>
4385 _ACEOF
4386 if { (ac_try="$ac_cpp conftest.$ac_ext"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392 $as_echo "$ac_try_echo") >&5
4393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null && {
4400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 }; then
4403 # Broken: success on invalid input.
4404 continue
4405 else
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 # Passes both tests.
4410 ac_preproc_ok=:
4411 break
4414 rm -f conftest.err conftest.$ac_ext
4416 done
4417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418 rm -f conftest.err conftest.$ac_ext
4419 if $ac_preproc_ok; then
4421 else
4422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4425 See \`config.log' for more details." >&5
4426 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4427 See \`config.log' for more details." >&2;}
4428 { (exit 1); exit 1; }; }; }
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 bb_save_CFLAGS="$CFLAGS"
4440 CFLAGS="-fvisibility=hidden $bb_save_CFLAGS"
4441 { $as_echo "$as_me:$LINENO: checking whether the C compiler supports -fvisibility=hidden" >&5
4442 $as_echo_n "checking whether the C compiler supports -fvisibility=hidden... " >&6; }
4443 if test "${bb_cv_cc_supports_hidden_visibility+set}" = set; then
4444 $as_echo_n "(cached) " >&6
4445 else
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (ac_try="$ac_compile"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4469 $as_echo "$ac_try_echo") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest.$ac_objext; then
4480 bb_cv_cc_supports_hidden_visibility=yes
4481 else
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 bb_cv_cc_supports_hidden_visibility=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 { $as_echo "$as_me:$LINENO: result: $bb_cv_cc_supports_hidden_visibility" >&5
4492 $as_echo "$bb_cv_cc_supports_hidden_visibility" >&6; }
4493 CFLAGS="$bb_save_CFLAGS"
4494 if test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
4495 CFLAGS="-DGCC_HASCLASSVISIBILITY $CFLAGS"
4499 { $as_echo "$as_me:$LINENO: checking whether to use -fvisibility=hidden" >&5
4500 $as_echo_n "checking whether to use -fvisibility=hidden... " >&6; }
4502 # Check whether --with-hidden_visibility was given.
4503 if test "${with_hidden_visibility+set}" = set; then
4504 withval=$with_hidden_visibility; bb_with_hidden_visibility=$withval
4505 else
4506 bb_with_hidden_visibility=auto
4510 if test "x$bb_with_hidden_visibility" != "xno" && \
4511 test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
4512 { $as_echo "$as_me:$LINENO: result: yes" >&5
4513 $as_echo "yes" >&6; }
4514 VIS_CFLAGS="-fvisibility=hidden"
4515 else
4516 { $as_echo "$as_me:$LINENO: result: no" >&5
4517 $as_echo "no" >&6; }
4521 # Find a good install program. We prefer a C program (faster),
4522 # so one script is as good as another. But avoid the broken or
4523 # incompatible versions:
4524 # SysV /etc/install, /usr/sbin/install
4525 # SunOS /usr/etc/install
4526 # IRIX /sbin/install
4527 # AIX /bin/install
4528 # AmigaOS /C/install, which installs bootblocks on floppy discs
4529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4532 # OS/2's system install, which has a completely different semantic
4533 # ./install, which can be erroneously created by make from ./install.sh.
4534 # Reject install programs that cannot install multiple files.
4535 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4536 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4537 if test -z "$INSTALL"; then
4538 if test "${ac_cv_path_install+set}" = set; then
4539 $as_echo_n "(cached) " >&6
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 # Account for people who put trailing slashes in PATH elements.
4547 case $as_dir/ in
4548 ./ | .// | /cC/* | \
4549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4551 /usr/ucb/* ) ;;
4553 # OSF1 and SCO ODT 3.0 have their own names for install.
4554 # Don't use installbsd from OSF since it installs stuff as root
4555 # by default.
4556 for ac_prog in ginstall scoinst install; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4559 if test $ac_prog = install &&
4560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4561 # AIX install. It has an incompatible calling convention.
4563 elif test $ac_prog = install &&
4564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4565 # program-specific install script used by HP pwplus--don't use.
4567 else
4568 rm -rf conftest.one conftest.two conftest.dir
4569 echo one > conftest.one
4570 echo two > conftest.two
4571 mkdir conftest.dir
4572 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4573 test -s conftest.one && test -s conftest.two &&
4574 test -s conftest.dir/conftest.one &&
4575 test -s conftest.dir/conftest.two
4576 then
4577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4578 break 3
4582 done
4583 done
4585 esac
4587 done
4588 IFS=$as_save_IFS
4590 rm -rf conftest.one conftest.two conftest.dir
4593 if test "${ac_cv_path_install+set}" = set; then
4594 INSTALL=$ac_cv_path_install
4595 else
4596 # As a last resort, use the slow shell script. Don't cache a
4597 # value for INSTALL within a source directory, because that will
4598 # break other packages using the cache if that directory is
4599 # removed, or if the value is a relative name.
4600 INSTALL=$ac_install_sh
4603 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4604 $as_echo "$INSTALL" >&6; }
4606 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4607 # It thinks the first close brace ends the variable substitution.
4608 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4610 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4612 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4614 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4615 $as_echo_n "checking whether ln -s works... " >&6; }
4616 LN_S=$as_ln_s
4617 if test "$LN_S" = "ln -s"; then
4618 { $as_echo "$as_me:$LINENO: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620 else
4621 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4622 $as_echo "no, using $LN_S" >&6; }
4625 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4627 set x ${MAKE-make}
4628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4629 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4630 $as_echo_n "(cached) " >&6
4631 else
4632 cat >conftest.make <<\_ACEOF
4633 SHELL = /bin/sh
4634 all:
4635 @echo '@@@%%%=$(MAKE)=@@@%%%'
4636 _ACEOF
4637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4639 *@@@%%%=?*=@@@%%%*)
4640 eval ac_cv_prog_make_${ac_make}_set=yes;;
4642 eval ac_cv_prog_make_${ac_make}_set=no;;
4643 esac
4644 rm -f conftest.make
4646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4647 { $as_echo "$as_me:$LINENO: result: yes" >&5
4648 $as_echo "yes" >&6; }
4649 SET_MAKE=
4650 else
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4653 SET_MAKE="MAKE=${MAKE-make}"
4656 # Check whether --enable-static was given.
4657 if test "${enable_static+set}" = set; then
4658 enableval=$enable_static; p=${PACKAGE-default}
4659 case $enableval in
4660 yes) enable_static=yes ;;
4661 no) enable_static=no ;;
4663 enable_static=no
4664 # Look at the argument we got. We use all the common list separators.
4665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4666 for pkg in $enableval; do
4667 IFS="$lt_save_ifs"
4668 if test "X$pkg" = "X$p"; then
4669 enable_static=yes
4671 done
4672 IFS="$lt_save_ifs"
4674 esac
4675 else
4676 enable_static=no
4681 # Check whether --enable-shared was given.
4682 if test "${enable_shared+set}" = set; then
4683 enableval=$enable_shared; p=${PACKAGE-default}
4684 case $enableval in
4685 yes) enable_shared=yes ;;
4686 no) enable_shared=no ;;
4688 enable_shared=no
4689 # Look at the argument we got. We use all the common list separators.
4690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4691 for pkg in $enableval; do
4692 IFS="$lt_save_ifs"
4693 if test "X$pkg" = "X$p"; then
4694 enable_shared=yes
4696 done
4697 IFS="$lt_save_ifs"
4699 esac
4700 else
4701 enable_shared=yes
4707 # Check whether --enable-fast-install was given.
4708 if test "${enable_fast_install+set}" = set; then
4709 enableval=$enable_fast_install; p=${PACKAGE-default}
4710 case $enableval in
4711 yes) enable_fast_install=yes ;;
4712 no) enable_fast_install=no ;;
4714 enable_fast_install=no
4715 # Look at the argument we got. We use all the common list separators.
4716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4717 for pkg in $enableval; do
4718 IFS="$lt_save_ifs"
4719 if test "X$pkg" = "X$p"; then
4720 enable_fast_install=yes
4722 done
4723 IFS="$lt_save_ifs"
4725 esac
4726 else
4727 enable_fast_install=yes
4731 # Make sure we can run config.sub.
4732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4733 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4734 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4735 { (exit 1); exit 1; }; }
4737 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4738 $as_echo_n "checking build system type... " >&6; }
4739 if test "${ac_cv_build+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_build_alias=$build_alias
4743 test "x$ac_build_alias" = x &&
4744 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4745 test "x$ac_build_alias" = x &&
4746 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4747 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4748 { (exit 1); exit 1; }; }
4749 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4750 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4751 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4752 { (exit 1); exit 1; }; }
4755 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4756 $as_echo "$ac_cv_build" >&6; }
4757 case $ac_cv_build in
4758 *-*-*) ;;
4759 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4760 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4761 { (exit 1); exit 1; }; };;
4762 esac
4763 build=$ac_cv_build
4764 ac_save_IFS=$IFS; IFS='-'
4765 set x $ac_cv_build
4766 shift
4767 build_cpu=$1
4768 build_vendor=$2
4769 shift; shift
4770 # Remember, the first character of IFS is used to create $*,
4771 # except with old shells:
4772 build_os=$*
4773 IFS=$ac_save_IFS
4774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4777 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4778 $as_echo_n "checking host system type... " >&6; }
4779 if test "${ac_cv_host+set}" = set; then
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test "x$host_alias" = x; then
4783 ac_cv_host=$ac_cv_build
4784 else
4785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4786 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4787 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4788 { (exit 1); exit 1; }; }
4792 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4793 $as_echo "$ac_cv_host" >&6; }
4794 case $ac_cv_host in
4795 *-*-*) ;;
4796 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4797 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4798 { (exit 1); exit 1; }; };;
4799 esac
4800 host=$ac_cv_host
4801 ac_save_IFS=$IFS; IFS='-'
4802 set x $ac_cv_host
4803 shift
4804 host_cpu=$1
4805 host_vendor=$2
4806 shift; shift
4807 # Remember, the first character of IFS is used to create $*,
4808 # except with old shells:
4809 host_os=$*
4810 IFS=$ac_save_IFS
4811 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4815 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4816 if test "${lt_cv_path_SED+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818 else
4819 # Loop through the user's path and test for sed and gsed.
4820 # Then use that list of sed's as ones to test for truncation.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for lt_ac_prog in sed gsed; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4829 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4831 done
4832 done
4833 done
4834 IFS=$as_save_IFS
4835 lt_ac_max=0
4836 lt_ac_count=0
4837 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4838 # along with /bin/sed that truncates output.
4839 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4840 test ! -f $lt_ac_sed && continue
4841 cat /dev/null > conftest.in
4842 lt_ac_count=0
4843 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4844 # Check for GNU sed and select it if it is found.
4845 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4846 lt_cv_path_SED=$lt_ac_sed
4847 break
4849 while true; do
4850 cat conftest.in conftest.in >conftest.tmp
4851 mv conftest.tmp conftest.in
4852 cp conftest.in conftest.nl
4853 echo >>conftest.nl
4854 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4855 cmp -s conftest.out conftest.nl || break
4856 # 10000 chars as input seems more than enough
4857 test $lt_ac_count -gt 10 && break
4858 lt_ac_count=`expr $lt_ac_count + 1`
4859 if test $lt_ac_count -gt $lt_ac_max; then
4860 lt_ac_max=$lt_ac_count
4861 lt_cv_path_SED=$lt_ac_sed
4863 done
4864 done
4868 SED=$lt_cv_path_SED
4870 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4871 $as_echo "$SED" >&6; }
4873 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4874 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4875 if test "${ac_cv_path_GREP+set}" = set; then
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -z "$GREP"; then
4879 ac_path_GREP_found=false
4880 # Loop through the user's path and test for each of PROGNAME-LIST
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_prog in grep ggrep; do
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4889 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4890 # Check for GNU ac_path_GREP and select it if it is found.
4891 # Check for GNU $ac_path_GREP
4892 case `"$ac_path_GREP" --version 2>&1` in
4893 *GNU*)
4894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4896 ac_count=0
4897 $as_echo_n 0123456789 >"conftest.in"
4898 while :
4900 cat "conftest.in" "conftest.in" >"conftest.tmp"
4901 mv "conftest.tmp" "conftest.in"
4902 cp "conftest.in" "conftest.nl"
4903 $as_echo 'GREP' >> "conftest.nl"
4904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906 ac_count=`expr $ac_count + 1`
4907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4908 # Best one so far, save it but keep looking for a better one
4909 ac_cv_path_GREP="$ac_path_GREP"
4910 ac_path_GREP_max=$ac_count
4912 # 10*(2^10) chars as input seems more than enough
4913 test $ac_count -gt 10 && break
4914 done
4915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4916 esac
4918 $ac_path_GREP_found && break 3
4919 done
4920 done
4921 done
4922 IFS=$as_save_IFS
4923 if test -z "$ac_cv_path_GREP"; then
4924 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4925 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4926 { (exit 1); exit 1; }; }
4928 else
4929 ac_cv_path_GREP=$GREP
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4934 $as_echo "$ac_cv_path_GREP" >&6; }
4935 GREP="$ac_cv_path_GREP"
4938 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4939 $as_echo_n "checking for egrep... " >&6; }
4940 if test "${ac_cv_path_EGREP+set}" = set; then
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4944 then ac_cv_path_EGREP="$GREP -E"
4945 else
4946 if test -z "$EGREP"; then
4947 ac_path_EGREP_found=false
4948 # Loop through the user's path and test for each of PROGNAME-LIST
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_prog in egrep; do
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4958 # Check for GNU ac_path_EGREP and select it if it is found.
4959 # Check for GNU $ac_path_EGREP
4960 case `"$ac_path_EGREP" --version 2>&1` in
4961 *GNU*)
4962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4964 ac_count=0
4965 $as_echo_n 0123456789 >"conftest.in"
4966 while :
4968 cat "conftest.in" "conftest.in" >"conftest.tmp"
4969 mv "conftest.tmp" "conftest.in"
4970 cp "conftest.in" "conftest.nl"
4971 $as_echo 'EGREP' >> "conftest.nl"
4972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4974 ac_count=`expr $ac_count + 1`
4975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4976 # Best one so far, save it but keep looking for a better one
4977 ac_cv_path_EGREP="$ac_path_EGREP"
4978 ac_path_EGREP_max=$ac_count
4980 # 10*(2^10) chars as input seems more than enough
4981 test $ac_count -gt 10 && break
4982 done
4983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4984 esac
4986 $ac_path_EGREP_found && break 3
4987 done
4988 done
4989 done
4990 IFS=$as_save_IFS
4991 if test -z "$ac_cv_path_EGREP"; then
4992 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4993 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4994 { (exit 1); exit 1; }; }
4996 else
4997 ac_cv_path_EGREP=$EGREP
5002 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5003 $as_echo "$ac_cv_path_EGREP" >&6; }
5004 EGREP="$ac_cv_path_EGREP"
5008 # Check whether --with-gnu-ld was given.
5009 if test "${with_gnu_ld+set}" = set; then
5010 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5011 else
5012 with_gnu_ld=no
5015 ac_prog=ld
5016 if test "$GCC" = yes; then
5017 # Check if gcc -print-prog-name=ld gives a path.
5018 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5019 $as_echo_n "checking for ld used by $CC... " >&6; }
5020 case $host in
5021 *-*-mingw*)
5022 # gcc leaves a trailing carriage return which upsets mingw
5023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5026 esac
5027 case $ac_prog in
5028 # Accept absolute paths.
5029 [\\/]* | ?:[\\/]*)
5030 re_direlt='/[^/][^/]*/\.\./'
5031 # Canonicalize the pathname of ld
5032 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5033 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5034 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5035 done
5036 test -z "$LD" && LD="$ac_prog"
5039 # If it fails, then pretend we aren't using GCC.
5040 ac_prog=ld
5043 # If it is relative, then search for the first ld in PATH.
5044 with_gnu_ld=unknown
5046 esac
5047 elif test "$with_gnu_ld" = yes; then
5048 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5049 $as_echo_n "checking for GNU ld... " >&6; }
5050 else
5051 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5052 $as_echo_n "checking for non-GNU ld... " >&6; }
5054 if test "${lt_cv_path_LD+set}" = set; then
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -z "$LD"; then
5058 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059 for ac_dir in $PATH; do
5060 IFS="$lt_save_ifs"
5061 test -z "$ac_dir" && ac_dir=.
5062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5063 lt_cv_path_LD="$ac_dir/$ac_prog"
5064 # Check to see if the program is GNU ld. I'd rather use --version,
5065 # but apparently some variants of GNU ld only accept -v.
5066 # Break only if it was the GNU/non-GNU ld that we prefer.
5067 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5068 *GNU* | *'with BFD'*)
5069 test "$with_gnu_ld" != no && break
5072 test "$with_gnu_ld" != yes && break
5074 esac
5076 done
5077 IFS="$lt_save_ifs"
5078 else
5079 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5083 LD="$lt_cv_path_LD"
5084 if test -n "$LD"; then
5085 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5086 $as_echo "$LD" >&6; }
5087 else
5088 { $as_echo "$as_me:$LINENO: result: no" >&5
5089 $as_echo "no" >&6; }
5091 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5092 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5093 { (exit 1); exit 1; }; }
5094 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5096 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5098 else
5099 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5100 case `$LD -v 2>&1 </dev/null` in
5101 *GNU* | *'with BFD'*)
5102 lt_cv_prog_gnu_ld=yes
5105 lt_cv_prog_gnu_ld=no
5107 esac
5109 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5110 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5111 with_gnu_ld=$lt_cv_prog_gnu_ld
5114 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5115 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5116 if test "${lt_cv_ld_reload_flag+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5118 else
5119 lt_cv_ld_reload_flag='-r'
5121 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5122 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5123 reload_flag=$lt_cv_ld_reload_flag
5124 case $reload_flag in
5125 "" | " "*) ;;
5126 *) reload_flag=" $reload_flag" ;;
5127 esac
5128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129 case $host_os in
5130 darwin*)
5131 if test "$GCC" = yes; then
5132 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5133 else
5134 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137 esac
5139 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5140 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5141 if test "${lt_cv_path_NM+set}" = set; then
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$NM"; then
5145 # Let the user override the test.
5146 lt_cv_path_NM="$NM"
5147 else
5148 lt_nm_to_check="${ac_tool_prefix}nm"
5149 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5150 lt_nm_to_check="$lt_nm_to_check nm"
5152 for lt_tmp_nm in $lt_nm_to_check; do
5153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5154 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5155 IFS="$lt_save_ifs"
5156 test -z "$ac_dir" && ac_dir=.
5157 tmp_nm="$ac_dir/$lt_tmp_nm"
5158 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5159 # Check to see if the nm accepts a BSD-compat flag.
5160 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5161 # nm: unknown option "B" ignored
5162 # Tru64's nm complains that /dev/null is an invalid object file
5163 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5164 */dev/null* | *'Invalid file or object type'*)
5165 lt_cv_path_NM="$tmp_nm -B"
5166 break
5169 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5170 */dev/null*)
5171 lt_cv_path_NM="$tmp_nm -p"
5172 break
5175 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5176 continue # so that we can try to find one that supports BSD flags
5178 esac
5180 esac
5182 done
5183 IFS="$lt_save_ifs"
5184 done
5185 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5188 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5189 $as_echo "$lt_cv_path_NM" >&6; }
5190 NM="$lt_cv_path_NM"
5192 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5193 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5194 if test "${lt_cv_deplibs_check_method+set}" = set; then
5195 $as_echo_n "(cached) " >&6
5196 else
5197 lt_cv_file_magic_cmd='$MAGIC_CMD'
5198 lt_cv_file_magic_test_file=
5199 lt_cv_deplibs_check_method='unknown'
5200 # Need to set the preceding variable on all platforms that support
5201 # interlibrary dependencies.
5202 # 'none' -- dependencies not supported.
5203 # `unknown' -- same as none, but documents that we really don't know.
5204 # 'pass_all' -- all dependencies passed with no checks.
5205 # 'test_compile' -- check by making test program.
5206 # 'file_magic [[regex]]' -- check by looking for files in library path
5207 # which responds to the $file_magic_cmd with a given extended regex.
5208 # If you have `file' or equivalent on your system and you're not sure
5209 # whether `pass_all' will *always* work, you probably want this one.
5211 case $host_os in
5212 aix[4-9]*)
5213 lt_cv_deplibs_check_method=pass_all
5216 beos*)
5217 lt_cv_deplibs_check_method=pass_all
5220 bsdi[45]*)
5221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5222 lt_cv_file_magic_cmd='/usr/bin/file -L'
5223 lt_cv_file_magic_test_file=/shlib/libc.so
5226 cygwin*)
5227 # func_win32_libid is a shell function defined in ltmain.sh
5228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5229 lt_cv_file_magic_cmd='func_win32_libid'
5232 mingw* | pw32*)
5233 # Base MSYS/MinGW do not provide the 'file' command needed by
5234 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5235 # unless we find 'file', for example because we are cross-compiling.
5236 if ( file / ) >/dev/null 2>&1; then
5237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5238 lt_cv_file_magic_cmd='func_win32_libid'
5239 else
5240 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5241 lt_cv_file_magic_cmd='$OBJDUMP -f'
5245 darwin* | rhapsody*)
5246 lt_cv_deplibs_check_method=pass_all
5249 freebsd* | dragonfly*)
5250 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5251 case $host_cpu in
5252 i*86 )
5253 # Not sure whether the presence of OpenBSD here was a mistake.
5254 # Let's accept both of them until this is cleared up.
5255 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5259 esac
5260 else
5261 lt_cv_deplibs_check_method=pass_all
5265 gnu*)
5266 lt_cv_deplibs_check_method=pass_all
5269 hpux10.20* | hpux11*)
5270 lt_cv_file_magic_cmd=/usr/bin/file
5271 case $host_cpu in
5272 ia64*)
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5274 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5276 hppa*64*)
5277 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]'
5278 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5282 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5284 esac
5287 interix[3-9]*)
5288 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5292 irix5* | irix6* | nonstopux*)
5293 case $LD in
5294 *-32|*"-32 ") libmagic=32-bit;;
5295 *-n32|*"-n32 ") libmagic=N32;;
5296 *-64|*"-64 ") libmagic=64-bit;;
5297 *) libmagic=never-match;;
5298 esac
5299 lt_cv_deplibs_check_method=pass_all
5302 # This must be Linux ELF.
5303 linux* | k*bsd*-gnu)
5304 lt_cv_deplibs_check_method=pass_all
5307 netbsd*)
5308 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5310 else
5311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5315 newos6*)
5316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5317 lt_cv_file_magic_cmd=/usr/bin/file
5318 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5321 nto-qnx*)
5322 lt_cv_deplibs_check_method=unknown
5325 openbsd*)
5326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5328 else
5329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333 osf3* | osf4* | osf5*)
5334 lt_cv_deplibs_check_method=pass_all
5337 rdos*)
5338 lt_cv_deplibs_check_method=pass_all
5341 solaris*)
5342 lt_cv_deplibs_check_method=pass_all
5345 sysv4 | sysv4.3*)
5346 case $host_vendor in
5347 motorola)
5348 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]'
5349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5351 ncr)
5352 lt_cv_deplibs_check_method=pass_all
5354 sequent)
5355 lt_cv_file_magic_cmd='/bin/file'
5356 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5358 sni)
5359 lt_cv_file_magic_cmd='/bin/file'
5360 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5361 lt_cv_file_magic_test_file=/lib/libc.so
5363 siemens)
5364 lt_cv_deplibs_check_method=pass_all
5367 lt_cv_deplibs_check_method=pass_all
5369 esac
5372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5373 lt_cv_deplibs_check_method=pass_all
5375 esac
5378 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5379 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5380 file_magic_cmd=$lt_cv_file_magic_cmd
5381 deplibs_check_method=$lt_cv_deplibs_check_method
5382 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5387 # If no C compiler was specified, use CC.
5388 LTCC=${LTCC-"$CC"}
5390 # If no C compiler flags were specified, use CFLAGS.
5391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5393 # Allow CC to be a program name with arguments.
5394 compiler=$CC
5396 # Check whether --enable-libtool-lock was given.
5397 if test "${enable_libtool_lock+set}" = set; then
5398 enableval=$enable_libtool_lock;
5401 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5403 # Some flags need to be propagated to the compiler or linker for good
5404 # libtool support.
5405 case $host in
5406 ia64-*-hpux*)
5407 # Find out which ABI we are using.
5408 echo 'int i;' > conftest.$ac_ext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>&5
5411 ac_status=$?
5412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; then
5414 case `/usr/bin/file conftest.$ac_objext` in
5415 *ELF-32*)
5416 HPUX_IA64_MODE="32"
5418 *ELF-64*)
5419 HPUX_IA64_MODE="64"
5421 esac
5423 rm -rf conftest*
5425 *-*-irix6*)
5426 # Find out which ABI we are using.
5427 echo '#line 5427 "configure"' > conftest.$ac_ext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>&5
5430 ac_status=$?
5431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; then
5433 if test "$lt_cv_prog_gnu_ld" = yes; then
5434 case `/usr/bin/file conftest.$ac_objext` in
5435 *32-bit*)
5436 LD="${LD-ld} -melf32bsmip"
5438 *N32*)
5439 LD="${LD-ld} -melf32bmipn32"
5441 *64-bit*)
5442 LD="${LD-ld} -melf64bmip"
5444 esac
5445 else
5446 case `/usr/bin/file conftest.$ac_objext` in
5447 *32-bit*)
5448 LD="${LD-ld} -32"
5450 *N32*)
5451 LD="${LD-ld} -n32"
5453 *64-bit*)
5454 LD="${LD-ld} -64"
5456 esac
5459 rm -rf conftest*
5462 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5463 s390*-*linux*|sparc*-*linux*)
5464 # Find out which ABI we are using.
5465 echo 'int i;' > conftest.$ac_ext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>&5
5468 ac_status=$?
5469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; then
5471 case `/usr/bin/file conftest.o` in
5472 *32-bit*)
5473 case $host in
5474 x86_64-*kfreebsd*-gnu)
5475 LD="${LD-ld} -m elf_i386_fbsd"
5477 x86_64-*linux*)
5478 LD="${LD-ld} -m elf_i386"
5480 ppc64-*linux*|powerpc64-*linux*)
5481 LD="${LD-ld} -m elf32ppclinux"
5483 s390x-*linux*)
5484 LD="${LD-ld} -m elf_s390"
5486 sparc64-*linux*)
5487 LD="${LD-ld} -m elf32_sparc"
5489 esac
5491 *64-bit*)
5492 libsuff=64
5493 case $host in
5494 x86_64-*kfreebsd*-gnu)
5495 LD="${LD-ld} -m elf_x86_64_fbsd"
5497 x86_64-*linux*)
5498 LD="${LD-ld} -m elf_x86_64"
5500 ppc*-*linux*|powerpc*-*linux*)
5501 LD="${LD-ld} -m elf64ppc"
5503 s390*-*linux*)
5504 LD="${LD-ld} -m elf64_s390"
5506 sparc*-*linux*)
5507 LD="${LD-ld} -m elf64_sparc"
5509 esac
5511 esac
5513 rm -rf conftest*
5516 *-*-sco3.2v5*)
5517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5518 SAVE_CFLAGS="$CFLAGS"
5519 CFLAGS="$CFLAGS -belf"
5520 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5521 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5522 if test "${lt_cv_cc_needs_belf+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5524 else
5525 ac_ext=c
5526 ac_cpp='$CPP $CPPFLAGS'
5527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5539 main ()
5543 return 0;
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (ac_try="$ac_link"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5553 $as_echo "$ac_try_echo") >&5
5554 (eval "$ac_link") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest$ac_exeext && {
5564 test "$cross_compiling" = yes ||
5565 $as_test_x conftest$ac_exeext
5566 }; then
5567 lt_cv_cc_needs_belf=yes
5568 else
5569 $as_echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 lt_cv_cc_needs_belf=no
5575 rm -rf conftest.dSYM
5576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5577 conftest$ac_exeext conftest.$ac_ext
5578 ac_ext=c
5579 ac_cpp='$CPP $CPPFLAGS'
5580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5586 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5589 CFLAGS="$SAVE_CFLAGS"
5592 sparc*-*solaris*)
5593 # Find out which ABI we are using.
5594 echo 'int i;' > conftest.$ac_ext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 case `/usr/bin/file conftest.o` in
5601 *64-bit*)
5602 case $lt_cv_prog_gnu_ld in
5603 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5606 LD="${LD-ld} -64"
5609 esac
5611 esac
5613 rm -rf conftest*
5617 esac
5619 need_locks="$enable_libtool_lock"
5623 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5624 $as_echo_n "checking for ANSI C header files... " >&6; }
5625 if test "${ac_cv_header_stdc+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <stdlib.h>
5635 #include <stdarg.h>
5636 #include <string.h>
5637 #include <float.h>
5640 main ()
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_header_stdc=yes
5666 else
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_cv_header_stdc=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 if test $ac_cv_header_stdc = yes; then
5676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 #include <string.h>
5685 _ACEOF
5686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687 $EGREP "memchr" >/dev/null 2>&1; then
5689 else
5690 ac_cv_header_stdc=no
5692 rm -f conftest*
5696 if test $ac_cv_header_stdc = yes; then
5697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <stdlib.h>
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "free" >/dev/null 2>&1; then
5710 else
5711 ac_cv_header_stdc=no
5713 rm -f conftest*
5717 if test $ac_cv_header_stdc = yes; then
5718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5719 if test "$cross_compiling" = yes; then
5721 else
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <ctype.h>
5729 #include <stdlib.h>
5730 #if ((' ' & 0x0FF) == 0x020)
5731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5733 #else
5734 # define ISLOWER(c) \
5735 (('a' <= (c) && (c) <= 'i') \
5736 || ('j' <= (c) && (c) <= 'r') \
5737 || ('s' <= (c) && (c) <= 'z'))
5738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5739 #endif
5741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5743 main ()
5745 int i;
5746 for (i = 0; i < 256; i++)
5747 if (XOR (islower (i), ISLOWER (i))
5748 || toupper (i) != TOUPPER (i))
5749 return 2;
5750 return 0;
5752 _ACEOF
5753 rm -f conftest$ac_exeext
5754 if { (ac_try="$ac_link"
5755 case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758 esac
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761 (eval "$ac_link") 2>&5
5762 ac_status=$?
5763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5765 { (case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768 esac
5769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5770 $as_echo "$ac_try_echo") >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5776 else
5777 $as_echo "$as_me: program exited with status $ac_status" >&5
5778 $as_echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5781 ( exit $ac_status )
5782 ac_cv_header_stdc=no
5784 rm -rf conftest.dSYM
5785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5792 $as_echo "$ac_cv_header_stdc" >&6; }
5793 if test $ac_cv_header_stdc = yes; then
5795 cat >>confdefs.h <<\_ACEOF
5796 #define STDC_HEADERS 1
5797 _ACEOF
5801 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5811 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5812 inttypes.h stdint.h unistd.h
5814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5816 $as_echo_n "checking for $ac_header... " >&6; }
5817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818 $as_echo_n "(cached) " >&6
5819 else
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 $ac_includes_default
5828 #include <$ac_header>
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (ac_try="$ac_compile"
5832 case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835 esac
5836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837 $as_echo "$ac_try_echo") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5848 eval "$as_ac_Header=yes"
5849 else
5850 $as_echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 eval "$as_ac_Header=no"
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_res=`eval 'as_val=${'$as_ac_Header'}
5859 $as_echo "$as_val"'`
5860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5861 $as_echo "$ac_res" >&6; }
5862 as_val=`eval 'as_val=${'$as_ac_Header'}
5863 $as_echo "$as_val"'`
5864 if test "x$as_val" = x""yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5867 _ACEOF
5871 done
5875 for ac_header in dlfcn.h
5877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5880 $as_echo_n "checking for $ac_header... " >&6; }
5881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5882 $as_echo_n "(cached) " >&6
5884 ac_res=`eval 'as_val=${'$as_ac_Header'}
5885 $as_echo "$as_val"'`
5886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5887 $as_echo "$ac_res" >&6; }
5888 else
5889 # Is the header compilable?
5890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5891 $as_echo_n "checking $ac_header usability... " >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <$ac_header>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_header_compiler=yes
5920 else
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 ac_header_compiler=no
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5929 $as_echo "$ac_header_compiler" >&6; }
5931 # Is the header present?
5932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5933 $as_echo_n "checking $ac_header presence... " >&6; }
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <$ac_header>
5941 _ACEOF
5942 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5948 $as_echo "$ac_try_echo") >&5
5949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } >/dev/null && {
5956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 }; then
5959 ac_header_preproc=yes
5960 else
5961 $as_echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_header_preproc=no
5967 rm -f conftest.err conftest.$ac_ext
5968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5969 $as_echo "$ac_header_preproc" >&6; }
5971 # So? What about this header?
5972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5973 yes:no: )
5974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5978 ac_header_preproc=yes
5980 no:yes:* )
5981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5993 ( cat <<\_ASBOX
5994 ## ------------------------------------ ##
5995 ## Report this to kergoth@handhelds.org ##
5996 ## ------------------------------------ ##
5997 _ASBOX
5998 ) | sed "s/^/$as_me: WARNING: /" >&2
6000 esac
6001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6002 $as_echo_n "checking for $ac_header... " >&6; }
6003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6004 $as_echo_n "(cached) " >&6
6005 else
6006 eval "$as_ac_Header=\$ac_header_preproc"
6008 ac_res=`eval 'as_val=${'$as_ac_Header'}
6009 $as_echo "$as_val"'`
6010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6011 $as_echo "$ac_res" >&6; }
6014 as_val=`eval 'as_val=${'$as_ac_Header'}
6015 $as_echo "$as_val"'`
6016 if test "x$as_val" = x""yes; then
6017 cat >>confdefs.h <<_ACEOF
6018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019 _ACEOF
6023 done
6027 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6028 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6029 (test "X$CXX" != "Xg++"))) ; then
6030 ac_ext=cpp
6031 ac_cpp='$CXXCPP $CPPFLAGS'
6032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6035 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6036 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6037 if test -z "$CXXCPP"; then
6038 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6039 $as_echo_n "(cached) " >&6
6040 else
6041 # Double quotes because CXXCPP needs to be expanded
6042 for CXXCPP in "$CXX -E" "/lib/cpp"
6044 ac_preproc_ok=false
6045 for ac_cxx_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #ifdef __STDC__
6060 # include <limits.h>
6061 #else
6062 # include <assert.h>
6063 #endif
6064 Syntax error
6065 _ACEOF
6066 if { (ac_try="$ac_cpp conftest.$ac_ext"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } >/dev/null && {
6080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6081 test ! -s conftest.err
6082 }; then
6084 else
6085 $as_echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 # Broken: fails on valid input.
6089 continue
6092 rm -f conftest.err conftest.$ac_ext
6094 # OK, works on sane cases. Now check whether nonexistent headers
6095 # can be detected and how.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #include <ac_nonexistent.h>
6103 _ACEOF
6104 if { (ac_try="$ac_cpp conftest.$ac_ext"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6110 $as_echo "$ac_try_echo") >&5
6111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null && {
6118 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6119 test ! -s conftest.err
6120 }; then
6121 # Broken: success on invalid input.
6122 continue
6123 else
6124 $as_echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 # Passes both tests.
6128 ac_preproc_ok=:
6129 break
6132 rm -f conftest.err conftest.$ac_ext
6134 done
6135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6136 rm -f conftest.err conftest.$ac_ext
6137 if $ac_preproc_ok; then
6138 break
6141 done
6142 ac_cv_prog_CXXCPP=$CXXCPP
6145 CXXCPP=$ac_cv_prog_CXXCPP
6146 else
6147 ac_cv_prog_CXXCPP=$CXXCPP
6149 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6150 $as_echo "$CXXCPP" >&6; }
6151 ac_preproc_ok=false
6152 for ac_cxx_preproc_warn_flag in '' yes
6154 # Use a header file that comes with gcc, so configuring glibc
6155 # with a fresh cross-compiler works.
6156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157 # <limits.h> exists even on freestanding compilers.
6158 # On the NeXT, cc -E runs the code through the compiler's parser,
6159 # not just through cpp. "Syntax error" is here to catch this case.
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #ifdef __STDC__
6167 # include <limits.h>
6168 #else
6169 # include <assert.h>
6170 #endif
6171 Syntax error
6172 _ACEOF
6173 if { (ac_try="$ac_cpp conftest.$ac_ext"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } >/dev/null && {
6187 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6188 test ! -s conftest.err
6189 }; then
6191 else
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 # Broken: fails on valid input.
6196 continue
6199 rm -f conftest.err conftest.$ac_ext
6201 # OK, works on sane cases. Now check whether nonexistent headers
6202 # can be detected and how.
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <ac_nonexistent.h>
6210 _ACEOF
6211 if { (ac_try="$ac_cpp conftest.$ac_ext"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6217 $as_echo "$ac_try_echo") >&5
6218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } >/dev/null && {
6225 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6226 test ! -s conftest.err
6227 }; then
6228 # Broken: success on invalid input.
6229 continue
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 # Passes both tests.
6235 ac_preproc_ok=:
6236 break
6239 rm -f conftest.err conftest.$ac_ext
6241 done
6242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243 rm -f conftest.err conftest.$ac_ext
6244 if $ac_preproc_ok; then
6246 else
6247 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6249 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6250 See \`config.log' for more details." >&5
6251 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6252 See \`config.log' for more details." >&2;}
6253 { (exit 1); exit 1; }; }; }
6256 ac_ext=cpp
6257 ac_cpp='$CXXCPP $CPPFLAGS'
6258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6265 ac_ext=f
6266 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6267 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6269 if test -n "$ac_tool_prefix"; then
6270 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
6272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_F77+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$F77"; then
6280 ac_cv_prog_F77="$F77" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 F77=$ac_cv_prog_F77
6300 if test -n "$F77"; then
6301 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6302 $as_echo "$F77" >&6; }
6303 else
6304 { $as_echo "$as_me:$LINENO: result: no" >&5
6305 $as_echo "no" >&6; }
6309 test -n "$F77" && break
6310 done
6312 if test -z "$F77"; then
6313 ac_ct_F77=$F77
6314 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
6316 # Extract the first word of "$ac_prog", so it can be a program name with args.
6317 set dummy $ac_prog; ac_word=$2
6318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$ac_ct_F77"; then
6324 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_ac_ct_F77="$ac_prog"
6334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6337 done
6338 done
6339 IFS=$as_save_IFS
6343 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6344 if test -n "$ac_ct_F77"; then
6345 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6346 $as_echo "$ac_ct_F77" >&6; }
6347 else
6348 { $as_echo "$as_me:$LINENO: result: no" >&5
6349 $as_echo "no" >&6; }
6353 test -n "$ac_ct_F77" && break
6354 done
6356 if test "x$ac_ct_F77" = x; then
6357 F77=""
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365 F77=$ac_ct_F77
6370 # Provide some information about the compiler.
6371 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6372 set X $ac_compile
6373 ac_compiler=$2
6374 { (ac_try="$ac_compiler --version >&5"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6380 $as_echo "$ac_try_echo") >&5
6381 (eval "$ac_compiler --version >&5") 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
6385 { (ac_try="$ac_compiler -v >&5"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6391 $as_echo "$ac_try_echo") >&5
6392 (eval "$ac_compiler -v >&5") 2>&5
6393 ac_status=$?
6394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }
6396 { (ac_try="$ac_compiler -V >&5"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403 (eval "$ac_compiler -V >&5") 2>&5
6404 ac_status=$?
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }
6407 rm -f a.out
6409 # If we don't use `.F' as extension, the preprocessor is not run on the
6410 # input file. (Note that this only needs to work for GNU compilers.)
6411 ac_save_ext=$ac_ext
6412 ac_ext=F
6413 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6414 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6415 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6416 $as_echo_n "(cached) " >&6
6417 else
6418 cat >conftest.$ac_ext <<_ACEOF
6419 program main
6420 #ifndef __GNUC__
6421 choke me
6422 #endif
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_f77_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 ac_compiler_gnu=yes
6445 else
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_compiler_gnu=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6456 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6457 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6458 ac_ext=$ac_save_ext
6459 ac_test_FFLAGS=${FFLAGS+set}
6460 ac_save_FFLAGS=$FFLAGS
6461 FFLAGS=
6462 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6463 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6464 if test "${ac_cv_prog_f77_g+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6466 else
6467 FFLAGS=-g
6468 cat >conftest.$ac_ext <<_ACEOF
6469 program main
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_f77_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 ac_cv_prog_f77_g=yes
6492 else
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_cv_prog_f77_g=no
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6503 $as_echo "$ac_cv_prog_f77_g" >&6; }
6504 if test "$ac_test_FFLAGS" = set; then
6505 FFLAGS=$ac_save_FFLAGS
6506 elif test $ac_cv_prog_f77_g = yes; then
6507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6508 FFLAGS="-g -O2"
6509 else
6510 FFLAGS="-g"
6512 else
6513 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6514 FFLAGS="-O2"
6515 else
6516 FFLAGS=
6520 if test $ac_compiler_gnu = yes; then
6521 G77=yes
6522 else
6523 G77=
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6534 # find the maximum length of command line arguments
6535 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6536 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6537 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539 else
6541 teststring="ABCD"
6543 case $build_os in
6544 msdosdjgpp*)
6545 # On DJGPP, this test can blow up pretty badly due to problems in libc
6546 # (any single argument exceeding 2000 bytes causes a buffer overrun
6547 # during glob expansion). Even if it were fixed, the result of this
6548 # check would be larger than it should be.
6549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6552 gnu*)
6553 # Under GNU Hurd, this test is not required because there is
6554 # no limit to the length of command line arguments.
6555 # Libtool will interpret -1 as no limit whatsoever
6556 lt_cv_sys_max_cmd_len=-1;
6559 cygwin* | mingw*)
6560 # On Win9x/ME, this test blows up -- it succeeds, but takes
6561 # about 5 minutes as the teststring grows exponentially.
6562 # Worse, since 9x/ME are not pre-emptively multitasking,
6563 # you end up with a "frozen" computer, even though with patience
6564 # the test eventually succeeds (with a max line length of 256k).
6565 # Instead, let's just punt: use the minimum linelength reported by
6566 # all of the supported platforms: 8192 (on NT/2K/XP).
6567 lt_cv_sys_max_cmd_len=8192;
6570 amigaos*)
6571 # On AmigaOS with pdksh, this test takes hours, literally.
6572 # So we just punt and use a minimum line length of 8192.
6573 lt_cv_sys_max_cmd_len=8192;
6576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6577 # This has been around since 386BSD, at least. Likely further.
6578 if test -x /sbin/sysctl; then
6579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6580 elif test -x /usr/sbin/sysctl; then
6581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6582 else
6583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6585 # And add a safety zone
6586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6590 interix*)
6591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6592 lt_cv_sys_max_cmd_len=196608
6595 osf*)
6596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6598 # nice to cause kernel panics so lets avoid the loop below.
6599 # First set a reasonable default.
6600 lt_cv_sys_max_cmd_len=16384
6602 if test -x /sbin/sysconfig; then
6603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6605 esac
6608 sco3.2v5*)
6609 lt_cv_sys_max_cmd_len=102400
6611 sysv5* | sco5v6* | sysv4.2uw2*)
6612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6613 if test -n "$kargmax"; then
6614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6615 else
6616 lt_cv_sys_max_cmd_len=32768
6620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6621 if test -n "$lt_cv_sys_max_cmd_len"; then
6622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6624 else
6625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6626 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6627 = "XX$teststring") >/dev/null 2>&1 &&
6628 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6629 lt_cv_sys_max_cmd_len=$new_result &&
6630 test $i != 17 # 1/2 MB should be enough
6632 i=`expr $i + 1`
6633 teststring=$teststring$teststring
6634 done
6635 teststring=
6636 # Add a significant safety factor because C++ compilers can tack on massive
6637 # amounts of additional arguments before passing them to the linker.
6638 # It appears as though 1/2 is a usable value.
6639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6642 esac
6646 if test -n $lt_cv_sys_max_cmd_len ; then
6647 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6648 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6649 else
6650 { $as_echo "$as_me:$LINENO: result: none" >&5
6651 $as_echo "none" >&6; }
6658 # Check for command to grab the raw symbol name followed by C symbol from nm.
6659 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6660 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6661 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663 else
6665 # These are sane defaults that work on at least a few old systems.
6666 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6668 # Character class describing NM global symbol codes.
6669 symcode='[BCDEGRST]'
6671 # Regexp to match symbols that can be accessed directly from C.
6672 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6674 # Transform an extracted symbol line into a proper C declaration
6675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6677 # Transform an extracted symbol line into symbol name and symbol address
6678 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'"
6680 # Define system-specific variables.
6681 case $host_os in
6682 aix*)
6683 symcode='[BCDT]'
6685 cygwin* | mingw* | pw32*)
6686 symcode='[ABCDGISTW]'
6688 hpux*) # Its linker distinguishes data from code symbols
6689 if test "$host_cpu" = ia64; then
6690 symcode='[ABCDEGRST]'
6692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6693 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'"
6695 linux* | k*bsd*-gnu)
6696 if test "$host_cpu" = ia64; then
6697 symcode='[ABCDGIRSTW]'
6698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6699 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'"
6702 irix* | nonstopux*)
6703 symcode='[BCDEGRST]'
6705 osf*)
6706 symcode='[BCDEGQRST]'
6708 solaris*)
6709 symcode='[BDRT]'
6711 sco3.2v5*)
6712 symcode='[DT]'
6714 sysv4.2uw2*)
6715 symcode='[DT]'
6717 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6718 symcode='[ABDT]'
6720 sysv4)
6721 symcode='[DFNSTU]'
6723 esac
6725 # Handle CRLF in mingw tool chain
6726 opt_cr=
6727 case $build_os in
6728 mingw*)
6729 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6731 esac
6733 # If we're using GNU nm, then use its standard symbol codes.
6734 case `$NM -V 2>&1` in
6735 *GNU* | *'with BFD'*)
6736 symcode='[ABCDGIRSTW]' ;;
6737 esac
6739 # Try without a prefix undercore, then with it.
6740 for ac_symprfx in "" "_"; do
6742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6743 symxfrm="\\1 $ac_symprfx\\2 \\2"
6745 # Write the raw and C identifiers.
6746 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748 # Check to see that the pipe works correctly.
6749 pipe_works=no
6751 rm -f conftest*
6752 cat > conftest.$ac_ext <<EOF
6753 #ifdef __cplusplus
6754 extern "C" {
6755 #endif
6756 char nm_test_var;
6757 void nm_test_func(){}
6758 #ifdef __cplusplus
6760 #endif
6761 int main(){nm_test_var='a';nm_test_func();return(0);}
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; then
6769 # Now try to grab the symbols.
6770 nlist=conftest.nm
6771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6773 ac_status=$?
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && test -s "$nlist"; then
6776 # Try sorting and uniquifying the output.
6777 if sort "$nlist" | uniq > "$nlist"T; then
6778 mv -f "$nlist"T "$nlist"
6779 else
6780 rm -f "$nlist"T
6783 # Make sure that we snagged all the symbols we need.
6784 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6785 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6786 cat <<EOF > conftest.$ac_ext
6787 #ifdef __cplusplus
6788 extern "C" {
6789 #endif
6792 # Now generate the symbol file.
6793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6795 cat <<EOF >> conftest.$ac_ext
6796 #if defined (__STDC__) && __STDC__
6797 # define lt_ptr_t void *
6798 #else
6799 # define lt_ptr_t char *
6800 # define const
6801 #endif
6803 /* The mapping between symbol names and symbols. */
6804 const struct {
6805 const char *name;
6806 lt_ptr_t address;
6808 lt_preloaded_symbols[] =
6811 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6812 cat <<\EOF >> conftest.$ac_ext
6813 {0, (lt_ptr_t) 0}
6816 #ifdef __cplusplus
6818 #endif
6820 # Now try linking the two files.
6821 mv conftest.$ac_objext conftstm.$ac_objext
6822 lt_save_LIBS="$LIBS"
6823 lt_save_CFLAGS="$CFLAGS"
6824 LIBS="conftstm.$ac_objext"
6825 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>&5
6828 ac_status=$?
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6831 pipe_works=yes
6833 LIBS="$lt_save_LIBS"
6834 CFLAGS="$lt_save_CFLAGS"
6835 else
6836 echo "cannot find nm_test_func in $nlist" >&5
6838 else
6839 echo "cannot find nm_test_var in $nlist" >&5
6841 else
6842 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6844 else
6845 echo "$progname: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 rm -rf conftest* conftst*
6850 # Do not use the global_symbol_pipe unless it works.
6851 if test "$pipe_works" = yes; then
6852 break
6853 else
6854 lt_cv_sys_global_symbol_pipe=
6856 done
6860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6861 lt_cv_sys_global_symbol_to_cdecl=
6863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6864 { $as_echo "$as_me:$LINENO: result: failed" >&5
6865 $as_echo "failed" >&6; }
6866 else
6867 { $as_echo "$as_me:$LINENO: result: ok" >&5
6868 $as_echo "ok" >&6; }
6871 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6872 $as_echo_n "checking for objdir... " >&6; }
6873 if test "${lt_cv_objdir+set}" = set; then
6874 $as_echo_n "(cached) " >&6
6875 else
6876 rm -f .libs 2>/dev/null
6877 mkdir .libs 2>/dev/null
6878 if test -d .libs; then
6879 lt_cv_objdir=.libs
6880 else
6881 # MS-DOS does not allow filenames that begin with a dot.
6882 lt_cv_objdir=_libs
6884 rmdir .libs 2>/dev/null
6886 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6887 $as_echo "$lt_cv_objdir" >&6; }
6888 objdir=$lt_cv_objdir
6894 case $host_os in
6895 aix3*)
6896 # AIX sometimes has problems with the GCC collect2 program. For some
6897 # reason, if we set the COLLECT_NAMES environment variable, the problems
6898 # vanish in a puff of smoke.
6899 if test "X${COLLECT_NAMES+set}" != Xset; then
6900 COLLECT_NAMES=
6901 export COLLECT_NAMES
6904 esac
6906 # Sed substitution that helps us do robust quoting. It backslashifies
6907 # metacharacters that are still active within double-quoted strings.
6908 Xsed='sed -e 1s/^X//'
6909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6911 # Same as above, but do not quote variable references.
6912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6914 # Sed substitution to delay expansion of an escaped shell variable in a
6915 # double_quote_subst'ed string.
6916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6918 # Sed substitution to avoid accidental globbing in evaled expressions
6919 no_glob_subst='s/\*/\\\*/g'
6921 # Constants:
6922 rm="rm -f"
6924 # Global variables:
6925 default_ofile=libtool
6926 can_build_shared=yes
6928 # All known linkers require a `.a' archive for static linking (except MSVC,
6929 # which needs '.lib').
6930 libext=a
6931 ltmain="$ac_aux_dir/ltmain.sh"
6932 ofile="$default_ofile"
6933 with_gnu_ld="$lt_cv_prog_gnu_ld"
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}ar; ac_word=$2
6938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if test "${ac_cv_prog_AR+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$AR"; then
6944 ac_cv_prog_AR="$AR" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_AR="${ac_tool_prefix}ar"
6954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 AR=$ac_cv_prog_AR
6964 if test -n "$AR"; then
6965 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6966 $as_echo "$AR" >&6; }
6967 else
6968 { $as_echo "$as_me:$LINENO: result: no" >&5
6969 $as_echo "no" >&6; }
6974 if test -z "$ac_cv_prog_AR"; then
6975 ac_ct_AR=$AR
6976 # Extract the first word of "ar", so it can be a program name with args.
6977 set dummy ar; ac_word=$2
6978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_AR"; then
6984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_ac_ct_AR="ar"
6994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7004 if test -n "$ac_ct_AR"; then
7005 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7006 $as_echo "$ac_ct_AR" >&6; }
7007 else
7008 { $as_echo "$as_me:$LINENO: result: no" >&5
7009 $as_echo "no" >&6; }
7012 if test "x$ac_ct_AR" = x; then
7013 AR="false"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 AR=$ac_ct_AR
7023 else
7024 AR="$ac_cv_prog_AR"
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 $as_echo "$RANLIB" >&6; }
7059 else
7060 { $as_echo "$as_me:$LINENO: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_RANLIB="ranlib"
7086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 $as_echo "$ac_ct_RANLIB" >&6; }
7099 else
7100 { $as_echo "$as_me:$LINENO: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_RANLIB" = x; then
7105 RANLIB=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 RANLIB=$ac_ct_RANLIB
7115 else
7116 RANLIB="$ac_cv_prog_RANLIB"
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}strip; ac_word=$2
7122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if test "${ac_cv_prog_STRIP+set}" = set; then
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$STRIP"; then
7128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7141 done
7142 done
7143 IFS=$as_save_IFS
7147 STRIP=$ac_cv_prog_STRIP
7148 if test -n "$STRIP"; then
7149 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7150 $as_echo "$STRIP" >&6; }
7151 else
7152 { $as_echo "$as_me:$LINENO: result: no" >&5
7153 $as_echo "no" >&6; }
7158 if test -z "$ac_cv_prog_STRIP"; then
7159 ac_ct_STRIP=$STRIP
7160 # Extract the first word of "strip", so it can be a program name with args.
7161 set dummy strip; ac_word=$2
7162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_STRIP"; then
7168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_ac_ct_STRIP="strip"
7178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7188 if test -n "$ac_ct_STRIP"; then
7189 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7190 $as_echo "$ac_ct_STRIP" >&6; }
7191 else
7192 { $as_echo "$as_me:$LINENO: result: no" >&5
7193 $as_echo "no" >&6; }
7196 if test "x$ac_ct_STRIP" = x; then
7197 STRIP=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 STRIP=$ac_ct_STRIP
7207 else
7208 STRIP="$ac_cv_prog_STRIP"
7212 old_CC="$CC"
7213 old_CFLAGS="$CFLAGS"
7215 # Set sane defaults for various variables
7216 test -z "$AR" && AR=ar
7217 test -z "$AR_FLAGS" && AR_FLAGS=cru
7218 test -z "$AS" && AS=as
7219 test -z "$CC" && CC=cc
7220 test -z "$LTCC" && LTCC=$CC
7221 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7222 test -z "$DLLTOOL" && DLLTOOL=dlltool
7223 test -z "$LD" && LD=ld
7224 test -z "$LN_S" && LN_S="ln -s"
7225 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7226 test -z "$NM" && NM=nm
7227 test -z "$SED" && SED=sed
7228 test -z "$OBJDUMP" && OBJDUMP=objdump
7229 test -z "$RANLIB" && RANLIB=:
7230 test -z "$STRIP" && STRIP=:
7231 test -z "$ac_objext" && ac_objext=o
7233 # Determine commands to create old-style static archives.
7234 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7235 old_postinstall_cmds='chmod 644 $oldlib'
7236 old_postuninstall_cmds=
7238 if test -n "$RANLIB"; then
7239 case $host_os in
7240 openbsd*)
7241 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7246 esac
7247 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7250 for cc_temp in $compiler""; do
7251 case $cc_temp in
7252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7254 \-*) ;;
7255 *) break;;
7256 esac
7257 done
7258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7261 # Only perform the check for file, if the check method requires it
7262 case $deplibs_check_method in
7263 file_magic*)
7264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7265 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7268 $as_echo_n "(cached) " >&6
7269 else
7270 case $MAGIC_CMD in
7271 [\\/*] | ?:[\\/]*)
7272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275 lt_save_MAGIC_CMD="$MAGIC_CMD"
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278 for ac_dir in $ac_dummy; do
7279 IFS="$lt_save_ifs"
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f $ac_dir/${ac_tool_prefix}file; then
7282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7283 if test -n "$file_magic_test_file"; then
7284 case $deplibs_check_method in
7285 "file_magic "*)
7286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289 $EGREP "$file_magic_regex" > /dev/null; then
7291 else
7292 cat <<EOF 1>&2
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such. This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem. Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7304 fi ;;
7305 esac
7307 break
7309 done
7310 IFS="$lt_save_ifs"
7311 MAGIC_CMD="$lt_save_MAGIC_CMD"
7313 esac
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if test -n "$MAGIC_CMD"; then
7318 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7319 $as_echo "$MAGIC_CMD" >&6; }
7320 else
7321 { $as_echo "$as_me:$LINENO: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test -z "$lt_cv_path_MAGIC_CMD"; then
7326 if test -n "$ac_tool_prefix"; then
7327 { $as_echo "$as_me:$LINENO: checking for file" >&5
7328 $as_echo_n "checking for file... " >&6; }
7329 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7330 $as_echo_n "(cached) " >&6
7331 else
7332 case $MAGIC_CMD in
7333 [\\/*] | ?:[\\/]*)
7334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7337 lt_save_MAGIC_CMD="$MAGIC_CMD"
7338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7340 for ac_dir in $ac_dummy; do
7341 IFS="$lt_save_ifs"
7342 test -z "$ac_dir" && ac_dir=.
7343 if test -f $ac_dir/file; then
7344 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7345 if test -n "$file_magic_test_file"; then
7346 case $deplibs_check_method in
7347 "file_magic "*)
7348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7351 $EGREP "$file_magic_regex" > /dev/null; then
7353 else
7354 cat <<EOF 1>&2
7356 *** Warning: the command libtool uses to detect shared libraries,
7357 *** $file_magic_cmd, produces output that libtool cannot recognize.
7358 *** The result is that libtool may fail to recognize shared libraries
7359 *** as such. This will affect the creation of libtool libraries that
7360 *** depend on shared libraries, but programs linked with such libtool
7361 *** libraries will work regardless of this problem. Nevertheless, you
7362 *** may want to report the problem to your system manager and/or to
7363 *** bug-libtool@gnu.org
7366 fi ;;
7367 esac
7369 break
7371 done
7372 IFS="$lt_save_ifs"
7373 MAGIC_CMD="$lt_save_MAGIC_CMD"
7375 esac
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if test -n "$MAGIC_CMD"; then
7380 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7381 $as_echo "$MAGIC_CMD" >&6; }
7382 else
7383 { $as_echo "$as_me:$LINENO: result: no" >&5
7384 $as_echo "no" >&6; }
7387 else
7388 MAGIC_CMD=:
7394 esac
7397 case $host_os in
7398 rhapsody* | darwin*)
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$DSYMUTIL"; then
7408 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7421 done
7422 done
7423 IFS=$as_save_IFS
7427 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7428 if test -n "$DSYMUTIL"; then
7429 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7430 $as_echo "$DSYMUTIL" >&6; }
7431 else
7432 { $as_echo "$as_me:$LINENO: result: no" >&5
7433 $as_echo "no" >&6; }
7438 if test -z "$ac_cv_prog_DSYMUTIL"; then
7439 ac_ct_DSYMUTIL=$DSYMUTIL
7440 # Extract the first word of "dsymutil", so it can be a program name with args.
7441 set dummy dsymutil; ac_word=$2
7442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7445 $as_echo_n "(cached) " >&6
7446 else
7447 if test -n "$ac_ct_DSYMUTIL"; then
7448 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7461 done
7462 done
7463 IFS=$as_save_IFS
7467 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7468 if test -n "$ac_ct_DSYMUTIL"; then
7469 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7470 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7471 else
7472 { $as_echo "$as_me:$LINENO: result: no" >&5
7473 $as_echo "no" >&6; }
7476 if test "x$ac_ct_DSYMUTIL" = x; then
7477 DSYMUTIL=":"
7478 else
7479 case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485 DSYMUTIL=$ac_ct_DSYMUTIL
7487 else
7488 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7491 if test -n "$ac_tool_prefix"; then
7492 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7498 else
7499 if test -n "$NMEDIT"; then
7500 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7513 done
7514 done
7515 IFS=$as_save_IFS
7519 NMEDIT=$ac_cv_prog_NMEDIT
7520 if test -n "$NMEDIT"; then
7521 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7522 $as_echo "$NMEDIT" >&6; }
7523 else
7524 { $as_echo "$as_me:$LINENO: result: no" >&5
7525 $as_echo "no" >&6; }
7530 if test -z "$ac_cv_prog_NMEDIT"; then
7531 ac_ct_NMEDIT=$NMEDIT
7532 # Extract the first word of "nmedit", so it can be a program name with args.
7533 set dummy nmedit; ac_word=$2
7534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7538 else
7539 if test -n "$ac_ct_NMEDIT"; then
7540 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7555 IFS=$as_save_IFS
7559 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7560 if test -n "$ac_ct_NMEDIT"; then
7561 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7562 $as_echo "$ac_ct_NMEDIT" >&6; }
7563 else
7564 { $as_echo "$as_me:$LINENO: result: no" >&5
7565 $as_echo "no" >&6; }
7568 if test "x$ac_ct_NMEDIT" = x; then
7569 NMEDIT=":"
7570 else
7571 case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7576 esac
7577 NMEDIT=$ac_ct_NMEDIT
7579 else
7580 NMEDIT="$ac_cv_prog_NMEDIT"
7584 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7585 $as_echo_n "checking for -single_module linker flag... " >&6; }
7586 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7587 $as_echo_n "(cached) " >&6
7588 else
7589 lt_cv_apple_cc_single_mod=no
7590 if test -z "${LT_MULTI_MODULE}"; then
7591 # By default we will add the -single_module flag. You can override
7592 # by either setting the environment variable LT_MULTI_MODULE
7593 # non-empty at configure time, or by adding -multi_module to the
7594 # link flags.
7595 echo "int foo(void){return 1;}" > conftest.c
7596 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7597 -dynamiclib ${wl}-single_module conftest.c
7598 if test -f libconftest.dylib; then
7599 lt_cv_apple_cc_single_mod=yes
7600 rm -rf libconftest.dylib*
7602 rm conftest.c
7605 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7606 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7607 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7608 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7609 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7610 $as_echo_n "(cached) " >&6
7611 else
7612 lt_cv_ld_exported_symbols_list=no
7613 save_LDFLAGS=$LDFLAGS
7614 echo "_main" > conftest.sym
7615 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7624 main ()
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (ac_try="$ac_link"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_link") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest$ac_exeext && {
7649 test "$cross_compiling" = yes ||
7650 $as_test_x conftest$ac_exeext
7651 }; then
7652 lt_cv_ld_exported_symbols_list=yes
7653 else
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 lt_cv_ld_exported_symbols_list=no
7660 rm -rf conftest.dSYM
7661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7662 conftest$ac_exeext conftest.$ac_ext
7663 LDFLAGS="$save_LDFLAGS"
7666 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7667 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7668 case $host_os in
7669 rhapsody* | darwin1.[0123])
7670 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7671 darwin1.*)
7672 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7673 darwin*)
7674 # if running on 10.5 or later, the deployment target defaults
7675 # to the OS version, if on x86, and 10.4, the deployment
7676 # target defaults to 10.4. Don't you love it?
7677 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7678 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7679 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7680 10.[012]*)
7681 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7682 10.*)
7683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7684 esac
7686 esac
7687 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7688 _lt_dar_single_mod='$single_module'
7690 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7691 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7692 else
7693 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7695 if test "$DSYMUTIL" != ":"; then
7696 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7697 else
7698 _lt_dsymutil=
7701 esac
7704 enable_dlopen=yes
7705 enable_win32_dll=no
7707 # Check whether --enable-libtool-lock was given.
7708 if test "${enable_libtool_lock+set}" = set; then
7709 enableval=$enable_libtool_lock;
7712 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7715 # Check whether --with-pic was given.
7716 if test "${with_pic+set}" = set; then
7717 withval=$with_pic; pic_mode="$withval"
7718 else
7719 pic_mode=default
7722 test -z "$pic_mode" && pic_mode=default
7724 # Use C for the default configuration in the libtool script
7725 tagname=
7726 lt_save_CC="$CC"
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 # Source file extension for C test sources.
7735 ac_ext=c
7737 # Object file extension for compiled C test sources.
7738 objext=o
7739 objext=$objext
7741 # Code to be used in simple compile tests
7742 lt_simple_compile_test_code="int some_variable = 0;"
7744 # Code to be used in simple link tests
7745 lt_simple_link_test_code='int main(){return(0);}'
7748 # If no C compiler was specified, use CC.
7749 LTCC=${LTCC-"$CC"}
7751 # If no C compiler flags were specified, use CFLAGS.
7752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7754 # Allow CC to be a program name with arguments.
7755 compiler=$CC
7758 # save warnings/boilerplate of simple test code
7759 ac_outfile=conftest.$ac_objext
7760 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7761 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7762 _lt_compiler_boilerplate=`cat conftest.err`
7763 $rm conftest*
7765 ac_outfile=conftest.$ac_objext
7766 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7767 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768 _lt_linker_boilerplate=`cat conftest.err`
7769 $rm -r conftest*
7773 lt_prog_compiler_no_builtin_flag=
7775 if test "$GCC" = yes; then
7776 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7779 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7780 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7782 $as_echo_n "(cached) " >&6
7783 else
7784 lt_cv_prog_compiler_rtti_exceptions=no
7785 ac_outfile=conftest.$ac_objext
7786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7787 lt_compiler_flag="-fno-rtti -fno-exceptions"
7788 # Insert the option either (1) after the last *FLAGS variable, or
7789 # (2) before a word containing "conftest.", or (3) at the end.
7790 # Note that $ac_compile itself does not contain backslashes and begins
7791 # with a dollar sign (not a hyphen), so the echo should work correctly.
7792 # The option is referenced via a variable to avoid confusing sed.
7793 lt_compile=`echo "$ac_compile" | $SED \
7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796 -e 's:$: $lt_compiler_flag:'`
7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798 (eval "$lt_compile" 2>conftest.err)
7799 ac_status=$?
7800 cat conftest.err >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 if (exit $ac_status) && test -s "$ac_outfile"; then
7803 # The compiler can only warn and ignore the option if not recognized
7804 # So say no if there are warnings other than the usual output.
7805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7808 lt_cv_prog_compiler_rtti_exceptions=yes
7811 $rm conftest*
7814 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7815 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7817 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7818 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7819 else
7825 lt_prog_compiler_wl=
7826 lt_prog_compiler_pic=
7827 lt_prog_compiler_static=
7829 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7830 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7832 if test "$GCC" = yes; then
7833 lt_prog_compiler_wl='-Wl,'
7834 lt_prog_compiler_static='-static'
7836 case $host_os in
7837 aix*)
7838 # All AIX code is PIC.
7839 if test "$host_cpu" = ia64; then
7840 # AIX 5 now supports IA64 processor
7841 lt_prog_compiler_static='-Bstatic'
7845 amigaos*)
7846 # FIXME: we need at least 68020 code to build shared libraries, but
7847 # adding the `-m68020' flag to GCC prevents building anything better,
7848 # like `-m68040'.
7849 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7853 # PIC is the default for these OSes.
7856 mingw* | cygwin* | pw32* | os2*)
7857 # This hack is so that the source file can tell whether it is being
7858 # built for inclusion in a dll (and should export symbols for example).
7859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7860 # (--disable-auto-import) libraries
7861 lt_prog_compiler_pic='-DDLL_EXPORT'
7864 darwin* | rhapsody*)
7865 # PIC is the default on this platform
7866 # Common symbols not allowed in MH_DYLIB files
7867 lt_prog_compiler_pic='-fno-common'
7870 interix[3-9]*)
7871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7872 # Instead, we relocate shared libraries at runtime.
7875 msdosdjgpp*)
7876 # Just because we use GCC doesn't mean we suddenly get shared libraries
7877 # on systems that don't support them.
7878 lt_prog_compiler_can_build_shared=no
7879 enable_shared=no
7882 sysv4*MP*)
7883 if test -d /usr/nec; then
7884 lt_prog_compiler_pic=-Kconform_pic
7888 hpux*)
7889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7890 # not for PA HP-UX.
7891 case $host_cpu in
7892 hppa*64*|ia64*)
7893 # +Z the default
7896 lt_prog_compiler_pic='-fPIC'
7898 esac
7902 lt_prog_compiler_pic='-fPIC'
7904 esac
7905 else
7906 # PORTME Check for flag to pass linker flags through the system compiler.
7907 case $host_os in
7908 aix*)
7909 lt_prog_compiler_wl='-Wl,'
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 now supports IA64 processor
7912 lt_prog_compiler_static='-Bstatic'
7913 else
7914 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7917 darwin*)
7918 # PIC is the default on this platform
7919 # Common symbols not allowed in MH_DYLIB files
7920 case $cc_basename in
7921 xlc*)
7922 lt_prog_compiler_pic='-qnocommon'
7923 lt_prog_compiler_wl='-Wl,'
7925 esac
7928 mingw* | cygwin* | pw32* | os2*)
7929 # This hack is so that the source file can tell whether it is being
7930 # built for inclusion in a dll (and should export symbols for example).
7931 lt_prog_compiler_pic='-DDLL_EXPORT'
7934 hpux9* | hpux10* | hpux11*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7937 # not for PA HP-UX.
7938 case $host_cpu in
7939 hppa*64*|ia64*)
7940 # +Z the default
7943 lt_prog_compiler_pic='+Z'
7945 esac
7946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7947 lt_prog_compiler_static='${wl}-a ${wl}archive'
7950 irix5* | irix6* | nonstopux*)
7951 lt_prog_compiler_wl='-Wl,'
7952 # PIC (with -KPIC) is the default.
7953 lt_prog_compiler_static='-non_shared'
7956 newsos6)
7957 lt_prog_compiler_pic='-KPIC'
7958 lt_prog_compiler_static='-Bstatic'
7961 linux* | k*bsd*-gnu)
7962 case $cc_basename in
7963 icc* | ecc*)
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-static'
7968 pgcc* | pgf77* | pgf90* | pgf95*)
7969 # Portland Group compilers (*not* the Pentium gcc compiler,
7970 # which looks to be a dead project)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-fpic'
7973 lt_prog_compiler_static='-Bstatic'
7975 ccc*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All Alpha code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7981 case `$CC -V 2>&1 | sed 5q` in
7982 *Sun\ C*)
7983 # Sun C 5.9
7984 lt_prog_compiler_pic='-KPIC'
7985 lt_prog_compiler_static='-Bstatic'
7986 lt_prog_compiler_wl='-Wl,'
7988 *Sun\ F*)
7989 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7990 lt_prog_compiler_pic='-KPIC'
7991 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_wl=''
7994 esac
7996 esac
7999 osf3* | osf4* | osf5*)
8000 lt_prog_compiler_wl='-Wl,'
8001 # All OSF/1 code is PIC.
8002 lt_prog_compiler_static='-non_shared'
8005 rdos*)
8006 lt_prog_compiler_static='-non_shared'
8009 solaris*)
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 case $cc_basename in
8013 f77* | f90* | f95*)
8014 lt_prog_compiler_wl='-Qoption ld ';;
8016 lt_prog_compiler_wl='-Wl,';;
8017 esac
8020 sunos4*)
8021 lt_prog_compiler_wl='-Qoption ld '
8022 lt_prog_compiler_pic='-PIC'
8023 lt_prog_compiler_static='-Bstatic'
8026 sysv4 | sysv4.2uw2* | sysv4.3*)
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-Bstatic'
8032 sysv4*MP*)
8033 if test -d /usr/nec ;then
8034 lt_prog_compiler_pic='-Kconform_pic'
8035 lt_prog_compiler_static='-Bstatic'
8039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8045 unicos*)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_can_build_shared=no
8050 uts4*)
8051 lt_prog_compiler_pic='-pic'
8052 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_can_build_shared=no
8058 esac
8061 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8062 $as_echo "$lt_prog_compiler_pic" >&6; }
8065 # Check to make sure the PIC flag actually works.
8067 if test -n "$lt_prog_compiler_pic"; then
8069 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8070 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8071 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8072 $as_echo_n "(cached) " >&6
8073 else
8074 lt_cv_prog_compiler_pic_works=no
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8077 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8078 # Insert the option either (1) after the last *FLAGS variable, or
8079 # (2) before a word containing "conftest.", or (3) at the end.
8080 # Note that $ac_compile itself does not contain backslashes and begins
8081 # with a dollar sign (not a hyphen), so the echo should work correctly.
8082 # The option is referenced via a variable to avoid confusing sed.
8083 lt_compile=`echo "$ac_compile" | $SED \
8084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8086 -e 's:$: $lt_compiler_flag:'`
8087 (eval echo "\"\$as_me:8087: $lt_compile\"" >&5)
8088 (eval "$lt_compile" 2>conftest.err)
8089 ac_status=$?
8090 cat conftest.err >&5
8091 echo "$as_me:8091: \$? = $ac_status" >&5
8092 if (exit $ac_status) && test -s "$ac_outfile"; then
8093 # The compiler can only warn and ignore the option if not recognized
8094 # So say no if there are warnings other than the usual output.
8095 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8098 lt_cv_prog_compiler_pic_works=yes
8101 $rm conftest*
8104 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8105 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8107 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8108 case $lt_prog_compiler_pic in
8109 "" | " "*) ;;
8110 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8111 esac
8112 else
8113 lt_prog_compiler_pic=
8114 lt_prog_compiler_can_build_shared=no
8118 case $host_os in
8119 # For platforms which do not support PIC, -DPIC is meaningless:
8120 *djgpp*)
8121 lt_prog_compiler_pic=
8124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8126 esac
8129 # Check to make sure the static flag actually works.
8131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8132 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8134 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_prog_compiler_static_works=no
8138 save_LDFLAGS="$LDFLAGS"
8139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8142 # The linker can only warn and ignore the option if not recognized
8143 # So say no if there are warnings
8144 if test -s conftest.err; then
8145 # Append any errors to the config.log.
8146 cat conftest.err 1>&5
8147 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8149 if diff conftest.exp conftest.er2 >/dev/null; then
8150 lt_cv_prog_compiler_static_works=yes
8152 else
8153 lt_cv_prog_compiler_static_works=yes
8156 $rm -r conftest*
8157 LDFLAGS="$save_LDFLAGS"
8160 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8165 else
8166 lt_prog_compiler_static=
8170 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8172 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8173 $as_echo_n "(cached) " >&6
8174 else
8175 lt_cv_prog_compiler_c_o=no
8176 $rm -r conftest 2>/dev/null
8177 mkdir conftest
8178 cd conftest
8179 mkdir out
8180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="-o out/conftest2.$ac_objext"
8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 lt_compile=`echo "$ac_compile" | $SED \
8188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190 -e 's:$: $lt_compiler_flag:'`
8191 (eval echo "\"\$as_me:8191: $lt_compile\"" >&5)
8192 (eval "$lt_compile" 2>out/conftest.err)
8193 ac_status=$?
8194 cat out/conftest.err >&5
8195 echo "$as_me:8195: \$? = $ac_status" >&5
8196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8197 then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings
8200 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8203 lt_cv_prog_compiler_c_o=yes
8206 chmod u+w . 2>&5
8207 $rm conftest*
8208 # SGI C++ compiler will create directory out/ii_files/ for
8209 # template instantiation
8210 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8211 $rm out/* && rmdir out
8212 cd ..
8213 rmdir conftest
8214 $rm conftest*
8217 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8218 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8221 hard_links="nottested"
8222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8223 # do not overwrite the value of need_locks provided by the user
8224 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8225 $as_echo_n "checking if we can lock with hard links... " >&6; }
8226 hard_links=yes
8227 $rm conftest*
8228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8229 touch conftest.a
8230 ln conftest.a conftest.b 2>&5 || hard_links=no
8231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8232 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8233 $as_echo "$hard_links" >&6; }
8234 if test "$hard_links" = no; then
8235 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8236 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8237 need_locks=warn
8239 else
8240 need_locks=no
8243 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8244 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8246 runpath_var=
8247 allow_undefined_flag=
8248 enable_shared_with_static_runtimes=no
8249 archive_cmds=
8250 archive_expsym_cmds=
8251 old_archive_From_new_cmds=
8252 old_archive_from_expsyms_cmds=
8253 export_dynamic_flag_spec=
8254 whole_archive_flag_spec=
8255 thread_safe_flag_spec=
8256 hardcode_libdir_flag_spec=
8257 hardcode_libdir_flag_spec_ld=
8258 hardcode_libdir_separator=
8259 hardcode_direct=no
8260 hardcode_minus_L=no
8261 hardcode_shlibpath_var=unsupported
8262 link_all_deplibs=unknown
8263 hardcode_automatic=no
8264 module_cmds=
8265 module_expsym_cmds=
8266 always_export_symbols=no
8267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8268 # include_expsyms should be a list of space-separated symbols to be *always*
8269 # included in the symbol list
8270 include_expsyms=
8271 # exclude_expsyms can be an extended regexp of symbols to exclude
8272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8274 # as well as any symbol that contains `d'.
8275 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8277 # platforms (ab)use it in PIC code, but their linkers get confused if
8278 # the symbol is explicitly referenced. Since portable code cannot
8279 # rely on this symbol name, it's probably fine to never include it in
8280 # preloaded symbol tables.
8281 # Exclude shared library initialization/finalization symbols.
8282 extract_expsyms_cmds=
8283 # Just being paranoid about ensuring that cc_basename is set.
8284 for cc_temp in $compiler""; do
8285 case $cc_temp in
8286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8288 \-*) ;;
8289 *) break;;
8290 esac
8291 done
8292 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8294 case $host_os in
8295 cygwin* | mingw* | pw32*)
8296 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8297 # When not using gcc, we currently assume that we are using
8298 # Microsoft Visual C++.
8299 if test "$GCC" != yes; then
8300 with_gnu_ld=no
8303 interix*)
8304 # we just hope/assume this is gcc and not c89 (= MSVC++)
8305 with_gnu_ld=yes
8307 openbsd*)
8308 with_gnu_ld=no
8310 esac
8312 ld_shlibs=yes
8313 if test "$with_gnu_ld" = yes; then
8314 # If archive_cmds runs LD, not CC, wlarc should be empty
8315 wlarc='${wl}'
8317 # Set some defaults for GNU ld with shared library support. These
8318 # are reset later if shared libraries are not supported. Putting them
8319 # here allows them to be overridden if necessary.
8320 runpath_var=LD_RUN_PATH
8321 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8322 export_dynamic_flag_spec='${wl}--export-dynamic'
8323 # ancient GNU ld didn't support --whole-archive et. al.
8324 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8325 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8326 else
8327 whole_archive_flag_spec=
8329 supports_anon_versioning=no
8330 case `$LD -v 2>/dev/null` in
8331 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8332 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8333 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8334 *\ 2.11.*) ;; # other 2.11 versions
8335 *) supports_anon_versioning=yes ;;
8336 esac
8338 # See if GNU ld supports shared libraries.
8339 case $host_os in
8340 aix[3-9]*)
8341 # On AIX/PPC, the GNU linker is very broken
8342 if test "$host_cpu" != ia64; then
8343 ld_shlibs=no
8344 cat <<EOF 1>&2
8346 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8347 *** to be unable to reliably create shared libraries on AIX.
8348 *** Therefore, libtool is disabling shared libraries support. If you
8349 *** really care for shared libraries, you may want to modify your PATH
8350 *** so that a non-GNU linker is found, and then restart.
8356 amigaos*)
8357 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)'
8358 hardcode_libdir_flag_spec='-L$libdir'
8359 hardcode_minus_L=yes
8361 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8362 # that the semantics of dynamic libraries on AmigaOS, at least up
8363 # to version 4, is to share data among multiple programs linked
8364 # with the same dynamic library. Since this doesn't match the
8365 # behavior of shared libraries on other platforms, we can't use
8366 # them.
8367 ld_shlibs=no
8370 beos*)
8371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8372 allow_undefined_flag=unsupported
8373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8374 # support --undefined. This deserves some investigation. FIXME
8375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376 else
8377 ld_shlibs=no
8381 cygwin* | mingw* | pw32*)
8382 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8383 # as there is no search path for DLLs.
8384 hardcode_libdir_flag_spec='-L$libdir'
8385 allow_undefined_flag=unsupported
8386 always_export_symbols=no
8387 enable_shared_with_static_runtimes=yes
8388 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8390 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8392 # If the export-symbols file already is a .def file (1st line
8393 # is EXPORTS), use it as is; otherwise, prepend...
8394 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8395 cp $export_symbols $output_objdir/$soname.def;
8396 else
8397 echo EXPORTS > $output_objdir/$soname.def;
8398 cat $export_symbols >> $output_objdir/$soname.def;
8400 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8401 else
8402 ld_shlibs=no
8406 interix[3-9]*)
8407 hardcode_direct=no
8408 hardcode_shlibpath_var=no
8409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8410 export_dynamic_flag_spec='${wl}-E'
8411 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8412 # Instead, shared libraries are loaded at an image base (0x10000000 by
8413 # default) and relocated if they conflict, which is a slow very memory
8414 # consuming and fragmenting process. To avoid this, we pick a random,
8415 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8416 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8417 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8418 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'
8421 gnu* | linux* | k*bsd*-gnu)
8422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8423 tmp_addflag=
8424 case $cc_basename,$host_cpu in
8425 pgcc*) # Portland Group C compiler
8426 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'
8427 tmp_addflag=' $pic_flag'
8429 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8430 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'
8431 tmp_addflag=' $pic_flag -Mnomain' ;;
8432 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8433 tmp_addflag=' -i_dynamic' ;;
8434 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8435 tmp_addflag=' -i_dynamic -nofor_main' ;;
8436 ifc* | ifort*) # Intel Fortran compiler
8437 tmp_addflag=' -nofor_main' ;;
8438 esac
8439 case `$CC -V 2>&1 | sed 5q` in
8440 *Sun\ C*) # Sun C 5.9
8441 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8442 tmp_sharedflag='-G' ;;
8443 *Sun\ F*) # Sun Fortran 8.3
8444 tmp_sharedflag='-G' ;;
8446 tmp_sharedflag='-shared' ;;
8447 esac
8448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450 if test $supports_anon_versioning = yes; then
8451 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8453 $echo "local: *; };" >> $output_objdir/$libname.ver~
8454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8456 else
8457 ld_shlibs=no
8461 netbsd*)
8462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8463 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8464 wlarc=
8465 else
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471 solaris*)
8472 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8473 ld_shlibs=no
8474 cat <<EOF 1>&2
8476 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8477 *** create shared libraries on Solaris systems. Therefore, libtool
8478 *** is disabling shared libraries support. We urge you to upgrade GNU
8479 *** binutils to release 2.9.1 or newer. Another option is to modify
8480 *** your PATH or compiler configuration so that the native linker is
8481 *** used, and then restart.
8484 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8487 else
8488 ld_shlibs=no
8492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8493 case `$LD -v 2>&1` in
8494 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8495 ld_shlibs=no
8496 cat <<_LT_EOF 1>&2
8498 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8499 *** reliably create shared libraries on SCO systems. Therefore, libtool
8500 *** is disabling shared libraries support. We urge you to upgrade GNU
8501 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8502 *** your PATH or compiler configuration so that the native linker is
8503 *** used, and then restart.
8505 _LT_EOF
8508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8509 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8512 else
8513 ld_shlibs=no
8516 esac
8519 sunos4*)
8520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521 wlarc=
8522 hardcode_direct=yes
8523 hardcode_shlibpath_var=no
8527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8530 else
8531 ld_shlibs=no
8534 esac
8536 if test "$ld_shlibs" = no; then
8537 runpath_var=
8538 hardcode_libdir_flag_spec=
8539 export_dynamic_flag_spec=
8540 whole_archive_flag_spec=
8542 else
8543 # PORTME fill in a description of your system's linker (not GNU ld)
8544 case $host_os in
8545 aix3*)
8546 allow_undefined_flag=unsupported
8547 always_export_symbols=yes
8548 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'
8549 # Note: this linker hardcodes the directories in LIBPATH if there
8550 # are no directories specified by -L.
8551 hardcode_minus_L=yes
8552 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8553 # Neither direct hardcoding nor static linking is supported with a
8554 # broken collect2.
8555 hardcode_direct=unsupported
8559 aix[4-9]*)
8560 if test "$host_cpu" = ia64; then
8561 # On IA64, the linker does run time linking by default, so we don't
8562 # have to do anything special.
8563 aix_use_runtimelinking=no
8564 exp_sym_flag='-Bexport'
8565 no_entry_flag=""
8566 else
8567 # If we're using GNU nm, then we don't want the "-C" option.
8568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8569 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8570 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'
8571 else
8572 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'
8574 aix_use_runtimelinking=no
8576 # Test if we are trying to use run time linking or normal
8577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8578 # need to do runtime linking.
8579 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8580 for ld_flag in $LDFLAGS; do
8581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8582 aix_use_runtimelinking=yes
8583 break
8585 done
8587 esac
8589 exp_sym_flag='-bexport'
8590 no_entry_flag='-bnoentry'
8593 # When large executables or shared objects are built, AIX ld can
8594 # have problems creating the table of contents. If linking a library
8595 # or program results in "error TOC overflow" add -mminimal-toc to
8596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8599 archive_cmds=''
8600 hardcode_direct=yes
8601 hardcode_libdir_separator=':'
8602 link_all_deplibs=yes
8604 if test "$GCC" = yes; then
8605 case $host_os in aix4.[012]|aix4.[012].*)
8606 # We only want to do this on AIX 4.2 and lower, the check
8607 # below for broken collect2 doesn't work under 4.3+
8608 collect2name=`${CC} -print-prog-name=collect2`
8609 if test -f "$collect2name" && \
8610 strings "$collect2name" | grep resolve_lib_name >/dev/null
8611 then
8612 # We have reworked collect2
8614 else
8615 # We have old collect2
8616 hardcode_direct=unsupported
8617 # It fails to find uninstalled libraries when the uninstalled
8618 # path is not listed in the libpath. Setting hardcode_minus_L
8619 # to unsupported forces relinking
8620 hardcode_minus_L=yes
8621 hardcode_libdir_flag_spec='-L$libdir'
8622 hardcode_libdir_separator=
8625 esac
8626 shared_flag='-shared'
8627 if test "$aix_use_runtimelinking" = yes; then
8628 shared_flag="$shared_flag "'${wl}-G'
8630 else
8631 # not using gcc
8632 if test "$host_cpu" = ia64; then
8633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8634 # chokes on -Wl,-G. The following line is correct:
8635 shared_flag='-G'
8636 else
8637 if test "$aix_use_runtimelinking" = yes; then
8638 shared_flag='${wl}-G'
8639 else
8640 shared_flag='${wl}-bM:SRE'
8645 # It seems that -bexpall does not export symbols beginning with
8646 # underscore (_), so it is better to generate a list of symbols to export.
8647 always_export_symbols=yes
8648 if test "$aix_use_runtimelinking" = yes; then
8649 # Warning - without using the other runtime loading flags (-brtl),
8650 # -berok will link without error, but may produce a broken library.
8651 allow_undefined_flag='-berok'
8652 # Determine the default libpath from the value encoded in an empty executable.
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8661 main ()
8665 return 0;
8667 _ACEOF
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (ac_try="$ac_link"
8670 case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673 esac
8674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8675 $as_echo "$ac_try_echo") >&5
8676 (eval "$ac_link") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest$ac_exeext && {
8686 test "$cross_compiling" = yes ||
8687 $as_test_x conftest$ac_exeext
8688 }; then
8690 lt_aix_libpath_sed='
8691 /Import File Strings/,/^$/ {
8692 /^0/ {
8693 s/^0 *\(.*\)$/\1/
8697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8698 # Check for a 64-bit object if we didn't find anything.
8699 if test -z "$aix_libpath"; then
8700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8702 else
8703 $as_echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8709 rm -rf conftest.dSYM
8710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8711 conftest$ac_exeext conftest.$ac_ext
8712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8714 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8715 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"
8716 else
8717 if test "$host_cpu" = ia64; then
8718 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8719 allow_undefined_flag="-z nodefs"
8720 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"
8721 else
8722 # Determine the default libpath from the value encoded in an empty executable.
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8731 main ()
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (ac_try="$ac_link"
8740 case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8745 $as_echo "$ac_try_echo") >&5
8746 (eval "$ac_link") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest$ac_exeext && {
8756 test "$cross_compiling" = yes ||
8757 $as_test_x conftest$ac_exeext
8758 }; then
8760 lt_aix_libpath_sed='
8761 /Import File Strings/,/^$/ {
8762 /^0/ {
8763 s/^0 *\(.*\)$/\1/
8767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8768 # Check for a 64-bit object if we didn't find anything.
8769 if test -z "$aix_libpath"; then
8770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772 else
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -rf conftest.dSYM
8780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 conftest$ac_exeext conftest.$ac_ext
8782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8785 # Warning - without using the other run time loading flags,
8786 # -berok will link without error, but may produce a broken library.
8787 no_undefined_flag=' ${wl}-bernotok'
8788 allow_undefined_flag=' ${wl}-berok'
8789 # Exported symbols can be pulled into shared objects from archives
8790 whole_archive_flag_spec='$convenience'
8791 archive_cmds_need_lc=yes
8792 # This is similar to how AIX traditionally builds its shared libraries.
8793 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'
8798 amigaos*)
8799 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)'
8800 hardcode_libdir_flag_spec='-L$libdir'
8801 hardcode_minus_L=yes
8802 # see comment about different semantics on the GNU ld section
8803 ld_shlibs=no
8806 bsdi[45]*)
8807 export_dynamic_flag_spec=-rdynamic
8810 cygwin* | mingw* | pw32*)
8811 # When not using gcc, we currently assume that we are using
8812 # Microsoft Visual C++.
8813 # hardcode_libdir_flag_spec is actually meaningless, as there is
8814 # no search path for DLLs.
8815 hardcode_libdir_flag_spec=' '
8816 allow_undefined_flag=unsupported
8817 # Tell ltmain to make .lib files, not .a files.
8818 libext=lib
8819 # Tell ltmain to make .dll files, not .so files.
8820 shrext_cmds=".dll"
8821 # FIXME: Setting linknames here is a bad hack.
8822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8823 # The linker will automatically build a .lib file if we build a DLL.
8824 old_archive_From_new_cmds='true'
8825 # FIXME: Should let the user specify the lib program.
8826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8827 fix_srcfile_path='`cygpath -w "$srcfile"`'
8828 enable_shared_with_static_runtimes=yes
8831 darwin* | rhapsody*)
8832 case $host_os in
8833 rhapsody* | darwin1.[012])
8834 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8836 *) # Darwin 1.3 on
8837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8838 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8839 else
8840 case ${MACOSX_DEPLOYMENT_TARGET} in
8841 10.[012])
8842 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8844 10.*)
8845 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8847 esac
8850 esac
8851 archive_cmds_need_lc=no
8852 hardcode_direct=no
8853 hardcode_automatic=yes
8854 hardcode_shlibpath_var=unsupported
8855 whole_archive_flag_spec=''
8856 link_all_deplibs=yes
8857 if test "$GCC" = yes ; then
8858 output_verbose_link_cmd='echo'
8859 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8860 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8861 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8862 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8863 else
8864 case $cc_basename in
8865 xlc*)
8866 output_verbose_link_cmd='echo'
8867 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8868 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8870 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8871 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}'
8874 ld_shlibs=no
8876 esac
8880 dgux*)
8881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882 hardcode_libdir_flag_spec='-L$libdir'
8883 hardcode_shlibpath_var=no
8886 freebsd1*)
8887 ld_shlibs=no
8890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8891 # support. Future versions do this automatically, but an explicit c++rt0.o
8892 # does not break anything, and helps significantly (at the cost of a little
8893 # extra space).
8894 freebsd2.2*)
8895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8896 hardcode_libdir_flag_spec='-R$libdir'
8897 hardcode_direct=yes
8898 hardcode_shlibpath_var=no
8901 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8902 freebsd2*)
8903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8904 hardcode_direct=yes
8905 hardcode_minus_L=yes
8906 hardcode_shlibpath_var=no
8909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8910 freebsd* | dragonfly*)
8911 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8912 hardcode_libdir_flag_spec='-R$libdir'
8913 hardcode_direct=yes
8914 hardcode_shlibpath_var=no
8917 hpux9*)
8918 if test "$GCC" = yes; then
8919 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'
8920 else
8921 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'
8923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8924 hardcode_libdir_separator=:
8925 hardcode_direct=yes
8927 # hardcode_minus_L: Not really in the search PATH,
8928 # but as the default location of the library.
8929 hardcode_minus_L=yes
8930 export_dynamic_flag_spec='${wl}-E'
8933 hpux10*)
8934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8936 else
8937 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8939 if test "$with_gnu_ld" = no; then
8940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8941 hardcode_libdir_separator=:
8943 hardcode_direct=yes
8944 export_dynamic_flag_spec='${wl}-E'
8946 # hardcode_minus_L: Not really in the search PATH,
8947 # but as the default location of the library.
8948 hardcode_minus_L=yes
8952 hpux11*)
8953 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8954 case $host_cpu in
8955 hppa*64*)
8956 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 ia64*)
8959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8964 esac
8965 else
8966 case $host_cpu in
8967 hppa*64*)
8968 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 ia64*)
8971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976 esac
8978 if test "$with_gnu_ld" = no; then
8979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8980 hardcode_libdir_separator=:
8982 case $host_cpu in
8983 hppa*64*|ia64*)
8984 hardcode_libdir_flag_spec_ld='+b $libdir'
8985 hardcode_direct=no
8986 hardcode_shlibpath_var=no
8989 hardcode_direct=yes
8990 export_dynamic_flag_spec='${wl}-E'
8992 # hardcode_minus_L: Not really in the search PATH,
8993 # but as the default location of the library.
8994 hardcode_minus_L=yes
8996 esac
9000 irix5* | irix6* | nonstopux*)
9001 if test "$GCC" = yes; then
9002 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'
9003 else
9004 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'
9005 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9008 hardcode_libdir_separator=:
9009 link_all_deplibs=yes
9012 netbsd*)
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9015 else
9016 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9023 newsos6)
9024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025 hardcode_direct=yes
9026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027 hardcode_libdir_separator=:
9028 hardcode_shlibpath_var=no
9031 openbsd*)
9032 if test -f /usr/libexec/ld.so; then
9033 hardcode_direct=yes
9034 hardcode_shlibpath_var=no
9035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9036 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039 export_dynamic_flag_spec='${wl}-E'
9040 else
9041 case $host_os in
9042 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec='-R$libdir'
9047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9048 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9050 esac
9052 else
9053 ld_shlibs=no
9057 os2*)
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9060 allow_undefined_flag=unsupported
9061 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'
9062 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9065 osf3*)
9066 if test "$GCC" = yes; then
9067 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9068 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'
9069 else
9070 allow_undefined_flag=' -expect_unresolved \*'
9071 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'
9073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074 hardcode_libdir_separator=:
9077 osf4* | osf5*) # as osf3* with the addition of -msym flag
9078 if test "$GCC" = yes; then
9079 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9080 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'
9081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082 else
9083 allow_undefined_flag=' -expect_unresolved \*'
9084 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'
9085 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9086 $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'
9088 # Both c and cxx compiler support -rpath directly
9089 hardcode_libdir_flag_spec='-rpath $libdir'
9091 hardcode_libdir_separator=:
9094 solaris*)
9095 no_undefined_flag=' -z text'
9096 if test "$GCC" = yes; then
9097 wlarc='${wl}'
9098 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9100 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9101 else
9102 wlarc=''
9103 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9107 hardcode_libdir_flag_spec='-R$libdir'
9108 hardcode_shlibpath_var=no
9109 case $host_os in
9110 solaris2.[0-5] | solaris2.[0-5].*) ;;
9112 # The compiler driver will combine and reorder linker options,
9113 # but understands `-z linker_flag'. GCC discards it without `$wl',
9114 # but is careful enough not to reorder.
9115 # Supported since Solaris 2.6 (maybe 2.5.1?)
9116 if test "$GCC" = yes; then
9117 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9118 else
9119 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9122 esac
9123 link_all_deplibs=yes
9126 sunos4*)
9127 if test "x$host_vendor" = xsequent; then
9128 # Use $CC to link under sequent, because it throws in some extra .o
9129 # files that make .init and .fini sections work.
9130 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9131 else
9132 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_direct=yes
9136 hardcode_minus_L=yes
9137 hardcode_shlibpath_var=no
9140 sysv4)
9141 case $host_vendor in
9142 sni)
9143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_direct=yes # is this really true???
9146 siemens)
9147 ## LD is ld it makes a PLAMLIB
9148 ## CC just makes a GrossModule.
9149 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9150 reload_cmds='$CC -r -o $output$reload_objs'
9151 hardcode_direct=no
9153 motorola)
9154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9157 esac
9158 runpath_var='LD_RUN_PATH'
9159 hardcode_shlibpath_var=no
9162 sysv4.3*)
9163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164 hardcode_shlibpath_var=no
9165 export_dynamic_flag_spec='-Bexport'
9168 sysv4*MP*)
9169 if test -d /usr/nec; then
9170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9171 hardcode_shlibpath_var=no
9172 runpath_var=LD_RUN_PATH
9173 hardcode_runpath_var=yes
9174 ld_shlibs=yes
9178 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9179 no_undefined_flag='${wl}-z,text'
9180 archive_cmds_need_lc=no
9181 hardcode_shlibpath_var=no
9182 runpath_var='LD_RUN_PATH'
9184 if test "$GCC" = yes; then
9185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 else
9188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 sysv5* | sco3.2v5* | sco5v6*)
9194 # Note: We can NOT use -z defs as we might desire, because we do not
9195 # link with -lc, and that would cause any symbols used from libc to
9196 # always be unresolved, which means just about no library would
9197 # ever link correctly. If we're not using GNU ld we use -z text
9198 # though, which does catch some bad symbols but isn't as heavy-handed
9199 # as -z defs.
9200 no_undefined_flag='${wl}-z,text'
9201 allow_undefined_flag='${wl}-z,nodefs'
9202 archive_cmds_need_lc=no
9203 hardcode_shlibpath_var=no
9204 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9205 hardcode_libdir_separator=':'
9206 link_all_deplibs=yes
9207 export_dynamic_flag_spec='${wl}-Bexport'
9208 runpath_var='LD_RUN_PATH'
9210 if test "$GCC" = yes; then
9211 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 else
9214 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9215 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9219 uts4*)
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_shlibpath_var=no
9226 ld_shlibs=no
9228 esac
9231 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9232 $as_echo "$ld_shlibs" >&6; }
9233 test "$ld_shlibs" = no && can_build_shared=no
9236 # Do we need to explicitly link libc?
9238 case "x$archive_cmds_need_lc" in
9239 x|xyes)
9240 # Assume -lc should be added
9241 archive_cmds_need_lc=yes
9243 if test "$enable_shared" = yes && test "$GCC" = yes; then
9244 case $archive_cmds in
9245 *'~'*)
9246 # FIXME: we may have to deal with multi-command sequences.
9248 '$CC '*)
9249 # Test whether the compiler implicitly links with -lc since on some
9250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9251 # to ld, don't add -lc before -lgcc.
9252 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9253 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9254 $rm conftest*
9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9259 ac_status=$?
9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } 2>conftest.err; then
9262 soname=conftest
9263 lib=conftest
9264 libobjs=conftest.$ac_objext
9265 deplibs=
9266 wl=$lt_prog_compiler_wl
9267 pic_flag=$lt_prog_compiler_pic
9268 compiler_flags=-v
9269 linker_flags=-v
9270 verstring=
9271 output_objdir=.
9272 libname=conftest
9273 lt_save_allow_undefined_flag=$allow_undefined_flag
9274 allow_undefined_flag=
9275 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9276 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9277 ac_status=$?
9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }
9280 then
9281 archive_cmds_need_lc=no
9282 else
9283 archive_cmds_need_lc=yes
9285 allow_undefined_flag=$lt_save_allow_undefined_flag
9286 else
9287 cat conftest.err 1>&5
9289 $rm conftest*
9290 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9291 $as_echo "$archive_cmds_need_lc" >&6; }
9293 esac
9296 esac
9298 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9299 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9300 library_names_spec=
9301 libname_spec='lib$name'
9302 soname_spec=
9303 shrext_cmds=".so"
9304 postinstall_cmds=
9305 postuninstall_cmds=
9306 finish_cmds=
9307 finish_eval=
9308 shlibpath_var=
9309 shlibpath_overrides_runpath=unknown
9310 version_type=none
9311 dynamic_linker="$host_os ld.so"
9312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9314 if test "$GCC" = yes; then
9315 case $host_os in
9316 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9317 *) lt_awk_arg="/^libraries:/" ;;
9318 esac
9319 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9320 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9321 # if the path contains ";" then we assume it to be the separator
9322 # otherwise default to the standard path separator (i.e. ":") - it is
9323 # assumed that no part of a normal pathname contains ";" but that should
9324 # okay in the real world where ";" in dirpaths is itself problematic.
9325 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9326 else
9327 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9329 # Ok, now we have the path, separated by spaces, we can step through it
9330 # and add multilib dir if necessary.
9331 lt_tmp_lt_search_path_spec=
9332 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9333 for lt_sys_path in $lt_search_path_spec; do
9334 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9335 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9336 else
9337 test -d "$lt_sys_path" && \
9338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9340 done
9341 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9342 BEGIN {RS=" "; FS="/|\n";} {
9343 lt_foo="";
9344 lt_count=0;
9345 for (lt_i = NF; lt_i > 0; lt_i--) {
9346 if ($lt_i != "" && $lt_i != ".") {
9347 if ($lt_i == "..") {
9348 lt_count++;
9349 } else {
9350 if (lt_count == 0) {
9351 lt_foo="/" $lt_i lt_foo;
9352 } else {
9353 lt_count--;
9358 if (lt_foo != "") { lt_freq[lt_foo]++; }
9359 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9361 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9362 else
9363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9365 need_lib_prefix=unknown
9366 hardcode_into_libs=no
9368 # when you set need_version to no, make sure it does not cause -set_version
9369 # flags to be left without arguments
9370 need_version=unknown
9372 case $host_os in
9373 aix3*)
9374 version_type=linux
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9376 shlibpath_var=LIBPATH
9378 # AIX 3 has no versioning support, so we append a major version to the name.
9379 soname_spec='${libname}${release}${shared_ext}$major'
9382 aix[4-9]*)
9383 version_type=linux
9384 need_lib_prefix=no
9385 need_version=no
9386 hardcode_into_libs=yes
9387 if test "$host_cpu" = ia64; then
9388 # AIX 5 supports IA64
9389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 else
9392 # With GCC up to 2.95.x, collect2 would create an import file
9393 # for dependence libraries. The import file would start with
9394 # the line `#! .'. This would cause the generated library to
9395 # depend on `.', always an invalid library. This was fixed in
9396 # development snapshots of GCC prior to 3.0.
9397 case $host_os in
9398 aix4 | aix4.[01] | aix4.[01].*)
9399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9400 echo ' yes '
9401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9403 else
9404 can_build_shared=no
9407 esac
9408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9409 # soname into executable. Probably we can add versioning support to
9410 # collect2, so additional links can be useful in future.
9411 if test "$aix_use_runtimelinking" = yes; then
9412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9413 # instead of lib<name>.a to let people know that these are not
9414 # typical AIX shared libraries.
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 else
9417 # We preserve .a as extension for shared libraries through AIX4.2
9418 # and later when we are not doing run time linking.
9419 library_names_spec='${libname}${release}.a $libname.a'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9422 shlibpath_var=LIBPATH
9426 amigaos*)
9427 library_names_spec='$libname.ixlibrary $libname.a'
9428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9429 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'
9432 beos*)
9433 library_names_spec='${libname}${shared_ext}'
9434 dynamic_linker="$host_os ld.so"
9435 shlibpath_var=LIBRARY_PATH
9438 bsdi[45]*)
9439 version_type=linux
9440 need_version=no
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9447 # the default ld.so.conf also contains /usr/contrib/lib and
9448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9449 # libtool to hard-code these into programs
9452 cygwin* | mingw* | pw32*)
9453 version_type=windows
9454 shrext_cmds=".dll"
9455 need_version=no
9456 need_lib_prefix=no
9458 case $GCC,$host_os in
9459 yes,cygwin* | yes,mingw* | yes,pw32*)
9460 library_names_spec='$libname.dll.a'
9461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9462 postinstall_cmds='base_file=`basename \${file}`~
9463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9464 dldir=$destdir/`dirname \$dlpath`~
9465 test -d \$dldir || mkdir -p \$dldir~
9466 $install_prog $dir/$dlname \$dldir/$dlname~
9467 chmod a+x \$dldir/$dlname'
9468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9469 dlpath=$dir/\$dldll~
9470 $rm \$dlpath'
9471 shlibpath_overrides_runpath=yes
9473 case $host_os in
9474 cygwin*)
9475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9479 mingw*)
9480 # MinGW DLLs use traditional 'lib' prefix
9481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9484 # It is most probably a Windows format PATH printed by
9485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9486 # path with ; separators, and with drive letters. We can handle the
9487 # drive letters (cygwin fileutils understands them), so leave them,
9488 # especially as we might pass files found there to a mingw objdump,
9489 # which wouldn't understand a cygwinified path. Ahh.
9490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9491 else
9492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9495 pw32*)
9496 # pw32 DLLs use 'pw' prefix rather than 'lib'
9497 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9499 esac
9503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9505 esac
9506 dynamic_linker='Win32 ld.exe'
9507 # FIXME: first we should search . and the directory the executable is in
9508 shlibpath_var=PATH
9511 darwin* | rhapsody*)
9512 dynamic_linker="$host_os dyld"
9513 version_type=darwin
9514 need_lib_prefix=no
9515 need_version=no
9516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9517 soname_spec='${libname}${release}${major}$shared_ext'
9518 shlibpath_overrides_runpath=yes
9519 shlibpath_var=DYLD_LIBRARY_PATH
9520 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9526 dgux*)
9527 version_type=linux
9528 need_lib_prefix=no
9529 need_version=no
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 shlibpath_var=LD_LIBRARY_PATH
9535 freebsd1*)
9536 dynamic_linker=no
9539 freebsd* | dragonfly*)
9540 # DragonFly does not have aout. When/if they implement a new
9541 # versioning mechanism, adjust this.
9542 if test -x /usr/bin/objformat; then
9543 objformat=`/usr/bin/objformat`
9544 else
9545 case $host_os in
9546 freebsd[123]*) objformat=aout ;;
9547 *) objformat=elf ;;
9548 esac
9550 version_type=freebsd-$objformat
9551 case $version_type in
9552 freebsd-elf*)
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9554 need_version=no
9555 need_lib_prefix=no
9557 freebsd-*)
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9559 need_version=yes
9561 esac
9562 shlibpath_var=LD_LIBRARY_PATH
9563 case $host_os in
9564 freebsd2*)
9565 shlibpath_overrides_runpath=yes
9567 freebsd3.[01]* | freebsdelf3.[01]*)
9568 shlibpath_overrides_runpath=yes
9569 hardcode_into_libs=yes
9571 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9572 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9573 shlibpath_overrides_runpath=no
9574 hardcode_into_libs=yes
9576 *) # from 4.6 on, and DragonFly
9577 shlibpath_overrides_runpath=yes
9578 hardcode_into_libs=yes
9580 esac
9583 gnu*)
9584 version_type=linux
9585 need_lib_prefix=no
9586 need_version=no
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 hardcode_into_libs=yes
9593 hpux9* | hpux10* | hpux11*)
9594 # Give a soname corresponding to the major version so that dld.sl refuses to
9595 # link against other versions.
9596 version_type=sunos
9597 need_lib_prefix=no
9598 need_version=no
9599 case $host_cpu in
9600 ia64*)
9601 shrext_cmds='.so'
9602 hardcode_into_libs=yes
9603 dynamic_linker="$host_os dld.so"
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 if test "X$HPUX_IA64_MODE" = X32; then
9609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9610 else
9611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9615 hppa*64*)
9616 shrext_cmds='.sl'
9617 hardcode_into_libs=yes
9618 dynamic_linker="$host_os dld.sl"
9619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9627 shrext_cmds='.sl'
9628 dynamic_linker="$host_os dld.sl"
9629 shlibpath_var=SHLIB_PATH
9630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9634 esac
9635 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9636 postinstall_cmds='chmod 555 $lib'
9639 interix[3-9]*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=no
9648 hardcode_into_libs=yes
9651 irix5* | irix6* | nonstopux*)
9652 case $host_os in
9653 nonstopux*) version_type=nonstopux ;;
9655 if test "$lt_cv_prog_gnu_ld" = yes; then
9656 version_type=linux
9657 else
9658 version_type=irix
9659 fi ;;
9660 esac
9661 need_lib_prefix=no
9662 need_version=no
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9665 case $host_os in
9666 irix5* | nonstopux*)
9667 libsuff= shlibsuff=
9670 case $LD in # libtool.m4 will add one of these switches to LD
9671 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9672 libsuff= shlibsuff= libmagic=32-bit;;
9673 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9674 libsuff=32 shlibsuff=N32 libmagic=N32;;
9675 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9676 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9677 *) libsuff= shlibsuff= libmagic=never-match;;
9678 esac
9680 esac
9681 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9682 shlibpath_overrides_runpath=no
9683 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9684 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9685 hardcode_into_libs=yes
9688 # No shared lib support for Linux oldld, aout, or coff.
9689 linux*oldld* | linux*aout* | linux*coff*)
9690 dynamic_linker=no
9693 # This must be Linux ELF.
9694 linux* | k*bsd*-gnu)
9695 version_type=linux
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=no
9703 # This implies no fast_install, which is unacceptable.
9704 # Some rework will be needed to allow for fast_install
9705 # before this can be enabled.
9706 hardcode_into_libs=yes
9707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9710 # Append ld.so.conf contents to the search path
9711 if test -f /etc/ld.so.conf; then
9712 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9713 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9716 # We used to test for /lib/ld.so.1 and disable shared libraries on
9717 # powerpc, because MkLinux only supported shared libraries with the
9718 # GNU dynamic linker. Since this was broken with cross compilers,
9719 # most powerpc-linux boxes support dynamic linking these days and
9720 # people can always --disable-shared, the test was removed, and we
9721 # assume the GNU/Linux dynamic linker is in use.
9722 dynamic_linker='GNU/Linux ld.so'
9725 netbsd*)
9726 version_type=sunos
9727 need_lib_prefix=no
9728 need_version=no
9729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9732 dynamic_linker='NetBSD (a.out) ld.so'
9733 else
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9735 soname_spec='${libname}${release}${shared_ext}$major'
9736 dynamic_linker='NetBSD ld.elf_so'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 shlibpath_overrides_runpath=yes
9740 hardcode_into_libs=yes
9743 newsos6)
9744 version_type=linux
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9750 nto-qnx*)
9751 version_type=linux
9752 need_lib_prefix=no
9753 need_version=no
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=yes
9760 openbsd*)
9761 version_type=sunos
9762 sys_lib_dlsearch_path_spec="/usr/lib"
9763 need_lib_prefix=no
9764 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9765 case $host_os in
9766 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9767 *) need_version=no ;;
9768 esac
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9773 case $host_os in
9774 openbsd2.[89] | openbsd2.[89].*)
9775 shlibpath_overrides_runpath=no
9778 shlibpath_overrides_runpath=yes
9780 esac
9781 else
9782 shlibpath_overrides_runpath=yes
9786 os2*)
9787 libname_spec='$name'
9788 shrext_cmds=".dll"
9789 need_lib_prefix=no
9790 library_names_spec='$libname${shared_ext} $libname.a'
9791 dynamic_linker='OS/2 ld.exe'
9792 shlibpath_var=LIBPATH
9795 osf3* | osf4* | osf5*)
9796 version_type=osf
9797 need_lib_prefix=no
9798 need_version=no
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9806 rdos*)
9807 dynamic_linker=no
9810 solaris*)
9811 version_type=linux
9812 need_lib_prefix=no
9813 need_version=no
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=yes
9818 hardcode_into_libs=yes
9819 # ldd complains unless libraries are executable
9820 postinstall_cmds='chmod +x $lib'
9823 sunos4*)
9824 version_type=sunos
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 shlibpath_overrides_runpath=yes
9829 if test "$with_gnu_ld" = yes; then
9830 need_lib_prefix=no
9832 need_version=yes
9835 sysv4 | sysv4.3*)
9836 version_type=linux
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 case $host_vendor in
9841 sni)
9842 shlibpath_overrides_runpath=no
9843 need_lib_prefix=no
9844 export_dynamic_flag_spec='${wl}-Blargedynsym'
9845 runpath_var=LD_RUN_PATH
9847 siemens)
9848 need_lib_prefix=no
9850 motorola)
9851 need_lib_prefix=no
9852 need_version=no
9853 shlibpath_overrides_runpath=no
9854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9856 esac
9859 sysv4*MP*)
9860 if test -d /usr/nec ;then
9861 version_type=linux
9862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9863 soname_spec='$libname${shared_ext}.$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9869 version_type=freebsd-elf
9870 need_lib_prefix=no
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 hardcode_into_libs=yes
9876 if test "$with_gnu_ld" = yes; then
9877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9878 shlibpath_overrides_runpath=no
9879 else
9880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9881 shlibpath_overrides_runpath=yes
9882 case $host_os in
9883 sco3.2v5*)
9884 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9886 esac
9888 sys_lib_dlsearch_path_spec='/usr/lib'
9891 uts4*)
9892 version_type=linux
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9899 dynamic_linker=no
9901 esac
9902 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9903 $as_echo "$dynamic_linker" >&6; }
9904 test "$dynamic_linker" = no && can_build_shared=no
9906 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9907 $as_echo_n "(cached) " >&6
9908 else
9909 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9912 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9913 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9914 $as_echo_n "(cached) " >&6
9915 else
9916 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9922 if test "$GCC" = yes; then
9923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9926 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9927 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9928 hardcode_action=
9929 if test -n "$hardcode_libdir_flag_spec" || \
9930 test -n "$runpath_var" || \
9931 test "X$hardcode_automatic" = "Xyes" ; then
9933 # We can hardcode non-existant directories.
9934 if test "$hardcode_direct" != no &&
9935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9936 # have to relink, otherwise we might link with an installed library
9937 # when we should be linking with a yet-to-be-installed one
9938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9939 test "$hardcode_minus_L" != no; then
9940 # Linking always hardcodes the temporary library directory.
9941 hardcode_action=relink
9942 else
9943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9944 hardcode_action=immediate
9946 else
9947 # We cannot hardcode anything, or else we can only hardcode existing
9948 # directories.
9949 hardcode_action=unsupported
9951 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9952 $as_echo "$hardcode_action" >&6; }
9954 if test "$hardcode_action" = relink; then
9955 # Fast installation is not supported
9956 enable_fast_install=no
9957 elif test "$shlibpath_overrides_runpath" = yes ||
9958 test "$enable_shared" = no; then
9959 # Fast installation is not necessary
9960 enable_fast_install=needless
9963 striplib=
9964 old_striplib=
9965 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9966 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9967 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9970 { $as_echo "$as_me:$LINENO: result: yes" >&5
9971 $as_echo "yes" >&6; }
9972 else
9973 # FIXME - insert some real tests, host_os isn't really good enough
9974 case $host_os in
9975 darwin*)
9976 if test -n "$STRIP" ; then
9977 striplib="$STRIP -x"
9978 old_striplib="$STRIP -S"
9979 { $as_echo "$as_me:$LINENO: result: yes" >&5
9980 $as_echo "yes" >&6; }
9981 else
9982 { $as_echo "$as_me:$LINENO: result: no" >&5
9983 $as_echo "no" >&6; }
9987 { $as_echo "$as_me:$LINENO: result: no" >&5
9988 $as_echo "no" >&6; }
9990 esac
9993 if test "x$enable_dlopen" != xyes; then
9994 enable_dlopen=unknown
9995 enable_dlopen_self=unknown
9996 enable_dlopen_self_static=unknown
9997 else
9998 lt_cv_dlopen=no
9999 lt_cv_dlopen_libs=
10001 case $host_os in
10002 beos*)
10003 lt_cv_dlopen="load_add_on"
10004 lt_cv_dlopen_libs=
10005 lt_cv_dlopen_self=yes
10008 mingw* | pw32*)
10009 lt_cv_dlopen="LoadLibrary"
10010 lt_cv_dlopen_libs=
10013 cygwin*)
10014 lt_cv_dlopen="dlopen"
10015 lt_cv_dlopen_libs=
10018 darwin*)
10019 # if libdl is installed we need to link against it
10020 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023 $as_echo_n "(cached) " >&6
10024 else
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldl $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h. */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dlopen ();
10042 main ()
10044 return dlopen ();
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10056 $as_echo "$ac_try_echo") >&5
10057 (eval "$ac_link") 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext && {
10067 test "$cross_compiling" = yes ||
10068 $as_test_x conftest$ac_exeext
10069 }; then
10070 ac_cv_lib_dl_dlopen=yes
10071 else
10072 $as_echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 ac_cv_lib_dl_dlopen=no
10078 rm -rf conftest.dSYM
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10084 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10085 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10086 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10087 else
10089 lt_cv_dlopen="dyld"
10090 lt_cv_dlopen_libs=
10091 lt_cv_dlopen_self=yes
10098 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10099 $as_echo_n "checking for shl_load... " >&6; }
10100 if test "${ac_cv_func_shl_load+set}" = set; then
10101 $as_echo_n "(cached) " >&6
10102 else
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h. */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10111 #define shl_load innocuous_shl_load
10113 /* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char shl_load (); below.
10115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10116 <limits.h> exists even on freestanding compilers. */
10118 #ifdef __STDC__
10119 # include <limits.h>
10120 #else
10121 # include <assert.h>
10122 #endif
10124 #undef shl_load
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char shl_load ();
10133 /* The GNU C library defines this for functions which it implements
10134 to always fail with ENOSYS. Some functions are actually named
10135 something starting with __ and the normal name is an alias. */
10136 #if defined __stub_shl_load || defined __stub___shl_load
10137 choke me
10138 #endif
10141 main ()
10143 return shl_load ();
10145 return 0;
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_link") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest$ac_exeext && {
10166 test "$cross_compiling" = yes ||
10167 $as_test_x conftest$ac_exeext
10168 }; then
10169 ac_cv_func_shl_load=yes
10170 else
10171 $as_echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_func_shl_load=no
10177 rm -rf conftest.dSYM
10178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10181 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10182 $as_echo "$ac_cv_func_shl_load" >&6; }
10183 if test "x$ac_cv_func_shl_load" = x""yes; then
10184 lt_cv_dlopen="shl_load"
10185 else
10186 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10187 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-ldld $LIBS"
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10200 /* Override any GCC internal prototype to avoid an error.
10201 Use char because int might match the return type of a GCC
10202 builtin and then its argument prototype would still apply. */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 char shl_load ();
10208 main ()
10210 return shl_load ();
10212 return 0;
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10220 esac
10221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222 $as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest$ac_exeext
10235 }; then
10236 ac_cv_lib_dld_shl_load=yes
10237 else
10238 $as_echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_dld_shl_load=no
10244 rm -rf conftest.dSYM
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10250 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10251 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10253 else
10254 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10255 $as_echo_n "checking for dlopen... " >&6; }
10256 if test "${ac_cv_func_dlopen+set}" = set; then
10257 $as_echo_n "(cached) " >&6
10258 else
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10267 #define dlopen innocuous_dlopen
10269 /* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char dlopen (); below.
10271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272 <limits.h> exists even on freestanding compilers. */
10274 #ifdef __STDC__
10275 # include <limits.h>
10276 #else
10277 # include <assert.h>
10278 #endif
10280 #undef dlopen
10282 /* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
10285 #ifdef __cplusplus
10286 extern "C"
10287 #endif
10288 char dlopen ();
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined __stub_dlopen || defined __stub___dlopen
10293 choke me
10294 #endif
10297 main ()
10299 return dlopen ();
10301 return 0;
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311 $as_echo "$ac_try_echo") >&5
10312 (eval "$ac_link") 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && {
10319 test -z "$ac_c_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest$ac_exeext && {
10322 test "$cross_compiling" = yes ||
10323 $as_test_x conftest$ac_exeext
10324 }; then
10325 ac_cv_func_dlopen=yes
10326 else
10327 $as_echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_cv_func_dlopen=no
10333 rm -rf conftest.dSYM
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10338 $as_echo "$ac_cv_func_dlopen" >&6; }
10339 if test "x$ac_cv_func_dlopen" = x""yes; then
10340 lt_cv_dlopen="dlopen"
10341 else
10342 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10345 $as_echo_n "(cached) " >&6
10346 else
10347 ac_check_lib_save_LIBS=$LIBS
10348 LIBS="-ldl $LIBS"
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10356 /* Override any GCC internal prototype to avoid an error.
10357 Use char because int might match the return type of a GCC
10358 builtin and then its argument prototype would still apply. */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 char dlopen ();
10364 main ()
10366 return dlopen ();
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10378 $as_echo "$ac_try_echo") >&5
10379 (eval "$ac_link") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest$ac_exeext && {
10389 test "$cross_compiling" = yes ||
10390 $as_test_x conftest$ac_exeext
10391 }; then
10392 ac_cv_lib_dl_dlopen=yes
10393 else
10394 $as_echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_lib_dl_dlopen=no
10400 rm -rf conftest.dSYM
10401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10406 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10407 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10409 else
10410 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10411 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10412 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10413 $as_echo_n "(cached) " >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-lsvld $LIBS"
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char dlopen ();
10432 main ()
10434 return dlopen ();
10436 return 0;
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (ac_try="$ac_link"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446 $as_echo "$ac_try_echo") >&5
10447 (eval "$ac_link") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext && {
10457 test "$cross_compiling" = yes ||
10458 $as_test_x conftest$ac_exeext
10459 }; then
10460 ac_cv_lib_svld_dlopen=yes
10461 else
10462 $as_echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_cv_lib_svld_dlopen=no
10468 rm -rf conftest.dSYM
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10475 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10477 else
10478 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10480 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10481 $as_echo_n "(cached) " >&6
10482 else
10483 ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-ldld $LIBS"
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char dld_link ();
10500 main ()
10502 return dld_link ();
10504 return 0;
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512 esac
10513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10514 $as_echo "$ac_try_echo") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext && {
10525 test "$cross_compiling" = yes ||
10526 $as_test_x conftest$ac_exeext
10527 }; then
10528 ac_cv_lib_dld_dld_link=yes
10529 else
10530 $as_echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_cv_lib_dld_dld_link=no
10536 rm -rf conftest.dSYM
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10542 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10543 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10563 esac
10565 if test "x$lt_cv_dlopen" != xno; then
10566 enable_dlopen=yes
10567 else
10568 enable_dlopen=no
10571 case $lt_cv_dlopen in
10572 dlopen)
10573 save_CPPFLAGS="$CPPFLAGS"
10574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10576 save_LDFLAGS="$LDFLAGS"
10577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10579 save_LIBS="$LIBS"
10580 LIBS="$lt_cv_dlopen_libs $LIBS"
10582 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10583 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10584 if test "${lt_cv_dlopen_self+set}" = set; then
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test "$cross_compiling" = yes; then :
10588 lt_cv_dlopen_self=cross
10589 else
10590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10591 lt_status=$lt_dlunknown
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10593 "configure"
10594 #include "confdefs.h"
10596 #if HAVE_DLFCN_H
10597 #include <dlfcn.h>
10598 #endif
10600 #include <stdio.h>
10602 #ifdef RTLD_GLOBAL
10603 # define LT_DLGLOBAL RTLD_GLOBAL
10604 #else
10605 # ifdef DL_GLOBAL
10606 # define LT_DLGLOBAL DL_GLOBAL
10607 # else
10608 # define LT_DLGLOBAL 0
10609 # endif
10610 #endif
10612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10613 find out it does not work in some platform. */
10614 #ifndef LT_DLLAZY_OR_NOW
10615 # ifdef RTLD_LAZY
10616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10617 # else
10618 # ifdef DL_LAZY
10619 # define LT_DLLAZY_OR_NOW DL_LAZY
10620 # else
10621 # ifdef RTLD_NOW
10622 # define LT_DLLAZY_OR_NOW RTLD_NOW
10623 # else
10624 # ifdef DL_NOW
10625 # define LT_DLLAZY_OR_NOW DL_NOW
10626 # else
10627 # define LT_DLLAZY_OR_NOW 0
10628 # endif
10629 # endif
10630 # endif
10631 # endif
10632 #endif
10634 #ifdef __cplusplus
10635 extern "C" void exit (int);
10636 #endif
10638 void fnord() { int i=42;}
10639 int main ()
10641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10642 int status = $lt_dlunknown;
10644 if (self)
10646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10648 /* dlclose (self); */
10650 else
10651 puts (dlerror ());
10653 exit (status);
10656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657 (eval $ac_link) 2>&5
10658 ac_status=$?
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10661 (./conftest; exit; ) >&5 2>/dev/null
10662 lt_status=$?
10663 case x$lt_status in
10664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10666 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10667 esac
10668 else :
10669 # compilation failed
10670 lt_cv_dlopen_self=no
10673 rm -fr conftest*
10677 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10678 $as_echo "$lt_cv_dlopen_self" >&6; }
10680 if test "x$lt_cv_dlopen_self" = xyes; then
10681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10682 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10684 if test "${lt_cv_dlopen_self_static+set}" = set; then
10685 $as_echo_n "(cached) " >&6
10686 else
10687 if test "$cross_compiling" = yes; then :
10688 lt_cv_dlopen_self_static=cross
10689 else
10690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10691 lt_status=$lt_dlunknown
10692 cat > conftest.$ac_ext <<EOF
10693 #line 10693 "configure"
10694 #include "confdefs.h"
10696 #if HAVE_DLFCN_H
10697 #include <dlfcn.h>
10698 #endif
10700 #include <stdio.h>
10702 #ifdef RTLD_GLOBAL
10703 # define LT_DLGLOBAL RTLD_GLOBAL
10704 #else
10705 # ifdef DL_GLOBAL
10706 # define LT_DLGLOBAL DL_GLOBAL
10707 # else
10708 # define LT_DLGLOBAL 0
10709 # endif
10710 #endif
10712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10713 find out it does not work in some platform. */
10714 #ifndef LT_DLLAZY_OR_NOW
10715 # ifdef RTLD_LAZY
10716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10717 # else
10718 # ifdef DL_LAZY
10719 # define LT_DLLAZY_OR_NOW DL_LAZY
10720 # else
10721 # ifdef RTLD_NOW
10722 # define LT_DLLAZY_OR_NOW RTLD_NOW
10723 # else
10724 # ifdef DL_NOW
10725 # define LT_DLLAZY_OR_NOW DL_NOW
10726 # else
10727 # define LT_DLLAZY_OR_NOW 0
10728 # endif
10729 # endif
10730 # endif
10731 # endif
10732 #endif
10734 #ifdef __cplusplus
10735 extern "C" void exit (int);
10736 #endif
10738 void fnord() { int i=42;}
10739 int main ()
10741 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10742 int status = $lt_dlunknown;
10744 if (self)
10746 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10747 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10748 /* dlclose (self); */
10750 else
10751 puts (dlerror ());
10753 exit (status);
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>&5
10758 ac_status=$?
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10761 (./conftest; exit; ) >&5 2>/dev/null
10762 lt_status=$?
10763 case x$lt_status in
10764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10766 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10767 esac
10768 else :
10769 # compilation failed
10770 lt_cv_dlopen_self_static=no
10773 rm -fr conftest*
10777 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10778 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10781 CPPFLAGS="$save_CPPFLAGS"
10782 LDFLAGS="$save_LDFLAGS"
10783 LIBS="$save_LIBS"
10785 esac
10787 case $lt_cv_dlopen_self in
10788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10789 *) enable_dlopen_self=unknown ;;
10790 esac
10792 case $lt_cv_dlopen_self_static in
10793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10794 *) enable_dlopen_self_static=unknown ;;
10795 esac
10799 # Report which library types will actually be built
10800 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10801 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10802 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10803 $as_echo "$can_build_shared" >&6; }
10805 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10806 $as_echo_n "checking whether to build shared libraries... " >&6; }
10807 test "$can_build_shared" = "no" && enable_shared=no
10809 # On AIX, shared libraries and static libraries use the same namespace, and
10810 # are all built from PIC.
10811 case $host_os in
10812 aix3*)
10813 test "$enable_shared" = yes && enable_static=no
10814 if test -n "$RANLIB"; then
10815 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10816 postinstall_cmds='$RANLIB $lib'
10820 aix[4-9]*)
10821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10822 test "$enable_shared" = yes && enable_static=no
10825 esac
10826 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10827 $as_echo "$enable_shared" >&6; }
10829 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10830 $as_echo_n "checking whether to build static libraries... " >&6; }
10831 # Make sure either enable_shared or enable_static is yes.
10832 test "$enable_shared" = yes || enable_static=yes
10833 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10834 $as_echo "$enable_static" >&6; }
10836 # The else clause should only fire when bootstrapping the
10837 # libtool distribution, otherwise you forgot to ship ltmain.sh
10838 # with your package, and you will get complaints that there are
10839 # no rules to generate ltmain.sh.
10840 if test -f "$ltmain"; then
10841 # See if we are running on zsh, and set the options which allow our commands through
10842 # without removal of \ escapes.
10843 if test -n "${ZSH_VERSION+set}" ; then
10844 setopt NO_GLOB_SUBST
10846 # Now quote all the things that may contain metacharacters while being
10847 # careful not to overquote the AC_SUBSTed values. We take copies of the
10848 # variables and quote the copies for generation of the libtool script.
10849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10850 SED SHELL STRIP \
10851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10853 deplibs_check_method reload_flag reload_cmds need_locks \
10854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10855 lt_cv_sys_global_symbol_to_c_name_address \
10856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10857 old_postinstall_cmds old_postuninstall_cmds \
10858 compiler \
10859 CC \
10860 LD \
10861 lt_prog_compiler_wl \
10862 lt_prog_compiler_pic \
10863 lt_prog_compiler_static \
10864 lt_prog_compiler_no_builtin_flag \
10865 export_dynamic_flag_spec \
10866 thread_safe_flag_spec \
10867 whole_archive_flag_spec \
10868 enable_shared_with_static_runtimes \
10869 old_archive_cmds \
10870 old_archive_from_new_cmds \
10871 predep_objects \
10872 postdep_objects \
10873 predeps \
10874 postdeps \
10875 compiler_lib_search_path \
10876 compiler_lib_search_dirs \
10877 archive_cmds \
10878 archive_expsym_cmds \
10879 postinstall_cmds \
10880 postuninstall_cmds \
10881 old_archive_from_expsyms_cmds \
10882 allow_undefined_flag \
10883 no_undefined_flag \
10884 export_symbols_cmds \
10885 hardcode_libdir_flag_spec \
10886 hardcode_libdir_flag_spec_ld \
10887 hardcode_libdir_separator \
10888 hardcode_automatic \
10889 module_cmds \
10890 module_expsym_cmds \
10891 lt_cv_prog_compiler_c_o \
10892 fix_srcfile_path \
10893 exclude_expsyms \
10894 include_expsyms; do
10896 case $var in
10897 old_archive_cmds | \
10898 old_archive_from_new_cmds | \
10899 archive_cmds | \
10900 archive_expsym_cmds | \
10901 module_cmds | \
10902 module_expsym_cmds | \
10903 old_archive_from_expsyms_cmds | \
10904 export_symbols_cmds | \
10905 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10906 postinstall_cmds | postuninstall_cmds | \
10907 old_postinstall_cmds | old_postuninstall_cmds | \
10908 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10909 # Double-quote double-evaled strings.
10910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10915 esac
10916 done
10918 case $lt_echo in
10919 *'\$0 --fallback-echo"')
10920 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10922 esac
10924 cfgfile="${ofile}T"
10925 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10926 $rm -f "$cfgfile"
10927 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10928 $as_echo "$as_me: creating $ofile" >&6;}
10930 cat <<__EOF__ >> "$cfgfile"
10931 #! $SHELL
10933 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10934 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10935 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10937 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10938 # Free Software Foundation, Inc.
10940 # This file is part of GNU Libtool:
10941 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10943 # This program is free software; you can redistribute it and/or modify
10944 # it under the terms of the GNU General Public License as published by
10945 # the Free Software Foundation; either version 2 of the License, or
10946 # (at your option) any later version.
10948 # This program is distributed in the hope that it will be useful, but
10949 # WITHOUT ANY WARRANTY; without even the implied warranty of
10950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10951 # General Public License for more details.
10953 # You should have received a copy of the GNU General Public License
10954 # along with this program; if not, write to the Free Software
10955 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10957 # As a special exception to the GNU General Public License, if you
10958 # distribute this file as part of a program that contains a
10959 # configuration script generated by Autoconf, you may include it under
10960 # the same distribution terms that you use for the rest of that program.
10962 # A sed program that does not truncate output.
10963 SED=$lt_SED
10965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10966 Xsed="$SED -e 1s/^X//"
10968 # The HP-UX ksh and POSIX shell print the target directory to stdout
10969 # if CDPATH is set.
10970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10972 # The names of the tagged configurations supported by this script.
10973 available_tags=
10975 # ### BEGIN LIBTOOL CONFIG
10977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10979 # Shell to use when invoking shell scripts.
10980 SHELL=$lt_SHELL
10982 # Whether or not to build shared libraries.
10983 build_libtool_libs=$enable_shared
10985 # Whether or not to build static libraries.
10986 build_old_libs=$enable_static
10988 # Whether or not to add -lc for building shared libraries.
10989 build_libtool_need_lc=$archive_cmds_need_lc
10991 # Whether or not to disallow shared libs when runtime libs are static
10992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10994 # Whether or not to optimize for fast installation.
10995 fast_install=$enable_fast_install
10997 # The host system.
10998 host_alias=$host_alias
10999 host=$host
11000 host_os=$host_os
11002 # The build system.
11003 build_alias=$build_alias
11004 build=$build
11005 build_os=$build_os
11007 # An echo program that does not interpret backslashes.
11008 echo=$lt_echo
11010 # The archiver.
11011 AR=$lt_AR
11012 AR_FLAGS=$lt_AR_FLAGS
11014 # A C compiler.
11015 LTCC=$lt_LTCC
11017 # LTCC compiler flags.
11018 LTCFLAGS=$lt_LTCFLAGS
11020 # A language-specific compiler.
11021 CC=$lt_compiler
11023 # Is the compiler the GNU C compiler?
11024 with_gcc=$GCC
11026 # An ERE matcher.
11027 EGREP=$lt_EGREP
11029 # The linker used to build libraries.
11030 LD=$lt_LD
11032 # Whether we need hard or soft links.
11033 LN_S=$lt_LN_S
11035 # A BSD-compatible nm program.
11036 NM=$lt_NM
11038 # A symbol stripping program
11039 STRIP=$lt_STRIP
11041 # Used to examine libraries when file_magic_cmd begins "file"
11042 MAGIC_CMD=$MAGIC_CMD
11044 # Used on cygwin: DLL creation program.
11045 DLLTOOL="$DLLTOOL"
11047 # Used on cygwin: object dumper.
11048 OBJDUMP="$OBJDUMP"
11050 # Used on cygwin: assembler.
11051 AS="$AS"
11053 # The name of the directory that contains temporary libtool files.
11054 objdir=$objdir
11056 # How to create reloadable object files.
11057 reload_flag=$lt_reload_flag
11058 reload_cmds=$lt_reload_cmds
11060 # How to pass a linker flag through the compiler.
11061 wl=$lt_lt_prog_compiler_wl
11063 # Object file suffix (normally "o").
11064 objext="$ac_objext"
11066 # Old archive suffix (normally "a").
11067 libext="$libext"
11069 # Shared library suffix (normally ".so").
11070 shrext_cmds='$shrext_cmds'
11072 # Executable file suffix (normally "").
11073 exeext="$exeext"
11075 # Additional compiler flags for building library objects.
11076 pic_flag=$lt_lt_prog_compiler_pic
11077 pic_mode=$pic_mode
11079 # What is the maximum length of a command?
11080 max_cmd_len=$lt_cv_sys_max_cmd_len
11082 # Does compiler simultaneously support -c and -o options?
11083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11085 # Must we lock files when doing compilation?
11086 need_locks=$lt_need_locks
11088 # Do we need the lib prefix for modules?
11089 need_lib_prefix=$need_lib_prefix
11091 # Do we need a version for libraries?
11092 need_version=$need_version
11094 # Whether dlopen is supported.
11095 dlopen_support=$enable_dlopen
11097 # Whether dlopen of programs is supported.
11098 dlopen_self=$enable_dlopen_self
11100 # Whether dlopen of statically linked programs is supported.
11101 dlopen_self_static=$enable_dlopen_self_static
11103 # Compiler flag to prevent dynamic linking.
11104 link_static_flag=$lt_lt_prog_compiler_static
11106 # Compiler flag to turn off builtin functions.
11107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11109 # Compiler flag to allow reflexive dlopens.
11110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11112 # Compiler flag to generate shared objects directly from archives.
11113 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11115 # Compiler flag to generate thread-safe objects.
11116 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11118 # Library versioning type.
11119 version_type=$version_type
11121 # Format of library name prefix.
11122 libname_spec=$lt_libname_spec
11124 # List of archive names. First name is the real one, the rest are links.
11125 # The last name is the one that the linker finds with -lNAME.
11126 library_names_spec=$lt_library_names_spec
11128 # The coded name of the library, if different from the real name.
11129 soname_spec=$lt_soname_spec
11131 # Commands used to build and install an old-style archive.
11132 RANLIB=$lt_RANLIB
11133 old_archive_cmds=$lt_old_archive_cmds
11134 old_postinstall_cmds=$lt_old_postinstall_cmds
11135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11137 # Create an old-style archive from a shared archive.
11138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11140 # Create a temporary old-style archive to link instead of a shared archive.
11141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11143 # Commands used to build and install a shared archive.
11144 archive_cmds=$lt_archive_cmds
11145 archive_expsym_cmds=$lt_archive_expsym_cmds
11146 postinstall_cmds=$lt_postinstall_cmds
11147 postuninstall_cmds=$lt_postuninstall_cmds
11149 # Commands used to build a loadable module (assumed same as above if empty)
11150 module_cmds=$lt_module_cmds
11151 module_expsym_cmds=$lt_module_expsym_cmds
11153 # Commands to strip libraries.
11154 old_striplib=$lt_old_striplib
11155 striplib=$lt_striplib
11157 # Dependencies to place before the objects being linked to create a
11158 # shared library.
11159 predep_objects=$lt_predep_objects
11161 # Dependencies to place after the objects being linked to create a
11162 # shared library.
11163 postdep_objects=$lt_postdep_objects
11165 # Dependencies to place before the objects being linked to create a
11166 # shared library.
11167 predeps=$lt_predeps
11169 # Dependencies to place after the objects being linked to create a
11170 # shared library.
11171 postdeps=$lt_postdeps
11173 # The directories searched by this compiler when creating a shared
11174 # library
11175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11177 # The library search path used internally by the compiler when linking
11178 # a shared library.
11179 compiler_lib_search_path=$lt_compiler_lib_search_path
11181 # Method to check whether dependent libraries are shared objects.
11182 deplibs_check_method=$lt_deplibs_check_method
11184 # Command to use when deplibs_check_method == file_magic.
11185 file_magic_cmd=$lt_file_magic_cmd
11187 # Flag that allows shared libraries with undefined symbols to be built.
11188 allow_undefined_flag=$lt_allow_undefined_flag
11190 # Flag that forces no undefined symbols.
11191 no_undefined_flag=$lt_no_undefined_flag
11193 # Commands used to finish a libtool library installation in a directory.
11194 finish_cmds=$lt_finish_cmds
11196 # Same as above, but a single script fragment to be evaled but not shown.
11197 finish_eval=$lt_finish_eval
11199 # Take the output of nm and produce a listing of raw symbols and C names.
11200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11202 # Transform the output of nm in a proper C declaration
11203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11205 # Transform the output of nm in a C name address pair
11206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11208 # This is the shared library runtime path variable.
11209 runpath_var=$runpath_var
11211 # This is the shared library path variable.
11212 shlibpath_var=$shlibpath_var
11214 # Is shlibpath searched before the hard-coded library search path?
11215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11217 # How to hardcode a shared library path into an executable.
11218 hardcode_action=$hardcode_action
11220 # Whether we should hardcode library paths into libraries.
11221 hardcode_into_libs=$hardcode_into_libs
11223 # Flag to hardcode \$libdir into a binary during linking.
11224 # This must work even if \$libdir does not exist.
11225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11227 # If ld is used when linking, flag to hardcode \$libdir into
11228 # a binary during linking. This must work even if \$libdir does
11229 # not exist.
11230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11232 # Whether we need a single -rpath flag with a separated argument.
11233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11236 # resulting binary.
11237 hardcode_direct=$hardcode_direct
11239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11240 # resulting binary.
11241 hardcode_minus_L=$hardcode_minus_L
11243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11244 # the resulting binary.
11245 hardcode_shlibpath_var=$hardcode_shlibpath_var
11247 # Set to yes if building a shared library automatically hardcodes DIR into the library
11248 # and all subsequent libraries and executables linked against it.
11249 hardcode_automatic=$hardcode_automatic
11251 # Variables whose values should be saved in libtool wrapper scripts and
11252 # restored at relink time.
11253 variables_saved_for_relink="$variables_saved_for_relink"
11255 # Whether libtool must link a program against all its dependency libraries.
11256 link_all_deplibs=$link_all_deplibs
11258 # Compile-time system search path for libraries
11259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11261 # Run-time system search path for libraries
11262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11264 # Fix the shell variable \$srcfile for the compiler.
11265 fix_srcfile_path=$lt_fix_srcfile_path
11267 # Set to yes if exported symbols are required.
11268 always_export_symbols=$always_export_symbols
11270 # The commands to list exported symbols.
11271 export_symbols_cmds=$lt_export_symbols_cmds
11273 # The commands to extract the exported symbol list from a shared archive.
11274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11276 # Symbols that should not be listed in the preloaded symbols.
11277 exclude_expsyms=$lt_exclude_expsyms
11279 # Symbols that must always be exported.
11280 include_expsyms=$lt_include_expsyms
11282 # ### END LIBTOOL CONFIG
11284 __EOF__
11287 case $host_os in
11288 aix3*)
11289 cat <<\EOF >> "$cfgfile"
11291 # AIX sometimes has problems with the GCC collect2 program. For some
11292 # reason, if we set the COLLECT_NAMES environment variable, the problems
11293 # vanish in a puff of smoke.
11294 if test "X${COLLECT_NAMES+set}" != Xset; then
11295 COLLECT_NAMES=
11296 export COLLECT_NAMES
11300 esac
11302 # We use sed instead of cat because bash on DJGPP gets confused if
11303 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11304 # text mode, it properly converts lines to CR/LF. This bash problem
11305 # is reportedly fixed, but why not run on old versions too?
11306 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11308 mv -f "$cfgfile" "$ofile" || \
11309 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11310 chmod +x "$ofile"
11312 else
11313 # If there is no Makefile yet, we rely on a make rule to execute
11314 # `config.status --recheck' to rerun these tests and create the
11315 # libtool script then.
11316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11317 if test -f "$ltmain_in"; then
11318 test -f Makefile && make "$ltmain"
11323 ac_ext=c
11324 ac_cpp='$CPP $CPPFLAGS'
11325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11329 CC="$lt_save_CC"
11332 # Check whether --with-tags was given.
11333 if test "${with_tags+set}" = set; then
11334 withval=$with_tags; tagnames="$withval"
11338 if test -f "$ltmain" && test -n "$tagnames"; then
11339 if test ! -f "${ofile}"; then
11340 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11341 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11344 if test -z "$LTCC"; then
11345 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11346 if test -z "$LTCC"; then
11347 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11348 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11349 else
11350 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11351 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11354 if test -z "$LTCFLAGS"; then
11355 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11358 # Extract list of available tagged configurations in $ofile.
11359 # Note that this assumes the entire list is on one line.
11360 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11363 for tagname in $tagnames; do
11364 IFS="$lt_save_ifs"
11365 # Check whether tagname contains only valid characters
11366 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11367 "") ;;
11368 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11369 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11370 { (exit 1); exit 1; }; }
11372 esac
11374 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11375 then
11376 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11377 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11378 { (exit 1); exit 1; }; }
11381 # Update the list of available tags.
11382 if test -n "$tagname"; then
11383 echo appending configuration tag \"$tagname\" to $ofile
11385 case $tagname in
11386 CXX)
11387 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11388 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11389 (test "X$CXX" != "Xg++"))) ; then
11390 ac_ext=cpp
11391 ac_cpp='$CXXCPP $CPPFLAGS'
11392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11399 archive_cmds_need_lc_CXX=no
11400 allow_undefined_flag_CXX=
11401 always_export_symbols_CXX=no
11402 archive_expsym_cmds_CXX=
11403 export_dynamic_flag_spec_CXX=
11404 hardcode_direct_CXX=no
11405 hardcode_libdir_flag_spec_CXX=
11406 hardcode_libdir_flag_spec_ld_CXX=
11407 hardcode_libdir_separator_CXX=
11408 hardcode_minus_L_CXX=no
11409 hardcode_shlibpath_var_CXX=unsupported
11410 hardcode_automatic_CXX=no
11411 module_cmds_CXX=
11412 module_expsym_cmds_CXX=
11413 link_all_deplibs_CXX=unknown
11414 old_archive_cmds_CXX=$old_archive_cmds
11415 no_undefined_flag_CXX=
11416 whole_archive_flag_spec_CXX=
11417 enable_shared_with_static_runtimes_CXX=no
11419 # Dependencies to place before and after the object being linked:
11420 predep_objects_CXX=
11421 postdep_objects_CXX=
11422 predeps_CXX=
11423 postdeps_CXX=
11424 compiler_lib_search_path_CXX=
11425 compiler_lib_search_dirs_CXX=
11427 # Source file extension for C++ test sources.
11428 ac_ext=cpp
11430 # Object file extension for compiled C++ test sources.
11431 objext=o
11432 objext_CXX=$objext
11434 # Code to be used in simple compile tests
11435 lt_simple_compile_test_code="int some_variable = 0;"
11437 # Code to be used in simple link tests
11438 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11442 # If no C compiler was specified, use CC.
11443 LTCC=${LTCC-"$CC"}
11445 # If no C compiler flags were specified, use CFLAGS.
11446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11448 # Allow CC to be a program name with arguments.
11449 compiler=$CC
11452 # save warnings/boilerplate of simple test code
11453 ac_outfile=conftest.$ac_objext
11454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11456 _lt_compiler_boilerplate=`cat conftest.err`
11457 $rm conftest*
11459 ac_outfile=conftest.$ac_objext
11460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11462 _lt_linker_boilerplate=`cat conftest.err`
11463 $rm -r conftest*
11466 # Allow CC to be a program name with arguments.
11467 lt_save_CC=$CC
11468 lt_save_LD=$LD
11469 lt_save_GCC=$GCC
11470 GCC=$GXX
11471 lt_save_with_gnu_ld=$with_gnu_ld
11472 lt_save_path_LD=$lt_cv_path_LD
11473 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11474 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11475 else
11476 $as_unset lt_cv_prog_gnu_ld
11478 if test -n "${lt_cv_path_LDCXX+set}"; then
11479 lt_cv_path_LD=$lt_cv_path_LDCXX
11480 else
11481 $as_unset lt_cv_path_LD
11483 test -z "${LDCXX+set}" || LD=$LDCXX
11484 CC=${CXX-"c++"}
11485 compiler=$CC
11486 compiler_CXX=$CC
11487 for cc_temp in $compiler""; do
11488 case $cc_temp in
11489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11491 \-*) ;;
11492 *) break;;
11493 esac
11494 done
11495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11498 # We don't want -fno-exception wen compiling C++ code, so set the
11499 # no_builtin_flag separately
11500 if test "$GXX" = yes; then
11501 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11502 else
11503 lt_prog_compiler_no_builtin_flag_CXX=
11506 if test "$GXX" = yes; then
11507 # Set up default GNU C++ configuration
11510 # Check whether --with-gnu-ld was given.
11511 if test "${with_gnu_ld+set}" = set; then
11512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11513 else
11514 with_gnu_ld=no
11517 ac_prog=ld
11518 if test "$GCC" = yes; then
11519 # Check if gcc -print-prog-name=ld gives a path.
11520 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11521 $as_echo_n "checking for ld used by $CC... " >&6; }
11522 case $host in
11523 *-*-mingw*)
11524 # gcc leaves a trailing carriage return which upsets mingw
11525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11528 esac
11529 case $ac_prog in
11530 # Accept absolute paths.
11531 [\\/]* | ?:[\\/]*)
11532 re_direlt='/[^/][^/]*/\.\./'
11533 # Canonicalize the pathname of ld
11534 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11535 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11536 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11537 done
11538 test -z "$LD" && LD="$ac_prog"
11541 # If it fails, then pretend we aren't using GCC.
11542 ac_prog=ld
11545 # If it is relative, then search for the first ld in PATH.
11546 with_gnu_ld=unknown
11548 esac
11549 elif test "$with_gnu_ld" = yes; then
11550 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11551 $as_echo_n "checking for GNU ld... " >&6; }
11552 else
11553 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11554 $as_echo_n "checking for non-GNU ld... " >&6; }
11556 if test "${lt_cv_path_LD+set}" = set; then
11557 $as_echo_n "(cached) " >&6
11558 else
11559 if test -z "$LD"; then
11560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11561 for ac_dir in $PATH; do
11562 IFS="$lt_save_ifs"
11563 test -z "$ac_dir" && ac_dir=.
11564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11565 lt_cv_path_LD="$ac_dir/$ac_prog"
11566 # Check to see if the program is GNU ld. I'd rather use --version,
11567 # but apparently some variants of GNU ld only accept -v.
11568 # Break only if it was the GNU/non-GNU ld that we prefer.
11569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11570 *GNU* | *'with BFD'*)
11571 test "$with_gnu_ld" != no && break
11574 test "$with_gnu_ld" != yes && break
11576 esac
11578 done
11579 IFS="$lt_save_ifs"
11580 else
11581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11585 LD="$lt_cv_path_LD"
11586 if test -n "$LD"; then
11587 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11588 $as_echo "$LD" >&6; }
11589 else
11590 { $as_echo "$as_me:$LINENO: result: no" >&5
11591 $as_echo "no" >&6; }
11593 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11594 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11595 { (exit 1); exit 1; }; }
11596 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11597 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11598 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11599 $as_echo_n "(cached) " >&6
11600 else
11601 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11602 case `$LD -v 2>&1 </dev/null` in
11603 *GNU* | *'with BFD'*)
11604 lt_cv_prog_gnu_ld=yes
11607 lt_cv_prog_gnu_ld=no
11609 esac
11611 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11612 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11613 with_gnu_ld=$lt_cv_prog_gnu_ld
11617 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11618 # archiving commands below assume that GNU ld is being used.
11619 if test "$with_gnu_ld" = yes; then
11620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621 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'
11623 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11626 # If archive_cmds runs LD, not CC, wlarc should be empty
11627 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11628 # investigate it a little bit more. (MM)
11629 wlarc='${wl}'
11631 # ancient GNU ld didn't support --whole-archive et. al.
11632 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11633 grep 'no-whole-archive' > /dev/null; then
11634 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11635 else
11636 whole_archive_flag_spec_CXX=
11638 else
11639 with_gnu_ld=no
11640 wlarc=
11642 # A generic and very simple default shared library creation
11643 # command for GNU C++ for the case where it uses the native
11644 # linker, instead of GNU ld. If possible, this setting should
11645 # overridden to take advantage of the native linker features on
11646 # the platform it is being used on.
11647 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11655 else
11656 GXX=no
11657 with_gnu_ld=no
11658 wlarc=
11661 # PORTME: fill in a description of your system's C++ link characteristics
11662 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11663 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11664 ld_shlibs_CXX=yes
11665 case $host_os in
11666 aix3*)
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11670 aix[4-9]*)
11671 if test "$host_cpu" = ia64; then
11672 # On IA64, the linker does run time linking by default, so we don't
11673 # have to do anything special.
11674 aix_use_runtimelinking=no
11675 exp_sym_flag='-Bexport'
11676 no_entry_flag=""
11677 else
11678 aix_use_runtimelinking=no
11680 # Test if we are trying to use run time linking or normal
11681 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11682 # need to do runtime linking.
11683 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11684 for ld_flag in $LDFLAGS; do
11685 case $ld_flag in
11686 *-brtl*)
11687 aix_use_runtimelinking=yes
11688 break
11690 esac
11691 done
11693 esac
11695 exp_sym_flag='-bexport'
11696 no_entry_flag='-bnoentry'
11699 # When large executables or shared objects are built, AIX ld can
11700 # have problems creating the table of contents. If linking a library
11701 # or program results in "error TOC overflow" add -mminimal-toc to
11702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11705 archive_cmds_CXX=''
11706 hardcode_direct_CXX=yes
11707 hardcode_libdir_separator_CXX=':'
11708 link_all_deplibs_CXX=yes
11710 if test "$GXX" = yes; then
11711 case $host_os in aix4.[012]|aix4.[012].*)
11712 # We only want to do this on AIX 4.2 and lower, the check
11713 # below for broken collect2 doesn't work under 4.3+
11714 collect2name=`${CC} -print-prog-name=collect2`
11715 if test -f "$collect2name" && \
11716 strings "$collect2name" | grep resolve_lib_name >/dev/null
11717 then
11718 # We have reworked collect2
11720 else
11721 # We have old collect2
11722 hardcode_direct_CXX=unsupported
11723 # It fails to find uninstalled libraries when the uninstalled
11724 # path is not listed in the libpath. Setting hardcode_minus_L
11725 # to unsupported forces relinking
11726 hardcode_minus_L_CXX=yes
11727 hardcode_libdir_flag_spec_CXX='-L$libdir'
11728 hardcode_libdir_separator_CXX=
11731 esac
11732 shared_flag='-shared'
11733 if test "$aix_use_runtimelinking" = yes; then
11734 shared_flag="$shared_flag "'${wl}-G'
11736 else
11737 # not using gcc
11738 if test "$host_cpu" = ia64; then
11739 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11740 # chokes on -Wl,-G. The following line is correct:
11741 shared_flag='-G'
11742 else
11743 if test "$aix_use_runtimelinking" = yes; then
11744 shared_flag='${wl}-G'
11745 else
11746 shared_flag='${wl}-bM:SRE'
11751 # It seems that -bexpall does not export symbols beginning with
11752 # underscore (_), so it is better to generate a list of symbols to export.
11753 always_export_symbols_CXX=yes
11754 if test "$aix_use_runtimelinking" = yes; then
11755 # Warning - without using the other runtime loading flags (-brtl),
11756 # -berok will link without error, but may produce a broken library.
11757 allow_undefined_flag_CXX='-berok'
11758 # Determine the default libpath from the value encoded in an empty executable.
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11767 main ()
11771 return 0;
11773 _ACEOF
11774 rm -f conftest.$ac_objext conftest$ac_exeext
11775 if { (ac_try="$ac_link"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11781 $as_echo "$ac_try_echo") >&5
11782 (eval "$ac_link") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_cxx_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest$ac_exeext && {
11792 test "$cross_compiling" = yes ||
11793 $as_test_x conftest$ac_exeext
11794 }; then
11796 lt_aix_libpath_sed='
11797 /Import File Strings/,/^$/ {
11798 /^0/ {
11799 s/^0 *\(.*\)$/\1/
11803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11804 # Check for a 64-bit object if we didn't find anything.
11805 if test -z "$aix_libpath"; then
11806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11808 else
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11815 rm -rf conftest.dSYM
11816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11817 conftest$ac_exeext conftest.$ac_ext
11818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11822 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"
11823 else
11824 if test "$host_cpu" = ia64; then
11825 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11826 allow_undefined_flag_CXX="-z nodefs"
11827 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"
11828 else
11829 # Determine the default libpath from the value encoded in an empty executable.
11830 cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h. */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11838 main ()
11842 return 0;
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11852 $as_echo "$ac_try_echo") >&5
11853 (eval "$ac_link") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_cxx_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest$ac_exeext && {
11863 test "$cross_compiling" = yes ||
11864 $as_test_x conftest$ac_exeext
11865 }; then
11867 lt_aix_libpath_sed='
11868 /Import File Strings/,/^$/ {
11869 /^0/ {
11870 s/^0 *\(.*\)$/\1/
11874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11875 # Check for a 64-bit object if we didn't find anything.
11876 if test -z "$aix_libpath"; then
11877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11879 else
11880 $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11886 rm -rf conftest.dSYM
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 conftest$ac_exeext conftest.$ac_ext
11889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11892 # Warning - without using the other run time loading flags,
11893 # -berok will link without error, but may produce a broken library.
11894 no_undefined_flag_CXX=' ${wl}-bernotok'
11895 allow_undefined_flag_CXX=' ${wl}-berok'
11896 # Exported symbols can be pulled into shared objects from archives
11897 whole_archive_flag_spec_CXX='$convenience'
11898 archive_cmds_need_lc_CXX=yes
11899 # This is similar to how AIX traditionally builds its shared libraries.
11900 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'
11905 beos*)
11906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11907 allow_undefined_flag_CXX=unsupported
11908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11909 # support --undefined. This deserves some investigation. FIXME
11910 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911 else
11912 ld_shlibs_CXX=no
11916 chorus*)
11917 case $cc_basename in
11919 # FIXME: insert proper C++ library support
11920 ld_shlibs_CXX=no
11922 esac
11925 cygwin* | mingw* | pw32*)
11926 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11927 # as there is no search path for DLLs.
11928 hardcode_libdir_flag_spec_CXX='-L$libdir'
11929 allow_undefined_flag_CXX=unsupported
11930 always_export_symbols_CXX=no
11931 enable_shared_with_static_runtimes_CXX=yes
11933 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11934 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'
11935 # If the export-symbols file already is a .def file (1st line
11936 # is EXPORTS), use it as is; otherwise, prepend...
11937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11938 cp $export_symbols $output_objdir/$soname.def;
11939 else
11940 echo EXPORTS > $output_objdir/$soname.def;
11941 cat $export_symbols >> $output_objdir/$soname.def;
11943 $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'
11944 else
11945 ld_shlibs_CXX=no
11948 darwin* | rhapsody*)
11949 archive_cmds_need_lc_CXX=no
11950 hardcode_direct_CXX=no
11951 hardcode_automatic_CXX=yes
11952 hardcode_shlibpath_var_CXX=unsupported
11953 whole_archive_flag_spec_CXX=''
11954 link_all_deplibs_CXX=yes
11955 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11956 if test "$GXX" = yes ; then
11957 output_verbose_link_cmd='echo'
11958 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11959 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11960 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11961 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11962 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11963 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${_lt_dsymutil}"
11964 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11966 else
11967 case $cc_basename in
11968 xlc*)
11969 output_verbose_link_cmd='echo'
11970 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11971 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11973 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11974 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}'
11977 ld_shlibs_CXX=no
11979 esac
11983 dgux*)
11984 case $cc_basename in
11985 ec++*)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11989 ghcx*)
11990 # Green Hills C++ Compiler
11991 # FIXME: insert proper C++ library support
11992 ld_shlibs_CXX=no
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11998 esac
12000 freebsd[12]*)
12001 # C++ shared libraries reported to be fairly broken before switch to ELF
12002 ld_shlibs_CXX=no
12004 freebsd-elf*)
12005 archive_cmds_need_lc_CXX=no
12007 freebsd* | dragonfly*)
12008 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12009 # conventions
12010 ld_shlibs_CXX=yes
12012 gnu*)
12014 hpux9*)
12015 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12016 hardcode_libdir_separator_CXX=:
12017 export_dynamic_flag_spec_CXX='${wl}-E'
12018 hardcode_direct_CXX=yes
12019 hardcode_minus_L_CXX=yes # Not in the search PATH,
12020 # but as the default
12021 # location of the library.
12023 case $cc_basename in
12024 CC*)
12025 # FIXME: insert proper C++ library support
12026 ld_shlibs_CXX=no
12028 aCC*)
12029 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'
12030 # Commands to make compiler produce verbose output that lists
12031 # what "hidden" libraries, object files and flags are used when
12032 # linking a shared library.
12034 # There doesn't appear to be a way to prevent this compiler from
12035 # explicitly linking system object files so we need to strip them
12036 # from the output so that they don't get included in the library
12037 # dependencies.
12038 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'
12041 if test "$GXX" = yes; then
12042 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'
12043 else
12044 # FIXME: insert proper C++ library support
12045 ld_shlibs_CXX=no
12048 esac
12050 hpux10*|hpux11*)
12051 if test $with_gnu_ld = no; then
12052 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12053 hardcode_libdir_separator_CXX=:
12055 case $host_cpu in
12056 hppa*64*|ia64*) ;;
12058 export_dynamic_flag_spec_CXX='${wl}-E'
12060 esac
12062 case $host_cpu in
12063 hppa*64*|ia64*)
12064 hardcode_direct_CXX=no
12065 hardcode_shlibpath_var_CXX=no
12068 hardcode_direct_CXX=yes
12069 hardcode_minus_L_CXX=yes # Not in the search PATH,
12070 # but as the default
12071 # location of the library.
12073 esac
12075 case $cc_basename in
12076 CC*)
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12080 aCC*)
12081 case $host_cpu in
12082 hppa*64*)
12083 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085 ia64*)
12086 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12089 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12091 esac
12092 # Commands to make compiler produce verbose output that lists
12093 # what "hidden" libraries, object files and flags are used when
12094 # linking a shared library.
12096 # There doesn't appear to be a way to prevent this compiler from
12097 # explicitly linking system object files so we need to strip them
12098 # from the output so that they don't get included in the library
12099 # dependencies.
12100 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'
12103 if test "$GXX" = yes; then
12104 if test $with_gnu_ld = no; then
12105 case $host_cpu in
12106 hppa*64*)
12107 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109 ia64*)
12110 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12113 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'
12115 esac
12117 else
12118 # FIXME: insert proper C++ library support
12119 ld_shlibs_CXX=no
12122 esac
12124 interix[3-9]*)
12125 hardcode_direct_CXX=no
12126 hardcode_shlibpath_var_CXX=no
12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12128 export_dynamic_flag_spec_CXX='${wl}-E'
12129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12130 # Instead, shared libraries are loaded at an image base (0x10000000 by
12131 # default) and relocated if they conflict, which is a slow very memory
12132 # consuming and fragmenting process. To avoid this, we pick a random,
12133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12134 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12135 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'
12136 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'
12138 irix5* | irix6*)
12139 case $cc_basename in
12140 CC*)
12141 # SGI C++
12142 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'
12144 # Archives containing C++ object files must be created using
12145 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12146 # necessary to make sure instantiated templates are included
12147 # in the archive.
12148 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12151 if test "$GXX" = yes; then
12152 if test "$with_gnu_ld" = no; then
12153 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'
12154 else
12155 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'
12158 link_all_deplibs_CXX=yes
12160 esac
12161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12162 hardcode_libdir_separator_CXX=:
12164 linux* | k*bsd*-gnu)
12165 case $cc_basename in
12166 KCC*)
12167 # Kuck and Associates, Inc. (KAI) C++ Compiler
12169 # KCC will only create a shared library if the output file
12170 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12171 # to its proper name (with version) after linking.
12172 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'
12173 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'
12174 # Commands to make compiler produce verbose output that lists
12175 # what "hidden" libraries, object files and flags are used when
12176 # linking a shared library.
12178 # There doesn't appear to be a way to prevent this compiler from
12179 # explicitly linking system object files so we need to strip them
12180 # from the output so that they don't get included in the library
12181 # dependencies.
12182 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'
12184 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12187 # Archives containing C++ object files must be created using
12188 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12189 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12191 icpc*)
12192 # Intel C++
12193 with_gnu_ld=yes
12194 # version 8.0 and above of icpc choke on multiply defined symbols
12195 # if we add $predep_objects and $postdep_objects, however 7.1 and
12196 # earlier do not add the objects themselves.
12197 case `$CC -V 2>&1` in
12198 *"Version 7."*)
12199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 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'
12202 *) # Version 8.0 or newer
12203 tmp_idyn=
12204 case $host_cpu in
12205 ia64*) tmp_idyn=' -i_dynamic';;
12206 esac
12207 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208 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'
12210 esac
12211 archive_cmds_need_lc_CXX=no
12212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12214 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12216 pgCC* | pgcpp*)
12217 # Portland Group C++ compiler
12218 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12219 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'
12221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12223 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'
12225 cxx*)
12226 # Compaq C++
12227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12228 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'
12230 runpath_var=LD_RUN_PATH
12231 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12232 hardcode_libdir_separator_CXX=:
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12238 # There doesn't appear to be a way to prevent this compiler from
12239 # explicitly linking system object files so we need to strip them
12240 # from the output so that they don't get included in the library
12241 # dependencies.
12242 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'
12245 case `$CC -V 2>&1 | sed 5q` in
12246 *Sun\ C*)
12247 # Sun C++ 5.9
12248 no_undefined_flag_CXX=' -zdefs'
12249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12250 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12251 hardcode_libdir_flag_spec_CXX='-R$libdir'
12252 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12254 # Not sure whether something based on
12255 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12256 # would be better.
12257 output_verbose_link_cmd='echo'
12259 # Archives containing C++ object files must be created using
12260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12261 # necessary to make sure instantiated templates are included
12262 # in the archive.
12263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12265 esac
12267 esac
12269 lynxos*)
12270 # FIXME: insert proper C++ library support
12271 ld_shlibs_CXX=no
12273 m88k*)
12274 # FIXME: insert proper C++ library support
12275 ld_shlibs_CXX=no
12277 mvs*)
12278 case $cc_basename in
12279 cxx*)
12280 # FIXME: insert proper C++ library support
12281 ld_shlibs_CXX=no
12284 # FIXME: insert proper C++ library support
12285 ld_shlibs_CXX=no
12287 esac
12289 netbsd*)
12290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12291 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12292 wlarc=
12293 hardcode_libdir_flag_spec_CXX='-R$libdir'
12294 hardcode_direct_CXX=yes
12295 hardcode_shlibpath_var_CXX=no
12297 # Workaround some broken pre-1.5 toolchains
12298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12300 openbsd2*)
12301 # C++ shared libraries are fairly broken
12302 ld_shlibs_CXX=no
12304 openbsd*)
12305 if test -f /usr/libexec/ld.so; then
12306 hardcode_direct_CXX=yes
12307 hardcode_shlibpath_var_CXX=no
12308 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12311 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12312 export_dynamic_flag_spec_CXX='${wl}-E'
12313 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12315 output_verbose_link_cmd='echo'
12316 else
12317 ld_shlibs_CXX=no
12320 osf3*)
12321 case $cc_basename in
12322 KCC*)
12323 # Kuck and Associates, Inc. (KAI) C++ Compiler
12325 # KCC will only create a shared library if the output file
12326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12327 # to its proper name (with version) after linking.
12328 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'
12330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12331 hardcode_libdir_separator_CXX=:
12333 # Archives containing C++ object files must be created using
12334 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12335 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12338 RCC*)
12339 # Rational C++ 2.4.1
12340 # FIXME: insert proper C++ library support
12341 ld_shlibs_CXX=no
12343 cxx*)
12344 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12345 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'
12347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12348 hardcode_libdir_separator_CXX=:
12350 # Commands to make compiler produce verbose output that lists
12351 # what "hidden" libraries, object files and flags are used when
12352 # linking a shared library.
12354 # There doesn't appear to be a way to prevent this compiler from
12355 # explicitly linking system object files so we need to strip them
12356 # from the output so that they don't get included in the library
12357 # dependencies.
12358 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'
12361 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12362 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12363 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'
12365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12366 hardcode_libdir_separator_CXX=:
12368 # Commands to make compiler produce verbose output that lists
12369 # what "hidden" libraries, object files and flags are used when
12370 # linking a shared library.
12371 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12373 else
12374 # FIXME: insert proper C++ library support
12375 ld_shlibs_CXX=no
12378 esac
12380 osf4* | osf5*)
12381 case $cc_basename in
12382 KCC*)
12383 # Kuck and Associates, Inc. (KAI) C++ Compiler
12385 # KCC will only create a shared library if the output file
12386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12387 # to its proper name (with version) after linking.
12388 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'
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12391 hardcode_libdir_separator_CXX=:
12393 # Archives containing C++ object files must be created using
12394 # the KAI C++ compiler.
12395 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12397 RCC*)
12398 # Rational C++ 2.4.1
12399 # FIXME: insert proper C++ library support
12400 ld_shlibs_CXX=no
12402 cxx*)
12403 allow_undefined_flag_CXX=' -expect_unresolved \*'
12404 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'
12405 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12406 echo "-hidden">> $lib.exp~
12407 $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~
12408 $rm $lib.exp'
12410 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12411 hardcode_libdir_separator_CXX=:
12413 # Commands to make compiler produce verbose output that lists
12414 # what "hidden" libraries, object files and flags are used when
12415 # linking a shared library.
12417 # There doesn't appear to be a way to prevent this compiler from
12418 # explicitly linking system object files so we need to strip them
12419 # from the output so that they don't get included in the library
12420 # dependencies.
12421 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'
12424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12425 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12426 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'
12428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12429 hardcode_libdir_separator_CXX=:
12431 # Commands to make compiler produce verbose output that lists
12432 # what "hidden" libraries, object files and flags are used when
12433 # linking a shared library.
12434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12436 else
12437 # FIXME: insert proper C++ library support
12438 ld_shlibs_CXX=no
12441 esac
12443 psos*)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12447 sunos4*)
12448 case $cc_basename in
12449 CC*)
12450 # Sun C++ 4.x
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12454 lcc*)
12455 # Lucid
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12460 # FIXME: insert proper C++ library support
12461 ld_shlibs_CXX=no
12463 esac
12465 solaris*)
12466 case $cc_basename in
12467 CC*)
12468 # Sun C++ 4.2, 5.x and Centerline C++
12469 archive_cmds_need_lc_CXX=yes
12470 no_undefined_flag_CXX=' -zdefs'
12471 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12473 $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'
12475 hardcode_libdir_flag_spec_CXX='-R$libdir'
12476 hardcode_shlibpath_var_CXX=no
12477 case $host_os in
12478 solaris2.[0-5] | solaris2.[0-5].*) ;;
12480 # The compiler driver will combine and reorder linker options,
12481 # but understands `-z linker_flag'.
12482 # Supported since Solaris 2.6 (maybe 2.5.1?)
12483 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12485 esac
12486 link_all_deplibs_CXX=yes
12488 output_verbose_link_cmd='echo'
12490 # Archives containing C++ object files must be created using
12491 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12492 # necessary to make sure instantiated templates are included
12493 # in the archive.
12494 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12496 gcx*)
12497 # Green Hills C++ Compiler
12498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12500 # The C++ compiler must be used to create the archive.
12501 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12504 # GNU C++ compiler with Solaris linker
12505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12506 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12507 if $CC --version | grep -v '^2\.7' > /dev/null; then
12508 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12509 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12510 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12512 # Commands to make compiler produce verbose output that lists
12513 # what "hidden" libraries, object files and flags are used when
12514 # linking a shared library.
12515 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12516 else
12517 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12518 # platform.
12519 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12520 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12521 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12523 # Commands to make compiler produce verbose output that lists
12524 # what "hidden" libraries, object files and flags are used when
12525 # linking a shared library.
12526 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12529 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12530 case $host_os in
12531 solaris2.[0-5] | solaris2.[0-5].*) ;;
12533 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12535 esac
12538 esac
12540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12541 no_undefined_flag_CXX='${wl}-z,text'
12542 archive_cmds_need_lc_CXX=no
12543 hardcode_shlibpath_var_CXX=no
12544 runpath_var='LD_RUN_PATH'
12546 case $cc_basename in
12547 CC*)
12548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12555 esac
12557 sysv5* | sco3.2v5* | sco5v6*)
12558 # Note: We can NOT use -z defs as we might desire, because we do not
12559 # link with -lc, and that would cause any symbols used from libc to
12560 # always be unresolved, which means just about no library would
12561 # ever link correctly. If we're not using GNU ld we use -z text
12562 # though, which does catch some bad symbols but isn't as heavy-handed
12563 # as -z defs.
12564 # For security reasons, it is highly recommended that you always
12565 # use absolute paths for naming shared libraries, and exclude the
12566 # DT_RUNPATH tag from executables and libraries. But doing so
12567 # requires that you compile everything twice, which is a pain.
12568 # So that behaviour is only enabled if SCOABSPATH is set to a
12569 # non-empty value in the environment. Most likely only useful for
12570 # creating official distributions of packages.
12571 # This is a hack until libtool officially supports absolute path
12572 # names for shared libraries.
12573 no_undefined_flag_CXX='${wl}-z,text'
12574 allow_undefined_flag_CXX='${wl}-z,nodefs'
12575 archive_cmds_need_lc_CXX=no
12576 hardcode_shlibpath_var_CXX=no
12577 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12578 hardcode_libdir_separator_CXX=':'
12579 link_all_deplibs_CXX=yes
12580 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12581 runpath_var='LD_RUN_PATH'
12583 case $cc_basename in
12584 CC*)
12585 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12590 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12592 esac
12594 tandem*)
12595 case $cc_basename in
12596 NCC*)
12597 # NonStop-UX NCC 3.20
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12605 esac
12607 vxworks*)
12608 # FIXME: insert proper C++ library support
12609 ld_shlibs_CXX=no
12612 # FIXME: insert proper C++ library support
12613 ld_shlibs_CXX=no
12615 esac
12616 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12617 $as_echo "$ld_shlibs_CXX" >&6; }
12618 test "$ld_shlibs_CXX" = no && can_build_shared=no
12620 GCC_CXX="$GXX"
12621 LD_CXX="$LD"
12623 cat > conftest.$ac_ext <<EOF
12624 class Foo
12626 public:
12627 Foo (void) { a = 0; }
12628 private:
12629 int a;
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>&5
12635 ac_status=$?
12636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; then
12638 # Parse the compiler output and extract the necessary
12639 # objects, libraries and library flags.
12641 # Sentinel used to keep track of whether or not we are before
12642 # the conftest object file.
12643 pre_test_object_deps_done=no
12645 # The `*' in the case matches for architectures that use `case' in
12646 # $output_verbose_cmd can trigger glob expansion during the loop
12647 # eval without this substitution.
12648 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12650 for p in `eval $output_verbose_link_cmd`; do
12651 case $p in
12653 -L* | -R* | -l*)
12654 # Some compilers place space between "-{L,R}" and the path.
12655 # Remove the space.
12656 if test $p = "-L" \
12657 || test $p = "-R"; then
12658 prev=$p
12659 continue
12660 else
12661 prev=
12664 if test "$pre_test_object_deps_done" = no; then
12665 case $p in
12666 -L* | -R*)
12667 # Internal compiler library paths should come after those
12668 # provided the user. The postdeps already come after the
12669 # user supplied libs so there is no need to process them.
12670 if test -z "$compiler_lib_search_path_CXX"; then
12671 compiler_lib_search_path_CXX="${prev}${p}"
12672 else
12673 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12676 # The "-l" case would never come before the object being
12677 # linked, so don't bother handling this case.
12678 esac
12679 else
12680 if test -z "$postdeps_CXX"; then
12681 postdeps_CXX="${prev}${p}"
12682 else
12683 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12688 *.$objext)
12689 # This assumes that the test object file only shows up
12690 # once in the compiler output.
12691 if test "$p" = "conftest.$objext"; then
12692 pre_test_object_deps_done=yes
12693 continue
12696 if test "$pre_test_object_deps_done" = no; then
12697 if test -z "$predep_objects_CXX"; then
12698 predep_objects_CXX="$p"
12699 else
12700 predep_objects_CXX="$predep_objects_CXX $p"
12702 else
12703 if test -z "$postdep_objects_CXX"; then
12704 postdep_objects_CXX="$p"
12705 else
12706 postdep_objects_CXX="$postdep_objects_CXX $p"
12711 *) ;; # Ignore the rest.
12713 esac
12714 done
12716 # Clean up.
12717 rm -f a.out a.exe
12718 else
12719 echo "libtool.m4: error: problem compiling CXX test program"
12722 $rm -f confest.$objext
12724 compiler_lib_search_dirs_CXX=
12725 if test -n "$compiler_lib_search_path_CXX"; then
12726 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12729 # PORTME: override above test on systems where it is broken
12730 case $host_os in
12731 interix[3-9]*)
12732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12733 # hack all around it, let's just trust "g++" to DTRT.
12734 predep_objects_CXX=
12735 postdep_objects_CXX=
12736 postdeps_CXX=
12739 linux*)
12740 case `$CC -V 2>&1 | sed 5q` in
12741 *Sun\ C*)
12742 # Sun C++ 5.9
12744 # The more standards-conforming stlport4 library is
12745 # incompatible with the Cstd library. Avoid specifying
12746 # it if it's in CXXFLAGS. Ignore libCrun as
12747 # -library=stlport4 depends on it.
12748 case " $CXX $CXXFLAGS " in
12749 *" -library=stlport4 "*)
12750 solaris_use_stlport4=yes
12752 esac
12753 if test "$solaris_use_stlport4" != yes; then
12754 postdeps_CXX='-library=Cstd -library=Crun'
12757 esac
12760 solaris*)
12761 case $cc_basename in
12762 CC*)
12763 # The more standards-conforming stlport4 library is
12764 # incompatible with the Cstd library. Avoid specifying
12765 # it if it's in CXXFLAGS. Ignore libCrun as
12766 # -library=stlport4 depends on it.
12767 case " $CXX $CXXFLAGS " in
12768 *" -library=stlport4 "*)
12769 solaris_use_stlport4=yes
12771 esac
12773 # Adding this requires a known-good setup of shared libraries for
12774 # Sun compiler versions before 5.6, else PIC objects from an old
12775 # archive will be linked into the output, leading to subtle bugs.
12776 if test "$solaris_use_stlport4" != yes; then
12777 postdeps_CXX='-library=Cstd -library=Crun'
12780 esac
12782 esac
12784 case " $postdeps_CXX " in
12785 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12786 esac
12788 lt_prog_compiler_wl_CXX=
12789 lt_prog_compiler_pic_CXX=
12790 lt_prog_compiler_static_CXX=
12792 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12795 # C++ specific cases for pic, static, wl, etc.
12796 if test "$GXX" = yes; then
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 lt_prog_compiler_static_CXX='-static'
12800 case $host_os in
12801 aix*)
12802 # All AIX code is PIC.
12803 if test "$host_cpu" = ia64; then
12804 # AIX 5 now supports IA64 processor
12805 lt_prog_compiler_static_CXX='-Bstatic'
12808 amigaos*)
12809 # FIXME: we need at least 68020 code to build shared libraries, but
12810 # adding the `-m68020' flag to GCC prevents building anything better,
12811 # like `-m68040'.
12812 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12814 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12815 # PIC is the default for these OSes.
12817 mingw* | cygwin* | os2* | pw32*)
12818 # This hack is so that the source file can tell whether it is being
12819 # built for inclusion in a dll (and should export symbols for example).
12820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12821 # (--disable-auto-import) libraries
12822 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12824 darwin* | rhapsody*)
12825 # PIC is the default on this platform
12826 # Common symbols not allowed in MH_DYLIB files
12827 lt_prog_compiler_pic_CXX='-fno-common'
12829 *djgpp*)
12830 # DJGPP does not support shared libraries at all
12831 lt_prog_compiler_pic_CXX=
12833 interix[3-9]*)
12834 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12835 # Instead, we relocate shared libraries at runtime.
12837 sysv4*MP*)
12838 if test -d /usr/nec; then
12839 lt_prog_compiler_pic_CXX=-Kconform_pic
12842 hpux*)
12843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12844 # not for PA HP-UX.
12845 case $host_cpu in
12846 hppa*64*|ia64*)
12849 lt_prog_compiler_pic_CXX='-fPIC'
12851 esac
12854 lt_prog_compiler_pic_CXX='-fPIC'
12856 esac
12857 else
12858 case $host_os in
12859 aix[4-9]*)
12860 # All AIX code is PIC.
12861 if test "$host_cpu" = ia64; then
12862 # AIX 5 now supports IA64 processor
12863 lt_prog_compiler_static_CXX='-Bstatic'
12864 else
12865 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12868 chorus*)
12869 case $cc_basename in
12870 cxch68*)
12871 # Green Hills C++ Compiler
12872 # _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"
12874 esac
12876 darwin*)
12877 # PIC is the default on this platform
12878 # Common symbols not allowed in MH_DYLIB files
12879 case $cc_basename in
12880 xlc*)
12881 lt_prog_compiler_pic_CXX='-qnocommon'
12882 lt_prog_compiler_wl_CXX='-Wl,'
12884 esac
12886 dgux*)
12887 case $cc_basename in
12888 ec++*)
12889 lt_prog_compiler_pic_CXX='-KPIC'
12891 ghcx*)
12892 # Green Hills C++ Compiler
12893 lt_prog_compiler_pic_CXX='-pic'
12897 esac
12899 freebsd* | dragonfly*)
12900 # FreeBSD uses GNU C++
12902 hpux9* | hpux10* | hpux11*)
12903 case $cc_basename in
12904 CC*)
12905 lt_prog_compiler_wl_CXX='-Wl,'
12906 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12907 if test "$host_cpu" != ia64; then
12908 lt_prog_compiler_pic_CXX='+Z'
12911 aCC*)
12912 lt_prog_compiler_wl_CXX='-Wl,'
12913 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12914 case $host_cpu in
12915 hppa*64*|ia64*)
12916 # +Z the default
12919 lt_prog_compiler_pic_CXX='+Z'
12921 esac
12925 esac
12927 interix*)
12928 # This is c89, which is MS Visual C++ (no shared libs)
12929 # Anyone wants to do a port?
12931 irix5* | irix6* | nonstopux*)
12932 case $cc_basename in
12933 CC*)
12934 lt_prog_compiler_wl_CXX='-Wl,'
12935 lt_prog_compiler_static_CXX='-non_shared'
12936 # CC pic flag -KPIC is the default.
12940 esac
12942 linux* | k*bsd*-gnu)
12943 case $cc_basename in
12944 KCC*)
12945 # KAI C++ Compiler
12946 lt_prog_compiler_wl_CXX='--backend -Wl,'
12947 lt_prog_compiler_pic_CXX='-fPIC'
12949 icpc* | ecpc*)
12950 # Intel C++
12951 lt_prog_compiler_wl_CXX='-Wl,'
12952 lt_prog_compiler_pic_CXX='-KPIC'
12953 lt_prog_compiler_static_CXX='-static'
12955 pgCC* | pgcpp*)
12956 # Portland Group C++ compiler.
12957 lt_prog_compiler_wl_CXX='-Wl,'
12958 lt_prog_compiler_pic_CXX='-fpic'
12959 lt_prog_compiler_static_CXX='-Bstatic'
12961 cxx*)
12962 # Compaq C++
12963 # Make sure the PIC flag is empty. It appears that all Alpha
12964 # Linux and Compaq Tru64 Unix objects are PIC.
12965 lt_prog_compiler_pic_CXX=
12966 lt_prog_compiler_static_CXX='-non_shared'
12969 case `$CC -V 2>&1 | sed 5q` in
12970 *Sun\ C*)
12971 # Sun C++ 5.9
12972 lt_prog_compiler_pic_CXX='-KPIC'
12973 lt_prog_compiler_static_CXX='-Bstatic'
12974 lt_prog_compiler_wl_CXX='-Qoption ld '
12976 esac
12978 esac
12980 lynxos*)
12982 m88k*)
12984 mvs*)
12985 case $cc_basename in
12986 cxx*)
12987 lt_prog_compiler_pic_CXX='-W c,exportall'
12991 esac
12993 netbsd*)
12995 osf3* | osf4* | osf5*)
12996 case $cc_basename in
12997 KCC*)
12998 lt_prog_compiler_wl_CXX='--backend -Wl,'
13000 RCC*)
13001 # Rational C++ 2.4.1
13002 lt_prog_compiler_pic_CXX='-pic'
13004 cxx*)
13005 # Digital/Compaq C++
13006 lt_prog_compiler_wl_CXX='-Wl,'
13007 # Make sure the PIC flag is empty. It appears that all Alpha
13008 # Linux and Compaq Tru64 Unix objects are PIC.
13009 lt_prog_compiler_pic_CXX=
13010 lt_prog_compiler_static_CXX='-non_shared'
13014 esac
13016 psos*)
13018 solaris*)
13019 case $cc_basename in
13020 CC*)
13021 # Sun C++ 4.2, 5.x and Centerline C++
13022 lt_prog_compiler_pic_CXX='-KPIC'
13023 lt_prog_compiler_static_CXX='-Bstatic'
13024 lt_prog_compiler_wl_CXX='-Qoption ld '
13026 gcx*)
13027 # Green Hills C++ Compiler
13028 lt_prog_compiler_pic_CXX='-PIC'
13032 esac
13034 sunos4*)
13035 case $cc_basename in
13036 CC*)
13037 # Sun C++ 4.x
13038 lt_prog_compiler_pic_CXX='-pic'
13039 lt_prog_compiler_static_CXX='-Bstatic'
13041 lcc*)
13042 # Lucid
13043 lt_prog_compiler_pic_CXX='-pic'
13047 esac
13049 tandem*)
13050 case $cc_basename in
13051 NCC*)
13052 # NonStop-UX NCC 3.20
13053 lt_prog_compiler_pic_CXX='-KPIC'
13057 esac
13059 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13060 case $cc_basename in
13061 CC*)
13062 lt_prog_compiler_wl_CXX='-Wl,'
13063 lt_prog_compiler_pic_CXX='-KPIC'
13064 lt_prog_compiler_static_CXX='-Bstatic'
13066 esac
13068 vxworks*)
13071 lt_prog_compiler_can_build_shared_CXX=no
13073 esac
13076 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13077 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13080 # Check to make sure the PIC flag actually works.
13082 if test -n "$lt_prog_compiler_pic_CXX"; then
13084 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13085 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13086 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13087 $as_echo_n "(cached) " >&6
13088 else
13089 lt_cv_prog_compiler_pic_works_CXX=no
13090 ac_outfile=conftest.$ac_objext
13091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13092 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13093 # Insert the option either (1) after the last *FLAGS variable, or
13094 # (2) before a word containing "conftest.", or (3) at the end.
13095 # Note that $ac_compile itself does not contain backslashes and begins
13096 # with a dollar sign (not a hyphen), so the echo should work correctly.
13097 # The option is referenced via a variable to avoid confusing sed.
13098 lt_compile=`echo "$ac_compile" | $SED \
13099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13101 -e 's:$: $lt_compiler_flag:'`
13102 (eval echo "\"\$as_me:13102: $lt_compile\"" >&5)
13103 (eval "$lt_compile" 2>conftest.err)
13104 ac_status=$?
13105 cat conftest.err >&5
13106 echo "$as_me:13106: \$? = $ac_status" >&5
13107 if (exit $ac_status) && test -s "$ac_outfile"; then
13108 # The compiler can only warn and ignore the option if not recognized
13109 # So say no if there are warnings other than the usual output.
13110 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13113 lt_cv_prog_compiler_pic_works_CXX=yes
13116 $rm conftest*
13119 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13120 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13122 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13123 case $lt_prog_compiler_pic_CXX in
13124 "" | " "*) ;;
13125 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13126 esac
13127 else
13128 lt_prog_compiler_pic_CXX=
13129 lt_prog_compiler_can_build_shared_CXX=no
13133 case $host_os in
13134 # For platforms which do not support PIC, -DPIC is meaningless:
13135 *djgpp*)
13136 lt_prog_compiler_pic_CXX=
13139 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13141 esac
13144 # Check to make sure the static flag actually works.
13146 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13147 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13148 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13149 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13150 $as_echo_n "(cached) " >&6
13151 else
13152 lt_cv_prog_compiler_static_works_CXX=no
13153 save_LDFLAGS="$LDFLAGS"
13154 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13157 # The linker can only warn and ignore the option if not recognized
13158 # So say no if there are warnings
13159 if test -s conftest.err; then
13160 # Append any errors to the config.log.
13161 cat conftest.err 1>&5
13162 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13164 if diff conftest.exp conftest.er2 >/dev/null; then
13165 lt_cv_prog_compiler_static_works_CXX=yes
13167 else
13168 lt_cv_prog_compiler_static_works_CXX=yes
13171 $rm -r conftest*
13172 LDFLAGS="$save_LDFLAGS"
13175 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13176 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13178 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13180 else
13181 lt_prog_compiler_static_CXX=
13185 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13187 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13188 $as_echo_n "(cached) " >&6
13189 else
13190 lt_cv_prog_compiler_c_o_CXX=no
13191 $rm -r conftest 2>/dev/null
13192 mkdir conftest
13193 cd conftest
13194 mkdir out
13195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197 lt_compiler_flag="-o out/conftest2.$ac_objext"
13198 # Insert the option either (1) after the last *FLAGS variable, or
13199 # (2) before a word containing "conftest.", or (3) at the end.
13200 # Note that $ac_compile itself does not contain backslashes and begins
13201 # with a dollar sign (not a hyphen), so the echo should work correctly.
13202 lt_compile=`echo "$ac_compile" | $SED \
13203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13205 -e 's:$: $lt_compiler_flag:'`
13206 (eval echo "\"\$as_me:13206: $lt_compile\"" >&5)
13207 (eval "$lt_compile" 2>out/conftest.err)
13208 ac_status=$?
13209 cat out/conftest.err >&5
13210 echo "$as_me:13210: \$? = $ac_status" >&5
13211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13212 then
13213 # The compiler can only warn and ignore the option if not recognized
13214 # So say no if there are warnings
13215 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13218 lt_cv_prog_compiler_c_o_CXX=yes
13221 chmod u+w . 2>&5
13222 $rm conftest*
13223 # SGI C++ compiler will create directory out/ii_files/ for
13224 # template instantiation
13225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13226 $rm out/* && rmdir out
13227 cd ..
13228 rmdir conftest
13229 $rm conftest*
13232 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13233 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13236 hard_links="nottested"
13237 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13238 # do not overwrite the value of need_locks provided by the user
13239 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13240 $as_echo_n "checking if we can lock with hard links... " >&6; }
13241 hard_links=yes
13242 $rm conftest*
13243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13244 touch conftest.a
13245 ln conftest.a conftest.b 2>&5 || hard_links=no
13246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13247 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13248 $as_echo "$hard_links" >&6; }
13249 if test "$hard_links" = no; then
13250 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13251 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13252 need_locks=warn
13254 else
13255 need_locks=no
13258 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13259 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13261 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13262 case $host_os in
13263 aix[4-9]*)
13264 # If we're using GNU nm, then we don't want the "-C" option.
13265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13266 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13267 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'
13268 else
13269 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'
13272 pw32*)
13273 export_symbols_cmds_CXX="$ltdll_cmds"
13275 cygwin* | mingw*)
13276 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'
13279 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13281 esac
13282 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13284 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13285 $as_echo "$ld_shlibs_CXX" >&6; }
13286 test "$ld_shlibs_CXX" = no && can_build_shared=no
13289 # Do we need to explicitly link libc?
13291 case "x$archive_cmds_need_lc_CXX" in
13292 x|xyes)
13293 # Assume -lc should be added
13294 archive_cmds_need_lc_CXX=yes
13296 if test "$enable_shared" = yes && test "$GCC" = yes; then
13297 case $archive_cmds_CXX in
13298 *'~'*)
13299 # FIXME: we may have to deal with multi-command sequences.
13301 '$CC '*)
13302 # Test whether the compiler implicitly links with -lc since on some
13303 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13304 # to ld, don't add -lc before -lgcc.
13305 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13306 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13307 $rm conftest*
13308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>&5
13312 ac_status=$?
13313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } 2>conftest.err; then
13315 soname=conftest
13316 lib=conftest
13317 libobjs=conftest.$ac_objext
13318 deplibs=
13319 wl=$lt_prog_compiler_wl_CXX
13320 pic_flag=$lt_prog_compiler_pic_CXX
13321 compiler_flags=-v
13322 linker_flags=-v
13323 verstring=
13324 output_objdir=.
13325 libname=conftest
13326 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13327 allow_undefined_flag_CXX=
13328 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13329 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }
13333 then
13334 archive_cmds_need_lc_CXX=no
13335 else
13336 archive_cmds_need_lc_CXX=yes
13338 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13339 else
13340 cat conftest.err 1>&5
13342 $rm conftest*
13343 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13344 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13346 esac
13349 esac
13351 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13353 library_names_spec=
13354 libname_spec='lib$name'
13355 soname_spec=
13356 shrext_cmds=".so"
13357 postinstall_cmds=
13358 postuninstall_cmds=
13359 finish_cmds=
13360 finish_eval=
13361 shlibpath_var=
13362 shlibpath_overrides_runpath=unknown
13363 version_type=none
13364 dynamic_linker="$host_os ld.so"
13365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13367 need_lib_prefix=unknown
13368 hardcode_into_libs=no
13370 # when you set need_version to no, make sure it does not cause -set_version
13371 # flags to be left without arguments
13372 need_version=unknown
13374 case $host_os in
13375 aix3*)
13376 version_type=linux
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13378 shlibpath_var=LIBPATH
13380 # AIX 3 has no versioning support, so we append a major version to the name.
13381 soname_spec='${libname}${release}${shared_ext}$major'
13384 aix[4-9]*)
13385 version_type=linux
13386 need_lib_prefix=no
13387 need_version=no
13388 hardcode_into_libs=yes
13389 if test "$host_cpu" = ia64; then
13390 # AIX 5 supports IA64
13391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 else
13394 # With GCC up to 2.95.x, collect2 would create an import file
13395 # for dependence libraries. The import file would start with
13396 # the line `#! .'. This would cause the generated library to
13397 # depend on `.', always an invalid library. This was fixed in
13398 # development snapshots of GCC prior to 3.0.
13399 case $host_os in
13400 aix4 | aix4.[01] | aix4.[01].*)
13401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13402 echo ' yes '
13403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13405 else
13406 can_build_shared=no
13409 esac
13410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13411 # soname into executable. Probably we can add versioning support to
13412 # collect2, so additional links can be useful in future.
13413 if test "$aix_use_runtimelinking" = yes; then
13414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13415 # instead of lib<name>.a to let people know that these are not
13416 # typical AIX shared libraries.
13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 else
13419 # We preserve .a as extension for shared libraries through AIX4.2
13420 # and later when we are not doing run time linking.
13421 library_names_spec='${libname}${release}.a $libname.a'
13422 soname_spec='${libname}${release}${shared_ext}$major'
13424 shlibpath_var=LIBPATH
13428 amigaos*)
13429 library_names_spec='$libname.ixlibrary $libname.a'
13430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13431 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'
13434 beos*)
13435 library_names_spec='${libname}${shared_ext}'
13436 dynamic_linker="$host_os ld.so"
13437 shlibpath_var=LIBRARY_PATH
13440 bsdi[45]*)
13441 version_type=linux
13442 need_version=no
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13449 # the default ld.so.conf also contains /usr/contrib/lib and
13450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13451 # libtool to hard-code these into programs
13454 cygwin* | mingw* | pw32*)
13455 version_type=windows
13456 shrext_cmds=".dll"
13457 need_version=no
13458 need_lib_prefix=no
13460 case $GCC,$host_os in
13461 yes,cygwin* | yes,mingw* | yes,pw32*)
13462 library_names_spec='$libname.dll.a'
13463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13464 postinstall_cmds='base_file=`basename \${file}`~
13465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13466 dldir=$destdir/`dirname \$dlpath`~
13467 test -d \$dldir || mkdir -p \$dldir~
13468 $install_prog $dir/$dlname \$dldir/$dlname~
13469 chmod a+x \$dldir/$dlname'
13470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13471 dlpath=$dir/\$dldll~
13472 $rm \$dlpath'
13473 shlibpath_overrides_runpath=yes
13475 case $host_os in
13476 cygwin*)
13477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13478 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13479 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13481 mingw*)
13482 # MinGW DLLs use traditional 'lib' prefix
13483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13484 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13485 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13486 # It is most probably a Windows format PATH printed by
13487 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13488 # path with ; separators, and with drive letters. We can handle the
13489 # drive letters (cygwin fileutils understands them), so leave them,
13490 # especially as we might pass files found there to a mingw objdump,
13491 # which wouldn't understand a cygwinified path. Ahh.
13492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13493 else
13494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13497 pw32*)
13498 # pw32 DLLs use 'pw' prefix rather than 'lib'
13499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13501 esac
13505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13507 esac
13508 dynamic_linker='Win32 ld.exe'
13509 # FIXME: first we should search . and the directory the executable is in
13510 shlibpath_var=PATH
13513 darwin* | rhapsody*)
13514 dynamic_linker="$host_os dyld"
13515 version_type=darwin
13516 need_lib_prefix=no
13517 need_version=no
13518 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13519 soname_spec='${libname}${release}${major}$shared_ext'
13520 shlibpath_overrides_runpath=yes
13521 shlibpath_var=DYLD_LIBRARY_PATH
13522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13527 dgux*)
13528 version_type=linux
13529 need_lib_prefix=no
13530 need_version=no
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 shlibpath_var=LD_LIBRARY_PATH
13536 freebsd1*)
13537 dynamic_linker=no
13540 freebsd* | dragonfly*)
13541 # DragonFly does not have aout. When/if they implement a new
13542 # versioning mechanism, adjust this.
13543 if test -x /usr/bin/objformat; then
13544 objformat=`/usr/bin/objformat`
13545 else
13546 case $host_os in
13547 freebsd[123]*) objformat=aout ;;
13548 *) objformat=elf ;;
13549 esac
13551 version_type=freebsd-$objformat
13552 case $version_type in
13553 freebsd-elf*)
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13555 need_version=no
13556 need_lib_prefix=no
13558 freebsd-*)
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13560 need_version=yes
13562 esac
13563 shlibpath_var=LD_LIBRARY_PATH
13564 case $host_os in
13565 freebsd2*)
13566 shlibpath_overrides_runpath=yes
13568 freebsd3.[01]* | freebsdelf3.[01]*)
13569 shlibpath_overrides_runpath=yes
13570 hardcode_into_libs=yes
13572 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13573 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13574 shlibpath_overrides_runpath=no
13575 hardcode_into_libs=yes
13577 *) # from 4.6 on, and DragonFly
13578 shlibpath_overrides_runpath=yes
13579 hardcode_into_libs=yes
13581 esac
13584 gnu*)
13585 version_type=linux
13586 need_lib_prefix=no
13587 need_version=no
13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13589 soname_spec='${libname}${release}${shared_ext}$major'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 hardcode_into_libs=yes
13594 hpux9* | hpux10* | hpux11*)
13595 # Give a soname corresponding to the major version so that dld.sl refuses to
13596 # link against other versions.
13597 version_type=sunos
13598 need_lib_prefix=no
13599 need_version=no
13600 case $host_cpu in
13601 ia64*)
13602 shrext_cmds='.so'
13603 hardcode_into_libs=yes
13604 dynamic_linker="$host_os dld.so"
13605 shlibpath_var=LD_LIBRARY_PATH
13606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 if test "X$HPUX_IA64_MODE" = X32; then
13610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13611 else
13612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13616 hppa*64*)
13617 shrext_cmds='.sl'
13618 hardcode_into_libs=yes
13619 dynamic_linker="$host_os dld.sl"
13620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13628 shrext_cmds='.sl'
13629 dynamic_linker="$host_os dld.sl"
13630 shlibpath_var=SHLIB_PATH
13631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13635 esac
13636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13637 postinstall_cmds='chmod 555 $lib'
13640 interix[3-9]*)
13641 version_type=linux
13642 need_lib_prefix=no
13643 need_version=no
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13645 soname_spec='${libname}${release}${shared_ext}$major'
13646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13647 shlibpath_var=LD_LIBRARY_PATH
13648 shlibpath_overrides_runpath=no
13649 hardcode_into_libs=yes
13652 irix5* | irix6* | nonstopux*)
13653 case $host_os in
13654 nonstopux*) version_type=nonstopux ;;
13656 if test "$lt_cv_prog_gnu_ld" = yes; then
13657 version_type=linux
13658 else
13659 version_type=irix
13660 fi ;;
13661 esac
13662 need_lib_prefix=no
13663 need_version=no
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13666 case $host_os in
13667 irix5* | nonstopux*)
13668 libsuff= shlibsuff=
13671 case $LD in # libtool.m4 will add one of these switches to LD
13672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13673 libsuff= shlibsuff= libmagic=32-bit;;
13674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13675 libsuff=32 shlibsuff=N32 libmagic=N32;;
13676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13678 *) libsuff= shlibsuff= libmagic=never-match;;
13679 esac
13681 esac
13682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13683 shlibpath_overrides_runpath=no
13684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13686 hardcode_into_libs=yes
13689 # No shared lib support for Linux oldld, aout, or coff.
13690 linux*oldld* | linux*aout* | linux*coff*)
13691 dynamic_linker=no
13694 # This must be Linux ELF.
13695 linux* | k*bsd*-gnu)
13696 version_type=linux
13697 need_lib_prefix=no
13698 need_version=no
13699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700 soname_spec='${libname}${release}${shared_ext}$major'
13701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=no
13704 # This implies no fast_install, which is unacceptable.
13705 # Some rework will be needed to allow for fast_install
13706 # before this can be enabled.
13707 hardcode_into_libs=yes
13708 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13709 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13711 # Append ld.so.conf contents to the search path
13712 if test -f /etc/ld.so.conf; then
13713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13714 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13717 # We used to test for /lib/ld.so.1 and disable shared libraries on
13718 # powerpc, because MkLinux only supported shared libraries with the
13719 # GNU dynamic linker. Since this was broken with cross compilers,
13720 # most powerpc-linux boxes support dynamic linking these days and
13721 # people can always --disable-shared, the test was removed, and we
13722 # assume the GNU/Linux dynamic linker is in use.
13723 dynamic_linker='GNU/Linux ld.so'
13726 netbsd*)
13727 version_type=sunos
13728 need_lib_prefix=no
13729 need_version=no
13730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13733 dynamic_linker='NetBSD (a.out) ld.so'
13734 else
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 dynamic_linker='NetBSD ld.elf_so'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=yes
13741 hardcode_into_libs=yes
13744 newsos6)
13745 version_type=linux
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 shlibpath_overrides_runpath=yes
13751 nto-qnx*)
13752 version_type=linux
13753 need_lib_prefix=no
13754 need_version=no
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes
13761 openbsd*)
13762 version_type=sunos
13763 sys_lib_dlsearch_path_spec="/usr/lib"
13764 need_lib_prefix=no
13765 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13766 case $host_os in
13767 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13768 *) need_version=no ;;
13769 esac
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13774 case $host_os in
13775 openbsd2.[89] | openbsd2.[89].*)
13776 shlibpath_overrides_runpath=no
13779 shlibpath_overrides_runpath=yes
13781 esac
13782 else
13783 shlibpath_overrides_runpath=yes
13787 os2*)
13788 libname_spec='$name'
13789 shrext_cmds=".dll"
13790 need_lib_prefix=no
13791 library_names_spec='$libname${shared_ext} $libname.a'
13792 dynamic_linker='OS/2 ld.exe'
13793 shlibpath_var=LIBPATH
13796 osf3* | osf4* | osf5*)
13797 version_type=osf
13798 need_lib_prefix=no
13799 need_version=no
13800 soname_spec='${libname}${release}${shared_ext}$major'
13801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13804 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13807 rdos*)
13808 dynamic_linker=no
13811 solaris*)
13812 version_type=linux
13813 need_lib_prefix=no
13814 need_version=no
13815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 shlibpath_var=LD_LIBRARY_PATH
13818 shlibpath_overrides_runpath=yes
13819 hardcode_into_libs=yes
13820 # ldd complains unless libraries are executable
13821 postinstall_cmds='chmod +x $lib'
13824 sunos4*)
13825 version_type=sunos
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13830 if test "$with_gnu_ld" = yes; then
13831 need_lib_prefix=no
13833 need_version=yes
13836 sysv4 | sysv4.3*)
13837 version_type=linux
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839 soname_spec='${libname}${release}${shared_ext}$major'
13840 shlibpath_var=LD_LIBRARY_PATH
13841 case $host_vendor in
13842 sni)
13843 shlibpath_overrides_runpath=no
13844 need_lib_prefix=no
13845 export_dynamic_flag_spec='${wl}-Blargedynsym'
13846 runpath_var=LD_RUN_PATH
13848 siemens)
13849 need_lib_prefix=no
13851 motorola)
13852 need_lib_prefix=no
13853 need_version=no
13854 shlibpath_overrides_runpath=no
13855 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13857 esac
13860 sysv4*MP*)
13861 if test -d /usr/nec ;then
13862 version_type=linux
13863 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13864 soname_spec='$libname${shared_ext}.$major'
13865 shlibpath_var=LD_LIBRARY_PATH
13869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13870 version_type=freebsd-elf
13871 need_lib_prefix=no
13872 need_version=no
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13874 soname_spec='${libname}${release}${shared_ext}$major'
13875 shlibpath_var=LD_LIBRARY_PATH
13876 hardcode_into_libs=yes
13877 if test "$with_gnu_ld" = yes; then
13878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13879 shlibpath_overrides_runpath=no
13880 else
13881 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13882 shlibpath_overrides_runpath=yes
13883 case $host_os in
13884 sco3.2v5*)
13885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13887 esac
13889 sys_lib_dlsearch_path_spec='/usr/lib'
13892 uts4*)
13893 version_type=linux
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 soname_spec='${libname}${release}${shared_ext}$major'
13896 shlibpath_var=LD_LIBRARY_PATH
13900 dynamic_linker=no
13902 esac
13903 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13904 $as_echo "$dynamic_linker" >&6; }
13905 test "$dynamic_linker" = no && can_build_shared=no
13907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13908 $as_echo_n "(cached) " >&6
13909 else
13910 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13914 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13915 $as_echo_n "(cached) " >&6
13916 else
13917 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13923 if test "$GCC" = yes; then
13924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13927 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13928 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13929 hardcode_action_CXX=
13930 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13931 test -n "$runpath_var_CXX" || \
13932 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13934 # We can hardcode non-existant directories.
13935 if test "$hardcode_direct_CXX" != no &&
13936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13937 # have to relink, otherwise we might link with an installed library
13938 # when we should be linking with a yet-to-be-installed one
13939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13940 test "$hardcode_minus_L_CXX" != no; then
13941 # Linking always hardcodes the temporary library directory.
13942 hardcode_action_CXX=relink
13943 else
13944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13945 hardcode_action_CXX=immediate
13947 else
13948 # We cannot hardcode anything, or else we can only hardcode existing
13949 # directories.
13950 hardcode_action_CXX=unsupported
13952 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13953 $as_echo "$hardcode_action_CXX" >&6; }
13955 if test "$hardcode_action_CXX" = relink; then
13956 # Fast installation is not supported
13957 enable_fast_install=no
13958 elif test "$shlibpath_overrides_runpath" = yes ||
13959 test "$enable_shared" = no; then
13960 # Fast installation is not necessary
13961 enable_fast_install=needless
13965 # The else clause should only fire when bootstrapping the
13966 # libtool distribution, otherwise you forgot to ship ltmain.sh
13967 # with your package, and you will get complaints that there are
13968 # no rules to generate ltmain.sh.
13969 if test -f "$ltmain"; then
13970 # See if we are running on zsh, and set the options which allow our commands through
13971 # without removal of \ escapes.
13972 if test -n "${ZSH_VERSION+set}" ; then
13973 setopt NO_GLOB_SUBST
13975 # Now quote all the things that may contain metacharacters while being
13976 # careful not to overquote the AC_SUBSTed values. We take copies of the
13977 # variables and quote the copies for generation of the libtool script.
13978 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13979 SED SHELL STRIP \
13980 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13981 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13982 deplibs_check_method reload_flag reload_cmds need_locks \
13983 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13984 lt_cv_sys_global_symbol_to_c_name_address \
13985 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13986 old_postinstall_cmds old_postuninstall_cmds \
13987 compiler_CXX \
13988 CC_CXX \
13989 LD_CXX \
13990 lt_prog_compiler_wl_CXX \
13991 lt_prog_compiler_pic_CXX \
13992 lt_prog_compiler_static_CXX \
13993 lt_prog_compiler_no_builtin_flag_CXX \
13994 export_dynamic_flag_spec_CXX \
13995 thread_safe_flag_spec_CXX \
13996 whole_archive_flag_spec_CXX \
13997 enable_shared_with_static_runtimes_CXX \
13998 old_archive_cmds_CXX \
13999 old_archive_from_new_cmds_CXX \
14000 predep_objects_CXX \
14001 postdep_objects_CXX \
14002 predeps_CXX \
14003 postdeps_CXX \
14004 compiler_lib_search_path_CXX \
14005 compiler_lib_search_dirs_CXX \
14006 archive_cmds_CXX \
14007 archive_expsym_cmds_CXX \
14008 postinstall_cmds_CXX \
14009 postuninstall_cmds_CXX \
14010 old_archive_from_expsyms_cmds_CXX \
14011 allow_undefined_flag_CXX \
14012 no_undefined_flag_CXX \
14013 export_symbols_cmds_CXX \
14014 hardcode_libdir_flag_spec_CXX \
14015 hardcode_libdir_flag_spec_ld_CXX \
14016 hardcode_libdir_separator_CXX \
14017 hardcode_automatic_CXX \
14018 module_cmds_CXX \
14019 module_expsym_cmds_CXX \
14020 lt_cv_prog_compiler_c_o_CXX \
14021 fix_srcfile_path_CXX \
14022 exclude_expsyms_CXX \
14023 include_expsyms_CXX; do
14025 case $var in
14026 old_archive_cmds_CXX | \
14027 old_archive_from_new_cmds_CXX | \
14028 archive_cmds_CXX | \
14029 archive_expsym_cmds_CXX | \
14030 module_cmds_CXX | \
14031 module_expsym_cmds_CXX | \
14032 old_archive_from_expsyms_cmds_CXX | \
14033 export_symbols_cmds_CXX | \
14034 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14035 postinstall_cmds | postuninstall_cmds | \
14036 old_postinstall_cmds | old_postuninstall_cmds | \
14037 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14038 # Double-quote double-evaled strings.
14039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14042 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14044 esac
14045 done
14047 case $lt_echo in
14048 *'\$0 --fallback-echo"')
14049 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14051 esac
14053 cfgfile="$ofile"
14055 cat <<__EOF__ >> "$cfgfile"
14056 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14058 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14060 # Shell to use when invoking shell scripts.
14061 SHELL=$lt_SHELL
14063 # Whether or not to build shared libraries.
14064 build_libtool_libs=$enable_shared
14066 # Whether or not to build static libraries.
14067 build_old_libs=$enable_static
14069 # Whether or not to add -lc for building shared libraries.
14070 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14072 # Whether or not to disallow shared libs when runtime libs are static
14073 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14075 # Whether or not to optimize for fast installation.
14076 fast_install=$enable_fast_install
14078 # The host system.
14079 host_alias=$host_alias
14080 host=$host
14081 host_os=$host_os
14083 # The build system.
14084 build_alias=$build_alias
14085 build=$build
14086 build_os=$build_os
14088 # An echo program that does not interpret backslashes.
14089 echo=$lt_echo
14091 # The archiver.
14092 AR=$lt_AR
14093 AR_FLAGS=$lt_AR_FLAGS
14095 # A C compiler.
14096 LTCC=$lt_LTCC
14098 # LTCC compiler flags.
14099 LTCFLAGS=$lt_LTCFLAGS
14101 # A language-specific compiler.
14102 CC=$lt_compiler_CXX
14104 # Is the compiler the GNU C compiler?
14105 with_gcc=$GCC_CXX
14107 # An ERE matcher.
14108 EGREP=$lt_EGREP
14110 # The linker used to build libraries.
14111 LD=$lt_LD_CXX
14113 # Whether we need hard or soft links.
14114 LN_S=$lt_LN_S
14116 # A BSD-compatible nm program.
14117 NM=$lt_NM
14119 # A symbol stripping program
14120 STRIP=$lt_STRIP
14122 # Used to examine libraries when file_magic_cmd begins "file"
14123 MAGIC_CMD=$MAGIC_CMD
14125 # Used on cygwin: DLL creation program.
14126 DLLTOOL="$DLLTOOL"
14128 # Used on cygwin: object dumper.
14129 OBJDUMP="$OBJDUMP"
14131 # Used on cygwin: assembler.
14132 AS="$AS"
14134 # The name of the directory that contains temporary libtool files.
14135 objdir=$objdir
14137 # How to create reloadable object files.
14138 reload_flag=$lt_reload_flag
14139 reload_cmds=$lt_reload_cmds
14141 # How to pass a linker flag through the compiler.
14142 wl=$lt_lt_prog_compiler_wl_CXX
14144 # Object file suffix (normally "o").
14145 objext="$ac_objext"
14147 # Old archive suffix (normally "a").
14148 libext="$libext"
14150 # Shared library suffix (normally ".so").
14151 shrext_cmds='$shrext_cmds'
14153 # Executable file suffix (normally "").
14154 exeext="$exeext"
14156 # Additional compiler flags for building library objects.
14157 pic_flag=$lt_lt_prog_compiler_pic_CXX
14158 pic_mode=$pic_mode
14160 # What is the maximum length of a command?
14161 max_cmd_len=$lt_cv_sys_max_cmd_len
14163 # Does compiler simultaneously support -c and -o options?
14164 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14166 # Must we lock files when doing compilation?
14167 need_locks=$lt_need_locks
14169 # Do we need the lib prefix for modules?
14170 need_lib_prefix=$need_lib_prefix
14172 # Do we need a version for libraries?
14173 need_version=$need_version
14175 # Whether dlopen is supported.
14176 dlopen_support=$enable_dlopen
14178 # Whether dlopen of programs is supported.
14179 dlopen_self=$enable_dlopen_self
14181 # Whether dlopen of statically linked programs is supported.
14182 dlopen_self_static=$enable_dlopen_self_static
14184 # Compiler flag to prevent dynamic linking.
14185 link_static_flag=$lt_lt_prog_compiler_static_CXX
14187 # Compiler flag to turn off builtin functions.
14188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14190 # Compiler flag to allow reflexive dlopens.
14191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14193 # Compiler flag to generate shared objects directly from archives.
14194 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14196 # Compiler flag to generate thread-safe objects.
14197 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14199 # Library versioning type.
14200 version_type=$version_type
14202 # Format of library name prefix.
14203 libname_spec=$lt_libname_spec
14205 # List of archive names. First name is the real one, the rest are links.
14206 # The last name is the one that the linker finds with -lNAME.
14207 library_names_spec=$lt_library_names_spec
14209 # The coded name of the library, if different from the real name.
14210 soname_spec=$lt_soname_spec
14212 # Commands used to build and install an old-style archive.
14213 RANLIB=$lt_RANLIB
14214 old_archive_cmds=$lt_old_archive_cmds_CXX
14215 old_postinstall_cmds=$lt_old_postinstall_cmds
14216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14218 # Create an old-style archive from a shared archive.
14219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14221 # Create a temporary old-style archive to link instead of a shared archive.
14222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14224 # Commands used to build and install a shared archive.
14225 archive_cmds=$lt_archive_cmds_CXX
14226 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14227 postinstall_cmds=$lt_postinstall_cmds
14228 postuninstall_cmds=$lt_postuninstall_cmds
14230 # Commands used to build a loadable module (assumed same as above if empty)
14231 module_cmds=$lt_module_cmds_CXX
14232 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14234 # Commands to strip libraries.
14235 old_striplib=$lt_old_striplib
14236 striplib=$lt_striplib
14238 # Dependencies to place before the objects being linked to create a
14239 # shared library.
14240 predep_objects=$lt_predep_objects_CXX
14242 # Dependencies to place after the objects being linked to create a
14243 # shared library.
14244 postdep_objects=$lt_postdep_objects_CXX
14246 # Dependencies to place before the objects being linked to create a
14247 # shared library.
14248 predeps=$lt_predeps_CXX
14250 # Dependencies to place after the objects being linked to create a
14251 # shared library.
14252 postdeps=$lt_postdeps_CXX
14254 # The directories searched by this compiler when creating a shared
14255 # library
14256 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14258 # The library search path used internally by the compiler when linking
14259 # a shared library.
14260 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14262 # Method to check whether dependent libraries are shared objects.
14263 deplibs_check_method=$lt_deplibs_check_method
14265 # Command to use when deplibs_check_method == file_magic.
14266 file_magic_cmd=$lt_file_magic_cmd
14268 # Flag that allows shared libraries with undefined symbols to be built.
14269 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14271 # Flag that forces no undefined symbols.
14272 no_undefined_flag=$lt_no_undefined_flag_CXX
14274 # Commands used to finish a libtool library installation in a directory.
14275 finish_cmds=$lt_finish_cmds
14277 # Same as above, but a single script fragment to be evaled but not shown.
14278 finish_eval=$lt_finish_eval
14280 # Take the output of nm and produce a listing of raw symbols and C names.
14281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14283 # Transform the output of nm in a proper C declaration
14284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14286 # Transform the output of nm in a C name address pair
14287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14289 # This is the shared library runtime path variable.
14290 runpath_var=$runpath_var
14292 # This is the shared library path variable.
14293 shlibpath_var=$shlibpath_var
14295 # Is shlibpath searched before the hard-coded library search path?
14296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14298 # How to hardcode a shared library path into an executable.
14299 hardcode_action=$hardcode_action_CXX
14301 # Whether we should hardcode library paths into libraries.
14302 hardcode_into_libs=$hardcode_into_libs
14304 # Flag to hardcode \$libdir into a binary during linking.
14305 # This must work even if \$libdir does not exist.
14306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14308 # If ld is used when linking, flag to hardcode \$libdir into
14309 # a binary during linking. This must work even if \$libdir does
14310 # not exist.
14311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14313 # Whether we need a single -rpath flag with a separated argument.
14314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14317 # resulting binary.
14318 hardcode_direct=$hardcode_direct_CXX
14320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14321 # resulting binary.
14322 hardcode_minus_L=$hardcode_minus_L_CXX
14324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14325 # the resulting binary.
14326 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14328 # Set to yes if building a shared library automatically hardcodes DIR into the library
14329 # and all subsequent libraries and executables linked against it.
14330 hardcode_automatic=$hardcode_automatic_CXX
14332 # Variables whose values should be saved in libtool wrapper scripts and
14333 # restored at relink time.
14334 variables_saved_for_relink="$variables_saved_for_relink"
14336 # Whether libtool must link a program against all its dependency libraries.
14337 link_all_deplibs=$link_all_deplibs_CXX
14339 # Compile-time system search path for libraries
14340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14342 # Run-time system search path for libraries
14343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14345 # Fix the shell variable \$srcfile for the compiler.
14346 fix_srcfile_path=$lt_fix_srcfile_path
14348 # Set to yes if exported symbols are required.
14349 always_export_symbols=$always_export_symbols_CXX
14351 # The commands to list exported symbols.
14352 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14354 # The commands to extract the exported symbol list from a shared archive.
14355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14357 # Symbols that should not be listed in the preloaded symbols.
14358 exclude_expsyms=$lt_exclude_expsyms_CXX
14360 # Symbols that must always be exported.
14361 include_expsyms=$lt_include_expsyms_CXX
14363 # ### END LIBTOOL TAG CONFIG: $tagname
14365 __EOF__
14368 else
14369 # If there is no Makefile yet, we rely on a make rule to execute
14370 # `config.status --recheck' to rerun these tests and create the
14371 # libtool script then.
14372 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14373 if test -f "$ltmain_in"; then
14374 test -f Makefile && make "$ltmain"
14379 ac_ext=c
14380 ac_cpp='$CPP $CPPFLAGS'
14381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14385 CC=$lt_save_CC
14386 LDCXX=$LD
14387 LD=$lt_save_LD
14388 GCC=$lt_save_GCC
14389 with_gnu_ldcxx=$with_gnu_ld
14390 with_gnu_ld=$lt_save_with_gnu_ld
14391 lt_cv_path_LDCXX=$lt_cv_path_LD
14392 lt_cv_path_LD=$lt_save_path_LD
14393 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14394 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14396 else
14397 tagname=""
14401 F77)
14402 if test -n "$F77" && test "X$F77" != "Xno"; then
14404 ac_ext=f
14405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14410 archive_cmds_need_lc_F77=no
14411 allow_undefined_flag_F77=
14412 always_export_symbols_F77=no
14413 archive_expsym_cmds_F77=
14414 export_dynamic_flag_spec_F77=
14415 hardcode_direct_F77=no
14416 hardcode_libdir_flag_spec_F77=
14417 hardcode_libdir_flag_spec_ld_F77=
14418 hardcode_libdir_separator_F77=
14419 hardcode_minus_L_F77=no
14420 hardcode_automatic_F77=no
14421 module_cmds_F77=
14422 module_expsym_cmds_F77=
14423 link_all_deplibs_F77=unknown
14424 old_archive_cmds_F77=$old_archive_cmds
14425 no_undefined_flag_F77=
14426 whole_archive_flag_spec_F77=
14427 enable_shared_with_static_runtimes_F77=no
14429 # Source file extension for f77 test sources.
14430 ac_ext=f
14432 # Object file extension for compiled f77 test sources.
14433 objext=o
14434 objext_F77=$objext
14436 # Code to be used in simple compile tests
14437 lt_simple_compile_test_code="\
14438 subroutine t
14439 return
14443 # Code to be used in simple link tests
14444 lt_simple_link_test_code="\
14445 program t
14449 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14451 # If no C compiler was specified, use CC.
14452 LTCC=${LTCC-"$CC"}
14454 # If no C compiler flags were specified, use CFLAGS.
14455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14457 # Allow CC to be a program name with arguments.
14458 compiler=$CC
14461 # save warnings/boilerplate of simple test code
14462 ac_outfile=conftest.$ac_objext
14463 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14465 _lt_compiler_boilerplate=`cat conftest.err`
14466 $rm conftest*
14468 ac_outfile=conftest.$ac_objext
14469 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14471 _lt_linker_boilerplate=`cat conftest.err`
14472 $rm -r conftest*
14475 # Allow CC to be a program name with arguments.
14476 lt_save_CC="$CC"
14477 CC=${F77-"f77"}
14478 compiler=$CC
14479 compiler_F77=$CC
14480 for cc_temp in $compiler""; do
14481 case $cc_temp in
14482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14484 \-*) ;;
14485 *) break;;
14486 esac
14487 done
14488 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14491 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14492 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14493 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14494 $as_echo "$can_build_shared" >&6; }
14496 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14497 $as_echo_n "checking whether to build shared libraries... " >&6; }
14498 test "$can_build_shared" = "no" && enable_shared=no
14500 # On AIX, shared libraries and static libraries use the same namespace, and
14501 # are all built from PIC.
14502 case $host_os in
14503 aix3*)
14504 test "$enable_shared" = yes && enable_static=no
14505 if test -n "$RANLIB"; then
14506 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14507 postinstall_cmds='$RANLIB $lib'
14510 aix[4-9]*)
14511 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14512 test "$enable_shared" = yes && enable_static=no
14515 esac
14516 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14517 $as_echo "$enable_shared" >&6; }
14519 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14520 $as_echo_n "checking whether to build static libraries... " >&6; }
14521 # Make sure either enable_shared or enable_static is yes.
14522 test "$enable_shared" = yes || enable_static=yes
14523 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14524 $as_echo "$enable_static" >&6; }
14526 GCC_F77="$G77"
14527 LD_F77="$LD"
14529 lt_prog_compiler_wl_F77=
14530 lt_prog_compiler_pic_F77=
14531 lt_prog_compiler_static_F77=
14533 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14534 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14536 if test "$GCC" = yes; then
14537 lt_prog_compiler_wl_F77='-Wl,'
14538 lt_prog_compiler_static_F77='-static'
14540 case $host_os in
14541 aix*)
14542 # All AIX code is PIC.
14543 if test "$host_cpu" = ia64; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static_F77='-Bstatic'
14549 amigaos*)
14550 # FIXME: we need at least 68020 code to build shared libraries, but
14551 # adding the `-m68020' flag to GCC prevents building anything better,
14552 # like `-m68040'.
14553 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14557 # PIC is the default for these OSes.
14560 mingw* | cygwin* | pw32* | os2*)
14561 # This hack is so that the source file can tell whether it is being
14562 # built for inclusion in a dll (and should export symbols for example).
14563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14564 # (--disable-auto-import) libraries
14565 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14568 darwin* | rhapsody*)
14569 # PIC is the default on this platform
14570 # Common symbols not allowed in MH_DYLIB files
14571 lt_prog_compiler_pic_F77='-fno-common'
14574 interix[3-9]*)
14575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14576 # Instead, we relocate shared libraries at runtime.
14579 msdosdjgpp*)
14580 # Just because we use GCC doesn't mean we suddenly get shared libraries
14581 # on systems that don't support them.
14582 lt_prog_compiler_can_build_shared_F77=no
14583 enable_shared=no
14586 sysv4*MP*)
14587 if test -d /usr/nec; then
14588 lt_prog_compiler_pic_F77=-Kconform_pic
14592 hpux*)
14593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14594 # not for PA HP-UX.
14595 case $host_cpu in
14596 hppa*64*|ia64*)
14597 # +Z the default
14600 lt_prog_compiler_pic_F77='-fPIC'
14602 esac
14606 lt_prog_compiler_pic_F77='-fPIC'
14608 esac
14609 else
14610 # PORTME Check for flag to pass linker flags through the system compiler.
14611 case $host_os in
14612 aix*)
14613 lt_prog_compiler_wl_F77='-Wl,'
14614 if test "$host_cpu" = ia64; then
14615 # AIX 5 now supports IA64 processor
14616 lt_prog_compiler_static_F77='-Bstatic'
14617 else
14618 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14621 darwin*)
14622 # PIC is the default on this platform
14623 # Common symbols not allowed in MH_DYLIB files
14624 case $cc_basename in
14625 xlc*)
14626 lt_prog_compiler_pic_F77='-qnocommon'
14627 lt_prog_compiler_wl_F77='-Wl,'
14629 esac
14632 mingw* | cygwin* | pw32* | os2*)
14633 # This hack is so that the source file can tell whether it is being
14634 # built for inclusion in a dll (and should export symbols for example).
14635 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14638 hpux9* | hpux10* | hpux11*)
14639 lt_prog_compiler_wl_F77='-Wl,'
14640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14641 # not for PA HP-UX.
14642 case $host_cpu in
14643 hppa*64*|ia64*)
14644 # +Z the default
14647 lt_prog_compiler_pic_F77='+Z'
14649 esac
14650 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14651 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14654 irix5* | irix6* | nonstopux*)
14655 lt_prog_compiler_wl_F77='-Wl,'
14656 # PIC (with -KPIC) is the default.
14657 lt_prog_compiler_static_F77='-non_shared'
14660 newsos6)
14661 lt_prog_compiler_pic_F77='-KPIC'
14662 lt_prog_compiler_static_F77='-Bstatic'
14665 linux* | k*bsd*-gnu)
14666 case $cc_basename in
14667 icc* | ecc*)
14668 lt_prog_compiler_wl_F77='-Wl,'
14669 lt_prog_compiler_pic_F77='-KPIC'
14670 lt_prog_compiler_static_F77='-static'
14672 pgcc* | pgf77* | pgf90* | pgf95*)
14673 # Portland Group compilers (*not* the Pentium gcc compiler,
14674 # which looks to be a dead project)
14675 lt_prog_compiler_wl_F77='-Wl,'
14676 lt_prog_compiler_pic_F77='-fpic'
14677 lt_prog_compiler_static_F77='-Bstatic'
14679 ccc*)
14680 lt_prog_compiler_wl_F77='-Wl,'
14681 # All Alpha code is PIC.
14682 lt_prog_compiler_static_F77='-non_shared'
14685 case `$CC -V 2>&1 | sed 5q` in
14686 *Sun\ C*)
14687 # Sun C 5.9
14688 lt_prog_compiler_pic_F77='-KPIC'
14689 lt_prog_compiler_static_F77='-Bstatic'
14690 lt_prog_compiler_wl_F77='-Wl,'
14692 *Sun\ F*)
14693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14694 lt_prog_compiler_pic_F77='-KPIC'
14695 lt_prog_compiler_static_F77='-Bstatic'
14696 lt_prog_compiler_wl_F77=''
14698 esac
14700 esac
14703 osf3* | osf4* | osf5*)
14704 lt_prog_compiler_wl_F77='-Wl,'
14705 # All OSF/1 code is PIC.
14706 lt_prog_compiler_static_F77='-non_shared'
14709 rdos*)
14710 lt_prog_compiler_static_F77='-non_shared'
14713 solaris*)
14714 lt_prog_compiler_pic_F77='-KPIC'
14715 lt_prog_compiler_static_F77='-Bstatic'
14716 case $cc_basename in
14717 f77* | f90* | f95*)
14718 lt_prog_compiler_wl_F77='-Qoption ld ';;
14720 lt_prog_compiler_wl_F77='-Wl,';;
14721 esac
14724 sunos4*)
14725 lt_prog_compiler_wl_F77='-Qoption ld '
14726 lt_prog_compiler_pic_F77='-PIC'
14727 lt_prog_compiler_static_F77='-Bstatic'
14730 sysv4 | sysv4.2uw2* | sysv4.3*)
14731 lt_prog_compiler_wl_F77='-Wl,'
14732 lt_prog_compiler_pic_F77='-KPIC'
14733 lt_prog_compiler_static_F77='-Bstatic'
14736 sysv4*MP*)
14737 if test -d /usr/nec ;then
14738 lt_prog_compiler_pic_F77='-Kconform_pic'
14739 lt_prog_compiler_static_F77='-Bstatic'
14743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14744 lt_prog_compiler_wl_F77='-Wl,'
14745 lt_prog_compiler_pic_F77='-KPIC'
14746 lt_prog_compiler_static_F77='-Bstatic'
14749 unicos*)
14750 lt_prog_compiler_wl_F77='-Wl,'
14751 lt_prog_compiler_can_build_shared_F77=no
14754 uts4*)
14755 lt_prog_compiler_pic_F77='-pic'
14756 lt_prog_compiler_static_F77='-Bstatic'
14760 lt_prog_compiler_can_build_shared_F77=no
14762 esac
14765 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14766 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14769 # Check to make sure the PIC flag actually works.
14771 if test -n "$lt_prog_compiler_pic_F77"; then
14773 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14774 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14775 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14777 else
14778 lt_cv_prog_compiler_pic_works_F77=no
14779 ac_outfile=conftest.$ac_objext
14780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14782 # Insert the option either (1) after the last *FLAGS variable, or
14783 # (2) before a word containing "conftest.", or (3) at the end.
14784 # Note that $ac_compile itself does not contain backslashes and begins
14785 # with a dollar sign (not a hyphen), so the echo should work correctly.
14786 # The option is referenced via a variable to avoid confusing sed.
14787 lt_compile=`echo "$ac_compile" | $SED \
14788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14790 -e 's:$: $lt_compiler_flag:'`
14791 (eval echo "\"\$as_me:14791: $lt_compile\"" >&5)
14792 (eval "$lt_compile" 2>conftest.err)
14793 ac_status=$?
14794 cat conftest.err >&5
14795 echo "$as_me:14795: \$? = $ac_status" >&5
14796 if (exit $ac_status) && test -s "$ac_outfile"; then
14797 # The compiler can only warn and ignore the option if not recognized
14798 # So say no if there are warnings other than the usual output.
14799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14802 lt_cv_prog_compiler_pic_works_F77=yes
14805 $rm conftest*
14808 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14809 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14811 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14812 case $lt_prog_compiler_pic_F77 in
14813 "" | " "*) ;;
14814 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14815 esac
14816 else
14817 lt_prog_compiler_pic_F77=
14818 lt_prog_compiler_can_build_shared_F77=no
14822 case $host_os in
14823 # For platforms which do not support PIC, -DPIC is meaningless:
14824 *djgpp*)
14825 lt_prog_compiler_pic_F77=
14828 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14830 esac
14833 # Check to make sure the static flag actually works.
14835 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14836 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14838 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14839 $as_echo_n "(cached) " >&6
14840 else
14841 lt_cv_prog_compiler_static_works_F77=no
14842 save_LDFLAGS="$LDFLAGS"
14843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14846 # The linker can only warn and ignore the option if not recognized
14847 # So say no if there are warnings
14848 if test -s conftest.err; then
14849 # Append any errors to the config.log.
14850 cat conftest.err 1>&5
14851 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14853 if diff conftest.exp conftest.er2 >/dev/null; then
14854 lt_cv_prog_compiler_static_works_F77=yes
14856 else
14857 lt_cv_prog_compiler_static_works_F77=yes
14860 $rm -r conftest*
14861 LDFLAGS="$save_LDFLAGS"
14864 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14865 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14867 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14869 else
14870 lt_prog_compiler_static_F77=
14874 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14877 $as_echo_n "(cached) " >&6
14878 else
14879 lt_cv_prog_compiler_c_o_F77=no
14880 $rm -r conftest 2>/dev/null
14881 mkdir conftest
14882 cd conftest
14883 mkdir out
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886 lt_compiler_flag="-o out/conftest2.$ac_objext"
14887 # Insert the option either (1) after the last *FLAGS variable, or
14888 # (2) before a word containing "conftest.", or (3) at the end.
14889 # Note that $ac_compile itself does not contain backslashes and begins
14890 # with a dollar sign (not a hyphen), so the echo should work correctly.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>out/conftest.err)
14897 ac_status=$?
14898 cat out/conftest.err >&5
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901 then
14902 # The compiler can only warn and ignore the option if not recognized
14903 # So say no if there are warnings
14904 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907 lt_cv_prog_compiler_c_o_F77=yes
14910 chmod u+w . 2>&5
14911 $rm conftest*
14912 # SGI C++ compiler will create directory out/ii_files/ for
14913 # template instantiation
14914 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14915 $rm out/* && rmdir out
14916 cd ..
14917 rmdir conftest
14918 $rm conftest*
14921 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14922 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14925 hard_links="nottested"
14926 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14927 # do not overwrite the value of need_locks provided by the user
14928 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14929 $as_echo_n "checking if we can lock with hard links... " >&6; }
14930 hard_links=yes
14931 $rm conftest*
14932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 touch conftest.a
14934 ln conftest.a conftest.b 2>&5 || hard_links=no
14935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14936 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14937 $as_echo "$hard_links" >&6; }
14938 if test "$hard_links" = no; then
14939 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14940 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14941 need_locks=warn
14943 else
14944 need_locks=no
14947 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14948 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14950 runpath_var=
14951 allow_undefined_flag_F77=
14952 enable_shared_with_static_runtimes_F77=no
14953 archive_cmds_F77=
14954 archive_expsym_cmds_F77=
14955 old_archive_From_new_cmds_F77=
14956 old_archive_from_expsyms_cmds_F77=
14957 export_dynamic_flag_spec_F77=
14958 whole_archive_flag_spec_F77=
14959 thread_safe_flag_spec_F77=
14960 hardcode_libdir_flag_spec_F77=
14961 hardcode_libdir_flag_spec_ld_F77=
14962 hardcode_libdir_separator_F77=
14963 hardcode_direct_F77=no
14964 hardcode_minus_L_F77=no
14965 hardcode_shlibpath_var_F77=unsupported
14966 link_all_deplibs_F77=unknown
14967 hardcode_automatic_F77=no
14968 module_cmds_F77=
14969 module_expsym_cmds_F77=
14970 always_export_symbols_F77=no
14971 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972 # include_expsyms should be a list of space-separated symbols to be *always*
14973 # included in the symbol list
14974 include_expsyms_F77=
14975 # exclude_expsyms can be an extended regexp of symbols to exclude
14976 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14977 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14978 # as well as any symbol that contains `d'.
14979 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14980 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14981 # platforms (ab)use it in PIC code, but their linkers get confused if
14982 # the symbol is explicitly referenced. Since portable code cannot
14983 # rely on this symbol name, it's probably fine to never include it in
14984 # preloaded symbol tables.
14985 # Exclude shared library initialization/finalization symbols.
14986 extract_expsyms_cmds=
14987 # Just being paranoid about ensuring that cc_basename is set.
14988 for cc_temp in $compiler""; do
14989 case $cc_temp in
14990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14992 \-*) ;;
14993 *) break;;
14994 esac
14995 done
14996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14998 case $host_os in
14999 cygwin* | mingw* | pw32*)
15000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15001 # When not using gcc, we currently assume that we are using
15002 # Microsoft Visual C++.
15003 if test "$GCC" != yes; then
15004 with_gnu_ld=no
15007 interix*)
15008 # we just hope/assume this is gcc and not c89 (= MSVC++)
15009 with_gnu_ld=yes
15011 openbsd*)
15012 with_gnu_ld=no
15014 esac
15016 ld_shlibs_F77=yes
15017 if test "$with_gnu_ld" = yes; then
15018 # If archive_cmds runs LD, not CC, wlarc should be empty
15019 wlarc='${wl}'
15021 # Set some defaults for GNU ld with shared library support. These
15022 # are reset later if shared libraries are not supported. Putting them
15023 # here allows them to be overridden if necessary.
15024 runpath_var=LD_RUN_PATH
15025 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15026 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15027 # ancient GNU ld didn't support --whole-archive et. al.
15028 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15029 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15030 else
15031 whole_archive_flag_spec_F77=
15033 supports_anon_versioning=no
15034 case `$LD -v 2>/dev/null` in
15035 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15036 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15037 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15038 *\ 2.11.*) ;; # other 2.11 versions
15039 *) supports_anon_versioning=yes ;;
15040 esac
15042 # See if GNU ld supports shared libraries.
15043 case $host_os in
15044 aix[3-9]*)
15045 # On AIX/PPC, the GNU linker is very broken
15046 if test "$host_cpu" != ia64; then
15047 ld_shlibs_F77=no
15048 cat <<EOF 1>&2
15050 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15051 *** to be unable to reliably create shared libraries on AIX.
15052 *** Therefore, libtool is disabling shared libraries support. If you
15053 *** really care for shared libraries, you may want to modify your PATH
15054 *** so that a non-GNU linker is found, and then restart.
15060 amigaos*)
15061 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)'
15062 hardcode_libdir_flag_spec_F77='-L$libdir'
15063 hardcode_minus_L_F77=yes
15065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15066 # that the semantics of dynamic libraries on AmigaOS, at least up
15067 # to version 4, is to share data among multiple programs linked
15068 # with the same dynamic library. Since this doesn't match the
15069 # behavior of shared libraries on other platforms, we can't use
15070 # them.
15071 ld_shlibs_F77=no
15074 beos*)
15075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15076 allow_undefined_flag_F77=unsupported
15077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15078 # support --undefined. This deserves some investigation. FIXME
15079 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 else
15081 ld_shlibs_F77=no
15085 cygwin* | mingw* | pw32*)
15086 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15087 # as there is no search path for DLLs.
15088 hardcode_libdir_flag_spec_F77='-L$libdir'
15089 allow_undefined_flag_F77=unsupported
15090 always_export_symbols_F77=no
15091 enable_shared_with_static_runtimes_F77=yes
15092 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15094 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15095 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15096 # If the export-symbols file already is a .def file (1st line
15097 # is EXPORTS), use it as is; otherwise, prepend...
15098 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15099 cp $export_symbols $output_objdir/$soname.def;
15100 else
15101 echo EXPORTS > $output_objdir/$soname.def;
15102 cat $export_symbols >> $output_objdir/$soname.def;
15104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15105 else
15106 ld_shlibs_F77=no
15110 interix[3-9]*)
15111 hardcode_direct_F77=no
15112 hardcode_shlibpath_var_F77=no
15113 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15114 export_dynamic_flag_spec_F77='${wl}-E'
15115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15116 # Instead, shared libraries are loaded at an image base (0x10000000 by
15117 # default) and relocated if they conflict, which is a slow very memory
15118 # consuming and fragmenting process. To avoid this, we pick a random,
15119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15121 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'
15122 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'
15125 gnu* | linux* | k*bsd*-gnu)
15126 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15127 tmp_addflag=
15128 case $cc_basename,$host_cpu in
15129 pgcc*) # Portland Group C compiler
15130 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'
15131 tmp_addflag=' $pic_flag'
15133 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15134 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'
15135 tmp_addflag=' $pic_flag -Mnomain' ;;
15136 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15137 tmp_addflag=' -i_dynamic' ;;
15138 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15139 tmp_addflag=' -i_dynamic -nofor_main' ;;
15140 ifc* | ifort*) # Intel Fortran compiler
15141 tmp_addflag=' -nofor_main' ;;
15142 esac
15143 case `$CC -V 2>&1 | sed 5q` in
15144 *Sun\ C*) # Sun C 5.9
15145 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15146 tmp_sharedflag='-G' ;;
15147 *Sun\ F*) # Sun Fortran 8.3
15148 tmp_sharedflag='-G' ;;
15150 tmp_sharedflag='-shared' ;;
15151 esac
15152 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154 if test $supports_anon_versioning = yes; then
15155 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15157 $echo "local: *; };" >> $output_objdir/$libname.ver~
15158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15160 else
15161 ld_shlibs_F77=no
15165 netbsd*)
15166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15167 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15168 wlarc=
15169 else
15170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15171 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175 solaris*)
15176 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15177 ld_shlibs_F77=no
15178 cat <<EOF 1>&2
15180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15181 *** create shared libraries on Solaris systems. Therefore, libtool
15182 *** is disabling shared libraries support. We urge you to upgrade GNU
15183 *** binutils to release 2.9.1 or newer. Another option is to modify
15184 *** your PATH or compiler configuration so that the native linker is
15185 *** used, and then restart.
15188 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191 else
15192 ld_shlibs_F77=no
15196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15197 case `$LD -v 2>&1` in
15198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15199 ld_shlibs_F77=no
15200 cat <<_LT_EOF 1>&2
15202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15203 *** reliably create shared libraries on SCO systems. Therefore, libtool
15204 *** is disabling shared libraries support. We urge you to upgrade GNU
15205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15206 *** your PATH or compiler configuration so that the native linker is
15207 *** used, and then restart.
15209 _LT_EOF
15212 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15213 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15215 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15216 else
15217 ld_shlibs_F77=no
15220 esac
15223 sunos4*)
15224 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15225 wlarc=
15226 hardcode_direct_F77=yes
15227 hardcode_shlibpath_var_F77=no
15231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15234 else
15235 ld_shlibs_F77=no
15238 esac
15240 if test "$ld_shlibs_F77" = no; then
15241 runpath_var=
15242 hardcode_libdir_flag_spec_F77=
15243 export_dynamic_flag_spec_F77=
15244 whole_archive_flag_spec_F77=
15246 else
15247 # PORTME fill in a description of your system's linker (not GNU ld)
15248 case $host_os in
15249 aix3*)
15250 allow_undefined_flag_F77=unsupported
15251 always_export_symbols_F77=yes
15252 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'
15253 # Note: this linker hardcodes the directories in LIBPATH if there
15254 # are no directories specified by -L.
15255 hardcode_minus_L_F77=yes
15256 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15257 # Neither direct hardcoding nor static linking is supported with a
15258 # broken collect2.
15259 hardcode_direct_F77=unsupported
15263 aix[4-9]*)
15264 if test "$host_cpu" = ia64; then
15265 # On IA64, the linker does run time linking by default, so we don't
15266 # have to do anything special.
15267 aix_use_runtimelinking=no
15268 exp_sym_flag='-Bexport'
15269 no_entry_flag=""
15270 else
15271 # If we're using GNU nm, then we don't want the "-C" option.
15272 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15273 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15274 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'
15275 else
15276 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'
15278 aix_use_runtimelinking=no
15280 # Test if we are trying to use run time linking or normal
15281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15282 # need to do runtime linking.
15283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15284 for ld_flag in $LDFLAGS; do
15285 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15286 aix_use_runtimelinking=yes
15287 break
15289 done
15291 esac
15293 exp_sym_flag='-bexport'
15294 no_entry_flag='-bnoentry'
15297 # When large executables or shared objects are built, AIX ld can
15298 # have problems creating the table of contents. If linking a library
15299 # or program results in "error TOC overflow" add -mminimal-toc to
15300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15303 archive_cmds_F77=''
15304 hardcode_direct_F77=yes
15305 hardcode_libdir_separator_F77=':'
15306 link_all_deplibs_F77=yes
15308 if test "$GCC" = yes; then
15309 case $host_os in aix4.[012]|aix4.[012].*)
15310 # We only want to do this on AIX 4.2 and lower, the check
15311 # below for broken collect2 doesn't work under 4.3+
15312 collect2name=`${CC} -print-prog-name=collect2`
15313 if test -f "$collect2name" && \
15314 strings "$collect2name" | grep resolve_lib_name >/dev/null
15315 then
15316 # We have reworked collect2
15318 else
15319 # We have old collect2
15320 hardcode_direct_F77=unsupported
15321 # It fails to find uninstalled libraries when the uninstalled
15322 # path is not listed in the libpath. Setting hardcode_minus_L
15323 # to unsupported forces relinking
15324 hardcode_minus_L_F77=yes
15325 hardcode_libdir_flag_spec_F77='-L$libdir'
15326 hardcode_libdir_separator_F77=
15329 esac
15330 shared_flag='-shared'
15331 if test "$aix_use_runtimelinking" = yes; then
15332 shared_flag="$shared_flag "'${wl}-G'
15334 else
15335 # not using gcc
15336 if test "$host_cpu" = ia64; then
15337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15338 # chokes on -Wl,-G. The following line is correct:
15339 shared_flag='-G'
15340 else
15341 if test "$aix_use_runtimelinking" = yes; then
15342 shared_flag='${wl}-G'
15343 else
15344 shared_flag='${wl}-bM:SRE'
15349 # It seems that -bexpall does not export symbols beginning with
15350 # underscore (_), so it is better to generate a list of symbols to export.
15351 always_export_symbols_F77=yes
15352 if test "$aix_use_runtimelinking" = yes; then
15353 # Warning - without using the other runtime loading flags (-brtl),
15354 # -berok will link without error, but may produce a broken library.
15355 allow_undefined_flag_F77='-berok'
15356 # Determine the default libpath from the value encoded in an empty executable.
15357 cat >conftest.$ac_ext <<_ACEOF
15358 program main
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15369 $as_echo "$ac_try_echo") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_f77_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext && {
15380 test "$cross_compiling" = yes ||
15381 $as_test_x conftest$ac_exeext
15382 }; then
15384 lt_aix_libpath_sed='
15385 /Import File Strings/,/^$/ {
15386 /^0/ {
15387 s/^0 *\(.*\)$/\1/
15391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 # Check for a 64-bit object if we didn't find anything.
15393 if test -z "$aix_libpath"; then
15394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396 else
15397 $as_echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -rf conftest.dSYM
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15408 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15409 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"
15410 else
15411 if test "$host_cpu" = ia64; then
15412 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15413 allow_undefined_flag_F77="-z nodefs"
15414 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"
15415 else
15416 # Determine the default libpath from the value encoded in an empty executable.
15417 cat >conftest.$ac_ext <<_ACEOF
15418 program main
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (ac_try="$ac_link"
15424 case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427 esac
15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15429 $as_echo "$ac_try_echo") >&5
15430 (eval "$ac_link") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_f77_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext && {
15440 test "$cross_compiling" = yes ||
15441 $as_test_x conftest$ac_exeext
15442 }; then
15444 lt_aix_libpath_sed='
15445 /Import File Strings/,/^$/ {
15446 /^0/ {
15447 s/^0 *\(.*\)$/\1/
15451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15452 # Check for a 64-bit object if we didn't find anything.
15453 if test -z "$aix_libpath"; then
15454 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15456 else
15457 $as_echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15463 rm -rf conftest.dSYM
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15469 # Warning - without using the other run time loading flags,
15470 # -berok will link without error, but may produce a broken library.
15471 no_undefined_flag_F77=' ${wl}-bernotok'
15472 allow_undefined_flag_F77=' ${wl}-berok'
15473 # Exported symbols can be pulled into shared objects from archives
15474 whole_archive_flag_spec_F77='$convenience'
15475 archive_cmds_need_lc_F77=yes
15476 # This is similar to how AIX traditionally builds its shared libraries.
15477 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'
15482 amigaos*)
15483 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)'
15484 hardcode_libdir_flag_spec_F77='-L$libdir'
15485 hardcode_minus_L_F77=yes
15486 # see comment about different semantics on the GNU ld section
15487 ld_shlibs_F77=no
15490 bsdi[45]*)
15491 export_dynamic_flag_spec_F77=-rdynamic
15494 cygwin* | mingw* | pw32*)
15495 # When not using gcc, we currently assume that we are using
15496 # Microsoft Visual C++.
15497 # hardcode_libdir_flag_spec is actually meaningless, as there is
15498 # no search path for DLLs.
15499 hardcode_libdir_flag_spec_F77=' '
15500 allow_undefined_flag_F77=unsupported
15501 # Tell ltmain to make .lib files, not .a files.
15502 libext=lib
15503 # Tell ltmain to make .dll files, not .so files.
15504 shrext_cmds=".dll"
15505 # FIXME: Setting linknames here is a bad hack.
15506 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15507 # The linker will automatically build a .lib file if we build a DLL.
15508 old_archive_From_new_cmds_F77='true'
15509 # FIXME: Should let the user specify the lib program.
15510 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15511 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15512 enable_shared_with_static_runtimes_F77=yes
15515 darwin* | rhapsody*)
15516 case $host_os in
15517 rhapsody* | darwin1.[012])
15518 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15520 *) # Darwin 1.3 on
15521 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15522 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15523 else
15524 case ${MACOSX_DEPLOYMENT_TARGET} in
15525 10.[012])
15526 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15528 10.*)
15529 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15531 esac
15534 esac
15535 archive_cmds_need_lc_F77=no
15536 hardcode_direct_F77=no
15537 hardcode_automatic_F77=yes
15538 hardcode_shlibpath_var_F77=unsupported
15539 whole_archive_flag_spec_F77=''
15540 link_all_deplibs_F77=yes
15541 if test "$GCC" = yes ; then
15542 output_verbose_link_cmd='echo'
15543 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15544 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15545 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15546 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15547 else
15548 case $cc_basename in
15549 xlc*)
15550 output_verbose_link_cmd='echo'
15551 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15552 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15554 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15555 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}'
15558 ld_shlibs_F77=no
15560 esac
15564 dgux*)
15565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15566 hardcode_libdir_flag_spec_F77='-L$libdir'
15567 hardcode_shlibpath_var_F77=no
15570 freebsd1*)
15571 ld_shlibs_F77=no
15574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15575 # support. Future versions do this automatically, but an explicit c++rt0.o
15576 # does not break anything, and helps significantly (at the cost of a little
15577 # extra space).
15578 freebsd2.2*)
15579 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15580 hardcode_libdir_flag_spec_F77='-R$libdir'
15581 hardcode_direct_F77=yes
15582 hardcode_shlibpath_var_F77=no
15585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15586 freebsd2*)
15587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct_F77=yes
15589 hardcode_minus_L_F77=yes
15590 hardcode_shlibpath_var_F77=no
15593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15594 freebsd* | dragonfly*)
15595 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15596 hardcode_libdir_flag_spec_F77='-R$libdir'
15597 hardcode_direct_F77=yes
15598 hardcode_shlibpath_var_F77=no
15601 hpux9*)
15602 if test "$GCC" = yes; then
15603 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'
15604 else
15605 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'
15607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15608 hardcode_libdir_separator_F77=:
15609 hardcode_direct_F77=yes
15611 # hardcode_minus_L: Not really in the search PATH,
15612 # but as the default location of the library.
15613 hardcode_minus_L_F77=yes
15614 export_dynamic_flag_spec_F77='${wl}-E'
15617 hpux10*)
15618 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15619 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15620 else
15621 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15623 if test "$with_gnu_ld" = no; then
15624 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15625 hardcode_libdir_separator_F77=:
15627 hardcode_direct_F77=yes
15628 export_dynamic_flag_spec_F77='${wl}-E'
15630 # hardcode_minus_L: Not really in the search PATH,
15631 # but as the default location of the library.
15632 hardcode_minus_L_F77=yes
15636 hpux11*)
15637 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15638 case $host_cpu in
15639 hppa*64*)
15640 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 ia64*)
15643 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15646 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15648 esac
15649 else
15650 case $host_cpu in
15651 hppa*64*)
15652 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15654 ia64*)
15655 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15658 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15660 esac
15662 if test "$with_gnu_ld" = no; then
15663 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15664 hardcode_libdir_separator_F77=:
15666 case $host_cpu in
15667 hppa*64*|ia64*)
15668 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15669 hardcode_direct_F77=no
15670 hardcode_shlibpath_var_F77=no
15673 hardcode_direct_F77=yes
15674 export_dynamic_flag_spec_F77='${wl}-E'
15676 # hardcode_minus_L: Not really in the search PATH,
15677 # but as the default location of the library.
15678 hardcode_minus_L_F77=yes
15680 esac
15684 irix5* | irix6* | nonstopux*)
15685 if test "$GCC" = yes; then
15686 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'
15687 else
15688 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'
15689 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15691 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15692 hardcode_libdir_separator_F77=:
15693 link_all_deplibs_F77=yes
15696 netbsd*)
15697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15698 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15699 else
15700 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15702 hardcode_libdir_flag_spec_F77='-R$libdir'
15703 hardcode_direct_F77=yes
15704 hardcode_shlibpath_var_F77=no
15707 newsos6)
15708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15709 hardcode_direct_F77=yes
15710 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15711 hardcode_libdir_separator_F77=:
15712 hardcode_shlibpath_var_F77=no
15715 openbsd*)
15716 if test -f /usr/libexec/ld.so; then
15717 hardcode_direct_F77=yes
15718 hardcode_shlibpath_var_F77=no
15719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15720 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15721 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15723 export_dynamic_flag_spec_F77='${wl}-E'
15724 else
15725 case $host_os in
15726 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec_F77='-R$libdir'
15731 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15732 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15734 esac
15736 else
15737 ld_shlibs_F77=no
15741 os2*)
15742 hardcode_libdir_flag_spec_F77='-L$libdir'
15743 hardcode_minus_L_F77=yes
15744 allow_undefined_flag_F77=unsupported
15745 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'
15746 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15749 osf3*)
15750 if test "$GCC" = yes; then
15751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15752 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'
15753 else
15754 allow_undefined_flag_F77=' -expect_unresolved \*'
15755 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'
15757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15758 hardcode_libdir_separator_F77=:
15761 osf4* | osf5*) # as osf3* with the addition of -msym flag
15762 if test "$GCC" = yes; then
15763 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15764 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'
15765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15766 else
15767 allow_undefined_flag_F77=' -expect_unresolved \*'
15768 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'
15769 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~
15770 $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'
15772 # Both c and cxx compiler support -rpath directly
15773 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15775 hardcode_libdir_separator_F77=:
15778 solaris*)
15779 no_undefined_flag_F77=' -z text'
15780 if test "$GCC" = yes; then
15781 wlarc='${wl}'
15782 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15784 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15785 else
15786 wlarc=''
15787 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15789 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15791 hardcode_libdir_flag_spec_F77='-R$libdir'
15792 hardcode_shlibpath_var_F77=no
15793 case $host_os in
15794 solaris2.[0-5] | solaris2.[0-5].*) ;;
15796 # The compiler driver will combine and reorder linker options,
15797 # but understands `-z linker_flag'. GCC discards it without `$wl',
15798 # but is careful enough not to reorder.
15799 # Supported since Solaris 2.6 (maybe 2.5.1?)
15800 if test "$GCC" = yes; then
15801 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15802 else
15803 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15806 esac
15807 link_all_deplibs_F77=yes
15810 sunos4*)
15811 if test "x$host_vendor" = xsequent; then
15812 # Use $CC to link under sequent, because it throws in some extra .o
15813 # files that make .init and .fini sections work.
15814 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15815 else
15816 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_libdir_flag_spec_F77='-L$libdir'
15819 hardcode_direct_F77=yes
15820 hardcode_minus_L_F77=yes
15821 hardcode_shlibpath_var_F77=no
15824 sysv4)
15825 case $host_vendor in
15826 sni)
15827 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15828 hardcode_direct_F77=yes # is this really true???
15830 siemens)
15831 ## LD is ld it makes a PLAMLIB
15832 ## CC just makes a GrossModule.
15833 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15834 reload_cmds_F77='$CC -r -o $output$reload_objs'
15835 hardcode_direct_F77=no
15837 motorola)
15838 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15841 esac
15842 runpath_var='LD_RUN_PATH'
15843 hardcode_shlibpath_var_F77=no
15846 sysv4.3*)
15847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_shlibpath_var_F77=no
15849 export_dynamic_flag_spec_F77='-Bexport'
15852 sysv4*MP*)
15853 if test -d /usr/nec; then
15854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_shlibpath_var_F77=no
15856 runpath_var=LD_RUN_PATH
15857 hardcode_runpath_var=yes
15858 ld_shlibs_F77=yes
15862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15863 no_undefined_flag_F77='${wl}-z,text'
15864 archive_cmds_need_lc_F77=no
15865 hardcode_shlibpath_var_F77=no
15866 runpath_var='LD_RUN_PATH'
15868 if test "$GCC" = yes; then
15869 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871 else
15872 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 sysv5* | sco3.2v5* | sco5v6*)
15878 # Note: We can NOT use -z defs as we might desire, because we do not
15879 # link with -lc, and that would cause any symbols used from libc to
15880 # always be unresolved, which means just about no library would
15881 # ever link correctly. If we're not using GNU ld we use -z text
15882 # though, which does catch some bad symbols but isn't as heavy-handed
15883 # as -z defs.
15884 no_undefined_flag_F77='${wl}-z,text'
15885 allow_undefined_flag_F77='${wl}-z,nodefs'
15886 archive_cmds_need_lc_F77=no
15887 hardcode_shlibpath_var_F77=no
15888 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15889 hardcode_libdir_separator_F77=':'
15890 link_all_deplibs_F77=yes
15891 export_dynamic_flag_spec_F77='${wl}-Bexport'
15892 runpath_var='LD_RUN_PATH'
15894 if test "$GCC" = yes; then
15895 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897 else
15898 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 uts4*)
15904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905 hardcode_libdir_flag_spec_F77='-L$libdir'
15906 hardcode_shlibpath_var_F77=no
15910 ld_shlibs_F77=no
15912 esac
15915 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15916 $as_echo "$ld_shlibs_F77" >&6; }
15917 test "$ld_shlibs_F77" = no && can_build_shared=no
15920 # Do we need to explicitly link libc?
15922 case "x$archive_cmds_need_lc_F77" in
15923 x|xyes)
15924 # Assume -lc should be added
15925 archive_cmds_need_lc_F77=yes
15927 if test "$enable_shared" = yes && test "$GCC" = yes; then
15928 case $archive_cmds_F77 in
15929 *'~'*)
15930 # FIXME: we may have to deal with multi-command sequences.
15932 '$CC '*)
15933 # Test whether the compiler implicitly links with -lc since on some
15934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15935 # to ld, don't add -lc before -lgcc.
15936 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15937 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15938 $rm conftest*
15939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942 (eval $ac_compile) 2>&5
15943 ac_status=$?
15944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } 2>conftest.err; then
15946 soname=conftest
15947 lib=conftest
15948 libobjs=conftest.$ac_objext
15949 deplibs=
15950 wl=$lt_prog_compiler_wl_F77
15951 pic_flag=$lt_prog_compiler_pic_F77
15952 compiler_flags=-v
15953 linker_flags=-v
15954 verstring=
15955 output_objdir=.
15956 libname=conftest
15957 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15958 allow_undefined_flag_F77=
15959 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15960 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15961 ac_status=$?
15962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }
15964 then
15965 archive_cmds_need_lc_F77=no
15966 else
15967 archive_cmds_need_lc_F77=yes
15969 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15970 else
15971 cat conftest.err 1>&5
15973 $rm conftest*
15974 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15975 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15977 esac
15980 esac
15982 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15983 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15984 library_names_spec=
15985 libname_spec='lib$name'
15986 soname_spec=
15987 shrext_cmds=".so"
15988 postinstall_cmds=
15989 postuninstall_cmds=
15990 finish_cmds=
15991 finish_eval=
15992 shlibpath_var=
15993 shlibpath_overrides_runpath=unknown
15994 version_type=none
15995 dynamic_linker="$host_os ld.so"
15996 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15998 need_lib_prefix=unknown
15999 hardcode_into_libs=no
16001 # when you set need_version to no, make sure it does not cause -set_version
16002 # flags to be left without arguments
16003 need_version=unknown
16005 case $host_os in
16006 aix3*)
16007 version_type=linux
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16009 shlibpath_var=LIBPATH
16011 # AIX 3 has no versioning support, so we append a major version to the name.
16012 soname_spec='${libname}${release}${shared_ext}$major'
16015 aix[4-9]*)
16016 version_type=linux
16017 need_lib_prefix=no
16018 need_version=no
16019 hardcode_into_libs=yes
16020 if test "$host_cpu" = ia64; then
16021 # AIX 5 supports IA64
16022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16023 shlibpath_var=LD_LIBRARY_PATH
16024 else
16025 # With GCC up to 2.95.x, collect2 would create an import file
16026 # for dependence libraries. The import file would start with
16027 # the line `#! .'. This would cause the generated library to
16028 # depend on `.', always an invalid library. This was fixed in
16029 # development snapshots of GCC prior to 3.0.
16030 case $host_os in
16031 aix4 | aix4.[01] | aix4.[01].*)
16032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16033 echo ' yes '
16034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16036 else
16037 can_build_shared=no
16040 esac
16041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16042 # soname into executable. Probably we can add versioning support to
16043 # collect2, so additional links can be useful in future.
16044 if test "$aix_use_runtimelinking" = yes; then
16045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16046 # instead of lib<name>.a to let people know that these are not
16047 # typical AIX shared libraries.
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 else
16050 # We preserve .a as extension for shared libraries through AIX4.2
16051 # and later when we are not doing run time linking.
16052 library_names_spec='${libname}${release}.a $libname.a'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16055 shlibpath_var=LIBPATH
16059 amigaos*)
16060 library_names_spec='$libname.ixlibrary $libname.a'
16061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16062 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'
16065 beos*)
16066 library_names_spec='${libname}${shared_ext}'
16067 dynamic_linker="$host_os ld.so"
16068 shlibpath_var=LIBRARY_PATH
16071 bsdi[45]*)
16072 version_type=linux
16073 need_version=no
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16080 # the default ld.so.conf also contains /usr/contrib/lib and
16081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16082 # libtool to hard-code these into programs
16085 cygwin* | mingw* | pw32*)
16086 version_type=windows
16087 shrext_cmds=".dll"
16088 need_version=no
16089 need_lib_prefix=no
16091 case $GCC,$host_os in
16092 yes,cygwin* | yes,mingw* | yes,pw32*)
16093 library_names_spec='$libname.dll.a'
16094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16095 postinstall_cmds='base_file=`basename \${file}`~
16096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16097 dldir=$destdir/`dirname \$dlpath`~
16098 test -d \$dldir || mkdir -p \$dldir~
16099 $install_prog $dir/$dlname \$dldir/$dlname~
16100 chmod a+x \$dldir/$dlname'
16101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16102 dlpath=$dir/\$dldll~
16103 $rm \$dlpath'
16104 shlibpath_overrides_runpath=yes
16106 case $host_os in
16107 cygwin*)
16108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16112 mingw*)
16113 # MinGW DLLs use traditional 'lib' prefix
16114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16117 # It is most probably a Windows format PATH printed by
16118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16119 # path with ; separators, and with drive letters. We can handle the
16120 # drive letters (cygwin fileutils understands them), so leave them,
16121 # especially as we might pass files found there to a mingw objdump,
16122 # which wouldn't understand a cygwinified path. Ahh.
16123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16124 else
16125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16128 pw32*)
16129 # pw32 DLLs use 'pw' prefix rather than 'lib'
16130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16132 esac
16136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16138 esac
16139 dynamic_linker='Win32 ld.exe'
16140 # FIXME: first we should search . and the directory the executable is in
16141 shlibpath_var=PATH
16144 darwin* | rhapsody*)
16145 dynamic_linker="$host_os dyld"
16146 version_type=darwin
16147 need_lib_prefix=no
16148 need_version=no
16149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16150 soname_spec='${libname}${release}${major}$shared_ext'
16151 shlibpath_overrides_runpath=yes
16152 shlibpath_var=DYLD_LIBRARY_PATH
16153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16155 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16158 dgux*)
16159 version_type=linux
16160 need_lib_prefix=no
16161 need_version=no
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16167 freebsd1*)
16168 dynamic_linker=no
16171 freebsd* | dragonfly*)
16172 # DragonFly does not have aout. When/if they implement a new
16173 # versioning mechanism, adjust this.
16174 if test -x /usr/bin/objformat; then
16175 objformat=`/usr/bin/objformat`
16176 else
16177 case $host_os in
16178 freebsd[123]*) objformat=aout ;;
16179 *) objformat=elf ;;
16180 esac
16182 version_type=freebsd-$objformat
16183 case $version_type in
16184 freebsd-elf*)
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186 need_version=no
16187 need_lib_prefix=no
16189 freebsd-*)
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16191 need_version=yes
16193 esac
16194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_os in
16196 freebsd2*)
16197 shlibpath_overrides_runpath=yes
16199 freebsd3.[01]* | freebsdelf3.[01]*)
16200 shlibpath_overrides_runpath=yes
16201 hardcode_into_libs=yes
16203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16205 shlibpath_overrides_runpath=no
16206 hardcode_into_libs=yes
16208 *) # from 4.6 on, and DragonFly
16209 shlibpath_overrides_runpath=yes
16210 hardcode_into_libs=yes
16212 esac
16215 gnu*)
16216 version_type=linux
16217 need_lib_prefix=no
16218 need_version=no
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 hardcode_into_libs=yes
16225 hpux9* | hpux10* | hpux11*)
16226 # Give a soname corresponding to the major version so that dld.sl refuses to
16227 # link against other versions.
16228 version_type=sunos
16229 need_lib_prefix=no
16230 need_version=no
16231 case $host_cpu in
16232 ia64*)
16233 shrext_cmds='.so'
16234 hardcode_into_libs=yes
16235 dynamic_linker="$host_os dld.so"
16236 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16239 soname_spec='${libname}${release}${shared_ext}$major'
16240 if test "X$HPUX_IA64_MODE" = X32; then
16241 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16242 else
16243 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16247 hppa*64*)
16248 shrext_cmds='.sl'
16249 hardcode_into_libs=yes
16250 dynamic_linker="$host_os dld.sl"
16251 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16259 shrext_cmds='.sl'
16260 dynamic_linker="$host_os dld.sl"
16261 shlibpath_var=SHLIB_PATH
16262 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16266 esac
16267 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16268 postinstall_cmds='chmod 555 $lib'
16271 interix[3-9]*)
16272 version_type=linux
16273 need_lib_prefix=no
16274 need_version=no
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16277 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath=no
16280 hardcode_into_libs=yes
16283 irix5* | irix6* | nonstopux*)
16284 case $host_os in
16285 nonstopux*) version_type=nonstopux ;;
16287 if test "$lt_cv_prog_gnu_ld" = yes; then
16288 version_type=linux
16289 else
16290 version_type=irix
16291 fi ;;
16292 esac
16293 need_lib_prefix=no
16294 need_version=no
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16297 case $host_os in
16298 irix5* | nonstopux*)
16299 libsuff= shlibsuff=
16302 case $LD in # libtool.m4 will add one of these switches to LD
16303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16304 libsuff= shlibsuff= libmagic=32-bit;;
16305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16306 libsuff=32 shlibsuff=N32 libmagic=N32;;
16307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16309 *) libsuff= shlibsuff= libmagic=never-match;;
16310 esac
16312 esac
16313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16314 shlibpath_overrides_runpath=no
16315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16317 hardcode_into_libs=yes
16320 # No shared lib support for Linux oldld, aout, or coff.
16321 linux*oldld* | linux*aout* | linux*coff*)
16322 dynamic_linker=no
16325 # This must be Linux ELF.
16326 linux* | k*bsd*-gnu)
16327 version_type=linux
16328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=no
16335 # This implies no fast_install, which is unacceptable.
16336 # Some rework will be needed to allow for fast_install
16337 # before this can be enabled.
16338 hardcode_into_libs=yes
16339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16342 # Append ld.so.conf contents to the search path
16343 if test -f /etc/ld.so.conf; then
16344 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16345 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16348 # We used to test for /lib/ld.so.1 and disable shared libraries on
16349 # powerpc, because MkLinux only supported shared libraries with the
16350 # GNU dynamic linker. Since this was broken with cross compilers,
16351 # most powerpc-linux boxes support dynamic linking these days and
16352 # people can always --disable-shared, the test was removed, and we
16353 # assume the GNU/Linux dynamic linker is in use.
16354 dynamic_linker='GNU/Linux ld.so'
16357 netbsd*)
16358 version_type=sunos
16359 need_lib_prefix=no
16360 need_version=no
16361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16364 dynamic_linker='NetBSD (a.out) ld.so'
16365 else
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 dynamic_linker='NetBSD ld.elf_so'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16375 newsos6)
16376 version_type=linux
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes
16382 nto-qnx*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16392 openbsd*)
16393 version_type=sunos
16394 sys_lib_dlsearch_path_spec="/usr/lib"
16395 need_lib_prefix=no
16396 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16397 case $host_os in
16398 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16399 *) need_version=no ;;
16400 esac
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16405 case $host_os in
16406 openbsd2.[89] | openbsd2.[89].*)
16407 shlibpath_overrides_runpath=no
16410 shlibpath_overrides_runpath=yes
16412 esac
16413 else
16414 shlibpath_overrides_runpath=yes
16418 os2*)
16419 libname_spec='$name'
16420 shrext_cmds=".dll"
16421 need_lib_prefix=no
16422 library_names_spec='$libname${shared_ext} $libname.a'
16423 dynamic_linker='OS/2 ld.exe'
16424 shlibpath_var=LIBPATH
16427 osf3* | osf4* | osf5*)
16428 version_type=osf
16429 need_lib_prefix=no
16430 need_version=no
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16435 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16438 rdos*)
16439 dynamic_linker=no
16442 solaris*)
16443 version_type=linux
16444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16450 hardcode_into_libs=yes
16451 # ldd complains unless libraries are executable
16452 postinstall_cmds='chmod +x $lib'
16455 sunos4*)
16456 version_type=sunos
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 shlibpath_overrides_runpath=yes
16461 if test "$with_gnu_ld" = yes; then
16462 need_lib_prefix=no
16464 need_version=yes
16467 sysv4 | sysv4.3*)
16468 version_type=linux
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 case $host_vendor in
16473 sni)
16474 shlibpath_overrides_runpath=no
16475 need_lib_prefix=no
16476 export_dynamic_flag_spec='${wl}-Blargedynsym'
16477 runpath_var=LD_RUN_PATH
16479 siemens)
16480 need_lib_prefix=no
16482 motorola)
16483 need_lib_prefix=no
16484 need_version=no
16485 shlibpath_overrides_runpath=no
16486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16488 esac
16491 sysv4*MP*)
16492 if test -d /usr/nec ;then
16493 version_type=linux
16494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16495 soname_spec='$libname${shared_ext}.$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16501 version_type=freebsd-elf
16502 need_lib_prefix=no
16503 need_version=no
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 hardcode_into_libs=yes
16508 if test "$with_gnu_ld" = yes; then
16509 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16510 shlibpath_overrides_runpath=no
16511 else
16512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16513 shlibpath_overrides_runpath=yes
16514 case $host_os in
16515 sco3.2v5*)
16516 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16518 esac
16520 sys_lib_dlsearch_path_spec='/usr/lib'
16523 uts4*)
16524 version_type=linux
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16531 dynamic_linker=no
16533 esac
16534 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16535 $as_echo "$dynamic_linker" >&6; }
16536 test "$dynamic_linker" = no && can_build_shared=no
16538 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16539 $as_echo_n "(cached) " >&6
16540 else
16541 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16545 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16546 $as_echo_n "(cached) " >&6
16547 else
16548 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16554 if test "$GCC" = yes; then
16555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16558 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16560 hardcode_action_F77=
16561 if test -n "$hardcode_libdir_flag_spec_F77" || \
16562 test -n "$runpath_var_F77" || \
16563 test "X$hardcode_automatic_F77" = "Xyes" ; then
16565 # We can hardcode non-existant directories.
16566 if test "$hardcode_direct_F77" != no &&
16567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16568 # have to relink, otherwise we might link with an installed library
16569 # when we should be linking with a yet-to-be-installed one
16570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16571 test "$hardcode_minus_L_F77" != no; then
16572 # Linking always hardcodes the temporary library directory.
16573 hardcode_action_F77=relink
16574 else
16575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16576 hardcode_action_F77=immediate
16578 else
16579 # We cannot hardcode anything, or else we can only hardcode existing
16580 # directories.
16581 hardcode_action_F77=unsupported
16583 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16584 $as_echo "$hardcode_action_F77" >&6; }
16586 if test "$hardcode_action_F77" = relink; then
16587 # Fast installation is not supported
16588 enable_fast_install=no
16589 elif test "$shlibpath_overrides_runpath" = yes ||
16590 test "$enable_shared" = no; then
16591 # Fast installation is not necessary
16592 enable_fast_install=needless
16596 # The else clause should only fire when bootstrapping the
16597 # libtool distribution, otherwise you forgot to ship ltmain.sh
16598 # with your package, and you will get complaints that there are
16599 # no rules to generate ltmain.sh.
16600 if test -f "$ltmain"; then
16601 # See if we are running on zsh, and set the options which allow our commands through
16602 # without removal of \ escapes.
16603 if test -n "${ZSH_VERSION+set}" ; then
16604 setopt NO_GLOB_SUBST
16606 # Now quote all the things that may contain metacharacters while being
16607 # careful not to overquote the AC_SUBSTed values. We take copies of the
16608 # variables and quote the copies for generation of the libtool script.
16609 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16610 SED SHELL STRIP \
16611 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16612 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16613 deplibs_check_method reload_flag reload_cmds need_locks \
16614 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16615 lt_cv_sys_global_symbol_to_c_name_address \
16616 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16617 old_postinstall_cmds old_postuninstall_cmds \
16618 compiler_F77 \
16619 CC_F77 \
16620 LD_F77 \
16621 lt_prog_compiler_wl_F77 \
16622 lt_prog_compiler_pic_F77 \
16623 lt_prog_compiler_static_F77 \
16624 lt_prog_compiler_no_builtin_flag_F77 \
16625 export_dynamic_flag_spec_F77 \
16626 thread_safe_flag_spec_F77 \
16627 whole_archive_flag_spec_F77 \
16628 enable_shared_with_static_runtimes_F77 \
16629 old_archive_cmds_F77 \
16630 old_archive_from_new_cmds_F77 \
16631 predep_objects_F77 \
16632 postdep_objects_F77 \
16633 predeps_F77 \
16634 postdeps_F77 \
16635 compiler_lib_search_path_F77 \
16636 compiler_lib_search_dirs_F77 \
16637 archive_cmds_F77 \
16638 archive_expsym_cmds_F77 \
16639 postinstall_cmds_F77 \
16640 postuninstall_cmds_F77 \
16641 old_archive_from_expsyms_cmds_F77 \
16642 allow_undefined_flag_F77 \
16643 no_undefined_flag_F77 \
16644 export_symbols_cmds_F77 \
16645 hardcode_libdir_flag_spec_F77 \
16646 hardcode_libdir_flag_spec_ld_F77 \
16647 hardcode_libdir_separator_F77 \
16648 hardcode_automatic_F77 \
16649 module_cmds_F77 \
16650 module_expsym_cmds_F77 \
16651 lt_cv_prog_compiler_c_o_F77 \
16652 fix_srcfile_path_F77 \
16653 exclude_expsyms_F77 \
16654 include_expsyms_F77; do
16656 case $var in
16657 old_archive_cmds_F77 | \
16658 old_archive_from_new_cmds_F77 | \
16659 archive_cmds_F77 | \
16660 archive_expsym_cmds_F77 | \
16661 module_cmds_F77 | \
16662 module_expsym_cmds_F77 | \
16663 old_archive_from_expsyms_cmds_F77 | \
16664 export_symbols_cmds_F77 | \
16665 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16666 postinstall_cmds | postuninstall_cmds | \
16667 old_postinstall_cmds | old_postuninstall_cmds | \
16668 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16669 # Double-quote double-evaled strings.
16670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16675 esac
16676 done
16678 case $lt_echo in
16679 *'\$0 --fallback-echo"')
16680 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16682 esac
16684 cfgfile="$ofile"
16686 cat <<__EOF__ >> "$cfgfile"
16687 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16691 # Shell to use when invoking shell scripts.
16692 SHELL=$lt_SHELL
16694 # Whether or not to build shared libraries.
16695 build_libtool_libs=$enable_shared
16697 # Whether or not to build static libraries.
16698 build_old_libs=$enable_static
16700 # Whether or not to add -lc for building shared libraries.
16701 build_libtool_need_lc=$archive_cmds_need_lc_F77
16703 # Whether or not to disallow shared libs when runtime libs are static
16704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16706 # Whether or not to optimize for fast installation.
16707 fast_install=$enable_fast_install
16709 # The host system.
16710 host_alias=$host_alias
16711 host=$host
16712 host_os=$host_os
16714 # The build system.
16715 build_alias=$build_alias
16716 build=$build
16717 build_os=$build_os
16719 # An echo program that does not interpret backslashes.
16720 echo=$lt_echo
16722 # The archiver.
16723 AR=$lt_AR
16724 AR_FLAGS=$lt_AR_FLAGS
16726 # A C compiler.
16727 LTCC=$lt_LTCC
16729 # LTCC compiler flags.
16730 LTCFLAGS=$lt_LTCFLAGS
16732 # A language-specific compiler.
16733 CC=$lt_compiler_F77
16735 # Is the compiler the GNU C compiler?
16736 with_gcc=$GCC_F77
16738 # An ERE matcher.
16739 EGREP=$lt_EGREP
16741 # The linker used to build libraries.
16742 LD=$lt_LD_F77
16744 # Whether we need hard or soft links.
16745 LN_S=$lt_LN_S
16747 # A BSD-compatible nm program.
16748 NM=$lt_NM
16750 # A symbol stripping program
16751 STRIP=$lt_STRIP
16753 # Used to examine libraries when file_magic_cmd begins "file"
16754 MAGIC_CMD=$MAGIC_CMD
16756 # Used on cygwin: DLL creation program.
16757 DLLTOOL="$DLLTOOL"
16759 # Used on cygwin: object dumper.
16760 OBJDUMP="$OBJDUMP"
16762 # Used on cygwin: assembler.
16763 AS="$AS"
16765 # The name of the directory that contains temporary libtool files.
16766 objdir=$objdir
16768 # How to create reloadable object files.
16769 reload_flag=$lt_reload_flag
16770 reload_cmds=$lt_reload_cmds
16772 # How to pass a linker flag through the compiler.
16773 wl=$lt_lt_prog_compiler_wl_F77
16775 # Object file suffix (normally "o").
16776 objext="$ac_objext"
16778 # Old archive suffix (normally "a").
16779 libext="$libext"
16781 # Shared library suffix (normally ".so").
16782 shrext_cmds='$shrext_cmds'
16784 # Executable file suffix (normally "").
16785 exeext="$exeext"
16787 # Additional compiler flags for building library objects.
16788 pic_flag=$lt_lt_prog_compiler_pic_F77
16789 pic_mode=$pic_mode
16791 # What is the maximum length of a command?
16792 max_cmd_len=$lt_cv_sys_max_cmd_len
16794 # Does compiler simultaneously support -c and -o options?
16795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16797 # Must we lock files when doing compilation?
16798 need_locks=$lt_need_locks
16800 # Do we need the lib prefix for modules?
16801 need_lib_prefix=$need_lib_prefix
16803 # Do we need a version for libraries?
16804 need_version=$need_version
16806 # Whether dlopen is supported.
16807 dlopen_support=$enable_dlopen
16809 # Whether dlopen of programs is supported.
16810 dlopen_self=$enable_dlopen_self
16812 # Whether dlopen of statically linked programs is supported.
16813 dlopen_self_static=$enable_dlopen_self_static
16815 # Compiler flag to prevent dynamic linking.
16816 link_static_flag=$lt_lt_prog_compiler_static_F77
16818 # Compiler flag to turn off builtin functions.
16819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16821 # Compiler flag to allow reflexive dlopens.
16822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16824 # Compiler flag to generate shared objects directly from archives.
16825 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16827 # Compiler flag to generate thread-safe objects.
16828 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16830 # Library versioning type.
16831 version_type=$version_type
16833 # Format of library name prefix.
16834 libname_spec=$lt_libname_spec
16836 # List of archive names. First name is the real one, the rest are links.
16837 # The last name is the one that the linker finds with -lNAME.
16838 library_names_spec=$lt_library_names_spec
16840 # The coded name of the library, if different from the real name.
16841 soname_spec=$lt_soname_spec
16843 # Commands used to build and install an old-style archive.
16844 RANLIB=$lt_RANLIB
16845 old_archive_cmds=$lt_old_archive_cmds_F77
16846 old_postinstall_cmds=$lt_old_postinstall_cmds
16847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16849 # Create an old-style archive from a shared archive.
16850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16852 # Create a temporary old-style archive to link instead of a shared archive.
16853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16855 # Commands used to build and install a shared archive.
16856 archive_cmds=$lt_archive_cmds_F77
16857 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16858 postinstall_cmds=$lt_postinstall_cmds
16859 postuninstall_cmds=$lt_postuninstall_cmds
16861 # Commands used to build a loadable module (assumed same as above if empty)
16862 module_cmds=$lt_module_cmds_F77
16863 module_expsym_cmds=$lt_module_expsym_cmds_F77
16865 # Commands to strip libraries.
16866 old_striplib=$lt_old_striplib
16867 striplib=$lt_striplib
16869 # Dependencies to place before the objects being linked to create a
16870 # shared library.
16871 predep_objects=$lt_predep_objects_F77
16873 # Dependencies to place after the objects being linked to create a
16874 # shared library.
16875 postdep_objects=$lt_postdep_objects_F77
16877 # Dependencies to place before the objects being linked to create a
16878 # shared library.
16879 predeps=$lt_predeps_F77
16881 # Dependencies to place after the objects being linked to create a
16882 # shared library.
16883 postdeps=$lt_postdeps_F77
16885 # The directories searched by this compiler when creating a shared
16886 # library
16887 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16889 # The library search path used internally by the compiler when linking
16890 # a shared library.
16891 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16893 # Method to check whether dependent libraries are shared objects.
16894 deplibs_check_method=$lt_deplibs_check_method
16896 # Command to use when deplibs_check_method == file_magic.
16897 file_magic_cmd=$lt_file_magic_cmd
16899 # Flag that allows shared libraries with undefined symbols to be built.
16900 allow_undefined_flag=$lt_allow_undefined_flag_F77
16902 # Flag that forces no undefined symbols.
16903 no_undefined_flag=$lt_no_undefined_flag_F77
16905 # Commands used to finish a libtool library installation in a directory.
16906 finish_cmds=$lt_finish_cmds
16908 # Same as above, but a single script fragment to be evaled but not shown.
16909 finish_eval=$lt_finish_eval
16911 # Take the output of nm and produce a listing of raw symbols and C names.
16912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16914 # Transform the output of nm in a proper C declaration
16915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16917 # Transform the output of nm in a C name address pair
16918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16920 # This is the shared library runtime path variable.
16921 runpath_var=$runpath_var
16923 # This is the shared library path variable.
16924 shlibpath_var=$shlibpath_var
16926 # Is shlibpath searched before the hard-coded library search path?
16927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16929 # How to hardcode a shared library path into an executable.
16930 hardcode_action=$hardcode_action_F77
16932 # Whether we should hardcode library paths into libraries.
16933 hardcode_into_libs=$hardcode_into_libs
16935 # Flag to hardcode \$libdir into a binary during linking.
16936 # This must work even if \$libdir does not exist.
16937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16939 # If ld is used when linking, flag to hardcode \$libdir into
16940 # a binary during linking. This must work even if \$libdir does
16941 # not exist.
16942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16944 # Whether we need a single -rpath flag with a separated argument.
16945 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16948 # resulting binary.
16949 hardcode_direct=$hardcode_direct_F77
16951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16952 # resulting binary.
16953 hardcode_minus_L=$hardcode_minus_L_F77
16955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16956 # the resulting binary.
16957 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16959 # Set to yes if building a shared library automatically hardcodes DIR into the library
16960 # and all subsequent libraries and executables linked against it.
16961 hardcode_automatic=$hardcode_automatic_F77
16963 # Variables whose values should be saved in libtool wrapper scripts and
16964 # restored at relink time.
16965 variables_saved_for_relink="$variables_saved_for_relink"
16967 # Whether libtool must link a program against all its dependency libraries.
16968 link_all_deplibs=$link_all_deplibs_F77
16970 # Compile-time system search path for libraries
16971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16973 # Run-time system search path for libraries
16974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16976 # Fix the shell variable \$srcfile for the compiler.
16977 fix_srcfile_path=$lt_fix_srcfile_path
16979 # Set to yes if exported symbols are required.
16980 always_export_symbols=$always_export_symbols_F77
16982 # The commands to list exported symbols.
16983 export_symbols_cmds=$lt_export_symbols_cmds_F77
16985 # The commands to extract the exported symbol list from a shared archive.
16986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16988 # Symbols that should not be listed in the preloaded symbols.
16989 exclude_expsyms=$lt_exclude_expsyms_F77
16991 # Symbols that must always be exported.
16992 include_expsyms=$lt_include_expsyms_F77
16994 # ### END LIBTOOL TAG CONFIG: $tagname
16996 __EOF__
16999 else
17000 # If there is no Makefile yet, we rely on a make rule to execute
17001 # `config.status --recheck' to rerun these tests and create the
17002 # libtool script then.
17003 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17004 if test -f "$ltmain_in"; then
17005 test -f Makefile && make "$ltmain"
17010 ac_ext=c
17011 ac_cpp='$CPP $CPPFLAGS'
17012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17016 CC="$lt_save_CC"
17018 else
17019 tagname=""
17023 GCJ)
17024 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17027 # Source file extension for Java test sources.
17028 ac_ext=java
17030 # Object file extension for compiled Java test sources.
17031 objext=o
17032 objext_GCJ=$objext
17034 # Code to be used in simple compile tests
17035 lt_simple_compile_test_code="class foo {}"
17037 # Code to be used in simple link tests
17038 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17042 # If no C compiler was specified, use CC.
17043 LTCC=${LTCC-"$CC"}
17045 # If no C compiler flags were specified, use CFLAGS.
17046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17048 # Allow CC to be a program name with arguments.
17049 compiler=$CC
17052 # save warnings/boilerplate of simple test code
17053 ac_outfile=conftest.$ac_objext
17054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17056 _lt_compiler_boilerplate=`cat conftest.err`
17057 $rm conftest*
17059 ac_outfile=conftest.$ac_objext
17060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17062 _lt_linker_boilerplate=`cat conftest.err`
17063 $rm -r conftest*
17066 # Allow CC to be a program name with arguments.
17067 lt_save_CC="$CC"
17068 CC=${GCJ-"gcj"}
17069 compiler=$CC
17070 compiler_GCJ=$CC
17071 for cc_temp in $compiler""; do
17072 case $cc_temp in
17073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17075 \-*) ;;
17076 *) break;;
17077 esac
17078 done
17079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17082 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17083 archive_cmds_need_lc_GCJ=no
17085 old_archive_cmds_GCJ=$old_archive_cmds
17088 lt_prog_compiler_no_builtin_flag_GCJ=
17090 if test "$GCC" = yes; then
17091 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17094 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17095 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17096 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17097 $as_echo_n "(cached) " >&6
17098 else
17099 lt_cv_prog_compiler_rtti_exceptions=no
17100 ac_outfile=conftest.$ac_objext
17101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17102 lt_compiler_flag="-fno-rtti -fno-exceptions"
17103 # Insert the option either (1) after the last *FLAGS variable, or
17104 # (2) before a word containing "conftest.", or (3) at the end.
17105 # Note that $ac_compile itself does not contain backslashes and begins
17106 # with a dollar sign (not a hyphen), so the echo should work correctly.
17107 # The option is referenced via a variable to avoid confusing sed.
17108 lt_compile=`echo "$ac_compile" | $SED \
17109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17111 -e 's:$: $lt_compiler_flag:'`
17112 (eval echo "\"\$as_me:17112: $lt_compile\"" >&5)
17113 (eval "$lt_compile" 2>conftest.err)
17114 ac_status=$?
17115 cat conftest.err >&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 if (exit $ac_status) && test -s "$ac_outfile"; then
17118 # The compiler can only warn and ignore the option if not recognized
17119 # So say no if there are warnings other than the usual output.
17120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17123 lt_cv_prog_compiler_rtti_exceptions=yes
17126 $rm conftest*
17129 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17130 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17133 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17134 else
17140 lt_prog_compiler_wl_GCJ=
17141 lt_prog_compiler_pic_GCJ=
17142 lt_prog_compiler_static_GCJ=
17144 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17147 if test "$GCC" = yes; then
17148 lt_prog_compiler_wl_GCJ='-Wl,'
17149 lt_prog_compiler_static_GCJ='-static'
17151 case $host_os in
17152 aix*)
17153 # All AIX code is PIC.
17154 if test "$host_cpu" = ia64; then
17155 # AIX 5 now supports IA64 processor
17156 lt_prog_compiler_static_GCJ='-Bstatic'
17160 amigaos*)
17161 # FIXME: we need at least 68020 code to build shared libraries, but
17162 # adding the `-m68020' flag to GCC prevents building anything better,
17163 # like `-m68040'.
17164 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17168 # PIC is the default for these OSes.
17171 mingw* | cygwin* | pw32* | os2*)
17172 # This hack is so that the source file can tell whether it is being
17173 # built for inclusion in a dll (and should export symbols for example).
17174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17175 # (--disable-auto-import) libraries
17179 darwin* | rhapsody*)
17180 # PIC is the default on this platform
17181 # Common symbols not allowed in MH_DYLIB files
17182 lt_prog_compiler_pic_GCJ='-fno-common'
17185 interix[3-9]*)
17186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17187 # Instead, we relocate shared libraries at runtime.
17190 msdosdjgpp*)
17191 # Just because we use GCC doesn't mean we suddenly get shared libraries
17192 # on systems that don't support them.
17193 lt_prog_compiler_can_build_shared_GCJ=no
17194 enable_shared=no
17197 sysv4*MP*)
17198 if test -d /usr/nec; then
17199 lt_prog_compiler_pic_GCJ=-Kconform_pic
17203 hpux*)
17204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17205 # not for PA HP-UX.
17206 case $host_cpu in
17207 hppa*64*|ia64*)
17208 # +Z the default
17211 lt_prog_compiler_pic_GCJ='-fPIC'
17213 esac
17217 lt_prog_compiler_pic_GCJ='-fPIC'
17219 esac
17220 else
17221 # PORTME Check for flag to pass linker flags through the system compiler.
17222 case $host_os in
17223 aix*)
17224 lt_prog_compiler_wl_GCJ='-Wl,'
17225 if test "$host_cpu" = ia64; then
17226 # AIX 5 now supports IA64 processor
17227 lt_prog_compiler_static_GCJ='-Bstatic'
17228 else
17229 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17232 darwin*)
17233 # PIC is the default on this platform
17234 # Common symbols not allowed in MH_DYLIB files
17235 case $cc_basename in
17236 xlc*)
17237 lt_prog_compiler_pic_GCJ='-qnocommon'
17238 lt_prog_compiler_wl_GCJ='-Wl,'
17240 esac
17243 mingw* | cygwin* | pw32* | os2*)
17244 # This hack is so that the source file can tell whether it is being
17245 # built for inclusion in a dll (and should export symbols for example).
17249 hpux9* | hpux10* | hpux11*)
17250 lt_prog_compiler_wl_GCJ='-Wl,'
17251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17252 # not for PA HP-UX.
17253 case $host_cpu in
17254 hppa*64*|ia64*)
17255 # +Z the default
17258 lt_prog_compiler_pic_GCJ='+Z'
17260 esac
17261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17262 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17265 irix5* | irix6* | nonstopux*)
17266 lt_prog_compiler_wl_GCJ='-Wl,'
17267 # PIC (with -KPIC) is the default.
17268 lt_prog_compiler_static_GCJ='-non_shared'
17271 newsos6)
17272 lt_prog_compiler_pic_GCJ='-KPIC'
17273 lt_prog_compiler_static_GCJ='-Bstatic'
17276 linux* | k*bsd*-gnu)
17277 case $cc_basename in
17278 icc* | ecc*)
17279 lt_prog_compiler_wl_GCJ='-Wl,'
17280 lt_prog_compiler_pic_GCJ='-KPIC'
17281 lt_prog_compiler_static_GCJ='-static'
17283 pgcc* | pgf77* | pgf90* | pgf95*)
17284 # Portland Group compilers (*not* the Pentium gcc compiler,
17285 # which looks to be a dead project)
17286 lt_prog_compiler_wl_GCJ='-Wl,'
17287 lt_prog_compiler_pic_GCJ='-fpic'
17288 lt_prog_compiler_static_GCJ='-Bstatic'
17290 ccc*)
17291 lt_prog_compiler_wl_GCJ='-Wl,'
17292 # All Alpha code is PIC.
17293 lt_prog_compiler_static_GCJ='-non_shared'
17296 case `$CC -V 2>&1 | sed 5q` in
17297 *Sun\ C*)
17298 # Sun C 5.9
17299 lt_prog_compiler_pic_GCJ='-KPIC'
17300 lt_prog_compiler_static_GCJ='-Bstatic'
17301 lt_prog_compiler_wl_GCJ='-Wl,'
17303 *Sun\ F*)
17304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17305 lt_prog_compiler_pic_GCJ='-KPIC'
17306 lt_prog_compiler_static_GCJ='-Bstatic'
17307 lt_prog_compiler_wl_GCJ=''
17309 esac
17311 esac
17314 osf3* | osf4* | osf5*)
17315 lt_prog_compiler_wl_GCJ='-Wl,'
17316 # All OSF/1 code is PIC.
17317 lt_prog_compiler_static_GCJ='-non_shared'
17320 rdos*)
17321 lt_prog_compiler_static_GCJ='-non_shared'
17324 solaris*)
17325 lt_prog_compiler_pic_GCJ='-KPIC'
17326 lt_prog_compiler_static_GCJ='-Bstatic'
17327 case $cc_basename in
17328 f77* | f90* | f95*)
17329 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17331 lt_prog_compiler_wl_GCJ='-Wl,';;
17332 esac
17335 sunos4*)
17336 lt_prog_compiler_wl_GCJ='-Qoption ld '
17337 lt_prog_compiler_pic_GCJ='-PIC'
17338 lt_prog_compiler_static_GCJ='-Bstatic'
17341 sysv4 | sysv4.2uw2* | sysv4.3*)
17342 lt_prog_compiler_wl_GCJ='-Wl,'
17343 lt_prog_compiler_pic_GCJ='-KPIC'
17344 lt_prog_compiler_static_GCJ='-Bstatic'
17347 sysv4*MP*)
17348 if test -d /usr/nec ;then
17349 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17350 lt_prog_compiler_static_GCJ='-Bstatic'
17354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17355 lt_prog_compiler_wl_GCJ='-Wl,'
17356 lt_prog_compiler_pic_GCJ='-KPIC'
17357 lt_prog_compiler_static_GCJ='-Bstatic'
17360 unicos*)
17361 lt_prog_compiler_wl_GCJ='-Wl,'
17362 lt_prog_compiler_can_build_shared_GCJ=no
17365 uts4*)
17366 lt_prog_compiler_pic_GCJ='-pic'
17367 lt_prog_compiler_static_GCJ='-Bstatic'
17371 lt_prog_compiler_can_build_shared_GCJ=no
17373 esac
17376 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17377 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17380 # Check to make sure the PIC flag actually works.
17382 if test -n "$lt_prog_compiler_pic_GCJ"; then
17384 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17385 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17386 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17387 $as_echo_n "(cached) " >&6
17388 else
17389 lt_cv_prog_compiler_pic_works_GCJ=no
17390 ac_outfile=conftest.$ac_objext
17391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17392 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17393 # Insert the option either (1) after the last *FLAGS variable, or
17394 # (2) before a word containing "conftest.", or (3) at the end.
17395 # Note that $ac_compile itself does not contain backslashes and begins
17396 # with a dollar sign (not a hyphen), so the echo should work correctly.
17397 # The option is referenced via a variable to avoid confusing sed.
17398 lt_compile=`echo "$ac_compile" | $SED \
17399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401 -e 's:$: $lt_compiler_flag:'`
17402 (eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
17403 (eval "$lt_compile" 2>conftest.err)
17404 ac_status=$?
17405 cat conftest.err >&5
17406 echo "$as_me:17406: \$? = $ac_status" >&5
17407 if (exit $ac_status) && test -s "$ac_outfile"; then
17408 # The compiler can only warn and ignore the option if not recognized
17409 # So say no if there are warnings other than the usual output.
17410 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17413 lt_cv_prog_compiler_pic_works_GCJ=yes
17416 $rm conftest*
17419 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17420 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17422 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17423 case $lt_prog_compiler_pic_GCJ in
17424 "" | " "*) ;;
17425 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17426 esac
17427 else
17428 lt_prog_compiler_pic_GCJ=
17429 lt_prog_compiler_can_build_shared_GCJ=no
17433 case $host_os in
17434 # For platforms which do not support PIC, -DPIC is meaningless:
17435 *djgpp*)
17436 lt_prog_compiler_pic_GCJ=
17439 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17441 esac
17444 # Check to make sure the static flag actually works.
17446 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17447 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17448 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17449 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17450 $as_echo_n "(cached) " >&6
17451 else
17452 lt_cv_prog_compiler_static_works_GCJ=no
17453 save_LDFLAGS="$LDFLAGS"
17454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17457 # The linker can only warn and ignore the option if not recognized
17458 # So say no if there are warnings
17459 if test -s conftest.err; then
17460 # Append any errors to the config.log.
17461 cat conftest.err 1>&5
17462 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17464 if diff conftest.exp conftest.er2 >/dev/null; then
17465 lt_cv_prog_compiler_static_works_GCJ=yes
17467 else
17468 lt_cv_prog_compiler_static_works_GCJ=yes
17471 $rm -r conftest*
17472 LDFLAGS="$save_LDFLAGS"
17475 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17476 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17478 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17480 else
17481 lt_prog_compiler_static_GCJ=
17485 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17487 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17488 $as_echo_n "(cached) " >&6
17489 else
17490 lt_cv_prog_compiler_c_o_GCJ=no
17491 $rm -r conftest 2>/dev/null
17492 mkdir conftest
17493 cd conftest
17494 mkdir out
17495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17497 lt_compiler_flag="-o out/conftest2.$ac_objext"
17498 # Insert the option either (1) after the last *FLAGS variable, or
17499 # (2) before a word containing "conftest.", or (3) at the end.
17500 # Note that $ac_compile itself does not contain backslashes and begins
17501 # with a dollar sign (not a hyphen), so the echo should work correctly.
17502 lt_compile=`echo "$ac_compile" | $SED \
17503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17505 -e 's:$: $lt_compiler_flag:'`
17506 (eval echo "\"\$as_me:17506: $lt_compile\"" >&5)
17507 (eval "$lt_compile" 2>out/conftest.err)
17508 ac_status=$?
17509 cat out/conftest.err >&5
17510 echo "$as_me:17510: \$? = $ac_status" >&5
17511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17512 then
17513 # The compiler can only warn and ignore the option if not recognized
17514 # So say no if there are warnings
17515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17518 lt_cv_prog_compiler_c_o_GCJ=yes
17521 chmod u+w . 2>&5
17522 $rm conftest*
17523 # SGI C++ compiler will create directory out/ii_files/ for
17524 # template instantiation
17525 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17526 $rm out/* && rmdir out
17527 cd ..
17528 rmdir conftest
17529 $rm conftest*
17532 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17533 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17536 hard_links="nottested"
17537 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17538 # do not overwrite the value of need_locks provided by the user
17539 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17540 $as_echo_n "checking if we can lock with hard links... " >&6; }
17541 hard_links=yes
17542 $rm conftest*
17543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17544 touch conftest.a
17545 ln conftest.a conftest.b 2>&5 || hard_links=no
17546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17547 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17548 $as_echo "$hard_links" >&6; }
17549 if test "$hard_links" = no; then
17550 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17551 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17552 need_locks=warn
17554 else
17555 need_locks=no
17558 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17559 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17561 runpath_var=
17562 allow_undefined_flag_GCJ=
17563 enable_shared_with_static_runtimes_GCJ=no
17564 archive_cmds_GCJ=
17565 archive_expsym_cmds_GCJ=
17566 old_archive_From_new_cmds_GCJ=
17567 old_archive_from_expsyms_cmds_GCJ=
17568 export_dynamic_flag_spec_GCJ=
17569 whole_archive_flag_spec_GCJ=
17570 thread_safe_flag_spec_GCJ=
17571 hardcode_libdir_flag_spec_GCJ=
17572 hardcode_libdir_flag_spec_ld_GCJ=
17573 hardcode_libdir_separator_GCJ=
17574 hardcode_direct_GCJ=no
17575 hardcode_minus_L_GCJ=no
17576 hardcode_shlibpath_var_GCJ=unsupported
17577 link_all_deplibs_GCJ=unknown
17578 hardcode_automatic_GCJ=no
17579 module_cmds_GCJ=
17580 module_expsym_cmds_GCJ=
17581 always_export_symbols_GCJ=no
17582 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17583 # include_expsyms should be a list of space-separated symbols to be *always*
17584 # included in the symbol list
17585 include_expsyms_GCJ=
17586 # exclude_expsyms can be an extended regexp of symbols to exclude
17587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17589 # as well as any symbol that contains `d'.
17590 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17592 # platforms (ab)use it in PIC code, but their linkers get confused if
17593 # the symbol is explicitly referenced. Since portable code cannot
17594 # rely on this symbol name, it's probably fine to never include it in
17595 # preloaded symbol tables.
17596 # Exclude shared library initialization/finalization symbols.
17597 extract_expsyms_cmds=
17598 # Just being paranoid about ensuring that cc_basename is set.
17599 for cc_temp in $compiler""; do
17600 case $cc_temp in
17601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17603 \-*) ;;
17604 *) break;;
17605 esac
17606 done
17607 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17609 case $host_os in
17610 cygwin* | mingw* | pw32*)
17611 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17612 # When not using gcc, we currently assume that we are using
17613 # Microsoft Visual C++.
17614 if test "$GCC" != yes; then
17615 with_gnu_ld=no
17618 interix*)
17619 # we just hope/assume this is gcc and not c89 (= MSVC++)
17620 with_gnu_ld=yes
17622 openbsd*)
17623 with_gnu_ld=no
17625 esac
17627 ld_shlibs_GCJ=yes
17628 if test "$with_gnu_ld" = yes; then
17629 # If archive_cmds runs LD, not CC, wlarc should be empty
17630 wlarc='${wl}'
17632 # Set some defaults for GNU ld with shared library support. These
17633 # are reset later if shared libraries are not supported. Putting them
17634 # here allows them to be overridden if necessary.
17635 runpath_var=LD_RUN_PATH
17636 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17637 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17638 # ancient GNU ld didn't support --whole-archive et. al.
17639 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17640 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17641 else
17642 whole_archive_flag_spec_GCJ=
17644 supports_anon_versioning=no
17645 case `$LD -v 2>/dev/null` in
17646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17649 *\ 2.11.*) ;; # other 2.11 versions
17650 *) supports_anon_versioning=yes ;;
17651 esac
17653 # See if GNU ld supports shared libraries.
17654 case $host_os in
17655 aix[3-9]*)
17656 # On AIX/PPC, the GNU linker is very broken
17657 if test "$host_cpu" != ia64; then
17658 ld_shlibs_GCJ=no
17659 cat <<EOF 1>&2
17661 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17662 *** to be unable to reliably create shared libraries on AIX.
17663 *** Therefore, libtool is disabling shared libraries support. If you
17664 *** really care for shared libraries, you may want to modify your PATH
17665 *** so that a non-GNU linker is found, and then restart.
17671 amigaos*)
17672 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)'
17673 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17674 hardcode_minus_L_GCJ=yes
17676 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17677 # that the semantics of dynamic libraries on AmigaOS, at least up
17678 # to version 4, is to share data among multiple programs linked
17679 # with the same dynamic library. Since this doesn't match the
17680 # behavior of shared libraries on other platforms, we can't use
17681 # them.
17682 ld_shlibs_GCJ=no
17685 beos*)
17686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687 allow_undefined_flag_GCJ=unsupported
17688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17689 # support --undefined. This deserves some investigation. FIXME
17690 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17691 else
17692 ld_shlibs_GCJ=no
17696 cygwin* | mingw* | pw32*)
17697 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17698 # as there is no search path for DLLs.
17699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17700 allow_undefined_flag_GCJ=unsupported
17701 always_export_symbols_GCJ=no
17702 enable_shared_with_static_runtimes_GCJ=yes
17703 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17706 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17707 # If the export-symbols file already is a .def file (1st line
17708 # is EXPORTS), use it as is; otherwise, prepend...
17709 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17710 cp $export_symbols $output_objdir/$soname.def;
17711 else
17712 echo EXPORTS > $output_objdir/$soname.def;
17713 cat $export_symbols >> $output_objdir/$soname.def;
17715 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17716 else
17717 ld_shlibs_GCJ=no
17721 interix[3-9]*)
17722 hardcode_direct_GCJ=no
17723 hardcode_shlibpath_var_GCJ=no
17724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17725 export_dynamic_flag_spec_GCJ='${wl}-E'
17726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17727 # Instead, shared libraries are loaded at an image base (0x10000000 by
17728 # default) and relocated if they conflict, which is a slow very memory
17729 # consuming and fragmenting process. To avoid this, we pick a random,
17730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17731 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17732 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'
17733 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'
17736 gnu* | linux* | k*bsd*-gnu)
17737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17738 tmp_addflag=
17739 case $cc_basename,$host_cpu in
17740 pgcc*) # Portland Group C compiler
17741 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'
17742 tmp_addflag=' $pic_flag'
17744 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17745 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'
17746 tmp_addflag=' $pic_flag -Mnomain' ;;
17747 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17748 tmp_addflag=' -i_dynamic' ;;
17749 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17750 tmp_addflag=' -i_dynamic -nofor_main' ;;
17751 ifc* | ifort*) # Intel Fortran compiler
17752 tmp_addflag=' -nofor_main' ;;
17753 esac
17754 case `$CC -V 2>&1 | sed 5q` in
17755 *Sun\ C*) # Sun C 5.9
17756 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17757 tmp_sharedflag='-G' ;;
17758 *Sun\ F*) # Sun Fortran 8.3
17759 tmp_sharedflag='-G' ;;
17761 tmp_sharedflag='-shared' ;;
17762 esac
17763 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17765 if test $supports_anon_versioning = yes; then
17766 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17768 $echo "local: *; };" >> $output_objdir/$libname.ver~
17769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17771 else
17772 ld_shlibs_GCJ=no
17776 netbsd*)
17777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17778 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17779 wlarc=
17780 else
17781 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17782 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17786 solaris*)
17787 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17788 ld_shlibs_GCJ=no
17789 cat <<EOF 1>&2
17791 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17792 *** create shared libraries on Solaris systems. Therefore, libtool
17793 *** is disabling shared libraries support. We urge you to upgrade GNU
17794 *** binutils to release 2.9.1 or newer. Another option is to modify
17795 *** your PATH or compiler configuration so that the native linker is
17796 *** used, and then restart.
17799 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17801 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17802 else
17803 ld_shlibs_GCJ=no
17807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17808 case `$LD -v 2>&1` in
17809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17810 ld_shlibs_GCJ=no
17811 cat <<_LT_EOF 1>&2
17813 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17814 *** reliably create shared libraries on SCO systems. Therefore, libtool
17815 *** is disabling shared libraries support. We urge you to upgrade GNU
17816 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17817 *** your PATH or compiler configuration so that the native linker is
17818 *** used, and then restart.
17820 _LT_EOF
17823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17824 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17827 else
17828 ld_shlibs_GCJ=no
17831 esac
17834 sunos4*)
17835 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17836 wlarc=
17837 hardcode_direct_GCJ=yes
17838 hardcode_shlibpath_var_GCJ=no
17842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17845 else
17846 ld_shlibs_GCJ=no
17849 esac
17851 if test "$ld_shlibs_GCJ" = no; then
17852 runpath_var=
17853 hardcode_libdir_flag_spec_GCJ=
17854 export_dynamic_flag_spec_GCJ=
17855 whole_archive_flag_spec_GCJ=
17857 else
17858 # PORTME fill in a description of your system's linker (not GNU ld)
17859 case $host_os in
17860 aix3*)
17861 allow_undefined_flag_GCJ=unsupported
17862 always_export_symbols_GCJ=yes
17863 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'
17864 # Note: this linker hardcodes the directories in LIBPATH if there
17865 # are no directories specified by -L.
17866 hardcode_minus_L_GCJ=yes
17867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17868 # Neither direct hardcoding nor static linking is supported with a
17869 # broken collect2.
17870 hardcode_direct_GCJ=unsupported
17874 aix[4-9]*)
17875 if test "$host_cpu" = ia64; then
17876 # On IA64, the linker does run time linking by default, so we don't
17877 # have to do anything special.
17878 aix_use_runtimelinking=no
17879 exp_sym_flag='-Bexport'
17880 no_entry_flag=""
17881 else
17882 # If we're using GNU nm, then we don't want the "-C" option.
17883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17885 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'
17886 else
17887 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'
17889 aix_use_runtimelinking=no
17891 # Test if we are trying to use run time linking or normal
17892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17893 # need to do runtime linking.
17894 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17895 for ld_flag in $LDFLAGS; do
17896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17897 aix_use_runtimelinking=yes
17898 break
17900 done
17902 esac
17904 exp_sym_flag='-bexport'
17905 no_entry_flag='-bnoentry'
17908 # When large executables or shared objects are built, AIX ld can
17909 # have problems creating the table of contents. If linking a library
17910 # or program results in "error TOC overflow" add -mminimal-toc to
17911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17914 archive_cmds_GCJ=''
17915 hardcode_direct_GCJ=yes
17916 hardcode_libdir_separator_GCJ=':'
17917 link_all_deplibs_GCJ=yes
17919 if test "$GCC" = yes; then
17920 case $host_os in aix4.[012]|aix4.[012].*)
17921 # We only want to do this on AIX 4.2 and lower, the check
17922 # below for broken collect2 doesn't work under 4.3+
17923 collect2name=`${CC} -print-prog-name=collect2`
17924 if test -f "$collect2name" && \
17925 strings "$collect2name" | grep resolve_lib_name >/dev/null
17926 then
17927 # We have reworked collect2
17929 else
17930 # We have old collect2
17931 hardcode_direct_GCJ=unsupported
17932 # It fails to find uninstalled libraries when the uninstalled
17933 # path is not listed in the libpath. Setting hardcode_minus_L
17934 # to unsupported forces relinking
17935 hardcode_minus_L_GCJ=yes
17936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17937 hardcode_libdir_separator_GCJ=
17940 esac
17941 shared_flag='-shared'
17942 if test "$aix_use_runtimelinking" = yes; then
17943 shared_flag="$shared_flag "'${wl}-G'
17945 else
17946 # not using gcc
17947 if test "$host_cpu" = ia64; then
17948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17949 # chokes on -Wl,-G. The following line is correct:
17950 shared_flag='-G'
17951 else
17952 if test "$aix_use_runtimelinking" = yes; then
17953 shared_flag='${wl}-G'
17954 else
17955 shared_flag='${wl}-bM:SRE'
17960 # It seems that -bexpall does not export symbols beginning with
17961 # underscore (_), so it is better to generate a list of symbols to export.
17962 always_export_symbols_GCJ=yes
17963 if test "$aix_use_runtimelinking" = yes; then
17964 # Warning - without using the other runtime loading flags (-brtl),
17965 # -berok will link without error, but may produce a broken library.
17966 allow_undefined_flag_GCJ='-berok'
17967 # Determine the default libpath from the value encoded in an empty executable.
17968 cat >conftest.$ac_ext <<_ACEOF
17969 /* confdefs.h. */
17970 _ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17976 main ()
17980 return 0;
17982 _ACEOF
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17988 esac
17989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17990 $as_echo "$ac_try_echo") >&5
17991 (eval "$ac_link") 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest$ac_exeext && {
18001 test "$cross_compiling" = yes ||
18002 $as_test_x conftest$ac_exeext
18003 }; then
18005 lt_aix_libpath_sed='
18006 /Import File Strings/,/^$/ {
18007 /^0/ {
18008 s/^0 *\(.*\)$/\1/
18012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18013 # Check for a 64-bit object if we didn't find anything.
18014 if test -z "$aix_libpath"; then
18015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18017 else
18018 $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18024 rm -rf conftest.dSYM
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18026 conftest$ac_exeext conftest.$ac_ext
18027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18029 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18030 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"
18031 else
18032 if test "$host_cpu" = ia64; then
18033 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18034 allow_undefined_flag_GCJ="-z nodefs"
18035 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"
18036 else
18037 # Determine the default libpath from the value encoded in an empty executable.
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18046 main ()
18050 return 0;
18052 _ACEOF
18053 rm -f conftest.$ac_objext conftest$ac_exeext
18054 if { (ac_try="$ac_link"
18055 case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058 esac
18059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18060 $as_echo "$ac_try_echo") >&5
18061 (eval "$ac_link") 2>conftest.er1
18062 ac_status=$?
18063 grep -v '^ *+' conftest.er1 >conftest.err
18064 rm -f conftest.er1
18065 cat conftest.err >&5
18066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } && {
18068 test -z "$ac_c_werror_flag" ||
18069 test ! -s conftest.err
18070 } && test -s conftest$ac_exeext && {
18071 test "$cross_compiling" = yes ||
18072 $as_test_x conftest$ac_exeext
18073 }; then
18075 lt_aix_libpath_sed='
18076 /Import File Strings/,/^$/ {
18077 /^0/ {
18078 s/^0 *\(.*\)$/\1/
18082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18083 # Check for a 64-bit object if we didn't find anything.
18084 if test -z "$aix_libpath"; then
18085 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18087 else
18088 $as_echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18094 rm -rf conftest.dSYM
18095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 conftest$ac_exeext conftest.$ac_ext
18097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18099 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18100 # Warning - without using the other run time loading flags,
18101 # -berok will link without error, but may produce a broken library.
18102 no_undefined_flag_GCJ=' ${wl}-bernotok'
18103 allow_undefined_flag_GCJ=' ${wl}-berok'
18104 # Exported symbols can be pulled into shared objects from archives
18105 whole_archive_flag_spec_GCJ='$convenience'
18106 archive_cmds_need_lc_GCJ=yes
18107 # This is similar to how AIX traditionally builds its shared libraries.
18108 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'
18113 amigaos*)
18114 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)'
18115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18116 hardcode_minus_L_GCJ=yes
18117 # see comment about different semantics on the GNU ld section
18118 ld_shlibs_GCJ=no
18121 bsdi[45]*)
18122 export_dynamic_flag_spec_GCJ=-rdynamic
18125 cygwin* | mingw* | pw32*)
18126 # When not using gcc, we currently assume that we are using
18127 # Microsoft Visual C++.
18128 # hardcode_libdir_flag_spec is actually meaningless, as there is
18129 # no search path for DLLs.
18130 hardcode_libdir_flag_spec_GCJ=' '
18131 allow_undefined_flag_GCJ=unsupported
18132 # Tell ltmain to make .lib files, not .a files.
18133 libext=lib
18134 # Tell ltmain to make .dll files, not .so files.
18135 shrext_cmds=".dll"
18136 # FIXME: Setting linknames here is a bad hack.
18137 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18138 # The linker will automatically build a .lib file if we build a DLL.
18139 old_archive_From_new_cmds_GCJ='true'
18140 # FIXME: Should let the user specify the lib program.
18141 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18142 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18143 enable_shared_with_static_runtimes_GCJ=yes
18146 darwin* | rhapsody*)
18147 case $host_os in
18148 rhapsody* | darwin1.[012])
18149 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18151 *) # Darwin 1.3 on
18152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18153 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18154 else
18155 case ${MACOSX_DEPLOYMENT_TARGET} in
18156 10.[012])
18157 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18159 10.*)
18160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18162 esac
18165 esac
18166 archive_cmds_need_lc_GCJ=no
18167 hardcode_direct_GCJ=no
18168 hardcode_automatic_GCJ=yes
18169 hardcode_shlibpath_var_GCJ=unsupported
18170 whole_archive_flag_spec_GCJ=''
18171 link_all_deplibs_GCJ=yes
18172 if test "$GCC" = yes ; then
18173 output_verbose_link_cmd='echo'
18174 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18175 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18176 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18177 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18178 else
18179 case $cc_basename in
18180 xlc*)
18181 output_verbose_link_cmd='echo'
18182 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18185 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18186 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}'
18189 ld_shlibs_GCJ=no
18191 esac
18195 dgux*)
18196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18198 hardcode_shlibpath_var_GCJ=no
18201 freebsd1*)
18202 ld_shlibs_GCJ=no
18205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18206 # support. Future versions do this automatically, but an explicit c++rt0.o
18207 # does not break anything, and helps significantly (at the cost of a little
18208 # extra space).
18209 freebsd2.2*)
18210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18211 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18212 hardcode_direct_GCJ=yes
18213 hardcode_shlibpath_var_GCJ=no
18216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18217 freebsd2*)
18218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_direct_GCJ=yes
18220 hardcode_minus_L_GCJ=yes
18221 hardcode_shlibpath_var_GCJ=no
18224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18225 freebsd* | dragonfly*)
18226 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18228 hardcode_direct_GCJ=yes
18229 hardcode_shlibpath_var_GCJ=no
18232 hpux9*)
18233 if test "$GCC" = yes; then
18234 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'
18235 else
18236 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'
18238 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18239 hardcode_libdir_separator_GCJ=:
18240 hardcode_direct_GCJ=yes
18242 # hardcode_minus_L: Not really in the search PATH,
18243 # but as the default location of the library.
18244 hardcode_minus_L_GCJ=yes
18245 export_dynamic_flag_spec_GCJ='${wl}-E'
18248 hpux10*)
18249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18250 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18251 else
18252 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18254 if test "$with_gnu_ld" = no; then
18255 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18256 hardcode_libdir_separator_GCJ=:
18258 hardcode_direct_GCJ=yes
18259 export_dynamic_flag_spec_GCJ='${wl}-E'
18261 # hardcode_minus_L: Not really in the search PATH,
18262 # but as the default location of the library.
18263 hardcode_minus_L_GCJ=yes
18267 hpux11*)
18268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18269 case $host_cpu in
18270 hppa*64*)
18271 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18273 ia64*)
18274 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18277 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18279 esac
18280 else
18281 case $host_cpu in
18282 hppa*64*)
18283 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18285 ia64*)
18286 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18291 esac
18293 if test "$with_gnu_ld" = no; then
18294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18295 hardcode_libdir_separator_GCJ=:
18297 case $host_cpu in
18298 hppa*64*|ia64*)
18299 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18300 hardcode_direct_GCJ=no
18301 hardcode_shlibpath_var_GCJ=no
18304 hardcode_direct_GCJ=yes
18305 export_dynamic_flag_spec_GCJ='${wl}-E'
18307 # hardcode_minus_L: Not really in the search PATH,
18308 # but as the default location of the library.
18309 hardcode_minus_L_GCJ=yes
18311 esac
18315 irix5* | irix6* | nonstopux*)
18316 if test "$GCC" = yes; then
18317 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'
18318 else
18319 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'
18320 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18323 hardcode_libdir_separator_GCJ=:
18324 link_all_deplibs_GCJ=yes
18327 netbsd*)
18328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18329 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18330 else
18331 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18334 hardcode_direct_GCJ=yes
18335 hardcode_shlibpath_var_GCJ=no
18338 newsos6)
18339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_direct_GCJ=yes
18341 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18342 hardcode_libdir_separator_GCJ=:
18343 hardcode_shlibpath_var_GCJ=no
18346 openbsd*)
18347 if test -f /usr/libexec/ld.so; then
18348 hardcode_direct_GCJ=yes
18349 hardcode_shlibpath_var_GCJ=no
18350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18351 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18354 export_dynamic_flag_spec_GCJ='${wl}-E'
18355 else
18356 case $host_os in
18357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18362 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18365 esac
18367 else
18368 ld_shlibs_GCJ=no
18372 os2*)
18373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18374 hardcode_minus_L_GCJ=yes
18375 allow_undefined_flag_GCJ=unsupported
18376 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'
18377 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18380 osf3*)
18381 if test "$GCC" = yes; then
18382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18383 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'
18384 else
18385 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18386 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'
18388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18389 hardcode_libdir_separator_GCJ=:
18392 osf4* | osf5*) # as osf3* with the addition of -msym flag
18393 if test "$GCC" = yes; then
18394 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18395 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'
18396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18397 else
18398 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18399 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'
18400 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~
18401 $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'
18403 # Both c and cxx compiler support -rpath directly
18404 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18406 hardcode_libdir_separator_GCJ=:
18409 solaris*)
18410 no_undefined_flag_GCJ=' -z text'
18411 if test "$GCC" = yes; then
18412 wlarc='${wl}'
18413 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18416 else
18417 wlarc=''
18418 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18423 hardcode_shlibpath_var_GCJ=no
18424 case $host_os in
18425 solaris2.[0-5] | solaris2.[0-5].*) ;;
18427 # The compiler driver will combine and reorder linker options,
18428 # but understands `-z linker_flag'. GCC discards it without `$wl',
18429 # but is careful enough not to reorder.
18430 # Supported since Solaris 2.6 (maybe 2.5.1?)
18431 if test "$GCC" = yes; then
18432 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18433 else
18434 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18437 esac
18438 link_all_deplibs_GCJ=yes
18441 sunos4*)
18442 if test "x$host_vendor" = xsequent; then
18443 # Use $CC to link under sequent, because it throws in some extra .o
18444 # files that make .init and .fini sections work.
18445 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18446 else
18447 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18450 hardcode_direct_GCJ=yes
18451 hardcode_minus_L_GCJ=yes
18452 hardcode_shlibpath_var_GCJ=no
18455 sysv4)
18456 case $host_vendor in
18457 sni)
18458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18459 hardcode_direct_GCJ=yes # is this really true???
18461 siemens)
18462 ## LD is ld it makes a PLAMLIB
18463 ## CC just makes a GrossModule.
18464 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18465 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18466 hardcode_direct_GCJ=no
18468 motorola)
18469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18470 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18472 esac
18473 runpath_var='LD_RUN_PATH'
18474 hardcode_shlibpath_var_GCJ=no
18477 sysv4.3*)
18478 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18479 hardcode_shlibpath_var_GCJ=no
18480 export_dynamic_flag_spec_GCJ='-Bexport'
18483 sysv4*MP*)
18484 if test -d /usr/nec; then
18485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18486 hardcode_shlibpath_var_GCJ=no
18487 runpath_var=LD_RUN_PATH
18488 hardcode_runpath_var=yes
18489 ld_shlibs_GCJ=yes
18493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18494 no_undefined_flag_GCJ='${wl}-z,text'
18495 archive_cmds_need_lc_GCJ=no
18496 hardcode_shlibpath_var_GCJ=no
18497 runpath_var='LD_RUN_PATH'
18499 if test "$GCC" = yes; then
18500 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18501 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18502 else
18503 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18504 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 sysv5* | sco3.2v5* | sco5v6*)
18509 # Note: We can NOT use -z defs as we might desire, because we do not
18510 # link with -lc, and that would cause any symbols used from libc to
18511 # always be unresolved, which means just about no library would
18512 # ever link correctly. If we're not using GNU ld we use -z text
18513 # though, which does catch some bad symbols but isn't as heavy-handed
18514 # as -z defs.
18515 no_undefined_flag_GCJ='${wl}-z,text'
18516 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18517 archive_cmds_need_lc_GCJ=no
18518 hardcode_shlibpath_var_GCJ=no
18519 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18520 hardcode_libdir_separator_GCJ=':'
18521 link_all_deplibs_GCJ=yes
18522 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18523 runpath_var='LD_RUN_PATH'
18525 if test "$GCC" = yes; then
18526 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18527 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18528 else
18529 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18530 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18534 uts4*)
18535 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18537 hardcode_shlibpath_var_GCJ=no
18541 ld_shlibs_GCJ=no
18543 esac
18546 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18547 $as_echo "$ld_shlibs_GCJ" >&6; }
18548 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18551 # Do we need to explicitly link libc?
18553 case "x$archive_cmds_need_lc_GCJ" in
18554 x|xyes)
18555 # Assume -lc should be added
18556 archive_cmds_need_lc_GCJ=yes
18558 if test "$enable_shared" = yes && test "$GCC" = yes; then
18559 case $archive_cmds_GCJ in
18560 *'~'*)
18561 # FIXME: we may have to deal with multi-command sequences.
18563 '$CC '*)
18564 # Test whether the compiler implicitly links with -lc since on some
18565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18566 # to ld, don't add -lc before -lgcc.
18567 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18569 $rm conftest*
18570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18573 (eval $ac_compile) 2>&5
18574 ac_status=$?
18575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } 2>conftest.err; then
18577 soname=conftest
18578 lib=conftest
18579 libobjs=conftest.$ac_objext
18580 deplibs=
18581 wl=$lt_prog_compiler_wl_GCJ
18582 pic_flag=$lt_prog_compiler_pic_GCJ
18583 compiler_flags=-v
18584 linker_flags=-v
18585 verstring=
18586 output_objdir=.
18587 libname=conftest
18588 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18589 allow_undefined_flag_GCJ=
18590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18591 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18592 ac_status=$?
18593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }
18595 then
18596 archive_cmds_need_lc_GCJ=no
18597 else
18598 archive_cmds_need_lc_GCJ=yes
18600 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18601 else
18602 cat conftest.err 1>&5
18604 $rm conftest*
18605 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18606 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18608 esac
18611 esac
18613 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18615 library_names_spec=
18616 libname_spec='lib$name'
18617 soname_spec=
18618 shrext_cmds=".so"
18619 postinstall_cmds=
18620 postuninstall_cmds=
18621 finish_cmds=
18622 finish_eval=
18623 shlibpath_var=
18624 shlibpath_overrides_runpath=unknown
18625 version_type=none
18626 dynamic_linker="$host_os ld.so"
18627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18629 need_lib_prefix=unknown
18630 hardcode_into_libs=no
18632 # when you set need_version to no, make sure it does not cause -set_version
18633 # flags to be left without arguments
18634 need_version=unknown
18636 case $host_os in
18637 aix3*)
18638 version_type=linux
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18640 shlibpath_var=LIBPATH
18642 # AIX 3 has no versioning support, so we append a major version to the name.
18643 soname_spec='${libname}${release}${shared_ext}$major'
18646 aix[4-9]*)
18647 version_type=linux
18648 need_lib_prefix=no
18649 need_version=no
18650 hardcode_into_libs=yes
18651 if test "$host_cpu" = ia64; then
18652 # AIX 5 supports IA64
18653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 else
18656 # With GCC up to 2.95.x, collect2 would create an import file
18657 # for dependence libraries. The import file would start with
18658 # the line `#! .'. This would cause the generated library to
18659 # depend on `.', always an invalid library. This was fixed in
18660 # development snapshots of GCC prior to 3.0.
18661 case $host_os in
18662 aix4 | aix4.[01] | aix4.[01].*)
18663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18664 echo ' yes '
18665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18667 else
18668 can_build_shared=no
18671 esac
18672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18673 # soname into executable. Probably we can add versioning support to
18674 # collect2, so additional links can be useful in future.
18675 if test "$aix_use_runtimelinking" = yes; then
18676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18677 # instead of lib<name>.a to let people know that these are not
18678 # typical AIX shared libraries.
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680 else
18681 # We preserve .a as extension for shared libraries through AIX4.2
18682 # and later when we are not doing run time linking.
18683 library_names_spec='${libname}${release}.a $libname.a'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18686 shlibpath_var=LIBPATH
18690 amigaos*)
18691 library_names_spec='$libname.ixlibrary $libname.a'
18692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18693 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'
18696 beos*)
18697 library_names_spec='${libname}${shared_ext}'
18698 dynamic_linker="$host_os ld.so"
18699 shlibpath_var=LIBRARY_PATH
18702 bsdi[45]*)
18703 version_type=linux
18704 need_version=no
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18711 # the default ld.so.conf also contains /usr/contrib/lib and
18712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18713 # libtool to hard-code these into programs
18716 cygwin* | mingw* | pw32*)
18717 version_type=windows
18718 shrext_cmds=".dll"
18719 need_version=no
18720 need_lib_prefix=no
18722 case $GCC,$host_os in
18723 yes,cygwin* | yes,mingw* | yes,pw32*)
18724 library_names_spec='$libname.dll.a'
18725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18726 postinstall_cmds='base_file=`basename \${file}`~
18727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18728 dldir=$destdir/`dirname \$dlpath`~
18729 test -d \$dldir || mkdir -p \$dldir~
18730 $install_prog $dir/$dlname \$dldir/$dlname~
18731 chmod a+x \$dldir/$dlname'
18732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18733 dlpath=$dir/\$dldll~
18734 $rm \$dlpath'
18735 shlibpath_overrides_runpath=yes
18737 case $host_os in
18738 cygwin*)
18739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18743 mingw*)
18744 # MinGW DLLs use traditional 'lib' prefix
18745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18748 # It is most probably a Windows format PATH printed by
18749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18750 # path with ; separators, and with drive letters. We can handle the
18751 # drive letters (cygwin fileutils understands them), so leave them,
18752 # especially as we might pass files found there to a mingw objdump,
18753 # which wouldn't understand a cygwinified path. Ahh.
18754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18755 else
18756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18759 pw32*)
18760 # pw32 DLLs use 'pw' prefix rather than 'lib'
18761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18763 esac
18767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18769 esac
18770 dynamic_linker='Win32 ld.exe'
18771 # FIXME: first we should search . and the directory the executable is in
18772 shlibpath_var=PATH
18775 darwin* | rhapsody*)
18776 dynamic_linker="$host_os dyld"
18777 version_type=darwin
18778 need_lib_prefix=no
18779 need_version=no
18780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18781 soname_spec='${libname}${release}${major}$shared_ext'
18782 shlibpath_overrides_runpath=yes
18783 shlibpath_var=DYLD_LIBRARY_PATH
18784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18789 dgux*)
18790 version_type=linux
18791 need_lib_prefix=no
18792 need_version=no
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18794 soname_spec='${libname}${release}${shared_ext}$major'
18795 shlibpath_var=LD_LIBRARY_PATH
18798 freebsd1*)
18799 dynamic_linker=no
18802 freebsd* | dragonfly*)
18803 # DragonFly does not have aout. When/if they implement a new
18804 # versioning mechanism, adjust this.
18805 if test -x /usr/bin/objformat; then
18806 objformat=`/usr/bin/objformat`
18807 else
18808 case $host_os in
18809 freebsd[123]*) objformat=aout ;;
18810 *) objformat=elf ;;
18811 esac
18813 version_type=freebsd-$objformat
18814 case $version_type in
18815 freebsd-elf*)
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18817 need_version=no
18818 need_lib_prefix=no
18820 freebsd-*)
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18822 need_version=yes
18824 esac
18825 shlibpath_var=LD_LIBRARY_PATH
18826 case $host_os in
18827 freebsd2*)
18828 shlibpath_overrides_runpath=yes
18830 freebsd3.[01]* | freebsdelf3.[01]*)
18831 shlibpath_overrides_runpath=yes
18832 hardcode_into_libs=yes
18834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18836 shlibpath_overrides_runpath=no
18837 hardcode_into_libs=yes
18839 *) # from 4.6 on, and DragonFly
18840 shlibpath_overrides_runpath=yes
18841 hardcode_into_libs=yes
18843 esac
18846 gnu*)
18847 version_type=linux
18848 need_lib_prefix=no
18849 need_version=no
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 hardcode_into_libs=yes
18856 hpux9* | hpux10* | hpux11*)
18857 # Give a soname corresponding to the major version so that dld.sl refuses to
18858 # link against other versions.
18859 version_type=sunos
18860 need_lib_prefix=no
18861 need_version=no
18862 case $host_cpu in
18863 ia64*)
18864 shrext_cmds='.so'
18865 hardcode_into_libs=yes
18866 dynamic_linker="$host_os dld.so"
18867 shlibpath_var=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 if test "X$HPUX_IA64_MODE" = X32; then
18872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18873 else
18874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18878 hppa*64*)
18879 shrext_cmds='.sl'
18880 hardcode_into_libs=yes
18881 dynamic_linker="$host_os dld.sl"
18882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885 soname_spec='${libname}${release}${shared_ext}$major'
18886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18890 shrext_cmds='.sl'
18891 dynamic_linker="$host_os dld.sl"
18892 shlibpath_var=SHLIB_PATH
18893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 soname_spec='${libname}${release}${shared_ext}$major'
18897 esac
18898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18899 postinstall_cmds='chmod 555 $lib'
18902 interix[3-9]*)
18903 version_type=linux
18904 need_lib_prefix=no
18905 need_version=no
18906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18907 soname_spec='${libname}${release}${shared_ext}$major'
18908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18909 shlibpath_var=LD_LIBRARY_PATH
18910 shlibpath_overrides_runpath=no
18911 hardcode_into_libs=yes
18914 irix5* | irix6* | nonstopux*)
18915 case $host_os in
18916 nonstopux*) version_type=nonstopux ;;
18918 if test "$lt_cv_prog_gnu_ld" = yes; then
18919 version_type=linux
18920 else
18921 version_type=irix
18922 fi ;;
18923 esac
18924 need_lib_prefix=no
18925 need_version=no
18926 soname_spec='${libname}${release}${shared_ext}$major'
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18928 case $host_os in
18929 irix5* | nonstopux*)
18930 libsuff= shlibsuff=
18933 case $LD in # libtool.m4 will add one of these switches to LD
18934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18935 libsuff= shlibsuff= libmagic=32-bit;;
18936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18937 libsuff=32 shlibsuff=N32 libmagic=N32;;
18938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18940 *) libsuff= shlibsuff= libmagic=never-match;;
18941 esac
18943 esac
18944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18945 shlibpath_overrides_runpath=no
18946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18948 hardcode_into_libs=yes
18951 # No shared lib support for Linux oldld, aout, or coff.
18952 linux*oldld* | linux*aout* | linux*coff*)
18953 dynamic_linker=no
18956 # This must be Linux ELF.
18957 linux* | k*bsd*-gnu)
18958 version_type=linux
18959 need_lib_prefix=no
18960 need_version=no
18961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18962 soname_spec='${libname}${release}${shared_ext}$major'
18963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18964 shlibpath_var=LD_LIBRARY_PATH
18965 shlibpath_overrides_runpath=no
18966 # This implies no fast_install, which is unacceptable.
18967 # Some rework will be needed to allow for fast_install
18968 # before this can be enabled.
18969 hardcode_into_libs=yes
18970 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18971 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18973 # Append ld.so.conf contents to the search path
18974 if test -f /etc/ld.so.conf; then
18975 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18976 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18979 # We used to test for /lib/ld.so.1 and disable shared libraries on
18980 # powerpc, because MkLinux only supported shared libraries with the
18981 # GNU dynamic linker. Since this was broken with cross compilers,
18982 # most powerpc-linux boxes support dynamic linking these days and
18983 # people can always --disable-shared, the test was removed, and we
18984 # assume the GNU/Linux dynamic linker is in use.
18985 dynamic_linker='GNU/Linux ld.so'
18988 netbsd*)
18989 version_type=sunos
18990 need_lib_prefix=no
18991 need_version=no
18992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18995 dynamic_linker='NetBSD (a.out) ld.so'
18996 else
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18998 soname_spec='${libname}${release}${shared_ext}$major'
18999 dynamic_linker='NetBSD ld.elf_so'
19001 shlibpath_var=LD_LIBRARY_PATH
19002 shlibpath_overrides_runpath=yes
19003 hardcode_into_libs=yes
19006 newsos6)
19007 version_type=linux
19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19009 shlibpath_var=LD_LIBRARY_PATH
19010 shlibpath_overrides_runpath=yes
19013 nto-qnx*)
19014 version_type=linux
19015 need_lib_prefix=no
19016 need_version=no
19017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19018 soname_spec='${libname}${release}${shared_ext}$major'
19019 shlibpath_var=LD_LIBRARY_PATH
19020 shlibpath_overrides_runpath=yes
19023 openbsd*)
19024 version_type=sunos
19025 sys_lib_dlsearch_path_spec="/usr/lib"
19026 need_lib_prefix=no
19027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19028 case $host_os in
19029 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19030 *) need_version=no ;;
19031 esac
19032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19034 shlibpath_var=LD_LIBRARY_PATH
19035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19036 case $host_os in
19037 openbsd2.[89] | openbsd2.[89].*)
19038 shlibpath_overrides_runpath=no
19041 shlibpath_overrides_runpath=yes
19043 esac
19044 else
19045 shlibpath_overrides_runpath=yes
19049 os2*)
19050 libname_spec='$name'
19051 shrext_cmds=".dll"
19052 need_lib_prefix=no
19053 library_names_spec='$libname${shared_ext} $libname.a'
19054 dynamic_linker='OS/2 ld.exe'
19055 shlibpath_var=LIBPATH
19058 osf3* | osf4* | osf5*)
19059 version_type=osf
19060 need_lib_prefix=no
19061 need_version=no
19062 soname_spec='${libname}${release}${shared_ext}$major'
19063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19064 shlibpath_var=LD_LIBRARY_PATH
19065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19069 rdos*)
19070 dynamic_linker=no
19073 solaris*)
19074 version_type=linux
19075 need_lib_prefix=no
19076 need_version=no
19077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19078 soname_spec='${libname}${release}${shared_ext}$major'
19079 shlibpath_var=LD_LIBRARY_PATH
19080 shlibpath_overrides_runpath=yes
19081 hardcode_into_libs=yes
19082 # ldd complains unless libraries are executable
19083 postinstall_cmds='chmod +x $lib'
19086 sunos4*)
19087 version_type=sunos
19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19090 shlibpath_var=LD_LIBRARY_PATH
19091 shlibpath_overrides_runpath=yes
19092 if test "$with_gnu_ld" = yes; then
19093 need_lib_prefix=no
19095 need_version=yes
19098 sysv4 | sysv4.3*)
19099 version_type=linux
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec='${libname}${release}${shared_ext}$major'
19102 shlibpath_var=LD_LIBRARY_PATH
19103 case $host_vendor in
19104 sni)
19105 shlibpath_overrides_runpath=no
19106 need_lib_prefix=no
19107 export_dynamic_flag_spec='${wl}-Blargedynsym'
19108 runpath_var=LD_RUN_PATH
19110 siemens)
19111 need_lib_prefix=no
19113 motorola)
19114 need_lib_prefix=no
19115 need_version=no
19116 shlibpath_overrides_runpath=no
19117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19119 esac
19122 sysv4*MP*)
19123 if test -d /usr/nec ;then
19124 version_type=linux
19125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19126 soname_spec='$libname${shared_ext}.$major'
19127 shlibpath_var=LD_LIBRARY_PATH
19131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19132 version_type=freebsd-elf
19133 need_lib_prefix=no
19134 need_version=no
19135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19136 soname_spec='${libname}${release}${shared_ext}$major'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 hardcode_into_libs=yes
19139 if test "$with_gnu_ld" = yes; then
19140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19141 shlibpath_overrides_runpath=no
19142 else
19143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19144 shlibpath_overrides_runpath=yes
19145 case $host_os in
19146 sco3.2v5*)
19147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19149 esac
19151 sys_lib_dlsearch_path_spec='/usr/lib'
19154 uts4*)
19155 version_type=linux
19156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19157 soname_spec='${libname}${release}${shared_ext}$major'
19158 shlibpath_var=LD_LIBRARY_PATH
19162 dynamic_linker=no
19164 esac
19165 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19166 $as_echo "$dynamic_linker" >&6; }
19167 test "$dynamic_linker" = no && can_build_shared=no
19169 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19170 $as_echo_n "(cached) " >&6
19171 else
19172 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19176 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19177 $as_echo_n "(cached) " >&6
19178 else
19179 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19182 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19184 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19185 if test "$GCC" = yes; then
19186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19189 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19190 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19191 hardcode_action_GCJ=
19192 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19193 test -n "$runpath_var_GCJ" || \
19194 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19196 # We can hardcode non-existant directories.
19197 if test "$hardcode_direct_GCJ" != no &&
19198 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19199 # have to relink, otherwise we might link with an installed library
19200 # when we should be linking with a yet-to-be-installed one
19201 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19202 test "$hardcode_minus_L_GCJ" != no; then
19203 # Linking always hardcodes the temporary library directory.
19204 hardcode_action_GCJ=relink
19205 else
19206 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19207 hardcode_action_GCJ=immediate
19209 else
19210 # We cannot hardcode anything, or else we can only hardcode existing
19211 # directories.
19212 hardcode_action_GCJ=unsupported
19214 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19215 $as_echo "$hardcode_action_GCJ" >&6; }
19217 if test "$hardcode_action_GCJ" = relink; then
19218 # Fast installation is not supported
19219 enable_fast_install=no
19220 elif test "$shlibpath_overrides_runpath" = yes ||
19221 test "$enable_shared" = no; then
19222 # Fast installation is not necessary
19223 enable_fast_install=needless
19227 # The else clause should only fire when bootstrapping the
19228 # libtool distribution, otherwise you forgot to ship ltmain.sh
19229 # with your package, and you will get complaints that there are
19230 # no rules to generate ltmain.sh.
19231 if test -f "$ltmain"; then
19232 # See if we are running on zsh, and set the options which allow our commands through
19233 # without removal of \ escapes.
19234 if test -n "${ZSH_VERSION+set}" ; then
19235 setopt NO_GLOB_SUBST
19237 # Now quote all the things that may contain metacharacters while being
19238 # careful not to overquote the AC_SUBSTed values. We take copies of the
19239 # variables and quote the copies for generation of the libtool script.
19240 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19241 SED SHELL STRIP \
19242 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19243 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19244 deplibs_check_method reload_flag reload_cmds need_locks \
19245 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19246 lt_cv_sys_global_symbol_to_c_name_address \
19247 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19248 old_postinstall_cmds old_postuninstall_cmds \
19249 compiler_GCJ \
19250 CC_GCJ \
19251 LD_GCJ \
19252 lt_prog_compiler_wl_GCJ \
19253 lt_prog_compiler_pic_GCJ \
19254 lt_prog_compiler_static_GCJ \
19255 lt_prog_compiler_no_builtin_flag_GCJ \
19256 export_dynamic_flag_spec_GCJ \
19257 thread_safe_flag_spec_GCJ \
19258 whole_archive_flag_spec_GCJ \
19259 enable_shared_with_static_runtimes_GCJ \
19260 old_archive_cmds_GCJ \
19261 old_archive_from_new_cmds_GCJ \
19262 predep_objects_GCJ \
19263 postdep_objects_GCJ \
19264 predeps_GCJ \
19265 postdeps_GCJ \
19266 compiler_lib_search_path_GCJ \
19267 compiler_lib_search_dirs_GCJ \
19268 archive_cmds_GCJ \
19269 archive_expsym_cmds_GCJ \
19270 postinstall_cmds_GCJ \
19271 postuninstall_cmds_GCJ \
19272 old_archive_from_expsyms_cmds_GCJ \
19273 allow_undefined_flag_GCJ \
19274 no_undefined_flag_GCJ \
19275 export_symbols_cmds_GCJ \
19276 hardcode_libdir_flag_spec_GCJ \
19277 hardcode_libdir_flag_spec_ld_GCJ \
19278 hardcode_libdir_separator_GCJ \
19279 hardcode_automatic_GCJ \
19280 module_cmds_GCJ \
19281 module_expsym_cmds_GCJ \
19282 lt_cv_prog_compiler_c_o_GCJ \
19283 fix_srcfile_path_GCJ \
19284 exclude_expsyms_GCJ \
19285 include_expsyms_GCJ; do
19287 case $var in
19288 old_archive_cmds_GCJ | \
19289 old_archive_from_new_cmds_GCJ | \
19290 archive_cmds_GCJ | \
19291 archive_expsym_cmds_GCJ | \
19292 module_cmds_GCJ | \
19293 module_expsym_cmds_GCJ | \
19294 old_archive_from_expsyms_cmds_GCJ | \
19295 export_symbols_cmds_GCJ | \
19296 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19297 postinstall_cmds | postuninstall_cmds | \
19298 old_postinstall_cmds | old_postuninstall_cmds | \
19299 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19300 # Double-quote double-evaled strings.
19301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19306 esac
19307 done
19309 case $lt_echo in
19310 *'\$0 --fallback-echo"')
19311 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19313 esac
19315 cfgfile="$ofile"
19317 cat <<__EOF__ >> "$cfgfile"
19318 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19322 # Shell to use when invoking shell scripts.
19323 SHELL=$lt_SHELL
19325 # Whether or not to build shared libraries.
19326 build_libtool_libs=$enable_shared
19328 # Whether or not to build static libraries.
19329 build_old_libs=$enable_static
19331 # Whether or not to add -lc for building shared libraries.
19332 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19334 # Whether or not to disallow shared libs when runtime libs are static
19335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19337 # Whether or not to optimize for fast installation.
19338 fast_install=$enable_fast_install
19340 # The host system.
19341 host_alias=$host_alias
19342 host=$host
19343 host_os=$host_os
19345 # The build system.
19346 build_alias=$build_alias
19347 build=$build
19348 build_os=$build_os
19350 # An echo program that does not interpret backslashes.
19351 echo=$lt_echo
19353 # The archiver.
19354 AR=$lt_AR
19355 AR_FLAGS=$lt_AR_FLAGS
19357 # A C compiler.
19358 LTCC=$lt_LTCC
19360 # LTCC compiler flags.
19361 LTCFLAGS=$lt_LTCFLAGS
19363 # A language-specific compiler.
19364 CC=$lt_compiler_GCJ
19366 # Is the compiler the GNU C compiler?
19367 with_gcc=$GCC_GCJ
19369 # An ERE matcher.
19370 EGREP=$lt_EGREP
19372 # The linker used to build libraries.
19373 LD=$lt_LD_GCJ
19375 # Whether we need hard or soft links.
19376 LN_S=$lt_LN_S
19378 # A BSD-compatible nm program.
19379 NM=$lt_NM
19381 # A symbol stripping program
19382 STRIP=$lt_STRIP
19384 # Used to examine libraries when file_magic_cmd begins "file"
19385 MAGIC_CMD=$MAGIC_CMD
19387 # Used on cygwin: DLL creation program.
19388 DLLTOOL="$DLLTOOL"
19390 # Used on cygwin: object dumper.
19391 OBJDUMP="$OBJDUMP"
19393 # Used on cygwin: assembler.
19394 AS="$AS"
19396 # The name of the directory that contains temporary libtool files.
19397 objdir=$objdir
19399 # How to create reloadable object files.
19400 reload_flag=$lt_reload_flag
19401 reload_cmds=$lt_reload_cmds
19403 # How to pass a linker flag through the compiler.
19404 wl=$lt_lt_prog_compiler_wl_GCJ
19406 # Object file suffix (normally "o").
19407 objext="$ac_objext"
19409 # Old archive suffix (normally "a").
19410 libext="$libext"
19412 # Shared library suffix (normally ".so").
19413 shrext_cmds='$shrext_cmds'
19415 # Executable file suffix (normally "").
19416 exeext="$exeext"
19418 # Additional compiler flags for building library objects.
19419 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19420 pic_mode=$pic_mode
19422 # What is the maximum length of a command?
19423 max_cmd_len=$lt_cv_sys_max_cmd_len
19425 # Does compiler simultaneously support -c and -o options?
19426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19428 # Must we lock files when doing compilation?
19429 need_locks=$lt_need_locks
19431 # Do we need the lib prefix for modules?
19432 need_lib_prefix=$need_lib_prefix
19434 # Do we need a version for libraries?
19435 need_version=$need_version
19437 # Whether dlopen is supported.
19438 dlopen_support=$enable_dlopen
19440 # Whether dlopen of programs is supported.
19441 dlopen_self=$enable_dlopen_self
19443 # Whether dlopen of statically linked programs is supported.
19444 dlopen_self_static=$enable_dlopen_self_static
19446 # Compiler flag to prevent dynamic linking.
19447 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19449 # Compiler flag to turn off builtin functions.
19450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19452 # Compiler flag to allow reflexive dlopens.
19453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19455 # Compiler flag to generate shared objects directly from archives.
19456 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19458 # Compiler flag to generate thread-safe objects.
19459 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19461 # Library versioning type.
19462 version_type=$version_type
19464 # Format of library name prefix.
19465 libname_spec=$lt_libname_spec
19467 # List of archive names. First name is the real one, the rest are links.
19468 # The last name is the one that the linker finds with -lNAME.
19469 library_names_spec=$lt_library_names_spec
19471 # The coded name of the library, if different from the real name.
19472 soname_spec=$lt_soname_spec
19474 # Commands used to build and install an old-style archive.
19475 RANLIB=$lt_RANLIB
19476 old_archive_cmds=$lt_old_archive_cmds_GCJ
19477 old_postinstall_cmds=$lt_old_postinstall_cmds
19478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19480 # Create an old-style archive from a shared archive.
19481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19483 # Create a temporary old-style archive to link instead of a shared archive.
19484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19486 # Commands used to build and install a shared archive.
19487 archive_cmds=$lt_archive_cmds_GCJ
19488 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19489 postinstall_cmds=$lt_postinstall_cmds
19490 postuninstall_cmds=$lt_postuninstall_cmds
19492 # Commands used to build a loadable module (assumed same as above if empty)
19493 module_cmds=$lt_module_cmds_GCJ
19494 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19496 # Commands to strip libraries.
19497 old_striplib=$lt_old_striplib
19498 striplib=$lt_striplib
19500 # Dependencies to place before the objects being linked to create a
19501 # shared library.
19502 predep_objects=$lt_predep_objects_GCJ
19504 # Dependencies to place after the objects being linked to create a
19505 # shared library.
19506 postdep_objects=$lt_postdep_objects_GCJ
19508 # Dependencies to place before the objects being linked to create a
19509 # shared library.
19510 predeps=$lt_predeps_GCJ
19512 # Dependencies to place after the objects being linked to create a
19513 # shared library.
19514 postdeps=$lt_postdeps_GCJ
19516 # The directories searched by this compiler when creating a shared
19517 # library
19518 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19520 # The library search path used internally by the compiler when linking
19521 # a shared library.
19522 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19524 # Method to check whether dependent libraries are shared objects.
19525 deplibs_check_method=$lt_deplibs_check_method
19527 # Command to use when deplibs_check_method == file_magic.
19528 file_magic_cmd=$lt_file_magic_cmd
19530 # Flag that allows shared libraries with undefined symbols to be built.
19531 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19533 # Flag that forces no undefined symbols.
19534 no_undefined_flag=$lt_no_undefined_flag_GCJ
19536 # Commands used to finish a libtool library installation in a directory.
19537 finish_cmds=$lt_finish_cmds
19539 # Same as above, but a single script fragment to be evaled but not shown.
19540 finish_eval=$lt_finish_eval
19542 # Take the output of nm and produce a listing of raw symbols and C names.
19543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19545 # Transform the output of nm in a proper C declaration
19546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19548 # Transform the output of nm in a C name address pair
19549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19551 # This is the shared library runtime path variable.
19552 runpath_var=$runpath_var
19554 # This is the shared library path variable.
19555 shlibpath_var=$shlibpath_var
19557 # Is shlibpath searched before the hard-coded library search path?
19558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19560 # How to hardcode a shared library path into an executable.
19561 hardcode_action=$hardcode_action_GCJ
19563 # Whether we should hardcode library paths into libraries.
19564 hardcode_into_libs=$hardcode_into_libs
19566 # Flag to hardcode \$libdir into a binary during linking.
19567 # This must work even if \$libdir does not exist.
19568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19570 # If ld is used when linking, flag to hardcode \$libdir into
19571 # a binary during linking. This must work even if \$libdir does
19572 # not exist.
19573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19575 # Whether we need a single -rpath flag with a separated argument.
19576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19579 # resulting binary.
19580 hardcode_direct=$hardcode_direct_GCJ
19582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19583 # resulting binary.
19584 hardcode_minus_L=$hardcode_minus_L_GCJ
19586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19587 # the resulting binary.
19588 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19590 # Set to yes if building a shared library automatically hardcodes DIR into the library
19591 # and all subsequent libraries and executables linked against it.
19592 hardcode_automatic=$hardcode_automatic_GCJ
19594 # Variables whose values should be saved in libtool wrapper scripts and
19595 # restored at relink time.
19596 variables_saved_for_relink="$variables_saved_for_relink"
19598 # Whether libtool must link a program against all its dependency libraries.
19599 link_all_deplibs=$link_all_deplibs_GCJ
19601 # Compile-time system search path for libraries
19602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19604 # Run-time system search path for libraries
19605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19607 # Fix the shell variable \$srcfile for the compiler.
19608 fix_srcfile_path=$lt_fix_srcfile_path
19610 # Set to yes if exported symbols are required.
19611 always_export_symbols=$always_export_symbols_GCJ
19613 # The commands to list exported symbols.
19614 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19616 # The commands to extract the exported symbol list from a shared archive.
19617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19619 # Symbols that should not be listed in the preloaded symbols.
19620 exclude_expsyms=$lt_exclude_expsyms_GCJ
19622 # Symbols that must always be exported.
19623 include_expsyms=$lt_include_expsyms_GCJ
19625 # ### END LIBTOOL TAG CONFIG: $tagname
19627 __EOF__
19630 else
19631 # If there is no Makefile yet, we rely on a make rule to execute
19632 # `config.status --recheck' to rerun these tests and create the
19633 # libtool script then.
19634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19635 if test -f "$ltmain_in"; then
19636 test -f Makefile && make "$ltmain"
19641 ac_ext=c
19642 ac_cpp='$CPP $CPPFLAGS'
19643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19647 CC="$lt_save_CC"
19649 else
19650 tagname=""
19657 # Source file extension for RC test sources.
19658 ac_ext=rc
19660 # Object file extension for compiled RC test sources.
19661 objext=o
19662 objext_RC=$objext
19664 # Code to be used in simple compile tests
19665 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19667 # Code to be used in simple link tests
19668 lt_simple_link_test_code="$lt_simple_compile_test_code"
19670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19672 # If no C compiler was specified, use CC.
19673 LTCC=${LTCC-"$CC"}
19675 # If no C compiler flags were specified, use CFLAGS.
19676 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19678 # Allow CC to be a program name with arguments.
19679 compiler=$CC
19682 # save warnings/boilerplate of simple test code
19683 ac_outfile=conftest.$ac_objext
19684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19686 _lt_compiler_boilerplate=`cat conftest.err`
19687 $rm conftest*
19689 ac_outfile=conftest.$ac_objext
19690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19692 _lt_linker_boilerplate=`cat conftest.err`
19693 $rm -r conftest*
19696 # Allow CC to be a program name with arguments.
19697 lt_save_CC="$CC"
19698 CC=${RC-"windres"}
19699 compiler=$CC
19700 compiler_RC=$CC
19701 for cc_temp in $compiler""; do
19702 case $cc_temp in
19703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19705 \-*) ;;
19706 *) break;;
19707 esac
19708 done
19709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19711 lt_cv_prog_compiler_c_o_RC=yes
19713 # The else clause should only fire when bootstrapping the
19714 # libtool distribution, otherwise you forgot to ship ltmain.sh
19715 # with your package, and you will get complaints that there are
19716 # no rules to generate ltmain.sh.
19717 if test -f "$ltmain"; then
19718 # See if we are running on zsh, and set the options which allow our commands through
19719 # without removal of \ escapes.
19720 if test -n "${ZSH_VERSION+set}" ; then
19721 setopt NO_GLOB_SUBST
19723 # Now quote all the things that may contain metacharacters while being
19724 # careful not to overquote the AC_SUBSTed values. We take copies of the
19725 # variables and quote the copies for generation of the libtool script.
19726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19727 SED SHELL STRIP \
19728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19730 deplibs_check_method reload_flag reload_cmds need_locks \
19731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19732 lt_cv_sys_global_symbol_to_c_name_address \
19733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19734 old_postinstall_cmds old_postuninstall_cmds \
19735 compiler_RC \
19736 CC_RC \
19737 LD_RC \
19738 lt_prog_compiler_wl_RC \
19739 lt_prog_compiler_pic_RC \
19740 lt_prog_compiler_static_RC \
19741 lt_prog_compiler_no_builtin_flag_RC \
19742 export_dynamic_flag_spec_RC \
19743 thread_safe_flag_spec_RC \
19744 whole_archive_flag_spec_RC \
19745 enable_shared_with_static_runtimes_RC \
19746 old_archive_cmds_RC \
19747 old_archive_from_new_cmds_RC \
19748 predep_objects_RC \
19749 postdep_objects_RC \
19750 predeps_RC \
19751 postdeps_RC \
19752 compiler_lib_search_path_RC \
19753 compiler_lib_search_dirs_RC \
19754 archive_cmds_RC \
19755 archive_expsym_cmds_RC \
19756 postinstall_cmds_RC \
19757 postuninstall_cmds_RC \
19758 old_archive_from_expsyms_cmds_RC \
19759 allow_undefined_flag_RC \
19760 no_undefined_flag_RC \
19761 export_symbols_cmds_RC \
19762 hardcode_libdir_flag_spec_RC \
19763 hardcode_libdir_flag_spec_ld_RC \
19764 hardcode_libdir_separator_RC \
19765 hardcode_automatic_RC \
19766 module_cmds_RC \
19767 module_expsym_cmds_RC \
19768 lt_cv_prog_compiler_c_o_RC \
19769 fix_srcfile_path_RC \
19770 exclude_expsyms_RC \
19771 include_expsyms_RC; do
19773 case $var in
19774 old_archive_cmds_RC | \
19775 old_archive_from_new_cmds_RC | \
19776 archive_cmds_RC | \
19777 archive_expsym_cmds_RC | \
19778 module_cmds_RC | \
19779 module_expsym_cmds_RC | \
19780 old_archive_from_expsyms_cmds_RC | \
19781 export_symbols_cmds_RC | \
19782 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19783 postinstall_cmds | postuninstall_cmds | \
19784 old_postinstall_cmds | old_postuninstall_cmds | \
19785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19786 # Double-quote double-evaled strings.
19787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19792 esac
19793 done
19795 case $lt_echo in
19796 *'\$0 --fallback-echo"')
19797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19799 esac
19801 cfgfile="$ofile"
19803 cat <<__EOF__ >> "$cfgfile"
19804 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19806 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19808 # Shell to use when invoking shell scripts.
19809 SHELL=$lt_SHELL
19811 # Whether or not to build shared libraries.
19812 build_libtool_libs=$enable_shared
19814 # Whether or not to build static libraries.
19815 build_old_libs=$enable_static
19817 # Whether or not to add -lc for building shared libraries.
19818 build_libtool_need_lc=$archive_cmds_need_lc_RC
19820 # Whether or not to disallow shared libs when runtime libs are static
19821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19823 # Whether or not to optimize for fast installation.
19824 fast_install=$enable_fast_install
19826 # The host system.
19827 host_alias=$host_alias
19828 host=$host
19829 host_os=$host_os
19831 # The build system.
19832 build_alias=$build_alias
19833 build=$build
19834 build_os=$build_os
19836 # An echo program that does not interpret backslashes.
19837 echo=$lt_echo
19839 # The archiver.
19840 AR=$lt_AR
19841 AR_FLAGS=$lt_AR_FLAGS
19843 # A C compiler.
19844 LTCC=$lt_LTCC
19846 # LTCC compiler flags.
19847 LTCFLAGS=$lt_LTCFLAGS
19849 # A language-specific compiler.
19850 CC=$lt_compiler_RC
19852 # Is the compiler the GNU C compiler?
19853 with_gcc=$GCC_RC
19855 # An ERE matcher.
19856 EGREP=$lt_EGREP
19858 # The linker used to build libraries.
19859 LD=$lt_LD_RC
19861 # Whether we need hard or soft links.
19862 LN_S=$lt_LN_S
19864 # A BSD-compatible nm program.
19865 NM=$lt_NM
19867 # A symbol stripping program
19868 STRIP=$lt_STRIP
19870 # Used to examine libraries when file_magic_cmd begins "file"
19871 MAGIC_CMD=$MAGIC_CMD
19873 # Used on cygwin: DLL creation program.
19874 DLLTOOL="$DLLTOOL"
19876 # Used on cygwin: object dumper.
19877 OBJDUMP="$OBJDUMP"
19879 # Used on cygwin: assembler.
19880 AS="$AS"
19882 # The name of the directory that contains temporary libtool files.
19883 objdir=$objdir
19885 # How to create reloadable object files.
19886 reload_flag=$lt_reload_flag
19887 reload_cmds=$lt_reload_cmds
19889 # How to pass a linker flag through the compiler.
19890 wl=$lt_lt_prog_compiler_wl_RC
19892 # Object file suffix (normally "o").
19893 objext="$ac_objext"
19895 # Old archive suffix (normally "a").
19896 libext="$libext"
19898 # Shared library suffix (normally ".so").
19899 shrext_cmds='$shrext_cmds'
19901 # Executable file suffix (normally "").
19902 exeext="$exeext"
19904 # Additional compiler flags for building library objects.
19905 pic_flag=$lt_lt_prog_compiler_pic_RC
19906 pic_mode=$pic_mode
19908 # What is the maximum length of a command?
19909 max_cmd_len=$lt_cv_sys_max_cmd_len
19911 # Does compiler simultaneously support -c and -o options?
19912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19914 # Must we lock files when doing compilation?
19915 need_locks=$lt_need_locks
19917 # Do we need the lib prefix for modules?
19918 need_lib_prefix=$need_lib_prefix
19920 # Do we need a version for libraries?
19921 need_version=$need_version
19923 # Whether dlopen is supported.
19924 dlopen_support=$enable_dlopen
19926 # Whether dlopen of programs is supported.
19927 dlopen_self=$enable_dlopen_self
19929 # Whether dlopen of statically linked programs is supported.
19930 dlopen_self_static=$enable_dlopen_self_static
19932 # Compiler flag to prevent dynamic linking.
19933 link_static_flag=$lt_lt_prog_compiler_static_RC
19935 # Compiler flag to turn off builtin functions.
19936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19938 # Compiler flag to allow reflexive dlopens.
19939 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19941 # Compiler flag to generate shared objects directly from archives.
19942 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19944 # Compiler flag to generate thread-safe objects.
19945 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19947 # Library versioning type.
19948 version_type=$version_type
19950 # Format of library name prefix.
19951 libname_spec=$lt_libname_spec
19953 # List of archive names. First name is the real one, the rest are links.
19954 # The last name is the one that the linker finds with -lNAME.
19955 library_names_spec=$lt_library_names_spec
19957 # The coded name of the library, if different from the real name.
19958 soname_spec=$lt_soname_spec
19960 # Commands used to build and install an old-style archive.
19961 RANLIB=$lt_RANLIB
19962 old_archive_cmds=$lt_old_archive_cmds_RC
19963 old_postinstall_cmds=$lt_old_postinstall_cmds
19964 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19966 # Create an old-style archive from a shared archive.
19967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19969 # Create a temporary old-style archive to link instead of a shared archive.
19970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19972 # Commands used to build and install a shared archive.
19973 archive_cmds=$lt_archive_cmds_RC
19974 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19975 postinstall_cmds=$lt_postinstall_cmds
19976 postuninstall_cmds=$lt_postuninstall_cmds
19978 # Commands used to build a loadable module (assumed same as above if empty)
19979 module_cmds=$lt_module_cmds_RC
19980 module_expsym_cmds=$lt_module_expsym_cmds_RC
19982 # Commands to strip libraries.
19983 old_striplib=$lt_old_striplib
19984 striplib=$lt_striplib
19986 # Dependencies to place before the objects being linked to create a
19987 # shared library.
19988 predep_objects=$lt_predep_objects_RC
19990 # Dependencies to place after the objects being linked to create a
19991 # shared library.
19992 postdep_objects=$lt_postdep_objects_RC
19994 # Dependencies to place before the objects being linked to create a
19995 # shared library.
19996 predeps=$lt_predeps_RC
19998 # Dependencies to place after the objects being linked to create a
19999 # shared library.
20000 postdeps=$lt_postdeps_RC
20002 # The directories searched by this compiler when creating a shared
20003 # library
20004 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20006 # The library search path used internally by the compiler when linking
20007 # a shared library.
20008 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20010 # Method to check whether dependent libraries are shared objects.
20011 deplibs_check_method=$lt_deplibs_check_method
20013 # Command to use when deplibs_check_method == file_magic.
20014 file_magic_cmd=$lt_file_magic_cmd
20016 # Flag that allows shared libraries with undefined symbols to be built.
20017 allow_undefined_flag=$lt_allow_undefined_flag_RC
20019 # Flag that forces no undefined symbols.
20020 no_undefined_flag=$lt_no_undefined_flag_RC
20022 # Commands used to finish a libtool library installation in a directory.
20023 finish_cmds=$lt_finish_cmds
20025 # Same as above, but a single script fragment to be evaled but not shown.
20026 finish_eval=$lt_finish_eval
20028 # Take the output of nm and produce a listing of raw symbols and C names.
20029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20031 # Transform the output of nm in a proper C declaration
20032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20034 # Transform the output of nm in a C name address pair
20035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20037 # This is the shared library runtime path variable.
20038 runpath_var=$runpath_var
20040 # This is the shared library path variable.
20041 shlibpath_var=$shlibpath_var
20043 # Is shlibpath searched before the hard-coded library search path?
20044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20046 # How to hardcode a shared library path into an executable.
20047 hardcode_action=$hardcode_action_RC
20049 # Whether we should hardcode library paths into libraries.
20050 hardcode_into_libs=$hardcode_into_libs
20052 # Flag to hardcode \$libdir into a binary during linking.
20053 # This must work even if \$libdir does not exist.
20054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20056 # If ld is used when linking, flag to hardcode \$libdir into
20057 # a binary during linking. This must work even if \$libdir does
20058 # not exist.
20059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20061 # Whether we need a single -rpath flag with a separated argument.
20062 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20064 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20065 # resulting binary.
20066 hardcode_direct=$hardcode_direct_RC
20068 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20069 # resulting binary.
20070 hardcode_minus_L=$hardcode_minus_L_RC
20072 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20073 # the resulting binary.
20074 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20076 # Set to yes if building a shared library automatically hardcodes DIR into the library
20077 # and all subsequent libraries and executables linked against it.
20078 hardcode_automatic=$hardcode_automatic_RC
20080 # Variables whose values should be saved in libtool wrapper scripts and
20081 # restored at relink time.
20082 variables_saved_for_relink="$variables_saved_for_relink"
20084 # Whether libtool must link a program against all its dependency libraries.
20085 link_all_deplibs=$link_all_deplibs_RC
20087 # Compile-time system search path for libraries
20088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20090 # Run-time system search path for libraries
20091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20093 # Fix the shell variable \$srcfile for the compiler.
20094 fix_srcfile_path=$lt_fix_srcfile_path
20096 # Set to yes if exported symbols are required.
20097 always_export_symbols=$always_export_symbols_RC
20099 # The commands to list exported symbols.
20100 export_symbols_cmds=$lt_export_symbols_cmds_RC
20102 # The commands to extract the exported symbol list from a shared archive.
20103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20105 # Symbols that should not be listed in the preloaded symbols.
20106 exclude_expsyms=$lt_exclude_expsyms_RC
20108 # Symbols that must always be exported.
20109 include_expsyms=$lt_include_expsyms_RC
20111 # ### END LIBTOOL TAG CONFIG: $tagname
20113 __EOF__
20116 else
20117 # If there is no Makefile yet, we rely on a make rule to execute
20118 # `config.status --recheck' to rerun these tests and create the
20119 # libtool script then.
20120 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20121 if test -f "$ltmain_in"; then
20122 test -f Makefile && make "$ltmain"
20127 ac_ext=c
20128 ac_cpp='$CPP $CPPFLAGS'
20129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133 CC="$lt_save_CC"
20138 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20139 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20140 { (exit 1); exit 1; }; }
20142 esac
20144 # Append the new tag name to the list of available tags.
20145 if test -n "$tagname" ; then
20146 available_tags="$available_tags $tagname"
20149 done
20150 IFS="$lt_save_ifs"
20152 # Now substitute the updated list of available tags.
20153 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20154 mv "${ofile}T" "$ofile"
20155 chmod +x "$ofile"
20156 else
20157 rm -f "${ofile}T"
20158 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20159 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20160 { (exit 1); exit 1; }; }
20166 # This can be used to rebuild libtool when needed
20167 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20169 # Always use our own libtool.
20170 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20172 # Prevent multiple expansion
20194 # Checks for libraries.
20196 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20199 $as_echo_n "(cached) " >&6
20200 else
20201 ac_check_lib_save_LIBS=$LIBS
20202 LIBS="-ldl $LIBS"
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h. */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20210 /* Override any GCC internal prototype to avoid an error.
20211 Use char because int might match the return type of a GCC
20212 builtin and then its argument prototype would still apply. */
20213 #ifdef __cplusplus
20214 extern "C"
20215 #endif
20216 char dlopen ();
20218 main ()
20220 return dlopen ();
20222 return 0;
20224 _ACEOF
20225 rm -f conftest.$ac_objext conftest$ac_exeext
20226 if { (ac_try="$ac_link"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233 (eval "$ac_link") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest$ac_exeext && {
20243 test "$cross_compiling" = yes ||
20244 $as_test_x conftest$ac_exeext
20245 }; then
20246 ac_cv_lib_dl_dlopen=yes
20247 else
20248 $as_echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_lib_dl_dlopen=no
20254 rm -rf conftest.dSYM
20255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256 conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20261 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define HAVE_LIBDL 1
20264 _ACEOF
20266 LIBS="-ldl $LIBS"
20271 # Checks for header files.
20272 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20273 # for constant arguments. Useless!
20274 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
20275 $as_echo_n "checking for working alloca.h... " >&6; }
20276 if test "${ac_cv_working_alloca_h+set}" = set; then
20277 $as_echo_n "(cached) " >&6
20278 else
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <alloca.h>
20287 main ()
20289 char *p = (char *) alloca (2 * sizeof (int));
20290 if (p) return 0;
20292 return 0;
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20302 $as_echo "$ac_try_echo") >&5
20303 (eval "$ac_link") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } && {
20310 test -z "$ac_c_werror_flag" ||
20311 test ! -s conftest.err
20312 } && test -s conftest$ac_exeext && {
20313 test "$cross_compiling" = yes ||
20314 $as_test_x conftest$ac_exeext
20315 }; then
20316 ac_cv_working_alloca_h=yes
20317 else
20318 $as_echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ac_cv_working_alloca_h=no
20324 rm -rf conftest.dSYM
20325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20326 conftest$ac_exeext conftest.$ac_ext
20328 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20329 $as_echo "$ac_cv_working_alloca_h" >&6; }
20330 if test $ac_cv_working_alloca_h = yes; then
20332 cat >>confdefs.h <<\_ACEOF
20333 #define HAVE_ALLOCA_H 1
20334 _ACEOF
20338 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
20339 $as_echo_n "checking for alloca... " >&6; }
20340 if test "${ac_cv_func_alloca_works+set}" = set; then
20341 $as_echo_n "(cached) " >&6
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 #ifdef __GNUC__
20350 # define alloca __builtin_alloca
20351 #else
20352 # ifdef _MSC_VER
20353 # include <malloc.h>
20354 # define alloca _alloca
20355 # else
20356 # ifdef HAVE_ALLOCA_H
20357 # include <alloca.h>
20358 # else
20359 # ifdef _AIX
20360 #pragma alloca
20361 # else
20362 # ifndef alloca /* predefined by HP cc +Olibcalls */
20363 char *alloca ();
20364 # endif
20365 # endif
20366 # endif
20367 # endif
20368 #endif
20371 main ()
20373 char *p = (char *) alloca (1);
20374 if (p) return 0;
20376 return 0;
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384 esac
20385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20386 $as_echo "$ac_try_echo") >&5
20387 (eval "$ac_link") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext && {
20397 test "$cross_compiling" = yes ||
20398 $as_test_x conftest$ac_exeext
20399 }; then
20400 ac_cv_func_alloca_works=yes
20401 else
20402 $as_echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_cv_func_alloca_works=no
20408 rm -rf conftest.dSYM
20409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20410 conftest$ac_exeext conftest.$ac_ext
20412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20413 $as_echo "$ac_cv_func_alloca_works" >&6; }
20415 if test $ac_cv_func_alloca_works = yes; then
20417 cat >>confdefs.h <<\_ACEOF
20418 #define HAVE_ALLOCA 1
20419 _ACEOF
20421 else
20422 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20423 # that cause trouble. Some versions do not even contain alloca or
20424 # contain a buggy version. If you still want to use their alloca,
20425 # use ar to extract alloca.o from them instead of compiling alloca.c.
20427 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20429 cat >>confdefs.h <<\_ACEOF
20430 #define C_ALLOCA 1
20431 _ACEOF
20434 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20435 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20436 if test "${ac_cv_os_cray+set}" = set; then
20437 $as_echo_n "(cached) " >&6
20438 else
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h. */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445 #if defined CRAY && ! defined CRAY2
20446 webecray
20447 #else
20448 wenotbecray
20449 #endif
20451 _ACEOF
20452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20453 $EGREP "webecray" >/dev/null 2>&1; then
20454 ac_cv_os_cray=yes
20455 else
20456 ac_cv_os_cray=no
20458 rm -f conftest*
20461 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20462 $as_echo "$ac_cv_os_cray" >&6; }
20463 if test $ac_cv_os_cray = yes; then
20464 for ac_func in _getb67 GETB67 getb67; do
20465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20466 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20467 $as_echo_n "checking for $ac_func... " >&6; }
20468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20469 $as_echo_n "(cached) " >&6
20470 else
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20479 #define $ac_func innocuous_$ac_func
20481 /* System header to define __stub macros and hopefully few prototypes,
20482 which can conflict with char $ac_func (); below.
20483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20484 <limits.h> exists even on freestanding compilers. */
20486 #ifdef __STDC__
20487 # include <limits.h>
20488 #else
20489 # include <assert.h>
20490 #endif
20492 #undef $ac_func
20494 /* Override any GCC internal prototype to avoid an error.
20495 Use char because int might match the return type of a GCC
20496 builtin and then its argument prototype would still apply. */
20497 #ifdef __cplusplus
20498 extern "C"
20499 #endif
20500 char $ac_func ();
20501 /* The GNU C library defines this for functions which it implements
20502 to always fail with ENOSYS. Some functions are actually named
20503 something starting with __ and the normal name is an alias. */
20504 #if defined __stub_$ac_func || defined __stub___$ac_func
20505 choke me
20506 #endif
20509 main ()
20511 return $ac_func ();
20513 return 0;
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521 esac
20522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20523 $as_echo "$ac_try_echo") >&5
20524 (eval "$ac_link") 2>conftest.er1
20525 ac_status=$?
20526 grep -v '^ *+' conftest.er1 >conftest.err
20527 rm -f conftest.er1
20528 cat conftest.err >&5
20529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest$ac_exeext && {
20534 test "$cross_compiling" = yes ||
20535 $as_test_x conftest$ac_exeext
20536 }; then
20537 eval "$as_ac_var=yes"
20538 else
20539 $as_echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20542 eval "$as_ac_var=no"
20545 rm -rf conftest.dSYM
20546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20547 conftest$ac_exeext conftest.$ac_ext
20549 ac_res=`eval 'as_val=${'$as_ac_var'}
20550 $as_echo "$as_val"'`
20551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20552 $as_echo "$ac_res" >&6; }
20553 as_val=`eval 'as_val=${'$as_ac_var'}
20554 $as_echo "$as_val"'`
20555 if test "x$as_val" = x""yes; then
20557 cat >>confdefs.h <<_ACEOF
20558 #define CRAY_STACKSEG_END $ac_func
20559 _ACEOF
20561 break
20564 done
20567 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20568 $as_echo_n "checking stack direction for C alloca... " >&6; }
20569 if test "${ac_cv_c_stack_direction+set}" = set; then
20570 $as_echo_n "(cached) " >&6
20571 else
20572 if test "$cross_compiling" = yes; then
20573 ac_cv_c_stack_direction=0
20574 else
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 $ac_includes_default
20583 find_stack_direction ()
20585 static char *addr = 0;
20586 auto char dummy;
20587 if (addr == 0)
20589 addr = &dummy;
20590 return find_stack_direction ();
20592 else
20593 return (&dummy > addr) ? 1 : -1;
20597 main ()
20599 return find_stack_direction () < 0;
20601 _ACEOF
20602 rm -f conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607 esac
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610 (eval "$ac_link") 2>&5
20611 ac_status=$?
20612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20617 esac
20618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20619 $as_echo "$ac_try_echo") >&5
20620 (eval "$ac_try") 2>&5
20621 ac_status=$?
20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_c_stack_direction=1
20625 else
20626 $as_echo "$as_me: program exited with status $ac_status" >&5
20627 $as_echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ( exit $ac_status )
20631 ac_cv_c_stack_direction=-1
20633 rm -rf conftest.dSYM
20634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20639 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20640 $as_echo "$ac_cv_c_stack_direction" >&6; }
20642 cat >>confdefs.h <<_ACEOF
20643 #define STACK_DIRECTION $ac_cv_c_stack_direction
20644 _ACEOF
20649 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20650 $as_echo_n "checking for ANSI C header files... " >&6; }
20651 if test "${ac_cv_header_stdc+set}" = set; then
20652 $as_echo_n "(cached) " >&6
20653 else
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h. */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 #include <stdlib.h>
20661 #include <stdarg.h>
20662 #include <string.h>
20663 #include <float.h>
20666 main ()
20670 return 0;
20672 _ACEOF
20673 rm -f conftest.$ac_objext
20674 if { (ac_try="$ac_compile"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678 esac
20679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20680 $as_echo "$ac_try_echo") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_cv_header_stdc=yes
20692 else
20693 $as_echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_cv_header_stdc=no
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20701 if test $ac_cv_header_stdc = yes; then
20702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <string.h>
20711 _ACEOF
20712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20713 $EGREP "memchr" >/dev/null 2>&1; then
20715 else
20716 ac_cv_header_stdc=no
20718 rm -f conftest*
20722 if test $ac_cv_header_stdc = yes; then
20723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <stdlib.h>
20732 _ACEOF
20733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20734 $EGREP "free" >/dev/null 2>&1; then
20736 else
20737 ac_cv_header_stdc=no
20739 rm -f conftest*
20743 if test $ac_cv_header_stdc = yes; then
20744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20745 if test "$cross_compiling" = yes; then
20747 else
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 #include <ctype.h>
20755 #include <stdlib.h>
20756 #if ((' ' & 0x0FF) == 0x020)
20757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20759 #else
20760 # define ISLOWER(c) \
20761 (('a' <= (c) && (c) <= 'i') \
20762 || ('j' <= (c) && (c) <= 'r') \
20763 || ('s' <= (c) && (c) <= 'z'))
20764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20765 #endif
20767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20769 main ()
20771 int i;
20772 for (i = 0; i < 256; i++)
20773 if (XOR (islower (i), ISLOWER (i))
20774 || toupper (i) != TOUPPER (i))
20775 return 2;
20776 return 0;
20778 _ACEOF
20779 rm -f conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784 esac
20785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786 $as_echo "$ac_try_echo") >&5
20787 (eval "$ac_link") 2>&5
20788 ac_status=$?
20789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20791 { (case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797 (eval "$ac_try") 2>&5
20798 ac_status=$?
20799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20802 else
20803 $as_echo "$as_me: program exited with status $ac_status" >&5
20804 $as_echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ( exit $ac_status )
20808 ac_cv_header_stdc=no
20810 rm -rf conftest.dSYM
20811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20818 $as_echo "$ac_cv_header_stdc" >&6; }
20819 if test $ac_cv_header_stdc = yes; then
20821 cat >>confdefs.h <<\_ACEOF
20822 #define STDC_HEADERS 1
20823 _ACEOF
20834 for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h
20836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20839 $as_echo_n "checking for $ac_header... " >&6; }
20840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20841 $as_echo_n "(cached) " >&6
20843 ac_res=`eval 'as_val=${'$as_ac_Header'}
20844 $as_echo "$as_val"'`
20845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20846 $as_echo "$ac_res" >&6; }
20847 else
20848 # Is the header compilable?
20849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20850 $as_echo_n "checking $ac_header usability... " >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20858 #include <$ac_header>
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20867 $as_echo "$ac_try_echo") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest.$ac_objext; then
20878 ac_header_compiler=yes
20879 else
20880 $as_echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_compiler=no
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20888 $as_echo "$ac_header_compiler" >&6; }
20890 # Is the header present?
20891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20892 $as_echo_n "checking $ac_header presence... " >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h. */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <$ac_header>
20900 _ACEOF
20901 if { (ac_try="$ac_cpp conftest.$ac_ext"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905 esac
20906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20907 $as_echo "$ac_try_echo") >&5
20908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } >/dev/null && {
20915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 }; then
20918 ac_header_preproc=yes
20919 else
20920 $as_echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_header_preproc=no
20926 rm -f conftest.err conftest.$ac_ext
20927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20928 $as_echo "$ac_header_preproc" >&6; }
20930 # So? What about this header?
20931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932 yes:no: )
20933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20937 ac_header_preproc=yes
20939 no:yes:* )
20940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20952 ( cat <<\_ASBOX
20953 ## ------------------------------------ ##
20954 ## Report this to kergoth@handhelds.org ##
20955 ## ------------------------------------ ##
20956 _ASBOX
20957 ) | sed "s/^/$as_me: WARNING: /" >&2
20959 esac
20960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20961 $as_echo_n "checking for $ac_header... " >&6; }
20962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20963 $as_echo_n "(cached) " >&6
20964 else
20965 eval "$as_ac_Header=\$ac_header_preproc"
20967 ac_res=`eval 'as_val=${'$as_ac_Header'}
20968 $as_echo "$as_val"'`
20969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20970 $as_echo "$ac_res" >&6; }
20973 as_val=`eval 'as_val=${'$as_ac_Header'}
20974 $as_echo "$as_val"'`
20975 if test "x$as_val" = x""yes; then
20976 cat >>confdefs.h <<_ACEOF
20977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20978 _ACEOF
20982 done
20985 # Checks for typedefs, structures, and compiler characteristics.
20986 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20987 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20988 if test "${ac_cv_c_const+set}" = set; then
20989 $as_echo_n "(cached) " >&6
20990 else
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20999 main ()
21001 /* FIXME: Include the comments suggested by Paul. */
21002 #ifndef __cplusplus
21003 /* Ultrix mips cc rejects this. */
21004 typedef int charset[2];
21005 const charset cs;
21006 /* SunOS 4.1.1 cc rejects this. */
21007 char const *const *pcpcc;
21008 char **ppc;
21009 /* NEC SVR4.0.2 mips cc rejects this. */
21010 struct point {int x, y;};
21011 static struct point const zero = {0,0};
21012 /* AIX XL C 1.02.0.0 rejects this.
21013 It does not let you subtract one const X* pointer from another in
21014 an arm of an if-expression whose if-part is not a constant
21015 expression */
21016 const char *g = "string";
21017 pcpcc = &g + (g ? g-g : 0);
21018 /* HPUX 7.0 cc rejects these. */
21019 ++pcpcc;
21020 ppc = (char**) pcpcc;
21021 pcpcc = (char const *const *) ppc;
21022 { /* SCO 3.2v4 cc rejects this. */
21023 char *t;
21024 char const *s = 0 ? (char *) 0 : (char const *) 0;
21026 *t++ = 0;
21027 if (s) return 0;
21029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21030 int x[] = {25, 17};
21031 const int *foo = &x[0];
21032 ++foo;
21034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21035 typedef const int *iptr;
21036 iptr p = 0;
21037 ++p;
21039 { /* AIX XL C 1.02.0.0 rejects this saying
21040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21041 struct s { int j; const int *ap[3]; };
21042 struct s *b; b->j = 5;
21044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21045 const int foo = 10;
21046 if (!foo) return 0;
21048 return !cs[0] && !zero.x;
21049 #endif
21052 return 0;
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (ac_try="$ac_compile"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21060 esac
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21073 ac_cv_c_const=yes
21074 else
21075 $as_echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_cv_c_const=no
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21084 $as_echo "$ac_cv_c_const" >&6; }
21085 if test $ac_cv_c_const = no; then
21087 cat >>confdefs.h <<\_ACEOF
21088 #define const /**/
21089 _ACEOF
21093 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21094 $as_echo_n "checking for inline... " >&6; }
21095 if test "${ac_cv_c_inline+set}" = set; then
21096 $as_echo_n "(cached) " >&6
21097 else
21098 ac_cv_c_inline=no
21099 for ac_kw in inline __inline__ __inline; do
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 #ifndef __cplusplus
21107 typedef int foo_t;
21108 static $ac_kw foo_t static_foo () {return 0; }
21109 $ac_kw foo_t foo () {return 0; }
21110 #endif
21112 _ACEOF
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118 esac
21119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21120 $as_echo "$ac_try_echo") >&5
21121 (eval "$ac_compile") 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } && {
21128 test -z "$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 } && test -s conftest.$ac_objext; then
21131 ac_cv_c_inline=$ac_kw
21132 else
21133 $as_echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 test "$ac_cv_c_inline" != no && break
21141 done
21144 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21145 $as_echo "$ac_cv_c_inline" >&6; }
21148 case $ac_cv_c_inline in
21149 inline | yes) ;;
21151 case $ac_cv_c_inline in
21152 no) ac_val=;;
21153 *) ac_val=$ac_cv_c_inline;;
21154 esac
21155 cat >>confdefs.h <<_ACEOF
21156 #ifndef __cplusplus
21157 #define inline $ac_val
21158 #endif
21159 _ACEOF
21161 esac
21163 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21164 $as_echo_n "checking for size_t... " >&6; }
21165 if test "${ac_cv_type_size_t+set}" = set; then
21166 $as_echo_n "(cached) " >&6
21167 else
21168 ac_cv_type_size_t=no
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 $ac_includes_default
21177 main ()
21179 if (sizeof (size_t))
21180 return 0;
21182 return 0;
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21192 $as_echo "$ac_try_echo") >&5
21193 (eval "$ac_compile") 2>conftest.er1
21194 ac_status=$?
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
21198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest.$ac_objext; then
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 $ac_includes_default
21211 main ()
21213 if (sizeof ((size_t)))
21214 return 0;
21216 return 0;
21218 _ACEOF
21219 rm -f conftest.$ac_objext
21220 if { (ac_try="$ac_compile"
21221 case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224 esac
21225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21226 $as_echo "$ac_try_echo") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21228 ac_status=$?
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
21232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.$ac_objext; then
21238 else
21239 $as_echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_cv_type_size_t=yes
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 else
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21256 $as_echo "$ac_cv_type_size_t" >&6; }
21257 if test "x$ac_cv_type_size_t" = x""yes; then
21259 else
21261 cat >>confdefs.h <<_ACEOF
21262 #define size_t unsigned int
21263 _ACEOF
21267 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21268 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21269 if test "${ac_cv_header_time+set}" = set; then
21270 $as_echo_n "(cached) " >&6
21271 else
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <sys/types.h>
21279 #include <sys/time.h>
21280 #include <time.h>
21283 main ()
21285 if ((struct tm *) 0)
21286 return 0;
21288 return 0;
21290 _ACEOF
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21296 esac
21297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21298 $as_echo "$ac_try_echo") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest.$ac_objext; then
21309 ac_cv_header_time=yes
21310 else
21311 $as_echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21314 ac_cv_header_time=no
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21320 $as_echo "$ac_cv_header_time" >&6; }
21321 if test $ac_cv_header_time = yes; then
21323 cat >>confdefs.h <<\_ACEOF
21324 #define TIME_WITH_SYS_TIME 1
21325 _ACEOF
21330 # Checks for library functions.
21331 if test $ac_cv_c_compiler_gnu = yes; then
21332 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21333 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21334 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21335 $as_echo_n "(cached) " >&6
21336 else
21337 ac_pattern="Autoconf.*'x'"
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <sgtty.h>
21345 Autoconf TIOCGETP
21346 _ACEOF
21347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21348 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21349 ac_cv_prog_gcc_traditional=yes
21350 else
21351 ac_cv_prog_gcc_traditional=no
21353 rm -f conftest*
21356 if test $ac_cv_prog_gcc_traditional = no; then
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 #include <termio.h>
21364 Autoconf TCGETA
21365 _ACEOF
21366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21367 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21368 ac_cv_prog_gcc_traditional=yes
21370 rm -f conftest*
21374 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21375 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21376 if test $ac_cv_prog_gcc_traditional = yes; then
21377 CC="$CC -traditional"
21382 for ac_header in stdlib.h
21384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21387 $as_echo_n "checking for $ac_header... " >&6; }
21388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21389 $as_echo_n "(cached) " >&6
21391 ac_res=`eval 'as_val=${'$as_ac_Header'}
21392 $as_echo "$as_val"'`
21393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21394 $as_echo "$ac_res" >&6; }
21395 else
21396 # Is the header compilable?
21397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21398 $as_echo_n "checking $ac_header usability... " >&6; }
21399 cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h. */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 $ac_includes_default
21406 #include <$ac_header>
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (ac_try="$ac_compile"
21410 case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21413 esac
21414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21415 $as_echo "$ac_try_echo") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_header_compiler=yes
21427 else
21428 $as_echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_header_compiler=no
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 $as_echo "$ac_header_compiler" >&6; }
21438 # Is the header present?
21439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 $as_echo_n "checking $ac_header presence... " >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <$ac_header>
21448 _ACEOF
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21453 esac
21454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21455 $as_echo "$ac_try_echo") >&5
21456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21457 ac_status=$?
21458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
21461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } >/dev/null && {
21463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 }; then
21466 ac_header_preproc=yes
21467 else
21468 $as_echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_preproc=no
21474 rm -f conftest.err conftest.$ac_ext
21475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21476 $as_echo "$ac_header_preproc" >&6; }
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 yes:no: )
21481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21485 ac_header_preproc=yes
21487 no:yes:* )
21488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21491 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21495 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21500 ( cat <<\_ASBOX
21501 ## ------------------------------------ ##
21502 ## Report this to kergoth@handhelds.org ##
21503 ## ------------------------------------ ##
21504 _ASBOX
21505 ) | sed "s/^/$as_me: WARNING: /" >&2
21507 esac
21508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21509 $as_echo_n "checking for $ac_header... " >&6; }
21510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21511 $as_echo_n "(cached) " >&6
21512 else
21513 eval "$as_ac_Header=\$ac_header_preproc"
21515 ac_res=`eval 'as_val=${'$as_ac_Header'}
21516 $as_echo "$as_val"'`
21517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21518 $as_echo "$ac_res" >&6; }
21521 as_val=`eval 'as_val=${'$as_ac_Header'}
21522 $as_echo "$as_val"'`
21523 if test "x$as_val" = x""yes; then
21524 cat >>confdefs.h <<_ACEOF
21525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21526 _ACEOF
21530 done
21532 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21533 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
21534 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21535 $as_echo_n "(cached) " >&6
21536 else
21537 if test "$cross_compiling" = yes; then
21538 ac_cv_func_malloc_0_nonnull=no
21539 else
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21547 # include <stdlib.h>
21548 #else
21549 char *malloc ();
21550 #endif
21553 main ()
21555 return ! malloc (0);
21557 return 0;
21559 _ACEOF
21560 rm -f conftest$ac_exeext
21561 if { (ac_try="$ac_link"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565 esac
21566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21567 $as_echo "$ac_try_echo") >&5
21568 (eval "$ac_link") 2>&5
21569 ac_status=$?
21570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21572 { (case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21575 esac
21576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21577 $as_echo "$ac_try_echo") >&5
21578 (eval "$ac_try") 2>&5
21579 ac_status=$?
21580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ac_cv_func_malloc_0_nonnull=yes
21583 else
21584 $as_echo "$as_me: program exited with status $ac_status" >&5
21585 $as_echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ( exit $ac_status )
21589 ac_cv_func_malloc_0_nonnull=no
21591 rm -rf conftest.dSYM
21592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21598 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
21599 if test $ac_cv_func_malloc_0_nonnull = yes; then
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_MALLOC 1
21603 _ACEOF
21605 else
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_MALLOC 0
21608 _ACEOF
21610 case " $LIBOBJS " in
21611 *" malloc.$ac_objext "* ) ;;
21612 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21614 esac
21617 cat >>confdefs.h <<\_ACEOF
21618 #define malloc rpl_malloc
21619 _ACEOF
21627 for ac_header in stdlib.h unistd.h
21629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 $as_echo_n "checking for $ac_header... " >&6; }
21633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 $as_echo_n "(cached) " >&6
21636 ac_res=`eval 'as_val=${'$as_ac_Header'}
21637 $as_echo "$as_val"'`
21638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21639 $as_echo "$ac_res" >&6; }
21640 else
21641 # Is the header compilable?
21642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21643 $as_echo_n "checking $ac_header usability... " >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h. */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 $ac_includes_default
21651 #include <$ac_header>
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21658 esac
21659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21660 $as_echo "$ac_try_echo") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_header_compiler=yes
21672 else
21673 $as_echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 ac_header_compiler=no
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21681 $as_echo "$ac_header_compiler" >&6; }
21683 # Is the header present?
21684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21685 $as_echo_n "checking $ac_header presence... " >&6; }
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h. */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 #include <$ac_header>
21693 _ACEOF
21694 if { (ac_try="$ac_cpp conftest.$ac_ext"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21700 $as_echo "$ac_try_echo") >&5
21701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } >/dev/null && {
21708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 }; then
21711 ac_header_preproc=yes
21712 else
21713 $as_echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_header_preproc=no
21719 rm -f conftest.err conftest.$ac_ext
21720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21721 $as_echo "$ac_header_preproc" >&6; }
21723 # So? What about this header?
21724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21725 yes:no: )
21726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21730 ac_header_preproc=yes
21732 no:yes:* )
21733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21736 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21740 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21745 ( cat <<\_ASBOX
21746 ## ------------------------------------ ##
21747 ## Report this to kergoth@handhelds.org ##
21748 ## ------------------------------------ ##
21749 _ASBOX
21750 ) | sed "s/^/$as_me: WARNING: /" >&2
21752 esac
21753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21754 $as_echo_n "checking for $ac_header... " >&6; }
21755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21756 $as_echo_n "(cached) " >&6
21757 else
21758 eval "$as_ac_Header=\$ac_header_preproc"
21760 ac_res=`eval 'as_val=${'$as_ac_Header'}
21761 $as_echo "$as_val"'`
21762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21763 $as_echo "$ac_res" >&6; }
21766 as_val=`eval 'as_val=${'$as_ac_Header'}
21767 $as_echo "$as_val"'`
21768 if test "x$as_val" = x""yes; then
21769 cat >>confdefs.h <<_ACEOF
21770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21771 _ACEOF
21775 done
21778 for ac_func in getpagesize
21780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21782 $as_echo_n "checking for $ac_func... " >&6; }
21783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21784 $as_echo_n "(cached) " >&6
21785 else
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21794 #define $ac_func innocuous_$ac_func
21796 /* System header to define __stub macros and hopefully few prototypes,
21797 which can conflict with char $ac_func (); below.
21798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21799 <limits.h> exists even on freestanding compilers. */
21801 #ifdef __STDC__
21802 # include <limits.h>
21803 #else
21804 # include <assert.h>
21805 #endif
21807 #undef $ac_func
21809 /* Override any GCC internal prototype to avoid an error.
21810 Use char because int might match the return type of a GCC
21811 builtin and then its argument prototype would still apply. */
21812 #ifdef __cplusplus
21813 extern "C"
21814 #endif
21815 char $ac_func ();
21816 /* The GNU C library defines this for functions which it implements
21817 to always fail with ENOSYS. Some functions are actually named
21818 something starting with __ and the normal name is an alias. */
21819 #if defined __stub_$ac_func || defined __stub___$ac_func
21820 choke me
21821 #endif
21824 main ()
21826 return $ac_func ();
21828 return 0;
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>conftest.er1
21840 ac_status=$?
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
21844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest$ac_exeext && {
21849 test "$cross_compiling" = yes ||
21850 $as_test_x conftest$ac_exeext
21851 }; then
21852 eval "$as_ac_var=yes"
21853 else
21854 $as_echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 eval "$as_ac_var=no"
21860 rm -rf conftest.dSYM
21861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21862 conftest$ac_exeext conftest.$ac_ext
21864 ac_res=`eval 'as_val=${'$as_ac_var'}
21865 $as_echo "$as_val"'`
21866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21867 $as_echo "$ac_res" >&6; }
21868 as_val=`eval 'as_val=${'$as_ac_var'}
21869 $as_echo "$as_val"'`
21870 if test "x$as_val" = x""yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21873 _ACEOF
21876 done
21878 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
21879 $as_echo_n "checking for working mmap... " >&6; }
21880 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21881 $as_echo_n "(cached) " >&6
21882 else
21883 if test "$cross_compiling" = yes; then
21884 ac_cv_func_mmap_fixed_mapped=no
21885 else
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 $ac_includes_default
21893 /* malloc might have been renamed as rpl_malloc. */
21894 #undef malloc
21896 /* Thanks to Mike Haertel and Jim Avera for this test.
21897 Here is a matrix of mmap possibilities:
21898 mmap private not fixed
21899 mmap private fixed at somewhere currently unmapped
21900 mmap private fixed at somewhere already mapped
21901 mmap shared not fixed
21902 mmap shared fixed at somewhere currently unmapped
21903 mmap shared fixed at somewhere already mapped
21904 For private mappings, we should verify that changes cannot be read()
21905 back from the file, nor mmap's back from the file at a different
21906 address. (There have been systems where private was not correctly
21907 implemented like the infamous i386 svr4.0, and systems where the
21908 VM page cache was not coherent with the file system buffer cache
21909 like early versions of FreeBSD and possibly contemporary NetBSD.)
21910 For shared mappings, we should conversely verify that changes get
21911 propagated back to all the places they're supposed to be.
21913 Grep wants private fixed already mapped.
21914 The main things grep needs to know about mmap are:
21915 * does it exist and is it safe to write into the mmap'd area
21916 * how to use it (BSD variants) */
21918 #include <fcntl.h>
21919 #include <sys/mman.h>
21921 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21922 char *malloc ();
21923 #endif
21925 /* This mess was copied from the GNU getpagesize.h. */
21926 #ifndef HAVE_GETPAGESIZE
21927 /* Assume that all systems that can run configure have sys/param.h. */
21928 # ifndef HAVE_SYS_PARAM_H
21929 # define HAVE_SYS_PARAM_H 1
21930 # endif
21932 # ifdef _SC_PAGESIZE
21933 # define getpagesize() sysconf(_SC_PAGESIZE)
21934 # else /* no _SC_PAGESIZE */
21935 # ifdef HAVE_SYS_PARAM_H
21936 # include <sys/param.h>
21937 # ifdef EXEC_PAGESIZE
21938 # define getpagesize() EXEC_PAGESIZE
21939 # else /* no EXEC_PAGESIZE */
21940 # ifdef NBPG
21941 # define getpagesize() NBPG * CLSIZE
21942 # ifndef CLSIZE
21943 # define CLSIZE 1
21944 # endif /* no CLSIZE */
21945 # else /* no NBPG */
21946 # ifdef NBPC
21947 # define getpagesize() NBPC
21948 # else /* no NBPC */
21949 # ifdef PAGESIZE
21950 # define getpagesize() PAGESIZE
21951 # endif /* PAGESIZE */
21952 # endif /* no NBPC */
21953 # endif /* no NBPG */
21954 # endif /* no EXEC_PAGESIZE */
21955 # else /* no HAVE_SYS_PARAM_H */
21956 # define getpagesize() 8192 /* punt totally */
21957 # endif /* no HAVE_SYS_PARAM_H */
21958 # endif /* no _SC_PAGESIZE */
21960 #endif /* no HAVE_GETPAGESIZE */
21963 main ()
21965 char *data, *data2, *data3;
21966 int i, pagesize;
21967 int fd;
21969 pagesize = getpagesize ();
21971 /* First, make a file with some known garbage in it. */
21972 data = (char *) malloc (pagesize);
21973 if (!data)
21974 return 1;
21975 for (i = 0; i < pagesize; ++i)
21976 *(data + i) = rand ();
21977 umask (0);
21978 fd = creat ("conftest.mmap", 0600);
21979 if (fd < 0)
21980 return 1;
21981 if (write (fd, data, pagesize) != pagesize)
21982 return 1;
21983 close (fd);
21985 /* Next, try to mmap the file at a fixed address which already has
21986 something else allocated at it. If we can, also make sure that
21987 we see the same garbage. */
21988 fd = open ("conftest.mmap", O_RDWR);
21989 if (fd < 0)
21990 return 1;
21991 data2 = (char *) malloc (2 * pagesize);
21992 if (!data2)
21993 return 1;
21994 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21995 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21996 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21997 return 1;
21998 for (i = 0; i < pagesize; ++i)
21999 if (*(data + i) != *(data2 + i))
22000 return 1;
22002 /* Finally, make sure that changes to the mapped area do not
22003 percolate back to the file as seen by read(). (This is a bug on
22004 some variants of i386 svr4.0.) */
22005 for (i = 0; i < pagesize; ++i)
22006 *(data2 + i) = *(data2 + i) + 1;
22007 data3 = (char *) malloc (pagesize);
22008 if (!data3)
22009 return 1;
22010 if (read (fd, data3, pagesize) != pagesize)
22011 return 1;
22012 for (i = 0; i < pagesize; ++i)
22013 if (*(data + i) != *(data3 + i))
22014 return 1;
22015 close (fd);
22016 return 0;
22018 _ACEOF
22019 rm -f conftest$ac_exeext
22020 if { (ac_try="$ac_link"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_link") 2>&5
22028 ac_status=$?
22029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031 { (case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034 esac
22035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22036 $as_echo "$ac_try_echo") >&5
22037 (eval "$ac_try") 2>&5
22038 ac_status=$?
22039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22041 ac_cv_func_mmap_fixed_mapped=yes
22042 else
22043 $as_echo "$as_me: program exited with status $ac_status" >&5
22044 $as_echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22047 ( exit $ac_status )
22048 ac_cv_func_mmap_fixed_mapped=no
22050 rm -rf conftest.dSYM
22051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22056 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22057 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22058 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22060 cat >>confdefs.h <<\_ACEOF
22061 #define HAVE_MMAP 1
22062 _ACEOF
22065 rm -f conftest.mmap
22069 for ac_header in sys/select.h sys/socket.h
22071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22074 $as_echo_n "checking for $ac_header... " >&6; }
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 $as_echo_n "(cached) " >&6
22078 ac_res=`eval 'as_val=${'$as_ac_Header'}
22079 $as_echo "$as_val"'`
22080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22081 $as_echo "$ac_res" >&6; }
22082 else
22083 # Is the header compilable?
22084 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22085 $as_echo_n "checking $ac_header usability... " >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h. */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 $ac_includes_default
22093 #include <$ac_header>
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22102 $as_echo "$ac_try_echo") >&5
22103 (eval "$ac_compile") 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest.$ac_objext; then
22113 ac_header_compiler=yes
22114 else
22115 $as_echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ac_header_compiler=no
22121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22123 $as_echo "$ac_header_compiler" >&6; }
22125 # Is the header present?
22126 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22127 $as_echo_n "checking $ac_header presence... " >&6; }
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h. */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 #include <$ac_header>
22135 _ACEOF
22136 if { (ac_try="$ac_cpp conftest.$ac_ext"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22142 $as_echo "$ac_try_echo") >&5
22143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } >/dev/null && {
22150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22151 test ! -s conftest.err
22152 }; then
22153 ac_header_preproc=yes
22154 else
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ac_header_preproc=no
22161 rm -f conftest.err conftest.$ac_ext
22162 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22163 $as_echo "$ac_header_preproc" >&6; }
22165 # So? What about this header?
22166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22167 yes:no: )
22168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22169 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22172 ac_header_preproc=yes
22174 no:yes:* )
22175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22176 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22178 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22180 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22182 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22186 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22187 ( cat <<\_ASBOX
22188 ## ------------------------------------ ##
22189 ## Report this to kergoth@handhelds.org ##
22190 ## ------------------------------------ ##
22191 _ASBOX
22192 ) | sed "s/^/$as_me: WARNING: /" >&2
22194 esac
22195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22196 $as_echo_n "checking for $ac_header... " >&6; }
22197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22198 $as_echo_n "(cached) " >&6
22199 else
22200 eval "$as_ac_Header=\$ac_header_preproc"
22202 ac_res=`eval 'as_val=${'$as_ac_Header'}
22203 $as_echo "$as_val"'`
22204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22205 $as_echo "$ac_res" >&6; }
22208 as_val=`eval 'as_val=${'$as_ac_Header'}
22209 $as_echo "$as_val"'`
22210 if test "x$as_val" = x""yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22213 _ACEOF
22217 done
22219 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
22220 $as_echo_n "checking types of arguments for select... " >&6; }
22221 if test "${ac_cv_func_select_args+set}" = set; then
22222 $as_echo_n "(cached) " >&6
22223 else
22224 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22225 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22226 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h. */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22233 $ac_includes_default
22234 #ifdef HAVE_SYS_SELECT_H
22235 # include <sys/select.h>
22236 #endif
22237 #ifdef HAVE_SYS_SOCKET_H
22238 # include <sys/socket.h>
22239 #endif
22242 main ()
22244 extern int select ($ac_arg1,
22245 $ac_arg234, $ac_arg234, $ac_arg234,
22246 $ac_arg5);
22248 return 0;
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256 esac
22257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22258 $as_echo "$ac_try_echo") >&5
22259 (eval "$ac_compile") 2>conftest.er1
22260 ac_status=$?
22261 grep -v '^ *+' conftest.er1 >conftest.err
22262 rm -f conftest.er1
22263 cat conftest.err >&5
22264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } && {
22266 test -z "$ac_c_werror_flag" ||
22267 test ! -s conftest.err
22268 } && test -s conftest.$ac_objext; then
22269 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22270 else
22271 $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22278 done
22279 done
22280 done
22281 # Provide a safe default value.
22282 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22286 $as_echo "$ac_cv_func_select_args" >&6; }
22287 ac_save_IFS=$IFS; IFS=','
22288 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22289 IFS=$ac_save_IFS
22290 shift
22292 cat >>confdefs.h <<_ACEOF
22293 #define SELECT_TYPE_ARG1 $1
22294 _ACEOF
22297 cat >>confdefs.h <<_ACEOF
22298 #define SELECT_TYPE_ARG234 ($2)
22299 _ACEOF
22302 cat >>confdefs.h <<_ACEOF
22303 #define SELECT_TYPE_ARG5 ($3)
22304 _ACEOF
22306 rm -f conftest*
22308 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22309 $as_echo_n "checking return type of signal handlers... " >&6; }
22310 if test "${ac_cv_type_signal+set}" = set; then
22311 $as_echo_n "(cached) " >&6
22312 else
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 #include <sys/types.h>
22320 #include <signal.h>
22323 main ()
22325 return *(signal (0, 0)) (0) == 1;
22327 return 0;
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335 esac
22336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_type_signal=int
22349 else
22350 $as_echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_type_signal=void
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22359 $as_echo "$ac_cv_type_signal" >&6; }
22361 cat >>confdefs.h <<_ACEOF
22362 #define RETSIGTYPE $ac_cv_type_signal
22363 _ACEOF
22366 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22367 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
22368 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22369 $as_echo_n "(cached) " >&6
22370 else
22371 rm -f conftest.sym conftest.file
22372 echo >conftest.file
22373 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22374 if test "$cross_compiling" = yes; then
22375 ac_cv_func_lstat_dereferences_slashed_symlink=no
22376 else
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h. */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383 $ac_includes_default
22385 main ()
22387 struct stat sbuf;
22388 /* Linux will dereference the symlink and fail.
22389 That is better in the sense that it means we will not
22390 have to compile and use the lstat wrapper. */
22391 return lstat ("conftest.sym/", &sbuf) == 0;
22393 return 0;
22395 _ACEOF
22396 rm -f conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22401 esac
22402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22403 $as_echo "$ac_try_echo") >&5
22404 (eval "$ac_link") 2>&5
22405 ac_status=$?
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22408 { (case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22413 $as_echo "$ac_try_echo") >&5
22414 (eval "$ac_try") 2>&5
22415 ac_status=$?
22416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; }; then
22418 ac_cv_func_lstat_dereferences_slashed_symlink=yes
22419 else
22420 $as_echo "$as_me: program exited with status $ac_status" >&5
22421 $as_echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22424 ( exit $ac_status )
22425 ac_cv_func_lstat_dereferences_slashed_symlink=no
22427 rm -rf conftest.dSYM
22428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22432 else
22433 # If the `ln -s' command failed, then we probably don't even
22434 # have an lstat function.
22435 ac_cv_func_lstat_dereferences_slashed_symlink=no
22437 rm -f conftest.sym conftest.file
22440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22441 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22443 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22445 cat >>confdefs.h <<_ACEOF
22446 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22447 _ACEOF
22450 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22451 case " $LIBOBJS " in
22452 *" lstat.$ac_objext "* ) ;;
22453 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22455 esac
22459 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22460 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
22461 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22462 $as_echo_n "(cached) " >&6
22463 else
22464 if test "$cross_compiling" = yes; then
22465 ac_cv_func_stat_empty_string_bug=yes
22466 else
22467 cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h. */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 $ac_includes_default
22475 main ()
22477 struct stat sbuf;
22478 return stat ("", &sbuf) == 0;
22480 return 0;
22482 _ACEOF
22483 rm -f conftest$ac_exeext
22484 if { (ac_try="$ac_link"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488 esac
22489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22490 $as_echo "$ac_try_echo") >&5
22491 (eval "$ac_link") 2>&5
22492 ac_status=$?
22493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22495 { (case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498 esac
22499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22500 $as_echo "$ac_try_echo") >&5
22501 (eval "$ac_try") 2>&5
22502 ac_status=$?
22503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 ac_cv_func_stat_empty_string_bug=no
22506 else
22507 $as_echo "$as_me: program exited with status $ac_status" >&5
22508 $as_echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ( exit $ac_status )
22512 ac_cv_func_stat_empty_string_bug=yes
22514 rm -rf conftest.dSYM
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22520 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22521 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
22522 if test $ac_cv_func_stat_empty_string_bug = yes; then
22523 case " $LIBOBJS " in
22524 *" stat.$ac_objext "* ) ;;
22525 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22527 esac
22530 cat >>confdefs.h <<_ACEOF
22531 #define HAVE_STAT_EMPTY_STRING_BUG 1
22532 _ACEOF
22537 for ac_func in vprintf
22539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22540 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22541 $as_echo_n "checking for $ac_func... " >&6; }
22542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22543 $as_echo_n "(cached) " >&6
22544 else
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22553 #define $ac_func innocuous_$ac_func
22555 /* System header to define __stub macros and hopefully few prototypes,
22556 which can conflict with char $ac_func (); below.
22557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22558 <limits.h> exists even on freestanding compilers. */
22560 #ifdef __STDC__
22561 # include <limits.h>
22562 #else
22563 # include <assert.h>
22564 #endif
22566 #undef $ac_func
22568 /* Override any GCC internal prototype to avoid an error.
22569 Use char because int might match the return type of a GCC
22570 builtin and then its argument prototype would still apply. */
22571 #ifdef __cplusplus
22572 extern "C"
22573 #endif
22574 char $ac_func ();
22575 /* The GNU C library defines this for functions which it implements
22576 to always fail with ENOSYS. Some functions are actually named
22577 something starting with __ and the normal name is an alias. */
22578 #if defined __stub_$ac_func || defined __stub___$ac_func
22579 choke me
22580 #endif
22583 main ()
22585 return $ac_func ();
22587 return 0;
22589 _ACEOF
22590 rm -f conftest.$ac_objext conftest$ac_exeext
22591 if { (ac_try="$ac_link"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597 $as_echo "$ac_try_echo") >&5
22598 (eval "$ac_link") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest$ac_exeext && {
22608 test "$cross_compiling" = yes ||
22609 $as_test_x conftest$ac_exeext
22610 }; then
22611 eval "$as_ac_var=yes"
22612 else
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 eval "$as_ac_var=no"
22619 rm -rf conftest.dSYM
22620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22621 conftest$ac_exeext conftest.$ac_ext
22623 ac_res=`eval 'as_val=${'$as_ac_var'}
22624 $as_echo "$as_val"'`
22625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22626 $as_echo "$ac_res" >&6; }
22627 as_val=`eval 'as_val=${'$as_ac_var'}
22628 $as_echo "$as_val"'`
22629 if test "x$as_val" = x""yes; then
22630 cat >>confdefs.h <<_ACEOF
22631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22632 _ACEOF
22634 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
22635 $as_echo_n "checking for _doprnt... " >&6; }
22636 if test "${ac_cv_func__doprnt+set}" = set; then
22637 $as_echo_n "(cached) " >&6
22638 else
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h. */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22647 #define _doprnt innocuous__doprnt
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char _doprnt (); below.
22651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22652 <limits.h> exists even on freestanding compilers. */
22654 #ifdef __STDC__
22655 # include <limits.h>
22656 #else
22657 # include <assert.h>
22658 #endif
22660 #undef _doprnt
22662 /* Override any GCC internal prototype to avoid an error.
22663 Use char because int might match the return type of a GCC
22664 builtin and then its argument prototype would still apply. */
22665 #ifdef __cplusplus
22666 extern "C"
22667 #endif
22668 char _doprnt ();
22669 /* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672 #if defined __stub__doprnt || defined __stub____doprnt
22673 choke me
22674 #endif
22677 main ()
22679 return _doprnt ();
22681 return 0;
22683 _ACEOF
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689 esac
22690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22691 $as_echo "$ac_try_echo") >&5
22692 (eval "$ac_link") 2>conftest.er1
22693 ac_status=$?
22694 grep -v '^ *+' conftest.er1 >conftest.err
22695 rm -f conftest.er1
22696 cat conftest.err >&5
22697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest$ac_exeext && {
22702 test "$cross_compiling" = yes ||
22703 $as_test_x conftest$ac_exeext
22704 }; then
22705 ac_cv_func__doprnt=yes
22706 else
22707 $as_echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 ac_cv_func__doprnt=no
22713 rm -rf conftest.dSYM
22714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22715 conftest$ac_exeext conftest.$ac_ext
22717 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22718 $as_echo "$ac_cv_func__doprnt" >&6; }
22719 if test "x$ac_cv_func__doprnt" = x""yes; then
22721 cat >>confdefs.h <<\_ACEOF
22722 #define HAVE_DOPRNT 1
22723 _ACEOF
22728 done
22741 for ac_func in bzero gettimeofday memmove memset munmap select strcasecmp strchr strdup strtoul
22743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22744 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22745 $as_echo_n "checking for $ac_func... " >&6; }
22746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22747 $as_echo_n "(cached) " >&6
22748 else
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22757 #define $ac_func innocuous_$ac_func
22759 /* System header to define __stub macros and hopefully few prototypes,
22760 which can conflict with char $ac_func (); below.
22761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22762 <limits.h> exists even on freestanding compilers. */
22764 #ifdef __STDC__
22765 # include <limits.h>
22766 #else
22767 # include <assert.h>
22768 #endif
22770 #undef $ac_func
22772 /* Override any GCC internal prototype to avoid an error.
22773 Use char because int might match the return type of a GCC
22774 builtin and then its argument prototype would still apply. */
22775 #ifdef __cplusplus
22776 extern "C"
22777 #endif
22778 char $ac_func ();
22779 /* The GNU C library defines this for functions which it implements
22780 to always fail with ENOSYS. Some functions are actually named
22781 something starting with __ and the normal name is an alias. */
22782 #if defined __stub_$ac_func || defined __stub___$ac_func
22783 choke me
22784 #endif
22787 main ()
22789 return $ac_func ();
22791 return 0;
22793 _ACEOF
22794 rm -f conftest.$ac_objext conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801 $as_echo "$ac_try_echo") >&5
22802 (eval "$ac_link") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest$ac_exeext && {
22812 test "$cross_compiling" = yes ||
22813 $as_test_x conftest$ac_exeext
22814 }; then
22815 eval "$as_ac_var=yes"
22816 else
22817 $as_echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 eval "$as_ac_var=no"
22823 rm -rf conftest.dSYM
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
22827 ac_res=`eval 'as_val=${'$as_ac_var'}
22828 $as_echo "$as_val"'`
22829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22830 $as_echo "$ac_res" >&6; }
22831 as_val=`eval 'as_val=${'$as_ac_var'}
22832 $as_echo "$as_val"'`
22833 if test "x$as_val" = x""yes; then
22834 cat >>confdefs.h <<_ACEOF
22835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22836 _ACEOF
22839 done
22842 # filters
22843 { $as_echo "$as_me:$LINENO: checking whether linear modules is requested" >&5
22844 $as_echo_n "checking whether linear modules is requested... " >&6; }
22845 # Check whether --enable-linear was given.
22846 if test "${enable_linear+set}" = set; then
22847 enableval=$enable_linear; linear_module=$enableval
22848 else
22849 linear_module=yes
22852 { $as_echo "$as_me:$LINENO: result: $linear_module" >&5
22853 $as_echo "$linear_module" >&6; }
22854 if test "$linear_module" = "yes"; then
22855 ENABLE_LINEAR_MODULE_TRUE=
22856 ENABLE_LINEAR_MODULE_FALSE='#'
22857 else
22858 ENABLE_LINEAR_MODULE_TRUE='#'
22859 ENABLE_LINEAR_MODULE_FALSE=
22863 { $as_echo "$as_me:$LINENO: checking whether dejitter module is requested" >&5
22864 $as_echo_n "checking whether dejitter module is requested... " >&6; }
22865 # Check whether --enable-dejitter was given.
22866 if test "${enable_dejitter+set}" = set; then
22867 enableval=$enable_dejitter; dejitter_module=$enableval
22868 else
22869 dejitter_module=yes
22872 { $as_echo "$as_me:$LINENO: result: $dejitter_module" >&5
22873 $as_echo "$dejitter_module" >&6; }
22874 if test "$dejitter_module" = "yes"; then
22875 ENABLE_DEJITTER_MODULE_TRUE=
22876 ENABLE_DEJITTER_MODULE_FALSE='#'
22877 else
22878 ENABLE_DEJITTER_MODULE_TRUE='#'
22879 ENABLE_DEJITTER_MODULE_FALSE=
22883 { $as_echo "$as_me:$LINENO: checking whether linear-h2200 module is requested" >&5
22884 $as_echo_n "checking whether linear-h2200 module is requested... " >&6; }
22885 # Check whether --enable-dejitter was given.
22886 if test "${enable_dejitter+set}" = set; then
22887 enableval=$enable_dejitter; h2200_linear_module=$enableval
22888 else
22889 h2200_linear_module=yes
22892 { $as_echo "$as_me:$LINENO: result: $h2200_linear_module" >&5
22893 $as_echo "$h2200_linear_module" >&6; }
22894 if test "$h2200_linear_module" = "yes"; then
22895 ENABLE_H2200_LINEAR_MODULE_TRUE=
22896 ENABLE_H2200_LINEAR_MODULE_FALSE='#'
22897 else
22898 ENABLE_H2200_LINEAR_MODULE_TRUE='#'
22899 ENABLE_H2200_LINEAR_MODULE_FALSE=
22903 { $as_echo "$as_me:$LINENO: checking whether variance module is requested" >&5
22904 $as_echo_n "checking whether variance module is requested... " >&6; }
22905 # Check whether --enable-variance was given.
22906 if test "${enable_variance+set}" = set; then
22907 enableval=$enable_variance; variance_module=$enableval
22908 else
22909 variance_module=yes
22912 { $as_echo "$as_me:$LINENO: result: $variance_module" >&5
22913 $as_echo "$variance_module" >&6; }
22914 if test "$variance_module" = "yes"; then
22915 ENABLE_VARIANCE_MODULE_TRUE=
22916 ENABLE_VARIANCE_MODULE_FALSE='#'
22917 else
22918 ENABLE_VARIANCE_MODULE_TRUE='#'
22919 ENABLE_VARIANCE_MODULE_FALSE=
22923 { $as_echo "$as_me:$LINENO: checking whether pthres module is requested" >&5
22924 $as_echo_n "checking whether pthres module is requested... " >&6; }
22925 # Check whether --enable-pthres was given.
22926 if test "${enable_pthres+set}" = set; then
22927 enableval=$enable_pthres; pthres_module=$enableval
22928 else
22929 pthres_module=yes
22932 { $as_echo "$as_me:$LINENO: result: $pthres_module" >&5
22933 $as_echo "$pthres_module" >&6; }
22934 if test "$pthres_module" = "yes"; then
22935 ENABLE_PTHRES_MODULE_TRUE=
22936 ENABLE_PTHRES_MODULE_FALSE='#'
22937 else
22938 ENABLE_PTHRES_MODULE_TRUE='#'
22939 ENABLE_PTHRES_MODULE_FALSE=
22944 # hardware access modules
22945 { $as_echo "$as_me:$LINENO: checking whether ucb1x00 module is requested" >&5
22946 $as_echo_n "checking whether ucb1x00 module is requested... " >&6; }
22947 # Check whether --enable-ucb1x00 was given.
22948 if test "${enable_ucb1x00+set}" = set; then
22949 enableval=$enable_ucb1x00; ucb1x00_module=$enableval
22950 else
22951 ucb1x00_module=yes
22954 { $as_echo "$as_me:$LINENO: result: $ucb1x00_module" >&5
22955 $as_echo "$ucb1x00_module" >&6; }
22956 if test "$ucb1x00_module" = "yes"; then
22957 ENABLE_UCB1X00_MODULE_TRUE=
22958 ENABLE_UCB1X00_MODULE_FALSE='#'
22959 else
22960 ENABLE_UCB1X00_MODULE_TRUE='#'
22961 ENABLE_UCB1X00_MODULE_FALSE=
22965 { $as_echo "$as_me:$LINENO: checking whether corgi module is requested" >&5
22966 $as_echo_n "checking whether corgi module is requested... " >&6; }
22967 # Check whether --enable-corgi was given.
22968 if test "${enable_corgi+set}" = set; then
22969 enableval=$enable_corgi; corgi_module=$enableval
22970 else
22971 corgi_module=yes
22974 { $as_echo "$as_me:$LINENO: result: $corgi_module" >&5
22975 $as_echo "$corgi_module" >&6; }
22976 if test "$corgi_module" = "yes"; then
22977 ENABLE_CORGI_MODULE_TRUE=
22978 ENABLE_CORGI_MODULE_FALSE='#'
22979 else
22980 ENABLE_CORGI_MODULE_TRUE='#'
22981 ENABLE_CORGI_MODULE_FALSE=
22985 { $as_echo "$as_me:$LINENO: checking whether collie module is requested" >&5
22986 $as_echo_n "checking whether collie module is requested... " >&6; }
22987 # Check whether --enable-collie was given.
22988 if test "${enable_collie+set}" = set; then
22989 enableval=$enable_collie; collie_module=$enableval
22990 else
22991 collie_module=yes
22994 { $as_echo "$as_me:$LINENO: result: $collie_module" >&5
22995 $as_echo "$collie_module" >&6; }
22996 if test "$collie_module" = "yes"; then
22997 ENABLE_COLLIE_MODULE_TRUE=
22998 ENABLE_COLLIE_MODULE_FALSE='#'
22999 else
23000 ENABLE_COLLIE_MODULE_TRUE='#'
23001 ENABLE_COLLIE_MODULE_FALSE=
23006 { $as_echo "$as_me:$LINENO: checking whether h3600 module is requested" >&5
23007 $as_echo_n "checking whether h3600 module is requested... " >&6; }
23008 # Check whether --enable-h3600 was given.
23009 if test "${enable_h3600+set}" = set; then
23010 enableval=$enable_h3600; h3600_module=$enableval
23011 else
23012 h3600_module=yes
23015 { $as_echo "$as_me:$LINENO: result: $h3600_module" >&5
23016 $as_echo "$h3600_module" >&6; }
23017 if test "$h3600_module" = "yes"; then
23018 ENABLE_H3600_MODULE_TRUE=
23019 ENABLE_H3600_MODULE_FALSE='#'
23020 else
23021 ENABLE_H3600_MODULE_TRUE='#'
23022 ENABLE_H3600_MODULE_FALSE=
23026 { $as_echo "$as_me:$LINENO: checking whether mk712 module is requested" >&5
23027 $as_echo_n "checking whether mk712 module is requested... " >&6; }
23028 # Check whether --enable-mk712 was given.
23029 if test "${enable_mk712+set}" = set; then
23030 enableval=$enable_mk712; mk712_module=$enableval
23031 else
23032 mk712_module=yes
23035 { $as_echo "$as_me:$LINENO: result: $mk712_module" >&5
23036 $as_echo "$mk712_module" >&6; }
23037 if test "$mk712_module" = "yes"; then
23038 ENABLE_MK712_MODULE_TRUE=
23039 ENABLE_MK712_MODULE_FALSE='#'
23040 else
23041 ENABLE_MK712_MODULE_TRUE='#'
23042 ENABLE_MK712_MODULE_FALSE=
23046 { $as_echo "$as_me:$LINENO: checking whether arctic2 module is requested" >&5
23047 $as_echo_n "checking whether arctic2 module is requested... " >&6; }
23048 # Check whether --enable-arctic2 was given.
23049 if test "${enable_arctic2+set}" = set; then
23050 enableval=$enable_arctic2; arctic2_module=$enableval
23051 else
23052 arctic2_module=yes
23055 { $as_echo "$as_me:$LINENO: result: $arctic2_module" >&5
23056 $as_echo "$arctic2_module" >&6; }
23057 if test "$arctic2_module" = "yes"; then
23058 ENABLE_ARCTIC2_MODULE_TRUE=
23059 ENABLE_ARCTIC2_MODULE_FALSE='#'
23060 else
23061 ENABLE_ARCTIC2_MODULE_TRUE='#'
23062 ENABLE_ARCTIC2_MODULE_FALSE=
23066 { $as_echo "$as_me:$LINENO: checking whether input module is requested" >&5
23067 $as_echo_n "checking whether input module is requested... " >&6; }
23068 # Check whether --enable-input was given.
23069 if test "${enable_input+set}" = set; then
23070 enableval=$enable_input; input_module=$enableval
23071 else
23072 input_module=yes
23075 { $as_echo "$as_me:$LINENO: result: $input_module" >&5
23076 $as_echo "$input_module" >&6; }
23077 if test "$input_module" = "yes"; then
23078 ENABLE_INPUT_MODULE_TRUE=
23079 ENABLE_INPUT_MODULE_FALSE='#'
23080 else
23081 ENABLE_INPUT_MODULE_TRUE='#'
23082 ENABLE_INPUT_MODULE_FALSE=
23086 { $as_echo "$as_me:$LINENO: checking where to place modules" >&5
23087 $as_echo_n "checking where to place modules... " >&6; }
23089 # Check whether --with-plugindir was given.
23090 if test "${with_plugindir+set}" = set; then
23091 withval=$with_plugindir; PLUGIN_DIR=$withval
23092 else
23093 PLUGIN_DIR='${libdir}/ts/'
23096 { $as_echo "$as_me:$LINENO: result: $PLUGIN_DIR" >&5
23097 $as_echo "$PLUGIN_DIR" >&6; }
23100 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
23101 $as_echo_n "checking whether to enable debugging... " >&6; }
23102 # Check whether --enable-debug was given.
23103 if test "${enable_debug+set}" = set; then
23104 enableval=$enable_debug;
23105 else
23106 enable_debug="no"
23109 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
23110 $as_echo "$enable_debug" >&6; }
23111 if test "$enable_debug" = "yes"; then
23112 DEBUGFLAGS="-g -ggdb -DDEBUG"
23113 else
23114 DEBUGFLAGS=""
23118 LIBFLAGS="-DTSLIB_INTERNAL"
23121 TS_CONF='${sysconfdir}/ts.conf'
23124 # Library versioning
23125 LT_RELEASE=0.0
23126 LT_CURRENT=1
23127 LT_REVISION=1
23128 LT_AGE=1
23134 ac_config_files="$ac_config_files Makefile etc/Makefile plugins/Makefile src/Makefile tests/Makefile tslib-$LT_RELEASE.pc:tslib.pc.in"
23136 cat >confcache <<\_ACEOF
23137 # This file is a shell script that caches the results of configure
23138 # tests run on this system so they can be shared between configure
23139 # scripts and configure runs, see configure's option --config-cache.
23140 # It is not useful on other systems. If it contains results you don't
23141 # want to keep, you may remove or edit it.
23143 # config.status only pays attention to the cache file if you give it
23144 # the --recheck option to rerun configure.
23146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23148 # following values.
23150 _ACEOF
23152 # The following way of writing the cache mishandles newlines in values,
23153 # but we know of no workaround that is simple, portable, and efficient.
23154 # So, we kill variables containing newlines.
23155 # Ultrix sh set writes to stderr and can't be redirected directly,
23156 # and sets the high bit in the cache file unless we assign to the vars.
23158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23159 eval ac_val=\$$ac_var
23160 case $ac_val in #(
23161 *${as_nl}*)
23162 case $ac_var in #(
23163 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23165 esac
23166 case $ac_var in #(
23167 _ | IFS | as_nl) ;; #(
23168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23169 *) $as_unset $ac_var ;;
23170 esac ;;
23171 esac
23172 done
23174 (set) 2>&1 |
23175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23176 *${as_nl}ac_space=\ *)
23177 # `set' does not quote correctly, so add quotes (double-quote
23178 # substitution turns \\\\ into \\, and sed turns \\ into \).
23179 sed -n \
23180 "s/'/'\\\\''/g;
23181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23182 ;; #(
23184 # `set' quotes correctly as required by POSIX, so do not add quotes.
23185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23187 esac |
23188 sort
23190 sed '
23191 /^ac_cv_env_/b end
23192 t clear
23193 :clear
23194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23195 t end
23196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23197 :end' >>confcache
23198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23199 if test -w "$cache_file"; then
23200 test "x$cache_file" != "x/dev/null" &&
23201 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23202 $as_echo "$as_me: updating cache $cache_file" >&6;}
23203 cat confcache >$cache_file
23204 else
23205 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23209 rm -f confcache
23211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23212 # Let make expand exec_prefix.
23213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23215 DEFS=-DHAVE_CONFIG_H
23217 ac_libobjs=
23218 ac_ltlibobjs=
23219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23220 # 1. Remove the extension, and $U if already installed.
23221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23224 # will be set to the directory where LIBOBJS objects are built.
23225 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23226 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23227 done
23228 LIBOBJS=$ac_libobjs
23230 LTLIBOBJS=$ac_ltlibobjs
23233 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23234 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23235 Usually this means the macro was only invoked conditionally." >&5
23236 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23237 Usually this means the macro was only invoked conditionally." >&2;}
23238 { (exit 1); exit 1; }; }
23240 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23241 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23242 Usually this means the macro was only invoked conditionally." >&5
23243 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23244 Usually this means the macro was only invoked conditionally." >&2;}
23245 { (exit 1); exit 1; }; }
23247 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23248 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23249 Usually this means the macro was only invoked conditionally." >&5
23250 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23251 Usually this means the macro was only invoked conditionally." >&2;}
23252 { (exit 1); exit 1; }; }
23254 if test -z "${ENABLE_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_LINEAR_MODULE_FALSE}"; then
23255 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LINEAR_MODULE\" was never defined.
23256 Usually this means the macro was only invoked conditionally." >&5
23257 $as_echo "$as_me: error: conditional \"ENABLE_LINEAR_MODULE\" was never defined.
23258 Usually this means the macro was only invoked conditionally." >&2;}
23259 { (exit 1); exit 1; }; }
23261 if test -z "${ENABLE_DEJITTER_MODULE_TRUE}" && test -z "${ENABLE_DEJITTER_MODULE_FALSE}"; then
23262 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_DEJITTER_MODULE\" was never defined.
23263 Usually this means the macro was only invoked conditionally." >&5
23264 $as_echo "$as_me: error: conditional \"ENABLE_DEJITTER_MODULE\" was never defined.
23265 Usually this means the macro was only invoked conditionally." >&2;}
23266 { (exit 1); exit 1; }; }
23268 if test -z "${ENABLE_H2200_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_H2200_LINEAR_MODULE_FALSE}"; then
23269 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_H2200_LINEAR_MODULE\" was never defined.
23270 Usually this means the macro was only invoked conditionally." >&5
23271 $as_echo "$as_me: error: conditional \"ENABLE_H2200_LINEAR_MODULE\" was never defined.
23272 Usually this means the macro was only invoked conditionally." >&2;}
23273 { (exit 1); exit 1; }; }
23275 if test -z "${ENABLE_VARIANCE_MODULE_TRUE}" && test -z "${ENABLE_VARIANCE_MODULE_FALSE}"; then
23276 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_VARIANCE_MODULE\" was never defined.
23277 Usually this means the macro was only invoked conditionally." >&5
23278 $as_echo "$as_me: error: conditional \"ENABLE_VARIANCE_MODULE\" was never defined.
23279 Usually this means the macro was only invoked conditionally." >&2;}
23280 { (exit 1); exit 1; }; }
23282 if test -z "${ENABLE_PTHRES_MODULE_TRUE}" && test -z "${ENABLE_PTHRES_MODULE_FALSE}"; then
23283 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_PTHRES_MODULE\" was never defined.
23284 Usually this means the macro was only invoked conditionally." >&5
23285 $as_echo "$as_me: error: conditional \"ENABLE_PTHRES_MODULE\" was never defined.
23286 Usually this means the macro was only invoked conditionally." >&2;}
23287 { (exit 1); exit 1; }; }
23289 if test -z "${ENABLE_UCB1X00_MODULE_TRUE}" && test -z "${ENABLE_UCB1X00_MODULE_FALSE}"; then
23290 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_UCB1X00_MODULE\" was never defined.
23291 Usually this means the macro was only invoked conditionally." >&5
23292 $as_echo "$as_me: error: conditional \"ENABLE_UCB1X00_MODULE\" was never defined.
23293 Usually this means the macro was only invoked conditionally." >&2;}
23294 { (exit 1); exit 1; }; }
23296 if test -z "${ENABLE_CORGI_MODULE_TRUE}" && test -z "${ENABLE_CORGI_MODULE_FALSE}"; then
23297 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_CORGI_MODULE\" was never defined.
23298 Usually this means the macro was only invoked conditionally." >&5
23299 $as_echo "$as_me: error: conditional \"ENABLE_CORGI_MODULE\" was never defined.
23300 Usually this means the macro was only invoked conditionally." >&2;}
23301 { (exit 1); exit 1; }; }
23303 if test -z "${ENABLE_COLLIE_MODULE_TRUE}" && test -z "${ENABLE_COLLIE_MODULE_FALSE}"; then
23304 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COLLIE_MODULE\" was never defined.
23305 Usually this means the macro was only invoked conditionally." >&5
23306 $as_echo "$as_me: error: conditional \"ENABLE_COLLIE_MODULE\" was never defined.
23307 Usually this means the macro was only invoked conditionally." >&2;}
23308 { (exit 1); exit 1; }; }
23310 if test -z "${ENABLE_H3600_MODULE_TRUE}" && test -z "${ENABLE_H3600_MODULE_FALSE}"; then
23311 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_H3600_MODULE\" was never defined.
23312 Usually this means the macro was only invoked conditionally." >&5
23313 $as_echo "$as_me: error: conditional \"ENABLE_H3600_MODULE\" was never defined.
23314 Usually this means the macro was only invoked conditionally." >&2;}
23315 { (exit 1); exit 1; }; }
23317 if test -z "${ENABLE_MK712_MODULE_TRUE}" && test -z "${ENABLE_MK712_MODULE_FALSE}"; then
23318 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MK712_MODULE\" was never defined.
23319 Usually this means the macro was only invoked conditionally." >&5
23320 $as_echo "$as_me: error: conditional \"ENABLE_MK712_MODULE\" was never defined.
23321 Usually this means the macro was only invoked conditionally." >&2;}
23322 { (exit 1); exit 1; }; }
23324 if test -z "${ENABLE_ARCTIC2_MODULE_TRUE}" && test -z "${ENABLE_ARCTIC2_MODULE_FALSE}"; then
23325 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ARCTIC2_MODULE\" was never defined.
23326 Usually this means the macro was only invoked conditionally." >&5
23327 $as_echo "$as_me: error: conditional \"ENABLE_ARCTIC2_MODULE\" was never defined.
23328 Usually this means the macro was only invoked conditionally." >&2;}
23329 { (exit 1); exit 1; }; }
23331 if test -z "${ENABLE_INPUT_MODULE_TRUE}" && test -z "${ENABLE_INPUT_MODULE_FALSE}"; then
23332 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_INPUT_MODULE\" was never defined.
23333 Usually this means the macro was only invoked conditionally." >&5
23334 $as_echo "$as_me: error: conditional \"ENABLE_INPUT_MODULE\" was never defined.
23335 Usually this means the macro was only invoked conditionally." >&2;}
23336 { (exit 1); exit 1; }; }
23339 : ${CONFIG_STATUS=./config.status}
23340 ac_write_fail=0
23341 ac_clean_files_save=$ac_clean_files
23342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23343 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23344 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23345 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23346 #! $SHELL
23347 # Generated by $as_me.
23348 # Run this file to recreate the current configuration.
23349 # Compiler output produced by configure, useful for debugging
23350 # configure, is in config.log if it exists.
23352 debug=false
23353 ac_cs_recheck=false
23354 ac_cs_silent=false
23355 SHELL=\${CONFIG_SHELL-$SHELL}
23356 _ACEOF
23358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23359 ## --------------------- ##
23360 ## M4sh Initialization. ##
23361 ## --------------------- ##
23363 # Be more Bourne compatible
23364 DUALCASE=1; export DUALCASE # for MKS sh
23365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23366 emulate sh
23367 NULLCMD=:
23368 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23369 # is contrary to our usage. Disable this feature.
23370 alias -g '${1+"$@"}'='"$@"'
23371 setopt NO_GLOB_SUBST
23372 else
23373 case `(set -o) 2>/dev/null` in
23374 *posix*) set -o posix ;;
23375 esac
23382 # PATH needs CR
23383 # Avoid depending upon Character Ranges.
23384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23387 as_cr_digits='0123456789'
23388 as_cr_alnum=$as_cr_Letters$as_cr_digits
23390 as_nl='
23392 export as_nl
23393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23397 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23398 as_echo='printf %s\n'
23399 as_echo_n='printf %s'
23400 else
23401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23403 as_echo_n='/usr/ucb/echo -n'
23404 else
23405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23406 as_echo_n_body='eval
23407 arg=$1;
23408 case $arg in
23409 *"$as_nl"*)
23410 expr "X$arg" : "X\\(.*\\)$as_nl";
23411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23412 esac;
23413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23415 export as_echo_n_body
23416 as_echo_n='sh -c $as_echo_n_body as_echo'
23418 export as_echo_body
23419 as_echo='sh -c $as_echo_body as_echo'
23422 # The user is always right.
23423 if test "${PATH_SEPARATOR+set}" != set; then
23424 PATH_SEPARATOR=:
23425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23427 PATH_SEPARATOR=';'
23431 # Support unset when possible.
23432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23433 as_unset=unset
23434 else
23435 as_unset=false
23439 # IFS
23440 # We need space, tab and new line, in precisely that order. Quoting is
23441 # there to prevent editors from complaining about space-tab.
23442 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23443 # splitting by setting IFS to empty value.)
23444 IFS=" "" $as_nl"
23446 # Find who we are. Look in the path if we contain no directory separator.
23447 case $0 in
23448 *[\\/]* ) as_myself=$0 ;;
23449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23450 for as_dir in $PATH
23452 IFS=$as_save_IFS
23453 test -z "$as_dir" && as_dir=.
23454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23455 done
23456 IFS=$as_save_IFS
23459 esac
23460 # We did not find ourselves, most probably we were run as `sh COMMAND'
23461 # in which case we are not to be found in the path.
23462 if test "x$as_myself" = x; then
23463 as_myself=$0
23465 if test ! -f "$as_myself"; then
23466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23467 { (exit 1); exit 1; }
23470 # Work around bugs in pre-3.0 UWIN ksh.
23471 for as_var in ENV MAIL MAILPATH
23472 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23473 done
23474 PS1='$ '
23475 PS2='> '
23476 PS4='+ '
23478 # NLS nuisances.
23479 LC_ALL=C
23480 export LC_ALL
23481 LANGUAGE=C
23482 export LANGUAGE
23484 # Required to use basename.
23485 if expr a : '\(a\)' >/dev/null 2>&1 &&
23486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23487 as_expr=expr
23488 else
23489 as_expr=false
23492 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23493 as_basename=basename
23494 else
23495 as_basename=false
23499 # Name of the executable.
23500 as_me=`$as_basename -- "$0" ||
23501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23502 X"$0" : 'X\(//\)$' \| \
23503 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23504 $as_echo X/"$0" |
23505 sed '/^.*\/\([^/][^/]*\)\/*$/{
23506 s//\1/
23509 /^X\/\(\/\/\)$/{
23510 s//\1/
23513 /^X\/\(\/\).*/{
23514 s//\1/
23517 s/.*/./; q'`
23519 # CDPATH.
23520 $as_unset CDPATH
23524 as_lineno_1=$LINENO
23525 as_lineno_2=$LINENO
23526 test "x$as_lineno_1" != "x$as_lineno_2" &&
23527 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23529 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23530 # uniformly replaced by the line number. The first 'sed' inserts a
23531 # line-number line after each line using $LINENO; the second 'sed'
23532 # does the real work. The second script uses 'N' to pair each
23533 # line-number line with the line containing $LINENO, and appends
23534 # trailing '-' during substitution so that $LINENO is not a special
23535 # case at line end.
23536 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23537 # scripts with optimization help from Paolo Bonzini. Blame Lee
23538 # E. McMahon (1931-1989) for sed's syntax. :-)
23539 sed -n '
23541 /[$]LINENO/=
23542 ' <$as_myself |
23543 sed '
23544 s/[$]LINENO.*/&-/
23545 t lineno
23547 :lineno
23549 :loop
23550 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23551 t loop
23552 s/-\n.*//
23553 ' >$as_me.lineno &&
23554 chmod +x "$as_me.lineno" ||
23555 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23556 { (exit 1); exit 1; }; }
23558 # Don't try to exec as it changes $[0], causing all sort of problems
23559 # (the dirname of $[0] is not the place where we might find the
23560 # original and so on. Autoconf is especially sensitive to this).
23561 . "./$as_me.lineno"
23562 # Exit status is that of the last command.
23563 exit
23567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23568 as_dirname=dirname
23569 else
23570 as_dirname=false
23573 ECHO_C= ECHO_N= ECHO_T=
23574 case `echo -n x` in
23575 -n*)
23576 case `echo 'x\c'` in
23577 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23578 *) ECHO_C='\c';;
23579 esac;;
23581 ECHO_N='-n';;
23582 esac
23583 if expr a : '\(a\)' >/dev/null 2>&1 &&
23584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23585 as_expr=expr
23586 else
23587 as_expr=false
23590 rm -f conf$$ conf$$.exe conf$$.file
23591 if test -d conf$$.dir; then
23592 rm -f conf$$.dir/conf$$.file
23593 else
23594 rm -f conf$$.dir
23595 mkdir conf$$.dir 2>/dev/null
23597 if (echo >conf$$.file) 2>/dev/null; then
23598 if ln -s conf$$.file conf$$ 2>/dev/null; then
23599 as_ln_s='ln -s'
23600 # ... but there are two gotchas:
23601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23603 # In both cases, we have to default to `cp -p'.
23604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23605 as_ln_s='cp -p'
23606 elif ln conf$$.file conf$$ 2>/dev/null; then
23607 as_ln_s=ln
23608 else
23609 as_ln_s='cp -p'
23611 else
23612 as_ln_s='cp -p'
23614 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23615 rmdir conf$$.dir 2>/dev/null
23617 if mkdir -p . 2>/dev/null; then
23618 as_mkdir_p=:
23619 else
23620 test -d ./-p && rmdir ./-p
23621 as_mkdir_p=false
23624 if test -x / >/dev/null 2>&1; then
23625 as_test_x='test -x'
23626 else
23627 if ls -dL / >/dev/null 2>&1; then
23628 as_ls_L_option=L
23629 else
23630 as_ls_L_option=
23632 as_test_x='
23633 eval sh -c '\''
23634 if test -d "$1"; then
23635 test -d "$1/.";
23636 else
23637 case $1 in
23638 -*)set "./$1";;
23639 esac;
23640 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23641 ???[sx]*):;;*)false;;esac;fi
23642 '\'' sh
23645 as_executable_p=$as_test_x
23647 # Sed expression to map a string onto a valid CPP name.
23648 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23650 # Sed expression to map a string onto a valid variable name.
23651 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23654 exec 6>&1
23656 # Save the log message, to keep $[0] and so on meaningful, and to
23657 # report actual input values of CONFIG_FILES etc. instead of their
23658 # values after options handling.
23659 ac_log="
23660 This file was extended by tslib $as_me 0.0.2, which was
23661 generated by GNU Autoconf 2.63. Invocation command line was
23663 CONFIG_FILES = $CONFIG_FILES
23664 CONFIG_HEADERS = $CONFIG_HEADERS
23665 CONFIG_LINKS = $CONFIG_LINKS
23666 CONFIG_COMMANDS = $CONFIG_COMMANDS
23667 $ $0 $@
23669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23672 _ACEOF
23674 case $ac_config_files in *"
23675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23676 esac
23678 case $ac_config_headers in *"
23679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23680 esac
23683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23684 # Files that config.status was made for.
23685 config_files="$ac_config_files"
23686 config_headers="$ac_config_headers"
23687 config_commands="$ac_config_commands"
23689 _ACEOF
23691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23692 ac_cs_usage="\
23693 \`$as_me' instantiates files from templates according to the
23694 current configuration.
23696 Usage: $0 [OPTION]... [FILE]...
23698 -h, --help print this help, then exit
23699 -V, --version print version number and configuration settings, then exit
23700 -q, --quiet, --silent
23701 do not print progress messages
23702 -d, --debug don't remove temporary files
23703 --recheck update $as_me by reconfiguring in the same conditions
23704 --file=FILE[:TEMPLATE]
23705 instantiate the configuration file FILE
23706 --header=FILE[:TEMPLATE]
23707 instantiate the configuration header FILE
23709 Configuration files:
23710 $config_files
23712 Configuration headers:
23713 $config_headers
23715 Configuration commands:
23716 $config_commands
23718 Report bugs to <bug-autoconf@gnu.org>."
23720 _ACEOF
23721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23722 ac_cs_version="\\
23723 tslib config.status 0.0.2
23724 configured by $0, generated by GNU Autoconf 2.63,
23725 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23727 Copyright (C) 2008 Free Software Foundation, Inc.
23728 This config.status script is free software; the Free Software Foundation
23729 gives unlimited permission to copy, distribute and modify it."
23731 ac_pwd='$ac_pwd'
23732 srcdir='$srcdir'
23733 INSTALL='$INSTALL'
23734 MKDIR_P='$MKDIR_P'
23735 AWK='$AWK'
23736 test -n "\$AWK" || AWK=awk
23737 _ACEOF
23739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23740 # The default lists apply if the user does not specify any file.
23741 ac_need_defaults=:
23742 while test $# != 0
23744 case $1 in
23745 --*=*)
23746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23747 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23748 ac_shift=:
23751 ac_option=$1
23752 ac_optarg=$2
23753 ac_shift=shift
23755 esac
23757 case $ac_option in
23758 # Handling of the options.
23759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23760 ac_cs_recheck=: ;;
23761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23762 $as_echo "$ac_cs_version"; exit ;;
23763 --debug | --debu | --deb | --de | --d | -d )
23764 debug=: ;;
23765 --file | --fil | --fi | --f )
23766 $ac_shift
23767 case $ac_optarg in
23768 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23769 esac
23770 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23771 ac_need_defaults=false;;
23772 --header | --heade | --head | --hea )
23773 $ac_shift
23774 case $ac_optarg in
23775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23776 esac
23777 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23778 ac_need_defaults=false;;
23779 --he | --h)
23780 # Conflict between --help and --header
23781 { $as_echo "$as_me: error: ambiguous option: $1
23782 Try \`$0 --help' for more information." >&2
23783 { (exit 1); exit 1; }; };;
23784 --help | --hel | -h )
23785 $as_echo "$ac_cs_usage"; exit ;;
23786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23788 ac_cs_silent=: ;;
23790 # This is an error.
23791 -*) { $as_echo "$as_me: error: unrecognized option: $1
23792 Try \`$0 --help' for more information." >&2
23793 { (exit 1); exit 1; }; } ;;
23795 *) ac_config_targets="$ac_config_targets $1"
23796 ac_need_defaults=false ;;
23798 esac
23799 shift
23800 done
23802 ac_configure_extra_args=
23804 if $ac_cs_silent; then
23805 exec 6>/dev/null
23806 ac_configure_extra_args="$ac_configure_extra_args --silent"
23809 _ACEOF
23810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23811 if \$ac_cs_recheck; then
23812 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23813 shift
23814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23815 CONFIG_SHELL='$SHELL'
23816 export CONFIG_SHELL
23817 exec "\$@"
23820 _ACEOF
23821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23822 exec 5>>config.log
23824 echo
23825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23826 ## Running $as_me. ##
23827 _ASBOX
23828 $as_echo "$ac_log"
23829 } >&5
23831 _ACEOF
23832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23834 # INIT-COMMANDS
23836 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23838 _ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23842 # Handling of arguments.
23843 for ac_config_target in $ac_config_targets
23845 case $ac_config_target in
23846 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23847 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23849 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
23850 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
23851 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23852 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23853 "tslib-$LT_RELEASE.pc") CONFIG_FILES="$CONFIG_FILES tslib-$LT_RELEASE.pc:tslib.pc.in" ;;
23855 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23856 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23857 { (exit 1); exit 1; }; };;
23858 esac
23859 done
23862 # If the user did not use the arguments to specify the items to instantiate,
23863 # then the envvar interface is used. Set only those that are not.
23864 # We use the long form for the default assignment because of an extremely
23865 # bizarre bug on SunOS 4.1.3.
23866 if $ac_need_defaults; then
23867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23872 # Have a temporary directory for convenience. Make it in the build tree
23873 # simply because there is no reason against having it here, and in addition,
23874 # creating and moving files from /tmp can sometimes cause problems.
23875 # Hook for its removal unless debugging.
23876 # Note that there is a small window in which the directory will not be cleaned:
23877 # after its creation but before its name has been assigned to `$tmp'.
23878 $debug ||
23880 tmp=
23881 trap 'exit_status=$?
23882 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23884 trap '{ (exit 1); exit 1; }' 1 2 13 15
23886 # Create a (secure) tmp directory for tmp files.
23889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23890 test -n "$tmp" && test -d "$tmp"
23891 } ||
23893 tmp=./conf$$-$RANDOM
23894 (umask 077 && mkdir "$tmp")
23895 } ||
23897 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23898 { (exit 1); exit 1; }
23901 # Set up the scripts for CONFIG_FILES section.
23902 # No need to generate them if there are no CONFIG_FILES.
23903 # This happens for instance with `./config.status config.h'.
23904 if test -n "$CONFIG_FILES"; then
23907 ac_cr=' '
23908 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23909 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23910 ac_cs_awk_cr='\\r'
23911 else
23912 ac_cs_awk_cr=$ac_cr
23915 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23916 _ACEOF
23920 echo "cat >conf$$subs.awk <<_ACEOF" &&
23921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23922 echo "_ACEOF"
23923 } >conf$$subs.sh ||
23924 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23925 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23926 { (exit 1); exit 1; }; }
23927 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23928 ac_delim='%!_!# '
23929 for ac_last_try in false false false false false :; do
23930 . ./conf$$subs.sh ||
23931 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23932 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23933 { (exit 1); exit 1; }; }
23935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23936 if test $ac_delim_n = $ac_delim_num; then
23937 break
23938 elif $ac_last_try; then
23939 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23940 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23941 { (exit 1); exit 1; }; }
23942 else
23943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23945 done
23946 rm -f conf$$subs.sh
23948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23949 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23950 _ACEOF
23951 sed -n '
23953 s/^/S["/; s/!.*/"]=/
23956 s/^[^!]*!//
23957 :repl
23958 t repl
23959 s/'"$ac_delim"'$//
23960 t delim
23963 s/\(.\{148\}\).*/\1/
23964 t more1
23965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23968 b repl
23969 :more1
23970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23973 s/.\{148\}//
23974 t nl
23975 :delim
23977 s/\(.\{148\}\).*/\1/
23978 t more2
23979 s/["\\]/\\&/g; s/^/"/; s/$/"/
23982 :more2
23983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23986 s/.\{148\}//
23987 t delim
23988 ' <conf$$subs.awk | sed '
23989 /^[^""]/{
23991 s/\n//
23993 ' >>$CONFIG_STATUS || ac_write_fail=1
23994 rm -f conf$$subs.awk
23995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23996 _ACAWK
23997 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23998 for (key in S) S_is_set[key] = 1
23999 FS = "\a"
24003 line = $ 0
24004 nfields = split(line, field, "@")
24005 substed = 0
24006 len = length(field[1])
24007 for (i = 2; i < nfields; i++) {
24008 key = field[i]
24009 keylen = length(key)
24010 if (S_is_set[key]) {
24011 value = S[key]
24012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24013 len += length(value) + length(field[++i])
24014 substed = 1
24015 } else
24016 len += 1 + keylen
24019 print line
24022 _ACAWK
24023 _ACEOF
24024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24027 else
24029 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24030 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24031 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24032 { (exit 1); exit 1; }; }
24033 _ACEOF
24035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24037 # trailing colons and then remove the whole line if VPATH becomes empty
24038 # (actually we leave an empty line to preserve line numbers).
24039 if test "x$srcdir" = x.; then
24040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24041 s/:*\$(srcdir):*/:/
24042 s/:*\${srcdir}:*/:/
24043 s/:*@srcdir@:*/:/
24044 s/^\([^=]*=[ ]*\):*/\1/
24045 s/:*$//
24046 s/^[^=]*=[ ]*$//
24050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24051 fi # test -n "$CONFIG_FILES"
24053 # Set up the scripts for CONFIG_HEADERS section.
24054 # No need to generate them if there are no CONFIG_HEADERS.
24055 # This happens for instance with `./config.status Makefile'.
24056 if test -n "$CONFIG_HEADERS"; then
24057 cat >"$tmp/defines.awk" <<\_ACAWK ||
24058 BEGIN {
24059 _ACEOF
24061 # Transform confdefs.h into an awk script `defines.awk', embedded as
24062 # here-document in config.status, that substitutes the proper values into
24063 # config.h.in to produce config.h.
24065 # Create a delimiter string that does not exist in confdefs.h, to ease
24066 # handling of long lines.
24067 ac_delim='%!_!# '
24068 for ac_last_try in false false :; do
24069 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24070 if test -z "$ac_t"; then
24071 break
24072 elif $ac_last_try; then
24073 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24074 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24075 { (exit 1); exit 1; }; }
24076 else
24077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24079 done
24081 # For the awk script, D is an array of macro values keyed by name,
24082 # likewise P contains macro parameters if any. Preserve backslash
24083 # newline sequences.
24085 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24086 sed -n '
24087 s/.\{148\}/&'"$ac_delim"'/g
24088 t rset
24089 :rset
24090 s/^[ ]*#[ ]*define[ ][ ]*/ /
24091 t def
24093 :def
24094 s/\\$//
24095 t bsnl
24096 s/["\\]/\\&/g
24097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24098 D["\1"]=" \3"/p
24099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24101 :bsnl
24102 s/["\\]/\\&/g
24103 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24104 D["\1"]=" \3\\\\\\n"\\/p
24105 t cont
24106 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24107 t cont
24109 :cont
24111 s/.\{148\}/&'"$ac_delim"'/g
24112 t clear
24113 :clear
24114 s/\\$//
24115 t bsnlc
24116 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24118 :bsnlc
24119 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24120 b cont
24121 ' <confdefs.h | sed '
24122 s/'"$ac_delim"'/"\\\
24123 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24126 for (key in D) D_is_set[key] = 1
24127 FS = "\a"
24129 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24130 line = \$ 0
24131 split(line, arg, " ")
24132 if (arg[1] == "#") {
24133 defundef = arg[2]
24134 mac1 = arg[3]
24135 } else {
24136 defundef = substr(arg[1], 2)
24137 mac1 = arg[2]
24139 split(mac1, mac2, "(") #)
24140 macro = mac2[1]
24141 prefix = substr(line, 1, index(line, defundef) - 1)
24142 if (D_is_set[macro]) {
24143 # Preserve the white space surrounding the "#".
24144 print prefix "define", macro P[macro] D[macro]
24145 next
24146 } else {
24147 # Replace #undef with comments. This is necessary, for example,
24148 # in the case of _POSIX_SOURCE, which is predefined and required
24149 # on some systems where configure will not decide to define it.
24150 if (defundef == "undef") {
24151 print "/*", prefix defundef, macro, "*/"
24152 next
24156 { print }
24157 _ACAWK
24158 _ACEOF
24159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24160 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24161 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24162 { (exit 1); exit 1; }; }
24163 fi # test -n "$CONFIG_HEADERS"
24166 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24167 shift
24168 for ac_tag
24170 case $ac_tag in
24171 :[FHLC]) ac_mode=$ac_tag; continue;;
24172 esac
24173 case $ac_mode$ac_tag in
24174 :[FHL]*:*);;
24175 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24176 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24177 { (exit 1); exit 1; }; };;
24178 :[FH]-) ac_tag=-:-;;
24179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24180 esac
24181 ac_save_IFS=$IFS
24182 IFS=:
24183 set x $ac_tag
24184 IFS=$ac_save_IFS
24185 shift
24186 ac_file=$1
24187 shift
24189 case $ac_mode in
24190 :L) ac_source=$1;;
24191 :[FH])
24192 ac_file_inputs=
24193 for ac_f
24195 case $ac_f in
24196 -) ac_f="$tmp/stdin";;
24197 *) # Look for the file first in the build tree, then in the source tree
24198 # (if the path is not absolute). The absolute path cannot be DOS-style,
24199 # because $ac_f cannot contain `:'.
24200 test -f "$ac_f" ||
24201 case $ac_f in
24202 [\\/$]*) false;;
24203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24204 esac ||
24205 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24206 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24207 { (exit 1); exit 1; }; };;
24208 esac
24209 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24210 ac_file_inputs="$ac_file_inputs '$ac_f'"
24211 done
24213 # Let's still pretend it is `configure' which instantiates (i.e., don't
24214 # use $as_me), people would be surprised to read:
24215 # /* config.h. Generated by config.status. */
24216 configure_input='Generated from '`
24217 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24218 `' by configure.'
24219 if test x"$ac_file" != x-; then
24220 configure_input="$ac_file. $configure_input"
24221 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24222 $as_echo "$as_me: creating $ac_file" >&6;}
24224 # Neutralize special characters interpreted by sed in replacement strings.
24225 case $configure_input in #(
24226 *\&* | *\|* | *\\* )
24227 ac_sed_conf_input=`$as_echo "$configure_input" |
24228 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24229 *) ac_sed_conf_input=$configure_input;;
24230 esac
24232 case $ac_tag in
24233 *:-:* | *:-) cat >"$tmp/stdin" \
24234 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24235 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24236 { (exit 1); exit 1; }; } ;;
24237 esac
24239 esac
24241 ac_dir=`$as_dirname -- "$ac_file" ||
24242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24243 X"$ac_file" : 'X\(//\)[^/]' \| \
24244 X"$ac_file" : 'X\(//\)$' \| \
24245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24246 $as_echo X"$ac_file" |
24247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24248 s//\1/
24251 /^X\(\/\/\)[^/].*/{
24252 s//\1/
24255 /^X\(\/\/\)$/{
24256 s//\1/
24259 /^X\(\/\).*/{
24260 s//\1/
24263 s/.*/./; q'`
24264 { as_dir="$ac_dir"
24265 case $as_dir in #(
24266 -*) as_dir=./$as_dir;;
24267 esac
24268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24269 as_dirs=
24270 while :; do
24271 case $as_dir in #(
24272 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24273 *) as_qdir=$as_dir;;
24274 esac
24275 as_dirs="'$as_qdir' $as_dirs"
24276 as_dir=`$as_dirname -- "$as_dir" ||
24277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24278 X"$as_dir" : 'X\(//\)[^/]' \| \
24279 X"$as_dir" : 'X\(//\)$' \| \
24280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24281 $as_echo X"$as_dir" |
24282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24283 s//\1/
24286 /^X\(\/\/\)[^/].*/{
24287 s//\1/
24290 /^X\(\/\/\)$/{
24291 s//\1/
24294 /^X\(\/\).*/{
24295 s//\1/
24298 s/.*/./; q'`
24299 test -d "$as_dir" && break
24300 done
24301 test -z "$as_dirs" || eval "mkdir $as_dirs"
24302 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24303 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24304 { (exit 1); exit 1; }; }; }
24305 ac_builddir=.
24307 case "$ac_dir" in
24308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24310 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24311 # A ".." for each directory in $ac_dir_suffix.
24312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24313 case $ac_top_builddir_sub in
24314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24316 esac ;;
24317 esac
24318 ac_abs_top_builddir=$ac_pwd
24319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24320 # for backward compatibility:
24321 ac_top_builddir=$ac_top_build_prefix
24323 case $srcdir in
24324 .) # We are building in place.
24325 ac_srcdir=.
24326 ac_top_srcdir=$ac_top_builddir_sub
24327 ac_abs_top_srcdir=$ac_pwd ;;
24328 [\\/]* | ?:[\\/]* ) # Absolute name.
24329 ac_srcdir=$srcdir$ac_dir_suffix;
24330 ac_top_srcdir=$srcdir
24331 ac_abs_top_srcdir=$srcdir ;;
24332 *) # Relative name.
24333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24334 ac_top_srcdir=$ac_top_build_prefix$srcdir
24335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24336 esac
24337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24340 case $ac_mode in
24343 # CONFIG_FILE
24346 case $INSTALL in
24347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24349 esac
24350 ac_MKDIR_P=$MKDIR_P
24351 case $MKDIR_P in
24352 [\\/$]* | ?:[\\/]* ) ;;
24353 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24354 esac
24355 _ACEOF
24357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24358 # If the template does not know about datarootdir, expand it.
24359 # FIXME: This hack should be removed a few years after 2.60.
24360 ac_datarootdir_hack=; ac_datarootdir_seen=
24362 ac_sed_dataroot='
24363 /datarootdir/ {
24367 /@datadir@/p
24368 /@docdir@/p
24369 /@infodir@/p
24370 /@localedir@/p
24371 /@mandir@/p
24373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24374 *datarootdir*) ac_datarootdir_seen=yes;;
24375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24376 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24378 _ACEOF
24379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24380 ac_datarootdir_hack='
24381 s&@datadir@&$datadir&g
24382 s&@docdir@&$docdir&g
24383 s&@infodir@&$infodir&g
24384 s&@localedir@&$localedir&g
24385 s&@mandir@&$mandir&g
24386 s&\\\${datarootdir}&$datarootdir&g' ;;
24387 esac
24388 _ACEOF
24390 # Neutralize VPATH when `$srcdir' = `.'.
24391 # Shell code in configure.ac might set extrasub.
24392 # FIXME: do we really want to maintain this feature?
24393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24394 ac_sed_extra="$ac_vpsub
24395 $extrasub
24396 _ACEOF
24397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24400 s|@configure_input@|$ac_sed_conf_input|;t t
24401 s&@top_builddir@&$ac_top_builddir_sub&;t t
24402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24403 s&@srcdir@&$ac_srcdir&;t t
24404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24405 s&@top_srcdir@&$ac_top_srcdir&;t t
24406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24407 s&@builddir@&$ac_builddir&;t t
24408 s&@abs_builddir@&$ac_abs_builddir&;t t
24409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24410 s&@INSTALL@&$ac_INSTALL&;t t
24411 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24412 $ac_datarootdir_hack
24414 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24415 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24416 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24417 { (exit 1); exit 1; }; }
24419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24422 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24423 which seems to be undefined. Please make sure it is defined." >&5
24424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24425 which seems to be undefined. Please make sure it is defined." >&2;}
24427 rm -f "$tmp/stdin"
24428 case $ac_file in
24429 -) cat "$tmp/out" && rm -f "$tmp/out";;
24430 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24431 esac \
24432 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24433 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24434 { (exit 1); exit 1; }; }
24438 # CONFIG_HEADER
24440 if test x"$ac_file" != x-; then
24442 $as_echo "/* $configure_input */" \
24443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24444 } >"$tmp/config.h" \
24445 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24446 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24447 { (exit 1); exit 1; }; }
24448 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24449 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24450 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24451 else
24452 rm -f "$ac_file"
24453 mv "$tmp/config.h" "$ac_file" \
24454 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24455 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24456 { (exit 1); exit 1; }; }
24458 else
24459 $as_echo "/* $configure_input */" \
24460 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24461 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24462 $as_echo "$as_me: error: could not create -" >&2;}
24463 { (exit 1); exit 1; }; }
24465 # Compute "$ac_file"'s index in $config_headers.
24466 _am_arg="$ac_file"
24467 _am_stamp_count=1
24468 for _am_header in $config_headers :; do
24469 case $_am_header in
24470 $_am_arg | $_am_arg:* )
24471 break ;;
24473 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24474 esac
24475 done
24476 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24477 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24478 X"$_am_arg" : 'X\(//\)[^/]' \| \
24479 X"$_am_arg" : 'X\(//\)$' \| \
24480 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24481 $as_echo X"$_am_arg" |
24482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24483 s//\1/
24486 /^X\(\/\/\)[^/].*/{
24487 s//\1/
24490 /^X\(\/\/\)$/{
24491 s//\1/
24494 /^X\(\/\).*/{
24495 s//\1/
24498 s/.*/./; q'`/stamp-h$_am_stamp_count
24501 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24502 $as_echo "$as_me: executing $ac_file commands" >&6;}
24504 esac
24507 case $ac_file$ac_mode in
24508 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24509 # Strip MF so we end up with the name of the file.
24510 mf=`echo "$mf" | sed -e 's/:.*$//'`
24511 # Check whether this is an Automake generated Makefile or not.
24512 # We used to match only the files named `Makefile.in', but
24513 # some people rename them; so instead we look at the file content.
24514 # Grep'ing the first line is not enough: some people post-process
24515 # each Makefile.in and add a new line on top of each file to say so.
24516 # Grep'ing the whole file is not good either: AIX grep has a line
24517 # limit of 2048, but all sed's we know have understand at least 4000.
24518 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24519 dirpart=`$as_dirname -- "$mf" ||
24520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24521 X"$mf" : 'X\(//\)[^/]' \| \
24522 X"$mf" : 'X\(//\)$' \| \
24523 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24524 $as_echo X"$mf" |
24525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24526 s//\1/
24529 /^X\(\/\/\)[^/].*/{
24530 s//\1/
24533 /^X\(\/\/\)$/{
24534 s//\1/
24537 /^X\(\/\).*/{
24538 s//\1/
24541 s/.*/./; q'`
24542 else
24543 continue
24545 # Extract the definition of DEPDIR, am__include, and am__quote
24546 # from the Makefile without running `make'.
24547 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24548 test -z "$DEPDIR" && continue
24549 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24550 test -z "am__include" && continue
24551 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24552 # When using ansi2knr, U may be empty or an underscore; expand it
24553 U=`sed -n 's/^U = //p' < "$mf"`
24554 # Find all dependency output files, they are included files with
24555 # $(DEPDIR) in their names. We invoke sed twice because it is the
24556 # simplest approach to changing $(DEPDIR) to its actual value in the
24557 # expansion.
24558 for file in `sed -n "
24559 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24560 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24561 # Make sure the directory exists.
24562 test -f "$dirpart/$file" && continue
24563 fdir=`$as_dirname -- "$file" ||
24564 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24565 X"$file" : 'X\(//\)[^/]' \| \
24566 X"$file" : 'X\(//\)$' \| \
24567 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24568 $as_echo X"$file" |
24569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24570 s//\1/
24573 /^X\(\/\/\)[^/].*/{
24574 s//\1/
24577 /^X\(\/\/\)$/{
24578 s//\1/
24581 /^X\(\/\).*/{
24582 s//\1/
24585 s/.*/./; q'`
24586 { as_dir=$dirpart/$fdir
24587 case $as_dir in #(
24588 -*) as_dir=./$as_dir;;
24589 esac
24590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24591 as_dirs=
24592 while :; do
24593 case $as_dir in #(
24594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24595 *) as_qdir=$as_dir;;
24596 esac
24597 as_dirs="'$as_qdir' $as_dirs"
24598 as_dir=`$as_dirname -- "$as_dir" ||
24599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24600 X"$as_dir" : 'X\(//\)[^/]' \| \
24601 X"$as_dir" : 'X\(//\)$' \| \
24602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24603 $as_echo X"$as_dir" |
24604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24605 s//\1/
24608 /^X\(\/\/\)[^/].*/{
24609 s//\1/
24612 /^X\(\/\/\)$/{
24613 s//\1/
24616 /^X\(\/\).*/{
24617 s//\1/
24620 s/.*/./; q'`
24621 test -d "$as_dir" && break
24622 done
24623 test -z "$as_dirs" || eval "mkdir $as_dirs"
24624 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24625 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24626 { (exit 1); exit 1; }; }; }
24627 # echo "creating $dirpart/$file"
24628 echo '# dummy' > "$dirpart/$file"
24629 done
24630 done
24633 esac
24634 done # for ac_tag
24637 { (exit 0); exit 0; }
24638 _ACEOF
24639 chmod +x $CONFIG_STATUS
24640 ac_clean_files=$ac_clean_files_save
24642 test $ac_write_fail = 0 ||
24643 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24644 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24645 { (exit 1); exit 1; }; }
24648 # configure is writing to config.log, and then calls config.status.
24649 # config.status does its own redirection, appending to config.log.
24650 # Unfortunately, on DOS this fails, as config.log is still kept open
24651 # by configure, so config.status won't be able to write to it; its
24652 # output is simply discarded. So we exec the FD to /dev/null,
24653 # effectively closing config.log, so it can be properly (re)opened and
24654 # appended to by config.status. When coming back to configure, we
24655 # need to make the FD available again.
24656 if test "$no_create" != yes; then
24657 ac_cs_success=:
24658 ac_config_status_args=
24659 test "$silent" = yes &&
24660 ac_config_status_args="$ac_config_status_args --quiet"
24661 exec 5>/dev/null
24662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24663 exec 5>>config.log
24664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24665 # would make configure fail if this is the last instruction.
24666 $ac_cs_success || { (exit 1); exit 1; }
24668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24669 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}